.bluerp-accounting-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(18rem, .82fr);
    grid-template-areas:
        "intro intro"
        "chart queue";
    align-items: stretch;
    gap: 1rem;
    color: #172f43;
}

.bluerp-accounting-dashboard__intro {
    grid-area: intro;
    display: grid;
    grid-template-columns: minmax(14rem, .8fr) minmax(0, 1.55fr);
    align-items: center;
    gap: 1.2rem;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #29485d;
    border-radius: 1rem;
    padding: 1.1rem 1.2rem;
    background:
        radial-gradient(ellipse at 94% 0%, rgb(190 154 91 / 18%), transparent 35%),
        linear-gradient(112deg, #102b40, #183f59 62%, #234f61);
    box-shadow: 0 12px 30px rgb(16 43 64 / 12%);
}

.bluerp-accounting-dashboard__intro-copy {
    min-width: 0;
}

.bluerp-accounting-dashboard__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: #e0c58e;
    font-size: .76rem;
    font-weight: 720;
    letter-spacing: .025em;
}

.bluerp-accounting-dashboard__eyebrow svg {
    width: 1rem;
    height: 1rem;
}

.bluerp-accounting-dashboard__intro h1 {
    margin: .35rem 0 0;
    color: #fff;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.bluerp-accounting-dashboard__intro p {
    max-width: 30rem;
    margin: .45rem 0 0;
    color: #d1dee5;
    font-size: .82rem;
    line-height: 1.6;
}

.bluerp-accounting-dashboard__toolbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .5rem;
    min-width: 0;
}

