:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-muted: #f8fafc;
    --line: #d8e0ea;
    --line-soft: #e7edf4;
    --text: #172033;
    --muted: #637083;
    --primary: #2563eb;
    --primary-strong: #1d4ed8;
    --success: #059669;
    --warning: #b45309;
    --danger: #dc2626;
    --sidebar: #111827;
    --sidebar-soft: #1f2937;
    --sidebar-line: rgba(255, 255, 255, .1);
    --shadow: 0 14px 38px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body.app-body {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .08), transparent 34rem),
        linear-gradient(180deg, #f8fafc 0%, var(--bg) 24rem);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

.app-shell {
    min-height: 100vh;
    transition: padding-left .22s ease;
}

.app-main {
    min-width: 0;
    overflow-x: hidden;
}

.app-content {
    width: min(100%, 1560px);
    margin: 0 auto;
    padding: 1rem;
}

.app-body--fullscreen {
    background: #f5f7fb;
}

.app-shell--fullscreen {
    min-height: 100vh;
    padding-left: 0;
}

.app-content--fullscreen {
    width: 100%;
    max-width: none;
    padding: .8rem;
}

.app-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 4.25rem;
    border-bottom: 1px solid rgba(216, 224, 234, .82);
    background: rgba(255, 255, 255, .84);
    padding: .75rem 1rem;
    backdrop-filter: blur(18px);
}

.page-heading {
    min-width: 0;
}

.page-heading h2 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(1rem, 2.2vw, 1.22rem);
    font-weight: 750;
    line-height: 1.2;
}

.page-kicker {
    margin: 0 0 .12rem;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 650;
    letter-spacing: .03em;
}

.topbar-actions {
    margin-left: auto;
}

.utility-menu {
    position: relative;
}

.utility-menu summary {
    display: inline-flex;
    width: 2.45rem;
    height: 2.45rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    gap: .18rem;
    padding: 0;
    color: #0f172a;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
    cursor: pointer;
    list-style: none;
}

.utility-menu summary span {
    display: block;
    width: .26rem;
    height: .26rem;
    border-radius: 999px;
    background: currentColor;
}

.utility-menu summary::-webkit-details-marker {
    display: none;
}

.utility-menu summary::after {
    content: none;
}

.utility-menu[open] summary {
    border-color: #b9c5d4;
    background: #f8fafc;
}

.utility-menu__panel {
    position: absolute;
    top: calc(100% + .55rem);
    right: 0;
    z-index: 50;
    display: grid;
    width: 13rem;
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .14);
}

.utility-menu__panel a {
    padding: .8rem .95rem;
    color: #172033;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}

.utility-menu__panel a:hover {
    background: #f1f5f9;
}

.app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: flex;
    width: min(18rem, calc(100vw - 2rem));
    transform: translateX(-105%);
    flex-direction: column;
    overflow-y: auto;
    border-right: 1px solid var(--sidebar-line);
    background:
        linear-gradient(180deg, rgba(37, 99, 235, .18), transparent 18rem),
        var(--sidebar);
    color: #f8fafc;
    box-shadow: 18px 0 48px rgba(15, 23, 42, .28);
    transition: transform .22s ease;
}

.app-sidebar.is-open {
    transform: translateX(0);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 35;
    background: rgba(15, 23, 42, .48);
    backdrop-filter: blur(4px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 1.2rem 1rem 1rem;
}

.sidebar-brand h1 {
    margin: 0;
    font-size: 1rem;
    font-weight: 780;
    letter-spacing: .01em;
    line-height: 1.2;
}

.icon-button,
.menu-button {
    display: inline-grid;
    place-items: center;
    width: 2.45rem;
    height: 2.45rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: #0f172a;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .06);
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.icon-button:hover,
.menu-button:hover {
    border-color: #b9c5d4;
    background: #f8fafc;
    transform: translateY(-1px);
}

.sidebar-close {
    margin-left: auto;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .08);
    color: #fff;
    box-shadow: none;
}

.sidebar-close:hover {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .14);
}

.menu-button {
    position: relative;
    overflow: hidden;
}

.menu-button__panel {
    position: relative;
    display: block;
    width: 1.12rem;
    height: .92rem;
    border: 1.8px solid currentColor;
    border-radius: 4px;
}

.menu-button__panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 .28rem;
    width: 1.8px;
    background: currentColor;
    opacity: .85;
}

.menu-button__chevron {
    position: absolute;
    right: .55rem;
    width: .42rem;
    height: .42rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(135deg);
    transition: transform .18s ease, right .18s ease;
}

.sidebar-collapsed .menu-button {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
}

.sidebar-collapsed .menu-button__chevron {
    right: .48rem;
    transform: rotate(-45deg);
}

.sidebar-nav {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .2rem;
    padding: .3rem .75rem 1.25rem;
}

.nav-group {
    margin-top: 1rem;
}

.nav-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 .35rem;
    padding: 0 .75rem;
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 750;
    letter-spacing: .11em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.nav-label::-webkit-details-marker {
    display: none;
}

.calk-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
}

.calk-summary-card {
    min-width: 0;
    padding: 1.15rem;
}

.calk-summary-card__label {
    margin: 0;
    color: #64748b;
    font-size: .88rem;
    font-weight: 680;
    line-height: 1.35;
}

.amount-pair {
    display: grid;
    min-width: 0;
    gap: .7rem;
    text-align: right;
}

