/* E.Muwafaq Professional Accounting Workspace global visual base v3.3.0 - Dolibarr 22.0.5
 * Enterprise / audit-office visual overlay. Legacy v2 workspace selectors are
 * retained below for upgrade compatibility; v3 uses emuwafaq-workspace-v3.css.
 * Presentation only: no accounting, posting or workflow logic is changed.
 */
:root {
    --emu-primary-900:#103755;
    --emu-primary-800:#175278;
    --emu-primary-700:#1f648e;
    --emu-primary-050:#f4f8fb;
    --emu-primary-100:#eaf2f7;
    --emu-accent:#b8892b;
    --emu-accent-soft:#f8f3e8;
    --emu-ink:#1d2939;
    --emu-ink-soft:#344054;
    --emu-muted:#667085;
    --emu-muted-2:#98a2b3;
    --emu-line:#e1e5ea;
    --emu-line-strong:#cfd6de;
    --emu-bg:#f6f7f9;
    --emu-panel:#ffffff;
    --emu-soft:#f8fafc;
    --emu-success:#237a52;
    --emu-success-soft:#eff8f3;
    --emu-warning:#946200;
    --emu-warning-soft:#fff9ec;
    --emu-danger:#b04444;
    --emu-danger-soft:#fff2f2;
    --emu-radius:5px;
    --emu-shadow:0 1px 2px rgba(16,24,40,.035),0 3px 10px rgba(16,24,40,.035);
    --emu-font:"Segoe UI","72",Roboto,"Helvetica Neue",Arial,sans-serif;
}

html, body, body button, body input,
body select, body textarea, body table {
    font-family:var(--emu-font) !important;
}
body {
    color:var(--emu-ink);
    background:var(--emu-bg);
    font-size:13px;
    line-height:1.35;
    letter-spacing:0;
}

/* --------------------------------------------------------------------------
 * Unified application canvas
 *
 * These tokens and component rules are deliberately global to every Dolibarr
 * and E.Muwafaq page while this presentation module is enabled. Semantic
 * success/warning/error colors remain distinct for accounting clarity.
 * -------------------------------------------------------------------------- */
body #id-container,
body #id-right,
body .fiche {
    color:var(--emu-ink) !important;
    background-color:var(--emu-bg) !important;
}

body a:not(.butAction):not(.button):not(.tab):not(.tmenu):not(.vmenu) {
    color:var(--emu-primary-700);
}

body a:not(.butAction):not(.button):not(.tab):not(.tmenu):not(.vmenu):hover {
    color:var(--emu-primary-900);
}

body ::selection {
    background:var(--emu-primary-100);
    color:var(--emu-primary-900);
}

body input[type="checkbox"],
body input[type="radio"],
body progress {
    accent-color:var(--emu-primary-700);
}

body .box,
body .box-flex-item,
body .card,
body .underbanner,
body .tabsAction,
body .ui-dialog,
body .ui-widget-content,
body .select2-dropdown,
body .dropdown-menu {
    border-color:var(--emu-line) !important;
    background:var(--emu-panel) !important;
    color:var(--emu-ink) !important;
    box-shadow:var(--emu-shadow) !important;
}

body .box_titre,
body .box-title,
body .ui-dialog-titlebar,
body .modal-header,
body .dropdown-header {
    border-color:var(--emu-line) !important;
    background:var(--emu-soft) !important;
    color:var(--emu-ink) !important;
}

body .underbanner {
    border-radius:var(--emu-radius) !important;
}

body .refid,
body .refidno,
body .refidpadding {
    color:var(--emu-ink) !important;
}

body hr,
body .opacitymediumline,
body .borderbottom,
body .bordertop {
    border-color:var(--emu-line) !important;
}

body .select2-container--default .select2-results__option--highlighted[aria-selected],
body .select2-container--default .select2-results__option--highlighted[data-selected],
body .ui-state-active,
body .ui-widget-content .ui-state-active,
body .ui-widget-header .ui-state-active {
    border-color:var(--emu-primary-700) !important;
    background:var(--emu-primary-700) !important;
    color:#fff !important;
}

body .select2-container--default .select2-selection--multiple .select2-selection__choice,
body .tagtr,
body .tagtd {
    border-color:#c8dae5 !important;
    background:var(--emu-primary-100) !important;
    color:var(--emu-primary-900) !important;
}

body .pagination a,
body .pagination span,
body .pageplusone {
    border-color:var(--emu-line-strong) !important;
    background:var(--emu-panel) !important;
    color:var(--emu-primary-800) !important;
}

body .pagination .current,
body .pagination .active,
body .pagination a:hover {
    border-color:var(--emu-primary-700) !important;
    background:var(--emu-primary-700) !important;
    color:#fff !important;
}

/* --------------------------------------------------------------------------
 * Shell / navigation - restrained enterprise look
 * -------------------------------------------------------------------------- */
body #id-top,
body #id-top .tmenudiv,
body .tmenudiv,
body #id-top .login_block,
body #id-top .login_block_other {
    background:var(--emu-primary-900) !important;
}
body #id-top {
    box-shadow:0 1px 4px rgba(16,24,40,.16);
    border-bottom:1px solid rgba(255,255,255,.07);
}
body #id-top a,
body #id-top .tmenu,
body #id-top .tmenuimage,
body #id-top .tmenucenter,
body #id-top .login_block_elem,
body #id-top .login_block_elem a,
body #id-top .atoplogin,
body #id-top .fa,
body #id-top .fas,
body #id-top .far {
    color:#f8fafc !important;
    font-size:12px !important;
    font-weight:500 !important;
}
body #id-top .button-top-menu-dropdown,
body #id-top .dropdown-toggle {
    border-color:rgba(255,255,255,.14) !important;
    background:rgba(255,255,255,.08) !important;
    color:#fff !important;
    box-shadow:none !important;
}
body #id-top .dropdown-menu {
    border-color:var(--emu-line) !important;
    background:var(--emu-panel) !important;
    color:var(--emu-ink) !important;
}
body #id-top .dropdown-menu a,
body #id-top .dropdown-menu .fa,
body #id-top .dropdown-menu .fas,
body #id-top .dropdown-menu .far {
    color:var(--emu-ink-soft) !important;
}
body #id-top a:hover,
body #id-top .tmenu:hover {
    background:rgba(255,255,255,.055) !important;
    color:#fff !important;
}
body #id-top .tmenu.selected,
body #id-top .tmenuactive,
body #id-top .tmenu.sel {
    background:rgba(255,255,255,.075) !important;
    box-shadow:inset 0 -3px 0 var(--emu-accent) !important;
}

