:root {
    --octa-navy: #08142a;
    --octa-blue: #1558e8;
    --octa-cyan: #4cd4ff;
    --octa-amber: #ffbb3d;
    --green: var(--octa-blue);
    --canvas: #f5f7fb;
    --ink: #142039;
    --muted: #50617a;
    --radius: 14px;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 12px;
    z-index: 50;
    padding: 8px 12px;
    background: white;
}

.skip-link:focus { top: 8px; }

.octadiv-mark {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    flex: none;
}

.octadiv-wordmark {
    font-weight: 650;
    font-size: 1.22rem;
    letter-spacing: -.025em;
    white-space: nowrap;
}
.octadiv-wordmark strong {
    color: #215cc8;
    font-size: 1.28em;
    font-weight: 750;
}
.login-side .octadiv-wordmark strong {
    color: #83b1ff;
}

.shell .sidebar { background: var(--octa-navy); }
.sidebar .brand { padding: 7px 9px 10px; }
.nav-group { margin: 10px 0 4px; }
.nav-group summary { color: #a7bbd8; padding: 5px 9px; font-weight: 650; font-size: .79rem; }
.nav-group .nav-link { margin-top: 2px; }
.nav-group .nav-link.selected { background: #18376e; }
.topbar, .top-tools { display: flex; align-items: center; }
.topbar { min-height: 62px; }
.top-tools { gap: 16px; }
.top-brand { display: none; padding: 0; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 9px; list-style: none; cursor: pointer; }
.account-menu summary::marker { content: ''; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu[open] > summary { background: var(--subtle); }
.account-name { font-size: .86rem; }
.account-short-name { display: none; }
.account-panel-name, .account-companies { display: none; }
.account-menu .avatar {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 0 0 1px #cbd8ed;
}
.account-panel {
    display: grid;
    gap: 7px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 167px;
    z-index: 6;
    box-shadow: 0 12px 30px #0c24501c;
}
.account-panel form { margin-top: 5px; }
.account-action {
    display: block;
    width: 100%;
    padding: 7px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #294362;
    text-align: left;
    font: inherit;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.account-action:hover { background: #f1f5fb; }
.account-action.sign-out { color: #9b2d42; }
.account-action.account-companies { display: none; }
.launcher .shell { display: block; }
.launcher .top-brand { display: flex; }
.launcher .main { max-width: 1270px; }

.launch-hero {
    isolation: isolate;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 254px;
    margin-bottom: 25px;
    border-radius: 19px;
    background:
        radial-gradient(ellipse at 86% 10%, #254a95 0%, transparent 62%),
        linear-gradient(115deg, #08142a, #102149);
    color: white;
    border: 1px solid #283a66;
}

.launch-intro { position: relative; z-index: 1; padding: clamp(22px, 4vw, 47px); }
.launch-intro h1 { font-size: clamp(1.72rem, 4vw, 2.8rem); font-weight: 730; color: white; }
.launch-diagram {
    position: absolute;
    inset: 0 0 0 51%;
    pointer-events: none;
    background:
        radial-gradient(circle, #b4d5fe55 1px, transparent 1.5px) 0 0 / 20px 20px,
        repeating-radial-gradient(circle at 70% 50%, transparent 0 36px, #a9ccff16 37px 38px);
    mask-image: linear-gradient(to right, transparent, black 18%);
}
.launch-diagram > span {
    display: grid;
    place-items: center;
    position: absolute;
    width: clamp(58px, 8vw, 108px);
    aspect-ratio: 1;
    border: 1px solid #a9ccff65;
    border-radius: 22%;
    background: #203f759e;
    color: #9de2ff;
    box-shadow: 0 16px 35px #070f2c48;
    transform: rotate(-10deg);
}
.launch-diagram > span:nth-child(1) { left: 18%; top: 17%; }
.launch-diagram > span:nth-child(2) { left: 43%; top: 47%; color: #ffc767; }
.launch-diagram > span:nth-child(3) { left: 65%; top: 10%; }
.launch-diagram > span:nth-child(4) { left: 82%; top: 58%; color: #ffc767; }
.launch-diagram .erp-symbol {
    width: 48%;
    height: 48%;
}

.launch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.launch-actions a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; color: #dce9ff; border: 1px solid #5974a0; border-radius: 8px; background: #15254e; font-weight: 620; }
.launch-actions a:first-child { color: #171e2c; border-color: var(--octa-amber); background: var(--octa-amber); }
.launch-actions a:hover { filter: brightness(1.15); }

.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.catalog-toolbar h2 { font-size: 1.38rem; }
.catalog-toolbar .app-search { margin: 0; width: min(100%, 360px); }
.catalog-tabs { display: flex; overflow-x: auto; gap: 6px; margin-bottom: 17px; padding: 3px 2px 6px; }
.catalog-tabs button { border: 1px solid transparent; background: transparent; cursor: pointer; border-radius: 7px; white-space: nowrap; padding: 6px 10px; color: var(--muted); }
.catalog-tabs button[aria-pressed=true] { background: #e6eeff; color: #1747a3; font-weight: 680; }
.launcher .app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.launcher .app-tile { min-height: 76px; border-radius: 14px; }
.launcher .app-icon { width: 46px; height: 46px; }
.launcher .app-icon.blue { background: #e9f0ff; color: #164db8; }
.launcher .app-icon.amber { background: #fff0d4; color: #744308; }
.launcher .pin-app { opacity: .7; }
.launcher .pin-app:hover, .launcher .pin-app[aria-pressed=true] { opacity: 1; }
.launcher .app-section > h2 { font-size: .97rem; color: #475b77; }
.landing-hero { color: var(--octa-navy); }
.task-editor { padding-top: 10px; }
.ticket-divider { border-top: 1px solid var(--border); margin-block: 19px; }

@media (max-width: 800px) {
    .top-brand { display: flex; }
    .topbar .breadcrumb, .top-help { display: none; }
    .top-tools { gap: 9px; }
    .launch-diagram { opacity: .5; }
    .launch-hero { min-height: 185px; }
    .launch-actions { max-width: 310px; }
    .launcher .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 400px) {
    .launch-diagram { opacity: .28; }
    .launcher .app-tile a { font-size: .82rem; }
}

@media print {
    .skip-link { display: none; }
}.empty-start { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #eaf1ff; color: #224572; }

.journal-totals {
    padding: 10px 14px;
    border-radius: 8px;
    background: #eaf1ff;
    font-weight: 650;
    color: #254873;
}

@media (max-width: 540px) {
    [data-journal] .line-row {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    }
}

/* Typography and workspace density measured from the reference dashboard. */
:root {
    font-family: "Open Sans", "Open Sans Extended", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    --radius: 10px;
    --canvas: #f5f7fb;
}

h1 { font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: normal; }
h2 { font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: normal; }
th { font-size: 12px; font-weight: 700; }
td { font-size: 14px; line-height: 21px; }
.launch-intro h1, .landing-hero h1 { font-weight: 700; }

@media (min-width: 1051px) {
    .shell { grid-template-columns: 254px minmax(0, 1fr); }
}

.shell .sidebar {
    background: #fff;
    color: #1d2d46;
    border-right: 1px solid #e0e7f0;
    padding: 14px;
}
.sidebar .brand { margin: 2px 0 9px; }
.sidebar .nav-group { margin-block: 7px; }
.sidebar .nav-group summary { color: #34455f; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.sidebar .nav-link { color: #34455f; min-height: 37px; font-weight: 600; }
.sidebar .nav-group .nav-link { padding-left: 14px; font-size: 13px; }
.sidebar .nav-link > span { color: #3d6abe; }
.sidebar .nav-link:hover { background: #f0f5ff; color: #144ba9; }
.sidebar .nav-link.selected { background: #1757ce; color: white; }
.sidebar .nav-link.selected > span { color: white; }

.accounting-workspace .workspace {
    min-width: 0;
    background: #f3f6fa;
    font-feature-settings: 'tnum';
}
.accounting-workspace .topbar {
    min-height: 48px;
    padding-inline: 20px;
}
.accounting-workspace .main {
    padding: 18px 20px 30px;
    max-width: 1410px;
}
.accounting-workspace .sidebar {
    padding: 12px;
}
.accounting-workspace .button {
    min-height: 33px;
    padding: 6px 10px;
    border-radius: 7px;
}
.accounting-heading {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 10px;
}
.accounting-heading h1 {
    font-size: clamp(1.15rem, 2vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -.035em;
}
.accounting-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #dfe7f1;
    margin-bottom: 13px;
    min-width: 0;
}
.accounting-links {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.accounting-links a,
.accounting-reports summary {
    display: block;
    white-space: nowrap;
    padding: 8px 9px;
    color: #4a5d77;
    font-weight: 650;
    font-size: 13px;
}
.accounting-links a[aria-current],
.accounting-reports .report-active {
    box-shadow: inset 0 -2px #1757ce;
    color: #174caa;
}
.accounting-links a:hover,
.accounting-reports summary:hover {
    background: #eaf1fc;
    color: #174caa;
}
.accounting-reports {
    position: relative;
    flex: none;
}
.accounting-reports summary {
    list-style: none;
}
.accounting-reports summary::-webkit-details-marker {
    display: none;
}
.accounting-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    z-index: 6;
    min-width: 160px;
    display: grid;
    gap: 2px;
    padding: 5px;
    border: 1px solid #dce5f1;
    border-radius: 9px;
    background: white;
    box-shadow: 0 8px 22px #12284622;
}
.accounting-menu a {
    padding: 7px 9px;
    border-radius: 5px;
    color: #344963;
    white-space: nowrap;
}
.accounting-menu a:hover,
.accounting-menu a[aria-current] {
    background: #eaf1fc;
    color: #174caa;
}

.accounting-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 11px;
}
.accounting-metric {
    background: white;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    overflow: hidden;
}
.accounting-metric > a,
.accounting-metric > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    align-items: center;
    padding: 8px 12px;
    color: #53637c;
    font-size: 13px;
    font-weight: 600;
}
.accounting-metric > a:hover {
    background: #f3f7ff;
    color: #144ba9;
}
.accounting-metric > a:focus-visible {
    outline: 2px solid #1757ce;
    outline-offset: -3px;
}
.accounting-metric strong {
    grid-column: 1 / -1;
    font-size: 24px;
    color: #14243e;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.metric-arrow {
    color: #3566ae;
}

.accounting-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin-bottom: 13px;
}
.accounting-summary,
.accounting-panels {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.accounting-overview-grid .card,
.accounting-panels .card {
    min-width: 0;
    border-radius: 8px;
    box-shadow: none;
}
.accounting-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}
.accounting-overview-grid .card-heading,
.accounting-panels .card-heading {
    min-height: 39px;
    align-items: center;
    padding: 8px 11px;
    border-bottom: 1px solid #e8edf5;
}
.accounting-overview-grid h2,
.accounting-panels h2 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}
.accounting-switch {
    display: inline-flex;
    padding: 2px;
    gap: 2px;
    background: #eef2f8;
    border-radius: 7px;
    white-space: nowrap;
}
.accounting-switch a {
    padding: 3px 7px;
    color: #4c617b;
    font-size: 12px;
    font-weight: 650;
    border-radius: 5px;
}
.accounting-switch a[aria-current] {
    background: white;
    color: #174caa;
    box-shadow: 0 1px 3px #1c3c6420;
}

.cash-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 11px;
    padding: 8px 11px;
}
.cash-metrics dt {
    color: #526580;
    font-size: 12px;
}
.cash-metrics dd,
.cash-net strong {
    color: #172946;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.cash-net {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 11px;
    border-top: 1px solid #e8edf5;
    color: #526580;
    font-size: 12px;
}
.bank-empty {
    padding: 9px 11px;
    font-size: 13px;
}
.account-balances th,
.account-balances td {
    padding: 6px 11px;
}
.account-balances small {
    display: block;
}
.transaction-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.accounting-summary-heading {
    align-items: center;
    flex-direction: row;
    margin-bottom: 7px;
}
.accounting-panels th,
.accounting-panels td {
    padding: 6px 9px;
}
.accounting-panels td {
    font-size: 13px;
}
.accounting-panels td:first-child a {
    font-size: inherit;
}

.flow-legend {
    display: flex;
    gap: 11px;
    color: #526580;
    font-size: 12px;
    padding: 7px 11px 0;
}
.flow-legend span::before {
    display: inline-block;
    margin-right: 5px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: #1558e8;
    content: '';
}
.flow-legend span:last-child::before {
    background: #eaa529;
}
.flow-scroll {
    overflow-x: auto;
    padding: 5px 11px 1px;
}
.flow-bars {
    display: flex;
    min-width: 260px;
    gap: 3px;
    height: 126px;
}
.flow-day {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    flex: 1;
    text-align: center;
}
.flow-day small {
    padding-top: 4px;
    white-space: nowrap;
    font-size: 10px;
}
.flow-pair {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    border-bottom: 1px solid #dae5f6;
    background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #edf2fb calc(25% - 1px) 25%);
}
.flow-pair i {
    height: var(--bar);
    width: min(36%, 15px);
    border-radius: 3px 3px 0 0;
    background: #1558e8;
}
.flow-pair i:last-child {
    background: #eaa529;
}
.flow-caption {
    color: #61738d;
    font-size: 11px;
    padding: 4px 11px 8px;
}
@media (min-width: 1051px) {
    .accounting-workspace .shell {
        grid-template-columns: 211px minmax(0, 1fr);
    }
}
@media (max-width: 1050px) {
    .accounting-panels {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 680px) {
    .accounting-workspace .main, .accounting-workspace .topbar {
        padding-inline: 12px;
    }
    .accounting-overview-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .accounting-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    .flow-day:nth-child(even) small {
        visibility: hidden;
    }
    .accounting-links a, .accounting-reports summary {
        padding: 7px;
        font-size: 12px;
    }
}
@media (max-width: 380px) {
    .accounting-heading h1 {
        font-size: 17px;
    }
    .transaction-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media print {
    .accounting-nav, .accounting-switch {
        display: none;
    }
}

.erp-workspace .workspace,
.launcher .workspace {
    min-width: 0;
    line-height: 1.55;
    background: #f6f8fb;
}
@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
    ::view-transition {
        pointer-events: none;
    }
    ::view-transition-group(root) {
        animation-duration: 120ms;
    }
}
.erp-workspace .shell .sidebar {
    background: #fff;
    padding: 20px 14px;
}
.erp-workspace .topbar {
    min-height: 60px;
    background: #fcfdff;
}
.sidebar-toggle,
.sidebar-heading .sidebar-close,
.sidebar-mobile-link,
.sidebar-backdrop {
    display: none;
}
.sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sidebar-frame { display: contents; }
.sidebar-brand-mark,
.sidebar-resize { display: none; }
.erp-workspace .sidebar .sidebar-root-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 5px 9px;
}
.sidebar-root-link .nav-module-icon {
    flex: 0 0 28px;
    background: transparent;
}
.erp-workspace .sidebar .sidebar-root-link .sidebar-label {
    width: auto;
    color: inherit;
    font: inherit;
    text-align: start;
}
.erp-workspace .sidebar .sidebar-root-link .nav-module-icon {
    color: inherit;
}
@media screen and (min-width: 801px) {
    .erp-workspace .shell {
        --sidebar-width: 190px;
        grid-template-columns: var(--sidebar-preferred-width, var(--sidebar-width)) minmax(0, 1fr);
    }
    .sidebar-frame {
        display: block;
        position: sticky;
        inset-block-start: 0;
        min-width: 0;
        height: 100dvh;
    }
    .erp-workspace .shell .sidebar {
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow-x: clip;
    }
    .sidebar-resize {
        display: block;
        position: absolute;
        inset: 0 0 0 auto;
        z-index: 2;
        width: 10px;
        border-inline-end: 3px solid transparent;
        cursor: col-resize;
        touch-action: none;
    }
    .sidebar-resize:is(:hover, :focus-visible),
    .sidebar-resizing .sidebar-resize {
        border-color: #75a4f0;
    }
    .sidebar-resizing {
        cursor: col-resize;
        user-select: none;
    }
    .sidebar-label {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .erp-workspace .sidebar-toggle {
        display: inline-flex;
        width: 40px;
        padding: 0;
        background: transparent;
        color: var(--muted);
    }
    .erp-workspace .sidebar-toggle:hover {
        background: #edf3fc;
    }
    [data-sidebar-collapsed] .erp-workspace .shell {
        grid-template-columns: 64px minmax(0, 1fr);
    }
    [data-sidebar-collapsed] .erp-workspace .shell .sidebar {
        padding-inline: 8px;
    }
    [data-sidebar-collapsed] .sidebar-heading {
        justify-content: center;
    }
    [data-sidebar-collapsed] .sidebar-heading .brand {
        padding-inline: 0;
    }
    [data-sidebar-collapsed] .sidebar-brand-mark {
        display: block;
    }
    [data-sidebar-collapsed] .sidebar :is(.sidebar-label, .nav-module-links, .octadiv-logo),
    [data-sidebar-collapsed] .sidebar .nav-group > summary::after {
        display: none;
    }
    [data-sidebar-collapsed] .erp-workspace .sidebar :is(.nav-group > summary, .sidebar-root-link) {
        justify-content: center;
        padding-inline: 0;
    }
    @media (prefers-reduced-motion: no-preference) {
        :root:not(.sidebar-resizing) .erp-workspace .shell {
            transition: grid-template-columns 170ms ease-out;
        }
    }
}
.app-search-link {
    width: 39px;
    padding: 0;
    background: transparent;
    color: var(--muted);
}
.app-search-link:hover {
    background: #edf3fc;
}
.erp-workspace .main {
    position: relative;
    isolation: isolate;
    max-width: 1560px;
    padding: 26px clamp(18px, 3vw, 44px) 40px;
}
.erp-workspace .page-head {
    margin-bottom: 24px;
}
.erp-workspace .card {
    border-radius: 14px;
    border-color: #e0e7f2;
}
.erp-workspace .card-heading {
    padding: 16px 20px;
    align-items: center;
}
.overview-metrics .metric {
    display: grid;
    align-content: start;
    gap: 3px;
}
.overview-metrics .metric strong {
    margin: 0;
    font-size: clamp(1rem, 2.2vw, 1.65rem);
}
.dashboard-grid.lower {
    align-items: start;
}
.erp-workspace .filters,
.erp-workspace .editor {
    padding: 20px;
}
.erp-workspace .pipeline-filters > label:first-child {
    flex: 0 1 16rem;
    min-width: min(100%, 12rem);
}
.erp-workspace .pipeline-filters input[type="search"] {
    min-width: 0;
}
.active-office {
    max-width: min(24vw, 16rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 650;
}
.pipeline-filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.pipeline-filter-actions .check {
    min-height: 44px;
}
.pipeline-filter-actions .check input {
    width: 1rem;
    height: 1rem;
    flex: none;
}
@media (max-width: 540px) {
    .erp-workspace .pipeline-filters > label,
    .erp-workspace .pipeline-filters > label:first-child {
        flex: 1 0 100%;
    }
}
.erp-workspace .form-grid {
    gap: 18px;
}
.erp-workspace label {
    gap: 7px;
}
.erp-workspace :is(input, select, textarea) {
    border-color: #d5deeb;
}
.erp-workspace :is(th, td) {
    padding: 12px 18px;
    border-color: #e9eef6;
}
.erp-workspace th {
    color: #344865;
    background: #f4f7fc;
    font-size: .8rem;
    font-weight: 650;
    white-space: normal;
}
.erp-workspace .table-wrap {
    scrollbar-color: #b6c5db #f1f5fb;
    scrollbar-width: thin;
}
.erp-workspace .sidebar nav {
    margin-block: 12px;
}
.erp-workspace .sidebar .nav-group > summary,
.erp-workspace .sidebar .nav-more > summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 43px;
    padding: 5px 9px;
    border-radius: 9px;
    font-size: 13px;
    cursor: pointer;
    list-style: none;
}
.erp-workspace .nav-group summary::-webkit-details-marker {
    display: none;
}
.erp-workspace .nav-group > summary::after,
.erp-workspace .nav-more > summary::after {
    content: '';
    width: 6px;
    height: 6px;
    border-block-end: 1.5px solid;
    border-inline-end: 1.5px solid;
    margin-left: auto;
    transform: rotate(-45deg);
}
.erp-workspace .nav-group[open] > summary {
    background: #eff4fc;
    color: #174caa;
}
.erp-workspace :is(.nav-group, .nav-more)[open] > summary::after {
    transform: rotate(45deg);
}
.sidebar .nav-group > summary .nav-module-icon {
    flex-basis: 28px;
    background: transparent;
}
.sidebar .nav-module-icon .erp-symbol {
    transform: scale(.72);
}
.nav-module-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    aspect-ratio: 1;
    border-radius: 7px;
    background: #f1f5fd;
    color: #245dc2;
}
.erp-symbol {
    display: block;
    width: 23px;
    height: 23px;
    position: relative;
    font-size: 0;
}
.erp-symbol.chart {
    border-left: 2px solid;
    border-bottom: 2px solid;
    background:
        linear-gradient(currentColor, currentColor) 22% 79% / 16% 33% no-repeat,
        linear-gradient(currentColor, currentColor) 53% 74% / 16% 56% no-repeat,
        linear-gradient(currentColor, currentColor) 85% 59% / 16% 81% no-repeat;
}
.erp-symbol.people {
    background:
        radial-gradient(circle, currentColor 66%, transparent 70%) 25% 10% / 32% 32% no-repeat,
        radial-gradient(circle, currentColor 66%, transparent 70%) 81% 18% / 25% 25% no-repeat,
        radial-gradient(ellipse at bottom, currentColor 67%, transparent 70%) 8% 80% / 62% 43% no-repeat,
        radial-gradient(ellipse at bottom, currentColor 67%, transparent 70%) 94% 78% / 39% 35% no-repeat;
}
.erp-symbol.ledger,
.erp-symbol.contacts {
    border: 2px solid;
    border-radius: 4px;
}
.erp-symbol.ledger {
    background:
        linear-gradient(currentColor, currentColor) 50% 30% / 60% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 50% 56% / 60% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 50% 82% / 60% 2px no-repeat;
}
.erp-symbol.contacts {
    background:
        radial-gradient(circle, currentColor 62%, transparent 68%) 16% 23% / 33% 35% no-repeat,
        radial-gradient(ellipse at bottom, currentColor 65%, transparent 70%) 12% 76% / 40% 32% no-repeat,
        linear-gradient(currentColor, currentColor) 88% 40% / 26% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 88% 65% / 26% 2px no-repeat;
}
.erp-symbol.workflow {
    background:
        radial-gradient(circle, currentColor 63%, transparent 70%) 50% 0 / 36% 36% no-repeat,
        radial-gradient(circle, currentColor 63%, transparent 70%) 0 100% / 36% 36% no-repeat,
        radial-gradient(circle, currentColor 63%, transparent 70%) 100% 100% / 36% 36% no-repeat,
        linear-gradient(currentColor, currentColor) 50% 52% / 68% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 50% 37% / 2px 35% no-repeat,
        linear-gradient(currentColor, currentColor) 18% 67% / 2px 27% no-repeat,
        linear-gradient(currentColor, currentColor) 82% 67% / 2px 27% no-repeat;
}
.erp-symbol.access {
    background: currentColor;
    clip-path: polygon(50% 1%, 90% 17%, 90% 53%, 72% 79%, 50% 98%, 28% 79%, 10% 53%, 10% 17%);
}
.erp-symbol.boxes {
    background:
        linear-gradient(currentColor, currentColor) 0 0 / 43% 43% no-repeat,
        linear-gradient(currentColor, currentColor) 100% 0 / 43% 43% no-repeat,
        linear-gradient(currentColor, currentColor) 0 100% / 43% 43% no-repeat,
        linear-gradient(currentColor, currentColor) 100% 100% / 43% 43% no-repeat;
}
.erp-symbol.settings {
    background:
        radial-gradient(circle, currentColor 64%, transparent 70%) 23% 12% / 27% 27% no-repeat,
        radial-gradient(circle, currentColor 64%, transparent 70%) 77% 50% / 27% 27% no-repeat,
        radial-gradient(circle, currentColor 64%, transparent 70%) 30% 88% / 27% 27% no-repeat,
        linear-gradient(currentColor, currentColor) 50% 22% / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 50% 50% / 100% 2px no-repeat,
        linear-gradient(currentColor, currentColor) 50% 78% / 100% 2px no-repeat;
}
.nav-module-links {
    margin: 4px 0 8px 22px;
    padding-inline-start: 8px;
    border-inline-start: 1px solid #e0e8f4;
}
.erp-workspace .sidebar .nav-more > summary {
    min-height: 34px;
    color: var(--muted);
    font-size: 12px;
}
.erp-workspace .sidebar .nav-module-links .nav-link {
    min-height: 31px;
    padding: 5px 8px;
    font-size: 12px;
}
.erp-workspace .sidebar .nav-link.selected {
    background: #eaf1ff;
    color: #174caa;
}
.nav-all-apps {
    margin-top: 12px;
}
.reference-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.reference-page-heading h1 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 8px;
}
.reference-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: .85rem;
}
.reference-breadcrumb a {
    color: #1757ce;
}
.reference-preview-status {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: .82rem;
}
.reference-add {
    min-width: 35px;
}
.reference-table,
.reference-filters,
.reference-dashboard .card {
    box-shadow: 0 14px 32px -24px #182d5960;
}
.reference-table-tools,
.reference-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    padding: 18px 20px;
}
.reference-table-tools {
    justify-content: space-between;
    align-items: center;
}
.reference-table-tools label {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.reference-table-tools select {
    width: 72px;
}
.reference-table-tools input {
    width: min(220px, 100%);
}
.reference-filters {
    margin-bottom: 12px;
}
.reference-filters label {
    flex: 1 1 130px;
}
.reference-table th,
.reference-dashboard th {
    background: #f3f6fc;
}
.reference-table td.empty {
    text-align: center;
    padding: 32px 18px;
}
.reference-dashboard {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px;
}
.reference-dashboard .accounting-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
}
.reference-dashboard .accounting-metric {
    --metric-ink: #174caa;
    --metric-tint: #eaf1ff;
    background: var(--metric-tint);
    border-color: transparent;
}
.reference-dashboard .accounting-metric:nth-child(2) {
    --metric-ink: #0c6375;
    --metric-tint: #e3f5fa;
}
.reference-dashboard .accounting-metric:nth-child(3) {
    --metric-ink: #87530a;
    --metric-tint: #fff2d7;
}
.reference-dashboard .accounting-metric:nth-child(4) {
    --metric-ink: #5147a0;
    --metric-tint: #efecff;
}
.reference-dashboard .accounting-metric > :is(a, div) {
    min-height: 112px;
    padding: 15px 16px;
    color: var(--metric-ink);
    background: none;
}
.reference-dashboard .accounting-metric > a:hover {
    background: #ffffff66;
}
.reference-dashboard .accounting-metric strong {
    grid-column: auto;
}
.reference-metric-icon {
    display: grid;
    place-items: center;
    justify-self: start;
    width: 31px;
    height: 31px;
    border-radius: 7px;
    background: white;
    font-size: 18px;
}
.reference-metric-label {
    grid-column: 1 / -1;
    font-size: .96rem;
}
.reference-dashboard .card-heading h2 {
    border-left: 3px solid var(--octa-blue);
    padding-left: 8px;
}
.reference-cash-summary {
    align-self: stretch;
}
.reference-cash-summary .cash-metrics {
    gap: 12px;
    padding: 14px 18px;
}
.reference-cash-summary .cash-metrics div {
    background: #f5f8fd;
    border-radius: 7px;
    padding: 10px 12px;
}
.reference-cash-summary .cash-metrics dd {
    margin-top: 3px;
    font-size: 1.12rem;
}
@media screen and (min-width: 1051px) {
    .erp-workspace .shell {
        --sidebar-width: 216px;
    }
}
@media (max-width: 800px) {
    .erp-workspace.menu-open {
        overflow: hidden;
    }
    .erp-workspace .shell .sidebar {
        display: flex;
        inset: 0 auto 0 0;
        width: min(320px, calc(100vw - 48px));
        height: 100dvh;
        overscroll-behavior: contain;
        z-index: 12;
        visibility: hidden;
        transform: translateX(-100%);
    }
    .erp-workspace .shell .sidebar.open {
        visibility: visible;
        transform: translateX(0);
    }
    .erp-workspace .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: #14223a66;
        z-index: 11;
        visibility: hidden;
        opacity: 0;
    }
    .erp-workspace.menu-open .sidebar-backdrop {
        visibility: visible;
        opacity: 1;
    }
    @media (prefers-reduced-motion: no-preference) {
        .erp-workspace .shell .sidebar {
            transition: transform 170ms ease-out, visibility 0s 170ms;
        }
        .erp-workspace .sidebar-backdrop {
            transition: opacity 170ms ease-out, visibility 0s 170ms;
        }
        .erp-workspace .shell .sidebar.open,
        .erp-workspace.menu-open .sidebar-backdrop {
            transition-delay: 0s;
        }
    }
    .sidebar-heading .sidebar-close,
    .sidebar .sidebar-mobile-link {
        display: inline-flex;
    }
    .sidebar-heading .sidebar-close {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.4rem;
        padding: 0;
        background: #eff4fc;
    }
    .erp-workspace .sidebar :is(.nav-group > summary, .nav-more > summary, .nav-module-links .nav-link) {
        min-height: 44px;
    }
    .erp-workspace .top-tools [data-find-app] {
        display: none;
    }
    .erp-workspace .topbar {
        min-height: 58px;
        padding-inline: 12px;
    }
    .erp-workspace .main {
        padding: 20px 14px 32px;
    }
    .erp-workspace .card-heading {
        padding: 12px 14px;
    }
    .erp-workspace .topbar .mobile-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0;
        color: var(--muted);
    }
    .reference-dashboard {
        grid-template-columns: minmax(0, 1fr);
    }
    .erp-workspace .reference-dashboard,
    .erp-workspace .reference-dashboard .accounting-metrics {
        gap: 10px;
    }
    .reference-dashboard .accounting-metric > :is(a, div) {
        min-height: 92px;
        padding: 12px;
    }
    .accounting-links a,
    .accounting-reports summary {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
    .accounting-reports summary {
        gap: 4px;
        max-width: 35vw;
        white-space: normal;
    }
    .reference-page-heading {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 16px;
    }
}

.erp-workspace .workspace,
.launcher .workspace {
    font-family: "Segoe UI", "Open Sans", sans-serif;
}
.company-heading {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 16px;
    margin: 12px 0 32px;
}
.octadiv-script {
    font-family: "Segoe Print", "Bradley Hand", cursive;
    font-weight: 600;
    font-size: clamp(1rem, 2vw, 1.38rem);
    color: #34588c;
    margin-top: 7px;
}
.company-create {
    position: relative;
    flex: none;
    z-index: 2;
}
.company-create summary {
    cursor: pointer;
    list-style: none;
}
.company-create summary::-webkit-details-marker {
    display: none;
}
.company-create summary .interface-icon {
    width: 16px;
    height: 16px;
}
.company-create form {
    position: absolute;
    inset: calc(100% + 10px) 0 auto auto;
    padding: 20px;
    min-width: min(270px, 80vw);
    display: grid;
    gap: 14px;
    box-shadow: 0 12px 32px #263d6224;
}
.company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 24px;
}
.company-card,
.company-empty {
    padding: clamp(22px, 3vw, 34px);
}
.company-card {
    display: grid;
    gap: 16px;
    align-content: start;
    justify-items: start;
    min-height: 190px;
}
.company-card .nav-module-icon {
    width: 44px;
}
.company-card-top {
    display: flex;
    align-items: start;
    justify-content: space-between;
    width: 100%;
}
.company-card-top .nav-module-icon {
    flex: none;
}
.company-actions {
    position: relative;
}
.company-actions summary {
    list-style: none;
    width: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 1.25rem;
}
.company-actions summary::-webkit-details-marker {
    display: none;
}
.company-actions[open] summary,
.company-actions summary:hover {
    background: var(--subtle);
}
.company-delete {
    margin-top: 20px;
    scroll-margin-top: 12px;
}
.company-delete p {
    margin-bottom: 14px;
}
.company-card h2 {
    margin: 0;
    overflow-wrap: anywhere;
}
.company-card p {
    color: var(--muted);
    overflow-wrap: anywhere;
}
.reference-dashboard,
.reference-dashboard .accounting-metrics,
.accounting-panels {
    gap: 22px;
}
.dashboard-year:not(:empty) {
    margin: 22px 0 28px;
}
.dashboard-year:has(> [hidden]) {
    margin: 0;
}
.dashboard-card-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}
.dashboard-hide {
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    background: #eff4fc;
    padding: 0;
    width: 30px;
    height: 30px;
    font-size: 19px;
    cursor: pointer;
}
.dashboard-hide:hover {
    background: #e2ecff;
    color: #174caa;
}
[data-dashboard-panels] [hidden] {
    display: none !important;
}
@media (max-width: 800px) {
    .topbar .top-start,
    .topbar .top-tools {
        min-width: 0;
    }
    .topbar .top-brand .octadiv-logo {
        width: clamp(94px, 30vw, 140px);
    }
    .topbar .account-menu .avatar {
        width: 36px;
        height: 36px;
    }
    .topbar .account-menu summary {
        gap: 6px;
        white-space: nowrap;
    }
    .account-short-name {
        display: block;
        max-width: 10ch;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: .8rem;
    }
    .company-heading {
        flex-wrap: wrap;
        margin-bottom: 20px;
    }
    .company-directory-link, .account-name {
        display: none;
    }
    .account-panel-name, .account-action.account-companies {
        display: block;
    }
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(310px, 100%), 1fr));
    gap: 24px;
    align-items: start;
}
.profile-card {
    display: grid;
    gap: 16px;
    justify-items: start;
    padding: clamp(20px, 3vw, 30px);
}
.profile-card label {
    width: 100%;
}
.profile-card h2 {
    margin: 0;
    font-size: 1.15rem;
}
.profile-card small, .profile-summary dt {
    color: var(--muted);
}
.profile-summary {
    max-width: 560px;
}
.profile-photo {
    border-radius: 50%;
    object-fit: cover;
}
.profile-summary dl {
    display: grid;
    gap: 12px;
    max-width: 100%;
}
.profile-summary dd {
    overflow-wrap: anywhere;
}

.quick-party {
    display: grid;
    gap: .75rem;
    min-inline-size: 0;
}

.quick-party[hidden],
.quick-party [role="status"]:empty {
    display: none;
}

.quick-party details {
    border: 1px solid var(--border);
    border-radius: .7rem;
    background: var(--surface);
}

.quick-party summary {
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: .6rem .85rem;
    border-radius: inherit;
    list-style: none;
    color: var(--ink);
    cursor: pointer;
}

.quick-party summary::-webkit-details-marker {
    display: none;
}

.quick-party summary:hover,
.quick-party details[open] summary {
    background: var(--subtle);
}

.quick-party details[open] summary .interface-icon {
    transform: rotate(45deg);
}

.quick-party summary:focus-visible,
.filter-choice:focus-within {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.quick-party-editor {
    display: grid;
    gap: .85rem;
    padding: .85rem;
    border-top: 1px solid var(--border);
}

.quick-party-editor button {
    justify-self: start;
}

.inventory-filters,
.settings-filters {
    gap: .75rem;
}

.inventory-filters .filter-choice {
    align-self: end;
    display: flex;
    align-items: center;
    gap: .6rem;
    min-height: 44px;
    padding: .55rem .75rem;
    border: 1px solid var(--border);
    border-radius: .65rem;
    background: var(--surface);
    cursor: pointer;
}

.inventory-filters .filter-choice:has(:checked) {
    background: var(--subtle);
}

.inventory-filters .filter-choice input {
    flex: none;
    inline-size: 1.05rem;
    block-size: 1.05rem;
    min-height: 0;
    margin: 0;
}

.access-page .access-permission-grid {
    gap: .85rem;
}

.access-page .access-permission-grid fieldset {
    background: var(--surface);
}

.access-page .access-choice + .access-choice {
    border-top: 1px solid var(--border);
}

@media (max-width: 600px) {
    .inventory-filters,
    .settings-filters {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .inventory-filters > label:not(.filter-choice),
    .settings-filters > label {
        grid-column: 1 / -1;
        min-inline-size: 0;
    }

    .inventory-filters :is(input[type="search"], select),
    .settings-filters select {
        inline-size: 100%;
        min-inline-size: 0;
    }

    .settings-filters > button {
        justify-self: start;
    }

    .quick-party-editor .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
