body.app-shell .module-hero,
body.auth-page .module-hero {
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(63, 109, 246, 0.1), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.96));
    border: 1px solid rgba(63, 109, 246, 0.1);
    box-shadow: var(--ui-shadow-sm);
}

body.app-shell .content-wrap .card,
body.app-shell .content-wrap .dropdown-menu,
body.app-shell .content-wrap .modal-content,
body.app-shell .content-wrap .offcanvas,
body.app-shell .content-wrap .alert {
    background: var(--bg-panel);
    border-color: var(--border-soft);
    color: var(--text-main);
}

body.app-shell .content-wrap .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text-main);
    --bs-table-border-color: var(--border-soft);
    --bs-table-hover-color: var(--text-main);
    --bs-table-hover-bg: rgba(59, 130, 246, 0.06);
    color: var(--text-main) !important;
}

body.app-shell .content-wrap .table thead th,
body.app-shell .content-wrap .table tfoot th {
    background: var(--bg-panel-soft) !important;
    color: var(--text-muted) !important;
    border-color: var(--border-soft) !important;
}

body.app-shell .content-wrap .table td,
body.app-shell .content-wrap .table th {
    border-color: var(--border-soft) !important;
}

body.app-shell .content-wrap .form-control,
body.app-shell .content-wrap .form-select,
body.app-shell .content-wrap textarea,
body.app-shell .content-wrap input[type="date"],
body.app-shell .content-wrap input[type="text"],
body.app-shell .content-wrap input[type="number"],
body.app-shell .content-wrap input[type="search"],
body.app-shell .content-wrap input[type="file"] {
    background: var(--bg-panel) !important;
    color: var(--text-main) !important;
    border-color: var(--border-soft) !important;
}

body.app-shell .content-wrap .form-control::placeholder,
body.app-shell .content-wrap textarea::placeholder {
    color: var(--text-muted) !important;
}

body.app-shell .content-wrap .form-control:focus,
body.app-shell .content-wrap .form-select:focus,
body.app-shell .content-wrap textarea:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.16) !important;
}

body.app-shell .content-wrap .btn-outline-light,
body.app-shell .content-wrap .btn-outline-secondary,
body.app-shell .content-wrap .btn-outline-info,
body.app-shell .content-wrap .btn-outline-danger,
body.app-shell .content-wrap .btn-outline-success,
body.app-shell .content-wrap .btn-outline-primary {
    background: var(--bg-panel) !important;
    color: var(--text-main) !important;
    border-color: var(--border-soft) !important;
}

body.app-shell .content-wrap .btn-outline-light:hover,
body.app-shell .content-wrap .btn-outline-secondary:hover,
body.app-shell .content-wrap .btn-outline-primary:hover {
    background: var(--bg-panel-soft) !important;
    color: var(--primary-hover) !important;
    border-color: var(--border-strong) !important;
}

body.app-shell .content-wrap .btn-outline-info:hover {
    background: rgba(2, 132, 199, 0.1) !important;
    color: var(--info) !important;
    border-color: rgba(2, 132, 199, 0.25) !important;
}

body.app-shell .content-wrap .btn-outline-success:hover {
    background: rgba(22, 163, 74, 0.1) !important;
    color: var(--success) !important;
    border-color: rgba(22, 163, 74, 0.25) !important;
}

body.app-shell .content-wrap .btn-outline-danger:hover {
    background: rgba(220, 38, 38, 0.1) !important;
    color: var(--danger) !important;
    border-color: rgba(220, 38, 38, 0.24) !important;
}

body.app-shell .content-wrap .text-dark,
body.app-shell .content-wrap .fw-semibold,
body.app-shell .content-wrap .fw-bold,
body.app-shell .content-wrap .h1,
body.app-shell .content-wrap .h2,
body.app-shell .content-wrap .h3,
body.app-shell .content-wrap .h4,
body.app-shell .content-wrap .h5,
body.app-shell .content-wrap .h6 {
    color: var(--text-main) !important;
}

body.app-shell .content-wrap .text-secondary,
body.app-shell .content-wrap .small,
body.app-shell .content-wrap .form-text,
body.app-shell .content-wrap .text-muted {
    color: var(--text-muted) !important;
}

body.app-shell .content-wrap .ui-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

body.app-shell .content-wrap .ui-action-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    flex: 0 0 auto;
}

body.app-shell .content-wrap .ui-action-btn__icon i {
    font-size: 0.98rem;
    line-height: 1;
}

body.app-shell .content-wrap .ui-action-btn--compact {
    min-height: 2.45rem;
}

body.app-shell .content-wrap .ui-action-btn--compact .ui-action-btn__icon {
    min-width: 1rem;
}