body #id-left,
body .vmenu,
body .blockvmenupair,
body .blockvmenuimpair {
    background:var(--emu-soft) !important;
}
body #id-left {
    width:238px !important;
    min-width:238px !important;
    border-right:1px solid var(--emu-line);
    box-shadow:1px 0 3px rgba(16,24,40,.02);
}
body #id-left .vmenu {
    padding:8px !important;
}
body .blockvmenupair,
body .blockvmenuimpair {
    border-color:var(--emu-line) !important;
}
body .menu_titre,
body .menu_contenu {
    display:flex;
    min-height:34px;
    align-items:center;
    border-radius:7px !important;
    margin:1px 4px !important;
    padding:6px 8px !important;
}
body .menu_titre a,
body .menu_contenu a {
    color:var(--emu-ink-soft) !important;
    font-size:11px !important;
    line-height:1.3 !important;
}
body .menu_titre {
    color:var(--emu-ink) !important;
    font-weight:600 !important;
}
body .menu_titre:hover,
body .menu_contenu:hover {
    background:var(--emu-panel) !important;
}
body .menu_titre.active,
body .menu_contenu.active,
body .vmenuselected {
    border-inline-start:3px solid var(--emu-primary-700) !important;
    background:var(--emu-primary-100) !important;
    color:var(--emu-primary-900) !important;
}

/* --------------------------------------------------------------------------
 * Titles / tabs / separators
 * -------------------------------------------------------------------------- */
body .titre,
body .titreinline,
body .fiche .titre {
    color:#101828 !important;
    font-size:20px !important;
    font-weight:600 !important;
    letter-spacing:-.012em !important;
    line-height:1.25 !important;
}
body .titre:before,
body .titreinline:before {
    content:"";
    display:inline-block;
    width:3px;
    height:18px;
    margin-right:9px;
    vertical-align:-3px;
    background:var(--emu-primary-700);
    border-radius:1px;
}
body .tabs {
    border-bottom:1px solid var(--emu-line) !important;
    background:transparent !important;
}
body .tab,
body .tabunactive,
body .tabactive {
    border-radius:0 !important;
    font-size:12.5px !important;
}
body .tabactive {
    color:var(--emu-primary-900) !important;
    font-weight:600 !important;
    background:transparent !important;
    border-bottom:2px solid var(--emu-primary-700) !important;
}
body .tabunactive:hover {
    color:var(--emu-primary-800) !important;
    background:#f5f7f9 !important;
}

/* --------------------------------------------------------------------------
 * Forms - compact, clean, system-like
 * -------------------------------------------------------------------------- */
body input[type="text"],
body input[type="number"],
body input[type="date"],
body input[type="email"],
body input[type="password"],
body input[type="search"],
body input[type="tel"],
body input[type="url"],
body input[type="time"],
body input[type="datetime-local"],
body select,
body textarea,
body .select2-container .select2-selection {
    border:1px solid var(--emu-line-strong) !important;
    border-radius:4px !important;
    background:#fff !important;
    color:var(--emu-ink) !important;
    min-height:30px;
    box-shadow:none !important;
    font-size:12.5px !important;
}
body input:disabled,
body input[readonly],
body select:disabled,
body textarea:disabled,
body .select2-container--disabled .select2-selection {
    border-color:var(--emu-line) !important;
    background:#f1f3f5 !important;
    color:var(--emu-muted) !important;
    opacity:1 !important;
}
body input:focus,
body select:focus,
body textarea:focus,
body .select2-container--focus .select2-selection {
    border-color:#77a1bc !important;
    box-shadow:0 0 0 2px rgba(31,100,142,.10) !important;
    outline:none !important;
}

/* --------------------------------------------------------------------------
 * Buttons - blue primary, neutral secondary. Gold is an accent, not a flood.
 * -------------------------------------------------------------------------- */
body .button,
body .butAction,
body .butActionRefused,
body button.button,
body input.button {
    border-radius:4px !important;
    font-size:12px !important;
    font-weight:600 !important;
    letter-spacing:0 !important;
    box-shadow:none !important;
    min-height:30px;
    transition:background-color .12s ease,border-color .12s ease,color .12s ease !important;
}
body .tabsAction .button,
body .tabsAction .butAction,
body .butAction {
    background:var(--emu-primary-700) !important;
    border:1px solid var(--emu-primary-700) !important;
    color:#fff !important;
    text-shadow:none !important;
}
body .tabsAction .button:hover,
body .tabsAction .butAction:hover,
body .butAction:hover {
    background:var(--emu-primary-800) !important;
    border-color:var(--emu-primary-800) !important;
}
body .button:not(.butAction):not(.butActionRefused) {
    border-color:var(--emu-line-strong) !important;
    background:var(--emu-panel) !important;
    color:var(--emu-ink-soft) !important;
}
body .button:not(.butAction):not(.butActionRefused):hover {
    border-color:#aebdca !important;
    background:var(--emu-primary-050) !important;
    color:var(--emu-primary-900) !important;
}
body .butActionRefused,
body .butActionDelete,
body .button-delete {
    border-color:#d7a2a2 !important;
    background:var(--emu-danger-soft) !important;
    color:var(--emu-danger) !important;
}
body .butActionRefused:hover,
body .butActionDelete:hover,
body .button-delete:hover {
    border-color:var(--emu-danger) !important;
    background:var(--emu-danger) !important;
    color:#fff !important;
}

/* --------------------------------------------------------------------------
 * Tables - audit-office / ERP style: neutral header, light rules, strong totals
 * -------------------------------------------------------------------------- */
body table.noborder,
body table.border,
body .liste {
    background:var(--emu-panel) !important;
    border:1px solid var(--emu-line) !important;
    border-radius:4px !important;
    border-collapse:separate !important;
    border-spacing:0 !important;
    box-shadow:none !important;
    overflow:hidden;
}
body tr.liste_titre > th,
body tr.liste_titre > td,
body .liste_titre {
    background:#f1f3f5 !important;
    color:var(--emu-ink-soft) !important;
    font-size:12px !important;
    font-weight:600 !important;
    border-color:#d9dee5 !important;
    border-bottom:1px solid #c9d0d8 !important;
    padding-top:7px !important;
    padding-bottom:7px !important;
}
body tr.liste_titre_filter > th,
body tr.liste_titre_filter > td,
body .liste_titre_filter {
    border-color:var(--emu-line) !important;
    background:var(--emu-soft) !important;
    color:var(--emu-ink-soft) !important;
}
body tr.liste_titre a {
    color:var(--emu-primary-800) !important;
}
body tr.oddeven:nth-child(even),
body .oddeven:nth-child(even) {
    background:#fafbfc !important;
}
body tr.oddeven:hover,
body .oddeven:hover {
    background:#f4f7f9 !important;
}
body table.noborder td,
body table.noborder th,
body table.border td,
body table.border th {
    border-bottom-color:#e7eaee !important;
    font-size:12.5px;
}
body tr.liste_total > td,
body tr.liste_total > th,
body .liste_total {
    background:#f3f5f7 !important;
    color:#101828 !important;
    font-weight:700 !important;
    border-top:1px solid #aeb8c4 !important;
}
body .right,
body td.right,
body th.right {
    font-variant-numeric:tabular-nums;
    font-feature-settings:"tnum" 1;
}

