/* Approved navy / light workspace, refined 26 September 2026.
   Presentation only: do not change permissions, navigation state, data, or print templates.
   The opt-in body class outranks older component styles without altering their behavior. */
@media screen {
    html body.erp-formal-theme.erp-approved-design {
        --fin-ink: #152c48;
        --fin-muted: #586d83;
        --fin-accent: #087f88;
        --fin-accent-dark: #08616a;
        --fin-soft: #e8f6f5;
        --fin-paper: #f3f6fa;
        --fin-line: #dce5ef;
        --fin-line-strong: #afbfce;
        --fin-radius: 10px;
        --fin-shadow: 0 3px 14px rgb(21 44 72 / 5%);
        --fin-shadow-raised: 0 10px 30px rgb(21 44 72 / 10%);
        --workspace-nav: #142333;
        --workspace-nav-parent: #20394d;
        --workspace-nav-line: #41576a;
        --erp-control-height: 38px;
        --erp-table-control-height: 34px;
        --erp-list-action-height: 30px;
        --bs-primary-rgb: 8, 127, 136;
        background: var(--fin-paper);
        color: var(--fin-ink);
        font-size: .94rem;
    }

    /* Frame: reserve most of the viewport for the working document. */
    html body.erp-approved-design .erp-layout { --erp-header-height:64px; background:var(--fin-paper); }
    html body.erp-approved-design .erp-layout:not(.sidebar-hidden) { --erp-sidebar-width:258px; }
    html body.erp-approved-design .erp-main-workspace,
    html body.erp-approved-design .erp-content-scroll { background:var(--fin-paper); background-image:none; }
    html body.erp-approved-design .erp-content-scroll > article.content { padding:18px 22px 26px!important; }
    html body.erp-approved-design .erp-top-header {
        flex:0 0 64px; height:64px; min-height:64px; padding-inline:20px;
        background:#fff; border-bottom:1px solid var(--fin-line); box-shadow:none; backdrop-filter:none;
    }
    html body.erp-approved-design .erp-top-header .header-user-section { gap:10px!important; }
    html body.erp-approved-design .erp-top-header .brand-name,
    html body.erp-approved-design .erp-top-header .brand-name span { color:var(--fin-ink); }
    html body.erp-approved-design .erp-top-header .brand-context { color:var(--fin-muted); font-size:.7rem; }
    html body.erp-approved-design .user-avatar { width:36px; height:36px; border-radius:50%; background:#edf2f7; color:#405971; border:1px solid var(--fin-line); }
    html body.erp-approved-design .branch-context { border-radius:8px; background:#f3f6fa; border-color:var(--fin-line); }
    html body.erp-approved-design :is(.sidebar-collapse-btn,.mobile-toggle-btn,.language-switch,.keyboard-shortcuts-button,.btn-logout) {
        min-height:36px; border-radius:8px; background:#fff; border-color:var(--fin-line); color:#3c536c; box-shadow:none;
    }

    /* Navigation: module (bold surface) > section (quiet heading) > screen (tree leaf).
       Keep native details, link hit targets, permission-hidden elements and route state intact. */
    html body.erp-formal-theme.erp-approved-design .erp-sidebar,
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar { background:var(--workspace-nav); background-image:none; color:#e9f0f7; border:0; box-shadow:none; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .top-row { min-height:82px; padding:18px 16px 12px; background:transparent; border-bottom:1px solid #ffffff10; }
    html body.erp-approved-design .sidebar-brand-copy strong,
    html body.erp-approved-design .sidebar-brand-copy strong span { color:#f6f9fc; font-size:1.22rem; }
    html body.erp-approved-design .sidebar-brand-copy small { color:#aebfd0; font-size:.57rem; letter-spacing:.015em; }
    html body.erp-approved-design .sidebar-logo-frame { width:40px; height:40px; flex:0 0 40px; border-radius:9px; box-shadow:none; }
    html body.erp-approved-design .sidebar-logo-frame img { width:34px; height:34px; object-fit:contain; }
    html body.erp-approved-design .sidebar-suite-label { margin-top:8px; padding-top:0; border:0; }
    html body.erp-approved-design .sidebar-suite-label small { color:#b9c8d5; font-size:.68rem; }
    html body.erp-approved-design .sidebar-search { margin:12px 12px 8px; }
    html body.erp-approved-design .sidebar-search-field { min-height:38px; border-radius:8px; background:#1c3042; border:1px solid #3a5063; }
    html body.erp-approved-design .sidebar-search-field input { color:#f8fafc; font-size:.82rem; background:transparent; }
    html body.erp-approved-design .sidebar-search-field input::placeholder { color:#b6c6d4; }
    html body.erp-approved-design .sidebar-search-field kbd { font-size:.58rem; color:#bdcddd; background:#142333; border-color:#465c70; }
    html body.erp-approved-design .sidebar-search-result { color:#edf5fa; background:#20394d; border-color:#41576a; }
    html body.erp-approved-design .sidebar-search-result small,
    html body.erp-approved-design .sidebar-search-empty { color:#c3d1dd; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-tree { padding:4px 12px 24px!important; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-scrollable { scrollbar-color:#4c6276 transparent; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .sidebar-divider { border-color:#3a4d5f; margin:10px 4px; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar :is(.nav-link,.nav-group > summary) { border-radius:8px; line-height:1.65; letter-spacing:0; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-tree > .nav-item > .nav-link {
        min-height:40px; padding:7px 10px; gap:9px; font-size:.88rem; font-weight:500; color:#d8e3ed; background:transparent;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-tree > .nav-item > .nav-link > i {
        width:22px; height:24px; flex:0 0 22px; border:0; background:transparent; color:#c2d2df!important;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .system-group { margin-block:7px; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .system-group > summary {
        min-height:44px; padding:8px 10px; margin:0; gap:9px; font-size:.91rem; font-weight:700;
        color:#f3f7fb; background:#1b3042; border:1px solid #31495c; box-shadow:none!important;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .system-group > summary > i {
        width:23px; height:26px; flex:0 0 23px; border:0; background:transparent; color:#d7e5f1!important; font-size:1.1rem;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .system-group[open] > summary,
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .system-group:has(.nav-link.active) > summary {
        background:var(--workspace-nav-parent); border-color:#486174; color:#fff;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .system-group > summary:hover { background:#29475c; border-color:#557185; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar [data-nav-key="systems"] > summary {
        min-height:28px; margin:0; padding:3px 8px; font-size:.72rem; font-weight:500; color:#aebfd0; background:transparent; border:0;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-group-items {
        margin:5px 0 8px; margin-inline-start:11px; padding:0; padding-inline-start:11px;
        border:0; border-inline-start:1px solid var(--workspace-nav-line);
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar [data-nav-key="systems"] > .nav-group-items { margin-inline:0; padding-inline:0; border:0; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nested-group:not(.system-group) > summary {
        min-height:35px; margin:5px 0 2px; padding:5px 7px; gap:7px;
        color:#d4e2ed; background:#ffffff04; border:0; border-radius:5px; font-size:.85rem; font-weight:600;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nested-group:not(.system-group) > summary > i { color:#bacddb!important; background:transparent; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nested-group:not(.system-group):has(.nav-link.active) > summary {
        color:#c1efee; background:#ffffff08; border-inline-start:2px solid #70c7c6;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-group-items .nav-item > .nav-link {
        min-height:36px; margin:2px 0; padding:6px 7px; gap:7px; font-size:.86rem; font-weight:400;
        color:#c4d2df; background:transparent; border:1px solid transparent; border-radius:6px; transform:none; box-shadow:none;
        overflow-wrap:break-word;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-group-items .nav-item > .nav-link > i {
        width:17px; flex:0 0 17px; color:#a5bbcd!important; font-size:.88rem; background:transparent; border:0;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-group-items .nav-item > .nav-link::before {
        content:""; display:block; position:absolute; left:auto; right:auto; inset-inline-start:-13px; top:calc(50% - 2px);
        width:4px; height:4px; border-radius:50%; background:#70869a; pointer-events:none;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar :is(.nav-link,.nested-group:not(.system-group) > summary):hover { background:#ffffff0c; color:#fff; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-link.active,
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-tree > .nav-item > .nav-link.active,
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-group-items .nav-item > .nav-link.active {
        color:#fff; background:#126773; border:1px solid #307e87; border-inline-start:3px solid #84e1d8;
        font-weight:600; box-shadow:none!important;
    }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-group-items .nav-item > .nav-link.active::before { background:#84e1d8; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-link.active > i { color:#e8fffc!important; }
    html body.erp-formal-theme.erp-approved-design .premium-light-sidebar :is(summary,.nav-link):focus-visible { outline:2px solid #8be2df; outline-offset:2px; }
    html body.erp-approved-design .sidebar-biometric-status { background:#1c3042; border:1px solid #3a5063; }

    /* White, unboxed page headings; a single accent is reserved for actions. */
    html body.erp-formal-theme.erp-approved-design article.content .erp-page-header,
    html body.erp-formal-theme.erp-approved-design article.content :is(.document-list-heading,.erp-list-context-heading) {
        min-height:54px; margin-bottom:14px; padding:6px 0 12px!important;
        background:transparent!important; border:0!important; border-bottom:1px solid var(--fin-line)!important;
        border-radius:0!important; box-shadow:none!important; gap:12px;
    }
    html body.erp-formal-theme.erp-approved-design article.content .erp-page-title { font-size:clamp(1.3rem,1.65vw,1.65rem); line-height:1.5; font-weight:700; color:var(--fin-ink)!important; }
    html body.erp-approved-design article.content .erp-page-subtitle { color:var(--fin-muted)!important; font-size:.8rem; line-height:1.6; margin-top:3px; }
    html body.erp-approved-design article.content .page-icon-wrapper { background:#ecf5f6!important; color:#137e86!important; border-radius:8px; box-shadow:none; }
    html body.erp-approved-design article.content :is(.card,.erp-card,.dashboard-panel,.internal-report-viewer) { border-radius:10px!important; box-shadow:var(--fin-shadow)!important; border-color:var(--fin-line)!important; }
    html body.erp-approved-design article.content :is(.card > .card-header,.erp-card > .card-header,.dashboard-panel__header) { border-radius:9px 9px 0 0; border-color:var(--fin-line)!important; background:#fff!important; }

    /* Readable lists: stable column edges, zebra rows and full-width searching. */
    html body.erp-formal-theme.erp-approved-design article.content .erp-list-toolbar {
        padding:12px 14px!important; gap:9px 12px!important; background:#fff;
    }
    html body.erp-approved-design .erp-list-toolbar .accounting-list-title { font-size:1.2rem; font-weight:700; color:var(--fin-ink); }
    html body.erp-approved-design .erp-list-toolbar .accounting-list-count,
    html body.erp-approved-design .document-list-count { color:#445d74!important; background:#f1f5f9!important; border:1px solid var(--fin-line); border-radius:7px; font-size:.77rem; font-weight:500; }
    html body.erp-approved-design .erp-list-toolbar .table-search-box,
    html body.erp-approved-design .erp-list-toolbar--external-heading .table-search-box {
        grid-column:1/-1; grid-row:2; min-height:40px; height:40px; width:100%;
        border:1px solid #cbd8e5; border-radius:8px; background:#f8fafc;
    }
    html body.erp-approved-design .table-search-box input { color:var(--fin-ink); font-size:.9rem!important; }
    html body.erp-approved-design .table-search-box input::placeholder { color:#657b91; }
    html body.erp-approved-design .erp-list-toolbar--external-heading .table-row-limit { grid-column:3; grid-row:1; }
    html body.erp-approved-design .erp-list-toolbar--external-heading .table-print-button { grid-column:4; grid-row:1; }
    html body.erp-approved-design .erp-list-toolbar--external-heading .accounting-list-count { grid-column:1; grid-row:1; justify-self:start; }
    html body.erp-approved-design .erp-list-toolbar .table-pager,
    html body.erp-approved-design .erp-list-toolbar--external-heading .table-pager { grid-column:1/-1; grid-row:3; }
    html body.erp-approved-design .erp-list-toolbar .accounting-list-empty,
    html body.erp-approved-design .erp-list-toolbar--external-heading .accounting-list-empty { grid-column:1/-1; grid-row:4; }
    html body.erp-approved-design .erp-list-toolbar .table-row-limit label,
    html body.erp-approved-design .erp-list-toolbar .table-print-button { font-size:.8rem; color:#425a71; }
    html body.erp-approved-design .table-search-box:focus-within { border-color:var(--fin-accent); box-shadow:0 0 0 3px #087f8814; }
    html body.erp-formal-theme.erp-approved-design article.content :is(.table-responsive,.erp-table-scroll) { border-radius:8px!important; border-color:var(--fin-line); scrollbar-color:#bacad8 #f4f7fa; scrollbar-width:thin; }
    html body.erp-approved-design article.content table:not(.internal-report-viewer table) {
        --bs-table-color:var(--fin-ink); --bs-table-bg:transparent; --bs-table-striped-bg:transparent;
        --bs-table-hover-bg:transparent; font-variant-numeric:tabular-nums lining-nums; border-color:#e0e8f0;
    }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table):not(.pos-cart-table) :is(th,td) { padding-block:8px!important; line-height:1.55; }
    /* Account/group trees own their horizontal indentation through inline depth. */
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table):not(.pos-cart-table) :is(th,td):not([style*="padding-right"]):not([style*="padding-left"]):not([style*="padding-inline"]) { padding-inline:12px!important; }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) thead th {
        background:#20394d!important; color:#fff!important; border-top:1px solid #20394d; border-bottom:2px solid #087f88!important;
        border-inline-end:1px solid #ffffff1f; font-size:.86rem!important; font-weight:600; vertical-align:middle;
    }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) thead th :is(.text-muted,small) { color:#d3e0eb!important; }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody td {
        background:#fff; color:var(--fin-ink); font-size:.9rem; border-bottom:1px solid #e6edf4; box-shadow:none; vertical-align:middle;
    }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody tr:nth-child(even) > td { background:#f3f7fb; }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody tr:hover > td,
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody tr:focus-within > td { background:#eaf7f6; }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody tr[aria-selected="true"] > td { background:#e0f3f2; }
    /* Keep business states visible; zebra and hover must not conceal an overdue/selected row. */
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody tr:is(.table-primary,.table-active) > td { background:#e2f1f5; }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody tr.table-success > td { background:#edf8f2; }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody tr.table-info > td { background:#edf5fc; }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody tr.table-warning > td { background:#fff5dc; }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody tr.table-danger > td { background:#fff0ef; }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody tr.table-light > td { background:#eaf0f6; }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tbody tr:is(.table-primary,.table-active,.table-success,.table-info,.table-warning,.table-danger) > td:first-child { border-inline-start:3px solid var(--bs-table-border-color,#087f88); }
    html body.erp-formal-theme.erp-approved-design article.content table:not(.internal-report-viewer table) tfoot :is(th,td) { background:#edf3f8!important; border-top:2px solid #cfdeea; font-size:.9rem; font-weight:700; color:var(--fin-ink); }
    html body.erp-approved-design article.content :is(.erp-number-cell,.erp-number-input,.font-monospace) { font-variant-numeric:tabular-nums; }
    html body.erp-approved-design article.content .erp-data-list-card table .btn { border-radius:6px; font-size:.8rem; box-shadow:none; }
    html body.erp-approved-design article.content [data-record-view] { display:inline-flex; align-items:center; justify-content:center; gap:4px; min-width:64px; white-space:nowrap; border:1px solid #cbd8e5; background:#fff; color:#264863; }
    html body.erp-approved-design article.content [data-record-view]:hover { background:#f1fbfa; border-color:#60a7ac; color:#08616a; }
    html body.erp-approved-design article.content .erp-data-list-card table .badge { padding:5px 9px; font-size:.76rem; border-radius:20px; line-height:1.3; font-weight:500; }
    html body.erp-approved-design article.content .erp-data-list-card table .text-muted { color:#5e7387!important; }

    /* Form controls: calm surfaces, clear focus and no reduction of input width. */
    html body.erp-formal-theme.erp-approved-design :is(article.content,.modal,.erp-record-overlay) .form-label { color:#334d67!important; font-size:.86rem!important; font-weight:600!important; }
    html body.erp-formal-theme.erp-approved-design :is(.form-control,.form-select,.custom-input,.searchable-select-trigger) {
        border-radius:7px; border-color:#adbfce; background-color:#fff; color:var(--fin-ink); font-size:.9rem!important; box-shadow:0 1px 2px #152c4805;
    }
    html body.erp-formal-theme.erp-approved-design :is(.form-control,.form-select,.custom-input,.searchable-select-trigger):hover:not(:disabled):not([readonly]) { border-color:#7896ac; }
    html body.erp-formal-theme.erp-approved-design :is(.form-control,.form-select,.custom-input):focus,
    html body.erp-formal-theme.erp-approved-design .searchable-select-trigger:focus-visible { border-color:#16838b; outline:2px solid #087f8840; outline-offset:1px; box-shadow:0 0 0 3px #087f8810; }
    html body.erp-approved-design :is(.form-control,.custom-input)::placeholder { color:#6e8194; }
    html body.erp-approved-design :is(.form-control,.form-select,.searchable-select-trigger):disabled,
    html body.erp-approved-design :is(.form-control,.custom-input)[readonly] { color:#5f7388; background:#f1f4f8!important; }
    html body.erp-formal-theme.erp-approved-design :is(.form-control,.form-select,.custom-input):is(.invalid,.erp-invalid-required,[aria-invalid="true"]),
    html body.erp-formal-theme.erp-approved-design select:is(.invalid,.erp-invalid-required,[aria-invalid="true"]) + .searchable-select .searchable-select-trigger { border-color:#bd4444!important; outline-color:#bd444440; box-shadow:0 0 0 2px #bd444414; }
    html body.erp-approved-design .validation-message { color:#b62e35; font-size:.82rem; }
    html body.erp-approved-design .input-group-text { color:#4d667e; background:#f3f6fa; border-color:#bccbda; border-radius:7px; }
    /* Shared picker is appended to body, outside the page and its form card. */
    html body.erp-approved-design .select-dialog-overlay { background:#10283a66; backdrop-filter:blur(3px); }
    html body.erp-approved-design .select-dialog { width:min(100%,640px); max-height:min(82dvh,720px); border:1px solid #bdccd9; border-radius:14px; box-shadow:0 24px 75px #10283a40; }
    html body.erp-approved-design .select-dialog-header { padding:12px 18px; background:#f3f7fa; border-bottom:1px solid var(--fin-line); }
    html body.erp-approved-design .select-dialog-header h2 { color:var(--fin-ink); font-size:1.08rem; font-weight:700; }
    html body.erp-approved-design .select-dialog-close { width:40px; height:40px; color:#455f76; border:1px solid #d3dfe9; border-radius:8px; background:#fff; }
    html body.erp-approved-design .select-dialog-close:hover { color:#a52d35; background:#fff0ef; border-color:#e8b7ba; }
    html body.erp-approved-design .select-dialog-search-wrap { margin:14px 16px 10px; border-color:#adbfce; background:#fff; color:var(--fin-accent); border-radius:8px; }
    html body.erp-approved-design .select-dialog-search-wrap:focus-within { border-color:var(--fin-accent); box-shadow:0 0 0 3px #087f881a; }
    html body.erp-approved-design .select-dialog-search { min-width:0; height:44px; color:var(--fin-ink); font-size:.95rem; }
    html body.erp-approved-design .select-dialog-options { padding:0 10px 12px; scrollbar-width:thin; scrollbar-color:#bacad8 #f4f7fa; }
    html body.erp-approved-design .select-dialog-option { min-height:44px; padding:10px 12px; border-bottom:1px solid #e8eef4; border-radius:6px; color:var(--fin-ink); text-align:start; font-size:.92rem; font-weight:500; white-space:normal; overflow-wrap:anywhere; }
    html body.erp-approved-design .select-dialog-option:nth-child(even) { background:#f6f9fc; }
    html body.erp-approved-design .select-dialog-option:hover:not(:disabled) { color:#08616a; background:#edf8f7; }
    html body.erp-approved-design .select-dialog-option.is-selected { color:#075963; background:#e1f3f1; border-inline-start:3px solid #087f88; font-weight:600; }
    html body.erp-approved-design .select-dialog-option:disabled { color:#738495; background:#f0f3f6; cursor:not-allowed; }
    html body.erp-approved-design :is(.select-dialog-option,.select-dialog-close):focus-visible { outline:2px solid #087f88; outline-offset:-2px; }
    html body.erp-approved-design .select-dialog-empty { margin:12px 6px; padding:24px 12px; border:1px dashed #bdccd9; border-radius:8px; background:#f8fafc; color:var(--fin-muted); line-height:1.8; }
    html body.erp-approved-design .form-check-input:checked { background-color:var(--fin-accent); border-color:var(--fin-accent); }
    html body.erp-approved-design .btn { border-radius:7px; font-size:.86rem; font-weight:500; }
    html body.erp-approved-design :is(.btn-primary,.btn-success) { background:var(--fin-accent); border-color:var(--fin-accent); color:#fff; box-shadow:none; }
    html body.erp-approved-design :is(.btn-primary,.btn-success):hover:not(:disabled) { background:var(--fin-accent-dark); border-color:var(--fin-accent-dark); color:#fff; }
    html body.erp-approved-design :is(.btn-outline-primary,.btn-outline-secondary,.btn-light) { background:#fff; border-color:#cbd8e5; color:#304e6a; box-shadow:none; }
    html body.erp-approved-design article.content .erp-create-button { border-color:#087f88!important; background:#087f88!important; box-shadow:0 2px 6px #087f8826!important; }
    html body.erp-approved-design article.content .erp-create-button:hover:not(:disabled) { background:#066872!important; }
    html body.erp-approved-design :is(.master-form-section,.screen-fieldset,.settings-option) { background:#fff; border-color:var(--fin-line); border-radius:9px; }
    html body.erp-approved-design .master-form-section > legend { color:#20394d; font-weight:700; }
    html body.erp-approved-design .master-form-section > legend > span { background:#20394d; border-color:#20394d; color:#fff; }
    html body.erp-approved-design :is(.master-field-hint,.master-section-hint,.screen-field-hint) { color:#5b7084; }
    html body.erp-approved-design .master-company-value { color:#526a7e; background:#f1f5f9; border-color:#cdd9e4; }
    html body.erp-approved-design .master-switch { background:#f8fafc; border-color:#cdd9e4; }
    html body.erp-approved-design .master-switch:has(input:checked) { background:#edf8f6; border-color:#8abeb9; }
    html body.erp-approved-design .master-switch strong { color:#304e6a; font-size:.85rem; }
    html body.erp-approved-design .master-switch small { color:#5b7084; }
    html body.erp-approved-design :is(.master-form-actions,.screen-form-actions) { border-top-color:#cdd9e4; box-shadow:0 -5px 16px #152c4805; }
    html body.erp-approved-design :is(.master-form-intro,.screen-section-heading,.master-section-heading) { color:#254560; }
    html body.erp-approved-design :is(.screen-editor-tabs,.system-settings-tabs,.nav-tabs,.nav-pills) { background:#f2f6fa; border-color:var(--fin-line); border-radius:9px; }
    html body.erp-approved-design :is(.nav-tabs,.nav-pills) .nav-link { color:#4f657c; border-radius:6px; }
    html body.erp-approved-design :is(.nav-tabs,.nav-pills) .nav-link.active { color:#076e77; background:#fff; border-color:#cddfe6; box-shadow:0 1px 4px #152c480a; }
    html body.erp-approved-design :is(.modal-content,.erp-record-dialog,.erp-confirm-dialog,.erp-notification-dialog,.pos-edit-dialog) { border-radius:12px; border-color:#d4dfea; box-shadow:0 24px 75px #10283a30; }
    html body.erp-approved-design :is(.modal-header,.erp-record-header) { background:#f5f8fb; border-radius:11px 11px 0 0; }
    html body.erp-approved-design .erp-record-field { border-color:var(--fin-line); border-radius:8px; }
    html body.erp-approved-design .erp-record-field span { color:var(--fin-muted); font-size:.78rem; }
    html body.erp-approved-design .erp-record-field strong { color:var(--fin-ink); font-size:.94rem; }

    /* Dashboards, sign-in and POS use the same light workspace and restrained accent.
       Their existing data, layouts, touch controls and original logos are retained. */
    html body.erp-approved-design :is(.workspace-command-hero,.finance-hero,.people-hero) { color:var(--fin-ink); background:#fff; border:1px solid var(--fin-line); border-radius:12px; box-shadow:var(--fin-shadow); }
    html body.erp-approved-design :is(.workspace-command-hero,.finance-hero,.people-hero) h1 { color:var(--fin-ink); font-size:clamp(1.5rem,2.3vw,2.4rem); }
    html body.erp-approved-design .workspace-command-hero h1 span { color:#087f88; }
    html body.erp-approved-design :is(.workspace-command-hero-copy > p,.finance-hero p,.people-hero p,.workspace-command-context,.finance-hero-meta,.people-meta,.people-hero-note) { color:#556d82; }
    html body.erp-approved-design :is(.workspace-command-hero,.finance-hero,.people-hero) :is(.workspace-command-eyebrow,.finance-eyebrow,.people-eyebrow) { color:#487084; }
    html body.erp-approved-design :is(.finance-hero p strong,.people-hero p strong) { color:#087f88; }
    html body.erp-approved-design :is(.workspace-command-hero-control,.finance-period-control,.people-period) { background:#f4f8fb; border:1px solid var(--fin-line); border-radius:9px; box-shadow:none; }
    html body.erp-approved-design :is(.workspace-command-metric,.finance-kpi,.people-kpi,.dashboard-kpi,.workspace-command-panel,.finance-panel,.people-panel) { border-radius:10px; box-shadow:var(--fin-shadow); }
    html body.erp-approved-design .point-of-sale-host { background:var(--fin-paper); }
    html body.erp-approved-design .pos-page { --pos-accent:#087f88; --pos-accent-dark:#08616a; --pos-soft:#e8f6f5; }
    /* POS cart is deliberately denser than record lists; preserve its editable columns. */
    html body.erp-formal-theme.erp-approved-design :is(article.content,.point-of-sale-host) table.pos-cart-table :is(th,td) { padding:6px!important; }
    html body.erp-formal-theme.erp-approved-design .point-of-sale-host table.pos-cart-table thead th { background:#20394d; color:#fff; border-bottom:2px solid #087f88; font-size:.8rem; }
    html body.erp-formal-theme.erp-approved-design :is(article.content,.point-of-sale-host) table.pos-cart-table :is(.form-control,.form-select,.searchable-select-trigger) { min-height:var(--erp-table-control-height)!important; font-size:.84rem!important; padding-inline:5px!important; }
    html body.erp-formal-theme.erp-approved-design :is(article.content,.point-of-sale-host) table.pos-cart-table .form-select { padding-inline-end:1.4rem!important; }
    html body.erp-approved-design .pos-header { background:#fff; border-color:var(--fin-line); color:var(--fin-ink); border-radius:10px; box-shadow:none; }
    html body.erp-approved-design .pos-header h1 { color:var(--fin-ink); }
    html body.erp-approved-design .pos-header :is(p,small,.pos-subtitle) { color:#586d83; }
    html body.erp-formal-theme.erp-approved-design .pos-header .btn { border:1px solid #cbd8e5!important; color:#304e6a; background:#fff; }
    html body.erp-formal-theme.erp-approved-design .pos-header .btn-outline-danger { color:#ae3942; border-color:#dcb6b9!important; }
    html body.erp-formal-theme.erp-approved-design .pos-header .btn-outline-success { color:#087461; border-color:#aacfc7!important; }
    html body.erp-formal-theme.erp-approved-design .pos-header .pos-live-badge { color:#305d66; background:#eaf4f5; }
    html body.erp-approved-design .login-shell { background:#f4f7fa; }
    html body.erp-approved-design .brand-pane { background:#edf3f7; }
    html body.erp-approved-design .login-title { color:var(--fin-ink); }
    html body.erp-approved-design .cyber-input { border-radius:8px; border-color:#bccbda; }
    html body.erp-approved-design .cyber-btn { border-radius:8px; background:#087f88; border-color:#087f88; box-shadow:0 3px 10px #087f881a; }

    @media (min-width:992px) and (max-width:1199.98px) {
        html body.erp-approved-design .erp-layout:not(.sidebar-hidden) { --erp-sidebar-width:242px; }
        html body.erp-approved-design .erp-top-header .app-brand { gap:6px; }
        html body.erp-approved-design .erp-top-header { padding-inline:12px; }
        html body.erp-approved-design .erp-content-scroll > article.content { padding-inline:16px!important; }
    }
    @media (max-width:991.98px) {
        html body.erp-approved-design .erp-sidebar { max-width:calc(100vw - 48px); }
        html body.erp-approved-design .erp-top-header { padding-inline:12px; }
        html body.erp-approved-design .erp-top-header .header-user-section { gap:6px!important; }
    }
    @media (max-width:767.98px), (pointer:coarse) {
        html body.erp-formal-theme.erp-approved-design { --erp-control-height:44px; --erp-table-control-height:44px; --erp-list-action-height:44px; }
        html body.erp-formal-theme.erp-approved-design .premium-light-sidebar :is(.nav-link,.nav-group > summary),
        html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nav-group-items .nav-item > .nav-link,
        html body.erp-formal-theme.erp-approved-design .premium-light-sidebar .nested-group:not(.system-group) > summary { min-height:44px; }
        html body.erp-formal-theme.erp-approved-design :is(.form-control,.form-select,.searchable-select-trigger,.cyber-input,.select-dialog-search),
        html body.erp-formal-theme.erp-approved-design :is(article.content,.point-of-sale-host) table.pos-cart-table :is(.form-control,.form-select,.searchable-select-trigger) { font-size:16px!important; }
        html body.erp-approved-design .select-dialog-close { width:44px; height:44px; }
        html body.erp-approved-design .erp-list-toolbar .table-search-box { min-height:44px; height:44px; }
    }
    @media (max-width:767.98px) {
        html body.erp-approved-design .erp-content-scroll > article.content { padding:12px 10px 20px!important; }
        html body.erp-formal-theme.erp-approved-design article.content .erp-page-title { font-size:1.2rem; }
        html body.erp-approved-design article.content .erp-page-subtitle { font-size:.78rem; }
        html body.erp-approved-design .erp-list-toolbar .table-row-limit { grid-column:1; grid-row:3; }
        html body.erp-approved-design .erp-list-toolbar .table-print-button { grid-column:2; grid-row:3; }
        html body.erp-approved-design .erp-list-toolbar .accounting-list-count { grid-column:2; grid-row:1; }
        html body.erp-approved-design .erp-list-toolbar .table-pager { grid-row:4; }
        html body.erp-approved-design .erp-list-toolbar .accounting-list-empty { grid-row:5; }
        html body.erp-approved-design .erp-list-toolbar--external-heading .accounting-list-count { display:inline-flex; grid-column:1/-1; grid-row:1; }
        html body.erp-approved-design :is(.workspace-command-hero,.finance-hero,.people-hero) { padding:18px; }
    }
    @media (prefers-reduced-motion:reduce) {
        html body.erp-approved-design :is(.erp-sidebar,.btn,.nav-link,.nav-group > summary) { transition:none; }
    }
}