body.app-shell .content-wrap .card,
body.app-shell .content-wrap .btn,
body.app-shell .content-wrap .dropdown-menu,
body.app-shell .content-wrap .table,
body.app-shell .content-wrap .form-control,
body.app-shell .content-wrap .form-select {
    will-change: auto;
    backface-visibility: hidden;
}

:root[data-theme="dark"] body.app-shell .module-hero,
:root[data-theme="dark"] body.auth-page .module-hero {
    background:
        radial-gradient(circle at top right, rgba(126, 162, 255, 0.16), transparent 30%),
        linear-gradient(135deg, rgba(17, 27, 44, 0.96), rgba(13, 22, 36, 0.98));
}

body.app-shell .module-hero__content,
body.auth-page .module-hero__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
    padding: 1.65rem 1.75rem;
}

body.app-shell .module-hero__eyebrow,
body.auth-page .module-hero__eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ui-primary-strong);
    margin-bottom: 0.65rem;
}

body.app-shell .module-hero__title,
body.auth-page .module-hero__title {
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--ui-text);
}

body.app-shell .module-hero__text,
body.auth-page .module-hero__text {
    margin: 0.6rem 0 0;
    max-width: 48rem;
    color: var(--ui-text-soft);
    line-height: 1.75;
}

body.app-shell .module-hero__actions,
body.auth-page .module-hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

body.app-shell .listing-controls-shell {
    border-top-color: var(--ui-border) !important;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.88), rgba(255, 255, 255, 0.9));
}

:root[data-theme="dark"] body.app-shell .listing-controls-shell {
    background: linear-gradient(180deg, rgba(17, 27, 44, 0.82), rgba(13, 22, 36, 0.9));
}

body.app-shell .listing-controls-shell .form-select,
body.app-shell .listing-controls-shell .form-control {
    min-height: 38px;
    border-radius: 12px;
}

body.app-shell .table-action-col {
    background: var(--ui-panel-strong) !important;
    box-shadow: none !important;
    position: static !important;
    right: auto !important;
    min-width: 76px !important;
    width: 76px !important;
}

body.app-shell .coa-table thead .table-action-col,
body.app-shell .journal-page .journal-table thead .col-actions,
body.app-shell .journal-page .journal-table thead .journal-bulk-check-col {
    background: var(--ui-panel-muted) !important;
}

body.app-shell .table-action-trigger,
body.app-shell .journal-page .journal-action-trigger {
    min-height: 38px;
    min-width: 2.35rem !important;
    width: 2.35rem !important;
    height: 2.35rem !important;
    padding: 0 !important;
    border-radius: 12px !important;
    background: var(--ui-panel-strong) !important;
    border-color: var(--ui-border) !important;
    color: var(--ui-text) !important;
    box-shadow: none !important;
}

body.app-shell .table-action-trigger .ui-action-btn__label,
body.app-shell .journal-page .journal-action-trigger .ui-action-btn__label {
    display: none !important;
}

body.app-shell .table-action-trigger:hover,
body.app-shell .table-action-menu.is-open .table-action-trigger,
body.app-shell .journal-page .journal-action-trigger:hover,
body.app-shell .journal-page .journal-action-menu[open] .journal-action-trigger {
    background: var(--ui-panel-muted) !important;
    border-color: var(--ui-border-strong) !important;
    color: var(--ui-primary-strong) !important;
}

body.app-shell .table-action-panel,
body.app-shell .journal-page .journal-action-panel {
    background: var(--ui-panel-strong) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--ui-shadow-md) !important;
}

body.app-shell .table-action-panel a,
body.app-shell .table-action-panel button,
body.app-shell .journal-page .journal-action-panel a,
body.app-shell .journal-page .journal-action-panel button {
    color: var(--ui-text) !important;
    border-radius: 12px !important;
}

body.app-shell .table-action-panel a:hover,
body.app-shell .table-action-panel button:hover,
body.app-shell .journal-page .journal-action-panel a:hover,
body.app-shell .journal-page .journal-action-panel button:hover {
    background: var(--ui-panel-muted) !important;
    color: var(--ui-primary-strong) !important;
}

body.app-shell .journal-page > .d-flex:first-child {
    padding: 1.55rem 1.65rem;
    border: 1px solid rgba(63, 109, 246, 0.08);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(63, 109, 246, 0.08), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.94));
    box-shadow: var(--ui-shadow-sm);
}