.amount-pair--compare {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amount-pair__item {
    min-width: 0;
}

.amount-pair__period {
    color: #334155;
    font-size: .68rem;
    font-weight: 780;
    letter-spacing: .04em;
    line-height: 1.1;
}

.amount-pair__subtitle {
    margin-top: .12rem;
    color: #64748b;
    font-size: .68rem;
    font-weight: 650;
    line-height: 1.15;
}

.amount-pair__value {
    margin-top: .42rem;
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.18;
    font-variant-numeric: tabular-nums;
}

.calk-summary-card .amount-pair__value {
    font-size: clamp(1rem, 1.45vw, 1.28rem);
}

.amount-pair__item--muted .amount-pair__period,
.amount-pair__item--muted .amount-pair__subtitle,
.amount-pair__item--muted .amount-pair__value {
    color: #94a3b8;
}

.nav-label::after {
    content: "";
    width: .45rem;
    height: .45rem;
    border-right: 2px solid #cbd5e1;
    border-bottom: 2px solid #cbd5e1;
    transform: rotate(-45deg);
    transition: transform .16s ease;
}

.nav-group[open] > .nav-label::after {
    transform: rotate(45deg);
}

.nav-group:not([open]) .nav-link {
    display: none;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2.65rem;
    border-radius: 8px;
    padding: .68rem .8rem;
    color: #dbe4f0;
    font-size: .92rem;
    font-weight: 610;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.nav-link::before {
    content: "";
    width: .42rem;
    height: .42rem;
    margin-right: .68rem;
    border: 1px solid rgba(219, 228, 240, .38);
    border-radius: 999px;
    background: transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transform: translateX(2px);
}

.nav-link.is-active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.nav-link.is-active::before {
    border-color: var(--primary);
    background: var(--primary);
}

.card {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow);
}

.card h1,
.card h2,
.card h3 {
    color: #111827;
}

.finance-dashboard-filter {
    box-shadow: 0 10px 28px rgba(15, 23, 42, .07);
}

.dashboard-manager-heading {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
}

.dashboard-manager-heading img {
    width: 3.2rem;
    height: 3.2rem;
    object-fit: contain;
}

.dashboard-manager-heading p,
.dashboard-manager-heading h1,
.dashboard-manager-heading span {
    display: block;
    margin: 0;
}

.dashboard-manager-heading p {
    color: #0f2d5c;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.dashboard-manager-heading h1 {
    margin-top: .2rem;
    color: #111827;
    font-size: clamp(1.55rem, 2.4vw, 2.35rem);
    font-weight: 900;
    line-height: 1.05;
}

.dashboard-manager-heading span {
    margin-top: .25rem;
    color: #64748b;
    font-size: .86rem;
    font-weight: 650;
    line-height: 1.35;
}

.dashboard-manager-appname {
    display: inline-flex;
    height: 2.75rem;
    align-items: center;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
    padding: 0 .9rem;
    color: #0f2d5c;
    font-size: .78rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.app-content--fullscreen .finance-dashboard-filter {
    position: sticky;
    top: 0;
    z-index: 15;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(16px);
}

.exec-report {
    overflow: hidden;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, .1);
    min-height: calc(100vh - 7.8rem);
}

.exec-report__masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem .9rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.exec-brand {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-width: 0;
}

.exec-brand__logo {
    width: 3.8rem;
    height: 3.8rem;
    object-fit: contain;
}

.exec-brand p,
.exec-title p,
.exec-title h2,
.exec-quote strong {
    margin: 0;
}

.exec-brand p {
    color: #0f2d5c;
    font-size: .85rem;
    font-weight: 850;
    text-transform: uppercase;
}

.exec-brand span,
.exec-quote span {
    display: block;
    margin-top: .15rem;
    color: #64748b;
    font-size: .74rem;
    font-weight: 650;
}

.exec-title {
    text-align: center;
}

.exec-title p {
    color: #0f2d5c;
    font-size: clamp(1.65rem, 3.2vw, 2.55rem);
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.exec-title h2 {
    margin-top: .25rem;
    color: #153763;
    font-size: clamp(1.05rem, 2vw, 1.45rem);
    font-weight: 850;
    text-transform: uppercase;
}

.exec-title span {
    display: inline-flex;
    margin-top: .55rem;
    border-radius: 999px;
    background: #059669;
    padding: .32rem 2rem;
    color: #fff;
    font-size: .78rem;
    font-weight: 850;
    text-transform: uppercase;
}

.exec-quote {
    justify-self: end;
    max-width: 14rem;
    text-align: right;
}

.exec-quote strong {
    color: #16a34a;
    font-size: 1rem;
    font-weight: 900;
}

.exec-section-title,
.exec-panel h3 {
    background: #0f3a69;
    color: #fff;
    font-size: .82rem;
    font-weight: 850;
    line-height: 1.1;
    text-transform: uppercase;
}

.exec-section-title {
    padding: .45rem .8rem;
    text-align: center;
}

.exec-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
    gap: .8rem;
    padding: 1rem;
}

.exec-kpi {
    position: relative;
    min-height: 9rem;
    border: 1px solid var(--accent, #bfdbfe);
    border-radius: 8px;
    padding: 2.2rem 1rem .95rem;
    text-align: center;
}

.exec-kpi__icon {
    position: absolute;
    top: -.55rem;
    left: 50%;
    display: grid;
    width: 3rem;
    height: 3rem;
    transform: translateX(-50%);
    place-items: center;
    border: 4px solid #fff;
    border-radius: 999px;
    background: var(--accent-strong, #1d4ed8);
    color: #fff;
    font-size: .9rem;
    font-weight: 900;
}

.exec-kpi p,
.exec-kpi strong,
.exec-kpi span {
    display: block;
    margin: 0;
}

.exec-kpi p {
    color: #0f172a;
    font-size: .68rem;
    font-weight: 850;
    text-transform: uppercase;
}

.exec-kpi strong {
    margin-top: .45rem;
    color: #0f172a;
    font-size: clamp(1.05rem, 1.35vw, 1.45rem);
    font-weight: 900;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.exec-kpi span {
    margin-top: .45rem;
    color: #475569;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.25;
}

.exec-kpi--blue { --accent: #60a5fa; --accent-strong: #1d4ed8; }
.exec-kpi--green { --accent: #86efac; --accent-strong: #16a34a; }
.exec-kpi--teal { --accent: #5eead4; --accent-strong: #0f766e; }
.exec-kpi--purple { --accent: #c4b5fd; --accent-strong: #6d28d9; }
.exec-kpi--orange { --accent: #fdba74; --accent-strong: #ea580c; }
.exec-kpi--amber { --accent: #fcd34d; --accent-strong: #d97706; }

.exec-panel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(17rem, 1fr));
    gap: .8rem;
    padding: 0 1rem 1rem;
}

.exec-panel {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #b7c9dd;
    border-radius: 8px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.exec-panel--wide {
    grid-column: span 2;
}

.exec-panel h3 {
    margin: 0;
    padding: .45rem .65rem;
    text-align: center;
}

.exec-chart {
    min-height: 15rem;
    height: 15rem;
    padding: .85rem;
}

.exec-chart--sm {
    min-height: 13.5rem;
    height: 13.5rem;
}

.exec-chart--donut {
    min-height: 12rem;
    height: 12rem;
}

.exec-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    padding: 0 .65rem .65rem;
}

.exec-mini-grid div,
.exec-callout {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    padding: .48rem;
    text-align: center;
}

.exec-mini-grid span,
.exec-callout span {
    display: block;
    color: #475569;
    font-size: .65rem;
    font-weight: 750;
    text-transform: uppercase;
}

.exec-mini-grid strong,
.exec-callout strong {
    display: block;
    margin-top: .18rem;
    color: #0f172a;
    font-size: .78rem;
    font-weight: 900;
}

.exec-donut-row {
    display: grid;
    grid-template-columns: minmax(9rem, .9fr) minmax(11rem, 1.1fr);
    gap: .6rem;
    align-items: center;
    padding-right: .65rem;
}

.financial-statement-dashboard .exec-donut-row {
    grid-template-columns: minmax(0, 1fr);
    padding-right: 0;
}

.financial-statement-dashboard .exec-mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
}

.financial-statement-dashboard .exec-mini-grid strong {
    white-space: nowrap;
}

.financial-statement-dashboard .exec-table > div,
.financial-statement-dashboard .exec-ratio-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: .3rem;
}

.financial-statement-dashboard .exec-table strong,
.financial-statement-dashboard .exec-ratio-list strong {
    justify-self: end;
}

.financial-statement-dashboard .exec-period-note {
    padding: .6rem .65rem 0;
    font-size: .75rem;
    color: #64748b;
}

.exec-list,
.exec-table,
.exec-ratio-list,
.exec-bars,
.exec-risk-list,
.exec-scorecard,
.exec-insights {
    padding: .65rem;
}

.exec-list div,
.exec-table div,
.exec-ratio-list div,
.exec-risk-list div,
.exec-scorecard div,
.exec-insights div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: .6rem;
    border-bottom: 1px solid #e2e8f0;
    padding: .48rem 0;
}

.exec-list div:last-child,
.exec-table div:last-child,
.exec-ratio-list div:last-child,
.exec-risk-list div:last-child,
.exec-scorecard div:last-child,
.exec-insights div:last-child {
    border-bottom: 0;
}

.exec-list span,
.exec-table span,
.exec-ratio-list span,
.exec-risk-list span,
.exec-scorecard strong,
.exec-insights strong {
    min-width: 0;
    color: #334155;
    font-size: .76rem;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.exec-list strong,
.exec-table strong,
.exec-ratio-list strong,
.exec-risk-list strong,
.exec-scorecard em,
.exec-insights span {
    color: #0f172a;
    font-size: .76rem;
    font-style: normal;
    font-weight: 850;
    text-align: right;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
    white-space: nowrap;
}

.exec-list em {
    color: #64748b;
    font-size: .68rem;
    font-style: normal;
    font-weight: 800;
}

.exec-ratio-list .is-highlight,
.exec-table .is-highlight {
    margin-inline: -.25rem;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    background: #eff6ff;
    padding-inline: .45rem;
}

.exec-table .is-success {
    color: #166534;
    background: #f0fdf4;
}

.exec-table .is-danger {
    color: #991b1b;
    background: #fef2f2;
}

.exec-bars > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .35rem .55rem;
    padding: .34rem 0;
}

.exec-bars span {
    min-width: 0;
    color: #334155;
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.exec-bars strong {
    color: #0f172a;
    font-size: .72rem;
    font-weight: 850;
}

.exec-bars i {
    grid-column: 1 / -1;
    display: block;
    height: .5rem;
    max-width: 100%;
    border-radius: 999px;
    background: #16a34a;
}

.exec-bars--ranked i {
    background: #2563eb;
}

.exec-bars--danger i {
    background: #ef4444;
}

.exec-bars--program i {
    background: #0f766e;
}

.exec-gauge {
    width: 10rem;
    height: 10rem;
    margin: .8rem auto .5rem;
    border-radius: 999px;
    background:
        conic-gradient(#16a34a var(--value), #e5e7eb 0);
    padding: 1.15rem;
}

.exec-gauge div {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    align-content: center;
    border-radius: inherit;
    background: #fff;
    text-align: center;
}

.exec-gauge strong {
    color: #0f2d5c;
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1;
}

.exec-gauge span {
    margin-top: .25rem;
    color: #475569;
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tone-dot {
    width: .55rem;
    height: .55rem;
    flex: 0 0 auto;
    border-radius: 999px;
}

.tone-green {
    background: #dcfce7;
    color: #166534 !important;
}

.tone-amber {
    background: #fef3c7;
    color: #92400e !important;
}

.tone-red {
    background: #fee2e2;
    color: #991b1b !important;
}

.exec-scorecard div {
    justify-content: flex-start;
}

.exec-scorecard em {
    margin-left: auto;
}

.exec-insights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .35rem .75rem;
}

.exec-insights div {
    display: block;
    border-bottom: 0;
    border-left: 3px solid #2563eb;
    background: #f8fafc;
    padding: .45rem .6rem;
}

.exec-insights strong,
.exec-insights span {
    display: block;
    text-align: left;
}

.exec-insights span {
    margin-top: .16rem;
    color: #475569;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.3;
}

.import-page {
    display: grid;
    gap: 1.25rem;
}

.import-overview {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    overflow: hidden;
    border-color: rgba(15, 23, 42, .12);
    background:
        linear-gradient(135deg, rgba(17, 24, 39, .065), transparent 42%),
        linear-gradient(180deg, #ffffff, #f8fafc);
    padding: 1.35rem 1.45rem;
}

.import-overview::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: .3rem;
    background: linear-gradient(180deg, #1d4ed8, #0f766e 58%, #f59e0b);
}

.import-kicker {
    margin: 0;
    color: #1d4ed8;
    font-size: .72rem;
    font-weight: 820;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.import-overview h1,
.import-section__head h2 {
    margin: .25rem 0 0;
    color: #0f172a;
    font-weight: 820;
    letter-spacing: 0;
}

.import-overview h1 {
    font-size: 1.55rem;
    line-height: 1.12;
}

.import-overview p:not(.import-kicker) {
    max-width: 42rem;
    margin: .45rem 0 0;
    color: #64748b;
    font-size: .92rem;
    line-height: 1.5;
}

.import-overview__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}

.import-overview__meta span {
    display: inline-flex;
    min-height: 2.05rem;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    padding: .45rem .7rem;
    color: #334155;
    font-size: .78rem;
    font-weight: 760;
}

.import-section {
    display: grid;
    gap: .9rem;
}

.import-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.import-section__head h2 {
    font-size: 1.12rem;
}

.import-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
}

.import-card,
.import-compact-card {
    color: inherit;
    text-decoration: none;
}

.import-card {
    --import-accent: #1d4ed8;
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "mark body file"
        "mark body action";
    align-items: center;
    gap: .8rem 1rem;
    min-height: 9.2rem;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 8px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--import-accent) 8%, #ffffff), #ffffff 44%),
        linear-gradient(180deg, #ffffff, #fbfdff);
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.import-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: .22rem;
    background: linear-gradient(90deg, var(--import-accent), color-mix(in srgb, var(--import-accent) 38%, #0f766e));
}

.import-card:hover,
.import-compact-card:hover {
    border-color: color-mix(in srgb, var(--import-accent, #1d4ed8) 42%, #d8e0ea);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .09);
    transform: translateY(-1px);
}

.import-card--warm {
    --import-accent: #d97706;
}

.import-card--primary {
    --import-accent: #1d4ed8;
}

.import-card__mark {
    grid-area: mark;
    display: inline-grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, .12), transparent 45%),
        linear-gradient(145deg, #111827, var(--import-accent, #1d4ed8));
    color: #fff;
    font-size: .76rem;
    font-weight: 860;
    letter-spacing: 0;
    box-shadow: 0 10px 22px rgba(15, 23, 42, .16);
}

.import-card__body {
    grid-area: body;
    min-width: 0;
}

.import-card__file {
    grid-area: file;
    display: inline-flex;
    justify-self: end;
    min-height: 1.8rem;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--import-accent, #1d4ed8) 16%, #d8e0ea);
    border-radius: 999px;
    background: #fff;
    padding: .25rem .62rem;
    color: var(--import-accent, #1d4ed8);
    font-size: .7rem;
    font-weight: 820;
}

.import-card strong,
.import-compact-card strong {
    display: block;
    color: #0f172a;
    font-weight: 820;
    line-height: 1.2;
}

.import-card strong {
    font-size: 1.05rem;
}

.import-card em,
.import-compact-card em {
    display: block;
    margin-top: .35rem;
    color: #64748b;
    font-size: .86rem;
    font-style: normal;
    line-height: 1.42;
}

.import-card__action {
    grid-area: action;
    display: inline-flex;
    justify-self: end;
    min-height: 2rem;
    align-items: center;
    border: 1px solid rgba(15, 23, 42, .08);
    border-radius: 8px;
    background: #0f172a;
    padding: .45rem .7rem;
    color: #ffffff;
    font-size: .78rem;
    font-weight: 800;
}

.import-card__action::after {
    content: ">";
    margin-left: .45rem;
    color: rgba(255, 255, 255, .82);
    font-weight: 900;
}

.import-compact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
}

.import-compact-card {
    --import-accent: #0f766e;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .8rem;
    min-height: 5.8rem;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 8px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--import-accent) 5%, #ffffff), #ffffff 38%),
        #fff;
    padding: .95rem 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.import-compact-card:nth-child(2) {
    --import-accent: #7c3aed;
}

.import-compact-card:nth-child(3) {
    --import-accent: #059669;
}

.import-compact-card i {
    display: inline-flex;
    min-width: 3.1rem;
    justify-content: center;
    border-radius: 999px;
    background: color-mix(in srgb, var(--import-accent) 10%, #fff);
    padding: .35rem .55rem;
    color: var(--import-accent);
    font-size: .68rem;
    font-style: normal;
    font-weight: 850;
}

@media (max-width: 1280px) {
    .import-feature-grid,
    .import-compact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .import-overview {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.15rem 1.15rem 1.15rem 1.3rem;
    }

    .import-overview__meta {
        justify-content: flex-start;
    }

    .import-card {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "mark file"
            "body body"
            "action action";
        min-height: 0;
    }

    .import-card__action {
        justify-self: start;
    }

    .import-compact-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .import-compact-card i {
        grid-column: 2;
        justify-self: start;
    }
}

table {
    border-color: var(--line) !important;
}

th {
    background: #eef3f8;
    color: #1f2937;
    font-weight: 750;
}

td,
th {
    border-color: var(--line) !important;
}

tbody tr:nth-child(even) {
    background: #eef2f6;
}

tbody tr:hover {
    background: #e5ebf3;
}

.baghas-table tbody tr.baghas-total-row,
.baghas-table tbody tr.baghas-total-row:hover,
.baghas-table tbody tr.baghas-total-row:nth-child(even),
.baghas-table tbody tr.baghas-total-row > td {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

.baghas-table tbody tr.baghas-grand-row,
.baghas-table tbody tr.baghas-grand-row:hover,
.baghas-table tbody tr.baghas-grand-row:nth-child(even),
.baghas-table tbody tr.baghas-grand-row > td {
    background: #1e3a8a !important;
    color: #ffffff !important;
}

.baghas-table .baghas-total-cell {
    background: #1d4ed8 !important;
    color: #ffffff !important;
}

.baghas-table .baghas-grand-cell {
    background: #1e3a8a !important;
    color: #ffffff !important;
}

.saldo-program-table tbody tr.saldo-grand-row,
.saldo-program-table tbody tr.saldo-grand-row:hover,
.saldo-program-table tbody tr.saldo-grand-row:nth-child(even),
.saldo-program-table tbody tr.saldo-grand-row > td {
    background: #1e3a8a !important;
    color: #ffffff !important;
}

.saldo-program-table tbody tr.saldo-total-row,
.saldo-program-table tbody tr.saldo-total-row:hover,
.saldo-program-table tbody tr.saldo-total-row:nth-child(even),
.saldo-program-table tbody tr.saldo-total-row > td {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

input,
select,
textarea {
    border-color: #cbd5e1 !important;
    border-radius: 8px !important;
    color: #172033;
    transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .14) !important;
    outline: none;
}

button,
.button,
a[class*="bg-"] {
    border-radius: 8px !important;
}

button:disabled,
.is-disabled {
    cursor: wait !important;
    opacity: .72;
}

.flash-stack {
    display: grid;
    gap: .65rem;
    margin-bottom: 1rem;
}

.flash-message,
.toast {
    border: 1px solid var(--line-soft);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    background: #fff;
    color: #172033;
    padding: .85rem 1rem;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .08);
}

.flash-success,
.toast-success {
    border-left-color: var(--success);
}

.flash-warning,
.toast-warning {
    border-left-color: var(--warning);
}

.flash-danger,
.flash-error,
.toast-error {
    border-left-color: var(--danger);
}

.toast-root {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 60;
    display: grid;
    width: min(24rem, calc(100vw - 2rem));
    gap: .65rem;
    pointer-events: none;
}

.toast {
    animation: toastIn .18s ease-out;
}

.calendar-reminder {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 65;
}

.calendar-reminder__button {
    position: relative;
    display: grid;
    width: 3.15rem;
    height: 3.15rem;
    place-items: center;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 16px 36px rgba(29, 78, 216, .32);
    text-decoration: none;
}

.calendar-reminder__icon {
    display: grid;
    width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 900;
    line-height: 1;
}

.calendar-reminder__count {
    position: absolute;
    top: -.25rem;
    right: -.15rem;
    min-width: 1.35rem;
    height: 1.35rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: .72rem;
    font-weight: 850;
    line-height: 1.1rem;
    text-align: center;
}

.calendar-reminder__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + .65rem);
    display: none;
    width: min(18rem, calc(100vw - 2rem));
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
    padding: .85rem;
    color: #172033;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .16);
}

.calendar-reminder:hover .calendar-reminder__panel,
.calendar-reminder:focus-within .calendar-reminder__panel {
    display: grid;
    gap: .45rem;
}

.calendar-reminder__panel strong {
    color: #0f172a;
    font-size: .85rem;
}

.calendar-reminder__panel span {
    color: #475569;
    font-size: .8rem;
    font-weight: 650;
    line-height: 1.35;
}

.app-loading {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: none;
    place-items: center;
    padding: 1rem;
    background: transparent;
    backdrop-filter: blur(5px);
    pointer-events: none;
}

body.is-loading .app-loading {
    display: grid;
}

.app-loading__panel {
    display: grid;
    align-items: center;
    justify-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    box-shadow: none;
}

.app-loading__visual {
    position: relative;
    display: flex;
    width: min(18rem, 72vw);
    min-height: min(13rem, 48vw);
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.finance-loader {
    position: relative;
    width: min(10.5rem, 46vw);
    height: min(10.5rem, 46vw);
    filter: drop-shadow(0 18px 26px rgba(15, 23, 42, .16));
}

.app-loading__caption {
    display: grid;
    justify-items: center;
    gap: .22rem;
    text-align: center;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}

.app-loading__caption strong {
    color: #0f172a;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: 0;
}

.app-loading__caption span {
    color: #475569;
    font-size: .78rem;
    font-weight: 600;
}

.finance-loader__mark {
    position: absolute;
    inset: 1.15rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(17, 24, 39, .18);
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, .18), transparent 62%),
        linear-gradient(145deg, var(--sidebar), var(--sidebar-soft));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .08),
        0 16px 36px rgba(15, 23, 42, .18);
    animation: financeMinimalFloat 2.2s ease-in-out infinite;
}

.finance-loader__mark::before {
    content: "";
    position: absolute;
    inset: .65rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: inherit;
}

.finance-loader__currency {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.finance-loader__line {
    position: absolute;
    inset: 1.15rem .9rem 1rem;
    z-index: 1;
    overflow: visible;
}

.finance-loader__line path {
    fill: none;
    stroke: url("#financeLoaderGradient");
    stroke: #60a5fa;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 170;
    stroke-dashoffset: 170;
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, .26));
    animation: financeLineDraw 1.9s ease-in-out infinite;
}

.finance-loader__bars {
    position: absolute;
    left: 50%;
    bottom: .35rem;
    display: flex;
    align-items: flex-end;
    gap: .22rem;
    width: 5.6rem;
    height: 2.3rem;
    transform: translateX(-50%);
}

.finance-loader__bars span {
    width: 100%;
    height: var(--h);
    border-radius: 999px 999px 3px 3px;
    background: linear-gradient(180deg, #93c5fd, var(--primary));
    opacity: .78;
    transform-origin: bottom;
    animation: financeMinimalBar 1.35s ease-in-out infinite;
}

.finance-loader__bars span:nth-child(2) {
    animation-delay: .08s;
}

.finance-loader__bars span:nth-child(3) {
    animation-delay: .16s;
}

.finance-loader__bars span:nth-child(4) {
    animation-delay: .24s;
}

.finance-loader__bars span:nth-child(5) {
    animation-delay: .32s;
}

.finance-loader__orbit {
    position: absolute;
    inset: .35rem;
    border: 1px solid rgba(17, 24, 39, .16);
    border-radius: 999px;
    animation: financeOrbitSpin 2.4s linear infinite;
}

.finance-loader__orbit::before {
    content: "";
    position: absolute;
    top: -.22rem;
    left: 50%;
    width: .5rem;
    height: .5rem;
    border-radius: 999px;
    background: var(--primary);
    box-shadow: 0 0 0 .18rem rgba(37, 99, 235, .14);
}

.finance-loader__panel {
    position: absolute;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: 10px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.finance-loader__panel--main {
    inset: 1rem 3.1rem 2rem .9rem;
    padding: .8rem .85rem .72rem;
    animation: financeCardFloat 2.2s ease-in-out infinite;
}

.finance-loader__panel--ledger {
    right: .55rem;
    bottom: .55rem;
    width: 6.6rem;
    height: 4.15rem;
    padding: .66rem .62rem;
    animation: financeLedgerSlide 2.2s ease-in-out infinite;
}

.finance-loader__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
}

.finance-loader__header span {
    display: block;
    height: .34rem;
    border-radius: 999px;
    background: #cbd5e1;
}

.finance-loader__header span:first-child {
    width: 3.55rem;
    background: #0f766e;
}

.finance-loader__header span:last-child {
    width: 1.85rem;
}

.finance-loader__chart {
    position: absolute;
    inset: 1.9rem .85rem .85rem;
    display: flex;
    align-items: flex-end;
    gap: .38rem;
}

.finance-loader__chart span {
    width: 100%;
    height: var(--h);
    border-radius: 999px 999px 3px 3px;
    background: linear-gradient(180deg, #22c55e, #0ea5e9);
    transform-origin: bottom;
    animation: financeBarPulse 1.35s ease-in-out infinite;
}

.finance-loader__chart span:nth-child(2) {
    animation-delay: .1s;
}

.finance-loader__chart span:nth-child(3) {
    animation-delay: .2s;
}

.finance-loader__chart span:nth-child(4) {
    animation-delay: .3s;
}

.finance-loader__chart span:nth-child(5) {
    animation-delay: .4s;
}

.finance-loader__spark {
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .85rem;
    height: 2rem;
    overflow: hidden;
    border-radius: 8px;
}

.finance-loader__spark::before {
    content: "";
    position: absolute;
    left: -15%;
    right: -15%;
    top: 45%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f59e0b, #22c55e, #0ea5e9, transparent);
    transform: rotate(-10deg);
    animation: financeSparkMove 1.45s ease-in-out infinite;
}

.finance-loader__panel--ledger span {
    display: block;
    height: .32rem;
    margin-bottom: .42rem;
    border-radius: 999px;
    background: #cbd5e1;
    animation: financeLedgerLine 1.25s ease-in-out infinite;
}

.finance-loader__panel--ledger span:nth-child(1) {
    width: 74%;
    background: #0f766e;
}

.finance-loader__card {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    width: 4.8rem;
    height: 2rem;
    border: 1px solid rgba(34, 197, 94, .24);
    border-radius: 9px;
    background: rgba(255, 255, 255, .96);
    padding: .4rem .5rem;
    box-shadow: 0 9px 20px rgba(15, 23, 42, .08);
}

.finance-loader__card span {
    display: block;
    width: .95rem;
    height: .95rem;
    border-radius: 999px;
    background:
        linear-gradient(90deg, transparent 42%, rgba(15, 118, 110, .42) 42% 58%, transparent 58%),
        linear-gradient(180deg, #dcfce7, #bbf7d0);
}

.finance-loader__card strong {
    color: #0f172a;
    font-size: .72rem;
    line-height: 1;
}

.finance-loader__card--bank {
    left: .15rem;
    top: .1rem;
    animation: financeCardDrift 2s ease-in-out infinite;
}

.finance-loader__card--cash {
    right: .15rem;
    top: 3.05rem;
    border-color: rgba(245, 158, 11, .32);
    animation: financeCardDrift 2s ease-in-out infinite .25s;
}

.finance-loader__card--cash span {
    background:
        linear-gradient(90deg, transparent 42%, rgba(146, 64, 14, .42) 42% 58%, transparent 58%),
        linear-gradient(180deg, #fef3c7, #fde68a);
}

.finance-loader__panel--ledger span:nth-child(2) {
    width: 96%;
    animation-delay: .12s;
}

.finance-loader__panel--ledger span:nth-child(3) {
    width: 58%;
    animation-delay: .24s;
}

.finance-loader__panel--ledger span:nth-child(4) {
    width: 82%;
    animation-delay: .36s;
}

.finance-loader__coin {
    position: absolute;
    display: block;
    width: .82rem;
    height: .82rem;
    border: 2px solid #f59e0b;
    border-radius: 999px;
    background: linear-gradient(145deg, #fef3c7, #fbbf24);
    box-shadow: 0 9px 18px rgba(245, 158, 11, .18);
    animation: financeCoinOrbit 2s ease-in-out infinite;
}

.finance-loader__coin::after {
    content: "";
    position: absolute;
    inset: .16rem;
    border-radius: inherit;
    border: 1px solid rgba(146, 64, 14, .35);
}

.finance-loader__coin--one {
    left: .65rem;
    bottom: 1.05rem;
}

.finance-loader__coin--two {
    right: 2.35rem;
    top: .15rem;
    transform: scale(.82);
    animation-delay: .22s;
}

.finance-loader__coin--three {
    right: .15rem;
    top: 2.2rem;
    transform: scale(.66);
    animation-delay: .42s;
}

.accounting-loader {
    position: relative;
    width: 5.1rem;
    height: 3.35rem;
    flex: 0 0 auto;
    overflow: hidden;
}

.accounting-loader__person {
    position: absolute;
    left: .25rem;
    bottom: .48rem;
    width: 1.55rem;
    height: 2.55rem;
    animation: accountantWalk 1.45s ease-in-out infinite;
}

.accounting-loader__head {
    position: absolute;
    top: .1rem;
    left: .47rem;
    width: .62rem;
    height: .62rem;
    border-radius: 999px;
    background: #f2c7a5;
    box-shadow: inset -.08rem -.05rem 0 rgba(120, 53, 15, .12);
}

.accounting-loader__body {
    position: absolute;
    top: .78rem;
    left: .43rem;
    width: .72rem;
    height: 1rem;
    border-radius: 7px 7px 5px 5px;
    background: #163a63;
    box-shadow: inset 0 .2rem 0 #2563eb;
}

.accounting-loader__arm,
.accounting-loader__leg {
    position: absolute;
    width: .18rem;
    border-radius: 999px;
    background: #0f172a;
    transform-origin: top center;
}

.accounting-loader__arm {
    top: .93rem;
    height: .86rem;
}

.accounting-loader__arm--left {
    left: .35rem;
    animation: armLeft 1.45s ease-in-out infinite;
}

.accounting-loader__arm--right {
    right: .3rem;
    background: #f2c7a5;
    animation: armRight 1.45s ease-in-out infinite;
}

.accounting-loader__leg {
    top: 1.7rem;
    height: .95rem;
}

.accounting-loader__leg--left {
    left: .54rem;
    animation: legLeft 1.45s ease-in-out infinite;
}

.accounting-loader__leg--right {
    right: .48rem;
    animation: legRight 1.45s ease-in-out infinite;
}

.accounting-loader__folder {
    position: absolute;
    left: 1.25rem;
    bottom: 1.35rem;
    width: .95rem;
    height: .62rem;
    border: 1px solid #d97706;
    border-radius: 4px;
    background: #fbbf24;
    animation: folderBob 1.45s ease-in-out infinite;
    transform-origin: left center;
}

.accounting-loader__folder::before {
    content: "";
    position: absolute;
    top: -.22rem;
    left: .1rem;
    width: .42rem;
    height: .24rem;
    border-radius: 4px 4px 0 0;
    background: #f59e0b;
}

.accounting-loader__sheet {
    position: absolute;
    width: 1.55rem;
    height: 1.95rem;
    overflow: hidden;
    border: 1px solid #bdd0e6;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff, #eef6ff);
    box-shadow: 0 8px 18px rgba(37, 99, 235, .12);
}

.accounting-loader__sheet--one {
    right: .62rem;
    top: .25rem;
    animation: paperSlide 1.8s ease-in-out infinite;
}

.accounting-loader__sheet--two {
    right: .06rem;
    top: .72rem;
    opacity: .72;
    transform: scale(.75);
    animation: paperSlide 1.8s ease-in-out infinite .32s;
}

.accounting-loader__sheet::before {
    content: "";
    position: absolute;
    inset: .25rem .22rem auto;
    height: .18rem;
    border-radius: 999px;
    background: #2563eb;
}

.accounting-loader__sheet span {
    position: absolute;
    left: .24rem;
    right: .24rem;
    height: .1rem;
    border-radius: 999px;
    background: #94a3b8;
    animation: ledgerLine 1.25s ease-in-out infinite;
}

.accounting-loader__sheet span:nth-child(1) {
    top: .7rem;
}

.accounting-loader__sheet span:nth-child(2) {
    top: .98rem;
    width: 58%;
    animation-delay: .12s;
}

.accounting-loader__sheet span:nth-child(3) {
    top: 1.26rem;
    animation-delay: .24s;
}

.accounting-loader__sheet span:nth-child(4) {
    top: 1.54rem;
    width: 68%;
    animation-delay: .36s;
}

.accounting-loader__coin {
    position: absolute;
    width: .6rem;
    height: .6rem;
    border: 2px solid #f59e0b;
    border-radius: 999px;
    background: #fde68a;
    box-shadow: 0 8px 16px rgba(245, 158, 11, .22);
}

.accounting-loader__coin--one {
    right: 1.7rem;
    top: .05rem;
    animation: coinDrop 1.3s ease-in-out infinite;
}

.accounting-loader__coin--two {
    right: .9rem;
    top: .08rem;
    transform: scale(.78);
    animation: coinDrop 1.3s ease-in-out infinite .22s;
}

.accounting-loader__ground {
    position: absolute;
    left: .15rem;
    right: .2rem;
    bottom: .3rem;
    height: .12rem;
    overflow: hidden;
    border-radius: 999px;
    background: #dbeafe;
}

.accounting-loader__ground::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        #93c5fd 0 .35rem,
        transparent .35rem .72rem
    );
    animation: groundMove .7s linear infinite;
}

.table-scroll,
.table-wrap {
    overflow-x: auto;
    border-radius: 8px;
}

.cashflow-program-matrix {
    content-visibility: auto;
    contain-intrinsic-size: 900px 4300px;
}

@keyframes financeCardFloat {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-.35rem) rotate(0deg);
    }
}

@keyframes financeLedgerSlide {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-.25rem) translateY(.16rem);
    }
}

@keyframes financeBarPulse {
    0%, 100% {
        transform: scaleY(.72);
        opacity: .74;
    }
    52% {
        transform: scaleY(1.08);
        opacity: 1;
    }
}

@keyframes financeSparkMove {
    0% {
        opacity: .25;
        transform: translateX(-18%) rotate(-10deg);
    }
    45% {
        opacity: 1;
    }
    100% {
        opacity: .35;
        transform: translateX(18%) rotate(-10deg);
    }
}

@keyframes financeLedgerLine {
    0%, 100% {
        opacity: .45;
        transform: translateX(-.18rem);
    }
    50% {
        opacity: 1;
        transform: translateX(.12rem);
    }
}

@keyframes financeCoinOrbit {
    0%, 100% {
        opacity: .75;
        transform: translateY(0) scale(1);
    }
    48% {
        opacity: 1;
        transform: translateY(-.48rem) scale(1.04);
    }
}

@keyframes financeCardDrift {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-.22rem) translateX(.16rem);
    }
}

@keyframes financeMinimalFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-.25rem) scale(1.015);
    }
}