/* --------------------------------------------------------------------------
 * Messages / cards / badges
 * -------------------------------------------------------------------------- */
body .info,
body .ok,
body .warning,
body .error,
body .errors,
body .confirm,
body .notice {
    border-radius:4px !important;
    box-shadow:none !important;
    border-width:1px !important;
    border-left-width:3px !important;
    padding:9px 11px !important;
    font-size:12px !important;
}
body .info { background:#eef5f9 !important; border-color:#9fbccd !important; color:#274b63 !important; }
body .ok { background:#eff8f3 !important; border-color:#9acbb0 !important; color:#245f42 !important; }
body .warning { background:#fff9ec !important; border-color:#d8bd7d !important; color:#79581e !important; }
body .error,
body .errors { background:#fff2f2 !important; border-color:#d9a2a2 !important; color:#8b3838 !important; }
body .badge,
body [class*="badge-status"] {
    border-radius:999px !important;
    padding:2px 7px !important;
    font-size:11px !important;
    font-weight:600 !important;
    letter-spacing:0 !important;
    box-shadow:none !important;
}
body .opacitymedium { color:var(--emu-muted) !important; }

/* --------------------------------------------------------------------------
 * E.Muwafaq financial screens
 * -------------------------------------------------------------------------- */
body.emu-report-area .titre {
    font-size:21px !important;
}
body.emu-report-area .tabsAction,
body.emu-vat-area .tabsAction {
    background:#fff;
    border:1px solid var(--emu-line);
    border-radius:4px;
    padding:7px !important;
    box-shadow:none;
    margin-bottom:12px;
}
body.emu-report-area table.noborder {
    margin-top:7px;
}
body.emu-report-area tr.liste_total td {
    font-size:12.7px !important;
}
body.emu-accounting-area .badge-status4,
body.emu-close-area .badge-status4 {
    background:#eaf6ef !important;
    color:#246747 !important;
    border-color:#a9cfb9 !important;
}
body.emu-accounting-area .badge-status8,
body.emu-close-area .badge-status8 {
    background:#fff0f0 !important;
    color:#943939 !important;
    border-color:#e0adad !important;
}

/* --------------------------------------------------------------------------
 * VAT201 - close to a formal tax workpaper, not a decorative dashboard.
 * -------------------------------------------------------------------------- */
.emu-vat201-shell {
    --vat-primary:var(--emu-primary-700);
    --vat-primary-dark:var(--emu-primary-900);
    --vat-soft:var(--emu-primary-050);
    --vat-line:var(--emu-line-strong);
    --vat-gold:var(--emu-accent);
}
.emu-vat201-shell .emu-vat-hero {
    background:#fff;
    color:var(--emu-ink);
    padding:14px 16px 12px;
    border:1px solid var(--vat-line);
    border-top:4px solid var(--vat-primary);
    border-radius:4px;
    margin:0 0 12px 0;
    box-shadow:none;
    position:relative;
}
.emu-vat201-shell .emu-vat-hero:after { display:none; }
.emu-vat201-shell .emu-vat-kicker {
    font-size:10px;
    font-weight:600;
    text-transform:uppercase;
    letter-spacing:.06em;
    color:var(--vat-primary);
}
.emu-vat201-shell .emu-vat-title {
    font-size:20px;
    font-weight:600;
    line-height:1.25;
    color:var(--emu-ink);
    margin-top:2px;
}
.emu-vat201-shell .emu-vat-subtitle {
    margin-top:3px;
    font-size:11.5px;
    color:var(--emu-muted);
}
.emu-vat201-shell .emu-vat-disclaimer {
    margin-top:9px;
    display:inline-block;
    background:#fbf7ed;
    color:#6f5727;
    border:1px solid #ded0ad;
    border-radius:3px;
    padding:5px 8px;
    font-size:10.5px;
}
.emu-vat201-shell table.noborder { border-color:var(--vat-line) !important; }
.emu-vat201-shell tr.liste_titre > th,
.emu-vat201-shell tr.liste_titre > td {
    background:var(--emu-primary-100) !important;
    color:var(--emu-primary-900) !important;
    border-color:var(--emu-line-strong) !important;
}
.emu-vat201-shell .emu-vat-section td {
    background:var(--emu-primary-050) !important;
    color:var(--vat-primary-dark) !important;
    font-weight:600 !important;
    text-transform:none;
    letter-spacing:0;
    border-top:1px solid var(--vat-primary) !important;
    padding:8px 9px !important;
}
.emu-vat201-shell .emu-vat-net td {
    background:#f8f4ea !important;
    border-top:1px solid var(--vat-gold) !important;
    font-weight:700 !important;
}
.emu-vat201-shell .emu-vat-boxcode {
    display:inline-block;
    min-width:43px;
    padding:2px 6px;
    border-radius:3px;
    background:#fff;
    color:var(--vat-primary-dark);
    border:1px solid var(--emu-line-strong);
    font-size:11px;
    font-weight:700;
    text-align:center;
}
.emu-vat201-shell .liste_total .emu-vat-boxcode {
    background:#fffaf0;
    border-color:#d8c28f;
    color:#70541c;
}
body.emu-vat-area .tabsAction .button,
body.emu-vat-area .tabsAction .butAction {
    background:var(--vat-primary) !important;
    border-color:var(--vat-primary) !important;
}
body.emu-vat-area .tabsAction .button:hover,
body.emu-vat-area .tabsAction .butAction:hover {
    background:var(--vat-primary-dark) !important;
    border-color:var(--vat-primary-dark) !important;
}

/* --------------------------------------------------------------------------
 * Responsive / print
 * -------------------------------------------------------------------------- */
@media (min-width:1000px) {
    body table.noborder td,
    body table.noborder th {
        padding-left:8px !important;
        padding-right:8px !important;
    }
}
@media (max-width:768px) {
    body .titre,
    body .titreinline { font-size:18px !important; }
    .emu-vat201-shell .emu-vat-title { font-size:18px; }
}
@media print {
    body #id-top,
    body #id-left,
    body .tabsAction,
    body .pagination,
    body .noprint { display:none !important; }
    body { background:#fff !important; }
    body table.noborder,
    body table.border { box-shadow:none !important; }
}

/* --------------------------------------------------------------------------
 * Legacy E.Muwafaq Accountant Workspace v2 selectors.
 * Retained only for upgrade compatibility with cached v2 markup.
 * -------------------------------------------------------------------------- */
body.emu-workspace-page {
    --emu-workspace-navy:var(--emu-primary-900);
    --emu-workspace-navy-2:var(--emu-primary-800);
    --emu-workspace-blue:var(--emu-primary-700);
    --emu-workspace-teal:var(--emu-primary-800);
    --emu-workspace-gold:var(--emu-accent);
    --emu-workspace-green:var(--emu-success);
    --emu-workspace-red:var(--emu-danger);
    --emu-workspace-amber:var(--emu-warning);
    --emu-workspace-canvas:var(--emu-bg);
    --emu-workspace-panel:var(--emu-panel);
    --emu-workspace-text:var(--emu-ink);
    --emu-workspace-muted:var(--emu-muted);
    --emu-workspace-border:var(--emu-line);
    --emu-workspace-shadow:0 10px 30px rgba(25,45,65,.06);
    overflow-x:hidden;
}

body.emu-workspace-page #id-left,
body.emu-workspace-page .vmenu:not(.emu-sidebar-nav) {
    display:none !important;
}

body.emu-workspace-page #id-right {
    margin-left:0 !important;
    padding-left:0 !important;
    background:var(--emu-workspace-canvas) !important;
}

body.emu-workspace-page #id-right > .fiche,
body.emu-workspace-page #id-right .fiche:first-child {
    margin:0 !important;
    padding:0 !important;
    max-width:none !important;
}

.emu-workspace,
.emu-workspace *,
.emu-workspace *::before,
.emu-workspace *::after {
    box-sizing:border-box;
}

.emu-workspace {
    display:flex;
    min-height:calc(100vh - 54px);
    width:100%;
    background:var(--emu-workspace-canvas);
    color:var(--emu-workspace-text);
}

.emu-workspace a {
    text-decoration:none !important;
}

.emu-icon {
    display:inline-block;
    width:20px;
    height:20px;
    flex:0 0 auto;
    vertical-align:middle;
}

.emu-workspace-sidebar {
    position:sticky;
    top:0;
    z-index:31;
    display:flex;
    flex:0 0 264px;
    width:264px;
    height:calc(100vh - 54px);
    flex-direction:column;
    background:linear-gradient(180deg,#12334e 0%,#102c44 100%);
    border-right:1px solid rgba(255,255,255,.06);
    color:#dce8ef;
    box-shadow:8px 0 28px rgba(16,43,65,.08);
}

.emu-sidebar-brand {
    display:flex;
    align-items:center;
    min-height:78px;
    gap:12px;
    padding:14px 16px;
    border-bottom:1px solid rgba(255,255,255,.09);
}

.emu-company-mark {
    position:relative;
    display:grid;
    width:44px;
    height:44px;
    flex:0 0 44px;
    place-items:center;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.18);
    border-radius:13px;
    background:linear-gradient(145deg,#fff 0%,#e9f1f6 100%);
    color:var(--emu-workspace-navy);
    box-shadow:0 8px 18px rgba(0,0,0,.12);
    font-size:20px;
    font-weight:800;
    text-transform:uppercase;
}

.emu-company-mark::after {
    position:absolute;
    right:-8px;
    bottom:-10px;
    width:23px;
    height:23px;
    border-radius:50%;
    background:var(--emu-workspace-gold);
    content:"";
    opacity:.85;
}

.emu-company-mark img {
    position:relative;
    z-index:1;
    display:block;
    width:100%;
    height:100%;
    padding:5px;
    object-fit:contain;
}

.emu-company-mark span {
    position:relative;
    z-index:1;
}

.emu-brand-copy {
    min-width:0;
    flex:1 1 auto;
}

.emu-brand-copy strong,
.emu-brand-copy span {
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.emu-brand-copy strong {
    color:#fff;
    font-size:13px;
    font-weight:700;
    letter-spacing:.005em;
}

.emu-brand-copy span {
    margin-top:3px;
    color:#9fb7c7;
    font-size:10.5px;
}

.emu-icon-button {
    display:inline-grid;
    width:36px;
    height:36px;
    padding:0;
    place-items:center;
    border:0;
    border-radius:10px;
    background:transparent;
    color:inherit;
    cursor:pointer;
}

.emu-icon-button:hover {
    background:rgba(255,255,255,.09);
}

.emu-sidebar-close {
    display:none;
    color:#c4d4df;
}

.emu-sidebar-collapse {
    flex:0 0 34px;
    color:#a9bfcd;
}

.emu-sidebar-collapse .emu-icon {
    width:17px;
    height:17px;
}

body.emu-workspace-sidebar-collapsed .emu-workspace-sidebar {
    width:78px;
    flex-basis:78px;
}

body.emu-workspace-sidebar-collapsed .emu-sidebar-brand {
    justify-content:center;
    padding-right:9px;
    padding-left:9px;
}

body.emu-workspace-sidebar-collapsed .emu-company-mark {
    width:40px;
    height:40px;
    flex-basis:40px;
}

body.emu-workspace-sidebar-collapsed .emu-brand-copy,
body.emu-workspace-sidebar-collapsed .emu-nav-heading,
body.emu-workspace-sidebar-collapsed .emu-nav-label,
body.emu-workspace-sidebar-collapsed .emu-nav-badge,
body.emu-workspace-sidebar-collapsed .emu-security-chip div,
body.emu-workspace-sidebar-collapsed .emu-version {
    display:none;
}

body.emu-workspace-sidebar-collapsed .emu-sidebar-collapse {
    position:absolute;
    top:58px;
    left:22px;
    width:33px;
    height:25px;
    border:1px solid rgba(255,255,255,.08);
    background:#183e58;
}

[dir="rtl"] body.emu-workspace-sidebar-collapsed .emu-sidebar-collapse,
body.emu-workspace-sidebar-collapsed[dir="rtl"] .emu-sidebar-collapse {
    right:22px;
    left:auto;
}

body.emu-workspace-sidebar-collapsed .emu-sidebar-nav {
    padding-top:18px;
    padding-right:9px;
    padding-left:9px;
}

body.emu-workspace-sidebar-collapsed .emu-nav-group + .emu-nav-group {
    margin-top:10px;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.07);
}

body.emu-workspace-sidebar-collapsed .emu-nav-item {
    justify-content:center;
    padding-right:7px;
    padding-left:7px;
}

body.emu-workspace-sidebar-collapsed .emu-nav-icon {
    width:30px;
    height:30px;
    flex-basis:30px;
}

body.emu-workspace-sidebar-collapsed .emu-security-chip {
    justify-content:center;
    padding:9px;
}

.emu-sidebar-nav {
    flex:1 1 auto;
    overflow:auto;
    padding:12px 10px 20px;
    scrollbar-color:rgba(255,255,255,.18) transparent;
    scrollbar-width:thin;
}

.emu-nav-group + .emu-nav-group {
    margin-top:16px;
}

.emu-nav-heading {
    padding:0 10px 7px;
    color:#7899ae;
    font-size:9.5px;
    font-weight:800;
    letter-spacing:.095em;
    text-transform:uppercase;
}

.emu-nav-item {
    position:relative;
    display:flex;
    min-height:40px;
    align-items:center;
    gap:11px;
    margin:2px 0;
    padding:8px 10px;
    border:1px solid transparent;
    border-radius:10px;
    color:#c9d9e3 !important;
    transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .15s ease;
}

.emu-nav-item:hover {
    border-color:rgba(255,255,255,.06);
    background:rgba(255,255,255,.065);
    color:#fff !important;
    transform:translateX(1px);
}

.emu-nav-item.is-active {
    border-color:rgba(255,255,255,.09);
    background:linear-gradient(90deg,rgba(52,132,172,.32),rgba(52,132,172,.12));
    color:#fff !important;
    box-shadow:inset 3px 0 0 var(--emu-workspace-gold);
}

.emu-nav-icon {
    display:grid;
    width:24px;
    height:24px;
    flex:0 0 24px;
    place-items:center;
    color:#90afc1;
}

.emu-nav-icon .emu-icon {
    width:18px;
    height:18px;
}

.emu-nav-item:hover .emu-nav-icon,
.emu-nav-item.is-active .emu-nav-icon {
    color:#fff;
}

.emu-nav-label {
    min-width:0;
    flex:1 1 auto;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px;
    font-weight:550;
}

.emu-nav-badge {
    display:inline-grid;
    min-width:23px;
    height:20px;
    padding:0 6px;
    place-items:center;
    border:1px solid rgba(255,255,255,.10);
    border-radius:999px;
    background:rgba(255,255,255,.085);
    color:#e8f0f5;
    font-size:10px;
    font-weight:700;
    font-variant-numeric:tabular-nums;
}

.emu-sidebar-footer {
    padding:13px;
    border-top:1px solid rgba(255,255,255,.08);
}

.emu-security-chip {
    display:flex;
    align-items:flex-start;
    gap:10px;
    padding:10px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:11px;
    background:rgba(255,255,255,.045);
}

.emu-security-chip > .emu-icon {
    width:18px;
    height:18px;
    margin-top:1px;
    color:#80caa6;
}

.emu-security-chip strong,
.emu-security-chip span {
    display:block;
}

.emu-security-chip strong {
    color:#eaf4ef;
    font-size:10.5px;
    font-weight:700;
}

.emu-security-chip span {
    margin-top:2px;
    color:#8faaba;
    font-size:9px;
    line-height:1.35;
}

.emu-version {
    margin-top:9px;
    color:#6f8da0;
    font-size:9px;
    text-align:center;
}

.emu-workspace-main {
    min-width:0;
    flex:1 1 auto;
}

.emu-workspace-topbar {
    position:sticky;
    top:0;
    z-index:20;
    display:flex;
    min-height:72px;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    padding:11px 24px;
    border-bottom:1px solid var(--emu-workspace-border);
    background:rgba(255,255,255,.94);
    box-shadow:0 3px 12px rgba(26,49,68,.025);
    backdrop-filter:blur(12px);
}

.emu-topbar-start,
.emu-topbar-end {
    display:flex;
    align-items:center;
}

.emu-topbar-start {
    gap:12px;
}

.emu-topbar-end {
    gap:10px;
}

.emu-sidebar-open {
    display:none;
    color:var(--emu-workspace-navy);
}

.emu-page-eyebrow {
    color:var(--emu-workspace-muted);
    font-size:9.5px;
    font-weight:750;
    letter-spacing:.075em;
    text-transform:uppercase;
}

.emu-workspace-topbar h1 {
    margin:2px 0 0;
    color:var(--emu-workspace-text);
    font-size:18px;
    font-weight:750;
    letter-spacing:-.02em;
    line-height:1.15;
}

.emu-period-pill,
.emu-user-pill {
    display:flex;
    min-height:38px;
    align-items:center;
    gap:8px;
    border:1px solid var(--emu-workspace-border);
    border-radius:11px;
    background:#fff;
    color:#52606c;
}

.emu-period-pill {
    padding:7px 11px;
    font-size:10.5px;
    font-weight:650;
}

.emu-period-pill .emu-icon {
    width:16px;
    height:16px;
    color:var(--emu-workspace-blue);
}

.emu-user-pill {
    padding:4px 9px 4px 5px;
}

.emu-user-avatar {
    display:grid;
    width:29px;
    height:29px;
    place-items:center;
    border-radius:9px;
    background:linear-gradient(145deg,var(--emu-workspace-navy),var(--emu-workspace-blue));
    color:#fff;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}

.emu-user-name {
    display:block;
    max-width:130px;
    overflow:hidden;
    color:#394653;
    font-size:10.5px;
    font-weight:650;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.emu-workspace-content {
    width:min(100%,1560px);
    margin:0 auto;
    padding:22px 24px 34px;
}

.emu-welcome-panel {
    position:relative;
    display:flex;
    min-height:214px;
    align-items:center;
    justify-content:space-between;
    overflow:hidden;
    padding:30px 34px;
    border:1px solid rgba(255,255,255,.08);
    border-radius:18px;
    background:linear-gradient(125deg,#123750 0%,#185772 62%,#247a84 100%);
    color:#fff;
    box-shadow:0 14px 36px rgba(16,55,78,.15);
}

.emu-welcome-pattern {
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 84% 16%,rgba(255,255,255,.15) 0 2px,transparent 3px),
        radial-gradient(circle at 90% 75%,rgba(255,255,255,.09) 0 1px,transparent 2px);
    background-size:32px 32px,24px 24px;
    mask-image:linear-gradient(90deg,transparent 46%,#000 100%);
    pointer-events:none;
}

.emu-welcome-panel::after {
    position:absolute;
    right:-75px;
    bottom:-105px;
    width:330px;
    height:330px;
    border:1px solid rgba(255,255,255,.11);
    border-radius:50%;
    content:"";
}

.emu-welcome-copy {
    position:relative;
    z-index:2;
    max-width:610px;
}

.emu-welcome-date {
    display:inline-flex;
    padding:5px 9px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:999px;
    background:rgba(255,255,255,.085);
    color:#d9e8ef;
    font-size:10px;
    font-weight:700;
    letter-spacing:.045em;
    text-transform:uppercase;
}

.emu-welcome-copy h2 {
    margin:13px 0 7px;
    color:#fff;
    font-size:27px;
    font-weight:750;
    letter-spacing:-.035em;
    line-height:1.15;
}

.emu-welcome-copy p {
    max-width:590px;
    margin:0;
    color:#c9dce6;
    font-size:12px;
    line-height:1.55;
}

.emu-welcome-actions {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:20px;
}

.emu-button {
    display:inline-flex;
    min-height:38px;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:9px 14px;
    border:1px solid transparent;
    border-radius:10px;
    font-size:11px;
    font-weight:750;
    transition:transform .15s ease,box-shadow .15s ease,background-color .15s ease;
}

.emu-button:hover {
    transform:translateY(-1px);
}

.emu-button .emu-icon {
    width:17px;
    height:17px;
}

.emu-button-primary {
    border-color:#fff;
    background:#fff;
    color:var(--emu-workspace-navy) !important;
    box-shadow:0 7px 18px rgba(0,0,0,.10);
}

.emu-button-secondary {
    border-color:rgba(255,255,255,.22);
    background:rgba(255,255,255,.08);
    color:#fff !important;
}

.emu-button-secondary:hover {
    background:rgba(255,255,255,.14);
}

.emu-welcome-visual {
    position:relative;
    z-index:2;
    width:280px;
    height:155px;
    flex:0 0 280px;
    margin-right:18px;
}

.emu-visual-card {
    position:absolute;
    width:206px;
    height:132px;
    border:1px solid rgba(255,255,255,.18);
    border-radius:16px;
    box-shadow:0 18px 30px rgba(4,31,45,.20);
}

.emu-visual-card-back {
    top:4px;
    right:0;
    padding:23px 22px;
    background:rgba(255,255,255,.12);
    transform:rotate(8deg);
}

.emu-visual-card-back span {
    display:block;
    width:70%;
    height:7px;
    margin-bottom:12px;
    border-radius:5px;
    background:rgba(255,255,255,.18);
}

.emu-visual-card-back span:nth-child(2) { width:46%; }
.emu-visual-card-back span:nth-child(3) { width:61%; }

.emu-visual-card-front {
    left:8px;
    bottom:0;
    padding:18px;
    background:rgba(255,255,255,.96);
    color:var(--emu-workspace-navy);
    transform:rotate(-3deg);
}

.emu-visual-icon {
    display:grid;
    width:34px;
    height:34px;
    place-items:center;
    border-radius:10px;
    background:#e7f2f6;
    color:var(--emu-workspace-blue);
}

.emu-visual-icon .emu-icon { width:19px; height:19px; }

.emu-visual-lines {
    position:absolute;
    top:21px;
    left:64px;
    right:18px;
}

.emu-visual-lines span {
    display:block;
    height:6px;
    margin-bottom:8px;
    border-radius:4px;
    background:#dfe8ed;
}

.emu-visual-lines span:nth-child(1) { width:72%; background:#b9d0dc; }
.emu-visual-lines span:nth-child(2) { width:92%; }
.emu-visual-lines span:nth-child(3) { width:58%; }

.emu-mini-chart {
    position:absolute;
    right:18px;
    bottom:17px;
    left:18px;
    display:flex;
    height:43px;
    align-items:flex-end;
    gap:8px;
    padding:0 8px;
    border-bottom:1px solid #dce6eb;
}

.emu-mini-chart i {
    display:block;
    flex:1 1 0;
    border-radius:4px 4px 0 0;
    background:linear-gradient(180deg,#3a97a0,#277584);
}

.emu-mini-chart i:nth-child(1) { height:35%; }
.emu-mini-chart i:nth-child(2) { height:62%; }
.emu-mini-chart i:nth-child(3) { height:48%; }
.emu-mini-chart i:nth-child(4) { height:82%; }
.emu-mini-chart i:nth-child(5) { height:68%; background:linear-gradient(180deg,#d5ae5d,#bf8d31); }

.emu-kpi-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-top:16px;
}

.emu-kpi-card {
    position:relative;
    display:flex;
    min-height:106px;
    align-items:center;
    gap:13px;
    overflow:hidden;
    padding:17px;
    border:1px solid var(--emu-workspace-border);
    border-radius:14px;
    background:#fff;
    color:var(--emu-workspace-text) !important;
    box-shadow:0 4px 17px rgba(24,46,65,.035);
    transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}

.emu-kpi-card::before {
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:3px;
    background:var(--emu-kpi-color,#6c8495);
    content:"";
    opacity:.85;
}

.emu-kpi-card:hover {
    border-color:#d1dce4;
    box-shadow:0 10px 25px rgba(24,46,65,.075);
    transform:translateY(-2px);
}

.emu-kpi-card.emu-tone-blue { --emu-kpi-color:#2b78a0; --emu-kpi-soft:#eaf3f8; }
.emu-kpi-card.emu-tone-teal { --emu-kpi-color:#2d817e; --emu-kpi-soft:#eaf5f3; }
.emu-kpi-card.emu-tone-green { --emu-kpi-color:#357c5d; --emu-kpi-soft:#edf6f1; }
.emu-kpi-card.emu-tone-red { --emu-kpi-color:#b24a4a; --emu-kpi-soft:#fff0f0; }
.emu-kpi-card.emu-tone-amber { --emu-kpi-color:#b87822; --emu-kpi-soft:#fff5e7; }
.emu-kpi-card.emu-tone-slate { --emu-kpi-color:#697d8d; --emu-kpi-soft:#f0f4f6; }

.emu-kpi-icon {
    display:grid;
    width:43px;
    height:43px;
    flex:0 0 43px;
    place-items:center;
    border-radius:12px;
    background:var(--emu-kpi-soft,#f0f4f6);
    color:var(--emu-kpi-color,#6c8495);
}

.emu-kpi-icon .emu-icon { width:21px; height:21px; }

.emu-kpi-copy {
    min-width:0;
    flex:1 1 auto;
}

.emu-kpi-label {
    display:block;
    overflow:hidden;
    color:var(--emu-workspace-muted);
    font-size:10.5px;
    font-weight:650;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.emu-kpi-value {
    display:flex;
    min-width:0;
    align-items:baseline;
    gap:5px;
    margin-top:7px;
    color:#1b2934;
    font-size:18px;
    font-weight:780;
    font-variant-numeric:tabular-nums;
    letter-spacing:-.025em;
    white-space:nowrap;
}

.emu-money-number {
    overflow:hidden;
    text-overflow:ellipsis;
}

.emu-money-currency {
    color:#85919b;
    font-size:8.5px;
    font-weight:750;
    letter-spacing:.03em;
}

.emu-value-unavailable { color:#a7b0b8; }

.emu-kpi-arrow {
    display:grid;
    width:25px;
    height:25px;
    flex:0 0 25px;
    place-items:center;
    border-radius:8px;
    color:#9ba7b0;
}

.emu-kpi-arrow .emu-icon { width:15px; height:15px; }

.emu-dashboard-grid {
    display:grid;
    grid-template-columns:minmax(0,1.35fr) minmax(330px,.85fr);
    gap:16px;
    margin-top:16px;
    align-items:start;
}

.emu-panel {
    min-width:0;
    overflow:hidden;
    border:1px solid var(--emu-workspace-border);
    border-radius:15px;
    background:#fff;
    box-shadow:0 5px 20px rgba(24,46,65,.04);
}

.emu-panel-header {
    display:flex;
    min-height:68px;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:15px 18px;
    border-bottom:1px solid #e9edf1;
}

.emu-panel-kicker {
    display:block;
    margin-bottom:3px;
    color:#87929c;
    font-size:9px;
    font-weight:750;
    letter-spacing:.065em;
    text-transform:uppercase;
}

.emu-panel-header h3 {
    margin:0;
    color:#1e2b35;
    font-size:14px;
    font-weight:750;
    letter-spacing:-.01em;
}

.emu-text-link {
    display:inline-flex;
    flex:0 0 auto;
    align-items:center;
    gap:5px;
    color:var(--emu-workspace-blue) !important;
    font-size:10px;
    font-weight:750;
}

.emu-text-link .emu-icon { width:14px; height:14px; }

.emu-finance-rows {
    padding:4px 18px;
}

.emu-finance-row {
    display:grid;
    grid-template-columns:6px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    min-height:69px;
    border-bottom:1px solid #edf1f4;
}

.emu-finance-row:last-child { border-bottom:0; }

.emu-finance-marker {
    display:block;
    width:5px;
    height:36px;
    border-radius:999px;
}

.emu-finance-marker.is-assets { background:#2b78a0; }
.emu-finance-marker.is-liabilities { background:#b87822; }
.emu-finance-marker.is-equity { background:#357c5d; }

.emu-finance-row div > span,
.emu-finance-row div > small {
    display:block;
}

.emu-finance-row div > span {
    color:#2a3741;
    font-size:11px;
    font-weight:720;
}

.emu-finance-row div > small {
    margin-top:3px;
    color:#8a959e;
    font-size:9.5px;
}

.emu-finance-row > strong,
.emu-pnl-metric strong,
.emu-pnl-result strong {
    display:flex;
    align-items:baseline;
    gap:5px;
    color:#1b2934;
    font-size:14px;
    font-weight:780;
    font-variant-numeric:tabular-nums;
    white-space:nowrap;
}

.emu-balance-status {
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:5px 18px 17px;
    padding:10px 11px;
    border:1px solid;
    border-radius:10px;
}

.emu-balance-status.is-balanced {
    border-color:#cfe5d8;
    background:#f1f8f4;
    color:#2e7455;
}

.emu-balance-status.is-review {
    border-color:#ead8b6;
    background:#fff8ed;
    color:#94621f;
}

.emu-balance-status > .emu-icon { width:18px; height:18px; }
.emu-balance-status span { min-width:0; }
.emu-balance-status strong,.emu-balance-status small { display:block; }
.emu-balance-status strong { font-size:10px; font-weight:750; }
.emu-balance-status small { margin-top:2px; color:inherit; font-size:9px; opacity:.82; }

.emu-pnl-stack {
    padding:13px 18px 18px;
}

.emu-pnl-metric {
    display:flex;
    min-height:58px;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:8px 0;
    border-bottom:1px solid #edf1f4;
}

.emu-pnl-metric > span {
    position:relative;
    padding-left:15px;
    color:#576571;
    font-size:10.5px;
    font-weight:650;
}

.emu-pnl-metric > span::before {
    position:absolute;
    top:50%;
    left:0;
    width:7px;
    height:7px;
    border-radius:50%;
    content:"";
    transform:translateY(-50%);
}

.emu-pnl-metric.is-revenue > span::before { background:#357c5d; }
.emu-pnl-metric.is-expense > span::before { background:#b87822; }

.emu-pnl-result {
    display:flex;
    min-height:76px;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:13px;
    padding:13px 14px;
    border:1px solid #d6e6dc;
    border-radius:11px;
    background:linear-gradient(135deg,#f1f8f4,#f7fbf8);
}

.emu-pnl-result.is-loss {
    border-color:#ebd0d0;
    background:linear-gradient(135deg,#fff4f4,#fff9f9);
}

.emu-pnl-result > div span,
.emu-pnl-result > div small {
    display:block;
}

.emu-pnl-result > div span { color:#2d3c47; font-size:10.5px; font-weight:750; }
.emu-pnl-result > div small { margin-top:3px; color:#87939d; font-size:9px; }
.emu-pnl-result strong { color:#2e7455; font-size:16px; }
.emu-pnl-result.is-loss strong { color:#a24242; }

.emu-action-list,
.emu-attention-list {
    padding:7px 10px 11px;
}

.emu-action-item,
.emu-attention-row {
    display:flex;
    min-height:62px;
    align-items:center;
    gap:11px;
    padding:9px 8px;
    border-bottom:1px solid #edf1f4;
    color:var(--emu-workspace-text) !important;
    transition:background-color .14s ease;
}

.emu-action-item:last-child,
.emu-attention-row:last-child { border-bottom:0; }

.emu-action-item:hover,
.emu-attention-row:hover {
    border-radius:9px;
    background:#f7f9fa;
}

.emu-action-icon,
.emu-attention-icon {
    display:grid;
    width:37px;
    height:37px;
    flex:0 0 37px;
    place-items:center;
    border-radius:11px;
}

.emu-action-icon .emu-icon,
.emu-attention-icon .emu-icon { width:18px; height:18px; }

.emu-action-primary .emu-action-icon { background:#e9f2f7; color:#2b78a0; }
.emu-action-teal .emu-action-icon { background:#eaf5f3; color:#2d817e; }
.emu-action-gold .emu-action-icon { background:#fff4df; color:#a87220; }
.emu-action-slate .emu-action-icon { background:#eff3f5; color:#657988; }

.emu-action-item > span:nth-child(2),
.emu-attention-row > span:nth-child(2) {
    min-width:0;
    flex:1 1 auto;
}

.emu-action-item strong,
.emu-action-item small,
.emu-attention-row strong,
.emu-attention-row small {
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.emu-action-item strong,
.emu-attention-row strong {
    color:#2b3843;
    font-size:10.5px;
    font-weight:720;
}

.emu-action-item small,
.emu-attention-row small {
    margin-top:3px;
    color:#8a959e;
    font-size:9px;
}

.emu-action-arrow {
    display:grid;
    width:25px;
    height:25px;
    flex:0 0 25px;
    place-items:center;
    color:#9da8b0;
}

.emu-action-arrow .emu-icon { width:15px; height:15px; }

.emu-attention-icon.is-overdue { background:#fff1e2; color:#b46c19; }
.emu-attention-icon.is-sales { background:#e9f2f7; color:#2b78a0; }
.emu-attention-icon.is-purchase { background:#eaf5f3; color:#2d817e; }

.emu-attention-row > b {
    display:grid;
    min-width:29px;
    height:25px;
    padding:0 7px;
    place-items:center;
    border-radius:999px;
    background:#f0f3f5;
    color:#52616d;
    font-size:10px;
    font-weight:800;
    font-variant-numeric:tabular-nums;
}

.emu-mobile-overlay {
    display:none;
}

/* RTL keeps the information hierarchy and naturally mirrors navigation. */
[dir="rtl"] .emu-workspace-sidebar {
    border-right:0;
    border-left:1px solid rgba(255,255,255,.06);
    box-shadow:-8px 0 28px rgba(16,43,65,.08);
}

[dir="rtl"] .emu-nav-item.is-active {
    box-shadow:inset -3px 0 0 var(--emu-workspace-gold);
}

[dir="rtl"] .emu-nav-item:hover { transform:translateX(-1px); }
[dir="rtl"] .emu-pnl-metric > span { padding-right:15px; padding-left:0; }
[dir="rtl"] .emu-pnl-metric > span::before { right:0; left:auto; }
[dir="rtl"] .emu-kpi-arrow .emu-icon,
[dir="rtl"] .emu-action-arrow .emu-icon,
[dir="rtl"] .emu-text-link .emu-icon { transform:scaleX(-1); }

@media (max-width:1260px) {
    .emu-workspace-sidebar { flex-basis:238px; width:238px; }
    .emu-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .emu-welcome-visual { width:235px; flex-basis:235px; margin-right:0; transform:scale(.9); transform-origin:center right; }
}

@media (max-width:980px) {
    .emu-workspace-sidebar {
        position:fixed;
        top:0;
        bottom:0;
        left:0;
        width:278px;
        height:100vh;
        transform:translateX(-105%);
        transition:transform .2s ease;
    }
    [dir="rtl"] .emu-workspace-sidebar {
        right:0;
        left:auto;
        transform:translateX(105%);
    }
    body.emu-workspace-sidebar-open .emu-workspace-sidebar { transform:translateX(0); }
    .emu-sidebar-close,.emu-sidebar-open { display:inline-grid; }
    .emu-sidebar-collapse { display:none; }
    body.emu-workspace-sidebar-collapsed .emu-workspace-sidebar { width:278px; }
    body.emu-workspace-sidebar-collapsed .emu-brand-copy,
    body.emu-workspace-sidebar-collapsed .emu-nav-heading,
    body.emu-workspace-sidebar-collapsed .emu-nav-label,
    body.emu-workspace-sidebar-collapsed .emu-nav-badge,
    body.emu-workspace-sidebar-collapsed .emu-security-chip div,
    body.emu-workspace-sidebar-collapsed .emu-version { display:block; }
    body.emu-workspace-sidebar-collapsed .emu-sidebar-brand { justify-content:flex-start; padding:14px 16px; }
    body.emu-workspace-sidebar-collapsed .emu-nav-item { justify-content:flex-start; padding:8px 10px; }
    body.emu-workspace-sidebar-collapsed .emu-nav-group + .emu-nav-group { margin-top:16px; padding-top:0; border-top:0; }
    body.emu-workspace-sidebar-collapsed .emu-sidebar-nav { padding:12px 10px 20px; }
    body.emu-workspace-sidebar-collapsed .emu-security-chip { justify-content:flex-start; padding:10px; }
    .emu-mobile-overlay {
        position:fixed;
        z-index:30;
        inset:0;
        background:rgba(12,28,40,.46);
        backdrop-filter:blur(2px);
    }
    body.emu-workspace-sidebar-open .emu-mobile-overlay { display:block; }
    .emu-dashboard-grid { grid-template-columns:1fr; }
    .emu-welcome-visual { display:none; }
    .emu-welcome-copy { max-width:700px; }
}

@media (max-width:680px) {
    .emu-workspace-topbar { min-height:64px; padding:10px 13px; }
    .emu-workspace-topbar h1 { font-size:16px; }
    .emu-page-eyebrow,.emu-user-name,.emu-period-pill span { display:none; }
    .emu-period-pill { width:38px; padding:0; justify-content:center; }
    .emu-user-pill { padding:4px; }
    .emu-workspace-content { padding:13px 12px 26px; }
    .emu-welcome-panel { min-height:225px; padding:24px 21px; border-radius:15px; }
    .emu-welcome-copy h2 { font-size:23px; }
    .emu-welcome-copy p { font-size:11px; }
    .emu-kpi-grid { grid-template-columns:1fr; gap:10px; margin-top:12px; }
    .emu-kpi-card { min-height:91px; padding:14px; }
    .emu-dashboard-grid { gap:12px; margin-top:12px; }
    .emu-panel { border-radius:13px; }
    .emu-finance-row { grid-template-columns:5px minmax(0,1fr); padding:9px 0; }
    .emu-finance-row > strong { grid-column:2; margin-top:-5px; }
}

@media (prefers-reduced-motion:reduce) {
    .emu-workspace *,
    .emu-workspace *::before,
    .emu-workspace *::after {
        scroll-behavior:auto !important;
        transition-duration:.001ms !important;
        animation-duration:.001ms !important;
    }
}

@media print {
    body.emu-workspace-page #id-top,
    .emu-workspace-sidebar,
    .emu-workspace-topbar,
    .emu-welcome-actions,
    .emu-kpi-arrow,
    .emu-action-arrow,
    .emu-mobile-overlay { display:none !important; }
    .emu-workspace { display:block; min-height:0; background:#fff; }
    .emu-workspace-content { width:100%; padding:0; }
    .emu-welcome-panel { color:#111; border-color:#bbb; background:#fff; box-shadow:none; }
    .emu-welcome-copy h2 { color:#111; }
    .emu-welcome-copy p { color:#444; }
    .emu-panel,.emu-kpi-card { break-inside:avoid; box-shadow:none; }
}