:root[data-theme="dark"] body.app-shell .journal-page > .d-flex:first-child {
    background:
        radial-gradient(circle at top right, rgba(126, 162, 255, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(17, 27, 44, 0.94), rgba(13, 22, 36, 0.98));
}

body.app-shell .journal-page .card,
body.app-shell .period-page .card {
    overflow: hidden;
}

body.app-shell .journal-page .journal-bulk-card,
body.app-shell .journal-page .journal-card {
    background: var(--ui-panel-strong) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: 18px !important;
    box-shadow: none !important;
}

body.app-shell .journal-page .journal-scroll-note,
body.app-shell .journal-page .journal-bulk-hint,
body.app-shell .journal-page .journal-card__label,
body.app-shell .journal-page .journal-card__value,
body.app-shell .journal-page .journal-card__desc,
body.app-shell .journal-page .journal-bulk-toolbar .form-label {
    color: var(--ui-text-soft) !important;
}

body.app-shell .journal-page .journal-bulk-counter {
    background: rgba(63, 109, 246, 0.1) !important;
    color: var(--ui-primary-strong) !important;
}

body.app-shell .journal-page .journal-bulk-check-col,
body.app-shell .journal-page .journal-table .col-actions {
    background: var(--ui-panel-strong) !important;
    box-shadow: -10px 0 20px rgba(15, 23, 42, 0.06) !important;
}

body.app-shell .journal-page .journal-table .col-actions {
    position: sticky !important;
    right: 0 !important;
    z-index: 3 !important;
    min-width: 90px !important;
    width: 90px !important;
}

body.app-shell .journal-page .journal-table .journal-bulk-check-col {
    box-shadow: none !important;
}

body.app-shell .journal-page .journal-table thead .col-actions {
    z-index: 4 !important;
}

body.app-shell .journal-page .journal-table tbody tr:hover .col-actions,
body.app-shell .journal-page .journal-table tbody tr:has(.journal-action-menu[open]) .col-actions,
body.app-shell .journal-page .journal-table tbody tr.table-active .col-actions {
    background: var(--ui-panel-muted) !important;
}

body.app-shell .coa-table tbody tr.table-action-row-open,
body.app-shell .journal-page .journal-table tbody tr {
    position: relative;
    z-index: 1;
}

body.app-shell .coa-table tbody tr.table-action-row-open,
body.app-shell .journal-page .journal-table tbody tr:has(.journal-action-menu[open]) {
    z-index: 40;
}

body.app-shell .table-action-menu,
body.app-shell .journal-page .journal-action-menu {
    isolation: isolate;
}

body.app-shell .period-page .alert-info {
    margin-bottom: 1.2rem !important;
}

body.auth-page {
    font-family: var(--ui-font-sans);
    color: var(--ui-text);
    background:
        radial-gradient(circle at top left, rgba(63, 109, 246, 0.1), transparent 22%),
        linear-gradient(180deg, var(--ui-bg) 0%, var(--ui-bg-soft) 100%);
}

body.auth-page .auth-shell-inner {
    max-width: 1320px;
}

body.auth-page .auth-layout-grid {
    min-height: calc(100vh - 3rem);
}

body.auth-page .auth-visual-card,
body.auth-page .auth-card {
    background: var(--ui-panel) !important;
    border: 1px solid var(--ui-border) !important;
    border-radius: 30px !important;
    box-shadow: var(--ui-shadow-md) !important;
}

body.auth-page .auth-visual-card {
    padding: 2.1rem 2rem;
}

body.auth-page .auth-visual-card__eyebrow,
body.auth-page .auth-mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(63, 109, 246, 0.1);
    color: var(--ui-primary-strong);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.auth-page .auth-visual-card__title,
body.auth-page .auth-form-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: var(--ui-text);
}

body.auth-page .auth-form-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

body.auth-page .auth-visual-card__lead {
    margin-top: 1.4rem;
    color: var(--ui-text-soft);
    line-height: 1.85;
    font-size: 1.02rem;
}

body.auth-page .auth-feature-list {
    display: grid;
    gap: 0.9rem;
}

body.auth-page .auth-feature-item {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-panel-strong);
    color: var(--ui-text-soft);
    box-shadow: none;
}

body.auth-page .auth-form-card .card-body {
    padding: 2rem !important;
}

body.auth-page #themeToggle {
    min-height: 44px;
    padding: 0.55rem 0.9rem;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: var(--ui-panel-strong);
    box-shadow: none;
    color: var(--ui-text);
}

body.auth-page .ui-alert {
    margin-bottom: 1.1rem;
}

body.auth-page .form-control,
body.auth-page .form-select {
    min-height: 48px;
}

