/* FinestERP · Clarity. Shared screen theme; printed documents keep their templates. */
body.erp-formal-theme {
    --fin-ink: #203539;
    --fin-muted: #607277;
    --fin-accent: #205c62;
    --fin-accent-dark: #17464c;
    --fin-soft: #eaf2f2;
    --fin-paper: #f4f6f7;
    --fin-surface: #fff;
    --fin-line: #dce3e5;
    --fin-line-strong: #bac9cd;
    --fin-radius: 10px;
    --erp-font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', Arial, sans-serif;
    --erp-enterprise-ink: var(--fin-ink);
    --erp-enterprise-muted: var(--fin-muted);
    --erp-enterprise-green: var(--fin-accent);
    --erp-enterprise-green-dark: var(--fin-accent-dark);
    --erp-enterprise-gold: var(--fin-accent);
    --erp-enterprise-paper: var(--fin-paper);
    --erp-enterprise-line: var(--fin-line);
    --erp-enterprise-line-strong: var(--fin-line-strong);
    --bio-teal: var(--fin-accent);
    --bio-ink: var(--fin-ink);
    --bio-paper: var(--fin-paper);
    --bio-line: var(--fin-line);
    --bs-primary: var(--fin-accent);
    --bs-primary-rgb: 32, 92, 98;
    --bs-link-color: var(--fin-accent);
    --bs-link-hover-color: var(--fin-accent-dark);
    --bs-body-color: var(--fin-ink);
    --bs-border-color: var(--fin-line);
    color: var(--fin-ink);
    background: var(--fin-paper);
    font-family: var(--erp-font-family);
    font-size: .94rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

@media screen {
    /* Workspace frame. Preserve the existing collapse and mobile navigation behavior. */
    body.erp-formal-theme .erp-layout {
        --erp-shell-ink: var(--fin-ink);
        --erp-shell-green: var(--fin-accent);
        --erp-shell-gold: var(--fin-accent);
        --erp-shell-paper: var(--fin-paper);
        --erp-header-height: 72px;
        background: var(--fin-paper);
    }
    body.erp-formal-theme .erp-layout:not(.sidebar-collapsed) { --erp-sidebar-width: 274px; }
    body.erp-formal-theme .erp-top-header {
        min-height: 72px;
        padding-inline: 1.4rem;
        background: #fff;
        border-bottom: 1px solid var(--fin-line);
        box-shadow: none;
        backdrop-filter: none;
    }
    body.erp-formal-theme .erp-top-header::after,
    body.erp-formal-theme .erp-top-header::before { display: none; }
    body.erp-formal-theme .erp-content-scroll,
    body.erp-formal-theme .point-of-sale-host { background: var(--fin-paper); background-image: none; }
    body.erp-formal-theme .erp-main-workspace { min-width: 0; }
    body.erp-formal-theme .erp-content-scroll > article.content {
        width: 100%; max-width: none; margin: 0; padding: 1.3rem 1.5rem 2rem !important;
    }
    body.erp-formal-theme .erp-top-header .brand-emblem { width: 38px; height: 38px; border: 0; border-radius: 6px; box-shadow: none; }
    body.erp-formal-theme .brand-name, body.erp-formal-theme .brand-name span { color: var(--fin-ink); }
    body.erp-formal-theme .brand-context { color: var(--fin-muted); font-weight: 400; }
    body.erp-formal-theme :is(.sidebar-collapse-btn, .mobile-toggle-btn, .language-switch, .keyboard-shortcuts-button, .btn-logout) {
        color: var(--fin-muted); background: #fff; border: 1px solid var(--fin-line); border-radius: 8px; box-shadow: none; font-weight: 500;
    }
    body.erp-formal-theme :is(.sidebar-collapse-btn, .mobile-toggle-btn, .language-switch, .keyboard-shortcuts-button):hover {
        color: var(--fin-accent); background: var(--fin-soft); border-color: var(--fin-line-strong);
    }
    body.erp-formal-theme .btn-logout:hover { color: #a33333; background: #fff2f1; border-color: #efcfcc; }
    body.erp-formal-theme .branch-context { background: #f7f9f9; border-color: var(--fin-line); border-radius: 8px; }
    body.erp-formal-theme .user-profile-card { border: 0; background: transparent; box-shadow: none; }
    body.erp-formal-theme .user-avatar { color: var(--fin-accent); background: var(--fin-soft); border: 1px solid var(--fin-line); border-radius: 50%; }
    body.erp-formal-theme .user-name { color: var(--fin-ink); font-weight: 600; }
    body.erp-formal-theme .branch-context .searchable-select-trigger { min-height: 36px; border: 0; background: transparent; }

    /* A calm, searchable navigation tree with one active-screen color. */
    body.erp-formal-theme .erp-sidebar { background: #fff; border-inline-end: 1px solid var(--fin-line); box-shadow: none; }
    body.erp-formal-theme .premium-light-sidebar { height: 100dvh; min-height: 0; display: flex; flex-direction: column; color: var(--fin-ink); background: #fff; border: 0; }
    body.erp-formal-theme .premium-light-sidebar .top-row { flex: 0 0 auto; min-height: 98px; height: auto; padding: 1rem 1.1rem .8rem; background: #fff; border-bottom: 0; }
    body.erp-formal-theme .sidebar-logo-frame { width: 42px; height: 42px; border: 1px solid var(--fin-line); border-radius: 9px; box-shadow: none; }
    body.erp-formal-theme .sidebar-logo-frame img { width: 36px; height: 36px; }
    body.erp-formal-theme .sidebar-brand-copy strong { color: var(--fin-ink); font-size: 1.2rem; }
    body.erp-formal-theme .sidebar-brand-copy strong span { color: var(--fin-accent); }
    body.erp-formal-theme .sidebar-brand-copy small { color: var(--fin-muted); font-size: .6rem; letter-spacing: .02em; }
    body.erp-formal-theme .sidebar-suite-label { margin: .6rem 0 0; padding: 0; background: transparent; border: 0; }
    body.erp-formal-theme .sidebar-suite-label small { color: var(--fin-muted); font-size: .72rem; font-weight: 400; }
    body.erp-formal-theme .premium-light-sidebar .nav-scrollable { flex: 1; min-height: 0; height: auto; overflow-y: auto; }
    body.erp-formal-theme .premium-light-sidebar .nav-tree { padding: .3rem .55rem 1rem; }
    body.erp-formal-theme .premium-light-sidebar .nav-group-items { margin-inline: .6rem 0; padding-inline: .4rem 0; border-inline-start: 1px solid var(--fin-line); background: transparent; }
    body.erp-formal-theme .premium-light-sidebar :is(.system-group, .system-link) {
        --system-accent: var(--fin-accent); --system-soft: var(--fin-soft); --system-text: var(--fin-ink); --system-line: var(--fin-line);
    }
    body.erp-formal-theme .premium-light-sidebar :is(.nav-link, .nav-group > summary) {
        min-height: 42px; margin: 2px 0; padding: .5rem .65rem; color: #43595e;
        background: transparent; border: 1px solid transparent; border-radius: 7px; box-shadow: none !important;
        font-weight: 500; line-height: 1.55; letter-spacing: 0; transition: background-color .15s ease, color .15s ease;
    }
    body.erp-formal-theme .premium-light-sidebar :is(.nav-link, .nav-group > summary) > i { color: #75888c !important; font-size: 1rem; filter: none; }
    body.erp-formal-theme .premium-light-sidebar :is(.nav-link, .nav-group > summary):hover { color: var(--fin-accent); background: #f3f7f7; transform: none; }
    body.erp-formal-theme .premium-light-sidebar .system-group:has(.nav-link.active) > summary { color: var(--fin-accent); background: #f6f9f9; border-color: transparent; }
    body.erp-formal-theme .premium-light-sidebar .nav-link.active {
        color: var(--fin-accent); font-weight: 600; background: var(--fin-soft); border-color: #d5e5e6; border-inline-start: 3px solid var(--fin-accent);
    }
    body.erp-formal-theme .premium-light-sidebar .nav-link.active > i { color: var(--fin-accent) !important; }
    body.erp-formal-theme .premium-light-sidebar .nav-group[open] > summary::after { color: var(--fin-accent); }
    body.erp-formal-theme .sidebar-divider { border-color: var(--fin-line); margin: .65rem; opacity: 1; }
    body.erp-formal-theme .system-current-label { display: none !important; }
    body.erp-formal-theme .sidebar-biometric-status { color: var(--fin-ink); background: #f7f9f9; border-color: var(--fin-line); }
    body.erp-formal-theme .sidebar-biometric-status > span { color: var(--fin-accent); background: var(--fin-soft); }
    body.erp-formal-theme .sidebar-biometric-status small { color: var(--fin-muted); }
    .sidebar-search { flex: 0 0 auto; margin: .15rem .8rem .7rem; min-height: 0; }
    .sidebar-search-field { display: flex; gap: .5rem; align-items: center; min-height: 42px; padding: .4rem .6rem; background: #f6f8f9; border: 1px solid var(--fin-line); border-radius: 8px; }
    .sidebar-search-field > i { color: var(--fin-muted); font-size: .85rem; }
    .sidebar-search-field input { width: 100%; min-width: 0; padding: 0; color: var(--fin-ink); font-size: .78rem; background: transparent; border: 0; outline: 0; }
    .sidebar-search-field:focus-within { border-color: var(--fin-accent); box-shadow: 0 0 0 3px #205c6212; }
    .sidebar-search-field kbd { flex-shrink: 0; direction: ltr; color: #71868a; background: #fff; border: 1px solid var(--fin-line); font-size: .54rem; border-radius: 4px; }
    .sidebar-search-results { max-height: calc(100dvh - 200px); overflow: auto; padding-top: .5rem; }
    .sidebar-search-result { display: flex !important; flex-direction: column; align-items: start !important; gap: .15rem; text-decoration: none; }
    .sidebar-search-result strong { font-size: .8rem; font-weight: 600; }
    .sidebar-search-result small { color: var(--fin-muted); font-size: .68rem; }
    .sidebar-search-empty { padding: 1rem .3rem; font-size: .78rem; color: var(--fin-muted); }
    body.erp-formal-theme .premium-light-sidebar.is-searching .nav-scrollable { display: none; }
    body.erp-formal-theme .sidebar-collapsed .sidebar-search { display: none; }

    /* Shared hierarchy for operational pages, editors and reporting indexes. */
    body.erp-formal-theme :is(.erp-page-header, .dashboard-hero) {
        min-height: 0; margin-bottom: 1.15rem; padding: .35rem 0 1rem; color: var(--fin-ink);
        background: transparent !important; background-image: none !important;
        border: 0; border-bottom: 1px solid var(--fin-line); border-radius: 0 !important; box-shadow: none;
    }
    body.erp-formal-theme :is(.erp-page-header, .dashboard-hero)::before,
    body.erp-formal-theme :is(.erp-page-header, .dashboard-hero)::after { display: none; }
    body.erp-formal-theme :is(.erp-page-title, .dashboard-hero h1) { margin: 0; color: var(--fin-ink) !important; font-size: clamp(1.15rem, 1.4vw, 1.55rem); font-weight: 600; line-height: 1.55; }
    body.erp-formal-theme :is(.erp-page-subtitle, .dashboard-hero p) { margin: .3rem 0 0; max-width: 80ch; color: var(--fin-muted) !important; font-size: .82rem; line-height: 1.7; }
    body.erp-formal-theme .page-icon-wrapper { width: 44px; height: 44px; color: var(--fin-accent) !important; background: var(--fin-soft) !important; border: 1px solid #d9e5e7; border-radius: 9px; box-shadow: none; }
    body.erp-formal-theme article.content :is(.card, .erp-card, .dashboard-panel, .dashboard-kpi, .internal-report-viewer) {
        background: #fff; border: 1px solid var(--fin-line) !important; border-radius: var(--fin-radius) !important; box-shadow: 0 2px 4px #23383c03 !important; transform: none;
    }
    body.erp-formal-theme article.content :is(.card, .erp-card):hover { box-shadow: 0 2px 4px #23383c03 !important; }
    body.erp-formal-theme article.content :is(.card > .card-header, .erp-card > .card-header, .dashboard-panel__header) {
        min-height: 48px; padding: .75rem 1rem !important; color: var(--fin-ink); background: #fff !important; border-bottom: 1px solid var(--fin-line) !important;
    }
    body.erp-formal-theme article.content :is(.card-header h5, .dashboard-panel__header h2) { margin: 0; color: var(--fin-ink); font-size: .94rem; font-weight: 600 !important; }
    body.erp-formal-theme article.content .card > .card-body:not(.p-0) { padding: 1rem !important; }
    body.erp-formal-theme article.content .erp-form-grid { --bs-gutter-y: 1rem; --bs-gutter-x: 1rem; }
    body.erp-formal-theme article.content .form-label { color: #41575d !important; font-weight: 500 !important; }
    body.erp-formal-theme :is(.form-control, .form-select, .custom-input, .searchable-select-trigger) {
        min-height: 42px; color: var(--fin-ink); background-color: #fff; border-color: var(--fin-line-strong); border-radius: 7px; box-shadow: none; font-weight: 400; text-align: start;
    }
    body.erp-formal-theme :is(.form-control, .form-select, .custom-input):focus,
    body.erp-formal-theme .searchable-select-trigger:focus-visible { border-color: var(--fin-accent); box-shadow: 0 0 0 3px #205c6217; }
    body.erp-formal-theme :is(.form-control, .custom-input)::placeholder { color: #7b8b90; opacity: 1; }
    body.erp-formal-theme :is(.form-control, .custom-input)[readonly],
    body.erp-formal-theme :is(.form-control, .form-select, .searchable-select-trigger):disabled { color: #63777c; background-color: #f2f5f6 !important; }
    body.erp-formal-theme .searchable-select-icon { color: var(--fin-muted); }
    body.erp-formal-theme .form-check-input:checked { background-color: var(--fin-accent); border-color: var(--fin-accent); }
    body.erp-formal-theme .form-check-input:focus { border-color: var(--fin-accent); box-shadow: 0 0 0 3px #205c6217; }
    body.erp-formal-theme .form-control.invalid, body.erp-formal-theme .erp-invalid-required { border-color: #b54545 !important; }
    body.erp-formal-theme .erp-number-input { text-align: end; }
    body.erp-formal-theme .validation-message { color: #a33333; font-size: .78rem; margin-top: .25rem; }
    body.erp-formal-theme .input-group-text { color: var(--fin-muted); background: #f6f8f9; border-color: var(--fin-line-strong); }

    /* Color identifies the action, rather than the module. Destructive and status colors remain semantic. */
    body.erp-formal-theme .btn { min-height: 40px; padding: .45rem .9rem; border-radius: 7px; font-weight: 500; box-shadow: none; transition: background-color .15s ease, border-color .15s ease; }
    body.erp-formal-theme .btn-sm { min-height: 34px; padding: .3rem .65rem; }
    body.erp-formal-theme .btn-primary { --bs-btn-bg: var(--fin-accent); --bs-btn-border-color: var(--fin-accent); color: #fff; background: var(--fin-accent); border-color: var(--fin-accent); box-shadow: none; }
    body.erp-formal-theme .btn-primary:is(:hover, :focus, :active, .active) { color: #fff; background: var(--fin-accent-dark) !important; border-color: var(--fin-accent-dark) !important; transform: none; box-shadow: none; }
    body.erp-formal-theme .btn-primary:disabled { color: #fff; background: var(--fin-accent); border-color: var(--fin-accent); opacity: .5; }
    body.erp-formal-theme :is(.btn-outline-primary, .btn-outline-secondary, .btn-secondary, .btn-light) { color: var(--fin-accent); background: #fff; border: 1px solid var(--fin-line-strong); box-shadow: none; }
    body.erp-formal-theme :is(.btn-outline-primary, .btn-outline-secondary, .btn-secondary, .btn-light):hover { color: var(--fin-accent-dark); background: var(--fin-soft); border-color: #91b2b7; }
    body.erp-formal-theme :is(.btn-outline-primary, .btn-outline-secondary).active { color: #fff; background: var(--fin-accent); border-color: var(--fin-accent); }
    body.erp-formal-theme .btn-success { color: #fff; background: var(--fin-accent); border-color: var(--fin-accent); }
    body.erp-formal-theme .btn-success:hover { background: var(--fin-accent-dark); border-color: var(--fin-accent-dark); }
    body.erp-formal-theme .btn-action { width: 34px; height: 34px; min-height: 34px; padding: 0; border-radius: 6px; box-shadow: none; }
    body.erp-formal-theme .btn-action-edit { color: var(--fin-accent); background: var(--fin-soft); border-color: #d7e5e6; }
    body.erp-formal-theme .btn-action-edit:hover { color: #fff; background: var(--fin-accent); transform: none; }
    body.erp-formal-theme .btn-action-delete { color: #aa4545; background: #fff6f5; border-color: #efd9d6; }
    body.erp-formal-theme .btn-action-delete:hover { color: #fff; background: #a33333; transform: none; }
    body.erp-formal-theme :is(.nav-tabs, .nav-pills) { gap: .2rem; border-color: var(--fin-line); }
    body.erp-formal-theme :is(.nav-tabs, .nav-pills) .nav-link { color: var(--fin-muted); font-weight: 500; border-radius: 7px; }
    body.erp-formal-theme :is(.nav-tabs, .nav-pills) .nav-link.active { color: var(--fin-accent); background: var(--fin-soft); border-color: #d5e5e6; box-shadow: none; }
    body.erp-formal-theme .text-primary-dark { color: var(--fin-ink); }

    /* Dense, legible data. Horizontal overflow stays inside the table, including on phones. */
    body.erp-formal-theme article.content :is(.table-responsive, .erp-table-scroll) { min-width: 0; background: #fff; border: 1px solid var(--fin-line); border-radius: 8px !important; box-shadow: none; }
    body.erp-formal-theme article.content table { --bs-table-color: var(--fin-ink); --bs-table-bg: transparent; --bs-table-hover-bg: #eff5f5; --bs-table-striped-bg: #f8fafb; color: var(--fin-ink); font-variant-numeric: tabular-nums; }
    body.erp-formal-theme article.content table thead th,
    body.erp-formal-theme article.content .erp-modern-table thead th {
        padding: .7rem .8rem; color: #50666c !important; font-weight: 600; background: #f0f4f5 !important;
        border-color: var(--fin-line) !important; border-bottom: 1px solid #ccd8db !important; box-shadow: none;
    }
    body.erp-formal-theme article.content table tbody td { padding: .58rem .8rem; color: var(--fin-ink); border-color: #e8edef; vertical-align: middle; }
    body.erp-formal-theme article.content table tbody tr:nth-child(even) { background: #fafbfc; }
    body.erp-formal-theme article.content table tbody tr:hover { background: #eff5f5 !important; box-shadow: none; }
    body.erp-formal-theme article.content table tbody tr:hover td { --bs-table-accent-bg: transparent; }
    body.erp-formal-theme article.content table tfoot :is(td, th) { color: var(--fin-ink); background: #edf3f4; border-color: var(--fin-line); }
    body.erp-formal-theme article.content .erp-keyboard-current-row > td { background: #e6f0f1 !important; box-shadow: inset 0 1px #c5dadd, inset 0 -1px #c5dadd; }
    body.erp-formal-theme :is(.table-search-box, .table-tools) { background: #fff; border-color: var(--fin-line); box-shadow: none; }
    body.erp-formal-theme .table-search-box { min-height: 42px; border-radius: 7px; }
    body.erp-formal-theme .table-search-box__icon { color: var(--fin-muted); background: transparent; }
    body.erp-formal-theme :is(.code-badge, .table-match-count) { color: #50676d; background: #f1f5f6; border-color: var(--fin-line); border-radius: 5px; }
    body.erp-formal-theme .badge { padding: .35em .6em; font-weight: 500; border-radius: 5px; line-height: 1.5; }
    body.erp-formal-theme :is(.alert, .alert-success-soft, .alert-danger-soft) { border-radius: 8px; box-shadow: none; font-size: .84rem; }
    body.erp-formal-theme .alert-success-soft { color: #276343; background: #f0f8f3; border: 1px solid #d4e9dc; }
    body.erp-formal-theme .alert-danger-soft { color: #a33333; background: #fff5f4; border: 1px solid #efd8d5; }
    body.erp-formal-theme :is(.select-dialog, .erp-confirm-dialog, .erp-shortcuts-dialog, .modal-content) { color: var(--fin-ink); border: 1px solid var(--fin-line); border-radius: 12px; box-shadow: 0 20px 70px #20353926; }
    body.erp-formal-theme :is(.select-dialog-header, .modal-header, .erp-shortcuts-dialog > header) { color: var(--fin-ink); background: #f8fafb; border-bottom-color: var(--fin-line); }
    body.erp-formal-theme .select-dialog-option { border-radius: 7px; }
    body.erp-formal-theme .select-dialog-option:is(:hover, .is-selected) { color: var(--fin-accent); background: var(--fin-soft); border-color: #c8dfe2; }
    body.erp-formal-theme .erp-shortcuts-dialog__icon { background: var(--fin-accent); }
    body.erp-formal-theme .erp-shortcut-announcement { background: var(--fin-accent-dark); }

    /* Module summaries and the home workspace share a quiet hierarchy. */
    body.erp-formal-theme .dashboard-kpi { padding: 1rem; border-top: 1px solid var(--fin-line) !important; background-image: none; }
    body.erp-formal-theme .dashboard-kpi::before, body.erp-formal-theme .dashboard-kpi::after { display: none; }
    body.erp-formal-theme .dashboard-kpi__value { color: var(--fin-ink); font-size: 1.8rem; font-weight: 600; }
    body.erp-formal-theme :is(.dashboard-kpi__label, .dashboard-kpi__hint) { color: var(--fin-muted); }
    body.erp-formal-theme :is(.dashboard-kpi__icon, .dashboard-action > i) { color: var(--fin-accent); background: var(--fin-soft); border-color: var(--fin-line); border-radius: 8px; box-shadow: none; }
    body.erp-formal-theme .dashboard-action { padding: .85rem 1rem; border-color: var(--fin-line); color: var(--fin-ink); }
    body.erp-formal-theme .dashboard-action:hover { color: var(--fin-accent); background: #f6f9f9; transform: none; }
    .workspace-welcome { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .5rem 0 1.4rem; }
    .workspace-eyebrow { color: var(--fin-accent); font-size: .76rem; font-weight: 500; }
    .workspace-welcome h1 { margin: .35rem 0 .4rem; color: var(--fin-ink); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 600; line-height: 1.5; }
    .workspace-welcome p { margin: 0; color: var(--fin-muted); font-size: .85rem; }
    .workspace-date { display: flex; align-items: center; gap: .7rem; color: var(--fin-muted); padding: .6rem .9rem; border: 1px solid var(--fin-line); border-radius: 9px; background: #fff; }
    .workspace-date > i { color: var(--fin-accent); }
    .workspace-date span { font-size: .7rem; }
    .workspace-date strong { display: block; color: var(--fin-ink); font-size: .8rem; font-weight: 500; white-space: nowrap; }
    .workspace-quick-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
    .workspace-quick-actions > a { display: flex; align-items: center; gap: .8rem; padding: 1rem; color: var(--fin-ink); background: #fff; border: 1px solid var(--fin-line); border-radius: 10px; text-decoration: none; }
    .workspace-quick-actions > a:hover { border-color: #98b8bd; background: #fcfefe; }
    .workspace-quick-actions > a > i:first-child { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; color: var(--fin-accent); background: var(--fin-soft); border-radius: 9px; }
    .workspace-quick-actions > a > i:last-child { margin-inline-start: auto; color: #92a5aa; font-size: .8rem; }
    .workspace-quick-actions strong { display: block; font-size: .87rem; font-weight: 600; }
    .workspace-quick-actions small { color: var(--fin-muted); font-size: .72rem; }
    body.erp-formal-theme .enterprise-kpi { --kpi-color: var(--fin-accent); min-height: 105px; border: 1px solid var(--fin-line); border-radius: 10px; box-shadow: none; animation: none; }
    body.erp-formal-theme .enterprise-kpi strong { color: var(--fin-ink); font-size: 1.65rem; font-weight: 500; }
    body.erp-formal-theme .enterprise-kpi__icon { color: var(--fin-accent); background: #f0f5f5; border: 0; border-radius: 9px; }
    body.erp-formal-theme .enterprise-kpi > i { color: #8ea4a9; }
    body.erp-formal-theme .enterprise-kpi__pulse { display: none; }
    body.erp-formal-theme :is(.enterprise-systems-panel, .enterprise-watch-panel) { border-color: var(--fin-line); border-radius: 10px; box-shadow: none; }
    body.erp-formal-theme .enterprise-panel-header { min-height: 68px; padding: 1rem; background: #fff; border-color: var(--fin-line); }
    body.erp-formal-theme .enterprise-panel-header > div > span { color: var(--fin-muted); font-weight: 400; font-size: .7rem; }
    body.erp-formal-theme .enterprise-panel-header h2 { color: var(--fin-ink); font-weight: 600; }
    body.erp-formal-theme .enterprise-panel-header > i { color: var(--fin-muted); }
    body.erp-formal-theme .enterprise-system { --system-color: var(--fin-accent); min-height: 92px; border-color: var(--fin-line); }
    body.erp-formal-theme .enterprise-system__icon { border: 0; border-radius: 8px; background: var(--fin-soft); }
    body.erp-formal-theme .enterprise-system__meta { color: var(--fin-muted); }
    body.erp-formal-theme .enterprise-system strong { color: var(--fin-ink); font-weight: 600; }
    body.erp-formal-theme .enterprise-watch-list > a { border-color: var(--fin-line); }
    body.erp-formal-theme .watch-status { border-radius: 8px; }
    body.erp-formal-theme .enterprise-watch-footer { color: var(--fin-muted); background: #f8fafb; }
    body.erp-formal-theme .enterprise-panel-code { color: var(--fin-muted); background: #f4f7f8; border-color: var(--fin-line); }

    /* Specialist views: HR, approvals, employee profiles and report catalogs. */
    body.erp-formal-theme .hr-command-hero { min-height: 0; grid-template-columns: 1.2fr 1fr; color: var(--fin-ink); background: #fff; border: 1px solid var(--fin-line); border-radius: 10px; box-shadow: none; }
    body.erp-formal-theme .hr-command-hero::before { display: none; }
    body.erp-formal-theme .hr-command-hero__copy { padding: 1.5rem; }
    body.erp-formal-theme .hr-command-eyebrow { padding: 0; color: var(--fin-muted); background: transparent; border: 0; font-weight: 500; }
    body.erp-formal-theme .hr-command-eyebrow .live-dot { display: none; }
    body.erp-formal-theme .hr-command-hero h1 { margin: .7rem 0; font-size: 1.75rem; font-weight: 600; line-height: 1.6; }
    body.erp-formal-theme .hr-command-hero h1 strong { color: var(--fin-accent); font-weight: 500; }
    body.erp-formal-theme .hr-command-hero p { color: var(--fin-muted); font-size: .83rem; }
    body.erp-formal-theme .command-primary { color: #fff; background: var(--fin-accent); border-color: var(--fin-accent); }
    body.erp-formal-theme .command-primary:hover { color: #fff; background: var(--fin-accent-dark); }
    body.erp-formal-theme .command-secondary { color: var(--fin-accent); background: #fff; border-color: var(--fin-line-strong); }
    body.erp-formal-theme .command-secondary:hover { color: var(--fin-accent); background: var(--fin-soft); }
    body.erp-formal-theme .hr-attendance-visual { height: 205px; align-self: center; background: #f5f8f8; border-color: var(--fin-line); border-radius: 10px; box-shadow: none; }
    body.erp-formal-theme :is(.hr-visual-grid, .hr-radar-ring, .hr-radar-scan, .hr-kpi__pulse) { display: none; }
    body.erp-formal-theme .hr-visual-head, body.erp-formal-theme .hr-visual-head strong { color: var(--fin-muted); border-color: var(--fin-line); }
    body.erp-formal-theme .hr-visual-head span i { color: var(--fin-accent); }
    body.erp-formal-theme .hr-fingerprint-radar { width: 55px; height: 55px; top: 46%; color: var(--fin-accent); font-size: 2rem; background: var(--fin-soft); border: 0; border-radius: 10px; box-shadow: none; }
    body.erp-formal-theme .hr-live-count { top: 45%; }
    body.erp-formal-theme .hr-live-count strong { color: var(--fin-ink); font-size: 1.8rem; font-weight: 500; }
    body.erp-formal-theme .hr-live-count span { color: var(--fin-muted); font-weight: 400; }
    body.erp-formal-theme .hr-visual-summary { color: var(--fin-ink); background: #fff; border-color: var(--fin-line); backdrop-filter: none; }
    body.erp-formal-theme .hr-visual-summary strong { color: var(--fin-ink); }
    body.erp-formal-theme .hr-visual-summary small { color: var(--fin-muted); }
    body.erp-formal-theme .hr-visual-summary i { color: var(--fin-accent); }
    body.erp-formal-theme :is(.hr-kpi, .hr-kpi--live, .hr-workflow-panel, .hr-leave-panel, .hr-quick-panel) { color: var(--fin-ink); background: #fff; border-color: var(--fin-line); border-radius: 10px; box-shadow: none; }
    body.erp-formal-theme .hr-kpi strong { color: var(--fin-ink); font-weight: 500; }
    body.erp-formal-theme .hr-kpi small, body.erp-formal-theme .hr-kpi div span { color: var(--fin-muted); font-weight: 400; }
    body.erp-formal-theme :is(.hr-kpi__icon, .hr-panel-action > i:first-child, .hr-quick-grid a > i) { color: var(--fin-accent); background: var(--fin-soft); }
    body.erp-formal-theme .hr-flow-step--active { color: var(--fin-accent); background: var(--fin-soft); border-color: #bfd6d9; }
    body.erp-formal-theme .hr-flow-step--active small { color: var(--fin-muted); }
    body.erp-formal-theme .hr-flow-step--active > i { color: var(--fin-accent); background: #fff; }
    body.erp-formal-theme .hr-flow-step:hover { transform: none; box-shadow: none; }
    body.erp-formal-theme .hr-workflow-note { color: var(--fin-ink); background: #f4f8f8; border-color: var(--fin-line); }
    body.erp-formal-theme .hr-panel-header h2 { font-weight: 600; }
    body.erp-formal-theme :is(.operational-report-link, .item-image-picker, .workflow-stage.final-stage) { color: var(--fin-ink); background: #fff; border-color: var(--fin-line); border-radius: 9px; box-shadow: none; }
    body.erp-formal-theme .operational-report-link:hover { border-color: #8fb3b8; box-shadow: none; transform: none; }
    body.erp-formal-theme .operational-report-link__icon { color: var(--fin-accent); background: var(--fin-soft); border-color: #d7e5e6; border-radius: 8px; }
    body.erp-formal-theme .operational-report-link__arrow { color: var(--fin-muted); }
    body.erp-formal-theme .operational-report-link__body strong { color: var(--fin-ink); font-weight: 500; }
    body.erp-formal-theme :is(.user-avatar-md, .user-avatar-small, .employee-photo-placeholder) { color: var(--fin-accent); background: var(--fin-soft); box-shadow: none; }
    body.erp-formal-theme .customer-month-chart span { background: var(--fin-accent); }
    body.erp-formal-theme .crud-editor-page::before { color: var(--fin-muted); background: #f4f8f8; border-color: var(--fin-line); }

    /* POS keeps compact item cards and its existing keyboard and checkout workflow. */
    body.erp-formal-theme .pos-page { --pos-accent: var(--fin-accent); --pos-accent-dark: var(--fin-accent-dark); --pos-soft: var(--fin-soft); }
    body.erp-formal-theme :is(.pos-header, .pos-context-bar, .pos-products-panel, .pos-cart-panel, .pos-recent-sales, .restaurant-order-strip) { background: #fff; border-color: var(--fin-line); border-radius: 10px; box-shadow: none; }
    body.erp-formal-theme .pos-header::before { display: none; }
    body.erp-formal-theme .pos-header h1 { font-size: 1.2rem; font-weight: 600; }
    body.erp-formal-theme .pos-brand-icon { color: var(--fin-accent); background: var(--fin-soft); box-shadow: none; border-radius: 9px; }
    body.erp-formal-theme :is(.pos-hold-button, .pos-held-button, .pos-exit-button) { color: var(--fin-accent); background: #fff; border-color: var(--fin-line-strong); font-weight: 500; }
    body.erp-formal-theme :is(.pos-hold-button, .pos-held-button, .pos-exit-button):hover { color: var(--fin-accent); background: var(--fin-soft); border-color: var(--fin-accent); }
    body.erp-formal-theme .pos-held-button > span { background: var(--fin-accent); }
    body.erp-formal-theme .pos-live-badge { color: var(--fin-muted); background: #f1f5f6; border-radius: 6px; }
    body.erp-formal-theme .restaurant-type-button { color: var(--fin-muted); border-color: var(--fin-line); font-weight: 500; }
    body.erp-formal-theme .restaurant-type-button.active { color: #fff; background: var(--fin-accent); border-color: var(--fin-accent); box-shadow: none; }
    body.erp-formal-theme .pos-product-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); align-content: start; gap: .45rem; }
    body.erp-formal-theme .pos-product-card { height: 64px; min-height: 64px; max-height: 64px; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: .08rem .4rem; padding: .4rem; background: #fff; border-color: var(--fin-line); border-radius: 8px; text-align: start; }
    body.erp-formal-theme .pos-product-card:hover { background: #f8fbfb; border-color: #8fb3b8; box-shadow: none; transform: none; }
    body.erp-formal-theme .pos-product-card__visual { width: 32px; height: 32px; align-self: center; border-radius: 6px; }
    body.erp-formal-theme .pos-product-card__content strong { font-size: .73rem; font-weight: 500; line-height: 1.35; }
    body.erp-formal-theme .pos-product-card__content small { font-size: .58rem; line-height: 1.3; }
    body.erp-formal-theme .pos-product-card__add { color: var(--fin-accent); background: var(--fin-soft); }
    body.erp-formal-theme .pos-product-card__price { font-size: .76rem; font-weight: 600; line-height: 1.25; }
    body.erp-formal-theme .pos-cart-table { min-width: 540px; }
    body.erp-formal-theme .pos-category-strip button { border-color: var(--fin-line); border-radius: 7px; font-weight: 500; }
    body.erp-formal-theme .pos-cart-table th { color: #536a70; background: #f0f4f5; border-color: var(--fin-line); font-weight: 500; }
    body.erp-formal-theme .pos-cart-item-name { font-weight: 500; }
    body.erp-formal-theme :is(.pos-row-edit, .pos-fill-remaining) { color: var(--fin-accent); background: var(--fin-soft); }
    body.erp-formal-theme .pos-checkout-button { color: #fff; background: var(--fin-accent); border-radius: 8px; box-shadow: none; font-weight: 600; }
    body.erp-formal-theme .pos-checkout-button:hover:not(:disabled) { background: var(--fin-accent-dark); }
    body.erp-formal-theme .pos-edit-dialog { max-height: 90dvh; overflow-y: auto; border-radius: 12px; }

    body.erp-formal-theme :is(a, button, input, select, textarea, summary, [tabindex]:not([tabindex='-1'])):focus-visible { outline: 2px solid var(--fin-accent); outline-offset: 3px; }
    /* Blazor focuses the heading after navigation; it is not an interactive control. */
    body.erp-formal-theme h1[tabindex='-1']:focus { outline: none; }
    body.erp-formal-theme .form-control:focus-visible { outline-offset: 1px; }
    body.erp-formal-theme .table-search-box:focus-within { border-color: var(--fin-accent); }
    body.erp-formal-theme [dir='ltr'] .workspace-quick-actions > a > i:last-child { transform: rotate(180deg); }
}

/* Login uses the original brand mark and a distraction-free, light composition. */
body.erp-formal-theme .login-shell { position: relative; min-height: 100dvh; display: flex; align-items: center; padding: 4.5rem 2rem 2.5rem; background: #f2f5f6; color: var(--fin-ink); }
body.erp-formal-theme .login-language-switch { position: absolute; top: 1.1rem; inset-inline-end: 2rem; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem; color: var(--fin-muted); background: #fff; border: 1px solid var(--fin-line); border-radius: 7px; text-decoration: none; font-size: .78rem; }
body.erp-formal-theme .login-language-switch:hover { color: var(--fin-accent); border-color: var(--fin-line-strong); }
body.erp-formal-theme .auth-surface { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: min(1080px, 100%); margin: auto; min-height: 630px; background: #fff; border: 1px solid var(--fin-line); border-radius: 18px; overflow: hidden; box-shadow: 0 16px 60px #20353908; }
body.erp-formal-theme .brand-pane { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; padding: 2rem; background: #edf3f3; border-inline-start: 1px solid #dde7e8; }
body.erp-formal-theme .brand-top { display: flex; align-items: center; gap: .65rem; }
body.erp-formal-theme .brand-logo { width: 42px; height: 42px; padding: 3px; background: #fff; border: 1px solid #d8e2e4; border-radius: 8px; }
body.erp-formal-theme .brand-logo img { width: 100%; height: 100%; object-fit: contain; }
body.erp-formal-theme .brand-top .brand-name { font-family: 'IBM Plex Sans', sans-serif; font-size: 1.1rem; font-weight: 600; }
body.erp-formal-theme .brand-product-code { display: block; margin-top: .1rem; color: #70888d; font-family: 'IBM Plex Sans', sans-serif; font-size: .5rem; letter-spacing: .1em; }
body.erp-formal-theme .brand-content { margin-block: auto; }
body.erp-formal-theme .eyebrow { color: var(--fin-accent); font-size: .74rem; font-weight: 500; }
body.erp-formal-theme .brand-title { margin: .5rem 0 .65rem; color: var(--fin-ink); font-size: clamp(1.7rem, 2.2vw, 2rem); font-weight: 600; line-height: 1.5; }
body.erp-formal-theme .brand-title strong { display: block; color: var(--fin-accent); font-weight: 500; }
body.erp-formal-theme .brand-description { max-width: 39ch; margin: 0; color: var(--fin-muted); font-size: .88rem; line-height: 1.9; }
.login-overview { margin-top: 1.1rem; border: 1px solid #d1dfe1; border-radius: 10px; background: #ffffffa6; overflow: hidden; }
.login-overview-heading { display: flex; justify-content: space-between; gap: .5rem; padding: .65rem .9rem; color: var(--fin-muted); border-bottom: 1px solid #dce6e7; font-size: .67rem; }
.login-overview-item { display: flex; align-items: center; gap: .8rem; padding: .5rem .9rem; border-bottom: 1px solid #e0e9ea; }
.login-overview-item:last-child { border: 0; }
.login-overview-item > i { display: grid; place-items: center; width: 34px; height: 34px; color: var(--fin-accent); background: #e8f0f1; border-radius: 7px; }
.login-overview-item strong { display: block; color: var(--fin-ink); font-size: .8rem; font-weight: 500; }
.login-overview-item small { color: var(--fin-muted); font-size: .67rem; }
.login-overview-item > span { margin-inline-start: auto; color: #8ba2a7; font-family: 'IBM Plex Mono', monospace; font-size: .63rem; }
body.erp-formal-theme .support-card { display: flex; gap: .6rem; padding-top: 1.25rem; border-top: 1px solid #d5e1e3; }
body.erp-formal-theme .support-icon { color: var(--fin-accent); font-size: 1.15rem; }
body.erp-formal-theme .support-card h2 { margin: 0 0 .3rem; color: #425e64; font-size: .77rem; font-weight: 500; }
body.erp-formal-theme .support-card p, body.erp-formal-theme .support-empty { margin: 0; color: var(--fin-muted); font-size: .67rem; line-height: 1.8; }
body.erp-formal-theme .support-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
body.erp-formal-theme .support-action { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; color: var(--fin-accent); text-decoration: none; font-size: .73rem; overflow-wrap: anywhere; }
body.erp-formal-theme .support-action span { direction: ltr; }
body.erp-formal-theme .login-pane { grid-column: 1; grid-row: 1; display: flex; align-items: center; padding: 2.5rem 3rem; background: #fff; min-width: 0; }
body.erp-formal-theme .login-card { width: 100%; max-width: 380px; margin: auto; }
body.erp-formal-theme .login-brand-lockup { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.5rem; }
body.erp-formal-theme .login-mark { display: grid; place-items: center; width: 56px; height: 56px; padding: 4px; background: #fff; border: 1px solid var(--fin-line); border-radius: 10px; }
body.erp-formal-theme .login-mark img { width: 100%; height: 100%; object-fit: contain; }
body.erp-formal-theme .login-brand-name { color: var(--fin-ink); font-family: 'IBM Plex Sans', sans-serif; font-size: 1.5rem; font-weight: 600; direction: ltr; }
body.erp-formal-theme .login-brand-name span { color: var(--fin-accent); }
.login-welcome { color: var(--fin-accent); font-size: .76rem; }
body.erp-formal-theme .login-title { margin: .4rem 0 .5rem; color: var(--fin-ink); font-size: 1.85rem; font-weight: 600; line-height: 1.5; }
body.erp-formal-theme .login-subtitle { margin-bottom: 1.4rem; color: var(--fin-muted); font-size: .83rem; }
body.erp-formal-theme .input-wrapper { position: relative; margin-bottom: 1.1rem; }
body.erp-formal-theme .input-label { display: block; margin-bottom: .5rem; color: #435b60; font-size: .82rem; font-weight: 500; }
body.erp-formal-theme .cyber-input { width: 100%; min-height: 49px; padding: .65rem 2.7rem; color: var(--fin-ink); background: #fff; border: 1px solid var(--fin-line-strong); border-radius: 8px; font: inherit; font-size: .85rem; }
body.erp-formal-theme .cyber-input::placeholder { color: #8b9ca0; font-size: .79rem; }
body.erp-formal-theme .cyber-input:focus { outline: 0; border-color: var(--fin-accent); box-shadow: 0 0 0 3px #205c6214; }
body.erp-formal-theme .field-icon { position: absolute; bottom: 14px; inset-inline-start: .9rem; color: #80989e; pointer-events: none; }
body.erp-formal-theme .password-toggle { position: absolute; bottom: 5px; inset-inline-end: 5px; display: grid; place-items: center; width: 40px; height: 40px; color: #6a8389; background: transparent; border: 0; border-radius: 6px; }
body.erp-formal-theme .password-toggle:hover { background: var(--fin-soft); }
body.erp-formal-theme .cyber-btn { display: flex; width: 100%; min-height: 49px; align-items: center; justify-content: center; gap: .7rem; margin-top: 1.5rem; padding: .7rem 1rem; color: #fff; background: var(--fin-accent); border: 1px solid var(--fin-accent); border-radius: 8px; font: inherit; font-size: .9rem; font-weight: 500; }
body.erp-formal-theme .cyber-btn:hover:not(:disabled) { background: var(--fin-accent-dark); }
body.erp-formal-theme .cyber-btn:disabled { opacity: .6; cursor: wait; }
body.erp-formal-theme .cyber-alert { display: flex; gap: .5rem; padding: .7rem; margin-block: .75rem; color: #a33333; background: #fff5f4; border: 1px solid #efd8d5; border-radius: 7px; font-size: .8rem; }
body.erp-formal-theme .security-note { display: flex; justify-content: center; gap: .35rem; margin: 1rem 0 0; color: #7b8f93; font-size: .71rem; }
body.erp-formal-theme .login-footer { margin-top: 1.75rem; padding-top: 1rem; color: #71858a; border-top: 1px solid var(--fin-line); font-size: .65rem; text-align: center; }
body.erp-formal-theme .mobile-support-trigger { display: none; }
body.erp-formal-theme .mobile-support-dialog-backdrop { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 1rem; background: #20353966; }
body.erp-formal-theme .mobile-support-dialog { width: min(440px, 100%); max-height: 85dvh; overflow-y: auto; background: #fff; border: 1px solid var(--fin-line); border-radius: 12px; }
body.erp-formal-theme .mobile-support-dialog__header { display: flex; justify-content: space-between; align-items: center; padding: 1rem; border-bottom: 1px solid var(--fin-line); }
body.erp-formal-theme .mobile-support-dialog__title { display: flex; gap: .5rem; font-size: .85rem; }
body.erp-formal-theme .mobile-support-dialog__close { width: 40px; height: 40px; color: var(--fin-muted); background: #f4f7f8; border: 0; border-radius: 7px; }
body.erp-formal-theme .mobile-support-dialog__body { padding: 1rem; font-size: .82rem; }
body.erp-formal-theme .mobile-support-dialog__actions { display: grid; gap: .6rem; }
body.erp-formal-theme .mobile-support-dialog__action { display: flex; gap: .5rem; padding: .65rem; color: var(--fin-accent); border: 1px solid var(--fin-line); border-radius: 7px; text-decoration: none; overflow-wrap: anywhere; }

@media screen and (min-width: 1200px) {
    body.erp-formal-theme .pos-workspace { grid-template-columns: minmax(0, 1fr) minmax(550px, 44%); }
}
@media screen and (max-width: 1199.98px) {
    body.erp-formal-theme .erp-layout:not(.sidebar-collapsed) { --erp-sidebar-width: 250px; }
    body.erp-formal-theme .erp-content-scroll > article.content { padding: 1rem !important; }
    .workspace-quick-actions { gap: .6rem; }
    .workspace-quick-actions > a { padding: .8rem; gap: .5rem; }
}
@media screen and (max-width: 991.98px) {
    body.erp-formal-theme .erp-layout .erp-sidebar { width: min(85vw, 290px); }
    body.erp-formal-theme .erp-layout .erp-top-header { padding-inline: 1rem; }
    body.erp-formal-theme .erp-sidebar-overlay { background: #20353966; backdrop-filter: none; }
    body.erp-formal-theme .enterprise-dashboard-grid { grid-template-columns: 1fr; }
    body.erp-formal-theme .login-pane { padding: 2rem; }
    body.erp-formal-theme .brand-pane { padding: 2rem 1.5rem; }
    body.erp-formal-theme .hr-command-hero { grid-template-columns: 1fr; }
}
@media screen and (max-width: 767.98px) {
    body.erp-formal-theme .login-shell { padding: 4rem 1rem 1rem; }
    body.erp-formal-theme .auth-surface { display: block; width: min(470px, 100%); min-height: 0; border-radius: 14px; }
    body.erp-formal-theme .brand-pane { display: none; }
    body.erp-formal-theme .login-pane { padding: 2rem 1.5rem; }
    body.erp-formal-theme .login-language-switch { inset-inline-end: 1rem; }
    body.erp-formal-theme .mobile-support-trigger { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; min-height: 44px; margin-top: .9rem; padding: .4rem; color: var(--fin-accent); background: transparent; border: 0; font-size: .78rem; }
    body.erp-formal-theme .login-footer { margin-top: 1.2rem; }
    .workspace-quick-actions { grid-template-columns: 1fr; }
    .workspace-quick-actions > a { padding: .75rem 1rem; }
    .workspace-date { display: none; }
    .workspace-welcome { padding-top: .1rem; }
    body.erp-formal-theme .enterprise-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    body.erp-formal-theme .enterprise-kpi { grid-template-columns: 1fr; gap: .5rem; padding: .8rem; min-height: 0; }
    body.erp-formal-theme .enterprise-kpi > i, body.erp-formal-theme .enterprise-kpi__icon { display: none; }
    body.erp-formal-theme .enterprise-kpi strong { font-size: 1.5rem; }
    body.erp-formal-theme .enterprise-kpi div span { white-space: normal; }
    body.erp-formal-theme .pos-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 140px; max-height: 40dvh; }
    body.erp-formal-theme .pos-page--restaurant .pos-product-grid { max-height: 40dvh; }
    body.erp-formal-theme .pos-cart-panel { min-width: 0; }
    body.erp-formal-theme .pos-cart-actions button { min-height: 38px; min-width: 38px; }
    body.erp-formal-theme .pos-cart-table th:last-child { width: 18%; }
    body.erp-formal-theme .pos-cart-lines { min-height: 120px; }
    body.erp-formal-theme .btn-action { width: 40px; height: 40px; min-height: 40px; }
    body.erp-formal-theme .erp-page-header .page-icon-wrapper { display: none; }
}
@media screen and (max-width: 575.98px) {
    body.erp-formal-theme .erp-content-scroll > article.content { padding: .85rem .65rem 1.5rem !important; }
    body.erp-formal-theme .erp-top-header { padding-inline: .65rem; }
    body.erp-formal-theme article.content .card > .card-body:not(.p-0) { padding: .8rem !important; }
    body.erp-formal-theme .erp-page-subtitle { font-size: .76rem; }
}
@media screen and (prefers-reduced-motion: reduce) {
    body.erp-formal-theme *, body.erp-formal-theme *::before, body.erp-formal-theme *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
