:root {
    --bg: #f5f6f8;
    --panel: #ffffff;
    --panel-soft: #f7f8fb;
    --sidebar: #173a69;
    --sidebar-hover: #224a81;
    --text: #233042;
    --muted: #6b7380;
    --line: #d8dde5;
    --primary: #173a69;
    --primary-dark: #102b4f;
    --accent: #b1a36c;
    --danger: #b94a48;
    --shadow: 0 18px 45px rgba(23, 58, 105, 0.10);
    --radius: 22px;
    --app-font-family: "Inter", "Segoe UI", Arial, sans-serif;
    --app-color-bg: #f5f6f8;
    --app-color-surface: #ffffff;
    --app-color-surface-muted: #f7f8fb;
    --app-color-text: #233042;
    --app-color-muted: #6b7380;
    --app-color-border: #d8dde5;
    --app-color-primary: #173a69;
    --app-color-primary-hover: #102b4f;
    --app-color-success: #13803d;
    --app-color-warning: #b7791f;
    --app-color-danger: #b94a48;
    --app-space-1: 0.25rem;
    --app-space-2: 0.5rem;
    --app-space-3: 0.75rem;
    --app-space-4: 1rem;
    --app-space-5: 1.25rem;
    --app-space-6: 1.5rem;
    --app-radius-sm: 8px;
    --app-radius-md: 10px;
    --app-radius-lg: 12px;
    --app-radius-xl: 14px;
    --app-shadow-card: 0 10px 24px rgba(18, 39, 70, 0.06);
}

/* Customer/vendor create form: keep the action buttons inside the visible app page. */
@media (min-width: 1101px) {
    .partner-form-card {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .partner-form-card .modern-form {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-rows: minmax(0, 1fr) auto !important;
        gap: 0.55rem !important;
        overflow: hidden !important;
    }

    .partner-form-card .form-grid {
        align-content: start !important;
        overflow: hidden !important;
    }

    .partner-form-card textarea.form-control {
        min-height: 42px !important;
        height: 42px !important;
    }

    .partner-form-card .form-actions {
        margin-top: 0 !important;
        padding-top: 0.35rem !important;
        border-top: 1px solid #dce6f2 !important;
    }
}

/* Sidebar collapse toggle. The hamburger opens an icon-only navigation mode. */
@media (min-width: 1101px) {
    :root {
        --app-sidebar-collapsed-width: 82px;
    }

    .suite-shell.is-sidebar-collapsed {
        grid-template-columns: var(--app-sidebar-collapsed-width) minmax(0, 1fr) !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-sidebar {
        width: var(--app-sidebar-collapsed-width) !important;
        min-width: var(--app-sidebar-collapsed-width) !important;
        max-width: var(--app-sidebar-collapsed-width) !important;
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        align-items: center !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand {
        justify-content: center !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand-copy,
    .suite-shell.is-sidebar-collapsed .suite-nav-group-label,
    .suite-shell.is-sidebar-collapsed .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: none !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand-mark {
        margin: 0 auto !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand-logo {
        width: 46px !important;
        height: 46px !important;
        object-fit: contain !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-sidebar-nav,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-bottom {
        width: 100% !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-nav-link,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        border-radius: 12px !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        width: 58px !important;
        max-width: 58px !important;
        height: 48px !important;
        background: #d95353 !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-nav-icon {
        margin: 0 !important;
        flex: 0 0 28px !important;
    }
}

/* Legal compliance pages. */
.legal-page-shell {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 0.75rem;
}

.legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 1rem;
    align-items: stretch;
}

.legal-hero > div {
    border: 1px solid #d6e1ef;
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f2f8ff 58%, #edfdf7 100%);
    box-shadow: 0 14px 30px rgba(15, 50, 94, 0.08);
    padding: 1rem 1.1rem;
}

.legal-hero h1 {
    margin: 0.12rem 0 0.35rem;
    color: #082650;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1;
    font-weight: 900;
}

.legal-hero p,
.legal-hero-ar p {
    margin: 0;
    color: #49617f;
    font-size: 0.96rem;
    line-height: 1.55;
}

.legal-hero-ar span {
    display: block;
    margin-bottom: 0.4rem;
    color: #0a754f;
    font-size: 1.45rem;
    font-weight: 900;
}

.legal-layout {
    min-height: 0;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 0.75rem;
}

.legal-index-card,
.legal-document-card {
    min-height: 0;
    border: 1px solid #d6e1ef;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15, 50, 94, 0.08);
}

.legal-index-card {
    display: grid;
    align-content: start;
    gap: 0.45rem;
    padding: 0.85rem;
}

.legal-index-label,
.legal-kicker {
    color: #46617f;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.legal-index-card a {
    padding: 0.72rem 0.85rem;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #082650;
    font-weight: 800;
    text-decoration: none;
}

.legal-index-card a:hover,
.legal-index-card a.is-active {
    border-color: #c9ddf5;
    background: #edf6ff;
    color: #0b4fb3;
}

.legal-version-card {
    margin-top: 0.45rem;
    padding: 0.85rem;
    border: 1px solid #cfe8dc;
    border-radius: 12px;
    background: #f0fdf7;
    display: grid;
    gap: 0.15rem;
}

.legal-version-card strong {
    color: #0f5132;
}

.legal-version-card span,
.legal-version-card small {
    color: #49617f;
}

.legal-document-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.legal-document-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid #d6e1ef;
    background: linear-gradient(90deg, #ffffff, #f3f8ff);
}

.legal-document-header h2 {
    margin: 0.16rem 0 0;
    color: #082650;
    font-size: 1.5rem;
    font-weight: 900;
}

.legal-last-updated {
    min-width: 170px;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cfe8dc;
    border-radius: 12px;
    background: #f0fdf7;
    text-align: right;
}

.legal-last-updated span {
    display: block;
    color: #49617f;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.legal-last-updated strong {
    color: #0f5132;
}

.legal-scroll-panel {
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.1rem;
}

.legal-section {
    padding: 0.95rem 0;
    border-bottom: 1px solid #e3ebf5;
}

.legal-section:first-child {
    padding-top: 0;
}

.legal-section h3,
.legal-section h4 {
    margin: 0 0 0.45rem;
    color: #082650;
    font-size: 1rem;
    font-weight: 900;
}

.legal-section h4 {
    color: #0a754f;
}

.legal-section p {
    margin: 0 0 0.6rem;
    color: #405776;
    line-height: 1.58;
}

.legal-section-ar {
    margin-top: 0.75rem;
    padding: 0.85rem;
    border: 1px solid #d8efe4;
    border-radius: 12px;
    background: #f6fffb;
}

.legal-notice {
    border-bottom: 0;
}

.suite-footer-links {
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .legal-hero,
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-document-header {
        display: grid;
    }

    .legal-last-updated {
        text-align: left;
    }
}

/* Compact-window repair: use normal page scrolling and make the menu button meaningful. */
@media (max-width: 1280px), (max-height: 760px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    body {
        min-width: 760px !important;
    }

    .suite-shell {
        --app-sidebar-width: 258px;
        display: grid !important;
        grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr) !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .suite-shell.is-sidebar-collapsed {
        --app-sidebar-width: 74px;
        grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr) !important;
    }

    .suite-sidebar {
        position: sticky !important;
        top: 0 !important;
        width: var(--app-sidebar-width) !important;
        min-width: var(--app-sidebar-width) !important;
        max-width: var(--app-sidebar-width) !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0.8rem 0.7rem !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-sidebar {
        align-items: center !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand-copy,
    .suite-shell.is-sidebar-collapsed .suite-nav-group-label,
    .suite-shell.is-sidebar-collapsed .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: none !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand-copy,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-group-label,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: inline !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand,
    .suite-shell.is-sidebar-collapsed .suite-nav-link,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        justify-content: center !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-nav-link,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .suite-main {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        min-width: 0 !important;
    }

    .suite-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 25 !important;
        height: auto !important;
        min-height: 62px !important;
        display: grid !important;
        grid-template-columns: auto minmax(180px, 1fr) auto !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0.65rem !important;
        overflow: visible !important;
    }

    .suite-topbar-left,
    .suite-topbar-right {
        min-width: 0 !important;
        gap: 0.35rem !important;
        flex-wrap: nowrap !important;
    }

    .suite-menu-button,
    .suite-topbar-action,
    .suite-profile-switch-button,
    .suite-profile-logout-button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .suite-back-button {
        width: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
    }

    .suite-back-button span,
    .topbar-company-manage,
    .suite-profile-copy {
        display: none !important;
    }

    .topbar-company-select {
        width: clamp(150px, 20vw, 250px) !important;
        min-width: 0 !important;
        max-width: 250px !important;
        font-size: 0.78rem !important;
    }

    .suite-search-shell {
        min-width: 160px !important;
        min-height: 40px !important;
        height: 40px !important;
    }

    .suite-page-body,
    .suite-page-body-dashboard {
        height: auto !important;
        min-height: calc(100vh - 110px) !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0.65rem !important;
    }

    .suite-main-dashboard .suite-page-body-dashboard,
    .suite-page-body-dashboard .dashboard-page-shell {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .suite-page-body-dashboard .dashboard-summary-grid,
    .suite-page-body-dashboard .dashboard-reference-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
        gap: 0.55rem !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .suite-page-body-dashboard .dashboard-reference-grid {
        grid-template-areas:
            "chart transactions"
            "profit transactions"
            "actions actions" !important;
    }

    .suite-page-body-dashboard .dashboard-panel-card,
    .suite-page-body-dashboard .dashboard-summary-card {
        min-width: 0 !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .suite-page-body-dashboard .dashboard-card-actions {
        max-height: none !important;
    }

    .suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list,
    .suite-page-body-dashboard .dashboard-card-transactions .acct-data-table-shell {
        max-height: none !important;
        overflow: visible !important;
    }

    .table-responsive,
    .acct-data-table-shell {
        overflow-x: auto !important;
    }

    .suite-footer {
        position: relative !important;
        height: auto !important;
        min-height: 30px !important;
        overflow: visible !important;
        flex-wrap: wrap !important;
        padding: 0.45rem 0.65rem !important;
    }
}

@media (max-width: 900px) {
    body {
        min-width: 0 !important;
    }

    .suite-shell {
        display: block !important;
    }

    .suite-sidebar {
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .suite-topbar {
        grid-template-columns: 1fr !important;
    }

    .suite-page-body-dashboard .dashboard-summary-grid,
    .suite-page-body-dashboard .dashboard-reference-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas: none !important;
    }
}

/* Final visual system pass: component appearance only, no page geometry changes. */
html,
body {
    font-family: var(--app-font-family) !important;
    color: var(--app-color-text);
    background: var(--app-color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--app-font-family) !important;
    color: var(--app-color-text);
    letter-spacing: 0 !important;
}

.btn,
button.btn,
a.btn {
    border-radius: var(--app-radius-lg) !important;
    font-family: var(--app-font-family) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.btn-primary {
    border-color: var(--app-color-primary) !important;
    background: var(--app-color-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--app-color-primary-hover) !important;
    background: var(--app-color-primary-hover) !important;
    color: #ffffff !important;
}

.btn-secondary,
.btn-outline-secondary,
.btn-light {
    border-color: var(--app-color-border) !important;
    background: var(--app-color-surface) !important;
    color: var(--app-color-text) !important;
    box-shadow: none !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-light:hover,
.btn-light:focus {
    border-color: #c6cfdb !important;
    background: var(--app-color-surface-muted) !important;
    color: var(--app-color-text) !important;
}

.btn-danger {
    border-color: var(--app-color-danger) !important;
    background: var(--app-color-danger) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.form-control,
.form-select {
    border-color: var(--app-color-border) !important;
    border-radius: var(--app-radius-lg) !important;
    color: var(--app-color-text);
    font-family: var(--app-font-family) !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus-visible {
    border-color: var(--app-color-primary) !important;
    box-shadow: 0 0 0 0.18rem rgba(23, 58, 105, 0.16) !important;
}

.content-card,
.form-shell,
.journal-lines-card,
.module-shell-card,
.hero-card,
.acct-stat-card,
.acct-panel,
.acct-onboarding-card,
.dashboard-summary-card,
.dashboard-panel-card,
.legal-index-card,
.legal-document-card {
    border-color: var(--app-color-border) !important;
    border-radius: var(--app-radius-xl) !important;
    background: var(--app-color-surface) !important;
    box-shadow: var(--app-shadow-card) !important;
}

.table {
    border: 1px solid var(--app-color-border) !important;
    border-radius: var(--app-radius-xl) !important;
    box-shadow: var(--app-shadow-card) !important;
}

.table th,
.acct-data-table thead th {
    background: var(--app-color-surface-muted) !important;
    color: var(--app-color-muted) !important;
    border-bottom-color: var(--app-color-border) !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
}

.table td,
.acct-data-table tbody td {
    color: var(--app-color-text);
    border-color: var(--app-color-border) !important;
}

.table-responsive,
.acct-data-table-shell {
    border-radius: var(--app-radius-xl);
}

/* Dashboard visual polish: practical accounting workspace, no layout or data changes. */
.suite-page-body-dashboard .dashboard-header {
    align-items: center !important;
    margin-bottom: 0.6rem !important;
}

.suite-page-body-dashboard .dashboard-header .page-section-title {
    color: #162235 !important;
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

.suite-page-body-dashboard .dashboard-header .page-section-text {
    color: var(--app-color-muted) !important;
    font-size: 0.82rem !important;
}

.suite-page-body-dashboard .dashboard-toolbar {
    gap: 0.5rem !important;
}

.suite-page-body-dashboard .dashboard-period-select-chip,
.suite-page-body-dashboard .dashboard-toolbar .suite-secondary-action {
    min-height: 36px !important;
    border: 1px solid var(--app-color-border) !important;
    border-radius: var(--app-radius-lg) !important;
    background: var(--app-color-surface) !important;
    color: var(--app-color-text) !important;
    box-shadow: none !important;
}

.suite-page-body-dashboard .dashboard-period-select {
    color: var(--app-color-text) !important;
    font-weight: 700 !important;
}

.suite-page-body-dashboard .dashboard-summary-grid,
.suite-page-body-dashboard .dashboard-reference-grid {
    gap: 0.7rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card,
.suite-page-body-dashboard .dashboard-panel-card {
    border: 1px solid var(--app-color-border) !important;
    border-radius: var(--app-radius-xl) !important;
    background: var(--app-color-surface) !important;
    box-shadow: var(--app-shadow-card) !important;
}

.suite-page-body-dashboard .dashboard-summary-card {
    min-height: 110px !important;
    padding: 0.86rem 3.8rem 0.82rem 0.95rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-top {
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 0.42rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-top span {
    color: #2c3a4d !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
}

.suite-page-body-dashboard .dashboard-summary-card strong {
    color: #13253d !important;
    font-size: 1.34rem !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
}

.suite-page-body-dashboard .dashboard-summary-card strong.info {
    color: var(--app-color-primary) !important;
}

.suite-page-body-dashboard .dashboard-summary-card strong.negative {
    color: var(--app-color-danger) !important;
}

.suite-page-body-dashboard .dashboard-summary-card small {
    max-width: 100% !important;
    color: var(--app-color-muted) !important;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
}

.suite-page-body-dashboard .acct-stat-delta {
    min-height: 24px !important;
    padding: 0.18rem 0.46rem !important;
    border-radius: 999px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-icon {
    right: 0.9rem !important;
    bottom: 0.82rem !important;
    width: 38px !important;
    height: 38px !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-icon svg {
    width: 20px !important;
    height: 20px !important;
}

.suite-page-body-dashboard .dashboard-panel-card {
    padding: 0.86rem 0.95rem !important;
}

.suite-page-body-dashboard .acct-panel-header {
    margin-bottom: 0.62rem !important;
    gap: 0.7rem !important;
}

.suite-page-body-dashboard .acct-panel-header h2 {
    color: #162235 !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.suite-page-body-dashboard .acct-panel-header p,
.suite-page-body-dashboard .acct-panel-header a {
    color: var(--app-color-muted) !important;
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
}

.suite-page-body-dashboard .acct-panel-header a {
    color: var(--app-color-primary) !important;
    font-weight: 800 !important;
}

.suite-page-body-dashboard .acct-panel-toggle {
    border: 1px solid #cfd8e5 !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    color: #334155 !important;
    font-weight: 800 !important;
}

.suite-page-body-dashboard .acct-overview-donut-card {
    gap: 0.85rem !important;
}

.suite-page-body-dashboard .acct-overview-donut {
    box-shadow: inset 0 0 0 1px rgba(16, 34, 63, 0.06) !important;
}

.suite-page-body-dashboard .acct-overview-donut > div {
    border: 1px solid #e1e7ef !important;
    background: #ffffff !important;
}

.suite-page-body-dashboard .acct-overview-donut span,
.suite-page-body-dashboard .acct-overview-metrics span,
.suite-page-body-dashboard .acct-fiscal-result-card span {
    letter-spacing: 0.04em !important;
}

.suite-page-body-dashboard .acct-overview-metrics > div,
.suite-page-body-dashboard .acct-fiscal-result-card {
    border: 1px solid #e1e7ef !important;
    border-radius: var(--app-radius-lg) !important;
    background: #f8fafc !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card {
    justify-content: center !important;
    box-shadow: none !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card strong {
    letter-spacing: 0 !important;
}

.suite-page-body-dashboard .acct-quick-action-list {
    gap: 0.42rem !important;
}

.suite-page-body-dashboard .acct-quick-action-item {
    border: 1px solid #e1e7ef !important;
    border-radius: var(--app-radius-lg) !important;
    background: #ffffff !important;
    color: var(--app-color-text) !important;
    box-shadow: none !important;
}

.suite-page-body-dashboard .acct-quick-action-item:hover,
.suite-page-body-dashboard .acct-clickable-card:hover {
    border-color: #c6d3e2 !important;
    background: #fbfdff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 26px rgba(18, 39, 70, 0.08) !important;
}

.suite-page-body-dashboard .acct-quick-action-copy strong {
    color: #1f2d3f !important;
    font-weight: 800 !important;
}

.suite-page-body-dashboard .acct-quick-action-copy small {
    color: var(--app-color-muted) !important;
}

.suite-page-body-dashboard .acct-data-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 0.78rem !important;
}

.suite-page-body-dashboard .acct-data-table thead th {
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 0.68rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
}

.suite-page-body-dashboard .acct-data-table tbody td {
    color: #263548 !important;
    border-bottom-color: #e7edf5 !important;
}

.suite-page-body-dashboard .acct-clickable-row:hover {
    background: #f8fbff !important;
}

.suite-page-body-dashboard .acct-row-link {
    color: inherit !important;
    text-decoration: none !important;
}

.suite-page-body-dashboard .acct-empty-state {
    border: 1px dashed #cbd5e1 !important;
    border-radius: var(--app-radius-lg) !important;
    background: #f8fafc !important;
    color: var(--app-color-muted) !important;
}

/* Invoices list final header polish: keep title, actions, and filters as one unit. */
.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-page {
    display: grid !important;
    gap: 0.85rem !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header {
    display: grid !important;
    gap: 0.95rem !important;
    margin: 0 !important;
    padding: 1.05rem 1.15rem !important;
    border: 1px solid var(--app-color-border) !important;
    border-radius: var(--app-radius-xl) !important;
    background: #ffffff !important;
    box-shadow: var(--app-shadow-card) !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 1.1rem !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .eyebrow {
    color: var(--app-color-primary) !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .page-section-title {
    margin: 0.18rem 0 0.24rem !important;
    color: #142238 !important;
    font-size: 1.55rem !important;
    line-height: 1.1 !important;
    font-weight: 850 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .page-section-text {
    margin: 0 !important;
    max-width: 780px !important;
    color: var(--app-color-muted) !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.55rem !important;
    margin: 0 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-actions .btn {
    min-height: 38px !important;
    padding: 0.5rem 0.92rem !important;
    border-radius: var(--app-radius-lg) !important;
    white-space: nowrap !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .invoice-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0.85rem 0 0 !important;
    border-top: 1px solid #e4eaf2 !important;
    background: transparent !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .invoice-filter-chip {
    min-height: 36px !important;
    padding: 0 0.92rem !important;
    border: 1px solid #d8e0eb !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #43546b !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .invoice-filter-chip:hover {
    border-color: #bfd0e3 !important;
    background: #f8fbff !important;
    color: var(--app-color-primary) !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .invoice-filter-chip.is-active {
    border-color: var(--app-color-primary) !important;
    background: var(--app-color-primary) !important;
    color: #ffffff !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-table-card {
    padding: 0 !important;
    overflow: hidden !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-table-card .modern-table th {
    background: #f8fafc !important;
    color: #5e6f86 !important;
    font-size: 0.76rem !important;
    font-weight: 900 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-table-card .modern-table td {
    border-color: #e3e9f1 !important;
}

@media (max-width: 1100px) {
    .suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header-main {
        grid-template-columns: 1fr !important;
    }

    .suite-page-body:not(.suite-page-body-dashboard) .invoice-list-actions {
        justify-content: flex-start !important;
    }
}

/* Invoices list must use normal page scrolling so long invoice histories stay reachable. */
html:has(.invoice-list-page),
body:has(.invoice-list-page) {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
}

.suite-shell:has(.invoice-list-page),
.suite-main:has(.invoice-list-page) {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
}

.suite-page-body:has(.invoice-list-page) {
    height: auto !important;
    min-height: calc(100vh - 110px) !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 1.25rem !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-page,
.suite-page-body:has(.invoice-list-page) .invoice-list-table-card {
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card .table-responsive {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* Invoices list internal scroll: keep the page fixed and scroll only invoice rows. */
html:has(.invoice-list-page),
body:has(.invoice-list-page) {
    height: 100% !important;
    overflow: hidden !important;
}

.suite-shell:has(.invoice-list-page),
.suite-main:has(.invoice-list-page) {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

.suite-page-body:has(.invoice-list-page) {
    height: calc(100vh - 110px) !important;
    min-height: 0 !important;
    max-height: calc(100vh - 110px) !important;
    overflow: hidden !important;
    padding-bottom: 0.75rem !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-page {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
    align-content: stretch !important;
    overflow: hidden !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card .table-responsive {
    height: 100% !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card .modern-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
}

/* Invoices list internal scroll: keep the page fixed and scroll only the invoice rows. */
html:has(.invoice-list-page),
body:has(.invoice-list-page) {
    height: 100% !important;
    overflow: hidden !important;
}

.suite-shell:has(.invoice-list-page),
.suite-main:has(.invoice-list-page) {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

.suite-page-body:has(.invoice-list-page) {
    height: calc(100vh - 110px) !important;
    min-height: 0 !important;
    max-height: calc(100vh - 110px) !important;
    overflow: hidden !important;
    padding-bottom: 0.75rem !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-page {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card {
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card .table-responsive {
    height: 100% !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card .modern-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
}

/* Design system foundation: shared visual standards without changing page layouts. */
html,
body {
    font-family: var(--app-font-family);
    color: var(--app-color-text);
    background: var(--app-color-bg);
}

body {
    font-size: 0.95rem;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--app-color-text);
    font-family: var(--app-font-family);
    font-weight: 800;
    letter-spacing: 0;
}

p,
label,
.form-label,
.text-muted,
.suite-muted,
.acct-panel-header p,
.dashboard-page-head p {
    letter-spacing: 0;
}

.btn,
button.btn,
a.btn,
.suite-secondary-action,
.acct-premium-button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--app-space-2);
    border-radius: var(--app-radius-lg);
    padding: 0.56rem 1rem;
    font-family: var(--app-font-family);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn-primary {
    border: 1px solid var(--app-color-primary);
    background: var(--app-color-primary);
    color: #ffffff;
    box-shadow: none;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--app-color-primary-hover);
    background: var(--app-color-primary-hover);
    color: #ffffff;
}

.btn-secondary,
.btn-outline-secondary,
.btn-light {
    border: 1px solid var(--app-color-border);
    background: var(--app-color-surface);
    color: var(--app-color-text);
    box-shadow: none;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-light:hover,
.btn-light:focus {
    border-color: #c6cfdb;
    background: var(--app-color-surface-muted);
    color: var(--app-color-text);
}

.btn-danger {
    border: 1px solid var(--app-color-danger);
    background: var(--app-color-danger);
    color: #ffffff;
    box-shadow: none;
}

.btn-danger:hover,
.btn-danger:focus {
    border-color: #9f3634;
    background: #9f3634;
    color: #ffffff;
}

.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--app-color-primary);
    box-shadow: 0 0 0 0.18rem rgba(23, 58, 105, 0.16);
}

.form-control,
.form-select {
    min-height: 42px;
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-lg);
    color: var(--app-color-text);
    background-color: var(--app-color-surface);
    font-family: var(--app-font-family);
    font-size: 0.92rem;
}

.form-label,
label {
    color: var(--app-color-text);
    font-size: 0.88rem;
    font-weight: 700;
}

.content-card,
.form-shell,
.journal-lines-card,
.module-shell-card,
.hero-card,
.acct-stat-card,
.acct-panel,
.acct-onboarding-card,
.dashboard-summary-card,
.dashboard-panel-card,
.legal-index-card,
.legal-document-card {
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-xl);
    background: var(--app-color-surface);
    box-shadow: var(--app-shadow-card);
}

.acct-panel-header,
.page-section-header,
.dashboard-page-head {
    gap: var(--app-space-4);
}

.page-toolbar,
.module-shell-actions,
.form-actions {
    gap: var(--app-space-3);
}

.table,
.acct-data-table {
    color: var(--app-color-text);
    font-size: 0.9rem;
}

.table {
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-xl);
    box-shadow: var(--app-shadow-card);
}

.table th,
.acct-data-table thead th {
    background: var(--app-color-surface-muted);
    color: var(--app-color-muted);
    border-bottom: 1px solid var(--app-color-border);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.table td,
.acct-data-table tbody td {
    color: var(--app-color-text);
    border-color: var(--app-color-border);
}

.table-hover tbody tr:hover,
.acct-data-table tbody tr:hover {
    background: #f9fbfd;
}

.table-responsive,
.acct-data-table-shell {
    border-radius: var(--app-radius-xl);
}

.text-success,
.acct-stat-card strong.positive {
    color: var(--app-color-success) !important;
}

.text-danger,
.field-validation-error,
.validation-summary-errors,
.acct-stat-card strong.negative {
    color: var(--app-color-danger) !important;
}

/* Final compact-window sidebar behavior: icon rail by default, readable flyout when opened. */
@media (max-width: 1280px), (max-height: 760px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    body {
        min-width: 760px !important;
    }

    .suite-shell,
    .suite-shell.is-sidebar-collapsed,
    .suite-shell:not(.is-sidebar-collapsed) {
        --app-sidebar-width: 74px !important;
        display: grid !important;
        grid-template-columns: 74px minmax(686px, 1fr) !important;
        width: 100% !important;
        min-width: 760px !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .suite-main,
    .suite-shell.is-sidebar-collapsed .suite-main,
    .suite-shell:not(.is-sidebar-collapsed) .suite-main {
        grid-column: 2 !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .suite-sidebar,
    .suite-shell.is-sidebar-collapsed .suite-sidebar {
        position: sticky !important;
        top: 0 !important;
        left: auto !important;
        z-index: 35 !important;
        width: 74px !important;
        min-width: 74px !important;
        max-width: 74px !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        padding: 0.7rem 0.45rem !important;
        align-items: center !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        box-shadow: none !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 90 !important;
        width: 272px !important;
        min-width: 272px !important;
        max-width: 272px !important;
        padding: 0.85rem 0.75rem !important;
        align-items: stretch !important;
        box-shadow: 18px 0 38px rgba(7, 24, 48, 0.32) !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand-copy,
    .suite-shell.is-sidebar-collapsed .suite-nav-group-label,
    .suite-shell.is-sidebar-collapsed .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: none !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand,
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-nav,
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-bottom {
        width: 100% !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand-copy,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-group-label,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: block !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand,
    .suite-shell.is-sidebar-collapsed .suite-nav-link,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        justify-content: center !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-nav-link,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link,
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        justify-content: flex-start !important;
        gap: 0.7rem !important;
        padding: 0.55rem 0.75rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .suite-topbar,
    .suite-main-dashboard .suite-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 25 !important;
        height: auto !important;
        min-height: 62px !important;
        display: grid !important;
        grid-template-columns: auto minmax(180px, 1fr) auto !important;
        gap: 0.5rem !important;
        align-items: center !important;
        overflow: visible !important;
        padding: 0.5rem 0.65rem !important;
    }

    .suite-topbar-left,
    .suite-topbar-right {
        min-width: 0 !important;
        gap: 0.35rem !important;
        flex-wrap: nowrap !important;
    }

    .suite-profile-copy,
    .topbar-company-manage,
    .suite-back-button span {
        display: none !important;
    }

    .topbar-company-select {
        width: clamp(150px, 20vw, 250px) !important;
        min-width: 0 !important;
        max-width: 250px !important;
        font-size: 0.78rem !important;
    }

    .suite-search-shell {
        min-width: 160px !important;
        min-height: 40px !important;
        height: 40px !important;
    }
}

/* Compact sidebar flyout: opening the menu must not push the working page away. */
@media (max-width: 1280px), (max-height: 760px) {
    .suite-shell,
    .suite-shell:not(.is-sidebar-collapsed),
    .suite-shell.is-sidebar-collapsed {
        --app-sidebar-width: 74px;
        grid-template-columns: 74px minmax(686px, 1fr) !important;
    }

    .suite-sidebar,
    .suite-shell.is-sidebar-collapsed .suite-sidebar {
        position: sticky !important;
        left: auto !important;
        top: 0 !important;
        z-index: 35 !important;
        width: 74px !important;
        min-width: 74px !important;
        max-width: 74px !important;
        padding: 0.7rem 0.45rem !important;
        align-items: center !important;
        box-shadow: none !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        z-index: 90 !important;
        width: 272px !important;
        min-width: 272px !important;
        max-width: 272px !important;
        padding: 0.85rem 0.75rem !important;
        align-items: stretch !important;
        box-shadow: 18px 0 38px rgba(7, 24, 48, 0.32) !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-main,
    .suite-shell.is-sidebar-collapsed .suite-main {
        grid-column: 2 !important;
        min-width: 0 !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand,
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-nav,
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-bottom {
        width: 100% !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link,
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        justify-content: flex-start !important;
        gap: 0.7rem !important;
        padding: 0.55rem 0.75rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand-copy,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-group-label,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: block !important;
        width: auto !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Safe compact workspace reset: no overlay sidebar, no lost main content. */
@media (max-width: 1280px), (max-height: 760px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    body {
        min-width: 760px !important;
    }

    .suite-shell {
        --app-sidebar-width: 258px;
        display: grid !important;
        grid-template-columns: var(--app-sidebar-width) minmax(520px, 1fr) !important;
        width: 100% !important;
        min-width: 760px !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .suite-shell.is-sidebar-collapsed {
        --app-sidebar-width: 74px;
        grid-template-columns: var(--app-sidebar-width) minmax(686px, 1fr) !important;
    }

    .suite-sidebar,
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar,
    .suite-shell.is-sidebar-collapsed .suite-sidebar {
        position: sticky !important;
        left: auto !important;
        top: 0 !important;
        z-index: 20 !important;
        width: var(--app-sidebar-width) !important;
        min-width: var(--app-sidebar-width) !important;
        max-width: var(--app-sidebar-width) !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        box-shadow: none !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar {
        padding: 0.85rem 0.75rem !important;
        align-items: stretch !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-sidebar {
        padding: 0.7rem 0.45rem !important;
        align-items: center !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand {
        justify-content: flex-start !important;
        width: 100% !important;
        padding: 0 0.2rem 0.7rem !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand {
        justify-content: center !important;
        width: 100% !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand-copy,
    .suite-shell.is-sidebar-collapsed .suite-nav-group-label,
    .suite-shell.is-sidebar-collapsed .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: none !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand-copy,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-group-label,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-nav,
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-bottom {
        width: 100% !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link,
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 42px !important;
        min-height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.7rem !important;
        padding: 0.55rem 0.75rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-nav-link,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 44px !important;
        min-height: 44px !important;
        justify-content: center !important;
        padding: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .suite-main,
    .suite-main-dashboard {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        min-width: 0 !important;
    }

    .suite-topbar,
    .suite-main-dashboard .suite-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 25 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        height: auto !important;
        min-height: 62px !important;
        gap: 0.45rem 0.55rem !important;
        padding: 0.5rem 0.65rem !important;
        overflow: visible !important;
    }

    .suite-topbar-left {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .suite-topbar-right {
        grid-column: 2 !important;
        grid-row: 1 !important;
        justify-content: flex-end !important;
    }

    .suite-search-shell {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .suite-page-body,
    .suite-page-body-dashboard,
    .suite-main-dashboard .suite-page-body-dashboard {
        height: auto !important;
        min-height: calc(100vh - 110px) !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Expanded compact sidebar: show full readable labels inside the overlay. */
@media (max-width: 1280px), (max-height: 760px) {
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        z-index: 80 !important;
        width: 272px !important;
        min-width: 272px !important;
        max-width: 272px !important;
        padding: 0.85rem 0.75rem !important;
        align-items: stretch !important;
        box-shadow: 18px 0 38px rgba(7, 24, 48, 0.32) !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 0 0.2rem 0.7rem !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-nav,
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-bottom {
        width: 100% !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link,
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 42px !important;
        min-height: 42px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 0.7rem !important;
        padding: 0.55rem 0.75rem !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 12px !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-icon {
        flex: 0 0 24px !important;
        width: 24px !important;
        min-width: 24px !important;
        margin: 0 !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand-copy,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-group-label,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: block !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-group-label {
        padding: 0.55rem 0.75rem 0.25rem !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button {
        background: #d95353 !important;
        color: #ffffff !important;
        font-weight: 800 !important;
    }
}

/* Compact workspace polish: prevent sidebar wrapping and top-bar overlap. */
@media (max-width: 1280px), (max-height: 760px) {
    .suite-shell,
    .suite-shell.is-sidebar-collapsed {
        --app-sidebar-width: 74px;
        grid-template-columns: 74px minmax(0, 1fr) !important;
    }

    .suite-sidebar,
    .suite-shell.is-sidebar-collapsed .suite-sidebar {
        position: sticky !important;
        top: 0 !important;
        z-index: 40 !important;
        width: 74px !important;
        min-width: 74px !important;
        max-width: 74px !important;
        padding: 0.7rem 0.45rem !important;
        align-items: center !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 258px !important;
        min-width: 258px !important;
        max-width: 258px !important;
        align-items: stretch !important;
        padding: 0.8rem 0.75rem !important;
        box-shadow: 18px 0 38px rgba(7, 24, 48, 0.32) !important;
    }

    .suite-brand {
        width: 100% !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand {
        justify-content: center !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand-copy,
    .suite-shell.is-sidebar-collapsed .suite-nav-group-label,
    .suite-shell.is-sidebar-collapsed .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: none !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand-copy,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-group-label {
        display: block !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-nav-link,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        width: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
        height: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        justify-content: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        height: 48px !important;
        margin-top: 0.45rem !important;
    }

    .suite-topbar,
    .suite-main-dashboard .suite-topbar {
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-rows: auto auto !important;
        gap: 0.45rem 0.55rem !important;
        padding: 0.5rem 0.65rem !important;
        align-items: center !important;
    }

    .suite-topbar-left {
        grid-column: 1 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        overflow: hidden !important;
    }

    .suite-topbar-right {
        grid-column: 2 !important;
        grid-row: 1 !important;
        min-width: 0 !important;
        justify-content: flex-end !important;
    }

    .suite-search-shell {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
    }

    .topbar-company-shell,
    .topbar-company-form {
        min-width: 0 !important;
    }

    .topbar-company-select {
        width: clamp(160px, 31vw, 260px) !important;
        max-width: 260px !important;
    }

    .suite-profile-copy,
    .suite-profile-switch,
    .suite-profile-logout {
        display: none !important;
    }

    .suite-profile-chip {
        width: 42px !important;
        min-width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        justify-content: center !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }
}

/* Dashboard final polish: fixed-page accountant layout inspired by the Data Entry workspace. */
.suite-page-body-dashboard .dashboard-page-shell {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 0.55rem !important;
    overflow: hidden !important;
    padding-bottom: 0.35rem !important;
}

.suite-page-body-dashboard .dashboard-page-head {
    margin-bottom: 0 !important;
}

.suite-page-body-dashboard .dashboard-page-head h1 {
    font-size: 1.18rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
}

.suite-page-body-dashboard .dashboard-page-head p {
    margin: 0.12rem 0 0 !important;
    font-size: 0.76rem !important;
}

.suite-page-body-dashboard .dashboard-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.58rem !important;
    margin: 0 !important;
}

.suite-page-body-dashboard .dashboard-summary-card {
    min-height: 112px !important;
    padding: 0.82rem 0.9rem !important;
    border-radius: 14px !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-top span {
    font-size: 0.78rem !important;
    letter-spacing: 0.03em !important;
}

.suite-page-body-dashboard .dashboard-summary-card strong {
    font-size: 1.42rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card small {
    font-size: 0.72rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-icon {
    width: 42px !important;
    height: 42px !important;
    right: 0.8rem !important;
    bottom: 0.72rem !important;
}

.suite-page-body-dashboard .dashboard-reference-grid {
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(330px, 0.95fr) !important;
    grid-template-rows: minmax(245px, 0.52fr) minmax(205px, 0.48fr) !important;
    grid-template-areas:
        "chart chart actions"
        "profit transactions customers" !important;
    gap: 0.58rem !important;
    overflow: hidden !important;
}

.suite-page-body-dashboard .dashboard-card-chart {
    grid-area: chart !important;
}

.suite-page-body-dashboard .dashboard-card-actions {
    grid-area: actions !important;
}

.suite-page-body-dashboard .dashboard-card-profit {
    grid-area: profit !important;
}

.suite-page-body-dashboard .dashboard-card-transactions {
    grid-area: transactions !important;
}

.suite-page-body-dashboard .dashboard-card-customers {
    grid-area: customers !important;
}

.suite-page-body-dashboard .dashboard-card-premium {
    display: none !important;
}

.suite-page-body-dashboard .dashboard-panel-card {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0.72rem 0.78rem !important;
    border-radius: 14px !important;
}

.suite-page-body-dashboard .acct-panel-header {
    min-height: auto !important;
    margin-bottom: 0.55rem !important;
    align-items: flex-start !important;
}

.suite-page-body-dashboard .acct-panel-header h2 {
    font-size: 0.92rem !important;
    line-height: 1.05 !important;
    margin: 0 !important;
}

.suite-page-body-dashboard .acct-panel-header p,
.suite-page-body-dashboard .acct-panel-header span {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
}

.suite-page-body-dashboard .acct-panel-toggle {
    padding: 0.36rem 0.64rem !important;
    font-size: 0.72rem !important;
}

.suite-page-body-dashboard .acct-overview-chart-pair {
    height: calc(100% - 2.2rem) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
}

.suite-page-body-dashboard .acct-overview-chart-card {
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 0.45rem !important;
    padding: 0.9rem !important;
    border-radius: 13px !important;
    overflow: hidden !important;
    position: relative !important;
}

.suite-page-body-dashboard .acct-overview-chart-card::before {
    content: "" !important;
    position: absolute !important;
    left: 1rem !important;
    right: 1rem !important;
    top: 46% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(71, 95, 125, 0.16), transparent) !important;
}

.suite-page-body-dashboard .acct-overview-chart-card > div:first-child {
    align-self: start !important;
}

.suite-page-body-dashboard .acct-overview-chart-card span {
    font-size: 0.72rem !important;
    letter-spacing: 0.04em !important;
}

.suite-page-body-dashboard .acct-overview-chart-card strong {
    font-size: 1.42rem !important;
    line-height: 1.1 !important;
    margin-top: 0.25rem !important;
}

.suite-page-body-dashboard .acct-overview-chart-card small {
    font-size: 0.72rem !important;
}

.suite-page-body-dashboard .acct-overview-bar-shell {
    align-self: end !important;
    gap: 0.38rem !important;
    width: 100% !important;
}

.suite-page-body-dashboard .acct-overview-bar-track {
    height: 13px !important;
    border-radius: 999px !important;
    box-shadow: inset 0 1px 2px rgba(15, 35, 65, 0.12) !important;
}

.suite-page-body-dashboard .acct-overview-bar-shell b {
    font-size: 0.74rem !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list {
    height: calc(100% - 2rem) !important;
    display: grid !important;
    grid-template-rows: repeat(8, minmax(0, 1fr)) !important;
    gap: 0.28rem !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    min-height: 0 !important;
    height: 100% !important;
    padding: 0.28rem 0.48rem !important;
    border-radius: 10px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item strong {
    font-size: 0.74rem !important;
    line-height: 1.05 !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item small {
    font-size: 0.64rem !important;
    line-height: 1.05 !important;
}

.suite-page-body-dashboard .dashboard-card-profit {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
}

.suite-page-body-dashboard .acct-profit-summary-kpis {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
    margin-bottom: 0.58rem !important;
}

.suite-page-body-dashboard .acct-profit-summary-kpis > div {
    min-height: 42px !important;
    padding: 0.36rem 0.48rem !important;
    border-radius: 10px !important;
}

.suite-page-body-dashboard .acct-profit-summary-kpis span {
    font-size: 0.56rem !important;
    letter-spacing: 0.04em !important;
}

.suite-page-body-dashboard .acct-profit-summary-kpis strong {
    font-size: 0.78rem !important;
}

.suite-page-body-dashboard .acct-profit-balance-chart {
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: repeat(2, 1fr) auto !important;
    gap: 0.62rem !important;
    align-content: stretch !important;
    padding-top: 0.25rem !important;
}

.suite-page-body-dashboard .acct-profit-balance-row {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) 72px !important;
    align-items: center !important;
    gap: 0.55rem !important;
}

.suite-page-body-dashboard .acct-profit-balance-row span,
.suite-page-body-dashboard .acct-profit-balance-row strong {
    font-size: 0.72rem !important;
}

.suite-page-body-dashboard .acct-profit-balance-row div {
    height: 14px !important;
    border-radius: 999px !important;
    background: #e7edf5 !important;
}

.suite-page-body-dashboard .acct-profit-balance-row i {
    min-width: 0 !important;
    border-radius: inherit !important;
}

.suite-page-body-dashboard .acct-profit-net-strip {
    min-height: 54px !important;
    padding: 0.58rem 0.72rem !important;
    border-radius: 12px !important;
    align-items: center !important;
}

.suite-page-body-dashboard .acct-profit-net-strip span,
.suite-page-body-dashboard .acct-profit-net-strip small {
    font-size: 0.7rem !important;
}

.suite-page-body-dashboard .acct-profit-net-strip strong {
    font-size: 0.92rem !important;
}

.suite-page-body-dashboard .dashboard-card-transactions,
.suite-page-body-dashboard .dashboard-card-customers {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
}

.suite-page-body-dashboard .dashboard-card-transactions .acct-empty-state,
.suite-page-body-dashboard .dashboard-card-customers .acct-empty-state {
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    place-items: center !important;
    padding: 0.65rem !important;
    border-radius: 12px !important;
    background:
        linear-gradient(90deg, rgba(226, 234, 244, 0.68) 1px, transparent 1px),
        linear-gradient(180deg, rgba(226, 234, 244, 0.68) 1px, transparent 1px);
    background-size: 36px 36px;
    color: #5d708d !important;
    font-size: 0.8rem !important;
}

@media (max-width: 1250px) {
    .suite-page-body-dashboard .dashboard-reference-grid {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr) !important;
        grid-template-rows: minmax(240px, 0.46fr) minmax(190px, 0.27fr) minmax(185px, 0.27fr) !important;
        grid-template-areas:
            "chart actions"
            "profit transactions"
            "customers customers" !important;
        overflow: auto !important;
    }
}

/* Data Entry-style user profile page. */
.user-profile-page {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.user-profile-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
}

.user-profile-hero h1 {
    margin: 0.08rem 0 0.18rem;
    font-size: 1.35rem;
    line-height: 1.05;
    color: #06244a;
}

.user-profile-hero p {
    margin: 0;
    color: #526680;
}

.user-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.35rem;
    color: #102b4f;
    font-size: 0.84rem;
}

.user-profile-status {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 0.75rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
    background: #e8f7ee;
    color: #1f8b4c;
}

.user-profile-status.is-disabled {
    background: #fff1f1;
    color: #c94d4c;
}

.user-profile-form {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
}

.user-profile-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.62rem;
    max-width: 980px;
}

.user-profile-page .form-group {
    margin: 0;
}

.user-profile-page label {
    margin-bottom: 0.24rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: #102b4f;
}

.user-profile-page .form-control {
    min-height: 42px;
    border-radius: 12px;
}

.user-profile-company-select {
    height: 96px;
}

.user-profile-toggle {
    display: grid;
    align-content: start;
}

.user-profile-switch {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
}

.user-profile-switch input {
    position: absolute;
    opacity: 0;
}

.user-profile-switch span {
    position: relative;
    width: 46px;
    height: 26px;
    border-radius: 999px;
    background: #d9e3f0;
}

.user-profile-switch span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 35, 65, 0.18);
    transition: transform 0.16s ease;
}

.user-profile-switch input:checked + span {
    background: #1f8b4c;
}

.user-profile-switch input:checked + span::after {
    transform: translateX(20px);
}

.user-profile-switch strong {
    font-size: 0.84rem;
    color: #102b4f;
}

.user-profile-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.user-profile-danger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
}

.user-profile-danger h2 {
    margin: 0.08rem 0 0.18rem;
    font-size: 1rem;
    color: #06244a;
}

.user-profile-danger p {
    margin: 0;
    color: #526680;
    font-size: 0.84rem;
}

.access-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.access-role-card {
    min-height: 100%;
    display: grid;
    gap: 1rem;
}

.access-role-card-head h3 {
    margin: 0.1rem 0 0.25rem;
    color: #06244a;
    font-size: 1.2rem;
    line-height: 1.1;
}

.access-role-card-head p {
    margin: 0;
    color: #526680;
}

.access-role-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
}

.access-role-columns > div {
    padding: 0.82rem;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    background: #f8fbff;
}

.access-role-columns h4 {
    margin: 0 0 0.55rem;
    color: #173c68;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.access-role-columns ul {
    margin: 0;
    padding-left: 1rem;
    color: #102b4f;
}

.access-role-columns li {
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.access-role-columns li:last-child {
    margin-bottom: 0;
}

.user-create-form {
    align-items: start;
}

.user-create-form .user-profile-switch {
    margin-top: 0.4rem;
}

@media (max-width: 1100px) {
    .access-role-grid {
        grid-template-columns: 1fr;
    }
}

.settings-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    gap: 1rem;
    align-items: start;
}

.company-profile-layout {
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.company-profile-layout .settings-main-card,
.company-profile-layout .settings-side-card {
    border-radius: 8px;
}

.company-profile-layout .settings-main-card {
    padding: .75rem !important;
}

.company-profile-layout .acct-panel-header {
    margin-bottom: .55rem;
    padding-bottom: .5rem;
}

.company-profile-layout .acct-panel-header h2 {
    font-size: 1rem;
}

.company-profile-layout .acct-panel-header p {
    font-size: .82rem;
}

.company-profile-layout .settings-form-section {
    border-radius: 8px;
    gap: .55rem;
    margin-bottom: .55rem;
    padding: .65rem;
}

.company-profile-layout .settings-form-section-title {
    gap: .05rem;
}

.company-profile-layout .settings-form-section-title span {
    font-size: .66rem;
}

.company-profile-layout .settings-form-section-title strong {
    font-size: .9rem;
}

.company-profile-layout .form-grid {
    gap: .48rem .6rem;
}

.company-profile-layout .form-field {
    gap: .18rem;
}

.company-profile-layout label,
.company-profile-layout .form-text {
    font-size: .72rem;
}

.company-profile-layout .form-control {
    border-radius: 8px;
    min-height: 34px;
    padding: .38rem .58rem;
}

.company-profile-layout .form-actions {
    gap: .45rem;
    padding-top: .1rem;
}

.company-profile-layout .form-actions .btn {
    min-height: 36px;
    padding: .42rem .7rem;
}

.company-profile-layout .settings-side-stack {
    gap: .75rem;
}

.tax-settings-layout {
    gap: .75rem;
    grid-template-columns: minmax(0, 1fr) minmax(560px, .58fr);
}

.tax-settings-layout .settings-main-card,
.tax-settings-layout .settings-side-card,
.tax-settings-layout .settings-advanced-card {
    border-radius: 8px;
}

.tax-settings-layout .settings-main-card {
    padding: .75rem !important;
}

.tax-settings-layout .acct-panel-header {
    margin-bottom: .55rem;
    padding-bottom: .5rem;
}

.tax-settings-layout .acct-panel-header h2,
.tax-settings-layout .settings-side-card h2 {
    font-size: 1rem;
}

.tax-settings-layout .acct-panel-header p {
    font-size: .82rem;
}

.tax-settings-layout .settings-form-section {
    border-radius: 8px;
    gap: .48rem;
    margin-bottom: .5rem;
    padding: .62rem;
}

.tax-settings-layout .settings-form-section-title span {
    font-size: .66rem;
}

.tax-settings-layout .settings-form-section-title strong {
    font-size: .9rem;
}

.tax-settings-layout .form-grid {
    gap: .45rem .6rem;
}

.tax-settings-layout .form-field {
    gap: .18rem;
}

.tax-settings-layout label,
.tax-settings-layout .settings-form-note {
    font-size: .74rem;
}

.tax-settings-layout .form-control,
.tax-settings-layout .input-group-text {
    border-radius: 8px;
    min-height: 34px;
    padding: .38rem .58rem;
}

.tax-settings-layout .form-actions {
    gap: .45rem;
    padding-top: .1rem;
}

.tax-settings-layout .form-actions .btn {
    min-height: 36px;
    padding: .42rem .7rem;
}

.tax-settings-side-grid {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tax-settings-side-grid .settings-side-card {
    grid-column: 1 / -1;
}

.tax-settings-layout .settings-side-stack {
    gap: .55rem;
}

.tax-settings-layout .settings-side-card {
    padding: .72rem !important;
}

.tax-settings-layout .settings-info-list {
    display: grid;
    gap: .45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tax-settings-layout .settings-info-list > div {
    border-radius: 8px;
    padding: .42rem .5rem;
}

.tax-settings-layout .settings-info-list strong,
.tax-settings-layout .settings-option-list strong {
    font-size: .82rem;
}

.tax-settings-layout .settings-info-list span,
.tax-settings-layout .settings-option-list span {
    font-size: .74rem;
}

.tax-settings-compact-card {
    overflow: hidden;
    padding: 0 !important;
}

.tax-settings-compact-card .admin-table-toolbar {
    padding: .58rem .7rem;
}

.tax-settings-compact-card .settings-option-list {
    gap: .42rem;
    padding: .55rem .7rem .7rem;
}

.tax-settings-compact-card .settings-option-list article {
    border-radius: 8px;
    padding: .42rem .5rem;
}

.tax-settings-compact-card .settings-option-list article span {
    display: none;
}

.settings-main-card,
.settings-side-card {
    border-radius: 16px;
}

.settings-side-stack {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.settings-side-card h2 {
    margin: 0.1rem 0 0.8rem;
    color: #06244a;
    font-size: 1.15rem;
}

.company-reset-card,
.company-delete-card {
    padding: 0.78rem 0.9rem !important;
    align-self: start;
}

.company-danger-form {
    display: grid;
    gap: 0.45rem;
}

.company-danger-form .btn {
    width: 100%;
    min-height: 36px;
    padding: 0.42rem 0.75rem;
}

.company-reset-card .danger-card-header,
.company-delete-card .danger-card-header {
    margin-bottom: 0.55rem;
}

.company-reset-card .eyebrow,
.company-delete-card .eyebrow {
    font-size: 0.68rem;
}

.company-reset-card h3,
.company-delete-card h3 {
    margin: 0.05rem 0 0.18rem;
    font-size: 1rem;
}

.company-reset-card p,
.company-delete-card p {
    margin: 0;
    font-size: 0.76rem;
    line-height: 1.25;
}

.company-danger-form .form-field {
    gap: 0.22rem;
}

.company-danger-form label {
    font-size: 0.72rem;
}

.company-danger-form .form-control {
    min-height: 34px;
    height: 34px;
    padding: 0.35rem 0.7rem;
}

.btn-danger {
    color: #fff;
    background: #dc3545;
    border-color: #dc3545;
}

.btn-danger:hover:not(:disabled) {
    color: #fff;
    background: #bb2d3b;
    border-color: #b02a37;
}

.btn-danger:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.settings-info-list {
    display: grid;
    gap: 0.75rem;
}

.settings-info-list > div {
    padding: 0.9rem;
    border: 1px solid #d8e2ef;
    border-radius: 12px;
    background: #f8fbff;
}

.settings-info-list strong {
    display: block;
    color: #102b4f;
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

.settings-info-list span {
    color: #526680;
    font-size: 0.82rem;
    line-height: 1.35;
}

.settings-switch {
    margin-top: 0.3rem;
}

@media (max-width: 1100px) {
    .settings-layout-grid {
        grid-template-columns: 1fr;
    }

    .company-profile-layout {
        grid-template-columns: 1fr;
    }

    .tax-settings-layout {
        grid-template-columns: 1fr;
    }

    .tax-settings-side-grid {
        grid-template-columns: 1fr;
    }

}

/* Accounting sidebar aligned with the Data Entry workspace sidebar. */
@media (min-width: 1201px) {
    .suite-sidebar {
        height: 100vh !important;
        min-height: 0 !important;
        overflow: hidden !important;
        gap: 0.65rem !important;
        padding: 1.25rem 0.8rem 0.7rem !important;
        background: linear-gradient(180deg, #173a69 0%, #0b274b 100%) !important;
    }

    .suite-brand {
        align-items: center !important;
        gap: 0.85rem !important;
        padding: 0.25rem 0.45rem 0.9rem !important;
    }

    .suite-brand-mark,
    .suite-brand-logo {
        width: 58px !important;
        height: 58px !important;
        border-radius: 16px !important;
    }

    .suite-brand-title,
    .suite-brand-accent {
        font-size: 1rem !important;
        line-height: 1.02 !important;
    }

    .suite-sidebar-nav {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: grid !important;
        align-content: start !important;
        gap: 0.18rem !important;
        overflow: hidden !important;
    }

    .suite-nav-group-label {
        margin: 0.45rem 0.45rem 0.16rem !important;
        color: rgba(215, 229, 251, 0.68) !important;
        font-size: 0.62rem !important;
        font-weight: 900 !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
    }

    .suite-nav-link {
        gap: 0.62rem !important;
        min-height: 34px !important;
        padding: 0.34rem 0.55rem !important;
        border-radius: 11px !important;
        font-size: 0.82rem !important;
        font-weight: 750 !important;
        color: rgba(246, 250, 255, 0.9) !important;
    }

    .suite-nav-link.is-active {
        background: rgba(255, 255, 255, 0.16) !important;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13) !important;
    }

    .suite-nav-icon {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
        border-radius: 9px !important;
        background: rgba(255, 255, 255, 0.11) !important;
        color: #e8f1ff !important;
    }

    .suite-nav-icon svg {
        width: 15px !important;
        height: 15px !important;
    }

    .suite-sidebar-bottom {
        flex: 0 0 auto !important;
        margin-top: 0 !important;
        padding-top: 0.45rem !important;
        display: block !important;
    }

    .suite-sidebar-logout-form {
        margin: 0 !important;
    }

    .suite-sidebar-logout-button {
        width: 100% !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.65rem !important;
        padding: 0.55rem 0.7rem !important;
        border: 0 !important;
        border-radius: 12px !important;
        color: #fff !important;
        background: linear-gradient(180deg, #df6664 0%, #c94d4c 100%) !important;
        font-weight: 900 !important;
        text-align: left !important;
        cursor: pointer !important;
    }

    .suite-sidebar-logout-button:hover {
        background: linear-gradient(180deg, #e56f6d 0%, #bd4241 100%) !important;
    }

    .suite-sidebar-logout-button .suite-nav-icon {
        background: rgba(255, 255, 255, 0.16) !important;
    }
}

/* Clean dashboard financial charts. */
.suite-page-body-dashboard .acct-overview-chart-pair {
    height: calc(100% - 1.75rem);
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.suite-page-body-dashboard .acct-overview-chart-card {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: space-between;
    gap: 0.8rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid rgba(160, 177, 203, 0.28);
    border-radius: 12px;
    background: linear-gradient(180deg, #f9fcff, #f3f7fc);
}

.suite-page-body-dashboard .acct-overview-chart-card.income {
    background: linear-gradient(180deg, #f7fcf8, #eef8f2);
}

.suite-page-body-dashboard .acct-overview-chart-card span,
.suite-page-body-dashboard .acct-profit-balance-row span,
.suite-page-body-dashboard .acct-profit-net-strip span {
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #60718c;
}

.suite-page-body-dashboard .acct-overview-chart-card strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.45rem;
    font-weight: 900;
    color: #06244a;
}

.suite-page-body-dashboard .acct-overview-chart-card small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.62rem;
    color: #60718c;
}

.suite-page-body-dashboard .acct-overview-bar-shell {
    align-self: end;
    display: grid;
    gap: 0.35rem;
}

.suite-page-body-dashboard .acct-overview-bar-track {
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef6;
    box-shadow: inset 0 1px 3px rgba(15, 35, 65, 0.12);
}

.suite-page-body-dashboard .acct-overview-chart-card.income .acct-overview-bar-track {
    background: #e4f3ea;
}

.suite-page-body-dashboard .acct-overview-bar-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2d6cdf, #43b96f);
}

.suite-page-body-dashboard .acct-overview-chart-card.income .acct-overview-bar-track span {
    background: linear-gradient(90deg, #43b96f, #8bd8a8);
}

.suite-page-body-dashboard .acct-overview-bar-shell b {
    font-size: 0.72rem;
    color: #60718c;
}

.suite-page-body-dashboard .acct-profit-balance-chart {
    min-height: 0;
    display: grid;
    gap: 0.45rem;
}

.suite-page-body-dashboard .acct-profit-balance-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 72px;
    align-items: center;
    gap: 0.45rem;
}

.suite-page-body-dashboard .acct-profit-balance-row div {
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef6;
}

.suite-page-body-dashboard .acct-profit-balance-row i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
}

.suite-page-body-dashboard .acct-profit-balance-row.income i {
    background: linear-gradient(90deg, #43b96f, #8bd8a8);
}

.suite-page-body-dashboard .acct-profit-balance-row.expense i {
    background: linear-gradient(90deg, #2d6cdf, #82a9f5);
}

.suite-page-body-dashboard .acct-profit-balance-row strong {
    text-align: right;
    font-size: 0.7rem;
    font-weight: 900;
    color: #06244a;
}

.suite-page-body-dashboard .acct-profit-net-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.55rem;
    border-radius: 10px;
    background: #f6f9fd;
    border: 1px solid rgba(160, 177, 203, 0.25);
}

.suite-page-body-dashboard .acct-profit-net-strip strong {
    font-size: 0.82rem;
    font-weight: 900;
    color: #06244a;
}

.suite-page-body-dashboard .acct-profit-net-strip small {
    font-size: 0.68rem;
    color: #60718c;
}

html {
    font-size: 14px;
}

body {
    margin: 0;
    font-family: "Manrope", sans-serif;
    background: radial-gradient(circle at top right, rgba(177, 163, 108, 0.16), transparent 20%), linear-gradient(180deg, #f5f7fa 0%, #fbfbfd 100%);
    color: var(--text);
    min-height: 100vh;
}

.auth-body {
    background: radial-gradient(circle at top right, rgba(23, 58, 105, 0.14), transparent 22%), linear-gradient(180deg, #f5f7fa 0%, #fbfbfd 100%);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.auth-card {
    width: min(720px, 100%);
    background: #ffffff;
    border-radius: 26px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 32px 34px;
}

.auth-brand {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-bottom: 22px;
}

.auth-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 6px;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}

.auth-header h2 {
    margin-bottom: 6px;
}

.auth-header p {
    margin: 0;
    color: var(--muted);
}

.auth-form {
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
}

.auth-content {
    padding: 12px 0 6px;
}

.auth-card--wide {
    width: min(1080px, 100%);
    padding: 0;
    overflow: hidden;
}

.auth-card--wide .auth-brand {
    align-items: flex-start;
    text-align: left;
    padding: 28px 32px 0;
}

.auth-card--wide .auth-content {
    padding: 0;
}

.auth-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 0;
}

.auth-left {
    padding: 28px 32px 36px;
}

.auth-right {
    background: linear-gradient(160deg, #0f2548, #193b6a);
    color: #fff;
    padding: 36px 28px;
    display: flex;
    align-items: center;
}

.auth-info-eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.65);
}

.auth-info h2 {
    margin-top: 12px;
    margin-bottom: 14px;
    font-size: 1.6rem;
}

.auth-info p {
    color: rgba(255, 255, 255, 0.78);
}

.auth-graphic {
    margin-top: 28px;
    display: grid;
    gap: 16px;
}

.auth-graphic-card {
    height: 120px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-graphic-line {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    width: 70%;
}

.auth-heading h1 {
    font-size: 1.8rem;
    margin: 6px 0 8px;
}

.auth-overline {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    color: var(--muted);
}

.auth-module {
    font-weight: 600;
    color: var(--primary-dark);
}

.module-form {
    margin-top: 20px;
}

.module-grid {
    display: grid;
    gap: 16px;
}

.module-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
}

.module-card input {
    display: none;
}

.module-card:hover {
    border-color: rgba(23, 58, 105, 0.55);
    box-shadow: 0 10px 22px rgba(23, 58, 105, 0.10);
    transform: translateY(-1px);
}

.module-card.is-selected {
    border-color: var(--primary);
    box-shadow: 0 14px 28px rgba(23, 58, 105, 0.18);
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(23, 58, 105, 0.08);
    color: var(--primary);
}

.module-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.module-title {
    font-weight: 700;
    display: block;
}

.module-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
}

.module-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}

.module-actions .btn-link.is-disabled {
    opacity: 0.45;
    pointer-events: none;
    text-decoration: none;
}

.auth-login {
    display: grid;
    gap: 18px;
}

.auth-flow-shell {
    display: grid;
    gap: 20px;
}

.auth-links {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.auth-links-secondary {
    justify-content: center;
}

.auth-subcopy {
    margin: 0;
    color: var(--muted);
}

.auth-form-shell {
    display: grid;
    gap: 18px;
}

.auth-login-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.auth-load-button-wrap {
    min-width: 180px;
}

.auth-field-spacer {
    visibility: hidden;
}

.auth-load-button {
    min-height: 48px;
}

.auth-company-panel {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel-soft);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.auth-company-panel-muted {
    background: #fbfcfe;
}

.auth-company-label {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-dark);
}

.auth-company-help {
    color: var(--muted);
}

@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-right {
        order: -1;
        padding: 28px 24px;
    }

    .auth-left {
        padding: 24px;
    }
}

a {
    text-decoration: none;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    background: linear-gradient(180deg, #15345f 0%, #1f477c 100%);
    color: #fff;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: 12px 0 30px rgba(0, 0, 0, 0.08);
    z-index: 50;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 4px;
}

.brand-mark {
    width: 92px;
    height: 92px;
    border-radius: 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(10, 24, 46, 0.20);
    flex-shrink: 0;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 4px;
    background: #ffffff;
}

.brand-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    margin-top: 2px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar-group {
    display: grid;
    gap: 8px;
}

.sidebar-group-title {
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.84);
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 600;
    transition: 0.2s ease;
    line-height: 1.35;
}

.sidebar-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    min-width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.95);
    flex-shrink: 0;
}

.sidebar-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-label {
    flex: 1;
    white-space: nowrap;
}

    .sidebar-link:hover {
        background: var(--sidebar-hover);
        color: #fff;
    }

    .sidebar-link.is-active {
        background: rgba(255, 255, 255, 0.16);
        color: #fff;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    }

.sidebar-logout-form {
    margin-top: auto;
}

.sidebar-inline-form {
    margin: 0;
}

.sidebar-form-button {
    width: 100%;
    border: 0;
    text-align: left;
    background: transparent;
}

.sidebar-logout-button {
    width: 100%;
    border: 0;
    text-align: left;
    background: rgba(185, 74, 72, 0.88);
}

    .sidebar-logout-button:hover {
        background: #b94a48;
    }

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px;
    padding-bottom: 64px;
    margin-left: 270px;
}

.app-footer {
    position: fixed;
    left: 270px;
    right: 24px;
    bottom: 0;
    z-index: 20;
    padding: 10px 12px;
    color: var(--muted);
    font-size: 0.88rem;
    text-align: center;
    background: rgba(245, 247, 250, 0.94);
    border-top: 1px solid rgba(216, 221, 229, 0.8);
    backdrop-filter: blur(8px);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 248, 251, 0.96));
    border: 1px solid rgba(216, 221, 229, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.topbar-actions {
    flex-shrink: 0;
}

.topbar-actions,
.topbar-actions .navbar-nav,
.topbar-actions .nav-item {
    display: flex;
    align-items: center;
}

.topbar-actions .navbar-nav {
    gap: 0.75rem;
    margin: 0;
}

.topbar-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.topbar-subtitle {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.page-body {
    background: transparent;
}

.container,
.container-fluid {
    max-width: 100%;
    padding: 0;
}

.table {
    background: var(--panel);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-bottom: 0;
}

    .table th {
        background: #f7f8fb;
        color: var(--muted);
        font-size: 0.82rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 1px solid var(--line);
        padding: 18px 16px;
    }

    .table td {
        padding: 16px;
        vertical-align: middle;
        border-color: var(--line);
    }

h1, h2, h3, h4 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

.btn {
    border-radius: 14px;
    padding: 10px 18px;
    font-weight: 700;
    border: 0;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.dashboard-accounting-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid rgba(216, 221, 229, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.dashboard-accounting-brand img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 18px;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
}

.dashboard-accounting-brand h1 {
    margin: 4px 0;
    color: var(--primary-dark);
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -0.05em;
}

.dashboard-accounting-brand p {
    margin: 0;
    color: var(--muted);
    font-weight: 700;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--primary-dark), #0b1f39);
        color: white;
    }

.btn-secondary,
.btn-outline-secondary {
    border: 1px solid var(--line);
    background: white;
    color: var(--text);
}

.form-control,
.form-select {
    border-radius: 14px;
    border: 1px solid var(--line);
    padding: 12px 14px;
    min-height: 48px;
    box-shadow: none;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 0.2rem rgba(23, 58, 105, 0.14);
    }

.navbar,
footer.footer {
    display: none;
}

.text-danger,
.field-validation-error,
.validation-summary-errors {
    color: var(--danger);
}

.dashboard-grid {
    display: grid;
    gap: 24px;
}

.module-overview-grid,
.module-shell-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.module-overview-card,
.module-shell-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 24px;
    display: grid;
    gap: 14px;
    align-content: start;
}

.module-overview-card h3,
.module-shell-card h3 {
    margin: 0;
    font-size: 1.35rem;
}

.module-overview-card p,
.module-shell-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.module-shell-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-shell-card--accent {
    background: linear-gradient(135deg, #f8f9fc, #f6f0dd);
}

.module-shell-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 26px 30px;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(260px, 420px);
    gap: 20px;
    align-items: center;
    overflow: hidden;
}

.hero-copy h2 {
    font-size: 2.4rem;
    line-height: 1.08;
    margin: 8px 0 14px;
    max-width: 520px;
}

.hero-copy p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 540px;
    margin-bottom: 20px;
}

.eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-dark);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .hero-illustration svg {
        width: 100%;
        max-width: 360px;
        height: auto;
        display: block;
    }

.hero-report-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-report-card {
    min-height: 172px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(15, 47, 87, 0.12);
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #f6f9fc);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hero-report-card:hover {
    color: var(--text);
    transform: translateY(-3px);
    border-color: rgba(15, 47, 87, 0.24);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.11);
}

.hero-report-card span {
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-report-card strong {
    font-size: 1.72rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-report-card small {
    color: var(--muted);
    font-weight: 700;
}

.hero-report-card.accent {
    background: linear-gradient(145deg, #f6fbf7, #fff8ea);
    border-color: rgba(15, 157, 122, 0.22);
}

.mini-bars,
.mini-balance {
    height: 34px;
    display: flex;
    align-items: end;
    gap: 8px;
}

.mini-bars i {
    width: 18px;
    border-radius: 999px 999px 4px 4px;
    background: linear-gradient(180deg, #0f9d7a, #173a69);
}

.mini-line {
    height: 34px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 18% 70%, #173a69 0 4px, transparent 5px),
        radial-gradient(circle at 52% 42%, #0f9d7a 0 4px, transparent 5px),
        radial-gradient(circle at 82% 30%, #d7a86e 0 4px, transparent 5px),
        linear-gradient(145deg, transparent 0 17%, #173a69 18% 20%, transparent 21% 49%, #0f9d7a 50% 52%, transparent 53% 79%, #d7a86e 80% 82%, transparent 83%);
}

.mini-balance i {
    flex: 1;
    height: 26px;
    border-radius: 10px;
    background: #e7edf5;
}

.mini-balance i:first-child {
    background: #173a69;
}

.mini-profit {
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(90deg, #dfe7ef 0 35%, #0f9d7a 35% 100%);
}

.mini-profit.negative {
    background: linear-gradient(90deg, #c94a4a 0 45%, #dfe7ef 45% 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 22px;
}

    .stat-card span {
        display: block;
        color: var(--muted);
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 10px;
    }

    .stat-card strong {
        display: block;
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .stat-card small {
        color: var(--muted);
        font-size: 0.95rem;
    }

.accent-card {
    background: linear-gradient(135deg, #f8f9fc, #f6f0dd);
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.info-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow);
    padding: 24px;
}

    .info-card h3 {
        margin: 0 0 14px;
        font-size: 1.2rem;
    }

.info-metric {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.info-card p {
    color: var(--muted);
    margin: 0;
    line-height: 1.6;
}

.qb-dashboard {
    display: grid;
    gap: 20px;
}

.qb-module-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    border-bottom: 1px solid var(--line);
}

.qb-module-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
    padding: 10px 18px 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.qb-module-chip:hover,
.qb-module-chip.active {
    color: var(--primary-dark);
    border-color: rgba(15, 47, 87, 0.28);
}

.qb-module-chip span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #062d24;
    color: #53dfb4;
    font-size: 0.72rem;
    letter-spacing: -0.02em;
}

.qb-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0 8px;
}

.qb-actions strong {
    margin-right: 4px;
    color: var(--text);
}

.qb-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 16px;
    border: 1px solid rgba(15, 23, 42, 0.22);
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-weight: 700;
    text-decoration: none;
}

.qb-actions a:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.qb-section-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: var(--text);
}

.qb-glance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(240px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.qb-widget {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.qb-widget-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 14px;
}

.qb-widget-head span {
    display: block;
    color: var(--text);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.qb-widget-head small,
.qb-muted,
.qb-bank-row small,
.qb-summary-grid small {
    color: var(--muted);
    font-size: 0.82rem;
}

.qb-widget-head a,
.qb-register-link {
    color: #005ca8;
    font-weight: 800;
    text-decoration: none;
    font-size: 0.86rem;
}

.qb-money,
.qb-cash-total {
    font-size: 2rem;
    font-weight: 500;
    letter-spacing: -0.04em;
    margin-bottom: 6px;
}

.qb-money.positive {
    color: #0f7a57;
}

.qb-money.negative {
    color: #b64a2c;
}

.qb-profit-bars {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.qb-profit-bars div {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 10px;
    align-items: center;
}

.qb-profit-bars label {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.qb-profit-bars span {
    height: 18px;
    border-radius: 999px;
    background: #07a88a;
}

.qb-profit-bars span.expense {
    background: #099a9e;
}

.qb-donut {
    width: 120px;
    height: 120px;
    margin: 10px auto 12px;
    border-radius: 50%;
    background: conic-gradient(#0077c8 0 58%, #00a88f 58% 76%, #5c3a99 76% 90%, #c0392b 90% 100%);
    display: grid;
    place-items: center;
}

.qb-donut span {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
}

.qb-mini-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text);
    font-size: 0.9rem;
}

.qb-mini-list i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.qb-mini-list .blue {
    background: #0077c8;
}

.qb-mini-list .green {
    background: #00a88f;
}

.qb-mini-list .orange {
    background: #d97520;
}

.qb-suggestions-card {
    border-style: dashed;
    border-width: 2px;
    text-align: center;
    background: #fbfcfe;
}

.qb-add-widget {
    width: 36px;
    height: 36px;
    margin: 0 auto 10px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eef2f6;
    color: var(--muted);
    font-size: 1.4rem;
}

.qb-suggestions-card h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.qb-suggestions-card p {
    color: var(--muted);
    margin: 0 0 16px;
}

.qb-suggestion-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.qb-suggestion-actions a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    background: #fff;
}

.qb-bank-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.qb-bank-row strong,
.qb-bank-row small {
    display: block;
}

.qb-bank-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #0077c8;
    color: #fff;
    font-weight: 900;
}

.qb-bank-icon.cash {
    background: #00a88f;
}

.qb-register-link {
    display: inline-block;
    margin-top: 14px;
    color: #007a3d;
}

.qb-cashflow-card,
.qb-summary-card {
    grid-column: span 2;
}

.qb-cash-chart {
    height: 120px;
    display: flex;
    align-items: end;
    gap: 8px;
    margin-top: 20px;
    padding: 0 8px;
    border-bottom: 1px solid #8eb75b;
    background: linear-gradient(180deg, transparent 0 72%, rgba(143, 207, 90, 0.18) 72% 100%);
}

.qb-cash-chart span {
    flex: 1;
    min-width: 16px;
    border-radius: 10px 10px 0 0;
    background: linear-gradient(180deg, #a8db72, #69b445);
}

.qb-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.qb-summary-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f8fafc;
}

.qb-summary-grid strong,
.qb-summary-grid small {
    display: block;
}

.qb-summary-grid strong {
    font-size: 1.4rem;
    color: var(--primary-dark);
}

.premium-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
    min-height: 260px;
}

    .premium-hero svg {
        position: relative;
        z-index: 2;
        width: 100%;
        max-width: 360px;
        height: auto;
        display: block;
        background: transparent;
        overflow: visible;
        filter: none;
        animation: floatCard 5s ease-in-out infinite;
    }

.floating-orb {
    display: none;
}

.hero-frame {
    fill: rgba(255, 255, 255, 0.92);
    stroke: #d8dde5;
    stroke-width: 1.5;
}

.hero-muted-bar {
    fill: #edf1f7;
}

.hero-panel {
    fill: #f7f8fb;
    stroke: #d8dde5;
    stroke-width: 1.2;
}

.ring-base {
    fill: none;
    stroke: #173a69;
    stroke-width: 12;
    stroke-linecap: round;
}

.ring-accent {
    fill: none;
    stroke: #b1a36c;
    stroke-width: 12;
    stroke-linecap: round;
    animation: ringPulse 3s ease-in-out infinite;
}

.hero-line {
    fill: none;
    stroke: #173a69;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: lineDraw 2.8s ease forwards, linePulse 4s ease-in-out 2.8s infinite;
}

.hero-dot {
    fill: #173a69;
    transform-origin: center;
    animation: dotPulse 2.4s ease-in-out infinite;
}

.dot-b {
    animation-delay: 0.25s;
}

.dot-c {
    animation-delay: 0.5s;
}

.dot-d {
    fill: #b1a36c;
    animation-delay: 0.75s;
}

.bar-rise {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: barRise 2.2s ease-in-out infinite;
}

.bar-b {
    animation-delay: 0.2s;
}

.bar-c {
    animation-delay: 0.4s;
}

@keyframes lineDraw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes linePulse {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-2px);
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.35);
        opacity: 0.85;
    }
}

@keyframes ringPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.75;
    }
}

@keyframes barRise {
    0%, 100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.12);
    }
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }
}

@media (max-width: 1100px) {
    .module-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-shell-grid,
    .hero-card,
    .stats-grid,
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h2 {
        font-size: 2.2rem;
    }

    .hero-illustration svg,
    .premium-hero svg {
        max-width: 320px;
    }

    .qb-glance-grid,
    .qb-summary-cards,
    .qb-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qb-panel-wide {
        grid-column: span 12;
    }
}

@media (max-width: 700px) {
    .hero-report-grid {
        grid-template-columns: 1fr;
    }

    .qb-glance-grid,
    .qb-summary-grid,
    .qb-summary-cards,
    .qb-section-grid {
        grid-template-columns: 1fr;
    }

    .qb-cashflow-card,
    .qb-summary-card {
        grid-column: span 1;
    }

    .qb-actions a {
        width: 100%;
        justify-content: center;
    }

    .auth-login-grid {
        grid-template-columns: 1fr;
    }

    .qb-home-hero,
    .qb-transaction-row {
        flex-direction: column;
        align-items: stretch;
    }

    .qb-home-actions {
        justify-content: stretch;
    }

    .qb-home-actions .btn {
        width: 100%;
    }

    .qb-transaction-side {
        text-align: left;
        min-width: 0;
    }
}

@media (max-width: 991px) {
    .module-overview-grid {
        grid-template-columns: 1fr;
    }

    .app-shell {
        flex-direction: column;
    }

    .app-sidebar {
        position: static;
        width: 100%;
        border-radius: 0 0 24px 24px;
    }

    .app-main {
        padding: 16px;
        margin-left: 0;
    }

    .topbar {
        position: static;
        flex-direction: column;
        align-items: flex-start;
    }
}

    .page-section-header {
        display: flex;
        align-items: end;
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 22px;
    }

    .page-section-title {
        margin: 6px 0 8px;
        font-size: 2rem;
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .page-section-text {
        margin: 0;
        color: var(--muted);
        max-width: 720px;
        line-height: 1.6;
    }

    .content-card {
        background: #ffffff;
        border: 1px solid var(--line);
        border-radius: 24px;
        box-shadow: var(--shadow);
        padding: 12px;
    }

    .modern-table {
        margin-bottom: 0;
        box-shadow: none;
        border-radius: 18px;
        overflow: hidden;
    }

    .table-title {
        font-weight: 700;
        font-size: 1rem;
        color: var(--text);
    }

    .table-subtitle {
        color: var(--muted);
        font-size: 0.9rem;
        margin-top: 2px;
    }

    .table-link {
        display: inline-block;
        margin-left: 10px;
        color: var(--primary-dark);
        font-weight: 700;
    }

    .danger-link {
        color: var(--danger);
    }

    @media (max-width: 991px) {
        .page-section-header {
            flex-direction: column;
            align-items: flex-start;
        }

        .journal-line-item {
            padding: 8px 0;
            border-bottom: 1px solid rgba(219, 229, 224, 0.7);
            font-size: 0.95rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

            .journal-line-item:last-child {
                border-bottom: 0;
            }

        .journal-amount {
            display: inline-block;
            margin-left: 10px;
            color: var(--muted);
            font-weight: 600;
            white-space: nowrap;
        }

        .form-shell {
            background: #ffffff;
            border: 1px solid var(--line);
            border-radius: 24px;
            box-shadow: var(--shadow);
            padding: 28px;
        }

        .modern-form {
            width: 100%;
        }
    }

        .form-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 20px;
        }

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-field {
    justify-content: center;
}

        .form-field-full {
            grid-column: 1 / -1;
        }

        .form-field label {
            font-weight: 700;
            color: var(--text);
        }

        .form-actions {
            display: flex;
            gap: 12px;
            margin-top: 24px;
            flex-wrap: wrap;
        }

        @media (max-width: 991px) {
            .form-grid {
                grid-template-columns: 1fr;
            }

            .journal-lines-card {
                margin-top: 24px;
                border: 1px solid var(--line);
                border-radius: 20px;
                padding: 18px;
                background: #fcfefd;
            }

            .journal-lines-header {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 14px;
                margin-bottom: 16px;
            }

                .journal-lines-header h3 {
                    margin: 0;
                    font-size: 1.2rem;
                }

            .totals-panel {
                display: flex;
                gap: 18px;
                margin-top: 18px;
                flex-wrap: wrap;
            }

            .total-box {
                min-width: 220px;
            }

                .total-box span {
                    display: block;
                    font-weight: 700;
                    margin-bottom: 8px;
                    color: var(--text);
                }

            .payroll-alert {
                border-radius: 16px;
                border: 1px solid #b9e3d6;
                background: #eefaf5;
                color: #0b7a5f;
                padding: 14px 18px;
                margin-bottom: 18px;
                font-weight: 600;
            }
        }

.page-toolbar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.section-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.section-stats-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-stat-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 20px 22px;
    display: grid;
    gap: 8px;
}

.section-stat-card span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    font-weight: 800;
}

.section-stat-card strong {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.section-stat-card small {
    color: var(--muted);
}

.accounting-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.full-span {
    grid-column: 1 / -1;
}

.qb-aging-list {
    display: grid;
    gap: 12px;
}

.qb-aging-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-soft);
}

.qb-aging-row strong {
    color: var(--primary-dark);
}

.qb-homepage {
    display: grid;
    gap: 22px;
}

.qb-home-hero,
.qb-panel,
.qb-summary-card,
.qb-section-card {
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.qb-home-hero {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 24px;
    border-radius: 24px;
    padding: 30px 32px;
}

.qb-home-copy {
    display: grid;
    gap: 14px;
}

.qb-home-hero h1 {
    margin: 4px 0 0;
    font-size: 2.5rem;
}

.qb-home-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 680px;
    line-height: 1.65;
}

.qb-home-hero-note {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(23, 58, 105, 0.12);
    background: #f8fafc;
}

.qb-home-hero-note span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.qb-home-hero-note strong {
    color: var(--primary-dark);
    font-size: 0.92rem;
}

.qb-home-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-content: flex-start;
}

.qb-summary-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.qb-summary-card {
    border-radius: 20px;
    padding: 20px 22px;
    display: grid;
    gap: 8px;
}

.qb-summary-card span {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
    font-weight: 800;
}

.qb-summary-card strong {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.qb-summary-card strong.is-positive {
    color: #1d6b3e;
}

.qb-summary-card strong.is-negative {
    color: var(--danger);
}

.qb-summary-card small {
    color: var(--muted);
}

.qb-section-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.qb-section-card {
    border-radius: 20px;
    padding: 22px;
    display: grid;
    gap: 12px;
    color: var(--text);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.qb-section-card:hover {
    color: var(--text);
    transform: translateY(-2px);
    border-color: rgba(23, 58, 105, 0.28);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.qb-section-card-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.qb-section-card-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.qb-section-card-header span {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--muted);
    text-transform: uppercase;
}

.qb-section-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.qb-section-card strong {
    color: var(--primary-dark);
    font-size: 1.6rem;
}

.qb-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.qb-panel {
    border-radius: 22px;
    padding: 22px;
}

.qb-panel-wide {
    grid-column: span 6;
}

.qb-panel-full {
    grid-column: 1 / -1;
}

.qb-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.qb-panel-header span {
    display: block;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.75rem;
    font-weight: 800;
}

.qb-panel-header h2 {
    margin: 4px 0 0;
    font-size: 1.45rem;
}

.qb-panel-header a {
    color: var(--primary-dark);
    font-weight: 800;
}

.qb-kpi-list {
    display: grid;
    gap: 12px;
}

.qb-kpi-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--panel-soft);
    border: 1px solid var(--line);
}

.qb-kpi-list span {
    color: var(--muted);
}

.qb-kpi-list strong {
    color: var(--primary-dark);
}

.qb-transaction-list {
    display: grid;
    gap: 12px;
}

.qb-transaction-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel-soft);
}

.qb-transaction-meta {
    color: var(--muted);
    margin-top: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.qb-transaction-side {
    text-align: right;
    display: grid;
    gap: 4px;
    min-width: 140px;
}

.qb-transaction-side span {
    color: var(--muted);
    font-size: 0.84rem;
}

.company-select-card {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 1.3rem;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.company-select-card h3 {
    margin: 0;
}

.company-select-actions .btn,
.company-select-actions button {
    width: 100%;
}

@media (max-width: 1280px) {
    .qb-summary-cards,
    .qb-section-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qb-home-hero {
        flex-direction: column;
    }

    .qb-home-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 991px) {
    .app-sidebar {
        width: 100%;
        position: static;
        border-radius: 0 0 26px 26px;
    }

    .app-main {
        margin-left: 0;
        padding: 18px;
        padding-bottom: 72px;
    }

    .brand-block {
        padding: 0;
    }

    .topbar {
        position: static;
        padding: 18px 20px;
    }

    .qb-summary-cards,
    .qb-section-grid {
        grid-template-columns: 1fr;
    }

    .qb-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .qb-panel-wide,
    .qb-panel-full {
        grid-column: auto;
    }

    .qb-transaction-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .qb-transaction-side {
        min-width: 0;
        text-align: left;
    }
}

.qb-empty-state {
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 28px;
    color: var(--muted);
    text-align: center;
    background: var(--panel-soft);
}

.report-shell {
    border: 1px solid var(--line);
}

@media print {
    body {
        background: #ffffff;
    }

    .app-sidebar,
    .topbar,
    .app-footer,
    .page-section-header,
    .print-hidden,
    .table-link,
    .danger-link {
        display: none !important;
    }

    .app-main {
        margin-left: 0 !important;
        padding: 0 !important;
        display: block !important;
        width: 100% !important;
    }

    .page-body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .page-body,
    .content-card,
    .info-card,
    .stat-card,
    .hero-card,
    .table {
        box-shadow: none !important;
        border-color: #d0d0d0 !important;
    }

    .content-card,
    .hero-card,
    .info-card,
    .stat-card {
        break-inside: avoid;
    }

    .page-section-header {
        margin-bottom: 16px;
    }

    .table th,
    .table td {
        padding: 10px 12px;
    }
}

.print-only {
    display: none;
}

.report-print-header {
    border-bottom: 2px solid #102f57;
    margin-bottom: 18px;
    padding-bottom: 14px;
}

.report-print-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.report-print-brand img {
    width: 62px;
    height: 62px;
    object-fit: contain;
    border: 1px solid #d8dde5;
    border-radius: 12px;
    padding: 5px;
}

.report-print-company {
    font-size: 1.05rem;
    font-weight: 800;
    color: #102f57;
}

.report-print-details {
    font-size: 0.86rem;
    color: #536174;
    margin-top: 3px;
}

.report-print-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.report-print-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-top: 4px;
    color: #172033;
}

.report-print-meta {
    color: var(--muted);
    margin-top: 4px;
    font-size: 0.92rem;
    text-align: right;
}

.statement-print-grid,
.statement-print-single {
    display: none;
}

.statement-section {
    margin-bottom: 20px;
}

.statement-section h3 {
    margin: 0 0 10px;
}

.statement-table {
    width: 100%;
    border-collapse: collapse;
}

.statement-table td {
    padding: 8px 0;
    border-bottom: 1px solid #d8dde5;
}

.statement-code {
    display: inline-block;
    margin-left: 8px;
    color: var(--muted);
    font-size: 0.9rem;
}

.statement-total td,
.statement-grand-total td {
    font-weight: 800;
    padding-top: 10px;
}

.statement-grand-total td {
    border-top: 2px solid #233042;
}

.report-print-note {
    display: none;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.ocr-preview {
    white-space: pre-wrap;
    background: #f7f8fb;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.approval-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

    .approval-form .form-control {
        min-width: 260px;
    }

@media print {
    .print-only {
        display: block !important;
    }

    .statement-print-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        margin-bottom: 20px;
    }

    .statement-print-single {
        display: block !important;
        margin-bottom: 20px;
    }

    .report-print-note {
        display: block !important;
        border: 1px solid #d8dde5;
        padding: 12px 14px;
        margin-bottom: 18px;
    }

    .content-card.report-shell,
    .report-shell {
        border: none !important;
        padding: 0 !important;
    }

    .table.modern-table {
        border-radius: 0 !important;
    }
}

body .print-only,
body .statement-print-grid,
body .statement-print-single,
body .report-print-note {
    display: none !important;
}

@media print {
    @page {
        margin: 0.45in;
        size: landscape;
    }

    body {
        font-size: 10.5pt;
        line-height: 1.25;
    }

    body .print-only {
        display: block !important;
    }

    body .statement-print-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 18px;
        align-items: start;
    }

    body .statement-print-single {
        display: block !important;
    }

    .report-print-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .report-print-brand {
        gap: 10px;
        margin-bottom: 8px;
    }

    .report-print-brand img {
        width: 46px;
        height: 46px;
        border-radius: 8px;
        padding: 3px;
    }

    .report-print-company {
        font-size: 11pt;
    }

    .report-print-details {
        font-size: 8pt;
    }

    .report-print-title {
        font-size: 19pt;
        margin-top: 0;
    }

    .report-print-meta {
        font-size: 9pt;
    }

    .report-shell,
    .content-card.report-shell,
    .dashboard-grid.report-shell {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .statement-section {
        margin-bottom: 10px;
        break-inside: avoid;
    }

    .statement-section h3 {
        font-size: 12pt;
        margin: 0 0 6px;
    }

    .statement-table td {
        padding: 4px 0;
        font-size: 9.5pt;
    }

    .statement-code {
        margin-left: 6px;
        font-size: 8.5pt;
    }

    .statement-total td,
    .statement-grand-total td {
        padding-top: 6px;
        font-size: 10pt;
    }

    .report-print-note {
        display: block !important;
        margin-top: 8px;
        padding: 8px 10px;
        font-size: 9pt;
    }
}

@media (max-width: 991px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

.scan-workspace {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    gap: 20px;
}

.scan-panel-header,
.journal-lines-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.scan-panel-header h3,
.journal-lines-header h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

.scan-panel-header p {
    margin: 0;
    color: var(--muted);
}

.journal-lines-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.journal-line-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.scan-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f7f8fb;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    color: var(--text);
}

.scan-preview-frame {
    height: clamp(340px, calc(100vh - 430px), 560px);
    min-height: 340px;
    border: 1px dashed #c8d1dd;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fa 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    overflow: hidden;
}

.scan-preview-empty {
    color: var(--muted);
    max-width: 280px;
    text-align: center;
    line-height: 1.6;
}

.scan-file-preview {
    display: flex;
    min-height: 180px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text);
    text-align: center;
}

.scan-file-preview a {
    color: var(--primary);
    font-weight: 800;
}

.scan-preview-image {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
}

.journal-scan-viewer.scan-preview-frame {
    height: clamp(430px, calc(100vh - 330px), 620px);
    min-height: 430px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    border-radius: 0.75rem;
    background: #334155;
}

.journal-scan-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 3.2rem;
    padding: 0.55rem 0.75rem;
    color: #fff;
    background: #1f2937;
}

.journal-scan-viewer-toolbar strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.88rem;
}

.journal-scan-viewer .invoice-image-viewer-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.journal-scan-viewer .invoice-image-viewer-actions .btn {
    min-height: 2rem;
    padding: 0.28rem 0.55rem;
    border-color: rgba(255, 255, 255, 0.38);
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.journal-scan-viewer .invoice-image-viewer-actions span {
    min-width: 3.25rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
    text-align: center;
}

.journal-scan-preview-shell {
    display: block;
    min-height: 0;
    overflow: auto;
    background: #475569;
    padding: 1rem;
    text-align: center;
}

.journal-scan-viewer .invoice-image-preview {
    width: min(100%, 980px);
    max-width: none;
    max-height: none;
    height: auto;
    transform-origin: top center;
    border-radius: 0.18rem;
    background: #fff;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.34);
}

.journal-scan-viewer .scan-file-preview,
.journal-scan-viewer .scan-preview-empty {
    min-height: 100%;
    color: #e5edf7;
}

.journal-scan-viewer .scan-file-preview a {
    color: #fff;
}

.journal-create-workspace {
    display: grid;
    grid-template-columns: minmax(640px, 1fr) minmax(360px, 430px);
    gap: 0.85rem;
    align-items: start;
    margin-top: 0.75rem;
    height: calc(100vh - 220px);
    min-height: 590px;
}

.journal-entry-main-column,
.journal-entry-side-column {
    display: flex;
    min-height: 0;
    height: 100%;
    flex-direction: column;
    gap: 0.75rem;
}

.journal-entry-profile-card {
    flex: 0 0 auto;
    padding: 0.7rem;
}

.journal-entry-profile-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(240px, 1fr);
    gap: 0.55rem 0.75rem;
}

.journal-entry-profile-grid .form-help {
    display: none;
}

.journal-entry-profile-grid .form-field-full {
    grid-column: 1 / -1;
}

.journal-entry-lines-panel {
    min-width: 0;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.65rem;
}

.journal-lines-scroll {
    flex: 1 1 auto;
    min-height: 390px;
    overflow: auto;
    border: 1px solid #d4e0ee;
    border-radius: 0.75rem;
    background: #fff;
}

.journal-lines-scroll .journal-line-table {
    margin-bottom: 0;
}

.journal-lines-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f6f8fc;
}

.journal-source-document-panel {
    margin: 0;
    padding: 0.75rem;
    flex: 0 0 auto;
    overflow: hidden;
}

.journal-source-document-panel .scan-panel-header {
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.journal-source-document-panel h3 {
    margin: 0;
    font-size: 1rem;
}

.journal-source-document-panel p {
    margin: 0.15rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.journal-source-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.journal-source-actions .btn {
    justify-content: center;
    width: 100%;
}

.journal-source-status.scan-status {
    display: flex;
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.84rem;
}

.journal-source-preview {
    overflow: hidden;
    border: 1px solid #d4e0ee;
    border-radius: 0.7rem;
    background: #f8fbff;
}

.journal-source-preview-header {
    display: flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.35rem 0.6rem;
    color: #fff;
    background: #1f2937;
}

.journal-source-preview-header strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
}

.journal-source-preview-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 130px;
    overflow: auto;
    background: #475569;
    padding: 0.5rem;
    text-align: center;
}

.journal-source-preview-body .scan-preview-image {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #fff;
    border-radius: 0.25rem;
}

.journal-source-preview-body .scan-file-preview,
.journal-source-preview-body .scan-preview-empty {
    min-height: auto;
    color: #e5edf7;
}

.journal-source-preview-body .scan-file-preview a {
    color: #fff;
}

.manual-journal-scan-viewer.scan-preview-frame {
    height: clamp(180px, 27vh, 300px);
    min-height: 180px;
    border-radius: 0.65rem;
}

.manual-journal-scan-viewer .journal-scan-viewer-toolbar {
    min-height: 2.5rem;
    padding: 0.4rem 0.55rem;
}

.manual-journal-scan-viewer .invoice-image-viewer-actions .btn {
    min-height: 1.7rem;
    padding: 0.18rem 0.45rem;
}

.manual-journal-scan-viewer .invoice-image-viewer-actions span {
    min-width: 2.75rem;
}

.manual-journal-scan-viewer .journal-scan-preview-shell {
    padding: 0.65rem;
}

.manual-journal-scan-viewer .scan-preview-empty {
    max-width: 220px;
    font-size: 0.85rem;
}

.journal-source-gallery {
    margin-top: 0.5rem;
    max-height: 82px;
    overflow: auto;
}

.journal-side-preview-card {
    flex: 0 1 auto;
    min-height: 0;
    max-height: 230px;
    overflow: auto;
    margin-top: 0 !important;
    padding: 0.75rem;
}

.journal-side-preview-card .posting-preview-rows {
    max-height: none;
}

.journal-entry-lines-panel .posting-preview-card {
    overflow: auto;
    margin-top: 0.55rem !important;
}

.journal-side-totals-card {
    flex: 0 0 auto;
    padding: 0.75rem;
}

.journal-side-totals-card .totals-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
}

.journal-side-totals-card .journal-balance-chip {
    margin-top: 0.45rem;
}

.journal-entry-lines-panel > .form-help {
    display: none;
}

.journal-post-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    margin: 0.55rem 0 0;
    padding: 0.55rem 0.65rem;
    border: 1px solid #b8c7db;
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 35, 67, 0.08);
}

.journal-post-actions-summary {
    margin-right: auto;
    min-width: 0;
}

.journal-post-actions-summary strong,
.journal-post-actions-summary span {
    display: block;
}

.journal-post-actions-summary strong {
    color: #0b2343;
    font-size: 0.9rem;
    font-weight: 900;
}

.journal-post-actions-summary span {
    color: var(--muted);
    font-size: 0.8rem;
}

@media (max-width: 1200px) {
    .journal-create-workspace {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
    }

    .journal-source-document-panel {
        position: static;
        max-height: none;
    }

    .journal-entry-main-column,
    .journal-entry-side-column {
        height: auto;
    }

    .manual-journal-scan-viewer.scan-preview-frame {
        height: 240px;
    }
}

@media (max-width: 720px) {
    .journal-post-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .journal-post-actions-summary {
        margin-right: 0;
    }

    .journal-post-actions .btn {
        width: 100%;
    }
}

.scan-action-bar {
    position: sticky;
    top: 0.75rem;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.9rem;
    margin-bottom: 1rem;
    border-color: #b8c7db;
    box-shadow: 0 10px 28px rgba(15, 35, 67, 0.08);
}

.scan-action-bar strong,
.scan-action-bar span {
    display: block;
}

.scan-action-bar strong {
    color: #0b2343;
    font-size: 0.92rem;
    font-weight: 900;
}

.scan-action-bar span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.scan-action-bar .form-actions {
    flex: 0 0 auto;
    margin: 0;
}

@media (max-width: 900px) {
    .scan-action-bar {
        position: static;
        align-items: stretch;
        flex-direction: column;
    }

    .scan-action-bar .form-actions {
        justify-content: flex-start;
    }
}

.journal-suggestion-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #d7e1ed;
    border-radius: 0.75rem;
    background: #f8fbff;
}

.journal-suggestion-toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.journal-suggestion-toolbar strong,
.journal-suggestion-toolbar span {
    display: block;
}

.journal-suggestion-toolbar strong {
    color: #0b2343;
    font-size: 0.86rem;
    font-weight: 900;
}

.journal-suggestion-toolbar span {
    margin-top: 0.1rem;
    color: #5f7088;
    font-size: 0.74rem;
    font-weight: 700;
}

.scan-document-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.invoice-scan-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    white-space: nowrap;
}

.invoice-scan-row-actions .table-link {
    margin-left: 0;
}

.invoice-row-delete-button {
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.invoice-row-delete-button:hover {
    text-decoration: underline;
}

.detail-preview-image {
    max-height: 420px;
    border-radius: 18px;
}

.compact-header {
    margin-bottom: 18px;
}

.journal-line-table .form-control,
.journal-line-table .form-select {
    min-height: 42px;
}

.journal-balance-chip {
    display: inline-flex;
    align-items: center;
    margin-top: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    background: #f7f8fb;
    border: 1px solid var(--line);
}

.journal-balance-chip.is-balanced {
    background: #edf8f1;
    border-color: #9ac9a9;
    color: #1d6b3e;
}

.journal-balance-chip.is-unbalanced {
    background: #fff3dd;
    border-color: #e1c37b;
    color: #8b5c00;
}

@media (max-width: 1100px) {
    .scan-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991px) {
    .app-footer {
        left: 0;
        right: 0;
    }
}

.company-switcher-shell {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f5f7fb;
    border-radius: 999px;
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.company-switcher-current {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.company-switcher-logo {
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.topbar .company-switcher-shell {
    max-width: min(560px, 100%);
    align-items: center;
    border-radius: 18px;
    padding: 0.6rem 0.75rem;
    background: #ffffff;
}

.topbar .company-switcher-current img.company-switcher-logo,
.topbar img.company-switcher-logo {
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
    object-fit: contain !important;
    flex: 0 0 44px;
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.company-switcher-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
}

.company-switcher-name {
    font-weight: 600;
    color: #0f172a;
}

.company-switcher-form .form-select {
    min-width: 180px;
    border-radius: 999px;
}

.onboarding-card {
    padding: 2rem;
}

.onboarding-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.choice-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    padding: 1.6rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.choice-card.outline {
    background: #f9fafb;
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.setup-task-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    padding: 1.2rem;
    background: #fff;
}

.setup-task-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.setup-task-status.completed {
    color: #0f766e;
}

.setup-task-status.pending {
    color: #b45309;
}

.logo-preview {
    min-height: 96px;
    border: 1px dashed rgba(15, 23, 42, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
    padding: 1rem;
}

.logo-preview img {
    width: auto;
    height: auto;
    max-height: 76px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.form-help {
    display: block;
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.84rem;
}

.profile-reset-form {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.nested-card {
    margin-top: 1.5rem;
    background: #f8fafc;
}

.company-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.company-select-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    padding: 1.2rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.company-select-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.company-select-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.company-select-header p {
    margin: 0;
    color: var(--muted);
}

.company-select-status {
    font-weight: 600;
    color: var(--primary-dark);
}

.company-select-actions {
    display: grid;
    gap: 0.6rem;
}

.record-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.record-field {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfcfe;
}

.record-field-full {
    grid-column: 1 / -1;
}

.record-label {
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.76rem;
    font-weight: 800;
}

.record-value {
    color: var(--text);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.5;
}

.danger-card {
    border-color: rgba(185, 74, 72, 0.24);
    background: linear-gradient(180deg, #fffefe 0%, #fff9f8 100%);
}

.danger-card-header {
    margin-bottom: 18px;
}

.danger-card-header h3 {
    margin: 0 0 8px;
}

.danger-card-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.reset-form {
    display: grid;
    gap: 0.4rem;
}

@media (max-width: 1024px) {
    .accounting-form-grid {
        grid-template-columns: 1fr;
    }

    .section-stats-grid,
    .section-stats-grid--two,
    .record-grid {
        grid-template-columns: 1fr;
    }
}

body {
    font-family: "Inter", sans-serif;
    background: #edf3fb;
    color: #10223f;
}

.suite-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: #edf3fb;
}

.suite-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.25rem 0.9rem;
    background: linear-gradient(180deg, #08203e 0%, #0c2445 100%);
    color: #f4f8ff;
    position: sticky;
    top: 0;
    min-height: 100vh;
}

.suite-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.35rem 0.4rem 1rem;
}

.suite-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: transparent;
    display: grid;
    place-items: center;
}

.suite-brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 14px;
}

.suite-brand-glyph {
    width: 38px;
    height: 38px;
    fill: none;
    stroke: #d7e6fb;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.suite-brand-glyph path:nth-child(1) {
    fill: #2d6cdf;
    stroke: none;
}

.suite-brand-glyph path:nth-child(2) {
    fill: #4fb36d;
    stroke: none;
}

.suite-brand-glyph path:nth-child(3) {
    fill: #d5aa52;
    stroke: none;
}

.suite-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.1;
}

.suite-brand-accent {
    color: #7ce08f;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.1;
}

.suite-sidebar-nav {
    display: grid;
    gap: 0.32rem;
}

.suite-nav-link,
.suite-quick-create,
.suite-help-link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-height: 48px;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    color: rgba(242, 246, 255, 0.94);
    text-decoration: none;
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.suite-nav-link:hover,
.suite-quick-create:hover,
.suite-help-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.suite-nav-link.is-active {
    background: #1d59c2;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.suite-nav-icon,
.suite-quick-create-icon,
.suite-help-link-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: grid;
    place-items: center;
}

.suite-nav-icon svg,
.suite-menu-button svg,
.suite-topbar-action svg,
.suite-profile-logout-button svg,
.suite-search-icon svg,
.suite-filter-chip svg,
.suite-secondary-action svg,
.acct-stat-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.suite-sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 0.65rem;
    padding-top: 0.75rem;
}

.suite-quick-create {
    justify-content: space-between;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
}

.suite-quick-create-icon,
.suite-help-link-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.1rem;
}

.suite-help-link {
    color: rgba(240, 246, 255, 0.82);
}

.suite-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.suite-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(320px, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(16, 34, 63, 0.08);
    backdrop-filter: blur(12px);
}

.suite-topbar-left,
.suite-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.suite-menu-button {
    width: 42px;
    height: 42px;
    display: grid;
    gap: 4px;
    place-content: center;
    border: none;
    border-radius: 12px;
    background: transparent;
}

.suite-menu-button span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #183762;
    display: block;
}

.suite-back-button {
    min-width: 82px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    border: 1px solid #d4e0ef;
    border-radius: 10px;
    background: #fff;
    color: #123866;
    font-size: 0.84rem;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(15, 35, 65, 0.04);
}

.suite-back-button:hover {
    border-color: #9bb7da;
    background: #f8fbff;
}

.suite-back-button svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.topbar-company-shell {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.topbar-company-label {
    display: none;
}

.topbar-company-form {
    margin: 0;
}

.topbar-company-select {
    min-width: 240px;
    padding: 0.72rem 2.4rem 0.72rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 34, 63, 0.12);
    font-weight: 700;
    color: #10223f;
    background-color: #fff;
    box-shadow: 0 8px 18px rgba(18, 39, 70, 0.05);
}

.topbar-company-manage {
    color: #57719a;
    font-size: 0.9rem;
    text-decoration: none;
}

.suite-search-shell {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 48px;
    padding: 0 0.95rem;
    border: 1px solid rgba(16, 34, 63, 0.1);
    border-radius: 12px;
    background: #fff;
    position: relative;
}

.suite-search-icon {
    width: 18px;
    height: 18px;
    color: #6a7f9d;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    appearance: none;
}

.suite-search-icon:hover,
.suite-search-icon:focus-visible {
    color: #0f3b73;
}

.suite-search-input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.96rem;
    color: #10223f;
    background: transparent;
}

.suite-search-suggestions {
    background: #fff;
    border: 1px solid #cfdced;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(15, 35, 65, 0.18);
    display: grid;
    gap: .25rem;
    left: 0;
    max-height: 430px;
    overflow-y: auto;
    padding: .45rem;
    position: absolute;
    right: 0;
    top: calc(100% + .45rem);
    z-index: 2000;
}

.suite-search-suggestion {
    border-radius: 9px;
    color: #0b274b;
    display: grid;
    gap: .08rem;
    padding: .55rem .65rem;
    text-decoration: none;
}

.suite-search-suggestion:hover,
.suite-search-suggestion:focus-visible {
    background: #f2f6fb;
    outline: none;
}

.suite-search-suggestion span {
    color: #64748b;
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.suite-search-suggestion strong {
    font-size: .86rem;
    line-height: 1.2;
}

.suite-search-suggestion small,
.suite-search-empty {
    color: #5f708a;
    font-size: .76rem;
}

.suite-search-empty {
    padding: .65rem;
}

.suite-topbar-action {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #173255;
    border: 1px solid rgba(16, 34, 63, 0.1);
    border-radius: 999px;
    background: #fff;
    text-decoration: none;
}

.suite-topbar-action-primary {
    color: #fff;
    background: #1f8b4c;
    border-color: #1f8b4c;
}

.suite-quick-actions-menu {
    position: relative;
}

.suite-quick-actions-menu summary {
    list-style: none;
}

.suite-quick-actions-menu summary::-webkit-details-marker {
    display: none;
}

.suite-quick-actions-menu[open] .suite-topbar-action-primary {
    box-shadow: 0 0 0 3px rgba(31, 139, 76, 0.16);
}

.suite-quick-actions-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 30;
    width: 320px;
    padding: 0.55rem;
    display: grid;
    gap: 0.35rem;
    border: 1px solid rgba(16, 34, 63, 0.1);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 22px 46px rgba(16, 34, 63, 0.16);
}

.suite-quick-actions-item {
    display: grid;
    gap: 0.12rem;
    padding: 0.8rem 0.9rem;
    border-radius: 14px;
    color: #173255;
    text-decoration: none;
}

.suite-quick-actions-item:hover {
    background: #f3f7ff;
    color: #173255;
}

.suite-quick-actions-item strong {
    font-size: 0.9rem;
    font-weight: 800;
}

.suite-quick-actions-item span {
    color: #6b7e97;
    font-size: 0.78rem;
    line-height: 1.3;
}

.suite-topbar-badge {
    position: absolute;
    top: -5px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e23d49;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

.suite-profile-chip {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.4rem 0.45rem 0.4rem 0.5rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(16, 34, 63, 0.08);
}

.suite-profile-avatar {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #1d59c2;
    color: #fff;
    font-weight: 700;
}

.suite-profile-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: inherit;
    text-decoration: none;
}

.suite-profile-link:hover .suite-profile-copy strong {
    color: #1d59c2;
}

.suite-profile-copy {
    display: grid;
    gap: 0.1rem;
}

.suite-profile-copy strong {
    font-size: 0.94rem;
}

.suite-profile-copy span {
    color: #6b7e97;
    font-size: 0.8rem;
}

.suite-profile-logout {
    margin: 0;
}

.suite-profile-switch {
    margin: 0;
}

.suite-profile-switch-button,
.suite-profile-logout-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #5d708d;
}

.suite-profile-switch-button:hover,
.suite-profile-logout-button:hover {
    background: rgba(29, 89, 194, 0.08);
    color: #1d59c2;
}

.suite-page-body {
    padding: 1.65rem 1.5rem 1.15rem;
}

.suite-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 1.5rem 1.4rem;
    color: #6f8098;
    font-size: 0.88rem;
}

.suite-footer-links {
    display: flex;
    gap: 1.2rem;
}

.suite-footer a {
    color: inherit;
    text-decoration: none;
}

.suite-page-body:has(.invoice-create-page) {
    padding-top: 1rem;
    padding-bottom: 0.2rem;
}

.suite-main:has(.invoice-create-page) .suite-footer {
    padding-bottom: 0.55rem;
    font-size: 0.8rem;
}

.suite-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.suite-page-eyebrow {
    margin-bottom: 0.45rem;
    color: #29548f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.suite-page-title {
    margin: 0;
    font-size: clamp(2rem, 2.4vw, 2.5rem);
    line-height: 1.05;
    font-weight: 800;
    color: #10223f;
}

.suite-page-wave {
    font-size: 0.9em;
}

.suite-page-subtitle {
    margin: 0.55rem 0 0;
    max-width: 640px;
    color: #627792;
    font-size: 1rem;
    line-height: 1.6;
}

.suite-page-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.suite-filter-chip,
.suite-secondary-action {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.95rem;
    border-radius: 12px;
    border: 1px solid rgba(16, 34, 63, 0.1);
    background: #fff;
    color: #173255;
    text-decoration: none;
    font-weight: 600;
}

.suite-filter-chip svg,
.suite-secondary-action svg {
    width: 18px;
    height: 18px;
}

.acct-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.acct-stat-card,
.acct-panel,
.acct-onboarding-card {
    position: relative;
    padding: 1.35rem;
    border-radius: 16px;
    border: 1px solid rgba(16, 34, 63, 0.08);
    background: #fff;
    box-shadow: 0 10px 26px rgba(18, 39, 70, 0.04);
}

.acct-stat-top {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.acct-stat-top span {
    color: #173255;
    font-size: 0.98rem;
    font-weight: 600;
}

.acct-stat-card strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #13803d;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.acct-stat-card strong.negative {
    color: #d93c3c;
}

.acct-stat-card strong.info {
    color: #1d59c2;
}

.acct-stat-card small {
    display: block;
    max-width: 210px;
    color: #6c809a;
    line-height: 1.5;
}

.acct-stat-delta {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.acct-stat-delta.positive {
    color: #0d8f45;
    background: #e6f7ed;
}

.acct-stat-delta.negative {
    color: #d13e4b;
    background: #fdecef;
}

.acct-stat-delta.neutral {
    color: #627792;
    background: #eef3f8;
}

.acct-stat-icon {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 999px;
}

.acct-stat-icon.positive {
    color: #31a15c;
    background: #e8f7ed;
}

.acct-stat-icon.negative {
    color: #d94855;
    background: #fbeaec;
}

.acct-stat-icon.info {
    color: #2d6cdf;
    background: #edf3ff;
}

.acct-stat-icon.credit-card {
    color: #b7791f;
    background: #fff4d6;
}

.acct-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr) minmax(260px, 0.7fr);
    gap: 1rem;
}

.acct-panel {
    min-width: 0;
}

.acct-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.acct-panel-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.acct-panel-header p {
    margin: 0.3rem 0 0;
    color: #6c809a;
}

.acct-panel-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-left: 0.25rem;
    border-radius: 999px;
    color: #8ca0bc;
    font-size: 0.82rem;
    vertical-align: middle;
}

.acct-panel-header a {
    color: #1d59c2;
    font-weight: 600;
    text-decoration: none;
}

.acct-panel-chart {
    grid-column: 1 / 2;
}

.acct-panel-summary {
    grid-column: 2 / 3;
}

.acct-panel-actions {
    grid-column: 3 / 4;
    grid-row: span 2;
}

.acct-panel-table {
    grid-column: 1 / 3;
}

.acct-panel-customers {
    grid-column: 3 / 4;
}

.acct-panel-toggle {
    padding: 0.45rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(16, 34, 63, 0.1);
    color: #173255;
    font-size: 0.88rem;
    font-weight: 600;
}

.acct-chart-legend {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 0.95rem;
    color: #627792;
    font-size: 0.9rem;
    font-weight: 600;
}

.acct-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.acct-chart-legend i,
.acct-profit-legend i {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.acct-chart-legend i.income,
.acct-profit-legend i.income {
    background: #4fb36d;
}

.acct-chart-legend i.expense,
.acct-profit-legend i.expense {
    background: #2d6cdf;
}

.acct-line-chart {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
}

.acct-chart-scale {
    display: grid;
    align-content: space-between;
    color: #6c809a;
    font-size: 0.82rem;
}

.acct-chart-canvas {
    min-width: 0;
    position: relative;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(247, 250, 255, 0.95) 0%, rgba(250, 252, 255, 0.72) 100%);
    padding: 0.25rem 0.75rem 0.1rem 0.1rem;
}

.acct-chart-canvas svg {
    width: 100%;
    height: 320px;
    display: block;
}

.acct-chart-grid-line {
    stroke: rgba(30, 57, 96, 0.09);
    stroke-width: 1;
    stroke-dasharray: 2 10;
}

.acct-chart-line {
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: url(#lineGlow);
}

.acct-chart-area {
    stroke: none;
}

.acct-chart-area.income {
    fill: url(#incomeFill);
}

.acct-chart-area.expense {
    fill: url(#expenseFill);
}

.acct-chart-line.income {
    stroke: #4fb36d;
}

.acct-chart-line.expense {
    stroke: #2d6cdf;
}

.acct-chart-dot {
    stroke: #ffffff;
    stroke-width: 3;
}

.acct-chart-dot.income {
    fill: #4fb36d;
}

.acct-chart-dot.expense {
    fill: #2d6cdf;
}

.acct-chart-labels {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.2rem;
    color: #6c809a;
    font-size: 0.82rem;
}

.acct-chart-labels span {
    white-space: nowrap;
}

.acct-profit-donut {
    display: grid;
    gap: 1.25rem;
}

.acct-profit-donut-ring {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(17, 43, 78, 0.06);
}

.acct-profit-donut-center {
    width: 100%;
    height: 100%;
    display: grid;
    place-content: center;
    text-align: center;
    border-radius: 999px;
    background: #fff;
}

.acct-profit-donut-center span,
.acct-profit-donut-center small {
    color: #6c809a;
}

.acct-profit-donut-center strong {
    font-size: 1.85rem;
    font-weight: 800;
    color: #132f53;
}

.acct-profit-legend {
    display: grid;
    gap: 0.8rem;
}

.acct-profit-legend > div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
    color: #173255;
}

.acct-profit-legend .profit-total {
    margin-top: 0.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(16, 34, 63, 0.08);
}

.acct-quick-action-list {
    display: grid;
    gap: 0.6rem;
}

.acct-quick-action-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 0.8rem;
    align-items: center;
    padding: 0.95rem 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    color: #10223f;
    background: #f7fafc;
    border: 1px solid rgba(16, 34, 63, 0.05);
}

.acct-quick-action-item:hover {
    border-color: rgba(29, 89, 194, 0.18);
    background: #fff;
}

.acct-quick-action-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
}

.acct-quick-action-icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.acct-quick-action-icon.invoice { background: #1f8b4c; }
.acct-quick-action-icon.expense { background: #ef7b37; }
.acct-quick-action-icon.customer { background: #2d6cdf; }
.acct-quick-action-icon.bill { background: #7c4dff; }
.acct-quick-action-icon.bank { background: #18a2a4; }
.acct-quick-action-icon.accounts { background: #3257a8; }
.acct-quick-action-icon.ocr { background: #0f766e; }
.acct-quick-action-icon.suggestions { background: #6d5dfc; }
.acct-quick-action-icon.reports { background: #b7791f; }

.acct-quick-action-copy {
    display: grid;
    gap: 0.15rem;
}

.acct-quick-action-copy small,
.acct-empty-state {
    color: #6c809a;
    line-height: 1.6;
}

.acct-quick-action-arrow {
    color: #6c809a;
    font-size: 1.3rem;
}

.acct-premium-card {
    margin-top: 1rem;
    padding: 1.2rem;
    border-radius: 16px;
    background: linear-gradient(180deg, #2458c6 0%, #1b4aad 100%);
    color: #fff;
    box-shadow: 0 16px 34px rgba(29, 89, 194, 0.24);
}

.acct-premium-card h3 {
    margin: 0 0 0.45rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.acct-premium-card p {
    margin: 0 0 1rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
}

.acct-premium-crown {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    margin-bottom: 0.9rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 1.15rem;
}

.acct-premium-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
}

.acct-premium-button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.acct-data-table-shell {
    overflow-x: auto;
}

.acct-data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.acct-data-table thead th {
    padding: 0.85rem 0.8rem;
    border-bottom: 1px solid rgba(16, 34, 63, 0.08);
    color: #627792;
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.acct-data-table tbody td {
    padding: 0.95rem 0.8rem;
    border-bottom: 1px solid rgba(16, 34, 63, 0.06);
    color: #173255;
    vertical-align: middle;
}

.acct-table-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.acct-table-pill.type {
    background: #eef3ff;
    color: #2d6cdf;
}

.acct-table-pill.invoice {
    background: #e8f7ed;
    color: #13803d;
}

.acct-table-pill.payment {
    background: #eef3ff;
    color: #2d6cdf;
}

.acct-table-pill.expense {
    background: #f4ecff;
    color: #7c4dff;
}

.acct-table-pill.paid {
    background: #e6f7ed;
    color: #0d8f45;
}

.acct-table-pill.unpaid {
    background: #fdecef;
    color: #d13e4b;
}

.acct-table-pill.cleared {
    background: #eef3f8;
    color: #4d6483;
}

.acct-customer-list {
    display: grid;
    gap: 0.95rem;
}

.acct-customer-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) minmax(120px, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.acct-customer-rank {
    color: #173255;
    font-weight: 700;
}

.acct-customer-name {
    font-weight: 600;
}

.acct-customer-bar {
    height: 8px;
    border-radius: 999px;
    background: #edf2f8;
    overflow: hidden;
}

.acct-customer-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #4fb36d 0%, #2b9f67 100%);
}

.acct-customer-amount {
    font-weight: 700;
}

.acct-onboarding-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.acct-onboarding-card {
    display: grid;
    gap: 0.8rem;
}

.acct-onboarding-card h2 {
    margin: 0;
    font-size: 1.15rem;
}

.acct-onboarding-card p {
    margin: 0;
    color: #627792;
    line-height: 1.6;
}

.acct-onboarding-status {
    width: max-content;
    min-height: 30px;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.acct-onboarding-status.complete {
    color: #0d8f45;
    background: #e6f7ed;
}

.acct-onboarding-status.pending {
    color: #b26a00;
    background: #fff5dd;
}

.acct-company-setup-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    gap: 1rem;
}

.acct-company-setup-card {
    padding: 1.35rem;
    border-radius: 16px;
    border: 1px solid rgba(16, 34, 63, 0.08);
    background: #fff;
    box-shadow: 0 10px 26px rgba(18, 39, 70, 0.04);
}

.acct-company-setup-card-form .form-grid {
    margin-top: 0.75rem;
}

.acct-company-setup-card-side {
    display: grid;
    align-content: start;
    gap: 1rem;
}

.acct-company-setup-steps {
    display: grid;
    gap: 0.85rem;
}

.acct-company-step {
    display: grid;
    gap: 0.25rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    background: #f7fafc;
    border: 1px solid rgba(16, 34, 63, 0.06);
}

.acct-company-step strong {
    color: #173255;
}

.acct-company-step span {
    color: #627792;
    line-height: 1.55;
}

@media (max-width: 1440px) {
    .acct-dashboard-grid {
        grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
    }

    .acct-panel-actions,
    .acct-panel-customers {
        grid-column: auto;
        grid-row: auto;
    }

    .acct-panel-table {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1180px) {
    .suite-shell {
        grid-template-columns: 1fr;
    }

    .suite-sidebar {
        position: relative;
        min-height: auto;
    }

    .suite-topbar {
        grid-template-columns: 1fr;
    }

    .suite-topbar-left,
    .suite-topbar-right {
        flex-wrap: wrap;
    }

    .suite-search-shell {
        order: 3;
    }

    .acct-stat-grid,
    .acct-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .acct-company-setup-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .suite-page-body,
    .suite-topbar,
    .suite-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .suite-page-header {
        flex-direction: column;
    }

    .acct-line-chart {
        grid-template-columns: 1fr;
    }

    .acct-chart-scale {
        display: none;
    }

    .acct-data-table {
        min-width: 720px;
    }

    .suite-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Unified dashboard grid */
.dashboard-page-shell {
    display: grid;
    gap: 8px;
    --dashboard-reference-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(320px, 0.95fr) minmax(300px, 0.9fr);
}

.dashboard-summary-grid {
    display: grid;
    grid-template-columns: var(--dashboard-reference-columns);
    gap: 10px;
}

.dashboard-reference-grid {
    display: grid;
    grid-template-columns: var(--dashboard-reference-columns);
    gap: 10px;
    align-items: start;
    grid-template-areas:
        "chart chart profit actions"
        "transactions transactions customers premium";
}

.dashboard-summary-card {
    position: relative;
    min-height: 112px;
    padding: 12px 68px 10px 14px;
}

.dashboard-summary-card strong {
    font-size: 1.32rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.dashboard-summary-card small {
    line-height: 1.35;
    font-size: 0.78rem;
}

.dashboard-panel-card {
    padding: 12px 14px;
    border-radius: 16px;
}

.dashboard-card-chart {
    grid-area: chart;
}

.dashboard-card-transactions {
    grid-area: transactions;
}

.dashboard-card-profit {
    grid-area: profit;
}

.dashboard-card-actions {
    grid-area: actions;
}

.dashboard-card-customers {
    grid-area: customers;
}

.dashboard-card-premium {
    grid-area: premium;
}

.dashboard-card-chart,
.dashboard-card-transactions {
    min-width: 0;
}

.suite-page-body-dashboard .dashboard-card-chart,
.suite-page-body-dashboard .dashboard-card-profit,
.suite-page-body-dashboard .dashboard-card-actions {
    min-height: 320px;
}

.suite-page-body-dashboard .dashboard-card-transactions,
.suite-page-body-dashboard .dashboard-card-customers,
.suite-page-body-dashboard .dashboard-card-premium {
    min-height: 156px;
}

.dashboard-premium-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 12px 14px;
    min-height: 100%;
    color: #fff;
    background: linear-gradient(180deg, #1f58cc 0%, #1842a9 100%);
    border-color: rgba(17, 43, 78, 0.06);
}

.dashboard-premium-card .acct-premium-button {
    margin-top: 2px;
    margin-left: 0;
    width: 100%;
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    background: transparent;
}

.dashboard-premium-card .acct-premium-copy,
.dashboard-premium-card h3,
.dashboard-premium-card p {
    color: #fff;
}

.dashboard-premium-card .acct-premium-crown {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.dashboard-card-actions .acct-quick-action-list {
    gap: 5px;
}

.dashboard-card-actions,
.dashboard-card-profit,
.dashboard-card-customers,
.dashboard-card-premium {
    min-height: 100%;
}

.dashboard-card-actions .acct-quick-action-item {
    background: #fff;
    border-color: rgba(16, 34, 63, 0.07);
    min-height: 38px;
    padding: 6px 8px;
}

.dashboard-card-profit .acct-profit-donut {
    grid-template-columns: 1fr;
    gap: 6px;
}

.dashboard-card-profit .acct-profit-donut-ring {
    width: 124px;
    height: 124px;
}

.dashboard-card-profit .acct-profit-donut-center strong {
    font-size: 1.18rem;
}

.dashboard-card-profit .acct-profit-legend {
    gap: 4px;
}

.dashboard-card-customers .acct-customer-row {
    grid-template-columns: 20px minmax(0, 1fr) minmax(96px, 1fr) auto;
}

.dashboard-card-customers .acct-panel-header,
.dashboard-card-transactions .acct-panel-header {
    margin-bottom: 6px;
}

.dashboard-card-customers .acct-customer-amount {
    font-weight: 700;
}

.dashboard-card-chart .acct-chart-canvas svg {
    height: 118px;
}

.dashboard-card-transactions .acct-data-table thead th,
.dashboard-card-customers .acct-panel-header a,
.dashboard-card-transactions .acct-panel-header a {
    font-size: 0.8rem;
}

.dashboard-card-transactions .acct-data-table tbody td {
    padding-top: 0.34rem;
    padding-bottom: 0.34rem;
    font-size: 0.8rem;
}

/* Fixed-height Accounting dashboard, aligned with the Data Entry workspace style. */
.suite-shell:has(.suite-main-dashboard) {
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.suite-main-dashboard {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.suite-main-dashboard .suite-topbar {
    flex: 0 0 auto;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.suite-page-body-dashboard {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0.72rem 1.1rem 0.45rem;
}

.suite-footer-dashboard {
    flex: 0 0 auto;
    padding: 0.32rem 1.1rem 0.45rem;
    border-top: 1px solid rgba(16, 34, 63, 0.08);
    font-size: 0.76rem;
}

.suite-page-body-dashboard .dashboard-header {
    margin-bottom: 0.42rem;
}

.suite-page-body-dashboard .dashboard-header .page-section-title {
    font-size: 1.25rem;
    line-height: 1.15;
}

.suite-page-body-dashboard .dashboard-header .page-section-text {
    font-size: 0.76rem;
}

.suite-page-body-dashboard .dashboard-toolbar .suite-filter-chip,
.suite-page-body-dashboard .dashboard-toolbar .suite-secondary-action {
    min-height: 32px;
    padding: 0.35rem 0.58rem;
    border-radius: 10px;
    font-size: 0.78rem;
}

.suite-page-body-dashboard .dashboard-page-shell {
    height: calc(100% - 2.65rem);
    min-height: 0;
    gap: 0.45rem;
    grid-template-rows: auto minmax(0, 1fr);
    --dashboard-reference-columns: minmax(0, 1.55fr) minmax(300px, 0.67fr) minmax(300px, 0.67fr);
}

.suite-page-body-dashboard .dashboard-summary-grid {
    gap: 0.45rem;
}

.suite-page-body-dashboard .dashboard-summary-card {
    min-height: 74px;
    padding: 0.62rem 3.2rem 0.55rem 0.7rem;
    border-radius: 13px;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-top {
    margin-bottom: 0.25rem;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-top span {
    font-size: 0.74rem;
}

.suite-page-body-dashboard .dashboard-summary-card strong {
    margin-bottom: 0.22rem;
    font-size: 1.08rem;
}

.suite-page-body-dashboard .dashboard-summary-card small {
    font-size: 0.7rem;
    line-height: 1.15;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-icon {
    right: 0.72rem;
    bottom: 0.55rem;
    width: 30px;
    height: 30px;
}

.suite-page-body-dashboard .dashboard-reference-grid {
    min-height: 0;
    height: 100%;
    gap: 0.45rem;
    grid-template-columns: var(--dashboard-reference-columns);
    grid-template-rows: minmax(0, 1fr) 132px;
    grid-template-areas:
        "chart profit actions"
        "transactions customers premium";
}

.suite-page-body-dashboard .dashboard-panel-card,
.suite-page-body-dashboard .dashboard-premium-card {
    padding: 0.55rem 0.62rem;
    border-radius: 13px;
}

.suite-page-body-dashboard .dashboard-card-chart,
.suite-page-body-dashboard .dashboard-card-profit,
.suite-page-body-dashboard .dashboard-card-actions {
    min-height: 0;
    height: 100%;
}

.suite-page-body-dashboard .dashboard-card-transactions,
.suite-page-body-dashboard .dashboard-card-customers,
.suite-page-body-dashboard .dashboard-card-premium {
    min-height: 0;
    height: 100%;
}

.suite-page-body-dashboard .acct-panel-header {
    margin-bottom: 0.38rem;
}

.suite-page-body-dashboard .acct-panel-header h2 {
    font-size: 0.82rem;
}

.suite-page-body-dashboard .acct-panel-header p {
    font-size: 0.68rem;
    line-height: 1.15;
}

.suite-page-body-dashboard .acct-chart-legend {
    margin-bottom: 0.18rem;
    font-size: 0.72rem;
}

.acct-intake-style-chart {
    height: calc(100% - 3.1rem);
    min-height: 0;
    border: 1px solid rgba(160, 177, 203, 0.24);
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(245, 249, 254, 0.96)),
        repeating-linear-gradient(0deg, transparent 0 19%, rgba(31, 91, 160, 0.08) 19% 19.5%);
    padding: 0.55rem 0.65rem 0.45rem;
    overflow: hidden;
}

.acct-bar-chart-grid {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(34px, 1fr));
    gap: 0.52rem;
    align-items: end;
}

.acct-bar-chart-column {
    height: 100%;
    min-width: 0;
    display: grid;
    grid-template-rows: 1.85rem minmax(0, 1fr) 1.25rem;
    justify-items: center;
    gap: 0.25rem;
}

.acct-bar-values {
    display: grid;
    gap: 0.1rem;
    justify-items: center;
    color: #0f2a4f;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
}

.acct-bar-track {
    position: relative;
    width: 34px;
    height: 100%;
    min-height: 110px;
    display: flex;
    align-items: end;
    justify-content: center;
}

.acct-bar-target {
    position: absolute;
    bottom: 0;
    width: 30px;
    min-height: 94%;
    border: 1px solid rgba(81, 115, 157, 0.18);
    border-radius: 9px 9px 3px 3px;
    background: linear-gradient(180deg, #dce8f6, #edf3fa);
}

.acct-bar-actual {
    position: absolute;
    bottom: 0;
    min-height: 3px;
    border-radius: 8px 8px 3px 3px;
    box-shadow: 0 8px 16px rgba(45, 108, 223, 0.16);
}

.acct-bar-actual.income {
    left: 5px;
    width: 13px;
    background: linear-gradient(180deg, #4fc46f, #2d6cdf);
}

.acct-bar-actual.expense {
    right: 5px;
    width: 13px;
    background: linear-gradient(180deg, #6a7cff, #2d6cdf);
}

.acct-bar-baseline {
    position: absolute;
    bottom: 0;
    left: 1px;
    right: 1px;
    height: 2px;
    border-radius: 999px;
    background: #2d6cdf;
}

.acct-bar-chart-column strong {
    color: #173255;
    font-size: 0.7rem;
    line-height: 1;
    white-space: nowrap;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list {
    max-height: calc(100% - 2.3rem);
    overflow: hidden;
    gap: 0.3rem;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    min-height: 34px;
    padding: 0.35rem 0.48rem;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-copy strong {
    font-size: 0.72rem;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-copy small {
    font-size: 0.62rem;
    line-height: 1.1;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-icon {
    width: 24px;
    height: 24px;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut {
    gap: 0.42rem;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring {
    width: 108px;
    height: 108px;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend {
    gap: 0.25rem;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend > div {
    gap: 0.3rem;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend span,
.suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend strong,
.suite-page-body-dashboard .dashboard-card-profit .profit-total {
    font-size: 0.74rem;
}

.suite-page-body-dashboard .dashboard-card-transactions .acct-empty-state,
.suite-page-body-dashboard .dashboard-card-customers .acct-empty-state {
    min-height: 0;
    padding: 0.1rem 0 0;
    font-size: 0.72rem;
}

.suite-page-body-dashboard .dashboard-premium-card {
    gap: 0.25rem;
}

.suite-page-body-dashboard .dashboard-premium-card .acct-premium-crown {
    width: 30px;
    height: 30px;
}

.suite-page-body-dashboard .dashboard-premium-card h3 {
    font-size: 0.78rem;
}

.suite-page-body-dashboard .dashboard-premium-card p {
    font-size: 0.68rem;
}

.suite-page-body-dashboard .dashboard-premium-card .acct-premium-button {
    min-height: 30px;
    padding: 0.35rem;
    font-size: 0.78rem;
}

.dashboard-card-customers .acct-customer-list {
    gap: 0.35rem;
}

.dashboard-card-actions .acct-quick-action-copy strong,
.dashboard-card-customers .acct-customer-name,
.dashboard-card-transactions .acct-panel-header h2,
.dashboard-card-customers .acct-panel-header h2,
.dashboard-card-actions .acct-panel-header h2,
.dashboard-card-profit .acct-panel-header h2,
.dashboard-card-chart .acct-panel-header h2 {
    font-size: 0.88rem;
}

.dashboard-card-actions .acct-quick-action-copy small,
.dashboard-card-chart .acct-panel-header p,
.dashboard-card-profit .acct-panel-header p,
.dashboard-card-customers .acct-panel-header p,
.dashboard-card-transactions .acct-panel-header p,
.dashboard-premium-card p {
    font-size: 0.74rem;
    line-height: 1.25;
}

.dashboard-header {
    margin-bottom: 0.2rem;
}

.dashboard-header .page-section-title {
    font-size: 1.52rem;
}

.dashboard-header .page-section-text {
    font-size: 0.8rem;
}

.dashboard-toolbar .suite-filter-chip,
.dashboard-toolbar .suite-secondary-action {
    min-height: 34px;
    padding: 0.44rem 0.68rem;
}

.dashboard-summary-card .acct-stat-icon {
    right: 16px;
    bottom: 12px;
    width: 34px;
    height: 34px;
}

.dashboard-summary-card .acct-stat-top {
    margin-bottom: 6px;
}

.dashboard-premium-card h3 {
    font-size: 0.88rem;
}

.dashboard-card-actions .acct-quick-action-icon {
    width: 26px;
    height: 26px;
}

.dashboard-card-actions .acct-quick-action-icon svg {
    width: 12px;
    height: 12px;
}

.dashboard-card-transactions .acct-empty-state,
.dashboard-card-customers .acct-empty-state {
    min-height: 36px;
    padding: 2px 0 0;
    font-size: 0.82rem;
}

.dashboard-card-chart .acct-line-chart {
    gap: 8px;
}

.dashboard-card-chart .acct-chart-scale {
    font-size: 0.72rem;
}

.dashboard-card-chart .acct-chart-labels {
    margin-top: 0.1rem;
    font-size: 0.72rem;
}

.dashboard-card-profit .acct-profit-legend strong,
.dashboard-card-profit .profit-total strong {
    font-size: 0.84rem;
}

.dashboard-card-profit .acct-profit-legend > div {
    gap: 0.35rem;
}

.dashboard-card-customers .acct-customer-row {
    gap: 0.35rem;
}

.dashboard-card-transactions,
.dashboard-card-customers,
.dashboard-card-actions,
.dashboard-card-profit,
.dashboard-card-chart,
.dashboard-card-premium {
    align-self: start;
}

.dashboard-card-transactions .acct-data-table thead th {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    font-size: 0.72rem;
}

.dashboard-card-transactions .acct-table-pill {
    min-height: 22px;
    padding: 0.1rem 0.4rem;
    font-size: 0.72rem;
}

.dashboard-card-chart .acct-panel-toggle {
    padding: 0.28rem 0.55rem;
    font-size: 0.76rem;
}

.dashboard-card-chart .acct-chart-legend,
.dashboard-card-profit .acct-profit-legend {
    margin-bottom: 0;
}

.dashboard-header + .dashboard-page-shell {
    margin-top: -2px;
}

.suite-page-body {
    padding-bottom: 0.45rem;
}

.suite-footer {
    padding-top: 0;
    padding-bottom: 0.6rem;
    font-size: 0.82rem;
}

.dashboard-page-shell + .suite-footer,
.suite-main .suite-footer {
    padding-top: 0.25rem;
}

.suite-page-body-dashboard {
    padding-top: 0.95rem;
    padding-bottom: 0.2rem;
}

.suite-main-dashboard {
    height: 100vh;
    overflow: hidden;
}

.suite-main-dashboard .suite-page-body-dashboard {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.suite-main-dashboard .suite-footer-dashboard {
    flex: 0 0 auto;
    background: #edf3fb;
}

.suite-page-body-dashboard .page-section-header {
    margin-bottom: 10px;
}

.suite-page-body-dashboard .dashboard-header .page-section-title {
    margin: 2px 0 4px;
    font-size: 1.44rem;
}

.suite-page-body-dashboard .dashboard-header .page-section-text {
    font-size: 0.78rem;
    line-height: 1.25;
}

.suite-page-body-dashboard .dashboard-page-shell {
    gap: 6px;
}

.suite-page-body-dashboard .dashboard-summary-grid,
.suite-page-body-dashboard .dashboard-reference-grid {
    gap: 8px;
}

.suite-page-body-dashboard .dashboard-summary-card {
    min-height: 100px;
    padding: 10px 58px 8px 12px;
}

.suite-page-body-dashboard .dashboard-summary-card strong {
    font-size: 1.22rem;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-top {
    margin-bottom: 4px;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-icon {
    right: 14px;
    bottom: 10px;
    width: 32px;
    height: 32px;
}

.suite-page-body-dashboard .dashboard-panel-card {
    padding: 10px 12px;
}

.suite-page-body-dashboard .dashboard-card-chart .acct-panel-header,
.suite-page-body-dashboard .dashboard-card-profit .acct-panel-header,
.suite-page-body-dashboard .dashboard-card-transactions .acct-panel-header,
.suite-page-body-dashboard .dashboard-card-customers .acct-panel-header,
.suite-page-body-dashboard .dashboard-card-actions .acct-panel-header {
    margin-bottom: 4px;
}

.suite-page-body-dashboard .dashboard-card-chart .acct-chart-legend {
    margin-bottom: 4px;
    font-size: 0.78rem;
}

.suite-page-body-dashboard .dashboard-card-chart .acct-line-chart {
    gap: 6px;
}

.suite-page-body-dashboard .dashboard-card-chart .acct-chart-canvas svg {
    height: 96px;
}

.suite-page-body-dashboard .dashboard-card-chart .acct-chart-labels,
.suite-page-body-dashboard .dashboard-card-chart .acct-chart-scale {
    font-size: 0.7rem;
}

.suite-page-body-dashboard .dashboard-card-chart .acct-panel-toggle {
    padding: 0.24rem 0.5rem;
    font-size: 0.74rem;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut {
    gap: 4px;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring {
    width: 110px;
    height: 110px;
    padding: 18px;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-center strong {
    font-size: 1.08rem;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend {
    gap: 2px;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend .profit-total {
    margin-top: 0;
    padding-top: 0.45rem;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list {
    gap: 4px;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    min-height: 34px;
    padding: 5px 8px;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-copy strong {
    font-size: 0.78rem;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-copy small {
    font-size: 0.68rem;
    line-height: 1.15;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-icon {
    width: 24px;
    height: 24px;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-icon svg {
    width: 11px;
    height: 11px;
}

.suite-page-body-dashboard .dashboard-card-transactions .acct-empty-state,
.suite-page-body-dashboard .dashboard-card-customers .acct-empty-state {
    min-height: 22px;
    padding-top: 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.suite-page-body-dashboard .dashboard-card-customers .acct-customer-list {
    gap: 0.25rem;
}

.suite-page-body-dashboard .dashboard-premium-card {
    gap: 4px;
    padding: 10px 12px;
}

.suite-page-body-dashboard .dashboard-premium-card p {
    margin-bottom: 0.2rem;
}

.suite-page-body-dashboard .dashboard-premium-card .acct-premium-button {
    min-height: 38px;
    margin-top: 0;
}

.suite-footer-dashboard {
    padding-top: 0;
    padding-bottom: 0.35rem;
    font-size: 0.8rem;
}

.invoice-create-shell {
    display: block;
}

/* Dashboard final layout: align detail cards under the top summary cards. */
.suite-page-body-dashboard .dashboard-page-shell {
    height: calc(100% - 2.45rem);
    grid-template-rows: auto minmax(0, 1fr);
    --dashboard-reference-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(300px, 0.9fr) minmax(300px, 0.9fr);
}

.suite-page-body-dashboard .dashboard-summary-grid {
    grid-template-columns: var(--dashboard-reference-columns);
}

.suite-page-body-dashboard .dashboard-reference-grid {
    grid-template-columns: var(--dashboard-reference-columns);
    grid-template-rows: minmax(0, 0.88fr) minmax(0, 1fr);
    grid-template-areas:
        "chart transactions customers profit"
        "chart transactions customers actions";
    align-items: stretch;
}

.suite-page-body-dashboard .dashboard-card-chart {
    min-height: 0;
    grid-area: chart;
    align-self: stretch;
}

.suite-page-body-dashboard .dashboard-card-profit {
    grid-area: profit;
    min-height: 0;
    overflow: hidden;
    align-self: stretch;
}

.suite-page-body-dashboard .dashboard-card-transactions {
    grid-area: transactions;
    min-height: 0;
    overflow: hidden;
    align-self: stretch;
}

.suite-page-body-dashboard .dashboard-card-customers {
    grid-area: customers;
    min-height: 0;
    overflow: hidden;
    align-self: stretch;
}

.suite-page-body-dashboard .dashboard-card-actions {
    grid-area: actions;
    min-height: 0;
    overflow: hidden;
    align-self: stretch;
}

.suite-page-body-dashboard .dashboard-card-premium {
    grid-area: premium;
    min-height: 0;
    overflow: hidden;
    display: none;
}

.suite-page-body-dashboard .dashboard-card-chart .acct-panel-header {
    margin-bottom: 0.2rem;
}

.suite-page-body-dashboard .acct-intake-style-chart {
    height: calc(100% - 2.55rem);
    padding: 0.36rem 0.42rem 0.28rem;
}

.suite-page-body-dashboard .acct-bar-chart-grid {
    grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
    gap: 0.18rem;
}

.suite-page-body-dashboard .acct-bar-chart-column {
    grid-template-rows: 1.1rem minmax(0, 1fr) 0.85rem;
    gap: 0.12rem;
}

.suite-page-body-dashboard .acct-bar-values {
    font-size: 0.54rem;
}

.suite-page-body-dashboard .acct-bar-track {
    width: 20px;
    min-height: 58px;
}

.suite-page-body-dashboard .acct-bar-target {
    width: 18px;
    border-radius: 6px 6px 3px 3px;
}

.suite-page-body-dashboard .acct-bar-actual.income {
    left: 3px;
    width: 7px;
}

.suite-page-body-dashboard .acct-bar-actual.expense {
    right: 3px;
    width: 7px;
}

.suite-page-body-dashboard .acct-bar-chart-column strong {
    font-size: 0.58rem;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring {
    width: 92px;
    height: 92px;
    padding: 16px;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend {
    min-width: 0;
    gap: 0.18rem;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend span,
.suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend strong,
.suite-page-body-dashboard .dashboard-card-profit .profit-total {
    font-size: 0.68rem;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list {
    max-height: none;
    height: calc(100% - 2.05rem);
    overflow: hidden;
    gap: 0.24rem;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    min-height: 29px;
    padding: 0.28rem 0.42rem;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-icon {
    width: 22px;
    height: 22px;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-copy strong {
    font-size: 0.68rem;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-copy small {
    font-size: 0.58rem;
    line-height: 1.05;
}

.suite-page-body-dashboard .dashboard-premium-card {
    gap: 0.18rem;
    padding: 0.45rem 0.55rem;
}

.suite-page-body-dashboard .dashboard-premium-card .acct-premium-crown {
    width: 24px;
    height: 24px;
}

.suite-page-body-dashboard .dashboard-premium-card h3 {
    font-size: 0.72rem;
}

.suite-page-body-dashboard .dashboard-premium-card p {
    font-size: 0.6rem;
    margin: 0;
}

.suite-page-body-dashboard .dashboard-premium-card .acct-premium-button {
    min-height: 26px;
    padding: 0.24rem;
    font-size: 0.68rem;
}

.suite-page-body-dashboard .dashboard-card-transactions .acct-empty-state,
.suite-page-body-dashboard .dashboard-card-customers .acct-empty-state {
    font-size: 0.72rem;
}

/* Dashboard fixed-screen correction. Keep the whole page visible without vertical scrolling. */
.suite-main-dashboard,
.suite-main-dashboard .suite-page-body-dashboard {
    overflow: hidden !important;
}

.suite-page-body-dashboard {
    padding: 0.45rem 0.85rem 0.25rem !important;
}

.suite-page-body-dashboard .page-section-header {
    margin-bottom: 0.35rem !important;
}

.suite-page-body-dashboard .dashboard-header .page-section-title {
    margin: 0 0 0.15rem !important;
    font-size: 1.18rem !important;
    line-height: 1.05 !important;
}

.suite-page-body-dashboard .dashboard-header .page-section-text {
    font-size: 0.7rem !important;
    line-height: 1.1 !important;
}

.suite-page-body-dashboard .dashboard-page-shell {
    height: 100% !important;
    gap: 0.35rem !important;
    grid-template-rows: 84px minmax(0, 1fr) !important;
}

.suite-page-body-dashboard .dashboard-summary-grid,
.suite-page-body-dashboard .dashboard-reference-grid {
    gap: 0.42rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card {
    min-height: 0 !important;
    height: 84px !important;
    padding: 0.5rem 3rem 0.45rem 0.65rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card strong {
    font-size: 1.05rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card small {
    font-size: 0.62rem !important;
}

.suite-page-body-dashboard .dashboard-reference-grid {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr) minmax(0, 0.95fr) minmax(300px, 0.92fr) !important;
    grid-template-rows: minmax(0, 0.82fr) minmax(0, 1fr) !important;
    grid-template-areas:
        "chart transactions customers profit"
        "chart transactions customers actions" !important;
    align-items: stretch !important;
}

.suite-page-body-dashboard .dashboard-panel-card {
    min-height: 0 !important;
    height: 100% !important;
    padding: 0.48rem 0.55rem !important;
    overflow: hidden !important;
}

.suite-page-body-dashboard .acct-panel-header {
    margin-bottom: 0.28rem !important;
}

.suite-page-body-dashboard .acct-panel-header h2 {
    font-size: 0.75rem !important;
    line-height: 1.05 !important;
}

.suite-page-body-dashboard .acct-panel-header p {
    font-size: 0.6rem !important;
    line-height: 1.08 !important;
}

.suite-page-body-dashboard .acct-panel-toggle {
    min-height: 24px !important;
    padding: 0.2rem 0.42rem !important;
    font-size: 0.65rem !important;
}

.suite-page-body-dashboard .acct-dashboard-pie-pair {
    height: calc(100% - 2rem);
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.38rem;
}

.suite-page-body-dashboard .acct-dashboard-pie-card {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem 0.5rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(160, 177, 203, 0.26);
    border-radius: 12px;
    background: #f8fbff;
}

.suite-page-body-dashboard .acct-dashboard-pie-card.income {
    background: #f5fbf7;
}

.suite-page-body-dashboard .acct-dashboard-pie-total {
    display: grid;
    gap: 0.15rem;
}

.suite-page-body-dashboard .acct-dashboard-pie-total span {
    font-size: 0.62rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #60718c;
}

.suite-page-body-dashboard .acct-dashboard-pie-total strong {
    font-size: 1rem;
    font-weight: 900;
    color: #06244a;
}

.suite-page-body-dashboard .acct-dashboard-pie-card small {
    grid-column: 1 / -1;
    font-size: 0.58rem;
    color: #60718c;
}

.suite-page-body-dashboard .acct-dashboard-pie-ring {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    justify-self: end;
    background: conic-gradient(var(--pie-color) var(--pie-fill), var(--pie-bg) 0);
    box-shadow: inset 0 0 0 16px #fff;
    position: relative;
    transform: perspective(220px) rotateX(12deg);
}

.suite-page-body-dashboard .acct-dashboard-pie-ring span {
    position: relative;
    z-index: 2;
    font-size: 0.76rem;
    font-weight: 900;
    color: #06244a;
}

.suite-page-body-dashboard .acct-dashboard-pie-ring::before {
    content: "";
    position: absolute;
    left: 5%;
    right: 5%;
    bottom: -12px;
    height: 30px;
    border-radius: 0 0 999px 999px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--pie-color), #ffffff 15%), color-mix(in srgb, var(--pie-color), #10223f 34%));
    opacity: 0.88;
    z-index: -1;
}

.suite-page-body-dashboard .acct-dashboard-pie-ring::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.18) 32%, rgba(255, 255, 255, 0) 58%);
    pointer-events: none;
}

.suite-page-body-dashboard .dashboard-card-profit {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
}

.suite-page-body-dashboard .acct-profit-summary-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}

.suite-page-body-dashboard .acct-profit-summary-kpis > div {
    min-width: 0;
    padding: 0.3rem 0.36rem;
    border: 1px solid rgba(160, 177, 203, 0.22);
    border-radius: 9px;
    background: #f8fbff;
}

.suite-page-body-dashboard .acct-profit-summary-kpis span {
    display: block;
    margin-bottom: 0.1rem;
    font-size: 0.52rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #60718c;
}

.suite-page-body-dashboard .acct-profit-summary-kpis strong {
    display: block;
    font-size: 0.64rem;
    font-weight: 900;
    color: #06244a;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut {
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    justify-items: center !important;
    align-items: center !important;
    gap: 0.28rem !important;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend {
    width: 100%;
    display: flex !important;
    justify-content: center;
    gap: 0.75rem !important;
    order: 1;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring {
    order: 2;
    width: 104px !important;
    height: 104px !important;
    padding: 17px !important;
    justify-self: center !important;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend span {
    font-size: 0.62rem !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list {
    height: calc(100% - 1.75rem) !important;
    gap: 0.18rem !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    min-height: 28px !important;
    padding: 0.24rem 0.38rem !important;
    border-radius: 9px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-icon {
    width: 22px !important;
    height: 22px !important;
    border-radius: 8px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-icon svg {
    width: 11px !important;
    height: 11px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-copy strong {
    font-size: 0.66rem !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-copy small {
    font-size: 0.54rem !important;
    line-height: 1 !important;
}

.invoice-create-page {
    display: grid;
    gap: 8px;
}

.invoice-create-page .page-section-header {
    margin-bottom: 8px;
}

.invoice-create-page .page-section-title {
    margin-top: 0;
    margin-bottom: 6px;
    font-size: 1.28rem;
}

.invoice-create-page .page-section-text {
    font-size: 0.84rem;
    line-height: 1.25;
}

.invoice-create-page .page-toolbar {
    gap: 6px;
}

.invoice-create-page .page-toolbar .btn {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.84rem;
}

.invoice-create-page .form-grid {
    gap: 10px;
}

.invoice-create-page .form-field {
    gap: 4px;
}

.invoice-create-page .form-field label {
    font-size: 0.78rem;
}

.invoice-create-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 10px;
    align-items: start;
}

.invoice-editor,
.invoice-sidebar {
    display: grid;
    gap: 10px;
}

.invoice-editor {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
    align-items: stretch;
}

.invoice-card-setup {
    grid-column: 1;
}

.invoice-card-customer {
    grid-column: 2;
    height: 100%;
}

.invoice-card-lines {
    grid-column: 1 / -1;
}

.invoice-card-actions-wide {
    grid-column: 1 / -1;
}

.invoice-card {
    padding: 12px;
    border-radius: 18px;
}

.invoice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.invoice-card-header-inline {
    align-items: center;
}

.invoice-card-label {
    display: inline-block;
    margin-bottom: 2px;
    color: #5f7492;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.invoice-card h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
    color: #102b4f;
}

.invoice-number-chip {
    min-width: 122px;
    padding: 8px 10px;
    border: 1px solid rgba(16, 43, 79, 0.08);
    border-radius: 14px;
    background: linear-gradient(180deg, #f7fbff 0%, #eff5fd 100%);
}

.invoice-number-chip span {
    display: block;
    margin-bottom: 2px;
    color: #67809d;
    font-size: 0.68rem;
    font-weight: 700;
}

.invoice-number-chip strong {
    font-size: 0.92rem;
    color: #163761;
}

.invoice-toggle-group {
    display: inline-grid;
    grid-auto-flow: column;
    gap: 6px;
    margin-bottom: 8px;
    padding: 4px;
    border-radius: 14px;
    background: #f2f6fb;
}

.invoice-toggle-option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.invoice-toggle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.invoice-toggle-option span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    color: #5f7492;
    font-weight: 700;
    font-size: 0.84rem;
}

.invoice-card-customer .form-grid,
.invoice-card-customer .customer-existing-fields,
.invoice-card-customer .customer-new-fields {
    grid-template-columns: 1fr;
}

.invoice-card-customer .invoice-toggle-group {
    margin-bottom: 6px;
}

.invoice-card-customer .invoice-toggle-option span {
    min-height: 30px;
    padding: 0 10px;
    font-size: 0.78rem;
}

.invoice-card-customer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.invoice-toggle-option input:checked + span {
    background: #fff;
    color: #173a69;
    box-shadow: 0 8px 18px rgba(23, 58, 105, 0.08);
}

.invoice-line-table-shell {
    overflow-x: auto;
}

.invoice-line-table {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
}

.invoice-line-table thead th {
    padding: 0 8px 8px;
    color: #657a96;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.invoice-line-table tbody td {
    padding: 0 8px 8px;
    vertical-align: middle;
}

.invoice-line-row .form-control {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.84rem;
}

.invoice-line-total {
    min-width: 88px;
    text-align: right;
    color: #173a69;
    font-weight: 800;
    font-size: 0.9rem;
}

.invoice-line-actions {
    width: 44px;
    text-align: center;
}

.invoice-remove-row {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: #fcecee;
    color: #d24f5a;
    font-size: 1.4rem;
    line-height: 1;
}

.invoice-tax-shell {
    display: grid;
    gap: 8px;
}

.invoice-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #173a69;
    font-size: 0.88rem;
}

.invoice-switch input {
    width: 16px;
    height: 16px;
}

.invoice-totals-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.invoice-totals-list {
    display: grid;
    gap: 8px;
}

.invoice-totals-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: #58708d;
    font-weight: 700;
    font-size: 0.9rem;
}

.invoice-totals-list strong {
    color: #173a69;
    font-size: 0.92rem;
}

.invoice-total-row {
    padding-top: 8px;
    border-top: 1px solid rgba(16, 43, 79, 0.08);
}

.invoice-total-row strong {
    font-size: 1.18rem;
    color: #0f8b48;
}

.invoice-summary-note,
.invoice-phase-note {
    margin-top: 6px;
    color: #68809a;
    line-height: 1.25;
    font-size: 0.76rem;
}

.invoice-sidebar .invoice-card {
    padding: 10px 12px;
}

.invoice-sidebar .invoice-card-header {
    margin-bottom: 6px;
}

.invoice-sidebar .invoice-card h3 {
    font-size: 0.94rem;
}

.invoice-sidebar .invoice-card-label {
    font-size: 0.66rem;
}

.invoice-sidebar .form-grid {
    gap: 8px;
}

.invoice-sidebar .form-field {
    gap: 3px;
}

.invoice-sidebar .form-control,
.invoice-sidebar .form-select {
    min-height: 32px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 0.84rem;
}

.invoice-sidebar .invoice-tax-shell {
    gap: 6px;
}

.invoice-sidebar .invoice-switch {
    gap: 6px;
    font-size: 0.82rem;
}

.invoice-sidebar .invoice-switch input {
    width: 15px;
    height: 15px;
}

.invoice-sidebar .invoice-totals-list {
    gap: 6px;
}

.invoice-sidebar .invoice-totals-list > div {
    font-size: 0.84rem;
}

.invoice-sidebar .invoice-total-row {
    padding-top: 6px;
}

.invoice-sidebar .invoice-total-row strong {
    font-size: 1.04rem;
}

.invoice-sidebar .invoice-summary-note,
.invoice-sidebar .invoice-phase-note {
    margin-top: 4px;
    font-size: 0.7rem;
    line-height: 1.2;
}

.invoice-service-list {
    display: grid;
    gap: 12px;
}

.invoice-service-list-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid #d9e3f0;
    border-radius: 16px;
    background: #f8fbff;
}

.invoice-service-list-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.invoice-actions-card .form-actions {
    margin-top: 8px;
    gap: 8px;
}

.invoice-card-actions-wide .form-actions {
    margin-top: 8px;
    gap: 8px;
}

.invoice-create-page .invoice-actions-card .btn {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.86rem;
}

.invoice-create-page .invoice-card-actions-wide .btn {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.86rem;
}

.invoice-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.invoice-filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(16, 43, 79, 0.1);
    background: #fff;
    color: #57708d;
    font-weight: 700;
    text-decoration: none;
}

.invoice-filter-chip.is-active {
    color: #fff;
    background: #173a69;
    border-color: #173a69;
}

.invoice-row-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    white-space: nowrap;
}

.invoice-row-actions a,
.invoice-row-delete-button {
    color: #1d59c2;
    font-weight: 700;
    text-decoration: none;
}

.invoice-row-delete-button {
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--danger);
    cursor: pointer;
    font: inherit;
}

.invoice-row-actions a:hover,
.invoice-row-delete-button:hover {
    text-decoration: underline;
}

.invoice-row-action-muted {
    color: #8a98aa;
    font-weight: 700;
}

.invoice-list-page {
    display: grid;
    gap: 0.9rem;
}

.invoice-list-header {
    display: grid;
    gap: 0.85rem;
    padding: 1rem 1.05rem 0.95rem;
    border: 1px solid var(--app-color-border);
    border-radius: var(--app-radius-xl);
    background: var(--app-color-surface);
    box-shadow: var(--app-shadow-card);
}

.invoice-list-header-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.invoice-list-header .page-section-title {
    margin: 0.18rem 0 0.22rem;
    color: #162235;
    font-size: 1.55rem;
    line-height: 1.12;
    letter-spacing: 0;
}

.invoice-list-header .page-section-text {
    max-width: 760px;
    color: var(--app-color-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.invoice-list-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.invoice-list-actions .btn {
    min-height: 38px;
    padding: 0.48rem 0.9rem;
    white-space: nowrap;
}

.invoice-list-header .invoice-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid #e4eaf2;
}

.invoice-list-header .invoice-filter-chip {
    min-height: 36px;
    padding: 0 0.92rem;
    border-color: #d8e0eb;
    background: #ffffff;
    color: #43546b;
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: none;
}

.invoice-list-header .invoice-filter-chip:hover {
    border-color: #bfd0e3;
    background: #f8fbff;
    color: var(--app-color-primary);
}

.invoice-list-header .invoice-filter-chip.is-active {
    border-color: var(--app-color-primary);
    background: var(--app-color-primary);
    color: #ffffff;
}

.invoice-list-table-card {
    padding: 0;
    overflow: hidden;
}

.invoice-list-table-card .table-responsive {
    border-radius: inherit;
}

.invoice-list-table-card .modern-table {
    border-radius: 0;
}

.invoice-list-table-card .modern-table th {
    padding-top: 0.82rem;
    padding-bottom: 0.82rem;
    background: #f8fafc;
    color: #5e6f86;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.invoice-list-table-card .modern-table td {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
    color: #182638;
    border-color: #e3e9f1;
}

.invoice-list-table-card .modern-table tbody tr:hover {
    background: #f8fbff;
}

.invoice-list-table-card .modern-table td:nth-child(5),
.invoice-list-table-card .modern-table td:nth-child(6),
.invoice-list-table-card .modern-table td:nth-child(7),
.invoice-list-table-card .modern-table th:nth-child(5),
.invoice-list-table-card .modern-table th:nth-child(6),
.invoice-list-table-card .modern-table th:nth-child(7) {
    text-align: right;
}

@media (max-width: 1100px) {
    .invoice-list-header-main {
        display: grid;
    }

    .invoice-list-actions {
        justify-content: flex-start;
    }
}

.invoice-print-shell {
    color: #102b4f;
}

.invoice-print-document {
    border: 1px solid #d7e0ec;
    background: #fff;
    min-height: 720px;
}

.invoice-print-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 30px 34px 26px;
    background: linear-gradient(135deg, #102b4f 0%, #174371 100%);
    color: #fff;
}

.invoice-print-company {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.invoice-print-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: 8px;
    background: #fff;
}

.invoice-print-company h1 {
    margin: 0 0 6px;
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
}

.invoice-print-company-meta {
    display: grid;
    gap: 4px;
    color: rgba(255, 255, 255, 0.82);
}

.invoice-print-title {
    min-width: 220px;
    padding: 0;
    text-align: right;
}

.invoice-print-title span {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.invoice-print-title strong {
    display: block;
    margin: 6px 0 10px;
    font-size: 2rem;
    color: #fff;
}

.invoice-print-status {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.invoice-print-status.is-paid {
    color: #0f7a3a;
    background: #dff7e9;
}

.invoice-print-status.is-open {
    color: #9f1239;
    background: #ffe4e9;
}

.invoice-print-info-row,
.invoice-print-summary-row {
    display: grid;
    grid-template-columns: 1fr 0.78fr;
    gap: 24px;
    padding: 26px 34px 0;
}

.invoice-print-info-panel,
.invoice-print-payment-note,
.invoice-print-total-card {
    border: 1px solid #dce4ef;
    border-radius: 14px;
    padding: 18px 20px;
    background: #fbfdff;
}

.invoice-print-info-panel {
    display: grid;
    gap: 7px;
}

.invoice-print-info-panel > strong {
    font-size: 1rem;
    color: #102b4f;
}

.invoice-print-info-panel > span {
    color: #52677f;
}

.invoice-print-detail-panel {
    align-content: start;
    gap: 10px;
}

.invoice-print-detail-line {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: #52677f;
}

.invoice-print-detail-line strong {
    color: #102b4f;
    text-align: right;
}

.invoice-print-meta-label,
.invoice-print-section-title {
    margin-bottom: 12px;
    color: #5b7390;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.invoice-print-table {
    width: 100%;
    border-collapse: collapse;
    margin: 26px 34px 0;
    width: calc(100% - 68px);
    border: 1px solid #dce4ef;
    border-radius: 14px;
    overflow: hidden;
}

.invoice-print-table th,
.invoice-print-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e6edf5;
    text-align: left;
}

.invoice-print-table th {
    color: #5b7390;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #f3f7fc;
}

.invoice-print-table tbody tr:last-child td {
    border-bottom: 0;
}

.invoice-print-summary-row {
    align-items: start;
    padding-bottom: 32px;
}

.invoice-print-payment-note {
    min-height: 190px;
}

.invoice-print-paid-stamp {
    display: inline-flex;
    margin-top: 22px;
    padding: 10px 18px;
    border: 2px solid #16a34a;
    border-radius: 999px;
    color: #15803d;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.invoice-print-total-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    color: #607791;
    font-weight: 700;
}

.invoice-print-total-row strong {
    color: #102b4f;
}

.invoice-print-total-row-grand {
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(16, 43, 79, 0.1);
}

.invoice-print-total-row-grand strong {
    font-size: 1.3rem;
    color: #0f8b48;
}

.invoice-print-total-row-balance {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #eef5ff;
}

@media (max-width: 900px) {
    .invoice-print-hero,
    .invoice-print-info-row,
    .invoice-print-summary-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .invoice-print-title {
        text-align: left;
    }

    .invoice-print-table {
        margin-inline: 18px;
        width: calc(100% - 36px);
    }
}

@media (max-width: 1200px) {
    .invoice-create-grid {
        grid-template-columns: 1fr;
    }

    .invoice-editor {
        grid-template-columns: 1fr;
    }

    .invoice-card-setup,
    .invoice-card-customer,
    .invoice-card-lines {
        grid-column: auto;
    }
}

@media print {
    body.report-page,
    .invoice-print-document,
    .invoice-print-document * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .invoice-print-shell {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .invoice-print-document {
        width: 100% !important;
        min-height: 0 !important;
        border: 1px solid #d7e0ec !important;
        background: #fff !important;
        page-break-inside: avoid !important;
    }

    .invoice-print-hero {
        display: flex !important;
        padding: 22px 28px !important;
        background: #173f6c !important;
        color: #fff !important;
    }

    .invoice-print-company {
        gap: 14px !important;
    }

    .invoice-print-logo {
        width: 62px !important;
        height: 62px !important;
        border-radius: 14px !important;
    }

    .invoice-print-company h1 {
        font-size: 18pt !important;
        color: #fff !important;
    }

    .invoice-print-company-meta {
        color: rgba(255, 255, 255, 0.86) !important;
        font-size: 9.5pt !important;
    }

    .invoice-print-title {
        text-align: right !important;
    }

    .invoice-print-title span {
        color: rgba(255, 255, 255, 0.78) !important;
    }

    .invoice-print-title strong {
        font-size: 24pt !important;
        color: #fff !important;
    }

    .invoice-print-info-row,
    .invoice-print-summary-row {
        display: grid !important;
        grid-template-columns: 1.05fr 0.82fr !important;
        gap: 18px !important;
        padding: 20px 28px 0 !important;
    }

    .invoice-print-info-panel,
    .invoice-print-payment-note,
    .invoice-print-total-card {
        padding: 15px 17px !important;
        border-radius: 12px !important;
        background: #fbfdff !important;
    }

    .invoice-print-table {
        margin: 20px 28px 0 !important;
        width: calc(100% - 56px) !important;
        border-radius: 12px !important;
    }

    .invoice-print-table th,
    .invoice-print-table td {
        padding: 11px 14px !important;
    }

    .invoice-print-table th {
        background: #f3f7fc !important;
    }

    .invoice-print-summary-row {
        padding-bottom: 22px !important;
    }

    .invoice-print-payment-note {
        min-height: 150px !important;
    }

    .invoice-print-paid-stamp {
        border-color: #16a34a !important;
        color: #15803d !important;
        background: #fff !important;
    }

    .invoice-print-total-row-balance {
        background: #eef5ff !important;
    }
}

@media (max-width: 760px) {
    .invoice-card {
        padding: 18px;
        border-radius: 20px;
    }

    .invoice-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .invoice-toggle-group {
        grid-auto-flow: row;
    }
}

@media (max-width: 1400px) {
    .dashboard-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-reference-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-areas:
            "chart chart profit"
            "transactions transactions actions"
            "customers customers premium";
    }
}

@media (max-width: 1100px) {
    .dashboard-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "chart chart"
            "profit actions"
            "transactions transactions"
            "customers premium";
    }
}

.dashboard-page-shell .alert {
    margin-bottom: 0 !important;
}

.dashboard-toolbar {
    justify-content: flex-end;
}

.acct-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
    grid-auto-rows: auto;
    align-items: stretch;
}

.acct-stat-grid {
    display: contents;
    margin: 0;
    gap: 0;
}

.acct-grid-card,
.acct-dashboard-grid > article,
.acct-stat-card,
.acct-panel {
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
}

.acct-kpi-card {
    grid-column: span 3;
}

.acct-card-span-2 {
    grid-column: span 2;
}

.acct-card-span-3 {
    grid-column: span 3;
}

.acct-card-span-4 {
    grid-column: span 4;
}

.acct-card-span-5 {
    grid-column: span 5;
}

.acct-card-span-8 {
    grid-column: span 8;
}

.acct-card-span-12,
.acct-card-span-full {
    grid-column: 1 / -1;
}

.acct-stat-card {
    min-height: 168px;
    padding: 22px 24px;
    justify-content: flex-start;
}

.acct-stat-top {
    margin-bottom: 10px;
}

.acct-stat-card strong {
    margin-bottom: 6px;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-dark);
}

.acct-stat-card small {
    max-width: calc(100% - 88px);
    line-height: 1.5;
}

.acct-stat-icon {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
}

.acct-panel {
    min-height: 0;
    padding: 22px 24px;
}

.acct-panel-header {
    margin-bottom: 14px;
}

.acct-panel-header h2 {
    font-size: 1rem;
}

.acct-panel-header p {
    margin-top: 2px;
}

.acct-panel-chart {
    min-height: 320px;
}

.acct-panel-summary {
    min-height: 320px;
}

.acct-panel-actions,
.acct-panel-table,
.acct-panel-customers,
.acct-premium-card {
    min-height: 220px;
}

.acct-panel-queue {
    min-height: 0;
}

.acct-panel-chart .acct-line-chart,
.acct-panel-summary .acct-profit-donut,
.acct-panel-actions .acct-quick-action-list,
.acct-panel-table .acct-data-table-shell,
.acct-panel-customers .acct-customer-list {
    flex: 1;
    min-height: 0;
}

.acct-line-chart {
    gap: 14px;
}

.acct-chart-canvas {
    padding: 0.15rem 0.55rem 0.1rem 0.1rem;
}

.acct-chart-canvas svg {
    height: 200px;
}

.acct-profit-donut {
    gap: 10px;
}

.acct-profit-donut-ring {
    width: 150px;
    height: 150px;
    margin: 0 auto;
}

.acct-profit-legend {
    gap: 8px;
}

.acct-profit-donut-center strong {
    font-size: 1.45rem;
}

.acct-quick-action-list {
    display: grid;
    gap: 8px;
    align-content: start;
}

.acct-quick-action-item {
    padding: 10px 12px;
    gap: 10px;
}

.acct-quick-action-icon {
    width: 34px;
    height: 34px;
}

.acct-quick-action-icon svg {
    width: 16px;
    height: 16px;
}

.acct-quick-action-copy strong {
    line-height: 1.2;
}

.acct-quick-action-copy small {
    line-height: 1.35;
}

.acct-premium-card {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.acct-premium-copy {
    flex: 1;
}

.acct-premium-card h3 {
    margin-bottom: 0.3rem;
}

.acct-premium-card p {
    margin-bottom: 0.75rem;
    line-height: 1.45;
}

.acct-premium-button {
    margin-top: 12px;
}

.acct-data-table-shell {
    overflow: auto;
}

.acct-data-table th,
.acct-data-table td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.acct-queue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.acct-panel-actions,
.acct-panel-table,
.acct-panel-customers,
.acct-premium-card {
    height: 100%;
}

@media (max-width: 1400px) {
    .acct-kpi-card {
        grid-column: span 6;
    }

    .acct-card-span-8,
    .acct-card-span-5 {
        grid-column: span 12;
    }

    .acct-card-span-4,
    .acct-card-span-3,
    .acct-card-span-2 {
        grid-column: span 6;
    }

}

@media (max-width: 900px) {
    .acct-dashboard-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .acct-kpi-card,
    .acct-card-span-8,
    .acct-card-span-5,
    .acct-card-span-4,
    .acct-card-span-3,
    .acct-card-span-2 {
        grid-column: span 6;
    }

}

@media (max-width: 760px) {
    .dashboard-toolbar {
        justify-content: flex-start;
    }

    .dashboard-summary-grid,
    .dashboard-reference-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "chart"
            "profit"
            "actions"
            "transactions"
            "customers"
            "premium";
    }

    .dashboard-card-chart,
    .dashboard-card-transactions,
    .dashboard-card-profit,
    .dashboard-card-actions,
    .dashboard-card-customers,
    .dashboard-card-premium {
        grid-column: 1 / -1;
    }

    .acct-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .acct-kpi-card,
    .acct-card-span-8,
    .acct-card-span-5,
    .acct-card-span-4,
    .acct-card-span-3,
    .acct-card-span-2,
    .acct-card-span-12,
    .acct-card-span-full {
        grid-column: 1 / -1;
    }
}



/* Final dashboard desktop lock. This comes after responsive rules so the main app opens without scroll. */
@media (min-width: 1201px) {
    .suite-shell:has(.suite-main-dashboard),
    .suite-main-dashboard,
    .suite-main-dashboard .suite-page-body-dashboard {
        height: 100vh !important;
        overflow: hidden !important;
    }

    .suite-page-body-dashboard .dashboard-page-shell {
        height: 100% !important;
        grid-template-rows: 108px minmax(0, 1fr) !important;
    }

    .suite-page-body-dashboard .dashboard-summary-card {
        height: 108px !important;
        padding: 0.75rem 3.9rem 0.7rem 0.9rem !important;
    }

    .suite-page-body-dashboard .dashboard-summary-card .acct-stat-top {
        margin-bottom: 0.45rem !important;
    }

    .suite-page-body-dashboard .dashboard-summary-card .acct-stat-top span {
        font-size: 0.82rem !important;
    }

    .suite-page-body-dashboard .dashboard-summary-card strong {
        margin-bottom: 0.38rem !important;
        font-size: 1.28rem !important;
    }

    .suite-page-body-dashboard .dashboard-summary-card small {
        font-size: 0.72rem !important;
        line-height: 1.15 !important;
    }

    .suite-page-body-dashboard .dashboard-summary-card .acct-stat-delta {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.78rem !important;
    }

    .suite-page-body-dashboard .dashboard-summary-card .acct-stat-icon {
        right: 0.8rem !important;
        bottom: 0.72rem !important;
        width: 38px !important;
        height: 38px !important;
    }

    .suite-page-body-dashboard .dashboard-summary-grid {
        grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr) minmax(0, 0.95fr) minmax(300px, 0.92fr) !important;
    }

    .suite-page-body-dashboard .dashboard-reference-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-template-rows: minmax(0, 0.48fr) minmax(0, 0.52fr) !important;
        grid-template-areas:
            "chart chart actions"
            "profit transactions customers" !important;
    }

    .suite-page-body-dashboard .dashboard-card-chart {
        grid-area: chart !important;
    }

    .suite-page-body-dashboard .dashboard-card-transactions {
        grid-area: transactions !important;
    }

    .suite-page-body-dashboard .dashboard-card-customers {
        grid-area: customers !important;
    }

    .suite-page-body-dashboard .dashboard-card-profit {
        grid-area: profit !important;
    }

    .suite-page-body-dashboard .dashboard-card-actions {
        grid-area: actions !important;
    }

    .suite-page-body-dashboard .dashboard-card-premium {
        display: none !important;
    }

    .suite-page-body-dashboard .acct-dashboard-pie-pair {
        height: calc(100% - 1.75rem) !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: minmax(0, 1fr) !important;
        gap: 0.5rem !important;
    }

    .suite-page-body-dashboard .acct-dashboard-pie-card {
        grid-template-columns: minmax(0, 1fr) 92px !important;
        padding: 0.42rem 0.55rem !important;
    }

    .suite-page-body-dashboard .acct-dashboard-pie-ring {
        width: 86px !important;
        height: 86px !important;
        box-shadow: inset 0 0 0 15px #fff !important;
    }

    .suite-page-body-dashboard .acct-dashboard-pie-total span {
        font-size: 0.72rem !important;
    }

    .suite-page-body-dashboard .acct-dashboard-pie-total strong {
        font-size: 1.15rem !important;
    }

    .suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list {
        height: calc(100% - 1.55rem) !important;
        gap: 0.14rem !important;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring {
        width: 70px !important;
        height: 70px !important;
        padding: 12px !important;
    }

    .suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
        min-height: 27px !important;
        padding-top: 0.18rem !important;
        padding-bottom: 0.18rem !important;
    }

    .suite-page-body-dashboard .dashboard-card-profit {
        grid-template-rows: auto auto minmax(0, 1fr) !important;
    }

    .suite-page-body-dashboard .acct-profit-summary-kpis {
        gap: 0.2rem !important;
        margin-bottom: 0.2rem !important;
    }

    .suite-page-body-dashboard .acct-profit-summary-kpis > div {
        padding: 0.2rem 0.28rem !important;
    }

    .suite-page-body-dashboard .acct-profit-summary-kpis span {
        font-size: 0.48rem !important;
    }

    .suite-page-body-dashboard .acct-profit-summary-kpis strong {
        font-size: 0.58rem !important;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut {
        gap: 0.12rem !important;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-legend {
        gap: 0.5rem !important;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-center span,
    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-center small {
        font-size: 0.52rem !important;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-center strong {
        font-size: 0.8rem !important;
    }

    .suite-page-body-dashboard .dashboard-card-transactions .acct-empty-state,
    .suite-page-body-dashboard .dashboard-card-customers .acct-empty-state {
        min-height: 0 !important;
        padding: 0 !important;
    }

    .suite-page-body-dashboard .acct-dashboard-pie-ring,
    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring {
        position: relative !important;
        overflow: visible !important;
        transform: perspective(240px) rotateX(14deg) !important;
        filter: drop-shadow(0 12px 8px rgba(15, 35, 65, 0.16));
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring {
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22) !important;
        z-index: 1;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring::before {
        content: "";
        position: absolute;
        left: 5%;
        right: 5%;
        bottom: -11px;
        height: 26px;
        border-radius: 0 0 999px 999px;
        background: linear-gradient(90deg, #1d57bb 0 50%, #2b9655 50% 100%);
        opacity: 0.92;
        z-index: -1;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring::after {
        content: "";
        position: absolute;
        inset: 5px;
        border-radius: 50%;
        background: radial-gradient(circle at 30% 22%, rgba(255,255,255,0.7), rgba(255,255,255,0.16) 34%, rgba(255,255,255,0) 62%);
        pointer-events: none;
        z-index: 1;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-center {
        position: relative;
        z-index: 2;
        transform: rotateX(-14deg);
    }

    /* Replace the exaggerated bowl effect with a cleaner 3D pie style. */
    .suite-page-body-dashboard .acct-dashboard-pie-ring {
        position: relative !important;
        overflow: visible !important;
        border-radius: 50% / 42% !important;
        transform: none !important;
        background: conic-gradient(var(--pie-color) var(--pie-fill), var(--pie-bg) 0) !important;
        box-shadow:
            inset 0 9px 16px rgba(255, 255, 255, 0.62),
            inset 0 -9px 13px color-mix(in srgb, var(--pie-color), #10223f 18%),
            0 8px 12px rgba(15, 35, 65, 0.13) !important;
        filter: none !important;
    }

    .suite-page-body-dashboard .acct-dashboard-pie-ring span {
        display: none !important;
    }

    .suite-page-body-dashboard .acct-dashboard-pie-ring::before {
        content: "" !important;
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        bottom: -10px !important;
        height: 20px !important;
        border-radius: 0 0 999px 999px !important;
        background: linear-gradient(180deg, color-mix(in srgb, var(--pie-color), #ffffff 6%), color-mix(in srgb, var(--pie-color), #10223f 32%)) !important;
        opacity: 0.9 !important;
        z-index: -1 !important;
    }

    .suite-page-body-dashboard .acct-dashboard-pie-ring::after {
        content: var(--pie-label) !important;
        position: absolute !important;
        inset: 0 !important;
        display: grid !important;
        place-items: center !important;
        border-radius: 50% / 42% !important;
        background: radial-gradient(circle at 32% 22%, rgba(255,255,255,0.58), rgba(255,255,255,0.16) 32%, rgba(255,255,255,0) 60%) !important;
        color: #06244a !important;
        font-size: 0.78rem !important;
        font-weight: 900 !important;
        pointer-events: none !important;
        z-index: 2 !important;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring {
        width: 96px !important;
        height: 76px !important;
        padding: 13px !important;
        border-radius: 50% / 42% !important;
        transform: none !important;
        filter: none !important;
        box-shadow:
            inset 0 8px 14px rgba(255, 255, 255, 0.48),
            0 8px 12px rgba(15, 35, 65, 0.13) !important;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring::before {
        left: 0 !important;
        right: 0 !important;
        bottom: -10px !important;
        height: 20px !important;
        border-radius: 0 0 999px 999px !important;
        opacity: 0.9 !important;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-ring::after {
        inset: 0 !important;
        border-radius: 50% / 42% !important;
    }

    .suite-page-body-dashboard .dashboard-card-profit .acct-profit-donut-center {
        border-radius: 50% / 42% !important;
        transform: none !important;
    }
}

/* Final dashboard winner block. Keep this at the end of the file. */
.suite-page-body-dashboard .dashboard-page-shell {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: 0.55rem !important;
    overflow: hidden !important;
    padding-bottom: 0.35rem !important;
}

.suite-page-body-dashboard .dashboard-page-head {
    margin-bottom: 0 !important;
}

.suite-page-body-dashboard .dashboard-page-head h1 {
    font-size: 1.18rem !important;
    line-height: 1.15 !important;
    margin: 0 !important;
}

.suite-page-body-dashboard .dashboard-page-head p {
    margin: 0.12rem 0 0 !important;
    font-size: 0.76rem !important;
}

.suite-page-body-dashboard .dashboard-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.58rem !important;
    margin: 0 !important;
}

.suite-page-body-dashboard .dashboard-summary-card {
    min-height: 112px !important;
    padding: 0.82rem 0.9rem !important;
    border-radius: 14px !important;
}

.suite-page-body-dashboard .dashboard-summary-card strong {
    font-size: 1.42rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-icon {
    width: 42px !important;
    height: 42px !important;
    right: 0.8rem !important;
    bottom: 0.72rem !important;
}

.suite-page-body-dashboard .dashboard-reference-grid {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(330px, 0.95fr) !important;
    grid-template-rows: minmax(245px, 0.52fr) minmax(205px, 0.48fr) !important;
    grid-template-areas:
        "chart chart actions"
        "profit transactions customers" !important;
    gap: 0.58rem !important;
    overflow: hidden !important;
}

.suite-page-body-dashboard .dashboard-card-chart { grid-area: chart !important; }
.suite-page-body-dashboard .dashboard-card-actions { grid-area: actions !important; }
.suite-page-body-dashboard .dashboard-card-profit { grid-area: profit !important; }
.suite-page-body-dashboard .dashboard-card-transactions { grid-area: transactions !important; }
.suite-page-body-dashboard .dashboard-card-customers { grid-area: customers !important; }
.suite-page-body-dashboard .dashboard-card-premium { display: none !important; }

.suite-page-body-dashboard .dashboard-panel-card {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0.72rem 0.78rem !important;
    border-radius: 14px !important;
}

.suite-page-body-dashboard .acct-panel-header {
    margin-bottom: 0.55rem !important;
}

.suite-page-body-dashboard .acct-panel-header h2 {
    font-size: 0.92rem !important;
    line-height: 1.05 !important;
    margin: 0 !important;
}

.suite-page-body-dashboard .acct-panel-header p,
.suite-page-body-dashboard .acct-panel-header span {
    font-size: 0.72rem !important;
    line-height: 1.15 !important;
}

.suite-page-body-dashboard .acct-overview-chart-pair {
    height: calc(100% - 2.2rem) !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
}

.suite-page-body-dashboard .acct-overview-chart-card {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 0.45rem !important;
    padding: 0.9rem !important;
    border-radius: 13px !important;
    overflow: hidden !important;
    position: relative !important;
}

.suite-page-body-dashboard .acct-overview-chart-card::before {
    content: "" !important;
    position: absolute !important;
    left: 1rem !important;
    right: 1rem !important;
    top: 46% !important;
    height: 1px !important;
    background: linear-gradient(90deg, transparent, rgba(71, 95, 125, 0.16), transparent) !important;
}

.suite-page-body-dashboard .acct-overview-chart-card strong {
    font-size: 1.42rem !important;
    line-height: 1.1 !important;
}

.suite-page-body-dashboard .acct-overview-bar-shell {
    align-self: end !important;
    gap: 0.38rem !important;
    width: 100% !important;
}

.suite-page-body-dashboard .acct-overview-bar-track {
    height: 13px !important;
    border-radius: 999px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list {
    height: calc(100% - 2rem) !important;
    display: grid !important;
    grid-template-rows: repeat(8, minmax(0, 1fr)) !important;
    gap: 0.28rem !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    min-height: 0 !important;
    height: 100% !important;
    padding: 0.28rem 0.48rem !important;
    border-radius: 10px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-icon {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item strong {
    font-size: 0.74rem !important;
    line-height: 1.05 !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item small {
    font-size: 0.64rem !important;
    line-height: 1.05 !important;
}

.suite-page-body-dashboard .dashboard-card-profit {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
}

.suite-page-body-dashboard .acct-profit-summary-kpis {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
    margin-bottom: 0.58rem !important;
}

.suite-page-body-dashboard .acct-profit-summary-kpis > div {
    min-height: 42px !important;
    padding: 0.36rem 0.48rem !important;
    border-radius: 10px !important;
}

.suite-page-body-dashboard .acct-profit-balance-chart {
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: repeat(2, 1fr) auto !important;
    gap: 0.62rem !important;
    padding-top: 0.25rem !important;
}

.suite-page-body-dashboard .acct-profit-balance-row {
    display: grid !important;
    grid-template-columns: 76px minmax(0, 1fr) 72px !important;
    align-items: center !important;
    gap: 0.55rem !important;
}

.suite-page-body-dashboard .acct-profit-balance-row div {
    height: 14px !important;
    border-radius: 999px !important;
    background: #e7edf5 !important;
}

.suite-page-body-dashboard .acct-profit-net-strip {
    min-height: 54px !important;
    padding: 0.58rem 0.72rem !important;
    border-radius: 12px !important;
    align-items: center !important;
}

.suite-page-body-dashboard .dashboard-card-transactions,
.suite-page-body-dashboard .dashboard-card-customers {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
}

.suite-page-body-dashboard .dashboard-card-transactions .acct-empty-state,
.suite-page-body-dashboard .dashboard-card-customers .acct-empty-state {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    place-items: center !important;
    padding: 0.65rem !important;
    border-radius: 12px !important;
    background:
        linear-gradient(90deg, rgba(226, 234, 244, 0.68) 1px, transparent 1px),
        linear-gradient(180deg, rgba(226, 234, 244, 0.68) 1px, transparent 1px);
    background-size: 36px 36px;
    color: #5d708d !important;
    font-size: 0.8rem !important;
}

/* Clean layout system: this is the single winning layer for the app shell and dashboard. */
:root {
    --app-sidebar-width: 286px;
    --app-topbar-height: 78px;
    --app-footer-height: 30px;
    --app-page-gap: 0.58rem;
    --app-card-radius: 14px;
    --app-card-border: #cfd9e6;
    --app-card-shadow: 0 16px 34px rgba(15, 35, 65, 0.08);
}

html,
body {
    height: 100%;
}

body {
    overflow: hidden;
}

.suite-shell {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.suite-sidebar {
    width: var(--app-sidebar-width);
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.suite-sidebar-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.suite-sidebar-bottom {
    flex: 0 0 auto;
}

.suite-main {
    height: 100vh;
    min-height: 0;
    display: grid;
    grid-template-rows: var(--app-topbar-height) minmax(0, 1fr) var(--app-footer-height);
    overflow: hidden;
}

.suite-topbar {
    min-height: 0;
}

.suite-page-body {
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.1rem 0.75rem;
}

.suite-footer {
    height: var(--app-footer-height);
    min-height: var(--app-footer-height);
    padding: 0 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--app-card-border);
    background: #eef4fb;
    font-size: 0.78rem;
    color: #667892;
}

.content-card,
.section-stat-card {
    border: 1px solid var(--app-card-border);
    border-radius: var(--app-card-radius);
    background: #fff;
    box-shadow: var(--app-card-shadow);
}

.suite-page-body-dashboard {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    gap: var(--app-page-gap) !important;
    overflow: hidden !important;
    padding: 0.72rem 0.86rem 0.58rem !important;
}

.suite-page-body-dashboard .dashboard-header {
    margin: 0 !important;
    min-height: 0 !important;
}

.suite-page-body-dashboard .dashboard-header .page-section-title {
    font-size: 1.16rem !important;
    line-height: 1.1 !important;
    margin: 0 !important;
}

.suite-page-body-dashboard .dashboard-header .page-section-text {
    font-size: 0.74rem !important;
    line-height: 1.15 !important;
    margin: 0.12rem 0 0 !important;
}

.suite-page-body-dashboard .dashboard-page-shell {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: 118px minmax(0, 1fr) !important;
    gap: var(--app-page-gap) !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.suite-page-body-dashboard .dashboard-summary-grid {
    height: 118px !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: var(--app-page-gap) !important;
    margin: 0 !important;
}

.suite-page-body-dashboard .dashboard-summary-card {
    min-height: 0 !important;
    height: 118px !important;
    padding: 0.84rem 0.9rem !important;
    border-radius: var(--app-card-radius) !important;
    overflow: hidden !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-top span {
    font-size: 0.75rem !important;
    letter-spacing: 0.03em !important;
}

.suite-page-body-dashboard .dashboard-summary-card strong {
    margin-top: 0.92rem !important;
    font-size: 1.42rem !important;
    line-height: 1 !important;
}

.suite-page-body-dashboard .dashboard-summary-card small {
    font-size: 0.69rem !important;
    line-height: 1.1 !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-icon {
    width: 42px !important;
    height: 42px !important;
    right: 0.78rem !important;
    bottom: 0.72rem !important;
}

.suite-page-body-dashboard .dashboard-reference-grid {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.04fr) minmax(330px, 0.92fr) !important;
    grid-template-rows: minmax(232px, 0.49fr) minmax(218px, 0.51fr) !important;
    grid-template-areas:
        "chart chart actions"
        "profit transactions customers" !important;
    gap: var(--app-page-gap) !important;
    overflow: hidden !important;
}

.suite-page-body-dashboard .dashboard-card-chart { grid-area: chart !important; }
.suite-page-body-dashboard .dashboard-card-actions { grid-area: actions !important; }
.suite-page-body-dashboard .dashboard-card-profit { grid-area: profit !important; }
.suite-page-body-dashboard .dashboard-card-transactions { grid-area: transactions !important; }
.suite-page-body-dashboard .dashboard-card-customers { grid-area: customers !important; }
.suite-page-body-dashboard .dashboard-card-premium { display: none !important; }

.suite-page-body-dashboard .dashboard-panel-card {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 0.66rem 0.72rem !important;
    border-radius: var(--app-card-radius) !important;
}

.suite-page-body-dashboard .acct-panel-header {
    min-height: 0 !important;
    margin-bottom: 0.5rem !important;
    align-items: flex-start !important;
}

.suite-page-body-dashboard .acct-panel-header h2 {
    font-size: 0.84rem !important;
    line-height: 1.05 !important;
    margin: 0 !important;
}

.suite-page-body-dashboard .acct-panel-header p,
.suite-page-body-dashboard .acct-panel-header a {
    font-size: 0.68rem !important;
    line-height: 1.1 !important;
}

.suite-page-body-dashboard .acct-panel-toggle {
    padding: 0.32rem 0.58rem !important;
    font-size: 0.68rem !important;
}

.suite-page-body-dashboard .acct-overview-chart-pair {
    height: calc(100% - 1.9rem) !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.62rem !important;
}

.suite-page-body-dashboard .acct-overview-chart-card {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    gap: 0.35rem !important;
    padding: 0.84rem !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: inset 0 0 0 1px rgba(199, 212, 228, 0.78) !important;
}

.suite-page-body-dashboard .acct-overview-chart-card::before {
    display: none !important;
}

.suite-page-body-dashboard .acct-overview-chart-card span,
.suite-page-body-dashboard .acct-profit-summary-kpis span,
.suite-page-body-dashboard .acct-profit-balance-row span,
.suite-page-body-dashboard .acct-profit-net-strip span {
    color: #526985 !important;
    font-size: 0.66rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em !important;
    text-transform: uppercase !important;
}

.suite-page-body-dashboard .acct-overview-chart-card strong {
    display: block !important;
    margin-top: 0.18rem !important;
    font-size: 1.45rem !important;
    line-height: 1 !important;
    color: #06244a !important;
}

.suite-page-body-dashboard .acct-overview-chart-card small {
    font-size: 0.67rem !important;
    color: #60718c !important;
}

.suite-page-body-dashboard .acct-overview-bar-shell {
    align-self: end !important;
    display: grid !important;
    gap: 0.4rem !important;
    width: 100% !important;
}

.suite-page-body-dashboard .acct-overview-bar-track {
    height: 16px !important;
    border-radius: 999px !important;
    background: #e7edf5 !important;
    box-shadow: inset 0 1px 2px rgba(15, 35, 65, 0.12) !important;
    overflow: hidden !important;
}

.suite-page-body-dashboard .acct-overview-chart-card.income .acct-overview-bar-track {
    background: #e3f2e9 !important;
}

.suite-page-body-dashboard .acct-overview-bar-track span {
    display: block !important;
    height: 100% !important;
    border-radius: inherit !important;
}

.suite-page-body-dashboard .acct-overview-chart-card.income .acct-overview-bar-track span {
    background: linear-gradient(90deg, #43b96f, #8bd8a8) !important;
}

.suite-page-body-dashboard .acct-overview-chart-card.expense .acct-overview-bar-track span {
    background: linear-gradient(90deg, #2d6cdf, #82a9f5) !important;
}

.suite-page-body-dashboard .acct-overview-bar-shell b {
    color: #526985 !important;
    font-size: 0.7rem !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list {
    height: calc(100% - 1.75rem) !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: repeat(8, minmax(0, 1fr)) !important;
    gap: 0.28rem !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    min-height: 0 !important;
    height: 100% !important;
    padding: 0.28rem 0.48rem !important;
    border-radius: 10px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-icon {
    width: 29px !important;
    min-width: 29px !important;
    height: 29px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item strong {
    font-size: 0.7rem !important;
    line-height: 1.05 !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item small {
    font-size: 0.59rem !important;
    line-height: 1.05 !important;
}

.suite-page-body-dashboard .dashboard-card-profit {
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) !important;
}

.suite-page-body-dashboard .acct-profit-summary-kpis {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
    margin-bottom: 0.5rem !important;
}

.suite-page-body-dashboard .acct-profit-summary-kpis > div {
    min-height: 42px !important;
    padding: 0.34rem 0.48rem !important;
    border-radius: 10px !important;
    background: #f8fbff !important;
    border: 1px solid #d6e0ed !important;
}

.suite-page-body-dashboard .acct-profit-summary-kpis strong {
    display: block !important;
    margin-top: 0.12rem !important;
    font-size: 0.78rem !important;
    color: #06244a !important;
}

.suite-page-body-dashboard .acct-profit-balance-chart {
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) auto !important;
    align-content: stretch !important;
    gap: 0.55rem !important;
}

.suite-page-body-dashboard .acct-profit-balance-row {
    display: grid !important;
    grid-template-columns: 72px minmax(0, 1fr) 76px !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

.suite-page-body-dashboard .acct-profit-balance-row div {
    height: 14px !important;
    overflow: hidden !important;
    border-radius: 999px !important;
    background: #e7edf5 !important;
}

.suite-page-body-dashboard .acct-profit-balance-row i {
    display: block !important;
    height: 100% !important;
    min-width: 0 !important;
    border-radius: inherit !important;
}

.suite-page-body-dashboard .acct-profit-balance-row.income i {
    background: linear-gradient(90deg, #43b96f, #8bd8a8) !important;
}

.suite-page-body-dashboard .acct-profit-balance-row.expense i {
    background: linear-gradient(90deg, #2d6cdf, #82a9f5) !important;
}

.suite-page-body-dashboard .acct-profit-balance-row strong {
    text-align: right !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    color: #06244a !important;
}

.suite-page-body-dashboard .acct-profit-net-strip {
    min-height: 52px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 0.45rem !important;
    padding: 0.56rem 0.65rem !important;
    border-radius: 12px !important;
    border: 1px solid #d6e0ed !important;
    background: #f8fbff !important;
}

.suite-page-body-dashboard .acct-profit-net-strip strong {
    font-size: 0.88rem !important;
    color: #06244a !important;
}

.suite-page-body-dashboard .dashboard-card-transactions,
.suite-page-body-dashboard .dashboard-card-customers {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
}

.suite-page-body-dashboard .dashboard-card-transactions .acct-empty-state,
.suite-page-body-dashboard .dashboard-card-customers .acct-empty-state {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    place-items: start !important;
    padding: 0.1rem 0 !important;
    background: transparent !important;
    color: #5d708d !important;
    font-size: 0.72rem !important;
}

@media (max-width: 1300px) {
    body {
        overflow: auto;
    }

    .suite-shell,
    .suite-main {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .suite-page-body,
    .suite-page-body-dashboard {
        overflow: visible !important;
    }

    .suite-page-body-dashboard .dashboard-page-shell,
    .suite-page-body-dashboard .dashboard-reference-grid {
        height: auto !important;
        overflow: visible !important;
    }

    .suite-page-body-dashboard .dashboard-summary-grid {
        height: auto !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .suite-page-body-dashboard .dashboard-reference-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-template-rows: auto !important;
        grid-template-areas:
            "chart chart"
            "actions actions"
            "profit transactions"
            "customers customers" !important;
    }

    .suite-page-body-dashboard .dashboard-panel-card {
        min-height: 220px !important;
    }
}

/* Final shell alignment fix: keep sidebar and content in one Data Entry-style grid. */
@media (min-width: 1101px) {
    :root {
        --app-sidebar-width: 282px;
    }

    body {
        overflow: hidden !important;
    }

    .suite-shell {
        height: 100vh !important;
        min-height: 100vh !important;
        display: grid !important;
        grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr) !important;
        overflow: hidden !important;
        background: #edf3fb !important;
    }

    .suite-sidebar {
        position: relative !important;
        top: auto !important;
        grid-column: 1 !important;
        width: var(--app-sidebar-width) !important;
        min-width: var(--app-sidebar-width) !important;
        max-width: var(--app-sidebar-width) !important;
        height: 100vh !important;
        min-height: 100vh !important;
        overflow: hidden !important;
        z-index: 30 !important;
    }

    .suite-main {
        grid-column: 2 !important;
        width: 100% !important;
        min-width: 0 !important;
        margin-left: 0 !important;
        height: 100vh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .suite-topbar,
    .suite-page-body,
    .suite-footer {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
    }
}

.suite-profile-avatar {
    overflow: hidden;
}

.suite-profile-avatar img,
.user-picture-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-picture-field {
    margin-bottom: 0.25rem;
}

.user-picture-editor {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-picture-preview {
    width: 74px;
    height: 74px;
    min-width: 74px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #245ec4;
    color: #fff;
    font-weight: 800;
    border: 3px solid #e8f0fb;
    box-shadow: 0 10px 24px rgba(21, 54, 98, 0.16);
}

/* User profile form correction: keep fields, actions, and danger zone in natural order. */
.user-profile-page {
    height: auto !important;
    min-height: 100% !important;
    display: grid !important;
    grid-template-rows: auto auto auto !important;
    align-content: start !important;
}

.user-profile-form {
    display: block !important;
    min-height: auto !important;
    overflow: visible !important;
}

.user-profile-grid {
    max-width: 980px !important;
    overflow: visible !important;
}

.user-profile-actions {
    margin-top: 0.9rem !important;
    flex-wrap: wrap !important;
}

.user-profile-danger {
    position: static !important;
}

/* User profile desktop lock: one visible page, no vertical scroll. */
@media (min-width: 1101px) {
    .suite-page-body:has(.user-profile-page) {
        overflow: hidden !important;
        padding: 0.68rem 0.85rem 0.45rem !important;
    }

    .user-profile-page {
        height: 100% !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-rows: 108px minmax(0, 1fr) 84px !important;
        gap: 0.52rem !important;
        overflow: hidden !important;
    }

    .user-profile-hero {
        min-height: 0 !important;
        padding: 0.72rem 0.85rem !important;
        align-items: center !important;
    }

    .user-profile-hero h1 {
        font-size: 1.18rem !important;
        margin: 0.05rem 0 0.12rem !important;
    }

    .user-profile-hero p,
    .user-profile-meta {
        font-size: 0.78rem !important;
        line-height: 1.15 !important;
    }

    .user-profile-form {
        min-height: 0 !important;
        display: grid !important;
        grid-template-rows: minmax(0, 1fr) 44px !important;
        gap: 0.4rem !important;
        padding: 0.64rem 0.82rem !important;
        overflow: hidden !important;
    }

    .user-profile-grid {
        max-width: none !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 0.4rem 0.7rem !important;
        overflow: hidden !important;
    }

    .user-profile-grid .full-span,
    .user-picture-field {
        grid-column: 1 / -1 !important;
    }

    .user-picture-editor {
        gap: 0.7rem !important;
    }

    .user-picture-preview {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
        border-width: 2px !important;
        font-size: 0.9rem !important;
    }

    .user-profile-page label {
        margin-bottom: 0.12rem !important;
        font-size: 0.72rem !important;
        line-height: 1 !important;
    }

    .user-profile-page .form-control {
        min-height: 34px !important;
        height: 34px !important;
        padding: 0.32rem 0.72rem !important;
        border-radius: 10px !important;
        font-size: 0.88rem !important;
    }

    .user-profile-company-select {
        height: 54px !important;
        min-height: 54px !important;
        padding-top: 0.2rem !important;
        padding-bottom: 0.2rem !important;
    }

    .user-profile-toggle {
        align-content: center !important;
    }

    .user-profile-switch span {
        width: 42px !important;
        height: 24px !important;
    }

    .user-profile-switch span::after {
        width: 18px !important;
        height: 18px !important;
    }

    .user-profile-switch input:checked + span::after {
        transform: translateX(18px) !important;
    }

    .user-profile-actions {
        margin-top: 0 !important;
        align-items: center !important;
    }

    .user-profile-actions .btn {
        min-height: 38px !important;
        padding-top: 0.42rem !important;
        padding-bottom: 0.42rem !important;
    }

    .user-profile-danger {
        min-height: 0 !important;
        padding: 0.62rem 0.82rem !important;
        align-items: center !important;
        overflow: hidden !important;
    }

    .user-profile-danger h2 {
        font-size: 0.9rem !important;
        margin: 0.05rem 0 0.08rem !important;
    }

    .user-profile-danger p {
        font-size: 0.76rem !important;
        line-height: 1.15 !important;
    }

    .user-profile-danger .btn {
        min-height: 38px !important;
        padding: 0.42rem 0.9rem !important;
        white-space: nowrap !important;
    }
}

/* User edit final desktop fit: one workspace page, no scrolling. */
@media (min-width: 900px) {
    html:has(.user-profile-page),
    body:has(.user-profile-page) {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

    .suite-main:has(.user-profile-page) {
        height: 100vh !important;
        max-height: 100vh !important;
        grid-template-rows: 78px minmax(0, 1fr) 30px !important;
        overflow: hidden !important;
    }

    .suite-page-body:has(.user-profile-page) {
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0.55rem 0.85rem 0.4rem !important;
    }

    .suite-footer:has(+ *) {
        min-height: var(--app-footer-height);
    }

    .user-profile-page {
        height: 100% !important;
        max-height: 100% !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-rows: 82px minmax(0, 1fr) 62px !important;
        gap: 0.42rem !important;
        overflow: hidden !important;
    }

    .user-profile-hero {
        min-height: 0 !important;
        padding: 0.52rem 0.78rem !important;
        border-radius: 14px !important;
        align-items: center !important;
    }

    .user-profile-hero h1 {
        font-size: 1.08rem !important;
        line-height: 1.05 !important;
        margin: 0.02rem 0 0.08rem !important;
    }

    .user-profile-hero p {
        margin: 0 0 0.14rem !important;
        font-size: 0.76rem !important;
        line-height: 1.05 !important;
    }

    .user-profile-meta {
        gap: 0.45rem !important;
        font-size: 0.74rem !important;
        line-height: 1 !important;
    }

    .user-profile-status {
        padding: 0.34rem 0.7rem !important;
        font-size: 0.72rem !important;
    }

    .user-profile-form {
        min-height: 0 !important;
        height: 100% !important;
        max-height: 100% !important;
        display: grid !important;
        grid-template-rows: minmax(0, 1fr) 38px !important;
        gap: 0.34rem !important;
        padding: 0.52rem 0.72rem !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .user-profile-grid {
        max-width: none !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) !important;
        grid-auto-rows: min-content !important;
        gap: 0.32rem 0.62rem !important;
        align-content: start !important;
        overflow: hidden !important;
    }

    .user-profile-grid .full-span {
        grid-column: 1 / -1 !important;
    }

    .user-picture-field {
        grid-column: 1 / -1 !important;
        margin: 0 !important;
    }

    .user-picture-field > label {
        display: none !important;
    }

    .user-picture-editor {
        min-height: 44px !important;
        gap: 0.65rem !important;
    }

    .user-picture-preview {
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        border-width: 2px !important;
        font-size: 0.82rem !important;
        box-shadow: none !important;
    }

    .user-picture-editor input[type="file"] {
        max-width: 330px !important;
    }

    .user-picture-editor small,
    .user-profile-page .text-danger {
        font-size: 0.66rem !important;
        line-height: 1 !important;
    }

    .user-profile-page .form-group {
        margin: 0 !important;
        min-height: 0 !important;
    }

    .user-profile-page label {
        margin: 0 0 0.08rem !important;
        font-size: 0.68rem !important;
        line-height: 1 !important;
    }

    .user-profile-page .form-control {
        min-height: 31px !important;
        height: 31px !important;
        padding: 0.25rem 0.62rem !important;
        border-radius: 9px !important;
        font-size: 0.84rem !important;
        line-height: 1.1 !important;
    }

    .user-profile-company-select {
        height: 48px !important;
        min-height: 48px !important;
        padding: 0.12rem 0.55rem !important;
    }

    .user-profile-toggle {
        display: grid !important;
        align-content: end !important;
    }

    .user-profile-switch {
        min-height: 31px !important;
        gap: 0.45rem !important;
    }

    .user-profile-switch span {
        width: 38px !important;
        height: 21px !important;
    }

    .user-profile-switch span::after {
        width: 15px !important;
        height: 15px !important;
    }

    .user-profile-switch input:checked + span::after {
        transform: translateX(17px) !important;
    }

    .user-password-panel {
        border: 1px solid #d7e2f0 !important;
        border-radius: 10px !important;
        padding: 0 !important;
        background: #f8fbff !important;
        overflow: hidden !important;
    }

    .user-password-panel summary {
        min-height: 31px !important;
        display: flex !important;
        align-items: center !important;
        padding: 0 0.62rem !important;
        cursor: pointer !important;
        font-size: 0.76rem !important;
        font-weight: 800 !important;
        color: #0b2d56 !important;
        list-style-position: inside !important;
    }

    .user-password-fields {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.35rem !important;
        padding: 0.35rem !important;
    }

    .user-profile-actions {
        min-height: 0 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        overflow: hidden !important;
    }

    .user-profile-actions .btn,
    .user-profile-danger .btn {
        min-height: 34px !important;
        padding: 0.36rem 0.78rem !important;
        font-size: 0.82rem !important;
        border-radius: 10px !important;
        white-space: nowrap !important;
    }

    .user-profile-danger {
        min-height: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.7rem !important;
        padding: 0.44rem 0.72rem !important;
        border-radius: 14px !important;
        overflow: hidden !important;
    }

    .user-profile-danger .eyebrow {
        font-size: 0.66rem !important;
        line-height: 1 !important;
    }

    .user-profile-danger h2 {
        font-size: 0.82rem !important;
        line-height: 1 !important;
        margin: 0.04rem 0 !important;
    }

    .user-profile-danger p {
        margin: 0 !important;
        font-size: 0.72rem !important;
        line-height: 1.05 !important;
    }
}

/* Final app-wide desktop frame: every accounting page fits the visible shell. */
@media (min-width: 900px) {
    html,
    body {
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

    .suite-shell {
        height: 100vh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .suite-main {
        height: 100vh !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-rows: var(--app-topbar-height) minmax(0, 1fr) var(--app-footer-height) !important;
        overflow: hidden !important;
    }

    .suite-page-body {
        height: 100% !important;
        min-height: 0 !important;
        overflow: hidden !important;
        padding: 0.68rem 0.85rem 0.42rem !important;
    }

    .suite-page-body:not(.suite-page-body-dashboard) {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.55rem !important;
    }

    .suite-footer,
    .report-page-footer,
    .auth-footer,
    .module-select-footer {
        min-height: var(--app-footer-height) !important;
        height: var(--app-footer-height) !important;
        padding: 0 1.1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.25rem !important;
        border-top: 1px solid #d5e0ee !important;
        background: #eef4fb !important;
        color: #667892 !important;
        font-size: 0.78rem !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    .suite-footer {
        justify-content: space-between !important;
    }

    .suite-footer-links {
        display: flex !important;
        align-items: center !important;
        gap: 1.2rem !important;
    }

    .suite-footer a,
    .report-page-footer a,
    .auth-footer a,
    .module-select-footer a {
        color: #667892 !important;
        text-decoration: none !important;
    }

    .page-section-header {
        flex: 0 0 auto !important;
        min-height: 46px !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
    }

    .page-section-title {
        margin: 0 !important;
        font-size: 1.45rem !important;
        line-height: 1.05 !important;
        letter-spacing: 0 !important;
    }

    .page-section-text {
        margin: 0.18rem 0 0 !important;
        max-width: 56rem !important;
        font-size: 0.86rem !important;
        line-height: 1.28 !important;
    }

    .page-toolbar,
    .module-shell-actions {
        flex: 0 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.55rem !important;
        margin: 0 !important;
        flex-wrap: nowrap !important;
    }

    .page-toolbar .btn,
    .module-shell-actions .btn,
    .form-actions .btn {
        min-height: 38px !important;
        padding: 0.45rem 0.9rem !important;
        border-radius: 12px !important;
        font-size: 0.86rem !important;
        white-space: nowrap !important;
    }

    .section-stats-grid,
    .section-stats-grid--two {
        flex: 0 0 auto !important;
        margin: 0 !important;
        gap: 0.55rem !important;
    }

    .section-stat-card {
        min-height: 88px !important;
        padding: 0.72rem 0.9rem !important;
        gap: 0.28rem !important;
        border-radius: 14px !important;
    }

    .section-stat-card span {
        font-size: 0.7rem !important;
    }

    .section-stat-card strong {
        font-size: 1.45rem !important;
        line-height: 1.1 !important;
    }

    .section-stat-card small {
        font-size: 0.74rem !important;
    }

    .suite-page-body:not(.suite-page-body-dashboard) > .content-card,
    .suite-page-body:not(.suite-page-body-dashboard) > .form-shell,
    .suite-page-body:not(.suite-page-body-dashboard) > .modern-form,
    .suite-page-body:not(.suite-page-body-dashboard) > form,
    .suite-page-body:not(.suite-page-body-dashboard) > section {
        min-height: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .suite-page-body:not(.suite-page-body-dashboard) > .content-card:last-child,
    .suite-page-body:not(.suite-page-body-dashboard) > .form-shell:last-child,
    .suite-page-body:not(.suite-page-body-dashboard) > .modern-form:last-child,
    .suite-page-body:not(.suite-page-body-dashboard) > form:last-child,
    .suite-page-body:not(.suite-page-body-dashboard) > section:last-child {
        flex: 1 1 auto !important;
        overflow: hidden !important;
    }

    .content-card,
    .form-shell,
    .journal-lines-card {
        border-radius: 14px !important;
        padding: 0.72rem 0.82rem !important;
    }

    .content-card:has(.modern-table),
    .content-card:has(.table-responsive),
    .content-card.report-shell,
    .report-shell {
        display: flex !important;
        flex-direction: column !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .table-responsive,
    .modern-table,
    .statement-section {
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .modern-table {
        width: 100% !important;
        margin: 0 !important;
        table-layout: fixed !important;
        font-size: 0.86rem !important;
    }

    .modern-table th,
    .modern-table td,
    .table th,
    .table td {
        padding: 0.5rem 0.64rem !important;
        line-height: 1.16 !important;
        vertical-align: middle !important;
    }

    .table-title {
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
    }

    .table-subtitle {
        font-size: 0.72rem !important;
        line-height: 1.1 !important;
    }

    .table-link {
        font-size: 0.84rem !important;
        white-space: nowrap !important;
    }

    .form-shell,
    .modern-form,
    .scanned-transaction-form,
    .invoice-create-form {
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .form-grid,
    .accounting-form-grid,
    .detail-grid,
    .record-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 0.48rem 0.7rem !important;
        min-height: 0 !important;
    }

    .form-field,
    .form-group,
    .record-field {
        gap: 0.18rem !important;
        margin: 0 !important;
        min-height: 0 !important;
    }

    .form-field label,
    .form-group label,
    .record-field span,
    label {
        margin: 0 0 0.14rem !important;
        font-size: 0.72rem !important;
        line-height: 1.05 !important;
    }

    .form-control,
    .form-select,
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    select {
        min-height: 34px !important;
        height: 34px !important;
        padding: 0.34rem 0.68rem !important;
        border-radius: 10px !important;
        font-size: 0.88rem !important;
        line-height: 1.1 !important;
    }

    input[type="checkbox"],
    input[type="radio"] {
        width: auto !important;
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
    }

    textarea.form-control,
    textarea {
        min-height: 58px !important;
        height: 58px !important;
        resize: none !important;
    }

    .form-text,
    .form-help,
    .text-muted,
    .text-danger {
        font-size: 0.7rem !important;
        line-height: 1.1 !important;
    }

    .form-actions {
        flex: 0 0 auto !important;
        margin-top: 0.58rem !important;
        gap: 0.55rem !important;
        align-items: center !important;
    }

    .mb-4,
    .my-4 {
        margin-bottom: 0.55rem !important;
    }

    .mt-4,
    .my-4 {
        margin-top: 0.55rem !important;
    }

    .mb-3 {
        margin-bottom: 0.45rem !important;
    }

    .mt-3 {
        margin-top: 0.45rem !important;
    }

    .empty-state,
    .acct-empty-state {
        min-height: 0 !important;
        height: 100% !important;
        padding: 0.9rem !important;
    }

    .scan-workspace,
    .invoice-preview-grid,
    .ocr-preview-grid,
    .scanned-document-layout {
        min-height: 0 !important;
        height: 100% !important;
        overflow: hidden !important;
    }

    iframe,
    embed,
    object {
        max-height: 100% !important;
    }

    .dashboard-customize-page {
        height: 100% !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        gap: 0.65rem !important;
        overflow: hidden !important;
    }

    .dashboard-customize-shell {
        width: min(760px, 100%) !important;
        min-height: 0 !important;
        align-self: start !important;
        padding: 0.75rem !important;
        overflow: hidden !important;
    }

    .dashboard-customize-card {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.55rem !important;
        padding: 0.7rem !important;
    }

    .dashboard-customize-option {
        min-height: 46px !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.7rem !important;
        margin: 0 !important;
        padding: 0.68rem 0.75rem !important;
        border: 1px solid #d8e2ef !important;
        border-radius: 12px !important;
        background: #f8fbff !important;
        color: #06244a !important;
        cursor: pointer !important;
    }

    .dashboard-customize-option:hover {
        border-color: #9fb7d7 !important;
        background: #fff !important;
    }

    .dashboard-customize-option .form-check-input {
        width: 20px !important;
        height: 20px !important;
        min-width: 20px !important;
        min-height: 20px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 2px solid #6f86a5 !important;
        border-radius: 6px !important;
        appearance: auto !important;
        -webkit-appearance: checkbox !important;
        accent-color: #123866 !important;
        cursor: pointer !important;
    }

    .dashboard-customize-option strong {
        font-size: 0.9rem !important;
        line-height: 1.1 !important;
    }

    .dashboard-customize-option span {
        display: none !important;
    }

    .access-role-grid {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        grid-auto-rows: minmax(0, 1fr) !important;
        gap: 0.65rem !important;
        align-items: stretch !important;
        overflow: hidden !important;
    }

    .access-role-card {
        height: 100% !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-rows: 118px minmax(0, 1fr) !important;
        gap: 0.58rem !important;
        overflow: hidden !important;
    }

    .access-role-card-head {
        min-height: 0 !important;
        overflow: hidden !important;
    }

    .access-role-card-head h3 {
        font-size: 1.06rem !important;
        margin: 0.08rem 0 0.18rem !important;
    }

    .access-role-card-head p {
        font-size: 0.86rem !important;
        line-height: 1.22 !important;
    }

    .access-role-columns {
        min-height: 0 !important;
        height: 100% !important;
        display: grid !important;
        grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.58rem !important;
        overflow: hidden !important;
    }

    .access-role-columns > div {
        min-height: 0 !important;
        height: 100% !important;
        padding: 0.72rem !important;
        display: grid !important;
        grid-template-rows: auto minmax(0, 1fr) !important;
        overflow: hidden !important;
    }

    .access-role-columns h4 {
        margin: 0 0 0.42rem !important;
        font-size: 0.72rem !important;
    }

    .access-role-columns ul {
        min-height: 0 !important;
        margin: 0 !important;
        padding-left: 1rem !important;
        overflow: hidden !important;
        font-size: 0.84rem !important;
    }

    .access-role-columns li {
        margin-bottom: 0.36rem !important;
        line-height: 1.25 !important;
    }
}

.legal-page-shell {
    display: grid;
    gap: 1rem;
    min-height: 0;
}

.legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .65fr);
    gap: 1rem;
    align-items: stretch;
}

.legal-layout {
    display: grid;
    grid-template-columns: 17rem minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
}

.legal-hero-main,
.legal-hero > div,
.legal-hero-ar,
.legal-version-card,
.legal-index-card,
.legal-document-card,
.legal-content-card,
.legal-notice-card {
    background: #fff;
    border: 1px solid #cbd9eb;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(9, 31, 61, .08);
}

.legal-hero-main {
    padding: 1.2rem;
    background: linear-gradient(135deg, #ffffff 0%, #eef7ff 58%, #ecfff4 100%);
}

.legal-hero > div,
.legal-hero-ar {
    padding: 1.2rem;
}

.legal-hero > div:first-child {
    background: linear-gradient(135deg, #ffffff 0%, #eef7ff 58%, #ecfff4 100%);
}

.legal-hero h1 {
    margin: .35rem 0 .45rem;
    color: #061f44;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1;
    font-weight: 900;
}

.legal-hero p {
    color: #506684;
    line-height: 1.55;
}

.legal-hero-ar span {
    display: block;
    color: #11854f;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 900;
    line-height: 1.25;
}

.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    color: #113d73;
    font-size: .76rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legal-hero-title {
    margin: .35rem 0 .45rem;
    color: #061f44;
    font-size: clamp(2rem, 3vw, 3.1rem);
    line-height: 1;
    font-weight: 900;
}

.legal-hero-title-ar {
    margin: 0 0 .65rem;
    color: #11854f;
    font-size: clamp(1.25rem, 2vw, 2rem);
    font-weight: 900;
    direction: rtl;
}

.legal-hero-summary,
.legal-hero-summary-ar {
    max-width: 62rem;
    color: #506684;
    font-size: 1rem;
    line-height: 1.55;
}

.legal-hero-summary-ar {
    margin-top: .65rem;
    direction: rtl;
}

.legal-version-card {
    padding: 1rem;
    display: grid;
    gap: .7rem;
    align-content: start;
}

.legal-version-item {
    padding: .85rem;
    background: #f5f9fe;
    border: 1px solid #d8e5f3;
    border-radius: 8px;
}

.legal-version-item span {
    display: block;
    color: #5d718f;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-version-item strong {
    display: block;
    margin-top: .22rem;
    color: #061f44;
    font-size: 1rem;
}

.legal-index-card {
    display: grid;
    gap: .55rem;
    align-items: start;
    padding: .8rem;
}

.legal-index-label {
    color: #5d718f;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-index-card a {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 2.25rem;
    padding: .4rem .85rem;
    border: 1px solid #cbd9eb;
    border-radius: 999px;
    color: #143a66;
    font-weight: 900;
    text-decoration: none;
    background: #fff;
}

.legal-index-card a.active,
.legal-index-card a.is-active,
.legal-index-card a:hover {
    color: #fff;
    background: #143e70;
    border-color: #143e70;
}

.legal-content-card,
.legal-document-card {
    padding: 1rem;
}

.legal-document-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: .9rem;
    margin-bottom: .5rem;
    border-bottom: 1px solid #e2ebf6;
}

.legal-document-header h2 {
    margin: .15rem 0 0;
    color: #061f44;
    font-size: 1.6rem;
}

.legal-kicker,
.legal-last-updated span {
    color: #5d718f;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.legal-last-updated {
    text-align: right;
    color: #061f44;
}

.legal-scroll-panel {
    max-height: min(58vh, 46rem);
    overflow: auto;
    padding-right: .5rem;
}

.legal-section {
    padding: 1rem 0;
    border-bottom: 1px solid #e2ebf6;
}

.legal-section:first-child {
    padding-top: 0;
}

.legal-section:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    margin: 0 0 .55rem;
    color: #061f44;
    font-size: 1.24rem;
    line-height: 1.2;
}

.legal-section h3 {
    margin: .8rem 0 .45rem;
    color: #061f44;
    font-size: 1.15rem;
    line-height: 1.25;
}

.legal-section-ar h4 {
    margin: .8rem 0 .45rem;
    color: #11854f;
    font-size: 1.05rem;
    line-height: 1.25;
    direction: rtl;
}

.legal-section p {
    margin: 0 0 .65rem;
    color: #334a67;
    line-height: 1.58;
}

.legal-section p[dir="rtl"] {
    direction: rtl;
    color: #435873;
}

.legal-notice-card {
    padding: .9rem 1rem;
    color: #184b36;
    background: #effdf5;
    border-color: #bce9ce;
    font-weight: 800;
}

@media (max-width: 980px) {
    .legal-hero {
        grid-template-columns: 1fr;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-index-card {
        display: flex;
        flex-wrap: wrap;
    }

    .legal-scroll-panel {
        max-height: none;
    }
}

.registration-legal-card {
    display: grid;
    gap: .9rem;
    padding: 1rem;
    border: 1px solid #c9dced;
    border-radius: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #f2f8ff 58%, #effdf5 100%);
    box-shadow: 0 16px 34px rgba(8, 38, 80, .08);
}

.registration-legal-header {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.registration-legal-icon {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 14px;
    color: #0d6a42;
    background: #e6fbef;
    border: 1px solid #bdebd0;
}

.registration-legal-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.registration-legal-header h3 {
    margin: 0;
    color: #061f44;
    font-size: 1.05rem;
    font-weight: 900;
}

.registration-legal-header p {
    margin: .12rem 0 0;
    color: #5a6f8f;
    font-size: .9rem;
}

.registration-legal-list {
    display: grid;
    gap: .55rem;
}

.registration-legal-check {
    display: grid;
    grid-template-columns: 1.3rem minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    padding: .72rem .8rem;
    border: 1px solid #d6e4f3;
    border-radius: 8px;
    color: #082650;
    background: rgba(255, 255, 255, .82);
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.registration-legal-check:hover {
    border-color: #93c6f3;
    box-shadow: 0 12px 24px rgba(13, 62, 112, .1);
    transform: translateY(-1px);
}

.registration-legal-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.registration-legal-box {
    width: 1.18rem;
    height: 1.18rem;
    margin-top: .08rem;
    border: 2px solid #9db2cc;
    border-radius: 6px;
    background: #fff;
    box-shadow: inset 0 0 0 2px #fff;
}

.registration-legal-input:checked + .registration-legal-box {
    border-color: #11854f;
    background: #11854f;
}

.registration-legal-input:checked + .registration-legal-box::after {
    content: "";
    display: block;
    width: .38rem;
    height: .68rem;
    margin: .08rem auto 0;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.registration-legal-link {
    padding: 0;
    border: 0;
    color: #0b56a8;
    background: transparent;
    font: inherit;
    font-weight: 900;
    text-decoration: underline;
    cursor: pointer;
}

.registration-legal-notice {
    padding: .75rem .85rem;
    border: 1px solid #bdebd0;
    border-radius: 8px;
    color: #164d37;
    background: #effdf5;
    font-size: .9rem;
    font-weight: 800;
}

.registration-submit:disabled {
    cursor: not-allowed;
    opacity: .56;
}

.registration-submit-ready {
    box-shadow: 0 12px 24px rgba(17, 133, 79, .18);
}

.registration-legal-modal[hidden] {
    display: none;
}

.registration-legal-modal {
    position: fixed;
    inset: 0;
    z-index: 2050;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.registration-legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 20, 42, .58);
    backdrop-filter: blur(3px);
}

.registration-legal-modal-panel {
    position: relative;
    z-index: 1;
    width: min(64rem, 96vw);
    height: min(48rem, 88vh);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid #cbd9eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(5, 20, 42, .32);
}

.registration-legal-modal-header,
.registration-legal-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .9rem 1rem;
    border-bottom: 1px solid #dfe9f5;
}

.registration-legal-modal-footer {
    border-top: 1px solid #dfe9f5;
    border-bottom: 0;
    background: #f7fbff;
}

.registration-legal-modal-header span,
.registration-legal-modal-footer span {
    color: #5d718f;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.registration-legal-modal-header h3 {
    margin: .15rem 0 0;
    color: #061f44;
    font-size: 1.35rem;
}

.registration-legal-modal-close {
    width: 2.4rem;
    height: 2.4rem;
    border: 1px solid #cbd9eb;
    border-radius: 999px;
    color: #0b2a55;
    background: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.registration-legal-modal-body {
    min-height: 0;
    background: #edf4fb;
}

.registration-legal-modal-body iframe {
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}

.registration-legal-modal-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .registration-legal-modal-footer {
        display: grid;
    }

    .registration-legal-modal-footer > div {
        display: flex;
        gap: .5rem;
    }
}

.bank-reconciliation-card {
    display: grid;
    gap: 1rem;
}

.bank-reconciliation-table-wrap {
    max-height: 54vh;
    overflow: auto;
    border: 1px solid #d9e5f2;
    border-radius: 8px;
}

.bank-reconciliation-table-wrap table {
    margin-bottom: 0;
}

.legal-page-shell-embedded {
    min-height: auto;
    padding: 0;
}

.legal-page-shell-embedded .legal-hero {
    display: none;
}

.legal-layout-embedded {
    display: block;
}

.legal-layout-embedded .legal-document-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.legal-layout-embedded .legal-scroll-panel {
    max-height: none;
}

.invoice-scanner-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .85rem;
    min-height: 3.2rem;
    margin-bottom: .8rem;
    padding: .7rem .9rem;
    border: 1px solid #c8d8ea;
    border-radius: 8px;
    background: #f7fbff;
    color: #173a69;
}

.invoice-scanner-panel.is-error {
    border-color: #efb5b5;
    background: #fff6f6;
    color: #9f2f2f;
}

.invoice-scanner-copy {
    display: grid;
    gap: .12rem;
}

.invoice-scanner-copy strong {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.invoice-scanner-copy span {
    color: inherit;
    font-size: .92rem;
}

.invoice-scan-progress {
    display: inline-flex;
    align-items: center;
    gap: .28rem;
    visibility: hidden;
}

.invoice-scan-progress.is-active {
    visibility: visible;
}

.invoice-scan-progress span {
    width: .48rem;
    height: .48rem;
    border-radius: 999px;
    background: #173a69;
    opacity: .34;
    animation: invoice-scan-pulse 1s infinite ease-in-out;
}

.invoice-scan-progress span:nth-child(2) {
    animation-delay: .16s;
}

.invoice-scan-progress span:nth-child(3) {
    animation-delay: .32s;
}

.dashboard-period-form {
    margin: 0;
}

.dashboard-period-select-chip {
    padding-right: .55rem;
}

.dashboard-period-select {
    border: 0;
    background: transparent;
    color: #10223f;
    font: inherit;
    font-weight: 850;
    min-width: 132px;
    outline: 0;
}

.suite-page-body-dashboard .dashboard-toolbar {
    display: flex !important;
    align-items: center !important;
    gap: 0.55rem !important;
}

.suite-page-body-dashboard .dashboard-period-form,
.suite-page-body-dashboard .dashboard-toolbar .suite-secondary-action {
    height: 44px !important;
}

.suite-page-body-dashboard .dashboard-period-select-chip,
.suite-page-body-dashboard .dashboard-toolbar .suite-secondary-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 1px solid #d4e0ef !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #10223f !important;
    box-shadow: 0 1px 2px rgba(15, 35, 65, 0.04) !important;
    gap: 0.55rem !important;
    padding: 0 0.75rem !important;
    font-size: 0.84rem !important;
    font-weight: 850 !important;
    line-height: 1 !important;
}

.suite-page-body-dashboard .dashboard-period-select-chip {
    min-width: 176px !important;
}

.suite-page-body-dashboard .dashboard-toolbar .suite-secondary-action {
    min-width: 124px !important;
    text-decoration: none !important;
}

.suite-page-body-dashboard .dashboard-period-select-chip svg,
.suite-page-body-dashboard .dashboard-toolbar .suite-secondary-action svg {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
}

.suite-page-body-dashboard .dashboard-period-select {
    min-width: 112px !important;
    height: 100% !important;
    line-height: 1 !important;
}

/* Legal pages are document-style pages. Keep them in normal page flow so the
   shared footer never covers the legal content. */
.suite-shell:has(.legal-page-shell) {
    height: 100vh !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.suite-page-body:has(.legal-page-shell) {
    min-height: 0 !important;
    overflow: hidden !important;
    padding: 1rem 1.1rem 0.7rem !important;
}

.suite-page-body:has(.legal-page-shell) .legal-page-shell {
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
}

.legal-page-actions {
    display: flex;
    justify-content: flex-end;
}

.legal-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    border: 1px solid #c9d8ea;
    border-radius: 12px;
    background: #fff;
    color: #082650;
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 50, 94, 0.08);
}

.legal-home-link:hover {
    border-color: #0f3d75;
    background: #0f3d75;
    color: #fff;
}

.suite-page-body:has(.legal-page-shell) .legal-layout,
.suite-page-body:has(.legal-page-shell) .legal-document-card,
.suite-page-body:has(.legal-page-shell) .legal-contact-form {
    min-height: 0 !important;
}

.suite-page-body:has(.legal-page-shell) .legal-document-card,
.suite-page-body:has(.legal-page-shell) .legal-contact-form {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 1.25rem !important;
}

.suite-page-body:has(.legal-page-shell) .legal-scroll-panel {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: none !important;
    padding-bottom: 2rem !important;
}

.suite-main:has(.legal-page-shell) {
    min-height: 0 !important;
    height: 100vh !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
    overflow: hidden !important;
}

.suite-main:has(.suite-topbar):has(.legal-page-shell) {
    grid-template-rows: var(--app-topbar-height) minmax(0, 1fr) auto !important;
}

.suite-main:has(.legal-page-shell) .suite-footer {
    min-height: auto !important;
    height: auto !important;
    padding: 0.8rem 1.1rem 1rem !important;
}

@keyframes invoice-scan-pulse {
    0%,
    80%,
    100% {
        transform: scale(.82);
        opacity: .34;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.reports-center-page {
    display: flex;
    flex-direction: column;
    gap: .48rem;
    padding-bottom: 3.2rem;
}

.reports-center-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 0;
}

.reports-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    justify-content: flex-end;
}

.report-criteria-card {
    display: grid;
    gap: .45rem;
}

.report-criteria-head {
    align-items: flex-start;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
}

.report-criteria-head h3 {
    color: #061b3a;
    font-size: .95rem;
    font-weight: 900;
    margin: .15rem 0 0;
}

.report-criteria-head small {
    color: #607086;
    font-size: .78rem;
    font-weight: 800;
    text-align: right;
}

.reports-overview-grid {
    display: grid;
    gap: .45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reports-overview-card {
    background: #fff;
    border: 1px solid #cfdbea;
    border-left: 4px solid #1d5fa7;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(20, 37, 63, .06);
    display: grid;
    gap: .16rem;
    min-height: 64px;
    padding: .52rem .68rem;
}

.reports-overview-card span {
    color: #44546a;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
}

.reports-overview-card strong {
    color: #062246;
    font-size: 1.12rem;
    font-weight: 900;
    line-height: 1;
}

.reports-overview-card small {
    color: #607086;
    font-size: .76rem;
}

.reports-overview-card.is-ledger {
    border-left-color: #7053d6;
}

.reports-overview-card.is-printable {
    border-left-color: #16895a;
}

.reports-analytics-grid,
.reports-enterprise-grid {
    display: grid;
    gap: .6rem;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
}

.report-analytics-card,
.report-comparison-card {
    padding: .62rem .72rem !important;
}

.report-analytics-head {
    align-items: flex-start;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    margin-bottom: .42rem;
}

.report-analytics-head h3 {
    color: #061b3a;
    font-size: .88rem;
    font-weight: 900;
    margin: .15rem 0 0;
}

.report-analytics-head small {
    color: #607086;
    font-size: .72rem;
    font-weight: 800;
    white-space: nowrap;
}

.report-trend-chart {
    display: grid;
    gap: .28rem;
}

.report-trend-row {
    align-items: center;
    display: grid;
    gap: .42rem;
    grid-template-columns: 84px minmax(0, 1fr) 110px;
}

.report-trend-row > span {
    color: #44546a;
    font-size: .72rem;
    font-weight: 900;
}

.report-trend-row > strong {
    color: #102f57;
    font-size: .76rem;
    font-weight: 900;
    text-align: right;
}

.report-trend-bars {
    background: #edf3fb;
    border-radius: 999px;
    display: grid;
    gap: .12rem;
    padding: .16rem;
}

.report-trend-bars i {
    border-radius: 999px;
    display: block;
    height: .34rem;
    min-width: .3rem;
}

.report-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: .45rem;
}

.report-chart-legend span {
    align-items: center;
    color: #53657f;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    gap: .32rem;
}

.report-chart-legend i {
    border-radius: 999px;
    height: .55rem;
    width: .55rem;
}

.is-revenue {
    background: #16895a;
}

.is-expense {
    background: #d85b5b;
}

.is-profit {
    background: #1d5fa7;
}

.report-kpi-grid {
    display: grid;
    gap: .34rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-kpi-grid article,
.report-comparison-grid article,
.report-cash-summary,
.report-builder-list article,
.report-audit-list article {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .16rem;
    padding: .42rem .52rem;
}

.report-kpi-grid span,
.report-cash-summary span,
.report-comparison-grid span {
    color: #536174;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.report-kpi-grid strong,
.report-cash-summary strong,
.report-comparison-grid strong {
    color: #062246;
    font-size: .96rem;
    font-weight: 900;
}

.report-cash-summary {
    margin-top: .45rem;
}

.report-cash-summary small,
.report-comparison-grid em {
    color: #607086;
    font-size: .78rem;
    font-style: normal;
}

.report-comparison-grid {
    display: grid;
    gap: .42rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.report-comparison-grid small {
    font-size: .74rem;
    font-weight: 900;
}

.report-comparison-grid small.is-up {
    color: #16895a;
}

.report-comparison-grid small.is-down {
    color: #c94949;
}

.report-access-pill {
    background: #edf4ff;
    border: 1px solid #d3e2f5;
    border-radius: 999px;
    color: #153f73;
    font-size: .72rem;
    font-weight: 900;
    padding: .25rem .55rem;
    text-transform: uppercase;
}

.report-builder-list,
.report-audit-list {
    display: grid;
    gap: .55rem;
}

.report-builder-list article strong,
.report-audit-list article strong {
    color: #102f57;
    font-size: .86rem;
    font-weight: 900;
}

.report-builder-list article span,
.report-audit-list article span {
    color: #607086;
    font-size: .8rem;
}

.report-builder-list article small {
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    justify-self: start;
    padding: .22rem .5rem;
}

.report-builder-list article small.is-ready {
    background: #e7f7ee;
    color: #08723f;
}

.report-builder-list article small.is-planned {
    background: #fff2df;
    color: #99520f;
}

.report-management-card {
    padding: .58rem .68rem !important;
}

.report-management-grid {
    display: grid;
    gap: .38rem .5rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.report-management-grid label {
    display: grid;
    gap: .25rem;
}

.report-management-grid span,
.report-shortcut-head .eyebrow {
    color: #44546a;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.report-primary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .34rem;
}

.report-primary-actions a {
    align-items: center;
    background: #fff;
    border: 1px solid #cbd9eb;
    border-radius: 8px;
    color: #102f57;
    display: inline-flex;
    font-size: .76rem;
    font-weight: 900;
    min-height: 1.95rem;
    padding: .36rem .58rem;
    text-decoration: none;
}

.reports-tools-drawer {
    padding: 0 !important;
    overflow: hidden;
}

.reports-tools-drawer > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    padding: .65rem .8rem;
}

.reports-tools-drawer > summary::-webkit-details-marker {
    display: none;
}

.reports-tools-drawer > summary span {
    color: #102f57;
    font-size: .9rem;
    font-weight: 900;
}

.reports-tools-drawer > summary small {
    color: #607086;
    font-size: .76rem;
    font-weight: 800;
    text-align: right;
}

.reports-tools-drawer[open] {
    padding-bottom: .8rem !important;
}

.reports-tools-drawer[open] > summary {
    border-bottom: 1px solid #dbe4f0;
}

.reports-tools-drawer .reports-shortcut-grid,
.reports-tools-drawer .reports-enterprise-grid,
.reports-tools-drawer .report-finder-card {
    margin: .75rem .85rem 0;
}

.reports-tools-drawer .report-shortcut-panel,
.reports-tools-drawer .report-finder-card {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(20, 37, 63, .04);
}

.report-primary-actions a:hover {
    background: #eef5ff;
    border-color: #9fb6d3;
}

.report-export-progress {
    align-items: center;
    background: #e8f1ff;
    border: 1px solid #bdd3f0;
    border-radius: 8px;
    color: #153f73;
    display: inline-flex;
    gap: .55rem;
    margin-top: .75rem;
    padding: .58rem .75rem;
    width: fit-content;
}

.report-export-progress span {
    animation: report-export-pulse .8s infinite ease-in-out;
    background: #1d5fa7;
    border-radius: 999px;
    height: .65rem;
    width: .65rem;
}

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

.report-shortcut-panel {
    padding: .9rem !important;
}

.report-shortcut-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: .55rem;
}

.report-clear-button {
    background: transparent;
    border: 0;
    color: #153f73;
    font-size: .78rem;
    font-weight: 900;
    padding: .15rem .25rem;
}

.report-shortcut-list {
    display: grid;
    gap: .45rem;
}

.report-shortcut-list a {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .1rem;
    padding: .58rem .65rem;
    text-decoration: none;
}

.report-shortcut-list a strong {
    color: #102f57;
    font-size: .86rem;
    font-weight: 900;
}

.report-shortcut-list a span,
.report-shortcut-empty {
    color: #607086;
    font-size: .8rem;
}

.report-finder-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem !important;
}

.report-finder-toolbar {
    align-items: end;
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .85rem;
    grid-template-columns: minmax(280px, 1fr) auto;
    padding: .85rem;
}

.report-search-field label {
    color: #44546a;
    display: block;
    font-size: .74rem;
    font-weight: 900;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.report-search-field .form-control {
    min-height: 2.65rem;
}

.report-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.report-filter-tab {
    background: #fff;
    border: 1px solid #cbd9eb;
    border-radius: 999px;
    color: #10223f;
    font-weight: 900;
    min-height: 2.45rem;
    padding: .55rem .95rem;
    transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.report-filter-tab:hover {
    background: #eef5ff;
    border-color: #9fb6d3;
    transform: translateY(-1px);
}

.report-filter-tab.is-active {
    background: #123866;
    border-color: #123866;
    color: #fff;
}

.report-category-section {
    border-top: 1px solid #dbe4f0;
    display: grid;
    gap: .7rem;
    padding-top: .95rem;
}

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

.report-section-label {
    align-items: baseline;
    display: flex;
    gap: .6rem;
    justify-content: space-between;
}

.report-section-label span {
    color: #102f57;
    font-size: .84rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.report-section-label small {
    color: #6a788b;
    font-weight: 700;
}

.report-picker-item {
    align-items: start;
    background: #fff;
    border: 1px solid #d4e0ef;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(20, 37, 63, .05);
    display: grid;
    gap: .85rem;
    grid-template-columns: 52px minmax(0, 1fr);
    min-height: 162px;
    padding: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.report-picker-item:hover {
    border-color: #9fb6d3;
    box-shadow: 0 18px 36px rgba(20, 37, 63, .1);
    transform: translateY(-2px);
}

.report-picker-icon {
    color: #fff;
    display: grid;
    height: 52px;
    place-items: center;
    border-radius: 8px;
    width: 52px;
}

.report-picker-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.report-picker-icon-green {
    background: #16895a;
}

.report-picker-icon-blue {
    background: #1d59c2;
}

.report-picker-icon-purple {
    background: #7053d6;
}

.report-picker-icon-orange {
    background: #de6b28;
}

.report-picker-icon-teal {
    background: #0f766e;
}

.report-picker-copy h3 {
    color: #061b3a;
    font-size: 1.02rem;
    font-weight: 900;
    margin: 0 0 .22rem;
}

.report-picker-copy p {
    color: #53657f;
    font-size: .86rem;
    margin: 0 0 .85rem;
}

.report-card-title-row {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: .5rem;
}

.report-favorite-button {
    background: #f3f7fc;
    border: 1px solid #d5e1ef;
    border-radius: 999px;
    color: #b7791f;
    font-size: .72rem;
    font-weight: 900;
    height: 2rem;
    line-height: 1;
    padding: 0 .65rem;
    width: auto;
}

.report-preview-summary {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .12rem;
    margin-bottom: .75rem;
    padding: .58rem .65rem;
}

.report-preview-summary span {
    color: #536174;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.report-preview-summary strong {
    color: #102f57;
    font-size: .94rem;
    font-weight: 900;
}

.report-actions-menu {
    display: inline-block;
    position: relative;
}

.report-actions-menu summary {
    background: #123866;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
    min-height: 2.35rem;
    padding: .55rem .85rem;
    text-align: center;
    width: 7rem;
}

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

.report-actions-menu div {
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    box-shadow: 0 18px 32px rgba(20, 37, 63, .16);
    display: grid;
    min-width: 180px;
    padding: .35rem;
    position: absolute;
    right: 0;
    top: calc(100% + .25rem);
    z-index: 20;
}

.report-actions-menu a,
.report-actions-menu button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #102f57;
    font-size: .84rem;
    font-weight: 800;
    padding: .55rem .65rem;
    text-align: left;
    text-decoration: none;
}

.report-actions-menu a:hover,
.report-actions-menu button:hover {
    background: #f3f7fc;
}

.report-empty-state {
    background: #f8fbff;
    border: 1px dashed #bfd0e5;
    border-radius: 8px;
    color: #53657f;
    display: grid;
    gap: .25rem;
    padding: 1.5rem;
    text-align: center;
}

.report-empty-state strong {
    color: #102f57;
    font-size: 1rem;
    font-weight: 900;
}

.report-empty-state span {
    color: #607086;
}

@media (max-width: 860px) {
    .reports-center-header,
    .report-criteria-head {
        flex-direction: column;
    }

    .reports-header-actions,
    .report-primary-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .reports-overview-grid,
    .reports-analytics-grid,
    .reports-enterprise-grid,
    .reports-shortcut-grid,
    .report-management-grid,
    .report-finder-toolbar,
    .report-finder-grid,
    .report-comparison-grid {
        grid-template-columns: 1fr;
    }

    .report-trend-row {
        grid-template-columns: 1fr;
    }

    .report-trend-row > strong {
        text-align: left;
    }

    .report-section-label {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
    }
}

@media (min-width: 861px) and (max-width: 1320px) {
    .report-management-grid,
    .report-comparison-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .reports-analytics-grid,
    .reports-enterprise-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes report-export-pulse {
    0%, 100% {
        opacity: .35;
        transform: scale(.82);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.audit-log-page {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding-bottom: 3rem;
}

.audit-log-page > .audit-summary-grid {
    order: 1;
}

.audit-log-page > .audit-filter-card {
    order: 2;
}

.audit-log-page > .audit-workflow-grid {
    order: 4;
}

.audit-log-page > .audit-table-card {
    order: 3;
}

.audit-log-page > .audit-enterprise-grid {
    order: 5;
}

.audit-log-page > .audit-package-card {
    order: 6;
}

.audit-log-header {
    margin-bottom: 0;
}

.audit-summary-grid {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.audit-summary-card {
    background: #fff;
    border: 1px solid #cfdbea;
    border-left: 4px solid #1d5fa7;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(20, 37, 63, .06);
    cursor: pointer;
    display: grid;
    gap: .16rem;
    min-height: 66px;
    padding: .52rem .68rem;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.audit-summary-card:hover {
    border-color: #9fb6d3;
    box-shadow: 0 18px 36px rgba(20, 37, 63, .1);
    transform: translateY(-2px);
}

.audit-summary-card span {
    color: #44546a;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.audit-summary-card strong {
    color: #062246;
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
}

.audit-summary-card small {
    color: #607086;
    font-size: .72rem;
}

.audit-summary-card.is-posted {
    border-left-color: #16895a;
}

.audit-summary-card.is-reversal {
    border-left-color: #c94949;
}

.audit-summary-card.is-correction {
    border-left-color: #de7b18;
}

.audit-summary-card.is-session {
    border-left-color: #667085;
}

.audit-filter-card {
    padding: .65rem .75rem !important;
}

.audit-filter-grid {
    align-items: end;
    display: grid;
    gap: .45rem;
    grid-template-columns: minmax(280px, 1.4fr) minmax(180px, .75fr) minmax(150px, .6fr) minmax(150px, .6fr) auto;
}

.audit-filter-grid-advanced {
    grid-template-columns: minmax(280px, 1.55fr) repeat(3, minmax(145px, .75fr)) repeat(2, minmax(132px, .6fr)) minmax(120px, .55fr) auto;
}

.audit-filter-grid label {
    display: grid;
    gap: .25rem;
}

.audit-filter-grid label span {
    color: #44546a;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.audit-filter-actions {
    display: flex;
    gap: .45rem;
}

.audit-export-button {
    align-items: center;
    display: inline-flex;
    gap: .45rem;
}

.audit-export-button span {
    background: rgba(255, 255, 255, .18);
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 900;
    padding: .18rem .35rem;
}

.audit-export-progress {
    align-items: center;
    background: #e8f1ff;
    border: 1px solid #bdd3f0;
    border-radius: 8px;
    color: #153f73;
    display: inline-flex;
    gap: .55rem;
    margin-top: .75rem;
    padding: .58rem .75rem;
    width: fit-content;
}

.audit-export-progress span {
    animation: report-export-pulse .8s infinite ease-in-out;
    background: #1d5fa7;
    border-radius: 999px;
    height: .65rem;
    width: .65rem;
}

.audit-workflow-grid {
    display: grid;
    gap: .55rem;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
}

.audit-enterprise-grid {
    display: grid;
    gap: .55rem;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
}

.audit-timeline-card,
.audit-chain-card,
.audit-analytics-card,
.audit-compliance-card,
.audit-warning-card,
.audit-package-card {
    padding: 0 !important;
    overflow: hidden;
}

.audit-analytics-chart {
    align-items: end;
    display: grid;
    gap: .4rem;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-height: 108px;
    padding: .65rem .75rem .45rem;
}

.audit-analytics-chart article {
    align-items: center;
    display: grid;
    gap: .45rem;
    justify-items: center;
}

.audit-bar-stack {
    align-items: end;
    background: #edf3fb;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    display: flex;
    gap: .12rem;
    height: 74px;
    justify-content: center;
    padding: .28rem;
    width: 2.4rem;
}

.audit-bar-stack i {
    border-radius: 999px;
    min-height: 0;
    width: .34rem;
}

.audit-bar-stack .is-total,
.audit-chart-legend .is-total {
    background: #1d5fa7;
}

.audit-bar-stack .is-reversal,
.audit-chart-legend .is-reversal {
    background: #c94949;
}

.audit-bar-stack .is-correction,
.audit-chart-legend .is-correction {
    background: #de7b18;
}

.audit-bar-stack .is-security,
.audit-chart-legend .is-security {
    background: #667085;
}

.audit-analytics-chart article span,
.audit-chart-legend span {
    color: #53657f;
    font-size: .76rem;
    font-weight: 800;
}

.audit-chart-legend {
    border-top: 1px solid #e3ebf5;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    padding: .5rem .75rem .65rem;
}

.audit-chart-legend span {
    align-items: center;
    display: inline-flex;
    gap: .3rem;
}

.audit-chart-legend i {
    border-radius: 999px;
    height: .55rem;
    width: .55rem;
}

.audit-user-activity-list,
.audit-compliance-list,
.audit-warning-list {
    display: grid;
    gap: .38rem;
    max-height: none;
    overflow: visible;
    padding: .62rem .75rem .72rem;
}

.audit-user-activity-list article,
.audit-compliance-list article,
.audit-warning-list article {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .46rem .55rem;
}

.audit-user-activity-list article div,
.audit-compliance-list article div {
    display: grid;
    gap: .12rem;
}

.audit-user-activity-list strong,
.audit-compliance-list strong,
.audit-warning-list strong {
    color: #102f57;
    font-size: .86rem;
    font-weight: 900;
}

.audit-user-activity-list span,
.audit-compliance-list span,
.audit-warning-list span {
    color: #607086;
    font-size: .8rem;
}

.audit-user-activity-list b {
    color: #062246;
    font-size: 1rem;
    font-weight: 900;
    text-align: right;
}

.audit-user-activity-list small,
.audit-compliance-list small {
    border-radius: 999px;
    color: #153f73;
    font-size: .72rem;
    font-weight: 900;
    white-space: nowrap;
}

.audit-compliance-list small {
    background: #edf4ff;
    border: 1px solid #d3e2f5;
    padding: .22rem .5rem;
}

.audit-warning-list article {
    align-items: flex-start;
    border-left: 4px solid #de7b18;
    display: grid;
    justify-content: stretch;
}

.audit-warning-list article.is-high {
    border-left-color: #c94949;
}

.audit-warning-list article.is-low {
    border-left-color: #16895a;
}

.audit-package-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    padding: .65rem .75rem;
}

.audit-package-card {
    margin-bottom: 1rem;
}

.audit-timeline-list,
.audit-chain-list {
    display: grid;
    gap: .38rem;
    max-height: 230px;
    overflow: auto;
    padding: .62rem .75rem .72rem;
}

.audit-timeline-item {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-left: 4px solid #1d5fa7;
    border-radius: 8px;
    display: grid;
    gap: .12rem;
    padding: .42rem .55rem;
    text-align: left;
    transition: background .15s ease, border-color .15s ease;
}

.audit-timeline-item:hover,
.audit-chain-item button:hover {
    background: #eef5ff;
    border-color: #b7cbe5;
}

.audit-timeline-item.reversal {
    border-left-color: #c94949;
}

.audit-timeline-item.correction {
    border-left-color: #de7b18;
}

.audit-timeline-item.posted {
    border-left-color: #16895a;
}

.audit-timeline-item.session {
    border-left-color: #667085;
}

.audit-timeline-item span,
.audit-chain-item small {
    color: #607086;
    font-size: .76rem;
    font-weight: 800;
}

.audit-timeline-item strong,
.audit-chain-item summary strong {
    color: #102f57;
    font-size: .88rem;
    font-weight: 900;
}

.audit-timeline-item small,
.audit-chain-item summary span {
    color: #53657f;
    font-size: .78rem;
}

.audit-chain-item {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    overflow: hidden;
}

.audit-chain-item summary {
    cursor: pointer;
    display: flex;
    gap: .5rem;
    justify-content: space-between;
    list-style: none;
    padding: .62rem .7rem;
}

.audit-chain-item summary::-webkit-details-marker {
    display: none;
}

.audit-chain-item button {
    background: #fff;
    border: 0;
    border-top: 1px solid #e3ebf5;
    display: grid;
    gap: .1rem;
    padding: .55rem .7rem;
    text-align: left;
    width: 100%;
}

.audit-chain-item button span {
    color: #10223f;
    font-size: .84rem;
    font-weight: 900;
}

.audit-table-card {
    padding: 0 !important;
    overflow: hidden;
}

.audit-table-toolbar {
    align-items: center;
    border-bottom: 1px solid #dbe4f0;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .62rem .75rem;
}

.audit-table-toolbar span {
    color: #102f57;
    font-weight: 900;
}

.audit-table-toolbar small {
    color: #607086;
    font-weight: 700;
}

.audit-pagination {
    align-items: center;
    display: flex;
    gap: .5rem;
}

.audit-pagination strong {
    color: #102f57;
    font-size: .86rem;
    font-weight: 900;
    white-space: nowrap;
}

.audit-table-scroll {
    max-height: calc(100vh - 25rem);
    min-height: 300px;
    overflow: auto;
}

.audit-log-table {
    table-layout: fixed;
}

.audit-log-table thead th {
    background: #f5f8fc;
    color: #536174;
    font-size: .74rem;
    font-weight: 900;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.audit-log-table tbody tr {
    transition: background .15s ease;
}

.audit-log-table tbody tr:hover {
    background: #f8fbff;
}

.audit-log-table th:nth-child(1),
.audit-log-table td:nth-child(1) {
    width: 132px;
}

.audit-log-table th:nth-child(2),
.audit-log-table td:nth-child(2) {
    width: 120px;
}

.audit-log-table th:nth-child(3),
.audit-log-table td:nth-child(3) {
    width: 170px;
}

.audit-log-table th:nth-child(4),
.audit-log-table td:nth-child(4) {
    width: 150px;
}

.audit-log-table th:nth-child(5),
.audit-log-table td:nth-child(5) {
    width: 120px;
}

.audit-log-table th:nth-child(7),
.audit-log-table td:nth-child(7) {
    width: 92px;
}

.audit-date-cell {
    display: grid;
    gap: .12rem;
}

.audit-date-cell strong,
.audit-user-cell,
.audit-reference-cell {
    color: #10223f;
    font-weight: 800;
}

.audit-date-cell span,
.audit-muted {
    color: #6a788b;
    font-size: .78rem;
}

.audit-source-pill,
.audit-action-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 900;
    line-height: 1;
    padding: .34rem .55rem;
}

.audit-source-pill {
    background: #eef4ff;
    color: #154b91;
}

.audit-action-badge.is-posted {
    background: #e7f7ee;
    color: #08723f;
}

.audit-action-badge.is-reversal {
    background: #fde8e8;
    color: #b42318;
}

.audit-action-badge.is-correction {
    background: #fff2df;
    color: #99520f;
}

.audit-action-badge.is-session {
    background: #edf0f3;
    color: #475467;
}

.audit-action-badge.is-other {
    background: #eaf0ff;
    color: #1d4ed8;
}

.audit-details-cell details {
    max-width: 100%;
}

.audit-details-cell summary {
    color: #102f57;
    cursor: pointer;
    display: block;
    font-weight: 800;
    line-height: 1.35;
    list-style: none;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-details-cell summary::-webkit-details-marker {
    display: none;
}

.audit-details-cell details[open] summary {
    margin-bottom: .45rem;
    overflow: visible;
    white-space: normal;
}

.audit-detail-block {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .18rem;
    margin-top: .4rem;
    padding: .55rem .65rem;
}

.audit-detail-block span {
    color: #536174;
    font-size: .7rem;
    font-weight: 900;
    text-transform: uppercase;
}

.audit-detail-block p {
    color: #10223f;
    font-size: .84rem;
    line-height: 1.35;
    margin: 0;
    white-space: pre-wrap;
}

.audit-actions-cell {
    text-align: right;
}

.audit-actions-menu {
    display: inline-block;
    position: relative;
}

.audit-actions-menu summary {
    background: #f3f7fc;
    border: 1px solid #d4e0ee;
    border-radius: 8px;
    color: #123866;
    cursor: pointer;
    font-weight: 900;
    height: 2.1rem;
    line-height: 1.25rem;
    list-style: none;
    padding: .32rem .55rem;
    text-align: center;
    width: 2.5rem;
}

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

.audit-actions-menu div {
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    box-shadow: 0 18px 32px rgba(20, 37, 63, .16);
    display: grid;
    min-width: 190px;
    padding: .35rem;
    position: absolute;
    right: 0;
    top: calc(100% + .25rem);
    z-index: 30;
}

.audit-actions-menu a,
.audit-actions-menu button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #102f57;
    font-size: .82rem;
    font-weight: 800;
    padding: .55rem .65rem;
    text-align: left;
    text-decoration: none;
}

.audit-actions-menu a:hover,
.audit-actions-menu button:hover {
    background: #f3f7fc;
}

.audit-modal-backdrop {
    align-items: center;
    background: rgba(9, 24, 44, .48);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1050;
}

.audit-modal-backdrop[hidden] {
    display: none;
}

.audit-modal {
    background: #fff;
    border: 1px solid #d7e2ef;
    border-radius: 10px;
    box-shadow: 0 26px 60px rgba(9, 24, 44, .25);
    display: grid;
    gap: .9rem;
    max-height: min(760px, calc(100vh - 2rem));
    max-width: 920px;
    overflow: auto;
    padding: 1rem;
    width: min(920px, 100%);
}

.audit-modal-head {
    align-items: flex-start;
    border-bottom: 1px solid #dbe4f0;
    display: flex;
    justify-content: space-between;
    padding-bottom: .75rem;
}

.audit-modal-head h3 {
    color: #061b3a;
    font-size: 1.15rem;
    font-weight: 900;
    margin: .12rem 0 0;
}

.audit-modal-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audit-modal-grid article,
.audit-modal-details div {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .18rem;
    padding: .68rem .72rem;
}

.audit-modal-grid span,
.audit-modal-details span {
    color: #536174;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.audit-modal-grid strong {
    color: #102f57;
    font-size: .92rem;
    font-weight: 900;
}

.audit-modal-details {
    display: grid;
    gap: .7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.audit-modal-details p {
    color: #10223f;
    line-height: 1.4;
    margin: 0;
    min-height: 90px;
    white-space: pre-wrap;
}

.audit-modal-actions {
    display: flex;
    gap: .55rem;
    justify-content: flex-end;
}

.audit-empty-state {
    align-items: center;
    display: grid;
    gap: .35rem;
    justify-items: center;
    padding: 2.2rem 1rem;
    text-align: center;
}

.audit-empty-state div {
    background: #edf4ff;
    border: 1px solid #d4e4f7;
    border-radius: 10px;
    color: #153f73;
    display: grid;
    font-weight: 900;
    height: 3rem;
    place-items: center;
    width: 3rem;
}

.audit-empty-state strong {
    color: #102f57;
    font-size: 1rem;
    font-weight: 900;
}

.audit-empty-state span {
    color: #607086;
}

.backup-center-page {
    display: flex;
    flex-direction: column;
    gap: .42rem;
    min-height: calc(100vh - 8.25rem);
    padding-bottom: 2rem;
}

.backup-center-header {
    margin-bottom: 0;
}

.backup-center-page > .backup-trust-card {
    order: 1;
}

.backup-center-page > .backup-summary-grid {
    order: 2;
}

.backup-center-page > .backup-table-card {
    order: 3;
}

.backup-center-page > .backup-progress-card {
    order: 4;
}

.backup-center-page > .backup-enterprise-grid {
    order: 5;
}

.backup-center-page > .backup-workflow-card {
    order: 6;
}

.backup-center-page > .backup-package-card {
    order: 7;
}

.backup-center-page > .backup-management-grid {
    order: 8;
}

.backup-center-page > .backup-warning-card {
    order: 9;
}

.backup-center-page > .backup-primary-grid {
    order: 4;
}

.backup-center-page > .backup-tools-drawer {
    order: 5;
}

.backup-download-button {
    align-items: center;
    display: inline-flex;
    gap: .45rem;
}

.backup-download-button span {
    background: rgba(255, 255, 255, .18);
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 900;
    padding: .18rem .35rem;
}

.backup-trust-card {
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f4f9ff 100%);
    border: 1px solid #cfdbea;
    border-radius: 10px;
    box-shadow: 0 16px 32px rgba(20, 37, 63, .07);
    display: grid;
    gap: .75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: .58rem .72rem;
}

.backup-trust-icon {
    background: #e7f7ee;
    border: 1px solid #c7edd8;
    border-radius: 10px;
    color: #08723f;
    display: grid;
    font-size: .82rem;
    font-weight: 900;
    height: 2.55rem;
    place-items: center;
    width: 2.55rem;
}

.backup-trust-card h3 {
    color: #061b3a;
    font-size: .9rem;
    font-weight: 900;
    margin: 0 0 .24rem;
}

.backup-trust-card p {
    color: #53657f;
    font-size: .78rem;
    line-height: 1.35;
    margin: 0;
}

.backup-summary-grid {
    display: grid;
    gap: .35rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.backup-summary-card {
    background: #fff;
    border: 1px solid #cfdbea;
    border-left: 4px solid #1d5fa7;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(20, 37, 63, .06);
    display: grid;
    gap: .08rem;
    min-height: 54px;
    padding: .4rem .55rem;
}

.backup-summary-card span {
    color: #44546a;
    font-size: .6rem;
    font-weight: 900;
    text-transform: uppercase;
}

.backup-summary-card strong {
    color: #062246;
    font-size: .9rem;
    font-weight: 900;
    line-height: 1.1;
}

.backup-summary-card small {
    color: #607086;
    font-size: .64rem;
}

.backup-summary-card.is-count {
    border-left-color: #7053d6;
}

.backup-summary-card.is-size {
    border-left-color: #de7b18;
}

.backup-summary-card.is-status {
    border-left-color: #16895a;
}

.backup-summary-card.is-auto {
    border-left-color: #667085;
}

.backup-progress-card {
    align-items: center;
    background: #e8f1ff;
    border: 1px solid #bdd3f0;
    border-radius: 8px;
    color: #153f73;
    display: inline-flex;
    gap: .55rem;
    padding: .58rem .75rem;
    width: fit-content;
}

.backup-progress-card span {
    animation: report-export-pulse .8s infinite ease-in-out;
    background: #1d5fa7;
    border-radius: 999px;
    height: .65rem;
    width: .65rem;
}

.backup-management-grid {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.backup-enterprise-grid {
    display: grid;
    gap: .55rem;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
}

.backup-primary-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
}

.backup-tools-drawer {
    padding: 0 !important;
    overflow: hidden;
}

.backup-tools-drawer > summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    list-style: none;
    padding: .7rem .85rem;
}

.backup-tools-drawer > summary::-webkit-details-marker {
    display: none;
}

.backup-tools-drawer > summary span {
    color: #102f57;
    font-size: .92rem;
    font-weight: 900;
}

.backup-tools-drawer > summary small {
    color: #607086;
    font-size: .76rem;
    font-weight: 800;
    text-align: right;
}

.backup-tools-drawer[open] {
    padding-bottom: .85rem !important;
}

.backup-tools-drawer[open] > summary {
    border-bottom: 1px solid #dbe4f0;
}

.backup-tools-drawer .backup-enterprise-grid,
.backup-tools-drawer .backup-management-grid,
.backup-tools-drawer .backup-workflow-card,
.backup-tools-drawer .backup-warning-card,
.backup-tools-drawer .backup-package-card {
    margin: .75rem .85rem 0;
}

.backup-tools-drawer .backup-workflow-card,
.backup-tools-drawer .backup-warning-card,
.backup-tools-drawer .backup-package-card {
    border: 1px solid #dbe4f0;
    border-radius: 8px;
}

.backup-workflow-card,
.backup-warning-card,
.backup-package-card {
    padding: 0 !important;
    overflow: hidden;
}

.backup-analytics-grid {
    display: grid;
    gap: .38rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: .6rem .75rem .7rem;
}

.backup-analytics-grid article {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .15rem;
    padding: .45rem .55rem;
}

.backup-analytics-grid span {
    color: #536174;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

.backup-analytics-grid strong {
    color: #062246;
    font-size: .98rem;
    font-weight: 900;
}

.backup-option-list,
.backup-warning-list {
    display: grid;
    gap: .38rem;
    padding: .6rem .75rem .7rem;
}

.backup-option-list article,
.backup-warning-list article {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .45rem .55rem;
}

.backup-option-list article div {
    display: grid;
    gap: .12rem;
}

.backup-option-list strong,
.backup-warning-list strong {
    color: #102f57;
    font-size: .8rem;
    font-weight: 900;
}

.backup-option-list span,
.backup-warning-list span {
    color: #607086;
    font-size: .74rem;
}

.backup-option-list small {
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 900;
    padding: .22rem .5rem;
    white-space: nowrap;
}

.backup-option-list small.is-available {
    background: #e7f7ee;
    color: #08723f;
}

.backup-option-list small.is-prepared {
    background: #edf4ff;
    color: #153f73;
}

.backup-warning-list article {
    align-items: flex-start;
    border-left: 4px solid #de7b18;
    display: grid;
    justify-content: stretch;
}

.backup-warning-list article.is-high {
    border-left-color: #c94949;
}

.backup-warning-list article.is-low {
    border-left-color: #16895a;
}

.backup-security-grid {
    display: grid;
    gap: .45rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: .65rem .75rem .75rem;
}

.backup-security-grid article {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-left: 4px solid #de7b18;
    border-radius: 8px;
    display: grid;
    gap: .18rem;
    padding: .5rem .58rem;
}

.backup-security-grid article.is-high {
    border-left-color: #c94949;
}

.backup-security-grid article.is-low {
    border-left-color: #16895a;
}

.backup-security-grid strong {
    color: #102f57;
    font-size: .86rem;
    font-weight: 900;
}

.backup-security-grid span {
    color: #607086;
    font-size: .8rem;
}

.backup-security-grid small {
    color: #536174;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.backup-package-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .42rem;
    padding: .65rem .75rem;
}

.backup-table-card {
    padding: 0 !important;
    overflow: hidden;
    flex: 1 1 auto;
}

.backup-table-toolbar {
    align-items: center;
    border-bottom: 1px solid #dbe4f0;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .48rem .62rem;
}

.backup-table-toolbar span {
    color: #102f57;
    display: block;
    font-weight: 900;
}

.backup-table-toolbar small {
    color: #607086;
}

.backup-history-actions {
    align-items: center;
    display: grid;
    gap: .38rem;
    grid-template-columns: minmax(240px, 1fr) minmax(150px, .5fr) minmax(150px, .5fr);
    max-width: 780px;
    width: 100%;
}

.backup-table-scroll {
    max-height: calc(100vh - 23rem);
    min-height: 72px;
    overflow: auto;
}

.backup-history-table thead th {
    background: #f5f8fc;
    color: #536174;
    font-size: .74rem;
    font-weight: 900;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.backup-history-table tbody tr {
    transition: background .15s ease;
}

.backup-history-table tbody tr:hover {
    background: #f8fbff;
}

.backup-date-cell {
    display: grid;
    gap: .12rem;
}

.backup-date-cell strong {
    color: #10223f;
    font-weight: 900;
}

.backup-date-cell span {
    color: #607086;
    font-size: .78rem;
}

.backup-type-pill,
.backup-status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 900;
    line-height: 1;
    padding: .34rem .55rem;
}

.backup-type-pill {
    background: #eef4ff;
    color: #154b91;
}

.backup-status-badge.is-completed,
.backup-status-badge.is-verified {
    background: #e7f7ee;
    color: #08723f;
}

.backup-status-badge.is-progress {
    background: #fff2df;
    color: #99520f;
}

.backup-status-badge.is-failed {
    background: #fde8e8;
    color: #b42318;
}

.backup-status-badge.is-scheduled {
    background: #edf0f3;
    color: #475467;
}

.backup-actions-cell {
    text-align: right;
}

.backup-row-actions {
    align-items: center;
    display: flex;
    gap: .35rem;
    justify-content: flex-end;
}

.backup-row-action {
    background: #fff;
    border: 1px solid #cbd9eb;
    border-radius: 7px;
    color: #102f57;
    font-size: .76rem;
    font-weight: 900;
    line-height: 1;
    min-height: 1.9rem;
    padding: .46rem .58rem;
    text-decoration: none;
    white-space: nowrap;
}

.backup-row-action:hover {
    background: #eef5ff;
    border-color: #9fb6d3;
}

.backup-row-action.is-danger {
    border-color: #f1c0c0;
    color: #b42318;
}

.backup-row-action.is-danger:hover {
    background: #fff1f1;
    border-color: #e18484;
}

.backup-history-table th:nth-child(2),
.backup-history-table td:nth-child(2) {
    width: 240px;
}

.backup-history-table th:nth-child(5),
.backup-history-table td:nth-child(5) {
    width: 130px;
}

.backup-history-table th:nth-child(7),
.backup-history-table td:nth-child(7) {
    min-width: 280px;
}

.backup-actions-menu {
    display: inline-block;
    position: relative;
}

.backup-actions-menu summary {
    background: #f3f7fc;
    border: 1px solid #d4e0ee;
    border-radius: 8px;
    color: #123866;
    cursor: pointer;
    font-weight: 900;
    height: 2.1rem;
    line-height: 1.25rem;
    list-style: none;
    padding: .32rem .55rem;
    text-align: center;
    width: 2.5rem;
}

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

.backup-actions-menu div {
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    box-shadow: 0 18px 32px rgba(20, 37, 63, .16);
    display: grid;
    min-width: 170px;
    padding: .35rem;
    position: absolute;
    right: 0;
    top: calc(100% + .25rem);
    z-index: 30;
}

.backup-actions-menu a,
.backup-actions-menu button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #102f57;
    font-size: .82rem;
    font-weight: 800;
    padding: .55rem .65rem;
    text-align: left;
    text-decoration: none;
}

.backup-actions-menu a:hover,
.backup-actions-menu button:hover {
    background: #f3f7fc;
}

.backup-empty-state {
    align-items: center;
    display: grid;
    gap: .25rem;
    justify-items: center;
    min-height: 9rem;
    padding: 1rem;
    text-align: center;
}

.backup-empty-state div {
    background: #e7f7ee;
    border: 1px solid #c7edd8;
    border-radius: 12px;
    color: #08723f;
    display: grid;
    font-weight: 900;
    height: 3rem;
    place-items: center;
    width: 3rem;
}

.backup-empty-state strong {
    color: #102f57;
    font-size: .95rem;
    font-weight: 900;
}

.backup-empty-state span {
    color: #607086;
    font-size: .82rem;
}

.backup-modal-backdrop {
    align-items: center;
    background: rgba(9, 24, 44, .48);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 1050;
}

.backup-modal-backdrop[hidden] {
    display: none;
}

.backup-modal {
    background: #fff;
    border: 1px solid #d7e2ef;
    border-radius: 10px;
    box-shadow: 0 26px 60px rgba(9, 24, 44, .25);
    display: grid;
    gap: .9rem;
    max-width: 850px;
    padding: 1rem;
    width: min(850px, 100%);
}

.backup-modal-head {
    align-items: flex-start;
    border-bottom: 1px solid #dbe4f0;
    display: flex;
    justify-content: space-between;
    padding-bottom: .75rem;
}

.backup-modal-head h3 {
    color: #061b3a;
    font-size: 1.15rem;
    font-weight: 900;
    margin: .12rem 0 0;
}

.backup-modal-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.backup-modal-grid article,
.backup-modal-section {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .18rem;
    padding: .68rem .72rem;
}

.backup-modal-grid span,
.backup-modal-section span {
    color: #536174;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.backup-modal-grid strong {
    color: #102f57;
    font-size: .92rem;
    font-weight: 900;
}

.backup-modal-section p {
    color: #10223f;
    line-height: 1.4;
    margin: 0;
}

.backup-restore-warning {
    border-left: 4px solid #c94949;
}

.backup-modal-actions {
    display: flex;
    gap: .55rem;
    justify-content: flex-end;
}

.company-settings-page {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.company-settings-header,
.company-settings-subheader {
    margin-bottom: 0;
}

.company-settings-tabs {
    align-items: center;
    background: #fff;
    border: 1px solid #cfdbea;
    border-radius: 10px;
    box-shadow: 0 12px 26px rgba(20, 37, 63, .05);
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    padding: .45rem;
}

.company-settings-tabs a {
    border-radius: 8px;
    color: #34445c;
    font-size: .84rem;
    font-weight: 900;
    padding: .55rem .78rem;
    text-decoration: none;
    white-space: nowrap;
}

.company-settings-tabs a:hover {
    background: #f3f7fc;
    color: #123866;
}

.company-settings-tabs a.is-active {
    background: #123866;
    color: #fff;
}

.company-settings-hero {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1fr) minmax(480px, .9fr);
    padding: 1rem !important;
}

.company-settings-hero h2 {
    color: #061b3a;
    font-size: 1.35rem;
    font-weight: 900;
    margin: .15rem 0;
}

.company-settings-hero p {
    color: #607086;
    margin: 0;
}

.company-settings-kpis {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-settings-kpis article {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .14rem;
    padding: .68rem .72rem;
}

.company-settings-kpis strong {
    color: #062246;
    font-size: 1.05rem;
    font-weight: 900;
}

.company-settings-kpis span {
    color: #607086;
    font-size: .75rem;
    font-weight: 800;
}

.company-settings-section {
    display: grid;
    gap: .7rem;
}

.company-settings-section-title {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
}

.company-settings-section-title span {
    color: #102f57;
    font-size: .84rem;
    font-weight: 900;
    text-transform: uppercase;
}

.company-settings-section-title small {
    color: #607086;
    font-weight: 700;
}

.company-settings-card-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-settings-card {
    background: #fff;
    border: 1px solid #cfdbea;
    border-left: 4px solid #1d5fa7;
    border-radius: 8px;
    box-shadow: 0 14px 28px rgba(20, 37, 63, .06);
    display: grid;
    gap: .38rem;
    min-height: 132px;
    padding: .9rem 1rem;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.company-settings-card:hover {
    border-color: #9fb6d3;
    box-shadow: 0 18px 36px rgba(20, 37, 63, .1);
    transform: translateY(-2px);
}

.company-settings-card span {
    color: #607086;
    font-size: .72rem;
    font-weight: 900;
}

.company-settings-card strong {
    color: #061b3a;
    font-size: 1rem;
    font-weight: 900;
}

.company-settings-card small {
    color: #607086;
    line-height: 1.35;
}

.company-settings-card.is-green {
    border-left-color: #16895a;
}

.company-settings-card.is-purple {
    border-left-color: #7053d6;
}

.company-settings-card.is-orange {
    border-left-color: #de7b18;
}

.company-settings-card.is-red {
    border-left-color: #c94949;
}

.company-settings-card.is-gray {
    border-left-color: #667085;
}

.company-settings-enterprise-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-enterprise-card {
    padding: 0 !important;
    overflow: hidden;
}

.company-admin-analytics-grid {
    display: grid;
    gap: .55rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: .85rem 1rem 1rem;
}

.company-admin-analytics-grid article {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .15rem;
    padding: .68rem .72rem;
}

.company-admin-analytics-grid span {
    color: #536174;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.company-admin-analytics-grid strong {
    color: #062246;
    font-size: 1.12rem;
    font-weight: 900;
}

.company-role-distribution,
.company-enterprise-list,
.company-alert-list {
    display: grid;
    gap: .55rem;
    padding: .85rem 1rem 1rem;
}

.company-role-distribution article,
.company-enterprise-list article,
.company-alert-list article {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: flex;
    gap: .75rem;
    justify-content: space-between;
    padding: .62rem .7rem;
}

.company-role-distribution span,
.company-enterprise-list strong,
.company-alert-list strong {
    color: #102f57;
    font-size: .86rem;
    font-weight: 900;
}

.company-role-distribution strong {
    color: #062246;
    font-size: 1.05rem;
    font-weight: 900;
}

.company-enterprise-list article div {
    display: grid;
    gap: .12rem;
}

.company-enterprise-list span,
.company-alert-list span {
    color: #607086;
    font-size: .8rem;
}

.company-enterprise-list small {
    background: #edf4ff;
    border-radius: 999px;
    color: #153f73;
    font-size: .72rem;
    font-weight: 900;
    padding: .22rem .5rem;
    white-space: nowrap;
}

.company-alert-list article {
    align-items: flex-start;
    border-left: 4px solid #de7b18;
    display: grid;
    justify-content: stretch;
}

.company-alert-list article.is-high {
    border-left-color: #c94949;
}

.company-alert-list article.is-low {
    border-left-color: #16895a;
}

.company-settings-compact-page {
    gap: .7rem;
}

.company-settings-compact-grid {
    display: grid;
    gap: .7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-settings-panel {
    background: #fff;
    border: 1px solid #cfdbea;
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(20, 37, 63, .06);
    color: inherit;
    display: grid;
    gap: .65rem;
    min-height: 220px;
    padding: .78rem;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.company-settings-panel:hover {
    border-color: #9fb6d3;
    box-shadow: 0 16px 32px rgba(20, 37, 63, .1);
    transform: translateY(-1px);
}

.company-settings-panel-header {
    align-items: center;
    border-bottom: 1px solid #dbe4f0;
    display: flex;
    justify-content: space-between;
    padding-bottom: .55rem;
}

.company-settings-panel-header div {
    display: grid;
    gap: .12rem;
}

.company-settings-panel-header span {
    color: #061b3a;
    font-size: .92rem;
    font-weight: 900;
    text-transform: uppercase;
}

.company-settings-panel-header small {
    color: #607086;
    font-size: .78rem;
    font-weight: 700;
}

.company-settings-panel-header i {
    align-items: center;
    background: #eef5ff;
    border: 1px solid #cfe0f5;
    border-radius: 8px;
    color: #1d5fa7;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.company-settings-panel-profile {
    border-left: 4px solid #1d5fa7;
}

.company-settings-panel-tax {
    border-left: 4px solid #16895a;
}

.company-settings-panel-users {
    border-left: 4px solid #7053d6;
}

.company-settings-panel-roles {
    border-left: 4px solid #de7b18;
}

.company-profile-summary {
    align-items: center;
    display: flex;
    gap: .75rem;
}

.company-profile-logo {
    align-items: center;
    background: linear-gradient(135deg, #061b3a, #1d5fa7);
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1rem;
    font-weight: 900;
    height: 58px;
    justify-content: center;
    width: 58px;
}

.company-profile-summary strong {
    color: #061b3a;
    display: block;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1.25;
}

.company-profile-summary small {
    color: #607086;
    display: block;
    font-size: .78rem;
    margin-top: .12rem;
}

.company-settings-info-grid {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.company-settings-info-grid article {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .55rem;
    grid-template-columns: 32px minmax(0, 1fr);
    min-height: 54px;
    padding: .48rem .55rem;
}

.company-settings-info-grid i,
.company-settings-avatar {
    align-items: center;
    background: #eaf2ff;
    border-radius: 8px;
    color: #1d5fa7;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 900;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.company-settings-info-grid span,
.company-settings-list small {
    color: #607086;
    display: block;
    font-size: .72rem;
    font-weight: 800;
}

.company-settings-info-grid strong,
.company-settings-list strong {
    color: #061b3a;
    display: block;
    font-size: .84rem;
    font-weight: 900;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.company-settings-list {
    display: grid;
    gap: .48rem;
}

.company-settings-list article {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .65rem;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    min-height: 50px;
    padding: .48rem .6rem;
}

.company-settings-list article > span {
    color: #102f57;
    font-size: .95rem;
    font-weight: 900;
}

.company-settings-avatar.is-gray {
    background: #eef2f6;
    color: #475467;
}

.company-settings-avatar.is-blue {
    background: #eaf2ff;
    color: #1d5fa7;
}

.company-settings-avatar.is-green {
    background: #e6f6ee;
    color: #16895a;
}

.settings-form-section {
    border: 1px solid #dbe4f0;
    border-radius: 10px;
    display: grid;
    gap: .85rem;
    margin-bottom: .85rem;
    padding: .9rem;
}

.settings-form-section-title {
    display: grid;
    gap: .12rem;
}

.settings-form-section-title span {
    color: #607086;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.settings-form-section-title strong {
    color: #102f57;
    font-size: .98rem;
    font-weight: 900;
}

.settings-form-note {
    color: #53657f;
    margin: 0;
}

.admin-table-card,
.admin-form-card {
    overflow: hidden;
}

.admin-table-card {
    padding: 0 !important;
}

.admin-table-toolbar {
    border-bottom: 1px solid #dbe4f0;
    padding: .85rem 1rem;
}

.admin-table-toolbar span {
    color: #102f57;
    display: block;
    font-weight: 900;
}

.admin-table-toolbar small {
    color: #607086;
}

.admin-users-table thead th {
    background: #f5f8fc;
    color: #536174;
    font-size: .74rem;
    font-weight: 900;
    position: sticky;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.admin-users-table tbody tr:hover {
    background: #f8fbff;
}

.admin-user-cell {
    align-items: center;
    display: flex;
    gap: .65rem;
}

.admin-avatar {
    background: #e8f1ff;
    border: 1px solid #bfd4f1;
    border-radius: 999px;
    color: #1d5fa7;
    display: grid;
    flex: 0 0 2.2rem;
    font-size: .78rem;
    font-weight: 900;
    height: 2.2rem;
    place-items: center;
    width: 2.2rem;
}

.admin-role-badge,
.admin-status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: .74rem;
    font-weight: 900;
    line-height: 1;
    padding: .34rem .55rem;
}

.admin-role-badge {
    background: #eef4ff;
    color: #154b91;
}

.admin-status-badge.is-active {
    background: #e7f7ee;
    color: #08723f;
}

.admin-status-badge.is-inactive {
    background: #edf0f3;
    color: #475467;
}

.admin-actions-menu {
    display: inline-block;
    position: relative;
}

.admin-actions-menu summary {
    background: #f3f7fc;
    border: 1px solid #d4e0ee;
    border-radius: 8px;
    color: #123866;
    cursor: pointer;
    font-weight: 900;
    height: 2.1rem;
    line-height: 1.25rem;
    list-style: none;
    padding: .32rem .55rem;
    text-align: center;
    width: 2.5rem;
}

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

.admin-actions-menu div {
    background: #fff;
    border: 1px solid #d9e2ee;
    border-radius: 8px;
    box-shadow: 0 18px 32px rgba(20, 37, 63, .16);
    display: grid;
    min-width: 170px;
    padding: .35rem;
    position: absolute;
    right: 0;
    top: calc(100% + .25rem);
    z-index: 30;
}

.admin-actions-menu a,
.admin-actions-menu button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #102f57;
    font-size: .82rem;
    font-weight: 800;
    padding: .55rem .65rem;
    text-align: left;
    text-decoration: none;
}

.admin-actions-menu a:hover,
.admin-actions-menu button:hover {
    background: #f3f7fc;
}

.admin-inline-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .28rem;
    justify-content: flex-start;
    max-width: 290px;
    min-width: 0;
}

.admin-users-actions-cell {
    min-width: 290px;
    width: 290px;
}

.admin-inline-actions form {
    margin: 0;
}

.admin-action-button {
    align-items: center;
    background: #fff;
    border: 1px solid #cfdbea;
    border-radius: 8px;
    color: #123866;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 900;
    justify-content: center;
    min-height: 28px;
    padding: .3rem .44rem;
    text-decoration: none;
    white-space: nowrap;
}

.admin-action-button:hover {
    background: #edf4ff;
    border-color: #9fb6d3;
    color: #0b2f5c;
}

.admin-action-button.is-danger {
    color: #b42318;
}

.admin-action-button.is-danger:hover {
    background: #fff1f0;
    border-color: #f0b4ae;
}

.admin-action-button.is-success {
    color: #087443;
}

.admin-action-button.is-success:hover {
    background: #e6f6ee;
    border-color: #a8dcc4;
}

.admin-empty-state {
    align-items: center;
    display: grid;
    gap: .45rem;
    justify-items: center;
    padding: 2.4rem 1rem;
    text-align: center;
}

.admin-empty-state div {
    background: #edf4ff;
    border: 1px solid #d3e2f5;
    border-radius: 12px;
    color: #153f73;
    display: grid;
    font-weight: 900;
    height: 4rem;
    place-items: center;
    width: 4rem;
}

.admin-empty-state strong {
    color: #102f57;
    font-size: 1.05rem;
    font-weight: 900;
}

.admin-empty-state span {
    color: #607086;
}

.admin-filter-card {
    padding: .9rem !important;
}

.admin-filter-grid {
    display: grid;
    gap: .7rem;
    grid-template-columns: minmax(280px, 1.4fr) repeat(3, minmax(160px, .7fr));
}

.admin-filter-grid label {
    display: grid;
    gap: .25rem;
}

.admin-filter-grid span {
    color: #44546a;
    font-size: .72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.access-role-grid-modern .access-role-card {
    border-left: 4px solid #1d5fa7;
}

.access-role-grid-compact {
    gap: .55rem;
    margin-bottom: .55rem;
}

.access-role-grid-compact .access-role-card {
    border-radius: 8px;
    gap: .45rem;
    min-height: 0;
    padding: .65rem !important;
}

.access-role-grid-compact .access-role-card-head h3 {
    font-size: .98rem;
    margin: .08rem 0 .12rem;
}

.access-role-grid-compact .access-role-card-head p {
    font-size: .78rem;
    line-height: 1.25;
}

.access-role-grid-compact .admin-role-badge {
    font-size: .68rem;
    padding: .24rem .45rem;
}

.access-role-grid-compact .access-role-columns {
    gap: .45rem;
}

.access-role-grid-compact .access-permission-panel {
    border-radius: 8px;
    padding: .48rem .55rem;
}

.access-role-grid-compact .access-permission-panel h4 {
    font-size: .68rem;
    margin-bottom: .28rem;
}

.access-role-grid-compact .access-permission-panel ul {
    padding-left: .82rem;
}

.access-role-grid-compact .access-permission-panel li {
    font-size: .73rem;
    line-height: 1.22;
    margin-bottom: .2rem;
}

.access-permission-panel {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    padding: .85rem;
}

.access-permission-panel.is-allowed {
    border-left: 4px solid #16895a;
}

.access-permission-panel.is-restricted {
    border-left: 4px solid #c94949;
}

.permission-matrix-card,
.settings-advanced-card {
    padding: 0 !important;
    overflow: hidden;
}

.permission-matrix-card-scroll {
    max-height: 250px;
}

.permission-matrix-card-scroll .admin-table-toolbar {
    padding: .55rem .75rem;
}

.permission-matrix-scroll {
    max-height: 190px;
    overflow: auto;
}

.permission-matrix-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

.permission-matrix-table td,
.permission-matrix-table th {
    padding: .42rem .55rem;
}

.permission-matrix-table thead th {
    background: #f5f8fc;
    color: #536174;
    font-size: .74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.permission-pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: .72rem;
    font-weight: 900;
    padding: .3rem .5rem;
}

.permission-pill.is-allowed {
    background: #e7f7ee;
    color: #08723f;
}

.permission-pill.is-restricted {
    background: #fde8e8;
    color: #b42318;
}

.permission-pill.is-future {
    background: #edf4ff;
    color: #153f73;
}

.password-toggle-field {
    display: grid;
    gap: .4rem;
    grid-template-columns: minmax(0, 1fr) auto;
}

.password-toggle-field button {
    background: #f3f7fc;
    border: 1px solid #d4e0ee;
    border-radius: 8px;
    color: #123866;
    font-weight: 900;
    padding: .45rem .75rem;
}

.password-strength-meter {
    display: grid;
    gap: .22rem;
    margin-top: .35rem;
}

.password-strength-meter::before {
    background: #edf3fb;
    border-radius: 999px;
    content: "";
    display: block;
    height: .42rem;
    width: 100%;
}

.password-strength-meter span {
    background: #c94949;
    border-radius: 999px;
    display: block;
    height: .42rem;
    margin-top: -.64rem;
    min-width: .5rem;
    transition: width .15s ease, background .15s ease;
    width: .5rem;
}

.password-strength-meter[data-score="3"] span {
    background: #de7b18;
}

.password-strength-meter[data-score="4"] span {
    background: #16895a;
}

.password-strength-meter strong {
    color: #607086;
    font-size: .78rem;
    font-weight: 800;
}

.user-security-workflow {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

.settings-advanced-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: .85rem;
}

.settings-option-list {
    display: grid;
    gap: .55rem;
    padding: .85rem 1rem 1rem;
}

.settings-option-list article {
    background: #f8fbff;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    display: grid;
    gap: .16rem;
    padding: .68rem .72rem;
}

.settings-option-list strong {
    color: #102f57;
    font-size: .86rem;
    font-weight: 900;
}

.settings-option-list span {
    color: #607086;
    font-size: .8rem;
}

.settings-option-list small {
    background: #edf4ff;
    border-radius: 999px;
    color: #153f73;
    font-size: .72rem;
    font-weight: 900;
    justify-self: start;
    padding: .22rem .5rem;
}

@media (max-width: 1180px) {
    .audit-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .backup-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .backup-management-grid,
    .backup-enterprise-grid,
    .company-settings-compact-grid,
    .company-settings-hero,
    .company-settings-card-grid,
    .company-settings-enterprise-grid,
    .admin-filter-grid,
    .settings-advanced-grid,
    .backup-modal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .backup-security-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .backup-history-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-filter-grid,
    .audit-filter-grid-advanced,
    .audit-workflow-grid,
    .audit-enterprise-grid,
    .audit-modal-grid,
    .audit-modal-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-analytics-chart {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .audit-summary-grid,
    .backup-summary-grid,
    .backup-management-grid,
    .backup-enterprise-grid,
    .company-settings-compact-grid,
    .company-settings-hero,
    .company-settings-kpis,
    .company-settings-card-grid,
    .company-settings-enterprise-grid,
    .company-admin-analytics-grid,
    .admin-filter-grid,
    .settings-advanced-grid,
    .backup-modal-grid,
    .audit-filter-grid,
    .audit-filter-grid-advanced,
    .audit-workflow-grid,
    .audit-enterprise-grid,
    .audit-modal-grid,
    .audit-modal-details {
        grid-template-columns: 1fr;
    }

    .audit-analytics-chart {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .audit-pagination,
    .audit-modal-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .audit-table-scroll {
        max-height: none;
    }

    .backup-trust-card {
        grid-template-columns: 1fr;
    }

    .backup-table-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .backup-history-actions {
        grid-template-columns: 1fr;
    }

    .company-settings-info-grid {
        grid-template-columns: 1fr;
    }

    .backup-analytics-grid,
    .backup-security-grid {
        grid-template-columns: 1fr;
    }

    .backup-modal-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }

    .company-settings-section-title {
        align-items: flex-start;
        flex-direction: column;
        gap: .2rem;
    }

    .password-toggle-field {
        grid-template-columns: 1fr;
    }
}

.settings-hub-grid {
    display: grid;
    gap: 1rem;
}

.settings-hub-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
}

.settings-hub-summary h2 {
    margin: .1rem 0 .25rem;
    color: #061b3a;
    font-size: 1.25rem;
    font-weight: 900;
}

.settings-hub-summary p {
    margin: 0;
    color: #53657f;
}

.settings-hub-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: .55rem;
}

.settings-hub-stats div {
    border: 1px solid #d4e0ef;
    border-radius: 8px;
    padding: .7rem .8rem;
    background: #f8fbff;
}

.settings-hub-stats strong,
.settings-hub-stats span {
    display: block;
}

.settings-hub-stats strong {
    color: #123866;
    font-size: 1rem;
    font-weight: 900;
}

.settings-hub-stats span {
    color: #53657f;
    font-size: .75rem;
    font-weight: 800;
}

.settings-hub-section {
    display: grid;
    gap: .55rem;
}

.settings-hub-section-title {
    color: #5d6f89;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.settings-hub-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

.settings-hub-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: .7rem;
    row-gap: .28rem;
    align-items: start;
    min-height: 94px;
    padding: .75rem;
    border: 1px solid #d4e0ef;
    border-radius: 8px;
    background: #fff;
    color: #061b3a;
    text-decoration: none;
}

.settings-hub-card:hover {
    border-color: #9bb7da;
    box-shadow: 0 14px 30px rgba(15, 45, 82, .08);
}

.settings-hub-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #123866;
    color: #fff;
}

.settings-hub-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.settings-hub-card strong,
.settings-hub-card small {
    display: block;
    grid-column: 2;
}

.settings-hub-card strong {
    margin-top: .1rem;
    font-size: .92rem;
    font-weight: 900;
}

.settings-hub-card small {
    margin-top: 0;
    color: #53657f;
    font-size: .78rem;
    line-height: 1.35;
}

@media (max-width: 1400px) {
    .settings-hub-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) {
    .settings-hub-summary {
        grid-template-columns: 1fr;
    }

    .settings-hub-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .settings-hub-card-grid,
    .settings-hub-stats {
        grid-template-columns: 1fr;
    }
}

.notification-alert-list {
    display: grid;
    gap: .75rem;
}

.notification-alert-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    border-left: 4px solid #2f6fdd;
    padding: 1rem;
}

.notification-alert-danger {
    border-left-color: #dc3545;
}

.notification-alert-warning {
    border-left-color: #d97706;
}

.notification-alert-info {
    border-left-color: #2f6fdd;
}

.notification-alert-main {
    display: grid;
    gap: .45rem;
    min-width: 0;
}

.notification-alert-category {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: #edf4ff;
    color: #1753a6;
    font-size: .72rem;
    font-weight: 900;
    padding: .2rem .55rem;
    text-transform: uppercase;
}

.notification-alert-card h3 {
    margin: .35rem 0 0;
    color: #061b3a;
    font-size: 1rem;
    font-weight: 900;
}

.notification-alert-card p {
    margin: 0;
    color: #30425a;
    font-size: .9rem;
}

.notification-alert-fix {
    display: grid;
    gap: .15rem;
    border-radius: 8px;
    background: #f7fbff;
    color: #40536d;
    padding: .65rem .75rem;
}

.notification-alert-fix strong {
    color: #061b3a;
    font-size: .78rem;
    font-weight: 900;
}

.notification-alert-fix span {
    font-size: .86rem;
}

.notification-alert-side {
    display: grid;
    gap: .45rem;
    justify-items: end;
    min-width: 150px;
    color: #53657f;
    font-size: .82rem;
    font-weight: 700;
}

.notification-alert-side strong {
    color: #061b3a;
    font-size: 1rem;
    font-weight: 900;
}

@media (max-width: 760px) {
    .notification-alert-card {
        grid-template-columns: 1fr;
    }

    .notification-alert-side {
        justify-items: start;
        min-width: 0;
    }
}

@media (min-width: 900px) {
    .suite-page-body:has(.settings-hub-grid) {
        overflow-y: auto !important;
        padding: 0.95rem 0.85rem 1rem !important;
        gap: 0.5rem !important;
    }

    .suite-page-body:has(.settings-hub-grid) .suite-page-header {
        flex: 0 0 auto !important;
        margin: 0 0 0.35rem !important;
        min-height: auto !important;
    }

    .suite-page-body:has(.settings-hub-grid) .suite-page-eyebrow {
        margin-bottom: 0.16rem !important;
        font-size: 0.72rem !important;
        line-height: 1.1 !important;
    }

    .suite-page-body:has(.settings-hub-grid) .suite-page-title {
        font-size: 1.35rem !important;
        line-height: 1.08 !important;
    }

    .suite-page-body:has(.settings-hub-grid) .suite-page-subtitle {
        margin-top: 0.16rem !important;
        font-size: 0.84rem !important;
        line-height: 1.25 !important;
    }

    .suite-page-body:has(.settings-hub-grid) .settings-hub-grid {
        flex: 0 0 auto !important;
        gap: 0.55rem !important;
        padding-bottom: 0.35rem !important;
    }

    .suite-page-body:has(.settings-hub-grid) .settings-hub-summary {
        padding: 0.75rem !important;
    }

    .suite-page-body:has(.settings-hub-grid) .settings-hub-summary h2 {
        font-size: 1.05rem !important;
        line-height: 1.15 !important;
        margin: 0.08rem 0 0.14rem !important;
    }

    .suite-page-body:has(.settings-hub-grid) .settings-hub-summary p {
        font-size: 0.84rem !important;
    }

    .suite-page-body:has(.settings-hub-grid) .settings-hub-section {
        gap: 0.35rem !important;
    }

    .suite-page-body:has(.settings-hub-grid) .settings-hub-card-grid {
        gap: 0.5rem !important;
    }

    .suite-page-body:has(.settings-hub-grid) .settings-hub-card {
        min-height: 78px !important;
        padding: 0.62rem !important;
        grid-template-columns: 38px minmax(0, 1fr) !important;
        column-gap: 0.62rem !important;
    }

    .suite-page-body:has(.settings-hub-grid) .settings-hub-icon {
        width: 38px !important;
        height: 38px !important;
    }

    .suite-page-body:has(.settings-hub-grid) .settings-hub-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .suite-page-body:has(.settings-hub-grid) .settings-hub-card strong {
        font-size: 0.9rem !important;
        line-height: 1.15 !important;
    }

    .suite-page-body:has(.settings-hub-grid) .settings-hub-card small {
        font-size: 0.75rem !important;
        line-height: 1.25 !important;
    }
}

.balance-sheet-report {
    display: grid;
    gap: 0.8rem;
}

.balance-sheet-summary-card {
    margin: 0 !important;
}

.balance-sheet-summary-card .row {
    --bs-gutter-x: 0.85rem;
    --bs-gutter-y: 0.85rem;
}

.balance-sheet-summary-card .info-card {
    min-height: 104px;
    border-radius: 18px;
}

.balance-sheet-alert {
    margin: 0 !important;
    padding: 0.8rem 0.95rem !important;
}

.balance-sheet-alert ul {
    margin-top: 0.45rem !important;
}

.balance-sheet-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.balance-sheet-column {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
}

.balance-sheet-section-card {
    padding: 0.82rem !important;
}

.balance-sheet-section-card h3 {
    margin-bottom: 0.5rem !important;
    font-size: 1.3rem;
    line-height: 1.1;
}

.balance-sheet-section-card .modern-table th,
.balance-sheet-section-card .modern-table td {
    padding-top: 0.42rem;
    padding-bottom: 0.42rem;
}

.balance-sheet-section-card .table-title {
    font-size: 0.82rem;
    line-height: 1.15;
}

.balance-sheet-section-card .table-subtitle {
    font-size: 0.68rem;
}

.balance-sheet-section-card tfoot th {
    border-top: 2px solid #1f2f46;
    font-size: 0.86rem;
}

.balance-sheet-bottom-total {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
    margin: 0 !important;
    padding: 0.82rem !important;
}

.balance-sheet-bottom-total > div {
    border: 1px solid #d4e0ef;
    border-radius: 10px;
    background: #f8fbff;
    padding: 0.72rem 0.85rem;
}

.balance-sheet-bottom-total span,
.balance-sheet-bottom-total strong {
    display: block;
}

.balance-sheet-bottom-total span {
    color: #53657f;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.balance-sheet-bottom-total strong {
    margin-top: 0.25rem;
    color: #061b3a;
    font-size: 1.25rem;
    font-weight: 900;
}

.balance-sheet-bottom-total .is-balanced {
    border-color: #a7d8b6;
    background: #effaf3;
}

.balance-sheet-bottom-total .is-unbalanced {
    border-color: #f1d085;
    background: #fff7da;
}

@media (max-width: 900px) {
    .balance-sheet-grid,
    .balance-sheet-bottom-total {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 900px) {
    .suite-page-body:has(.invoice-details-page) {
        overflow-y: auto !important;
        padding-bottom: 1rem !important;
    }

    .suite-page-body:has(.invoice-details-page) > .invoice-details-page,
    .suite-page-body:has(.invoice-details-page) > .dashboard-grid:last-child {
        flex: 0 0 auto !important;
        overflow: visible !important;
        min-height: auto !important;
    }

    .invoice-details-page {
        gap: 0.85rem !important;
        padding-bottom: 0.4rem !important;
    }

    .invoice-details-page > .content-card:last-child {
        margin-bottom: 0.35rem !important;
    }
}

/* Public legal pages: plain English documents with normal browser scrolling. */
html:has(.legal-page-shell),
body:has(.legal-page-shell) {
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body:has(.legal-page-shell) {
    background: #ffffff !important;
}

.suite-shell:has(.legal-page-shell) {
    display: block !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    background: #ffffff !important;
}

.suite-main:has(.legal-page-shell) {
    display: block !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    background: #ffffff !important;
}

.suite-page-body:has(.legal-page-shell) {
    display: block !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    padding: 0 !important;
    background: #ffffff !important;
}

.suite-page-body:has(.legal-page-shell) .legal-page-shell {
    width: min(1420px, calc(100% - 8rem)) !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    padding: 2.1rem 0 4rem !important;
    display: block !important;
}

.legal-page-actions {
    display: flex !important;
    justify-content: flex-end !important;
    margin-bottom: 1.4rem !important;
}

.legal-home-link {
    min-height: 42px !important;
    padding: 0.65rem 1rem !important;
    border: 1px solid #c9d8ea !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #082650 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.legal-home-link:hover {
    border-color: #0f3d75 !important;
    background: #0f3d75 !important;
    color: #fff !important;
}

.legal-breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    margin: 0 0 1.4rem !important;
    color: #111827 !important;
    font-size: 1rem !important;
    font-weight: 900 !important;
}

.legal-breadcrumb a {
    color: #111827 !important;
    text-decoration: none !important;
}

.legal-public-hero {
    max-width: 980px !important;
    margin-bottom: 2.4rem !important;
}

.legal-public-hero .legal-kicker {
    margin: 0 0 0.5rem !important;
    color: #173a69 !important;
    font-size: 0.78rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

.legal-public-hero h1 {
    margin: 0 !important;
    color: #050915 !important;
    font-size: clamp(3.2rem, 5.5vw, 5.2rem) !important;
    line-height: 1.03 !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
}

.legal-title-rule {
    display: block !important;
    width: 82px !important;
    height: 3px !important;
    margin: 1.55rem 0 1.9rem !important;
    background: #173a69 !important;
}

.legal-public-hero p:last-child {
    margin: 0 !important;
    color: #4b5565 !important;
    font-size: 1.12rem !important;
    line-height: 1.65 !important;
}

.legal-public-nav {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.75rem !important;
    margin: 0 0 2.4rem !important;
}

.legal-public-nav a {
    padding: 0.65rem 0.9rem !important;
    border: 1px solid #d4deea !important;
    border-radius: 999px !important;
    color: #082650 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

.legal-public-nav a.is-active,
.legal-public-nav a:hover {
    border-color: #173a69 !important;
    background: #173a69 !important;
    color: #ffffff !important;
}

.suite-page-body:has(.legal-page-shell) .legal-document-card {
    position: relative !important;
    display: block !important;
    max-width: 1180px !important;
    min-height: auto !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.legal-document-meta {
    margin: 0 0 1.6rem !important;
    color: #5c6678 !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
}

.legal-document-meta strong {
    margin-left: 0.35rem !important;
    color: #111827 !important;
    text-transform: none !important;
}

.suite-page-body:has(.legal-page-shell) .legal-section {
    max-width: 1060px !important;
    margin: 0 0 2rem !important;
    padding: 0 !important;
    border: 0 !important;
}

.suite-page-body:has(.legal-page-shell) .legal-section h2 {
    margin: 0 0 0.75rem !important;
    color: #050915 !important;
    font-size: 1.24rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
}

.suite-page-body:has(.legal-page-shell) .legal-section p {
    margin: 0 0 1.05rem !important;
    color: #465466 !important;
    font-size: 1.08rem !important;
    line-height: 1.75 !important;
}

.legal-contact-form {
    max-width: 620px !important;
    display: grid !important;
    gap: 1.15rem !important;
    margin-bottom: 3rem !important;
}

.legal-contact-alert {
    max-width: 620px !important;
    border-radius: 8px !important;
    padding: 1rem 1.1rem !important;
    margin: 0 0 1.25rem !important;
    font-weight: 800 !important;
}

.legal-contact-alert-success {
    background: #ecfdf3 !important;
    border: 1px solid #abefc6 !important;
    color: #067647 !important;
}

.legal-contact-alert-error {
    background: #fef3f2 !important;
    border: 1px solid #fecdca !important;
    color: #b42318 !important;
}

.legal-contact-form label {
    display: grid !important;
    gap: 0.35rem !important;
    color: #101828 !important;
    font-weight: 800 !important;
}

.legal-contact-form b {
    color: #a41446 !important;
}

.legal-contact-form input,
.legal-contact-form textarea {
    width: 100% !important;
    border: 1px solid #aeb8c6 !important;
    border-radius: 7px !important;
    background: #ffffff !important;
    color: #101828 !important;
    font: inherit !important;
    padding: 1rem !important;
}

.legal-contact-form textarea {
    resize: vertical !important;
}

.legal-contact-form button {
    width: fit-content !important;
    min-width: 128px !important;
    min-height: 54px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #173a69 !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    padding: 0.8rem 1.6rem !important;
}

.suite-main:has(.legal-page-shell) .suite-footer {
    height: auto !important;
    min-height: auto !important;
    padding: 1rem 4rem !important;
    background: #ffffff !important;
    border-top: 1px solid #e3e8ef !important;
}

@media (max-width: 900px) {
    .suite-page-body:has(.legal-page-shell) .legal-page-shell {
        width: min(100% - 2rem, 720px) !important;
    }

    .legal-public-hero h1 {
        font-size: 2.6rem !important;
    }

    .suite-main:has(.legal-page-shell) .suite-footer {
        padding: 1rem !important;
        display: grid !important;
        gap: 0.75rem !important;
    }
}

/* Dashboard income/expense overview: one compact card with the middle slot reserved. */
.suite-page-body-dashboard .dashboard-reference-grid {
    grid-template-areas:
        "chart transactions actions"
        "profit transactions actions" !important;
}

.suite-page-body-dashboard .dashboard-card-chart {
    max-width: none !important;
}

.suite-page-body-dashboard .dashboard-card-chart .acct-panel-header {
    margin-bottom: 0.42rem !important;
}

.suite-page-body-dashboard .acct-overview-donut-card {
    height: calc(100% - 1.85rem) !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-columns: minmax(118px, 0.8fr) minmax(0, 1fr) !important;
    gap: 0.7rem !important;
    align-items: center !important;
    padding: 0.65rem 0.72rem !important;
    border: 1px solid rgba(199, 212, 228, 0.95) !important;
    border-radius: 12px !important;
    background: #f8fbff !important;
    overflow: hidden !important;
}

.suite-page-body-dashboard .acct-overview-donut {
    width: min(132px, 100%) !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    justify-self: center !important;
    box-shadow: inset 0 0 0 1px rgba(15, 35, 65, 0.08) !important;
}

.suite-page-body-dashboard .acct-overview-donut > div {
    width: 68% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    gap: 0.1rem !important;
    padding: 0.25rem !important;
    background: #fff !important;
    text-align: center !important;
    box-shadow: 0 8px 18px rgba(15, 35, 65, 0.08) !important;
}

.suite-page-body-dashboard .acct-overview-donut span,
.suite-page-body-dashboard .acct-overview-metrics span {
    color: #526985 !important;
    font-size: 0.62rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.suite-page-body-dashboard .acct-overview-donut strong {
    color: #06244a !important;
    font-size: 0.9rem !important;
    line-height: 1.05 !important;
    font-weight: 900 !important;
}

.suite-page-body-dashboard .acct-overview-donut small {
    color: #16834f !important;
    font-size: 0.64rem !important;
    font-weight: 900 !important;
}

.suite-page-body-dashboard .acct-overview-metrics {
    display: grid !important;
    gap: 0.52rem !important;
    min-width: 0 !important;
}

.suite-page-body-dashboard .acct-overview-metrics > div {
    display: grid !important;
    gap: 0.18rem !important;
    min-width: 0 !important;
    padding-left: 0.7rem !important;
    border-left: 5px solid #43b96f !important;
}

.suite-page-body-dashboard .acct-overview-metrics > div.expense {
    border-left-color: #2d6cdf !important;
}

.suite-page-body-dashboard .acct-overview-metrics strong {
    color: #06244a !important;
    font-size: 1.28rem !important;
    line-height: 1 !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

.suite-page-body-dashboard .acct-overview-metrics small {
    color: #60718c !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
}

.suite-page-body-dashboard .dashboard-card-actions {
    grid-area: actions !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-panel-header {
    margin-bottom: 0.7rem !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-panel-header h2 {
    font-size: 0.84rem !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-panel-header p {
    font-size: 0.68rem !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: repeat(8, minmax(0, 1fr)) !important;
    gap: 0.42rem !important;
    overflow: hidden !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    min-height: 0 !important;
    height: 100% !important;
    padding: 0.42rem 0.58rem !important;
    border-radius: 10px !important;
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    column-gap: 0.54rem !important;
    overflow: hidden !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-icon {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-icon svg {
    width: 16px !important;
    height: 16px !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item strong {
    font-size: 0.72rem !important;
    line-height: 1.08 !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item small {
    font-size: 0.59rem !important;
    line-height: 1.08 !important;
}

.suite-page-body-dashboard .dashboard-card-transactions {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
}

.suite-page-body-dashboard .dashboard-card-transactions .acct-data-table-shell {
    min-height: 0 !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    padding-right: 0.25rem !important;
    scrollbar-gutter: stable !important;
}

.suite-page-body-dashboard .dashboard-card-transactions .acct-data-table {
    width: 100% !important;
}

.suite-page-body-dashboard .dashboard-card-transactions .acct-data-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    background: #ffffff !important;
}

.suite-page-body-dashboard .acct-clickable-row {
    cursor: pointer !important;
}

.suite-page-body-dashboard .acct-clickable-row:hover td {
    background: #f4f8fd !important;
}

.suite-page-body-dashboard .acct-clickable-card {
    cursor: pointer !important;
}

.suite-page-body-dashboard .acct-clickable-card:hover {
    border-color: #7f9ec3 !important;
    box-shadow: 0 2px 4px rgba(15, 35, 65, 0.08), 0 12px 24px rgba(15, 35, 65, 0.08) !important;
}

.suite-page-body-dashboard .acct-clickable-card:focus-visible {
    outline: 3px solid rgba(45, 108, 223, 0.26) !important;
    outline-offset: 2px !important;
}

.suite-page-body-dashboard .acct-row-link {
    display: block !important;
    color: inherit !important;
    text-decoration: none !important;
}

.suite-page-body-dashboard .dashboard-card-profit {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
}

.suite-page-body-dashboard .dashboard-card-profit .acct-panel-header {
    margin-bottom: 0.6rem !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card {
    min-height: 0 !important;
    height: 100% !important;
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    gap: 0.28rem !important;
    border: 1px solid rgba(199, 212, 228, 0.95) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    text-align: center !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card span {
    color: #53687f !important;
    font-size: 0.74rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.03em !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card strong {
    color: #050915 !important;
    font-size: clamp(2rem, 3.2vw, 3.1rem) !important;
    font-weight: 950 !important;
    line-height: 1 !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card small {
    color: #63728a !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card.is-profit strong {
    color: #15803d !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card.is-loss strong {
    color: #c0262d !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card.is-zero strong {
    color: #050915 !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card.is-blinking {
    animation: fiscal-result-blink 0.7s ease-in-out infinite !important;
}

@keyframes fiscal-result-blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.28;
        transform: scale(0.985);
    }
}

/* Keep the dashboard bottom card borders visible above the fixed footer row. */
@media (min-width: 1101px) {
    .suite-page-body-dashboard {
        padding-bottom: 1.2rem !important;
    }

    .suite-page-body-dashboard .dashboard-page-shell {
        height: calc(100% - 30px) !important;
    }
}

/* Dashboard outline visibility: keep bottom card borders clear of the footer. */
.suite-main-dashboard .suite-page-body-dashboard {
    overflow: hidden !important;
    padding-bottom: 1.15rem !important;
}

.suite-page-body-dashboard .dashboard-page-shell {
    height: calc(100% - 30px) !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
}

.suite-page-body-dashboard .dashboard-reference-grid {
    min-height: 0 !important;
    height: 100% !important;
    padding-bottom: 2px !important;
    box-sizing: border-box !important;
}

.suite-page-body-dashboard .dashboard-summary-card,
.suite-page-body-dashboard .dashboard-panel-card {
    border: 1px solid #aebfd4 !important;
    box-shadow: 0 1px 2px rgba(15, 35, 65, 0.06), 0 8px 18px rgba(15, 35, 65, 0.04) !important;
}

.suite-page-body-dashboard .acct-overview-donut-card,
.suite-page-body-dashboard .acct-fiscal-result-card,
.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    border-color: #b7c6d9 !important;
}

.suite-footer-dashboard {
    border-top: 1px solid #c9d7e8 !important;
    background: #edf4fb !important;
}

/* Hard dashboard frame fix: the footer must never cover the bottom card borders. */
.suite-main-dashboard {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    height: 100vh !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.suite-main-dashboard .suite-topbar {
    min-height: 0 !important;
}

.suite-main-dashboard .suite-page-body-dashboard {
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    padding: 0.64rem 0.86rem 0.72rem !important;
}

.suite-main-dashboard .suite-footer-dashboard {
    min-height: 30px !important;
    padding: 0.24rem 1.1rem 0.34rem !important;
    box-sizing: border-box !important;
}

.suite-page-body-dashboard .dashboard-page-shell {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-rows: 112px minmax(0, 1fr) !important;
    gap: 0.48rem !important;
}

.suite-page-body-dashboard .dashboard-summary-grid {
    height: 112px !important;
}

.suite-page-body-dashboard .dashboard-summary-card {
    height: 112px !important;
}

.suite-page-body-dashboard .dashboard-reference-grid {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-rows: minmax(210px, 0.5fr) minmax(190px, 0.5fr) !important;
    gap: 0.5rem !important;
    padding-bottom: 0 !important;
}

.suite-page-body-dashboard .dashboard-panel-card {
    box-sizing: border-box !important;
    outline: 1px solid rgba(174, 191, 212, 0.25) !important;
    outline-offset: -1px !important;
}

/* Responsive app shell: keep the Accounting workspace usable in half-screen and laptop windows. */
@media (min-width: 901px) and (max-width: 1280px) {
    :root {
        --app-sidebar-width: 74px !important;
        --app-topbar-height: 68px !important;
    }

    html,
    body {
        height: 100vh !important;
        overflow: hidden !important;
    }

    .suite-shell {
        height: 100vh !important;
        min-height: 0 !important;
        display: grid !important;
        grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr) !important;
        overflow: hidden !important;
    }

    .suite-sidebar {
        width: var(--app-sidebar-width) !important;
        min-width: var(--app-sidebar-width) !important;
        max-width: var(--app-sidebar-width) !important;
        height: 100vh !important;
        padding: 0.7rem 0.45rem !important;
        gap: 0.65rem !important;
        overflow: hidden !important;
        align-items: center !important;
    }

    .suite-brand {
        width: 100% !important;
        justify-content: center !important;
        padding: 0 0 0.35rem !important;
    }

    .suite-brand-copy,
    .suite-nav-group-label,
    .suite-nav-link > span:not(.suite-nav-icon),
    .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: none !important;
    }

    .suite-brand-logo,
    .suite-brand-mark {
        width: 46px !important;
        height: 46px !important;
        border-radius: 12px !important;
    }

    .suite-sidebar-nav {
        width: 100% !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        display: grid !important;
        align-content: start !important;
        justify-items: center !important;
        gap: 0.32rem !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-gutter: stable !important;
    }

    .suite-nav-link,
    .suite-sidebar-logout-button {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        justify-content: center !important;
        border-radius: 12px !important;
    }

    .suite-sidebar-bottom {
        width: 100% !important;
        padding-top: 0.35rem !important;
        justify-items: center !important;
    }

    .suite-sidebar-logout-button {
        height: 46px !important;
        background: #d95353 !important;
    }

    .suite-nav-icon {
        margin: 0 !important;
        flex: 0 0 22px !important;
    }

    .suite-main {
        min-width: 0 !important;
        height: 100vh !important;
        display: grid !important;
        grid-template-rows: var(--app-topbar-height) minmax(0, 1fr) var(--app-footer-height) !important;
        overflow: hidden !important;
    }

    .suite-topbar {
        min-width: 0 !important;
        height: var(--app-topbar-height) !important;
        min-height: var(--app-topbar-height) !important;
        grid-template-columns: auto minmax(180px, 1fr) auto !important;
        gap: 0.55rem !important;
        padding: 0.52rem 0.72rem !important;
        overflow: visible !important;
    }

    .suite-topbar-left,
    .suite-topbar-right {
        min-width: 0 !important;
        gap: 0.45rem !important;
        flex-wrap: nowrap !important;
    }

    .suite-menu-button,
    .suite-topbar-action,
    .suite-profile-switch-button,
    .suite-profile-logout-button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    .suite-back-button {
        width: 42px !important;
        min-width: 42px !important;
        padding: 0 !important;
    }

    .suite-back-button span,
    .topbar-company-manage,
    .suite-profile-copy {
        display: none !important;
    }

    .topbar-company-shell,
    .topbar-company-form {
        min-width: 0 !important;
    }

    .topbar-company-select {
        min-width: 0 !important;
        width: clamp(150px, 22vw, 235px) !important;
        max-width: 235px !important;
        padding-left: 0.72rem !important;
        font-size: 0.78rem !important;
    }

    .suite-search-shell {
        min-width: 0 !important;
        min-height: 42px !important;
        padding: 0 0.7rem !important;
    }

    .suite-search-input {
        min-width: 0 !important;
        font-size: 0.86rem !important;
    }

    .suite-profile-chip {
        min-width: 0 !important;
        padding: 0.18rem 0.28rem !important;
        gap: 0.28rem !important;
    }

    .suite-profile-avatar {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    .suite-page-body {
        min-width: 0 !important;
        min-height: 0 !important;
        overflow: auto !important;
        padding: 0.72rem 0.78rem 0.58rem !important;
    }

    .suite-footer {
        min-width: 0 !important;
        overflow: hidden !important;
        gap: 0.7rem !important;
        padding: 0 0.78rem !important;
        font-size: 0.7rem !important;
    }

    .suite-footer > span {
        white-space: nowrap !important;
    }

    .suite-footer-links {
        min-width: 0 !important;
        overflow-x: auto !important;
        gap: 0.7rem !important;
        scrollbar-width: none !important;
    }

    .suite-footer-links::-webkit-scrollbar {
        display: none !important;
    }

    .page-section-header {
        gap: 0.55rem !important;
        flex-wrap: wrap !important;
    }

    .page-section-title {
        font-size: 1.28rem !important;
    }

    .page-toolbar {
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
    }

    .content-card,
    .form-shell,
    .journal-lines-card {
        min-width: 0 !important;
    }

    .table-responsive,
    .acct-data-table-shell {
        overflow-x: auto !important;
    }
}

/* Last override: compact app windows must scroll and the sidebar toggle must expand/collapse visibly. */
@media (max-width: 1280px), (max-height: 760px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    body {
        min-width: 760px !important;
    }

    .suite-shell {
        --app-sidebar-width: 258px;
        display: grid !important;
        grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr) !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .suite-shell.is-sidebar-collapsed {
        --app-sidebar-width: 74px;
        grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr) !important;
    }

    .suite-sidebar {
        position: sticky !important;
        top: 0 !important;
        width: var(--app-sidebar-width) !important;
        min-width: var(--app-sidebar-width) !important;
        max-width: var(--app-sidebar-width) !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0.8rem 0.7rem !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand-copy,
    .suite-shell.is-sidebar-collapsed .suite-nav-group-label,
    .suite-shell.is-sidebar-collapsed .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: none !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand-copy,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-group-label,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: inline !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-nav-link,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .suite-main,
    .suite-main-dashboard {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        min-width: 0 !important;
    }

    .suite-topbar,
    .suite-main-dashboard .suite-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 25 !important;
        height: auto !important;
        min-height: 62px !important;
        display: grid !important;
        grid-template-columns: auto minmax(180px, 1fr) auto !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0.65rem !important;
        overflow: visible !important;
    }

    .suite-topbar-left,
    .suite-topbar-right {
        min-width: 0 !important;
        gap: 0.35rem !important;
        flex-wrap: nowrap !important;
    }

    .suite-menu-button,
    .suite-topbar-action,
    .suite-profile-switch-button,
    .suite-profile-logout-button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .suite-back-button {
        width: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
    }

    .suite-back-button span,
    .topbar-company-manage,
    .suite-profile-copy {
        display: none !important;
    }

    .topbar-company-select {
        width: clamp(150px, 20vw, 250px) !important;
        min-width: 0 !important;
        max-width: 250px !important;
        font-size: 0.78rem !important;
    }

    .suite-search-shell {
        min-width: 160px !important;
        min-height: 40px !important;
        height: 40px !important;
    }

    .suite-page-body,
    .suite-page-body-dashboard,
    .suite-main-dashboard .suite-page-body-dashboard {
        height: auto !important;
        min-height: calc(100vh - 110px) !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0.65rem !important;
    }

    .suite-page-body-dashboard .dashboard-page-shell {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        grid-template-rows: auto auto !important;
    }

    .suite-page-body-dashboard .dashboard-summary-grid,
    .suite-page-body-dashboard .dashboard-reference-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
        gap: 0.55rem !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .suite-page-body-dashboard .dashboard-reference-grid {
        grid-template-areas:
            "chart transactions"
            "profit transactions"
            "actions actions" !important;
        grid-template-rows: none !important;
    }

    .suite-page-body-dashboard .dashboard-summary-card,
    .suite-page-body-dashboard .dashboard-panel-card {
        height: auto !important;
        min-width: 0 !important;
        min-height: 112px !important;
        max-height: none !important;
    }

    .suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list,
    .suite-page-body-dashboard .dashboard-card-transactions .acct-data-table-shell {
        max-height: none !important;
        overflow: visible !important;
    }

    .suite-footer,
    .suite-main-dashboard .suite-footer-dashboard,
    .suite-footer-dashboard {
        position: relative !important;
        height: auto !important;
        min-height: 30px !important;
        overflow: visible !important;
        flex-wrap: wrap !important;
        padding: 0.45rem 0.65rem !important;
    }
}

@media (max-width: 900px) {
    body {
        min-width: 0 !important;
    }

    .suite-shell {
        display: block !important;
    }

    .suite-sidebar {
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .suite-topbar,
    .suite-main-dashboard .suite-topbar {
        grid-template-columns: 1fr !important;
    }

    .suite-page-body-dashboard .dashboard-summary-grid,
    .suite-page-body-dashboard .dashboard-reference-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas: none !important;
    }
}

/* Final compact-window repair. This must remain at the end of the stylesheet. */
@media (max-width: 1280px), (max-height: 760px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    body {
        min-width: 760px !important;
    }

    .suite-shell {
        --app-sidebar-width: 258px;
        display: grid !important;
        grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr) !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .suite-shell.is-sidebar-collapsed {
        --app-sidebar-width: 74px;
        grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr) !important;
    }

    .suite-sidebar {
        position: sticky !important;
        top: 0 !important;
        width: var(--app-sidebar-width) !important;
        min-width: var(--app-sidebar-width) !important;
        max-width: var(--app-sidebar-width) !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0.8rem 0.7rem !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-sidebar {
        align-items: center !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand-copy,
    .suite-shell.is-sidebar-collapsed .suite-nav-group-label,
    .suite-shell.is-sidebar-collapsed .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: none !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand-copy,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-group-label,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: inline !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand,
    .suite-shell.is-sidebar-collapsed .suite-nav-link,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        justify-content: center !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-nav-link,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .suite-main,
    .suite-main-dashboard {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        min-width: 0 !important;
    }

    .suite-topbar,
    .suite-main-dashboard .suite-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 25 !important;
        height: auto !important;
        min-height: 62px !important;
        display: grid !important;
        grid-template-columns: auto minmax(180px, 1fr) auto !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0.65rem !important;
        overflow: visible !important;
    }

    .suite-topbar-left,
    .suite-topbar-right {
        min-width: 0 !important;
        gap: 0.35rem !important;
        flex-wrap: nowrap !important;
    }

    .suite-menu-button,
    .suite-topbar-action,
    .suite-profile-switch-button,
    .suite-profile-logout-button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .suite-back-button {
        width: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
    }

    .suite-back-button span,
    .topbar-company-manage,
    .suite-profile-copy {
        display: none !important;
    }

    .topbar-company-select {
        width: clamp(150px, 20vw, 250px) !important;
        min-width: 0 !important;
        max-width: 250px !important;
        font-size: 0.78rem !important;
    }

    .suite-search-shell {
        min-width: 160px !important;
        min-height: 40px !important;
        height: 40px !important;
    }

    .suite-page-body,
    .suite-page-body-dashboard,
    .suite-main-dashboard .suite-page-body-dashboard {
        height: auto !important;
        min-height: calc(100vh - 110px) !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0.65rem !important;
    }

    .suite-page-body-dashboard .dashboard-page-shell {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        grid-template-rows: auto auto !important;
    }

    .suite-page-body-dashboard .dashboard-summary-grid,
    .suite-page-body-dashboard .dashboard-reference-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
        gap: 0.55rem !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .suite-page-body-dashboard .dashboard-summary-grid {
        grid-template-rows: none !important;
    }

    .suite-page-body-dashboard .dashboard-reference-grid {
        grid-template-areas:
            "chart transactions"
            "profit transactions"
            "actions actions" !important;
        grid-template-rows: none !important;
    }

    .suite-page-body-dashboard .dashboard-summary-card,
    .suite-page-body-dashboard .dashboard-panel-card {
        height: auto !important;
        min-width: 0 !important;
        min-height: 112px !important;
        max-height: none !important;
    }

    .suite-page-body-dashboard .dashboard-card-actions,
    .suite-page-body-dashboard .dashboard-card-transactions {
        max-height: none !important;
    }

    .suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list,
    .suite-page-body-dashboard .dashboard-card-transactions .acct-data-table-shell {
        max-height: none !important;
        overflow: visible !important;
    }

    .table-responsive,
    .acct-data-table-shell {
        overflow-x: auto !important;
    }

    .suite-footer,
    .suite-main-dashboard .suite-footer-dashboard,
    .suite-footer-dashboard {
        position: relative !important;
        height: auto !important;
        min-height: 30px !important;
        overflow: visible !important;
        flex-wrap: wrap !important;
        padding: 0.45rem 0.65rem !important;
    }
}

@media (max-width: 900px) {
    body {
        min-width: 0 !important;
    }

    .suite-shell {
        display: block !important;
    }

    .suite-sidebar {
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .suite-topbar,
    .suite-main-dashboard .suite-topbar {
        grid-template-columns: 1fr !important;
    }

    .suite-page-body-dashboard .dashboard-summary-grid,
    .suite-page-body-dashboard .dashboard-reference-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas: none !important;
    }
}

@media (max-width: 900px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow: auto !important;
    }

    .suite-shell {
        min-height: 100vh !important;
        height: auto !important;
        display: block !important;
        overflow: visible !important;
    }

    .suite-sidebar {
        position: relative !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: 42vh !important;
        padding: 0.75rem !important;
        overflow-y: auto !important;
    }

    .suite-sidebar-nav {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important;
        gap: 0.35rem !important;
        overflow: visible !important;
    }

    .suite-sidebar-bottom {
        margin-top: 0.6rem !important;
    }

    .suite-main {
        min-height: 100vh !important;
        height: auto !important;
        display: block !important;
        overflow: visible !important;
    }

    .suite-topbar {
        position: sticky !important;
        top: 0 !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 0.6rem !important;
        padding: 0.75rem !important;
    }

    .suite-topbar-left,
    .suite-topbar-right {
        min-width: 0 !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }

    .suite-search-shell {
        min-width: 0 !important;
        width: 100% !important;
    }

    .topbar-company-shell {
        min-width: 0 !important;
    }

    .topbar-company-select {
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .suite-page-body,
    .suite-page-body-dashboard {
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        padding: 0.8rem !important;
    }

    .suite-footer {
        height: auto !important;
        min-height: 0 !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 0.55rem 0.8rem !important;
        padding: 0.75rem !important;
    }

    .suite-footer-links {
        flex-wrap: wrap !important;
        gap: 0.55rem 0.8rem !important;
    }

    .page-section-header,
    .journal-entry-create-grid,
    .dashboard-reference-grid,
    .dashboard-summary-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .page-toolbar {
        justify-content: flex-start !important;
        flex-wrap: wrap !important;
    }

    .table-responsive,
    .acct-data-table-shell {
        overflow-x: auto !important;
    }
}


/* Last override: compact app windows must scroll and the sidebar toggle must expand/collapse visibly. */
@media (max-width: 1280px), (max-height: 760px) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: auto !important;
        overflow-y: auto !important;
    }

    body {
        min-width: 760px !important;
    }

    .suite-shell {
        --app-sidebar-width: 258px;
        display: grid !important;
        grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr) !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }

    .suite-shell.is-sidebar-collapsed {
        --app-sidebar-width: 74px;
        grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr) !important;
    }

    .suite-sidebar {
        position: sticky !important;
        top: 0 !important;
        width: var(--app-sidebar-width) !important;
        min-width: var(--app-sidebar-width) !important;
        max-width: var(--app-sidebar-width) !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 0.8rem 0.7rem !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-brand-copy,
    .suite-shell.is-sidebar-collapsed .suite-nav-group-label,
    .suite-shell.is-sidebar-collapsed .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: none !important;
    }

    .suite-shell:not(.is-sidebar-collapsed) .suite-brand-copy,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-group-label,
    .suite-shell:not(.is-sidebar-collapsed) .suite-nav-link > span:not(.suite-nav-icon),
    .suite-shell:not(.is-sidebar-collapsed) .suite-sidebar-logout-button > span:not(.suite-nav-icon) {
        display: inline !important;
    }

    .suite-shell.is-sidebar-collapsed .suite-nav-link,
    .suite-shell.is-sidebar-collapsed .suite-sidebar-logout-button {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .suite-main,
    .suite-main-dashboard {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow: visible !important;
        min-width: 0 !important;
    }

    .suite-topbar,
    .suite-main-dashboard .suite-topbar {
        position: sticky !important;
        top: 0 !important;
        z-index: 25 !important;
        height: auto !important;
        min-height: 62px !important;
        display: grid !important;
        grid-template-columns: auto minmax(180px, 1fr) auto !important;
        align-items: center !important;
        gap: 0.5rem !important;
        padding: 0.5rem 0.65rem !important;
        overflow: visible !important;
    }

    .suite-topbar-left,
    .suite-topbar-right {
        min-width: 0 !important;
        gap: 0.35rem !important;
        flex-wrap: nowrap !important;
    }

    .suite-menu-button,
    .suite-topbar-action,
    .suite-profile-switch-button,
    .suite-profile-logout-button {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
    }

    .suite-back-button {
        width: 40px !important;
        min-width: 40px !important;
        padding: 0 !important;
    }

    .suite-back-button span,
    .topbar-company-manage,
    .suite-profile-copy {
        display: none !important;
    }

    .topbar-company-select {
        width: clamp(150px, 20vw, 250px) !important;
        min-width: 0 !important;
        max-width: 250px !important;
        font-size: 0.78rem !important;
    }

    .suite-search-shell {
        min-width: 160px !important;
        min-height: 40px !important;
        height: 40px !important;
    }

    .suite-page-body,
    .suite-page-body-dashboard,
    .suite-main-dashboard .suite-page-body-dashboard {
        height: auto !important;
        min-height: calc(100vh - 110px) !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0.65rem !important;
    }

    .suite-page-body-dashboard .dashboard-page-shell {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
        grid-template-rows: auto auto !important;
    }

    .suite-page-body-dashboard .dashboard-summary-grid,
    .suite-page-body-dashboard .dashboard-reference-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
        gap: 0.55rem !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
    }

    .suite-page-body-dashboard .dashboard-reference-grid {
        grid-template-areas:
            "chart transactions"
            "profit transactions"
            "actions actions" !important;
        grid-template-rows: none !important;
    }

    .suite-page-body-dashboard .dashboard-summary-card,
    .suite-page-body-dashboard .dashboard-panel-card {
        height: auto !important;
        min-width: 0 !important;
        min-height: 112px !important;
        max-height: none !important;
    }

    .suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-list,
    .suite-page-body-dashboard .dashboard-card-transactions .acct-data-table-shell {
        max-height: none !important;
        overflow: visible !important;
    }

    .suite-footer,
    .suite-main-dashboard .suite-footer-dashboard,
    .suite-footer-dashboard {
        position: relative !important;
        height: auto !important;
        min-height: 30px !important;
        overflow: visible !important;
        flex-wrap: wrap !important;
        padding: 0.45rem 0.65rem !important;
    }
}

@media (max-width: 900px) {
    body {
        min-width: 0 !important;
    }

    .suite-shell {
        display: block !important;
    }

    .suite-sidebar {
        position: relative !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
    }

    .suite-topbar,
    .suite-main-dashboard .suite-topbar {
        grid-template-columns: 1fr !important;
    }

    .suite-page-body-dashboard .dashboard-summary-grid,
    .suite-page-body-dashboard .dashboard-reference-grid {
        grid-template-columns: 1fr !important;
        grid-template-areas: none !important;
    }
}
/* Design system final visual standards: keep after compact layout fixes. */
html,
body {
    font-family: var(--app-font-family) !important;
    color: var(--app-color-text);
    background: var(--app-color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--app-font-family) !important;
    color: var(--app-color-text);
    letter-spacing: 0 !important;
}

.btn,
button.btn,
a.btn {
    border-radius: var(--app-radius-lg) !important;
    font-family: var(--app-font-family) !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
}

.btn-primary {
    border-color: var(--app-color-primary) !important;
    background: var(--app-color-primary) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--app-color-primary-hover) !important;
    background: var(--app-color-primary-hover) !important;
    color: #ffffff !important;
}

.btn-secondary,
.btn-outline-secondary,
.btn-light {
    border-color: var(--app-color-border) !important;
    background: var(--app-color-surface) !important;
    color: var(--app-color-text) !important;
    box-shadow: none !important;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus,
.btn-light:hover,
.btn-light:focus {
    border-color: #c6cfdb !important;
    background: var(--app-color-surface-muted) !important;
    color: var(--app-color-text) !important;
}

.btn-danger {
    border-color: var(--app-color-danger) !important;
    background: var(--app-color-danger) !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.form-control,
.form-select {
    border-color: var(--app-color-border) !important;
    border-radius: var(--app-radius-lg) !important;
    color: var(--app-color-text);
    font-family: var(--app-font-family) !important;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus-visible {
    border-color: var(--app-color-primary) !important;
    box-shadow: 0 0 0 0.18rem rgba(23, 58, 105, 0.16) !important;
}

.content-card,
.form-shell,
.journal-lines-card,
.module-shell-card,
.hero-card,
.acct-stat-card,
.acct-panel,
.acct-onboarding-card,
.dashboard-summary-card,
.dashboard-panel-card,
.legal-index-card,
.legal-document-card {
    border-color: var(--app-color-border) !important;
    border-radius: var(--app-radius-xl) !important;
    background: var(--app-color-surface) !important;
    box-shadow: var(--app-shadow-card) !important;
}

.table {
    border: 1px solid var(--app-color-border) !important;
    border-radius: var(--app-radius-xl) !important;
    box-shadow: var(--app-shadow-card) !important;
}

.table th,
.acct-data-table thead th {
    background: var(--app-color-surface-muted) !important;
    color: var(--app-color-muted) !important;
    border-bottom-color: var(--app-color-border) !important;
    font-weight: 800 !important;
    letter-spacing: 0.04em !important;
}

.table td,
.acct-data-table tbody td {
    color: var(--app-color-text);
    border-color: var(--app-color-border) !important;
}

.table-responsive,
.acct-data-table-shell {
    border-radius: var(--app-radius-xl);
}

/* Dashboard final visual polish: keep after all compact/dashboard overrides. */
.suite-page-body-dashboard .dashboard-header {
    align-items: center !important;
    margin-bottom: 0.6rem !important;
}

.suite-page-body-dashboard .dashboard-header .page-section-title {
    color: #162235 !important;
    font-size: 1.2rem !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
}

.suite-page-body-dashboard .dashboard-header .page-section-text,
.suite-page-body-dashboard .acct-panel-header p,
.suite-page-body-dashboard .acct-quick-action-copy small,
.suite-page-body-dashboard .dashboard-summary-card small {
    color: var(--app-color-muted) !important;
}

.suite-page-body-dashboard .dashboard-toolbar {
    gap: 0.5rem !important;
}

.suite-page-body-dashboard .dashboard-period-select-chip,
.suite-page-body-dashboard .dashboard-toolbar .suite-secondary-action {
    min-height: 36px !important;
    border: 1px solid var(--app-color-border) !important;
    border-radius: var(--app-radius-lg) !important;
    background: var(--app-color-surface) !important;
    color: var(--app-color-text) !important;
    box-shadow: none !important;
}

.suite-page-body-dashboard .dashboard-summary-grid,
.suite-page-body-dashboard .dashboard-reference-grid {
    gap: 0.7rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card,
.suite-page-body-dashboard .dashboard-panel-card {
    border: 1px solid var(--app-color-border) !important;
    border-radius: var(--app-radius-xl) !important;
    background: var(--app-color-surface) !important;
    box-shadow: var(--app-shadow-card) !important;
}

.suite-page-body-dashboard .dashboard-summary-card {
    min-height: 110px !important;
    padding: 0.86rem 3.8rem 0.82rem 0.95rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-top {
    align-items: flex-start !important;
    gap: 0.5rem !important;
    margin-bottom: 0.42rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-top span {
    color: #2c3a4d !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
}

.suite-page-body-dashboard .dashboard-summary-card strong {
    color: #13253d !important;
    font-size: 1.34rem !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
}

.suite-page-body-dashboard .dashboard-summary-card strong.info {
    color: var(--app-color-primary) !important;
}

.suite-page-body-dashboard .dashboard-summary-card strong.negative {
    color: var(--app-color-danger) !important;
}

.suite-page-body-dashboard .dashboard-summary-card small {
    max-width: 100% !important;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
}

.suite-page-body-dashboard .acct-stat-delta {
    min-height: 24px !important;
    padding: 0.18rem 0.46rem !important;
    border-radius: 999px !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-icon {
    right: 0.9rem !important;
    bottom: 0.82rem !important;
    width: 38px !important;
    height: 38px !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-icon svg {
    width: 20px !important;
    height: 20px !important;
}

.suite-page-body-dashboard .dashboard-panel-card {
    padding: 0.86rem 0.95rem !important;
}

.suite-page-body-dashboard .acct-panel-header {
    margin-bottom: 0.62rem !important;
    gap: 0.7rem !important;
}

.suite-page-body-dashboard .acct-panel-header h2 {
    color: #162235 !important;
    font-size: 0.94rem !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
}

.suite-page-body-dashboard .acct-panel-header p,
.suite-page-body-dashboard .acct-panel-header a {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
}

.suite-page-body-dashboard .acct-panel-header a {
    color: var(--app-color-primary) !important;
    font-weight: 800 !important;
}

.suite-page-body-dashboard .acct-panel-toggle {
    border: 1px solid #cfd8e5 !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
    color: #334155 !important;
    font-weight: 800 !important;
}

.suite-page-body-dashboard .acct-overview-metrics > div,
.suite-page-body-dashboard .acct-fiscal-result-card {
    border: 1px solid #e1e7ef !important;
    border-radius: var(--app-radius-lg) !important;
    background: #f8fafc !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card {
    justify-content: center !important;
    box-shadow: none !important;
}

.suite-page-body-dashboard .acct-quick-action-list {
    gap: 0.42rem !important;
}

.suite-page-body-dashboard .acct-quick-action-item {
    border: 1px solid #e1e7ef !important;
    border-radius: var(--app-radius-lg) !important;
    background: #ffffff !important;
    color: var(--app-color-text) !important;
    box-shadow: none !important;
}

.suite-page-body-dashboard .acct-quick-action-item:hover,
.suite-page-body-dashboard .acct-clickable-card:hover {
    border-color: #c6d3e2 !important;
    background: #fbfdff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 12px 26px rgba(18, 39, 70, 0.08) !important;
}

.suite-page-body-dashboard .acct-quick-action-copy strong {
    color: #1f2d3f !important;
    font-weight: 800 !important;
}

.suite-page-body-dashboard .acct-data-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 0.78rem !important;
}

.suite-page-body-dashboard .acct-data-table thead th {
    background: #f8fafc !important;
    color: #64748b !important;
    font-size: 0.68rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
}

.suite-page-body-dashboard .acct-data-table tbody td {
    color: #263548 !important;
    border-bottom-color: #e7edf5 !important;
}

.suite-page-body-dashboard .acct-clickable-row:hover {
    background: #f8fbff !important;
}

.suite-page-body-dashboard .acct-row-link {
    color: inherit !important;
    text-decoration: none !important;
}

.suite-page-body-dashboard .acct-empty-state {
    border: 1px dashed #cbd5e1 !important;
    border-radius: var(--app-radius-lg) !important;
    background: #f8fafc !important;
    color: var(--app-color-muted) !important;
}
.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-page {
    display: grid !important;
    gap: 0.85rem !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header {
    display: grid !important;
    gap: 0.95rem !important;
    margin: 0 !important;
    padding: 1.05rem 1.15rem !important;
    border: 1px solid var(--app-color-border) !important;
    border-radius: var(--app-radius-xl) !important;
    background: #ffffff !important;
    box-shadow: var(--app-shadow-card) !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 1.1rem !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .eyebrow {
    color: var(--app-color-primary) !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .page-section-title {
    margin: 0.18rem 0 0.24rem !important;
    color: #142238 !important;
    font-size: 1.55rem !important;
    line-height: 1.1 !important;
    font-weight: 850 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .page-section-text {
    margin: 0 !important;
    max-width: 780px !important;
    color: var(--app-color-muted) !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.55rem !important;
    margin: 0 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-actions .btn {
    min-height: 38px !important;
    padding: 0.5rem 0.92rem !important;
    border-radius: var(--app-radius-lg) !important;
    white-space: nowrap !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .invoice-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0.85rem 0 0 !important;
    border-top: 1px solid #e4eaf2 !important;
    background: transparent !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .invoice-filter-chip {
    min-height: 36px !important;
    padding: 0 0.92rem !important;
    border: 1px solid #d8e0eb !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #43546b !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .invoice-filter-chip:hover {
    border-color: #bfd0e3 !important;
    background: #f8fbff !important;
    color: var(--app-color-primary) !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .invoice-filter-chip.is-active {
    border-color: var(--app-color-primary) !important;
    background: var(--app-color-primary) !important;
    color: #ffffff !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-table-card {
    padding: 0 !important;
    overflow: hidden !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-table-card .modern-table th {
    background: #f8fafc !important;
    color: #5e6f86 !important;
    font-size: 0.76rem !important;
    font-weight: 900 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-table-card .modern-table td {
    border-color: #e3e9f1 !important;
}

@media (max-width: 1100px) {
    .suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header-main {
        grid-template-columns: 1fr !important;
    }

    .suite-page-body:not(.suite-page-body-dashboard) .invoice-list-actions {
        justify-content: flex-start !important;
    }
}
/* Invoices list scroll fix: this must stay after all compact layout overrides. */
html:has(.invoice-list-page),
body:has(.invoice-list-page) {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
}

.suite-shell:has(.invoice-list-page),
.suite-main:has(.invoice-list-page) {
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
}

.suite-page-body:has(.invoice-list-page) {
    height: auto !important;
    min-height: calc(100vh - 110px) !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding-bottom: 1.25rem !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-page,
.suite-page-body:has(.invoice-list-page) .invoice-list-table-card {
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card .table-responsive {
    overflow-x: auto !important;
    overflow-y: visible !important;
}
/* Invoices list internal scroll: keep the page fixed and scroll only invoice rows. */
html:has(.invoice-list-page),
body:has(.invoice-list-page) {
    height: 100% !important;
    overflow: hidden !important;
}

.suite-shell:has(.invoice-list-page),
.suite-main:has(.invoice-list-page) {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

.suite-page-body:has(.invoice-list-page) {
    height: calc(100vh - 110px) !important;
    min-height: 0 !important;
    max-height: calc(100vh - 110px) !important;
    overflow: hidden !important;
    padding-bottom: 0.75rem !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-page {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card {
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card .table-responsive {
    height: 100% !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card .modern-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
}
.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-page {
    display: grid !important;
    gap: 0.85rem !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-header {
    display: grid !important;
    gap: 0.95rem !important;
    margin: 0 !important;
    padding: 1.05rem 1.15rem !important;
    border: 1px solid var(--app-color-border) !important;
    border-radius: var(--app-radius-xl) !important;
    background: #ffffff !important;
    box-shadow: var(--app-shadow-card) !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-header-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 1.1rem !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-header .eyebrow {
    color: var(--app-color-primary) !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-header .page-section-title {
    margin: 0.18rem 0 0.24rem !important;
    color: #142238 !important;
    font-size: 1.55rem !important;
    line-height: 1.1 !important;
    font-weight: 850 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-header .page-section-text {
    margin: 0 !important;
    max-width: 780px !important;
    color: var(--app-color-muted) !important;
    font-size: 0.9rem !important;
    line-height: 1.45 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-actions {
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 0.55rem !important;
    margin: 0 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-actions .btn {
    min-height: 38px !important;
    padding: 0.5rem 0.92rem !important;
    border-radius: var(--app-radius-lg) !important;
    white-space: nowrap !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-filter-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 0.85rem 0 0 !important;
    border-top: 1px solid #e4eaf2 !important;
    background: transparent !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-filter-chip {
    min-height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 0.92rem !important;
    border: 1px solid #d8e0eb !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #43546b !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-filter-chip:hover {
    border-color: #bfd0e3 !important;
    background: #f8fbff !important;
    color: var(--app-color-primary) !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-filter-chip.is-active {
    border-color: var(--app-color-primary) !important;
    background: var(--app-color-primary) !important;
    color: #ffffff !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-table-card {
    padding: 0 !important;
    overflow: hidden !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-table-card .modern-table th {
    background: #f8fafc !important;
    color: #5e6f86 !important;
    font-size: 0.76rem !important;
    font-weight: 900 !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-table-card .modern-table td {
    border-color: #e3e9f1 !important;
}

html:has(.purchase-list-page),
body:has(.purchase-list-page) {
    height: 100% !important;
    overflow: hidden !important;
}

.suite-shell:has(.purchase-list-page),
.suite-main:has(.purchase-list-page) {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

.suite-page-body:has(.purchase-list-page) {
    height: calc(100vh - 110px) !important;
    min-height: 0 !important;
    max-height: calc(100vh - 110px) !important;
    overflow: hidden !important;
    padding-bottom: 0.75rem !important;
}

.suite-page-body:has(.purchase-list-page) .purchase-list-page {
    height: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    overflow: hidden !important;
}

.suite-page-body:has(.purchase-list-page) .purchase-list-table-card {
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}

.suite-page-body:has(.purchase-list-page) .purchase-list-table-card .table-responsive {
    height: 100% !important;
    min-height: 0 !important;
    overflow-x: auto !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
}

.suite-page-body:has(.purchase-list-page) .purchase-list-table-card .modern-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
}

@media (max-width: 1100px) {
    .suite-page-body:not(.suite-page-body-dashboard) .purchase-list-header-main {
        grid-template-columns: 1fr !important;
    }

    .suite-page-body:not(.suite-page-body-dashboard) .purchase-list-actions {
        justify-content: flex-start !important;
    }
}

/* Dashboard card outline polish. Keep this after dashboard layout overrides. */
.suite-page-body-dashboard {
    --dashboard-soft-border: rgba(135, 154, 181, 0.24);
    --dashboard-soft-border-inner: rgba(135, 154, 181, 0.18);
    --dashboard-soft-shadow: 0 8px 18px rgba(17, 38, 68, 0.045);
}

.suite-page-body-dashboard .dashboard-summary-card,
.suite-page-body-dashboard .dashboard-panel-card {
    border-color: var(--dashboard-soft-border) !important;
    box-shadow: var(--dashboard-soft-shadow) !important;
}

.suite-page-body-dashboard .acct-overview-donut-card,
.suite-page-body-dashboard .acct-overview-metrics > div,
.suite-page-body-dashboard .acct-fiscal-result-card,
.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    border-color: var(--dashboard-soft-border-inner) !important;
    box-shadow: none !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    background: #ffffff !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item:hover,
.suite-page-body-dashboard .acct-clickable-card:hover {
    border-color: rgba(63, 93, 139, 0.34) !important;
    box-shadow: 0 10px 22px rgba(17, 38, 68, 0.075) !important;
}

.suite-page-body-dashboard .acct-data-table tbody td {
    border-bottom-color: rgba(135, 154, 181, 0.16) !important;
}

/* Dashboard premium pass: reduce boxed outlines and add stronger visual hierarchy. */
.suite-page-body-dashboard {
    background:
        linear-gradient(180deg, #eef4fb 0%, #f7fafc 34%, #f3f7fb 100%) !important;
    --dashboard-premium-shadow: 0 18px 42px rgba(20, 37, 63, 0.11);
    --dashboard-panel-shadow: 0 14px 34px rgba(20, 37, 63, 0.08);
}

.suite-page-body-dashboard .dashboard-header {
    padding: 0.35rem 0.15rem 0.15rem !important;
}

.suite-page-body-dashboard .dashboard-header .page-section-title {
    color: #0f1f36 !important;
    font-size: 1.24rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.suite-page-body-dashboard .dashboard-period-select-chip,
.suite-page-body-dashboard .dashboard-toolbar .suite-secondary-action {
    border-color: rgba(122, 140, 166, 0.2) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 10px 24px rgba(20, 37, 63, 0.07) !important;
}

.suite-page-body-dashboard .dashboard-summary-grid,
.suite-page-body-dashboard .dashboard-reference-grid {
    gap: 0.78rem !important;
}

.suite-page-body-dashboard .dashboard-summary-card,
.suite-page-body-dashboard .dashboard-panel-card {
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: var(--dashboard-panel-shadow) !important;
}

.suite-page-body-dashboard .dashboard-summary-card {
    position: relative !important;
    min-height: 118px !important;
    padding: 0.95rem 3.95rem 0.88rem 1rem !important;
    overflow: hidden !important;
}

.suite-page-body-dashboard .dashboard-summary-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 4px !important;
    background: #1d5fa7 !important;
}

.suite-page-body-dashboard .dashboard-summary-card:nth-child(2)::before {
    background: #c27a18 !important;
}

.suite-page-body-dashboard .dashboard-summary-card:nth-child(3)::before {
    background: #239a63 !important;
}

.suite-page-body-dashboard .dashboard-summary-card:nth-child(4)::before {
    background: #c94b54 !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-top span,
.suite-page-body-dashboard .acct-panel-header h2,
.suite-page-body-dashboard .acct-quick-action-copy strong {
    letter-spacing: 0 !important;
}

.suite-page-body-dashboard .dashboard-summary-card strong {
    margin-top: 0.1rem !important;
    font-size: 1.46rem !important;
    font-weight: 900 !important;
}

.suite-page-body-dashboard .dashboard-summary-card small {
    color: #637186 !important;
    font-size: 0.73rem !important;
}

.suite-page-body-dashboard .acct-stat-delta {
    background: #eef3f8 !important;
    color: #50627a !important;
}

.suite-page-body-dashboard .dashboard-summary-card .acct-stat-icon {
    width: 42px !important;
    height: 42px !important;
    right: 0.85rem !important;
    bottom: 0.82rem !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 10px 20px rgba(20, 37, 63, 0.08) !important;
}

.suite-page-body-dashboard .dashboard-panel-card {
    padding: 0.95rem 1rem !important;
}

.suite-page-body-dashboard .dashboard-card-chart,
.suite-page-body-dashboard .dashboard-card-profit {
    box-shadow: var(--dashboard-premium-shadow) !important;
}

.suite-page-body-dashboard .acct-overview-donut-card,
.suite-page-body-dashboard .acct-fiscal-result-card {
    border: 0 !important;
    border-radius: 8px !important;
    background:
        linear-gradient(135deg, #ffffff 0%, #f5f8fb 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(133, 151, 176, 0.14) !important;
}

.suite-page-body-dashboard .acct-overview-metrics > div {
    border: 0 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: inset 0 0 0 1px rgba(133, 151, 176, 0.16) !important;
}

.suite-page-body-dashboard .acct-overview-metrics > div.income {
    box-shadow: inset 3px 0 0 #239a63, inset 0 0 0 1px rgba(133, 151, 176, 0.16) !important;
}

.suite-page-body-dashboard .acct-overview-metrics > div.expense {
    box-shadow: inset 3px 0 0 #2d6cdf, inset 0 0 0 1px rgba(133, 151, 176, 0.16) !important;
}

.suite-page-body-dashboard .acct-overview-donut {
    filter: drop-shadow(0 16px 22px rgba(20, 37, 63, 0.12)) !important;
}

.suite-page-body-dashboard .acct-fiscal-result-card strong {
    text-shadow: 0 8px 18px rgba(19, 120, 71, 0.16) !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item {
    border: 0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(133, 151, 176, 0.18), 0 8px 18px rgba(20, 37, 63, 0.04) !important;
}

.suite-page-body-dashboard .dashboard-card-actions .acct-quick-action-item:hover,
.suite-page-body-dashboard .acct-clickable-card:hover {
    border-color: transparent !important;
    background: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 18px 36px rgba(20, 37, 63, 0.14) !important;
}

.suite-page-body-dashboard .dashboard-card-transactions .acct-data-table-shell {
    border: 0 !important;
    border-radius: 8px !important;
    background: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(133, 151, 176, 0.14) !important;
}

.suite-page-body-dashboard .acct-data-table thead th {
    background: #f3f7fb !important;
    color: #58677d !important;
    letter-spacing: 0 !important;
}

.suite-page-body-dashboard .acct-clickable-row:hover td {
    background: #f5f9ff !important;
}

/* Module summary cards match the dashboard card system while preserving page-specific filters. */
.invoice-summary-grid,
.purchase-summary-grid,
.partner-summary-grid,
.chart-account-summary-grid,
.journal-workflow-stats {
    gap: 0.78rem !important;
}

.invoice-summary-card,
.purchase-summary-card,
.partner-summary-card,
.account-summary-card,
.journal-summary-card {
    position: relative !important;
    min-height: 110px !important;
    padding: 0.86rem 3.8rem 0.82rem 0.95rem !important;
    border: 1px solid var(--app-color-border) !important;
    border-radius: 8px !important;
    background: var(--app-color-surface) !important;
    box-shadow: var(--app-shadow-card) !important;
    color: var(--app-color-text) !important;
    overflow: hidden !important;
    text-decoration: none !important;
}

a.journal-summary-card {
    cursor: pointer !important;
}

a.account-summary-card {
    cursor: pointer !important;
    text-decoration: none !important;
}

.invoice-summary-card:hover,
.purchase-summary-card:hover,
.partner-summary-card:hover,
.account-summary-card:hover,
.journal-summary-card:hover {
    border-color: transparent !important;
    background: #ffffff !important;
    box-shadow: 0 18px 36px rgba(20, 37, 63, 0.14) !important;
    transform: translateY(-2px) !important;
}

.invoice-summary-card.is-selected,
.purchase-summary-card.is-selected,
.partner-summary-card.is-selected,
.account-summary-card.is-selected,
.journal-summary-card.is-selected {
    border-color: #102f57 !important;
    box-shadow: inset 0 0 0 1px #102f57, 0 14px 30px rgba(16, 47, 87, 0.12) !important;
}

.invoice-summary-card span,
.purchase-summary-card span,
.partner-summary-card span,
.account-summary-card span,
.journal-summary-card span {
    color: #2c3a4d !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
}

.invoice-summary-card strong,
.purchase-summary-card strong,
.partner-summary-card strong,
.account-summary-card strong,
.journal-summary-card strong {
    display: block !important;
    margin-top: 0.1rem !important;
    color: #13253d !important;
    font-size: 1.34rem !important;
    line-height: 1.12 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.invoice-summary-card small,
.purchase-summary-card small,
.partner-summary-card small,
.account-summary-card small,
.journal-summary-card small {
    display: block !important;
    max-width: 100% !important;
    margin-top: 0.5rem !important;
    color: #637186 !important;
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
}

.invoice-summary-card::before,
.purchase-summary-card::before,
.partner-summary-card::before,
.account-summary-card::before,
.journal-summary-card::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 auto 0 0 !important;
    width: 4px !important;
}

.invoice-summary-card .acct-stat-icon,
.purchase-summary-card .acct-stat-icon,
.partner-summary-card .partner-stat-icon,
.account-summary-card .acct-stat-icon,
.journal-summary-card .acct-stat-icon {
    position: absolute !important;
    right: 0.9rem !important;
    bottom: 0.82rem !important;
    width: 38px !important;
    height: 38px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 999px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85), 0 10px 20px rgba(20, 37, 63, 0.08) !important;
}

.invoice-summary-card .acct-stat-icon svg,
.purchase-summary-card .acct-stat-icon svg,
.partner-summary-card .partner-stat-icon svg,
.account-summary-card .acct-stat-icon svg,
.journal-summary-card .acct-stat-icon svg {
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    stroke-width: 1.9 !important;
}

.invoice-summary-card .acct-stat-icon.neutral,
.purchase-summary-card .acct-stat-icon.neutral {
    color: #627792 !important;
    background: #eef3f8 !important;
}

.invoice-summary-card.is-total::before,
.purchase-summary-card.is-total::before {
    background: #1d5fa7 !important;
}

.invoice-summary-card.is-outstanding::before,
.invoice-summary-card.is-paid::before,
.purchase-summary-card.is-paid::before {
    background: #239a63 !important;
}

.purchase-summary-card.is-outstanding::before {
    background: #c27a18 !important;
}

.invoice-summary-card.is-overdue::before,
.purchase-summary-card.is-overdue::before {
    background: #c94b54 !important;
}

.invoice-summary-card.is-draft::before,
.purchase-summary-card.is-draft::before {
    background: #8793a3 !important;
}

.invoice-summary-card.is-overdue strong,
.purchase-summary-card.is-overdue strong {
    color: var(--app-color-danger) !important;
}

.account-summary-card.is-total::before,
.journal-summary-card.is-total::before {
    background: #1d5fa7 !important;
}

.account-summary-card.is-asset::before,
.journal-summary-card.is-debit::before {
    background: #1d5fa7 !important;
}

.account-summary-card.is-equity::before,
.journal-summary-card.is-credit::before {
    background: #239a63 !important;
}

.account-summary-card.is-liability::before,
.journal-summary-card.is-reversed::before {
    background: #c94b54 !important;
}

.account-summary-card.is-liability strong,
.journal-summary-card.is-reversed strong {
    color: var(--app-color-danger) !important;
}

/* Final purchase bills layout: compact header/cards/search, table owns remaining height. */
.suite-page-body:has(.purchase-list-page) .purchase-list-page {
    display: grid !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
    gap: 0.75rem !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .purchase-list-header {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.1rem 0.95rem 0.15rem !important;
}

.suite-page-body:has(.purchase-list-page) .purchase-summary-grid,
.suite-page-body:has(.purchase-list-page) .purchase-search-card {
    position: relative !important;
    z-index: 1 !important;
}

.suite-page-body:has(.purchase-list-page) .purchase-list-table-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden !important;
}

.suite-page-body:has(.purchase-list-page) .purchase-list-table-card .table-responsive {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
}

.suite-page-body:has(.purchase-list-page) .purchase-summary-card {
    min-height: 74px !important;
    padding: 10px 12px !important;
}

.suite-page-body:has(.purchase-list-page) .purchase-table {
    min-width: 0 !important;
    width: 100% !important;
}

/* Final invoice list layout: title area is not a card, and each page section owns its row. */
.suite-page-body:has(.invoice-list-page) .invoice-list-page {
    display: grid !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) !important;
    gap: 0.75rem !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.1rem 0.95rem 0.15rem !important;
}

.suite-page-body:not(.suite-page-body-dashboard) .invoice-list-header .invoice-filter-bar {
    border-top: 1px solid #d9e3ef !important;
    padding-top: 0.7rem !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-summary-grid,
.suite-page-body:has(.invoice-list-page) .invoice-search-card {
    position: relative !important;
    z-index: 1 !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.suite-page-body:has(.invoice-list-page) .invoice-list-table-card .table-responsive {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: auto !important;
}

/* Roles & Access cleanup: compact role summaries and give the matrix usable space. */
.suite-page-body:has(.access-role-grid-compact) .access-role-grid-compact {
    align-items: stretch !important;
    display: grid !important;
    flex: 0 0 auto !important;
    gap: .55rem !important;
    grid-auto-rows: auto !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    height: auto !important;
    margin-bottom: .55rem !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.suite-page-body:has(.access-role-grid-compact) .access-role-card {
    border-radius: 8px !important;
    display: grid !important;
    gap: .42rem !important;
    grid-template-rows: auto auto !important;
    height: 245px !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: .58rem !important;
}

.suite-page-body:has(.access-role-grid-compact) .access-role-card-head {
    min-height: 0 !important;
}

.suite-page-body:has(.access-role-grid-compact) .access-role-card-head h3 {
    font-size: 1rem !important;
    line-height: 1.05 !important;
    margin: .05rem 0 .08rem !important;
}

.suite-page-body:has(.access-role-grid-compact) .access-role-card-head p {
    font-size: .78rem !important;
    line-height: 1.18 !important;
    margin: 0 !important;
}

.suite-page-body:has(.access-role-grid-compact) .access-role-columns {
    display: grid !important;
    gap: .42rem !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: 1fr !important;
    height: 165px !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

.suite-page-body:has(.access-role-grid-compact) .access-permission-panel {
    border-radius: 8px !important;
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    padding: .42rem .48rem !important;
}

.suite-page-body:has(.access-role-grid-compact) .access-permission-panel h4 {
    font-size: .68rem !important;
    margin: 0 0 .25rem !important;
}

.suite-page-body:has(.access-role-grid-compact) .access-permission-panel ul {
    font-size: .76rem !important;
    line-height: 1.18 !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding-left: .9rem !important;
}

.suite-page-body:has(.access-role-grid-compact) .access-permission-panel li {
    margin-bottom: .18rem !important;
}

.suite-page-body:has(.access-role-grid-compact) .permission-matrix-card-scroll {
    max-height: 390px !important;
}

.suite-page-body:has(.access-role-grid-compact) .permission-matrix-scroll {
    max-height: 315px !important;
    overflow-y: auto !important;
}

/* Final sidebar brand override. */
.suite-shell:not(.is-sidebar-collapsed) .suite-brand-copy {
    display: block !important;
    min-width: 0 !important;
}

.suite-shell:not(.is-sidebar-collapsed) .suite-brand-title,
.suite-shell:not(.is-sidebar-collapsed) .suite-brand-accent {
    font-size: 1.06rem !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.03 !important;
}