@media (max-width: 991.98px) {
    body.app-shell .module-hero__content,
    body.auth-page .module-hero__content {
        flex-direction: column;
        align-items: flex-start;
    }

    body.app-shell .journal-page > .d-flex:first-child {
        padding: 1.3rem 1.35rem;
    }

    body.auth-page .auth-layout-grid {
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    body.app-shell .module-hero__content,
    body.auth-page .module-hero__content {
        padding: 1.3rem;
    }

    body.app-shell .content-wrap .ui-action-btn--compact {
        width: 2.7rem;
        height: 2.7rem;
        padding: 0 !important;
        border-radius: 14px;
    }

    body.app-shell .content-wrap .ui-action-btn--compact .ui-action-btn__label {
        display: none;
    }

    body.auth-page .auth-form-card .card-body,
    body.auth-page .auth-visual-card {
        padding: 1.4rem !important;
    }

    body.auth-page .auth-form-title {
        font-size: 1.85rem;
    }
}

body.app-shell .module-page {
    display: grid;
    gap: 1rem;
}

body.app-shell .module-page > .row,
body.app-shell .module-page > .card,
body.app-shell .module-page > .alert,
body.app-shell .module-page > .listing-controls-shell,
body.app-shell .module-page > form,
body.app-shell .module-page > section {
    margin-bottom: 0 !important;
}

body.app-shell .module-page .card,
body.app-shell .route-ledger .card,
body.app-shell .route-trial-balance .card,
body.app-shell .route-profit-loss .card,
body.app-shell .route-balance-sheet .card,
body.app-shell .route-cash-flow .card,
body.app-shell .route-equity-changes .card,
body.app-shell .route-financial-notes .card,
body.app-shell .route-lpj .card {
    border: 1px solid var(--ui-border) !important;
    border-radius: 24px !important;
    background: var(--ui-panel) !important;
    box-shadow: var(--ui-shadow-sm) !important;
}

body.app-shell .coa-page .dashboard-card,
body.app-shell .user-account-page .dashboard-card,
body.app-shell .bank-reconciliation-page .dashboard-card,
body.app-shell .route-ledger .dashboard-card,
body.app-shell .route-trial-balance .dashboard-card,
body.app-shell .route-profit-loss .dashboard-card,
body.app-shell .route-balance-sheet .dashboard-card,
body.app-shell .route-cash-flow .dashboard-card,
body.app-shell .route-equity-changes .dashboard-card,
body.app-shell .route-financial-notes .dashboard-card,
body.app-shell .route-lpj .dashboard-card {
    border: 1px solid var(--ui-border) !important;
    border-radius: 22px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98)) !important;
    box-shadow: var(--ui-shadow-sm) !important;
}

:root[data-theme="dark"] body.app-shell .coa-page .dashboard-card,
:root[data-theme="dark"] body.app-shell .user-account-page .dashboard-card,
:root[data-theme="dark"] body.app-shell .bank-reconciliation-page .dashboard-card,
:root[data-theme="dark"] body.app-shell .route-ledger .dashboard-card,
:root[data-theme="dark"] body.app-shell .route-trial-balance .dashboard-card,
:root[data-theme="dark"] body.app-shell .route-profit-loss .dashboard-card,
:root[data-theme="dark"] body.app-shell .route-balance-sheet .dashboard-card,
:root[data-theme="dark"] body.app-shell .route-cash-flow .dashboard-card,
:root[data-theme="dark"] body.app-shell .route-equity-changes .dashboard-card,
:root[data-theme="dark"] body.app-shell .route-financial-notes .dashboard-card,
:root[data-theme="dark"] body.app-shell .route-lpj .dashboard-card {
    background: linear-gradient(180deg, rgba(17, 27, 44, 0.96), rgba(13, 22, 36, 0.98)) !important;
}

body.app-shell .coa-page .table.table-dark,
body.app-shell .user-account-page .table.table-dark,
body.app-shell .bank-reconciliation-page .table.table-dark,
body.app-shell .route-ledger .table.table-dark,
body.app-shell .route-trial-balance .table.table-dark,
body.app-shell .route-profit-loss .table,
body.app-shell .route-balance-sheet .table.table-dark,
body.app-shell .route-cash-flow .table,
body.app-shell .route-equity-changes .table.table-dark,
body.app-shell .route-financial-notes .table.table-dark,
body.app-shell .route-lpj .table.table-dark,
body.app-shell .journal-detail-page .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ui-text);
    --bs-table-border-color: var(--ui-border);
    --bs-table-hover-color: var(--ui-text);
    --bs-table-hover-bg: rgba(63, 109, 246, 0.04);
    color: var(--ui-text) !important;
}

body.app-shell .coa-page .table.table-dark thead th,
body.app-shell .user-account-page .table.table-dark thead th,
body.app-shell .bank-reconciliation-page .table.table-dark thead th,
body.app-shell .route-ledger .table.table-dark thead th,
body.app-shell .route-trial-balance .table.table-dark thead th,
body.app-shell .route-profit-loss .table thead th,
body.app-shell .route-balance-sheet .table.table-dark thead th,
body.app-shell .route-cash-flow .table thead th,
body.app-shell .route-equity-changes .table.table-dark thead th,
body.app-shell .route-financial-notes .table.table-dark thead th,
body.app-shell .route-lpj .table.table-dark thead th,
body.app-shell .journal-detail-page .table thead th {
    background: var(--ui-panel-muted) !important;
    color: var(--ui-text) !important;
    border-bottom-color: var(--ui-border-strong) !important;
    white-space: nowrap;
}