.bluerp-accounting-dashboard__quick-action {
    display: flex;
    min-width: 0;
    min-height: 3.35rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: .65rem;
    padding: .45rem .55rem;
    background: rgb(255 255 255 / 7%);
    color: #fff;
    font-size: .72rem;
    font-weight: 680;
    line-height: 1.35;
    text-align: center;
    text-decoration: none;
    transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.bluerp-accounting-dashboard__quick-action:hover {
    transform: translateY(-1px);
    border-color: rgb(224 197 142 / 60%);
    background: rgb(255 255 255 / 14%);
}

.bluerp-accounting-dashboard__quick-action:focus-visible,
.bluerp-accounting-dashboard__queue-card:focus-visible {
    outline: 3px solid #d8b976;
    outline-offset: 2px;
}

.bluerp-accounting-dashboard__quick-action-icon {
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    flex: none;
    place-items: center;
    border-radius: .55rem;
    background: rgb(255 255 255 / 11%);
    color: #e7d4a8;
}

.bluerp-accounting-dashboard__quick-action-icon svg {
    width: 1rem;
    height: 1rem;
}

.bluerp-accounting-dashboard__currency-note {
    grid-column: 1 / -1;
    border: 1px solid #d8e3e9;
    border-radius: .65rem;
    padding: .65rem .85rem;
    background: #fff;
    color: #435c6d;
    font-size: .78rem;
    line-height: 1.55;
}

.bluerp-accounting-dashboard__currency-note p {
    margin: 0;
}

.bluerp-accounting-dashboard__currency-note p + p {
    margin-block-start: .2rem;
}

.bluerp-accounting-dashboard__currency-note--warning {
    border-color: #ead5ad;
    background: #fffaf0;
    color: #805b1f;
}

.bluerp-accounting-dashboard__chart {
    grid-area: chart;
    min-width: 0;
}

.bluerp-accounting-dashboard__chart .fi-wi-chart,
.bluerp-accounting-dashboard__chart .fi-section {
    height: 100%;
}

.bluerp-accounting-dashboard__chart .fi-section {
    overflow: hidden;
    border: 1px solid #d9e2e9;
    border-radius: .85rem;
    background: #fff;
    box-shadow: 0 2px 8px rgb(17 60 70 / 4%);
}

.bluerp-accounting-dashboard__chart .fi-section-header {
    gap: .75rem;
    border-block-end: 1px solid #e6edf1;
    background: linear-gradient(90deg, #f4f7f9, #fff 75%);
}

.bluerp-accounting-dashboard__chart .fi-section-header-heading {
    color: #173a54;
    font-size: 1rem;
    font-weight: 740;
}

.bluerp-accounting-dashboard__chart .fi-section-content {
    padding: .9rem 1rem 1rem;
}

.bluerp-accounting-dashboard__chart .fi-wi-chart-filter {
    min-width: min(18rem, 42vw);
}

.bluerp-accounting-dashboard__chart .fi-wi-chart-frame {
    min-height: 19rem;
}

.bluerp-accounting-dashboard__queue-panel {
    grid-area: queue;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .5rem;
    overflow: hidden;
    border: 1px solid #d9e2e9;
    border-radius: .85rem;
    padding: .9rem;
    background: #fff;
    box-shadow: 0 2px 8px rgb(17 60 70 / 4%);
}

.bluerp-accounting-dashboard__section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .1rem .1rem .65rem;
}

.bluerp-accounting-dashboard__section-heading h2 {
    margin: 0;
    color: #173a54;
    font-size: 1rem;
    font-weight: 740;
    letter-spacing: -.02em;
}

.bluerp-accounting-dashboard__section-heading p {
    margin: .28rem 0 0;
    color: #667b89;
    font-size: .74rem;
    line-height: 1.5;
}

.bluerp-accounting-dashboard__live {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: .35rem;
    border: 1px solid #d9e8df;
    border-radius: 999px;
    padding: .25rem .5rem;
    background: #f4faf6;
    color: #396d4b;
    font-size: .65rem;
    font-weight: 680;
}

.bluerp-accounting-dashboard__live > span {
    width: .42rem;
    height: .42rem;
    border-radius: 999px;
    background: #36a265;
    box-shadow: 0 0 0 3px rgb(54 162 101 / 13%);
}

.bluerp-accounting-dashboard__queue {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
}

.bluerp-accounting-dashboard__queue-card {
    display: grid;
    min-width: 0;
    min-height: 4.2rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    border-block-start: 1px solid #edf1f4;
    padding: .55rem .15rem;
    color: inherit;
    text-decoration: none;
    transition: background-color 140ms ease;
}

.bluerp-accounting-dashboard__queue-card:hover {
    background: #f6f9fb;
}

.bluerp-accounting-dashboard__queue-icon {
    display: grid;
    width: 2.15rem;
    height: 2.15rem;
    flex: none;
    place-items: center;
    border-radius: .65rem;
    background: #edf3f7;
    color: #1e4e72;
}

.bluerp-accounting-dashboard__queue-icon svg,
.bluerp-accounting-dashboard__queue-arrow {
    width: 1rem;
    height: 1rem;
}

.bluerp-accounting-dashboard__queue-copy {
    display: grid;
    min-width: 0;
    gap: .1rem;
}

.bluerp-accounting-dashboard__queue-copy > span {
    overflow: hidden;
    color: #4a6070;
    font-size: .73rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bluerp-accounting-dashboard__queue-copy strong {
    overflow-wrap: anywhere;
    color: #173a54;
    font-size: .98rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.3;
}

.bluerp-accounting-dashboard__queue-copy small {
    color: #788b97;
    font-size: .67rem;
}

.bluerp-accounting-dashboard__queue-arrow {
    flex: none;
    color: #91a2ac;
}

.bluerp-accounting-dashboard__queue-card--amber .bluerp-accounting-dashboard__queue-icon {
    background: #fff7e8;
    color: #b87313;
}

.bluerp-accounting-dashboard__queue-card--rose .bluerp-accounting-dashboard__queue-icon {
    background: #fff0f0;
    color: #bb4b4b;
}

.dark .bluerp-accounting-dashboard {
    color: #e7eef3;
}

.dark .bluerp-accounting-dashboard__queue-panel,
.dark .bluerp-accounting-dashboard__currency-note,
.dark .bluerp-accounting-dashboard__chart .fi-section {
    border-color: #304553;
    background: #122631;
}

.dark .bluerp-accounting-dashboard__intro {
    border-color: #355366;
    background:
        radial-gradient(ellipse at 94% 0%, rgb(189 158 101 / 14%), transparent 35%),
        linear-gradient(112deg, #0c1d2a, #142b3a 62%, #183642);
}

.dark .bluerp-accounting-dashboard__intro p,
.dark .bluerp-accounting-dashboard__section-heading p {
    color: #b1c0ca;
}

.dark .bluerp-accounting-dashboard__section-heading h2,
.dark .bluerp-accounting-dashboard__queue-copy strong,
.dark .bluerp-accounting-dashboard__chart .fi-section-header-heading {
    color: #e7eef3;
}

.dark .bluerp-accounting-dashboard__chart .fi-section-header {
    border-color: #304553;
    background: linear-gradient(90deg, #1a3341, #122631 75%);
}

.dark .bluerp-accounting-dashboard__queue-card {
    border-color: #304553;
}

.dark .bluerp-accounting-dashboard__queue-card:hover {
    background: #1a3341;
}

.dark .bluerp-accounting-dashboard__queue-copy > span,
.dark .bluerp-accounting-dashboard__queue-copy small {
    color: #a9bbc6;
}

.dark .bluerp-accounting-dashboard__queue-icon {
    background: #1a3c4c;
    color: #a6d5e4;
}

.dark .bluerp-accounting-dashboard__live {
    border-color: #315943;
    background: #153423;
    color: #a9dfb8;
}

.dark .bluerp-accounting-dashboard__currency-note--warning {
    border-color: #71572c;
    background: #362c1b;
    color: #f0d49c;
}

@media (max-width: 1100px) {
    .bluerp-accounting-dashboard {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "intro"
            "chart"
            "queue";
    }

    .bluerp-accounting-dashboard__intro {
        grid-template-columns: minmax(0, 1fr);
    }

    .bluerp-accounting-dashboard__toolbar {
        grid-template-columns: repeat(auto-fit, minmax(8.25rem, 1fr));
    }

    .bluerp-accounting-dashboard__queue {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 1rem;
    }

    .bluerp-accounting-dashboard__queue-card:nth-child(-n + 2) {
        border-block-start: 1px solid #edf1f4;
    }
}

@media (max-width: 640px) {
    .bluerp-accounting-dashboard {
        gap: .75rem;
    }

    .bluerp-accounting-dashboard__intro {
        gap: .85rem;
        border-radius: .75rem;
        padding: .9rem;
    }

    .bluerp-accounting-dashboard__toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bluerp-accounting-dashboard__quick-action {
        justify-content: flex-start;
        text-align: start;
    }

    .bluerp-accounting-dashboard__queue-panel {
        padding: .7rem;
    }

    .bluerp-accounting-dashboard__queue {
        grid-template-columns: minmax(0, 1fr);
    }

    .bluerp-accounting-dashboard__queue-card:nth-child(2) {
        border-block-start: 1px solid #edf1f4;
    }

    .bluerp-accounting-dashboard__section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .bluerp-accounting-dashboard__chart .fi-section-content {
        padding: .7rem;
    }

    .bluerp-accounting-dashboard__chart .fi-section-header {
        align-items: stretch;
        flex-direction: column;
    }

    .bluerp-accounting-dashboard__chart .fi-section-header-text-ctn,
    .bluerp-accounting-dashboard__chart .fi-section-header-after-ctn {
        width: 100%;
        min-width: 0;
    }

    .bluerp-accounting-dashboard__chart .fi-section-header-description {
        display: none;
    }

    .bluerp-accounting-dashboard__chart .fi-wi-chart-filter {
        width: 100%;
        min-width: 0;
    }

    .bluerp-accounting-dashboard__chart .fi-wi-chart-filter select {
        width: 100%;
        max-width: 100%;
    }

    .bluerp-accounting-dashboard__chart .fi-wi-chart-frame {
        min-height: 16rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bluerp-accounting-dashboard__quick-action,
    .bluerp-accounting-dashboard__queue-card {
        transition: none;
    }
}

/* Accounting workspace: ledger-first shell shared by lists, forms, reports, and record pages. */
body:has(.bluerp-sidebar[data-workspace="accounting"]) {
    --accounting-ink: #172f43;
    --accounting-muted: #596d7d;
    --accounting-line: #d9e2e9;
    --accounting-paper: #fff;
    --accounting-canvas: #f3f6f8;
    --accounting-wash: #eaf0f5;
    --accounting-brand: #1e4e72;
    --accounting-brand-deep: #15364f;
    --accounting-accent: #92703c;
    --workspace-color: #1e4e72;
    --workspace-depth: #15364f;
    --workspace-soft: color-mix(in srgb, #1e4e72 9%, #fff);
    --bluerp-department: var(--accounting-brand);
    --bluerp-department-depth: var(--accounting-brand-deep);
    --bluerp-primary: var(--accounting-brand);
    --bluerp-primary-soft: var(--workspace-soft);
    --primary-600: var(--accounting-brand);
    --primary-500: var(--accounting-brand);
    --primary-100: var(--workspace-soft);
    --primary-50: var(--workspace-soft);
    --primary-700: var(--accounting-brand-deep);
    background: var(--accounting-canvas);
    color: var(--accounting-ink);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-workspace-overview--accounting {
    --workspace-color: #1e4e72;
    --workspace-depth: #15364f;
    --workspace-soft: color-mix(in srgb, #1e4e72 9%, #fff);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-finance-desk__header {
    border-color: color-mix(in srgb, #fff 16%, var(--workspace-depth));
    background:
        radial-gradient(ellipse at 3% 110%, rgb(190 154 91 / 18%), transparent 38%),
        linear-gradient(112deg, #102b40, #183f59 58%, #234f61);
    box-shadow: 0 12px 32px rgb(16 43 64 / 13%);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-finance-desk__eyebrow {
    color: #e0c58e;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-finance-desk__mark {
    color: #e0c58e;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-finance-desk__search:focus-within {
    border-color: #d9ba78;
    box-shadow: 0 0 0 3px rgb(217 186 120 / 18%);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-finance-desk__header a:focus-visible,
body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-finance-desk__header button:focus-visible {
    outline-color: #e0c58e;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-main,
body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-main-ctn {
    background: var(--accounting-canvas);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-page {
    gap: 1.15rem;
    padding-block-end: 2rem;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-page-content {
    gap: 1rem;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-header {
    position: relative;
    align-items: center;
    gap: 1rem;
    padding-block: 1rem .85rem;
    border-block-end: 1px solid var(--accounting-line);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-header::after {
    position: absolute;
    inset-block-end: -1px;
    inset-inline-start: 0;
    width: 4.5rem;
    height: 2px;
    background: var(--accounting-brand);
    content: "";
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-header-heading {
    color: var(--accounting-ink);
    font-size: clamp(1.25rem, 1.8vw, 1.7rem);
    font-weight: 740;
    letter-spacing: -.025em;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-page-sub-navigation-tabs {
    width: fit-content;
    max-width: 100%;
    border: 1px solid var(--accounting-line);
    border-radius: .45rem;
    background: var(--accounting-paper);
    box-shadow: none;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-page-sub-navigation-tabs a[aria-current="page"] {
    color: var(--accounting-brand);
    box-shadow: inset 0 -2px var(--accounting-brand);
}

body:has(.bluerp-accounting-report-layout) .fi-page-sub-navigation-tabs {
    align-self: flex-start;
    margin-inline: 0;
    padding: .1rem;
    border: 0;
    border-radius: .35rem;
    background: transparent;
}

body:has(.bluerp-accounting-report-layout) .fi-page-sub-navigation-tabs .fi-tabs-item {
    min-height: 2.2rem;
    border-radius: .32rem;
    padding-inline: .75rem;
}

body:has(.bluerp-accounting-report-layout) .fi-page-sub-navigation-tabs .fi-tabs-item.fi-active {
    background: var(--accounting-paper);
    box-shadow: inset 0 -2px var(--accounting-brand);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section,
body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-ctn,
body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-in-entry-wrp {
    border: 1px solid var(--accounting-line);
    border-radius: .55rem;
    background: var(--accounting-paper);
    box-shadow: 0 1px 2px rgb(17 60 70 / 4%);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section-header {
    gap: .75rem;
    padding: 1rem 1.15rem;
    border-block-end: 1px solid var(--accounting-line);
    background: linear-gradient(90deg, var(--accounting-wash), var(--accounting-paper) 72%);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section-header-heading {
    color: var(--accounting-brand-deep);
    font-size: .94rem;
    font-weight: 730;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section-header-description,
body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-fo-field-label-content {
    color: var(--accounting-muted);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section-content,
body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section-content-ctn {
    padding: 1.15rem;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-fo-repeater-items {
    gap: .55rem;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-fo-repeater-item {
    overflow: hidden;
    border: 1px solid var(--accounting-line);
    border-inline-start: 3px solid var(--accounting-brand);
    border-radius: .38rem;
    background: var(--accounting-paper);
    box-shadow: none;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-fo-repeater-item-header {
    background: var(--accounting-wash);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-fo-repeater-item-header-label {
    color: var(--accounting-brand-deep);
    font-weight: 720;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-input-wrp {
    min-height: 2.7rem;
    border-color: var(--accounting-line);
    border-radius: .38rem;
    background: var(--accounting-paper);
    box-shadow: 0 1px 1px rgb(17 60 70 / 3%);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-input-wrp:focus-within {
    border-color: var(--accounting-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accounting-brand) 16%, transparent);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-fo-field-label-content {
    color: #385267;
    font-size: .78rem;
    font-weight: 680;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-btn-color-primary {
    border-color: var(--accounting-brand);
    background: var(--accounting-brand);
    color: #fff;
    box-shadow: 0 2px 5px color-mix(in srgb, var(--accounting-brand) 18%, transparent);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-btn-color-primary:hover {
    border-color: #173d5a;
    background: #173d5a;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-ctn {
    overflow: hidden;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-header-ctn {
    border-block-start: 2px solid var(--accounting-brand);
    border-block-end: 1px solid var(--accounting-line);
    background: var(--accounting-wash);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-header-cell {
    color: #38565e;
    font-size: .73rem;
    font-weight: 720;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-cell {
    color: #273d55;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-row {
    border-block-end: 1px solid var(--accounting-line);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-row:hover {
    background: color-mix(in srgb, var(--accounting-brand) 5%, var(--accounting-paper));
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-header-toolbar,
body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-footer {
    border-color: var(--accounting-line);
    background: #f8fafc;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-filters .fi-section {
    border-inline-start: 3px solid var(--accounting-brand);
    background: #f7f9fb;
    box-shadow: none;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-in-entry-wrp {
    padding: .85rem 1rem;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-in-entry-wrp-label {
    color: var(--accounting-muted);
    font-size: .72rem;
    font-weight: 650;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-in-entry-wrp-content {
    color: var(--accounting-ink);
    font-variant-numeric: tabular-nums;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-badge {
    border-radius: .25rem;
    font-weight: 680;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-empty-state {
    min-height: 13rem;
    background: linear-gradient(180deg, #f8fafc, var(--accounting-paper));
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section .overflow-x-auto {
    overflow: auto;
    border: 1px solid var(--accounting-line);
    border-radius: .4rem;
    background: var(--accounting-paper);
    overscroll-behavior-inline: contain;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table {
    color: var(--accounting-ink);
    font-size: .8rem;
    font-variant-numeric: tabular-nums lining-nums;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table thead {
    background: var(--accounting-wash);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table th {
    padding: .8rem .9rem;
    border-block-end: 1px solid var(--accounting-line);
    color: #496176;
    font-size: .7rem;
    font-weight: 720;
    letter-spacing: 0;
    text-align: start;
    text-transform: none;
    white-space: nowrap;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table th.text-right,
body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table td.text-right {
    text-align: end;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table th.text-center {
    text-align: center;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table td {
    padding: .72rem .9rem;
    border-block-end: 1px solid var(--accounting-line);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table tbody tr[x-data] td {
    background: var(--accounting-wash);
    color: var(--accounting-brand-deep);
    font-weight: 700;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table tbody tr:hover td {
    background-color: color-mix(in srgb, var(--accounting-brand) 5%, var(--accounting-paper));
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table tbody tr[x-data]:hover td {
    background-color: color-mix(in srgb, var(--accounting-brand) 14%, var(--accounting-paper));
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table tbody tr:last-child td {
    border-block-end-color: var(--accounting-line);
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) :is(button, a, input, select, textarea):focus-visible {
    outline-color: color-mix(in srgb, var(--accounting-brand) 72%, white);
    outline-offset: 2px;
}

.bluerp-workspace-overview--accounting .bluerp-breakdown__row dt {
    display: grid;
    gap: .2rem;
}

.bluerp-workspace-overview--accounting .bluerp-breakdown__balance {
    color: var(--workspace-color);
    font-size: .77rem;
    font-weight: 720;
    font-variant-numeric: tabular-nums;
}

.bluerp-workspace-overview--accounting .bluerp-breakdown__row dd {
    color: var(--bluerp-muted);
    font-size: .78rem;
    font-weight: 650;
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) {
    --accounting-ink: #e7eef3;
    --accounting-muted: #b1c0ca;
    --accounting-line: #304553;
    --accounting-paper: #122631;
    --accounting-canvas: #0c1923;
    --accounting-wash: #1a3341;
    --accounting-brand: #1e6f83;
    --accounting-brand-deep: #dceaf0;
    --accounting-accent: #d2b477;
    --workspace-color: #91cde0;
    --workspace-depth: #152f40;
    --workspace-soft: color-mix(in srgb, #91cde0 17%, #122631);
    --bluerp-department: var(--accounting-brand);
    --bluerp-department-depth: var(--accounting-brand-deep);
    --bluerp-primary: #91cde0;
    --bluerp-primary-soft: var(--workspace-soft);
    --primary-600: #91cde0;
    --primary-500: #91cde0;
    --primary-400: #91cde0;
    --primary-300: #91cde0;
    --primary-100: var(--workspace-soft);
    --primary-50: var(--workspace-soft);
    --primary-700: #dceaf0;
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-workspace-overview--accounting {
    --workspace-color: #91cde0;
    --workspace-depth: #152f40;
    --workspace-soft: color-mix(in srgb, #91cde0 17%, #122631);
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-finance-desk__header {
    border-color: #355366;
    background:
        radial-gradient(ellipse at 3% 110%, rgb(189 158 101 / 14%), transparent 38%),
        linear-gradient(112deg, #0c1d2a, #142b3a 58%, #183642);
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-header-heading,
.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-cell,
.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-in-entry-wrp-content {
    color: var(--accounting-ink);
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-header-ctn,
.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-header-toolbar,
.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-footer,
.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-filters .fi-section {
    background: var(--accounting-wash);
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-header-cell,
.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-fo-field-label-content {
    color: #bdd2d0;
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-row:hover {
    background: color-mix(in srgb, var(--accounting-brand) 14%, var(--accounting-paper));
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-row {
    border-block-end-color: var(--accounting-line);
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-fo-repeater-item-header {
    background: var(--accounting-wash);
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-fo-repeater-item-header-label {
    color: var(--accounting-brand-deep);
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-empty-state {
    background: linear-gradient(180deg, var(--accounting-wash), var(--accounting-paper));
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table thead {
    background: var(--accounting-wash);
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table th {
    color: #bdd2d0;
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table td {
    border-block-end-color: var(--accounting-line);
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table tbody tr:hover td {
    background-color: color-mix(in srgb, var(--accounting-brand) 14%, var(--accounting-paper));
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section table tbody tr[x-data]:hover td {
    background-color: color-mix(in srgb, var(--accounting-brand) 24%, var(--accounting-paper));
}

@media (max-width: 700px) {
    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-page {
        gap: .75rem;
        padding-block-end: 1rem;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-header {
        align-items: flex-start;
        flex-direction: column;
        padding-block: .7rem;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-header-actions-ctn {
        width: 100%;
        flex-wrap: wrap;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-header-actions-ctn .fi-btn {
        flex: 1 1 auto;
        justify-content: center;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-page-sub-navigation-tabs {
        width: 100%;
        overflow-x: auto;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section-content,
    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-section-content-ctn,
    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-ctn {
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-fo-repeater-item-content {
        padding: .75rem;
    }
}

.bluerp-workspace-overview--accounting .bluerp-finance-desk__metric-copy {
    gap: .2rem;
}

.bluerp-workspace-overview--accounting .bluerp-finance-desk__metric-copy .bluerp-finance-desk__balances {
    order: 2;
    max-width: 100%;
    overflow: visible;
    color: var(--workspace-color);
    font-size: .94rem;
    line-height: 1.45;
    white-space: normal;
}

.bluerp-workspace-overview--accounting .bluerp-finance-desk__metric-copy strong {
    order: 3;
    color: var(--bluerp-muted);
    font-size: .78rem;
    font-weight: 600;
}

.bluerp-workspace-overview--accounting .bluerp-breakdown__rows {
    gap: 0;
}

.bluerp-workspace-overview--accounting .bluerp-breakdown__row {
    padding-block: .75rem;
    border-block-end: 1px solid var(--bluerp-line);
}

.bluerp-workspace-overview--accounting .bluerp-breakdown__track {
    display: none;
}

@media (max-width: 700px) {
    .bluerp-workspace-overview--accounting .bluerp-finance-desk__metric-copy strong {
        font-size: .68rem;
    }

    .bluerp-workspace-overview--accounting .bluerp-finance-desk__metric-copy .bluerp-finance-desk__balances {
        font-size: .76rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:has(.bluerp-sidebar[data-workspace="accounting"]) *,
    .bluerp-workspace-overview--accounting * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Financial statements: keep the controls in one compact rail and let the report own the page. */
body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-layout {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

body:has(.bluerp-accounting-report-layout) .fi-page-header-main-ctn {
    gap: .55rem;
    padding-block: .55rem;
}

body:has(.bluerp-accounting-report-layout) .fi-header {
    padding-block: .6rem .45rem;
}

body:has(.bluerp-accounting-report-layout) .fi-page-main {
    gap: .75rem;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters {
    margin: 0;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters > .fi-section {
    border: 1px solid var(--accounting-line);
    border-inline-start: 3px solid var(--accounting-brand);
    border-radius: .48rem;
    background: #f4f7f9;
    box-shadow: none;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-section-content-ctn {
    padding: .6rem .9rem;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-grid {
    align-items: end;
    column-gap: 1rem;
    row-gap: .65rem;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-fo-field-label-content {
    font-size: .72rem;
    white-space: nowrap;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-fo-field {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 0 .65rem;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-fo-field-label-col {
    display: flex;
    align-items: center;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-fo-field-content-col {
    min-width: 0;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-input-wrp {
    min-height: 2.45rem;
    background: var(--accounting-paper);
    box-shadow: none;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-layout > .fi-section {
    overflow: hidden;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-layout > .fi-section > .fi-section-content-ctn {
    padding: 0;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-layout > .fi-section > .fi-section-content-ctn > .fi-section-content {
    padding: 0;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-layout .overflow-x-auto.rounded-lg.border {
    border: 0 !important;
    border-radius: 0 !important;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-layout .overflow-x-auto.rounded-lg.border > table {
    border: 0;
}

body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-layout table tbody tr:has(> td[colspan]) td {
    padding-block: 1.25rem;
    color: var(--accounting-muted);
    font-size: .82rem;
    font-style: normal;
    text-align: center;
}

.bluerp-report-currency-note {
    border-radius: .45rem;
    padding: .75rem .95rem;
    font-size: .78rem;
}

.bluerp-report-empty-state {
    display: flex;
    min-height: 7rem;
    align-items: center;
    gap: .9rem;
    padding: 1.2rem 1.4rem;
    color: var(--accounting-ink);
}

.bluerp-report-empty-state__mark {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--accounting-line);
    border-radius: 50%;
    background: var(--accounting-wash);
    color: var(--accounting-brand);
    font-size: 1.25rem;
    font-weight: 700;
}

.bluerp-report-empty-state h3 {
    margin: 0;
    color: var(--accounting-brand-deep);
    font-size: .88rem;
    font-weight: 720;
}

.bluerp-report-empty-state p {
    margin: .2rem 0 0;
    color: var(--accounting-muted);
    font-size: .76rem;
}

.bluerp-report-warning {
    border-radius: .35rem;
    font-weight: 620;
}

.bluerp-aging-report-table {
    min-width: 54.125rem;
    table-layout: fixed;
}

.bluerp-aging-report-table th,
.bluerp-aging-report-table td {
    overflow: hidden;
    padding: .58rem .48rem;
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bluerp-aging-report-table thead th {
    position: sticky;
    z-index: 3;
    background: var(--accounting-wash);
    line-height: 1.3;
    white-space: normal;
}

.bluerp-aging-report-table :is(th, td):first-child {
    position: sticky;
    inset-inline-start: 0;
    z-index: 2;
    width: 2rem;
    background: var(--accounting-paper);
}

.bluerp-aging-report-table :is(th, td):nth-child(2) {
    position: sticky;
    inset-inline-start: 2rem;
    z-index: 2;
    background: var(--accounting-paper);
    text-align: start;
}

.bluerp-aging-report-table thead :is(th:first-child, th:nth-child(2)) {
    z-index: 5;
    background: var(--accounting-wash);
}

.bluerp-aging-report-table tbody tr[x-data] :is(td:first-child, td:nth-child(2)) {
    background: var(--accounting-wash);
}

.bluerp-aging-report-table tbody tr:last-child td {
    font-weight: 700;
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters > .fi-section {
    border-color: var(--accounting-line);
    background: #152b36;
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-fo-field-label-content {
    color: #bdd2d0;
}

.dark body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-input-wrp {
    background: #10232d;
}

@media (min-width: 641px) and (max-width: 1440px) {
    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-ta-table :is(th, td) {
        padding-inline: .25rem !important;
    }

    .bluerp-aging-report-table :is(th, td) {
        padding-inline: .3rem;
    }

    .bluerp-partner-ledger-table > table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    .bluerp-partner-ledger-table col:nth-child(1) {
        width: 2rem !important;
    }

    .bluerp-partner-ledger-table col:nth-child(2) {
        width: 11.25rem !important;
        min-width: 11.25rem !important;
    }

    .bluerp-partner-ledger-table col:nth-child(3),
    .bluerp-partner-ledger-table col:nth-child(4) {
        width: 5.95rem !important;
        min-width: 5.95rem !important;
    }

    .bluerp-partner-ledger-table col:nth-child(5),
    .bluerp-partner-ledger-table col:nth-child(6) {
        width: 6.875rem !important;
        min-width: 6.875rem !important;
    }

    .bluerp-partner-ledger-table col:nth-child(n + 7) {
        width: 5.625rem !important;
        min-width: 5.625rem !important;
    }

    .bluerp-partner-ledger-table :is(th, td) {
        padding-inline: .35rem !important;
        font-size: .72rem;
    }

    .bluerp-partner-ledger-table td:nth-child(2),
    .bluerp-partner-ledger-table td:nth-child(3),
    .bluerp-partner-ledger-table td:nth-child(4) {
        overflow-wrap: anywhere;
        white-space: normal !important;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-tabs.w-full .fi-tabs-item {
        gap: .3rem;
        padding-inline: .35rem !important;
        font-size: .75rem;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-tabs.w-full .fi-tabs-item svg {
        width: 1rem !important;
        height: 1rem !important;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    body:has(.bluerp-sidebar[data-workspace="accounting"]) .fi-page-has-sub-navigation-start .fi-page-sub-navigation-sidebar-ctn {
        flex: 0 0 11.5rem;
        max-width: 11.5rem;
    }
}

@media (max-width: 640px) {
    body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-layout {
        gap: .7rem;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-section-content-ctn {
        padding: .65rem .75rem;
    }

    .bluerp-report-empty-state {
        min-height: 6rem;
        padding: .9rem 1rem;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-grid {
        row-gap: .7rem;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-fo-field {
        grid-template-columns: minmax(0, 1fr);
        gap: .25rem;
    }

    body:has(.bluerp-sidebar[data-workspace="accounting"]) .bluerp-accounting-report-filters .fi-fo-field-label-col {
        display: block;
    }
}