@keyframes financeLineDraw {
    0% {
        opacity: .35;
        stroke-dashoffset: 170;
    }
    45%, 70% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
    100% {
        opacity: .35;
        stroke-dashoffset: -170;
    }
}

@keyframes financeMinimalBar {
    0%, 100% {
        opacity: .52;
        transform: scaleY(.72);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.08);
    }
}

@keyframes financeOrbitSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes ledgerLine {
    0%, 100% {
        opacity: .42;
        transform: translateX(-.15rem);
    }
    45% {
        opacity: 1;
        transform: translateX(.16rem);
    }
}

@keyframes calculatorTap {
    0%, 100% {
        transform: translateY(0);
    }
    45% {
        transform: translateY(-.08rem);
    }
}

@keyframes coinDrop {
    0% {
        opacity: 0;
        transform: translateY(-.35rem) scale(.72);
    }
    35% {
        opacity: 1;
    }
    78%, 100% {
        opacity: 0;
        transform: translateY(1.75rem) scale(.92);
    }
}

@keyframes accountantWalk {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(1.05rem) translateY(-.08rem);
    }
}

@keyframes armLeft {
    0%, 100% {
        transform: rotate(28deg);
    }
    50% {
        transform: rotate(-28deg);
    }
}

@keyframes armRight {
    0%, 100% {
        transform: rotate(-34deg);
    }
    50% {
        transform: rotate(18deg);
    }
}