body.app-shell .coa-page .table.table-dark td,
body.app-shell .user-account-page .table.table-dark td,
body.app-shell .bank-reconciliation-page .table.table-dark td,
body.app-shell .route-ledger .table.table-dark td,
body.app-shell .route-trial-balance .table.table-dark td,
body.app-shell .route-profit-loss .table td,
body.app-shell .route-balance-sheet .table.table-dark td,
body.app-shell .route-cash-flow .table td,
body.app-shell .route-equity-changes .table.table-dark td,
body.app-shell .route-financial-notes .table.table-dark td,
body.app-shell .route-lpj .table.table-dark td,
body.app-shell .journal-detail-page .table td {
    background: transparent !important;
    color: var(--ui-text) !important;
}

body.app-shell .route-ledger .content-wrap > .d-flex:first-of-type,
body.app-shell .route-trial-balance .content-wrap > .d-flex:first-of-type,
body.app-shell .route-profit-loss .content-wrap > .d-flex:first-of-type,
body.app-shell .route-balance-sheet .content-wrap > .d-flex:first-of-type,
body.app-shell .route-equity-changes .content-wrap > .d-flex:first-of-type,
body.app-shell .route-financial-notes .content-wrap > .d-flex:first-of-type,
body.app-shell .route-lpj .content-wrap > .d-flex:first-of-type {
    padding: 1.55rem 1.65rem;
    border: 1px solid rgba(63, 109, 246, 0.08);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(63, 109, 246, 0.08), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.94));
    box-shadow: var(--ui-shadow-sm);
}

:root[data-theme="dark"] body.app-shell .route-ledger .content-wrap > .d-flex:first-of-type,
:root[data-theme="dark"] body.app-shell .route-trial-balance .content-wrap > .d-flex:first-of-type,
:root[data-theme="dark"] body.app-shell .route-profit-loss .content-wrap > .d-flex:first-of-type,
:root[data-theme="dark"] body.app-shell .route-balance-sheet .content-wrap > .d-flex:first-of-type,
:root[data-theme="dark"] body.app-shell .route-equity-changes .content-wrap > .d-flex:first-of-type,
:root[data-theme="dark"] body.app-shell .route-financial-notes .content-wrap > .d-flex:first-of-type,
:root[data-theme="dark"] body.app-shell .route-lpj .content-wrap > .d-flex:first-of-type {
    background:
        radial-gradient(circle at top right, rgba(126, 162, 255, 0.14), transparent 28%),
        linear-gradient(135deg, rgba(17, 27, 44, 0.94), rgba(13, 22, 36, 0.98));
}

body.app-shell .route-ledger .card.shadow-sm > .card-body.p-5.text-center.text-secondary,
body.app-shell .route-trial-balance .card.shadow-sm > .card-body.p-5.text-center.text-secondary,
body.app-shell .route-profit-loss .card.shadow-sm > .card-body.p-5.text-center.text-secondary,
body.app-shell .route-balance-sheet .card.shadow-sm > .card-body.p-5.text-center.text-secondary,
body.app-shell .route-equity-changes .card.shadow-sm > .card-body.p-5.text-center.text-secondary,
body.app-shell .route-financial-notes .card.shadow-sm > .card-body.p-5.text-center.text-secondary,
body.app-shell .route-lpj .card.shadow-sm > .card-body.p-5.text-center.text-secondary,
body.app-shell .empty-state-panel {
    padding: 2rem 1.6rem !important;
    border: 1px dashed var(--ui-border-strong);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.88), rgba(255, 255, 255, 0.95));
    color: var(--ui-text-soft) !important;
}

body.app-shell .empty-state-panel--compact {
    padding: 1.4rem 1.35rem !important;
}

body.app-shell .empty-state-panel__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ui-text);
    margin-bottom: 0.35rem;
}

body.app-shell .empty-state-panel__text,
body.app-shell .card-body.text-center strong.text-light,
body.app-shell .card-body.text-center strong.text-dark {
    color: var(--ui-text-soft) !important;
}

body.app-shell .user-account-form-page .bg-dark-subtle {
    background: linear-gradient(180deg, rgba(248, 251, 255, 0.9), rgba(241, 245, 249, 0.96)) !important;
}

:root[data-theme="dark"] body.app-shell .user-account-form-page .bg-dark-subtle {
    background: linear-gradient(180deg, rgba(17, 27, 44, 0.92), rgba(13, 22, 36, 0.98)) !important;
}

body.app-shell .route-profit-loss .statement-section td,
body.app-shell .route-balance-sheet .balance-section-row td,
body.app-shell .route-balance-sheet .balance-total-row td,
body.app-shell .route-equity-changes .table tfoot tr td,
body.app-shell .route-equity-changes .table tfoot tr th {
    background: rgba(63, 109, 246, 0.05) !important;
}

@media (max-width: 991.98px) {
    body.app-shell .route-ledger .content-wrap > .d-flex:first-of-type,
    body.app-shell .route-trial-balance .content-wrap > .d-flex:first-of-type,
    body.app-shell .route-profit-loss .content-wrap > .d-flex:first-of-type,
    body.app-shell .route-balance-sheet .content-wrap > .d-flex:first-of-type,
    body.app-shell .route-equity-changes .content-wrap > .d-flex:first-of-type,
    body.app-shell .route-financial-notes .content-wrap > .d-flex:first-of-type,
    body.app-shell .route-lpj .content-wrap > .d-flex:first-of-type {
        padding: 1.25rem 1.35rem;
    }
}

body.app-shell .report-analytics-page {
    display: grid;
    gap: 1rem;
}

body.app-shell .report-analytics-page .card,
body.app-shell .report-analytics-page .module-hero {
    margin-bottom: 0 !important;
}

body.app-shell .report-filter-card .card-body {
    padding: 1.2rem 1.3rem !important;
}

body.app-shell .report-filter-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

body.app-shell .report-filter-head__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell .report-filter-head__text {
    margin: 0.2rem 0 0;
    color: var(--ui-text-soft);
    font-size: 0.9rem;
}

body.app-shell .report-filter-grid .form-label {
    margin-bottom: 0.35rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--ui-text-soft);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.app-shell .report-filter-grid .form-control,
body.app-shell .report-filter-grid .form-select {
    min-height: 42px;
    border-radius: 14px;
}

body.app-shell .report-chip-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

body.app-shell .report-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 0.9rem;
    border-radius: 16px;
    border: 1px solid var(--ui-border);
    background: var(--ui-panel-strong);
    color: var(--ui-text);
    font-size: 0.9rem;
}

body.app-shell .report-chip strong {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ui-text-soft);
}

body.app-shell .report-summary-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

body.app-shell .report-summary-strip__item {
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-panel-strong);
}

body.app-shell .report-summary-strip__label {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ui-text-soft);
}

body.app-shell .report-summary-strip__value {
    display: block;
    margin-top: 0.45rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ui-text);
    line-height: 1.35;
}

body.app-shell .report-summary-strip__meta {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.84rem;
    color: var(--ui-text-soft);
}

body.app-shell .report-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

body.app-shell .report-kpi-card {
    padding: 1.2rem 1.25rem;
    border-radius: 24px;
    border: 1px solid var(--ui-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 253, 0.98));
    box-shadow: var(--ui-shadow-sm);
}

:root[data-theme="dark"] body.app-shell .report-kpi-card {
    background: linear-gradient(180deg, rgba(17, 27, 44, 0.96), rgba(13, 22, 36, 0.98));
}