@keyframes legLeft {
    0%, 100% {
        transform: rotate(-25deg);
    }
    50% {
        transform: rotate(28deg);
    }
}

@keyframes legRight {
    0%, 100% {
        transform: rotate(25deg);
    }
    50% {
        transform: rotate(-28deg);
    }
}

@keyframes folderBob {
    0%, 100% {
        transform: rotate(-7deg) translateY(0);
    }
    50% {
        transform: rotate(6deg) translateY(-.08rem);
    }
}

@keyframes paperSlide {
    0%, 100% {
        opacity: .5;
        transform: translateX(.18rem) translateY(.08rem) scale(.88);
    }
    48% {
        opacity: 1;
        transform: translateX(-.18rem) translateY(-.08rem) scale(1);
    }
}

@keyframes groundMove {
    to {
        transform: translateX(-.72rem);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(.35rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 640px) {
    .app-content {
        padding: 1.35rem;
    }
}

@media (min-width: 1024px) {
    .app-sidebar {
        transform: translateX(0);
        box-shadow: none;
    }

    .app-shell {
        padding-left: 18rem;
    }

    .sidebar-collapsed .app-sidebar {
        transform: translateX(-105%);
    }

    .sidebar-collapsed .app-shell {
        padding-left: 0;
    }

    .app-shell--fullscreen {
        padding-left: 0;
    }

    .menu-button {
        display: inline-grid;
    }

    .app-topbar {
        padding-inline: 1.6rem;
    }

    .app-content {
        padding: 1.6rem;
    }

    .app-content--fullscreen {
        padding: .8rem;
    }
}

@media (max-width: 1280px) {
    .exec-report__masthead {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .exec-brand,
    .exec-quote {
        justify-self: center;
        text-align: center;
    }

    .exec-kpi-grid,
    .exec-panel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .exec-kpi-grid,
    .exec-panel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .exec-panel--wide {
        grid-column: span 2;
    }

    .exec-donut-row,
    .exec-insights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-kicker {
        display: none;
    }

    .app-topbar {
        min-height: 3.75rem;
    }

    .app-content {
        padding-inline: .75rem;
    }

    .utility-menu summary {
        width: 2.45rem;
        padding: 0;
        font-size: 0;
    }

    .utility-menu summary::after {
        margin-left: 0;
    }

    .exec-kpi-grid,
    .exec-panel-grid {
        grid-template-columns: 1fr;
    }

    .exec-panel--wide {
        grid-column: span 1;
    }

    .exec-title span {
        width: 100%;
        justify-content: center;
        padding-inline: .75rem;
    }

    .exec-mini-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-manager-heading {
        align-items: flex-start;
    }

    .dashboard-manager-heading img {
        width: 2.6rem;
        height: 2.6rem;
    }

    .dashboard-manager-appname {
        width: 100%;
        justify-content: center;
    }
}
/* Native progress colors follow the existing FMS controls. */
[data-report-refresh] progress {
    appearance: none;
    border: 0;
    background: #e2e8f0;
    color: #1d4ed8;
}
[data-report-refresh] progress::-webkit-progress-bar { background: #e2e8f0; }
[data-report-refresh] progress::-webkit-progress-value { background: #1d4ed8; }
[data-report-refresh] progress::-moz-progress-bar { background: #1d4ed8; }