body.app-shell .report-kpi-card__label {
    color: var(--ui-text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.app-shell .report-kpi-card__value {
    margin-top: 0.55rem;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    font-weight: 800;
    color: var(--ui-text);
    letter-spacing: -0.04em;
}

body.app-shell .report-kpi-card__value--sm {
    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
}

body.app-shell .report-kpi-card__meta {
    margin-top: 0.5rem;
    color: var(--ui-text-soft);
    font-size: 0.9rem;
}

body.app-shell .report-chart-card .card-body,
body.app-shell .report-table-card .card-body {
    background: transparent;
}

body.app-shell .report-chart-card .card-body {
    padding: 1.25rem 1.35rem !important;
}

body.app-shell .report-mini-chart {
    display: grid;
    gap: 1rem;
}

body.app-shell .report-mini-chart__group {
    display: grid;
    gap: 0.65rem;
    align-items: end;
}

body.app-shell .report-mini-chart__bars {
    min-height: 172px;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 0.85rem 0.6rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-panel-strong);
}

body.app-shell .report-mini-chart__bar {
    width: 18px;
    border-radius: 999px 999px 8px 8px;
    display: inline-block;
}

body.app-shell .report-mini-chart__bar--revenue { background: #3b82f6; }
body.app-shell .report-mini-chart__bar--expense { background: #f97316; }
body.app-shell .report-mini-chart__bar--net { background: #4f46e5; }

body.app-shell .report-mini-chart__label {
    text-align: center;
    font-size: 0.84rem;
    color: var(--ui-text-soft);
    font-weight: 600;
}

body.app-shell .report-mini-chart--bars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.app-shell .report-bar-group {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid var(--ui-border);
    background: var(--ui-panel-strong);
    display: grid;
    gap: 0.75rem;
}

body.app-shell .report-bar-group__label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--ui-text);
}

body.app-shell .report-bar-group__row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
}

body.app-shell .report-bar-group__legend,
body.app-shell .report-bar-group__value {
    font-size: 0.82rem;
    color: var(--ui-text-soft);
}

body.app-shell .report-bar-group__value {
    font-weight: 700;
    color: var(--ui-text);
    white-space: nowrap;
}

body.app-shell .report-bar-group__track {
    height: 10px;
    border-radius: 999px;
    background: var(--ui-panel-muted);
    overflow: hidden;
}

body.app-shell .report-bar-group__bar {
    display: block;
    height: 100%;
    border-radius: 999px;
}

body.app-shell .report-bar-group__bar--income { background: #3b82f6; }
body.app-shell .report-bar-group__bar--income-soft { background: #93c5fd; }
body.app-shell .report-bar-group__bar--expense { background: #f97316; }
body.app-shell .report-bar-group__bar--expense-soft { background: #fdba74; }

body.app-shell .report-composition {
    display: grid;
    gap: 1rem;
}

body.app-shell .report-composition__bar {
    display: flex;
    min-height: 16px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--ui-panel-muted);
}

body.app-shell .report-composition__slice { display: block; }
body.app-shell .report-composition__slice--asset { background: #3b82f6; }
body.app-shell .report-composition__slice--liability { background: #f97316; }
body.app-shell .report-composition__slice--equity { background: #10b981; }

body.app-shell .report-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: var(--ui-text-soft);
    font-size: 0.9rem;
}

body.app-shell .report-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

body.app-shell .report-legend__dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
}

body.app-shell .report-legend__dot--income,
body.app-shell .report-legend__dot--asset { background: #3b82f6; }
body.app-shell .report-legend__dot--expense,
body.app-shell .report-legend__dot--liability { background: #f97316; }
body.app-shell .report-legend__dot--net,
body.app-shell .report-legend__dot--equity { background: #4f46e5; }

body.app-shell .report-table-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.4rem 1rem;
    border-bottom: 1px solid var(--ui-border);
}

body.app-shell .report-table-head__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

body.app-shell .report-table-head__stat {
    min-width: 150px;
    padding: 0.8rem 0.95rem;
    border-radius: 18px;
    border: 1px solid var(--ui-border);
    background: var(--ui-panel-strong);
}

body.app-shell .report-table-head__stat span {
    display: block;
    color: var(--ui-text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

body.app-shell .report-table-head__stat strong {
    display: block;
    margin-top: 0.45rem;
    font-size: 1rem;
    color: var(--ui-text);
}

body.app-shell .report-analytics-table thead th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    padding-top: 0.95rem !important;
    padding-bottom: 0.95rem !important;
}

body.app-shell .report-analytics-table tbody td {
    vertical-align: top;
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
}

body.app-shell .report-row--section td {
    background: rgba(63, 109, 246, 0.05) !important;
    font-weight: 800;
}

body.app-shell .report-row--section td:first-child {
    color: var(--ui-primary-strong);
}

body.app-shell .report-row--section + tr td {
    border-top-color: var(--ui-border-strong) !important;
}

body.app-shell .report-analytics-table tbody tr:nth-child(even) td {
    background: rgba(248, 251, 255, 0.42);
}

:root[data-theme="dark"] body.app-shell .report-analytics-table tbody tr:nth-child(even) td {
    background: rgba(17, 27, 44, 0.32);
}

body.app-shell .report-row__label {
    line-height: 1.55;
}

body.app-shell .report-numeric,
body.app-shell .report-analytics-table td.text-end,
body.app-shell .report-analytics-table th.text-end {
    font-variant-numeric: tabular-nums;
}

body.app-shell .report-help-note {
    color: var(--ui-text-soft);
    font-size: 0.88rem;
    line-height: 1.6;
}

body.app-shell .report-value-link {
    color: var(--ui-text);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
}

body.app-shell .report-value-link:hover {
    color: var(--ui-primary-strong);
    border-bottom-color: currentColor;
}

body.app-shell .report-value-link--muted {
    color: var(--ui-text-soft);
}

body.app-shell .report-direction--up,
body.app-shell .report-direction--up strong { color: #1d9b5d !important; }
body.app-shell .report-direction--down,
body.app-shell .report-direction--down strong { color: #ea580c !important; }
body.app-shell .report-direction--stable,
body.app-shell .report-direction--stable strong { color: var(--ui-text-soft) !important; }

body.app-shell .report-status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

body.app-shell .report-status-badge--ok {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}

body.app-shell .report-status-badge--warn {
    background: rgba(249, 115, 22, 0.12);
    color: #c2410c;
}

@media (max-width: 1199.98px) {
    body.app-shell .report-summary-strip,
    body.app-shell .report-kpi-grid,
    body.app-shell .report-mini-chart--bars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    body.app-shell .report-filter-head,
    body.app-shell .report-summary-strip,
    body.app-shell .report-kpi-grid,
    body.app-shell .report-mini-chart--bars {
        grid-template-columns: 1fr;
    }

    body.app-shell .report-filter-head {
        display: grid;
    }

    body.app-shell .report-table-head {
        flex-direction: column;
    }

    body.app-shell .report-table-head__meta {
        width: 100%;
    }

    body.app-shell .report-table-head__stat {
        width: 100%;
    }

    body.app-shell .report-bar-group__row {
        grid-template-columns: 1fr;
    }
}

/* Neraca Saldo screen report: simple examiner-friendly layout. */
body.app-shell .trial-balance-screen-table {
    table-layout: fixed;
    border-collapse: collapse !important;
}

body.app-shell .trial-balance-screen-table th,
body.app-shell .trial-balance-screen-table td {
    border-color: #d9e2f1 !important;
}

body.app-shell .trial-balance-screen-table thead th {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    font-size: 0.92rem;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
}

body.app-shell .trial-balance-screen-table thead th:first-child {
    width: 52%;
}

body.app-shell .trial-balance-screen-table__group td {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: 0.94rem;
    font-weight: 800 !important;
}

body.app-shell .trial-balance-screen-table__account {
    color: #0f172a;
    font-weight: 700;
    line-height: 1.25;
}

body.app-shell .trial-balance-screen-table__code {
    margin-top: 0.18rem;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
}

body.app-shell .trial-balance-screen-table tfoot th {
    background: #dbeafe !important;
    color: #0f172a !important;
    font-weight: 900 !important;
}

html[data-theme="dark"] body.app-shell .trial-balance-screen-table th,
html[data-theme="dark"] body.app-shell .trial-balance-screen-table td {
    border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-theme="dark"] body.app-shell .trial-balance-screen-table thead th {
    background: #1e40af !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body.app-shell .trial-balance-screen-table__group td {
    background: rgba(30, 41, 59, 0.94) !important;
    color: #f8fbff !important;
}

html[data-theme="dark"] body.app-shell .trial-balance-screen-table__account {
    color: #f8fbff;
}

html[data-theme="dark"] body.app-shell .trial-balance-screen-table__code {
    color: #a9bbd3;
}

html[data-theme="dark"] body.app-shell .trial-balance-screen-table tfoot th {
    background: rgba(37, 99, 235, 0.24) !important;
    color: #f8fbff !important;
}

/* Cash flow statement: one clean statement table like formal accounting output. */
body.app-shell .cash-flow-statement-card {
    overflow: hidden;
}

body.app-shell .cash-flow-statement-table-screen {
    color: var(--ui-text, #0f172a);
    font-size: 0.95rem;
}

body.app-shell .cash-flow-statement-table-screen thead th {
    background: #10b8df !important;
    border-bottom: 0;
    color: #fff !important;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 0.85rem 1rem;
}

body.app-shell .cash-flow-statement-table-screen tbody td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    padding: 0.72rem 1rem;
}

body.app-shell .cash-flow-statement-table-screen .statement-section-row td {
    background: rgba(15, 23, 42, 0.04);
    border-bottom: 0;
    color: var(--ui-heading, #0f172a);
    font-weight: 800;
    padding-top: 1rem;
}

body.app-shell .cash-flow-statement-table-screen .statement-subtotal-row td {
    border-top: 1px solid rgba(15, 23, 42, 0.45);
    font-weight: 800;
}

body.app-shell .cash-flow-statement-table-screen .statement-spacer-row td {
    border: 0;
    height: 1rem;
    padding: 0;
}

body.app-shell .cash-flow-statement-table-screen .statement-total-row td,
body.app-shell .cash-flow-statement-table-screen .statement-grand-total-row td {
    background: rgba(241, 245, 249, 0.86);
    font-weight: 800;
}

body.app-shell .cash-flow-statement-table-screen .statement-grand-total-row td {
    border-bottom: 2px solid rgba(148, 163, 184, 0.85);
}

html[data-theme="dark"] body.app-shell .cash-flow-statement-table-screen thead th {
    background: #0ea5e9 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] body.app-shell .cash-flow-statement-table-screen .statement-section-row td {
    background: rgba(148, 163, 184, 0.1);
    color: #f8fafc;
}

html[data-theme="dark"] body.app-shell .cash-flow-statement-table-screen .statement-subtotal-row td {
    border-top-color: rgba(226, 232, 240, 0.55);
}

html[data-theme="dark"] body.app-shell .cash-flow-statement-table-screen .statement-total-row td,
html[data-theme="dark"] body.app-shell .cash-flow-statement-table-screen .statement-grand-total-row td {
    background: rgba(30, 41, 59, 0.86);
    color: #f8fafc;
}
