/* Screen-only application chrome. Official document and print typography stay independent. */
:root{--eo-navy:#123f80;--eo-sidebar:#12343f;--eo-teal:#1554b4;--eo-gold:#d4a72c;--eo-bg:#f6f8fa;--eo-text:#102d55;--eo-muted:#243b53;--eo-border:#cbd5e1;--eo-success:#18845a;--eo-radius:10px;--eo-space-1:4px;--eo-space-2:8px;--eo-space-3:12px;--eo-space-4:16px;--eo-shadow:0 3px 14px #102a3308;--eo-duration:180ms}
@media screen{
body.enterprise-shell{font-family:'Segoe UI',system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.5;color:var(--eo-text);background:var(--eo-bg)}
.enterprise-shell .main-area{min-width:0;flex:1;background:var(--eo-bg)}
.enterprise-shell .main-content{padding:20px 24px!important;min-width:0}
.enterprise-shell .sidebar{width:232px;background:var(--eo-sidebar);padding:0;height:100dvh;border-right:1px solid #ffffff0d}
.enterprise-shell .sidebar-brand{padding:22px 18px;gap:12px;border-bottom:1px solid #ffffff12}
.enterprise-shell .brand-crest{width:48px;height:48px}.enterprise-shell .brand-title{font-size:19px;letter-spacing:.02em}.enterprise-shell .brand-sub{font-size:10px;letter-spacing:.16em;color:#fff}
.enterprise-shell .sidebar-office{margin:14px 18px 4px;font-size:12px;color:#fff}
.enterprise-shell .sidebar-section-label{padding:14px 18px 6px;margin:0;color:#fff;font-size:10px;font-weight:600;letter-spacing:.1em}
.enterprise-shell .sidebar-nav{padding:0 10px;gap:2px}.enterprise-shell .sidebar-link{min-height:38px;padding:8px 12px;font-size:13px;line-height:1.4;border-radius:6px;color:#fff;margin:0;border-left:3px solid transparent}
.enterprise-shell .sidebar-link:hover{background:#ffffff0b;color:white}.enterprise-shell .sidebar-link.is-active{background:#ffffff12;border-left-color:#45c5b2;color:white;font-weight:600}
.enterprise-shell .sidebar-account{padding:0;border-top:1px solid #ffffff14;background:#102d38}.enterprise-shell .sidebar-user{padding:16px!important}.enterprise-shell .sidebar-navigation{scrollbar-width:thin;scrollbar-color:#46616b transparent}
.enterprise-shell .topbar{min-height:76px;padding:12px 24px;gap:16px;background:white;border-bottom:1px solid var(--eo-border);box-shadow:none;align-items:center;position:sticky;top:0;z-index:40;flex-wrap:nowrap}
.enterprise-shell .topbar-heading{flex:1;min-width:0}.enterprise-shell .topbar-title{font-size:17px;line-height:1.4;font-weight:600;color:var(--eo-navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-breadcrumb{display:flex;gap:7px;font-size:11px;color:var(--eo-muted);margin-bottom:3px}.workspace-breadcrumb a{color:var(--eo-muted);text-decoration:none}.workspace-breadcrumb a:hover{text-decoration:underline}
.enterprise-shell .topbar-welcome{gap:8px;line-height:1.4}.enterprise-shell .topbar-welcome strong{font-size:17px}.enterprise-shell .topbar-welcome>span{font-size:11px}
.enterprise-shell .topbar-search{width:230px;flex:0 0 230px}.enterprise-shell .topbar-search input{font-size:13px;height:36px;background:#f4f7fc;border-color:var(--eo-border)}
.enterprise-shell .btn{font-family:inherit;font-size:14px;line-height:1.4;min-height:36px;padding:7px 12px;border-radius:8px;box-shadow:none;white-space:nowrap;transition:background-color var(--eo-duration),border-color var(--eo-duration)}
.enterprise-shell .btn-primary,.enterprise-shell .btn-success{background:var(--eo-teal);border-color:var(--eo-teal);color:white}.enterprise-shell .btn-primary:hover,.enterprise-shell .btn-success:hover{background:#123f80;border-color:#123f80}
.enterprise-shell .btn-outline-primary,.enterprise-shell .btn-outline-secondary{background:white;border-color:#ced9e0;color:var(--eo-navy)}.enterprise-shell .btn-outline-primary:hover,.enterprise-shell .btn-outline-secondary:hover{background:#edf3fc;border-color:#8ca8cf;color:var(--eo-navy)}
.enterprise-shell .card:not(#printArea){border:1px solid var(--eo-border);border-radius:var(--eo-radius);box-shadow:0 2px 8px #12304404}
.enterprise-shell :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #1554b466;outline-offset:3px}
.enterprise-shell .form-control,.enterprise-shell .form-select{font-family:inherit;font-size:14px;border-color:#ccd6df;border-radius:6px}.enterprise-shell .badge{font-size:11px;font-weight:600;letter-spacing:0;line-height:1.4}
.enterprise-shell .sidebar-toggle{width:34px;flex:0 0 34px;padding:6px}.enterprise-shell #notification-bell{font-size:12px;min-width:56px}
@media(max-width:1200px){.enterprise-shell .topbar-search{width:190px;flex-basis:190px}}
@media(max-width:900px){.enterprise-shell .sidebar{position:fixed;inset:0 auto 0 0;z-index:1050;width:232px}.enterprise-shell:not(.sidebar-open) .sidebar{display:none!important}.enterprise-shell .main-area{margin-left:0!important}.enterprise-shell .topbar{padding:12px 16px;gap:10px}.enterprise-shell .main-content{padding:16px!important}}
@media(max-width:600px){.enterprise-shell .topbar{min-height:66px}.enterprise-shell .topbar-search,.enterprise-shell .topbar-title{font-size:15px}.workspace-breadcrumb{font-size:10px}.enterprise-shell .topbar-welcome>span{display:none}.enterprise-shell .main-content{padding:12px!important}}
.enterprise-shell .topbar:has(.topbar-clock-slot){flex-wrap:nowrap}.enterprise-shell .topbar:has(.topbar-clock-slot) .topbar-heading{flex:1;min-width:0}.enterprise-shell .topbar:has(.topbar-clock-slot) .topbar-title{font-size:17px!important;color:var(--eo-navy)!important;max-width:100%}
.enterprise-shell .topbar-clock-slot{order:initial;flex:0 0 auto;margin:0}.enterprise-shell .clock-face{width:38px;height:38px}.enterprise-shell .clock-time{font-size:16px}.enterprise-shell .clock-date{font-size:10px}

.ui-icon{width:18px;height:18px;flex:0 0 18px;object-fit:contain;display:inline-block;vertical-align:-3px}
.enterprise-shell .sidebar-link .ui-icon,.enterprise-shell .sidebar .btn-accent>.ui-icon{filter:brightness(0) invert(1);opacity:1}
.enterprise-shell .sidebar-link{gap:12px;min-height:42px;font-size:15px;padding:9px 12px;border-radius:8px;transition:background-color var(--eo-duration)}
.enterprise-shell .sidebar-link.is-active{background:#1b5361;border-left-color:#d4a72c;box-shadow:inset 6px 0 0 #d4a72c;color:white}
.enterprise-shell .sidebar-link:hover{background:#1a4652}.enterprise-shell .sidebar-section-label{font-size:10px;letter-spacing:.12em;color:#fff}
.enterprise-shell .sidebar .btn-accent{background:#246773;border:1px solid #3d7c87;color:white;display:flex;justify-content:center;align-items:center;gap:8px}
.enterprise-shell .btn-primary>.ui-icon,.enterprise-shell .btn-success>.ui-icon{filter:brightness(0) invert(1)}
.enterprise-shell .topbar .clock-face{display:block;width:46px;height:46px;flex:0 0 46px}.enterprise-shell .topbar .clock-time{font-size:13px;font-weight:600;color:#243b53}.enterprise-shell .topbar .clock-date{font-size:10px;color:#243b53}
.enterprise-shell .topbar-clock-slot{border-left:1px solid #e2e8f0;padding-left:16px}.enterprise-shell .topbar-search input{border-radius:8px;background:#f4f7f9;border-color:#cbd5e1}
.enterprise-shell .btn{display:inline-flex;align-items:center;justify-content:center;gap:7px}.enterprise-shell :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #1554b4!important;outline-offset:3px}
.dashboard-heading{margin:0 0 20px;display:flex;justify-content:space-between;align-items:center}.dashboard-kicker{font-size:10px;font-weight:600;letter-spacing:.12em;color:#123f80}.dashboard-heading h1{font-size:26px;font-weight:600;color:#102d55;letter-spacing:-.025em;margin:4px 0}.dashboard-heading p{font-size:14px;margin:0;color:#243b53}
.enterprise-shell .dashboard-page .stat-card{position:relative;display:flex;align-items:flex-start;gap:14px;padding:18px;border:1px solid #cbd5e1;border-radius:10px;box-shadow:var(--eo-shadow);background:white;color:#102d55;min-height:116px;transition:border-color var(--eo-duration),box-shadow var(--eo-duration)}
.enterprise-shell .dashboard-page .stat-card:hover{filter:none;border-color:#1554b4;box-shadow:0 4px 16px #102a330e}
.enterprise-shell .dashboard-page .stat-icon{height:42px;width:42px;flex:0 0 42px;border-radius:10px;display:grid;place-items:center;background:#edf3fc;color:#087f75}.enterprise-shell .dashboard-page .stat-icon .ui-icon{width:22px;height:22px}
.enterprise-shell .dashboard-page .stat-number{font-size:34px;font-weight:650;letter-spacing:-.04em;line-height:1;margin-bottom:7px;color:#102d55}.enterprise-shell .dashboard-page .stat-label{font-size:14px;font-weight:600;opacity:1;color:#334f5f;line-height:1.4}.enterprise-shell .dashboard-page .stat-card .small{font-size:13px;margin-top:6px;color:#243b53}
.enterprise-shell .dashboard-page .stat-card.pending{border-top:3px solid #123f80}.enterprise-shell .dashboard-page .stat-card.inprocess{border-top:3px solid #155eef}.enterprise-shell .dashboard-page .stat-card.overdue{border-top:3px solid #b42318}.enterprise-shell .dashboard-page .stat-card.closed{border-top:3px solid #16845b}
.enterprise-shell .dashboard-page .card{padding:20px!important;border-color:#cbd5e1;box-shadow:var(--eo-shadow);overflow:visible}.enterprise-shell .dashboard-page h4,.enterprise-shell .dashboard-page h5{font-size:18px!important;font-weight:600;display:flex;align-items:center;gap:8px;margin-bottom:14px;color:#102d55}.enterprise-shell .dashboard-page .queue-row{padding:14px 0;gap:14px;border-color:#e2e8f0}.enterprise-shell .dashboard-page .queue-row strong{font-size:15px;font-weight:600}.enterprise-shell .dashboard-page .queue-row .small{font-size:13px;margin-top:4px}.enterprise-shell .dashboard-page .queue-row:hover{background:#f8fbfc}.enterprise-shell .dashboard-page .row.mb-4{margin-bottom:18px!important}
@media(min-width:901px){.enterprise-shell.sidebar-collapsed .sidebar{display:flex!important;width:76px;overflow:visible}.enterprise-shell.sidebar-collapsed .sidebar-brand{padding:18px 12px;justify-content:center}.enterprise-shell.sidebar-collapsed .sidebar :is(.nav-label,.sidebar-office,.sidebar-section-label,.account-identity,.account-chevron,.brand-title,.brand-sub){display:none}.enterprise-shell.sidebar-collapsed .sidebar-link{justify-content:center;padding:12px 8px}.enterprise-shell.sidebar-collapsed .sidebar-user{justify-content:center;padding:16px 8px!important}.enterprise-shell.sidebar-collapsed .sidebar-account .account-actions{left:66px;right:auto;width:230px}.enterprise-shell.sidebar-collapsed .sidebar-account{overflow:visible}.enterprise-shell.sidebar-collapsed .sidebar .dropdown-menu{min-width:250px}.enterprise-shell.sidebar-collapsed .sidebar .btn-accent{padding:10px 4px}}
@media(max-width:1100px){.enterprise-shell .dashboard-page .stat-card{padding:16px;gap:10px}.enterprise-shell .dashboard-page .stat-icon{width:32px;height:32px;flex-basis:32px}.enterprise-shell .dashboard-page .stat-number{font-size:28px}}
@media(max-width:600px){.dashboard-heading{margin-bottom:16px}.dashboard-heading h1{font-size:23px}.enterprise-shell .dashboard-metrics>[class*=col-]{width:50%}.enterprise-shell .dashboard-page .stat-card{min-height:150px;flex-direction:column;gap:9px;padding:14px}.enterprise-shell .dashboard-page .stat-number{font-size:28px}.enterprise-shell .dashboard-page .stat-label{font-size:12px}.enterprise-shell .dashboard-page .queue-row{align-items:flex-start;flex-wrap:wrap}.enterprise-shell .dashboard-page .card{padding:16px!important}}

.enterprise-shell .sidebar-link .ui-icon{width:21px;height:21px;flex-basis:21px}
.enterprise-shell .sidebar .brand-sub,.enterprise-shell .sidebar .user-role,.enterprise-shell .sidebar .user-name{color:#fff;opacity:1}
.enterprise-shell .sidebar .user-avatar{background:#102d38;color:#fff;border:1px solid #d4a72c}
.enterprise-shell .topbar .workspace-clock{display:flex;align-items:center;gap:10px;padding:0;border:0;background:transparent;box-shadow:none}
.enterprise-shell .topbar .clock-ring{fill:#f8fbff;stroke:#b9c9df;stroke-width:1.5}.enterprise-shell .topbar .clock-ticks{stroke:#123f80;stroke-width:2}
.enterprise-shell .topbar .hour-hand,.enterprise-shell .topbar .minute-hand{stroke:#102d55}.enterprise-shell .topbar .second-hand{stroke:#d4a72c}
.enterprise-shell .topbar .clock-time{font-size:16px;color:#102d55;letter-spacing:0;font-weight:650}.enterprise-shell .topbar .clock-date{font-size:11px;color:#243b53;margin:1px 0}.enterprise-shell .topbar .clock-zone{display:none}
@media(max-width:700px){.enterprise-shell .topbar:has(.topbar-clock-slot){display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:8px 10px}.enterprise-shell .topbar-clock-slot{grid-column:1/-1;justify-self:center;border-left:0;padding:6px 0 0}.enterprise-shell .topbar .clock-face{width:44px;height:44px;flex-basis:44px}.enterprise-shell .topbar .clock-time{font-size:15px}.enterprise-shell .topbar .clock-date{font-size:11px}.enterprise-shell .topbar-heading{min-width:0}}

.enterprise-shell .topbar-heading:has(.topbar-welcome) .topbar-title{display:none}
.dashboard-heading{gap:20px;flex-wrap:wrap}.workspace-shortcuts{display:flex;gap:10px}.workspace-shortcut{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #d5dfe7;border-radius:9px;background:white;color:#102d55;text-decoration:none;min-width:204px;transition:border-color 180ms,background-color 180ms}.workspace-shortcut>span{min-width:0;flex:1}.workspace-shortcut strong{display:block;font-size:13px;font-weight:600}.workspace-shortcut small{display:block;font-size:12px;color:#475569;margin-top:2px}.workspace-shortcut b{font-size:23px;font-weight:600;line-height:1;color:#12343f}.workspace-shortcut:hover{background:#f3f8fa;border-color:#7b9ca8;color:#102d55}
.enterprise-shell .dashboard-page .queue-row .badge{font-size:12px;padding:5px 9px;background:#edf4f7;color:#254b5d;border:1px solid #d5e2e8;white-space:normal}.enterprise-shell .dashboard-page .queue-row .badge.bg-danger{background:#b42318!important;color:white;border-color:#b42318}
@media(max-width:1200px){.workspace-shortcuts{width:100%}.workspace-shortcut{flex:1;min-width:0}}
@media(max-width:600px){.workspace-shortcuts{gap:8px}.workspace-shortcut{padding:10px;gap:7px}.workspace-shortcut>.ui-icon{display:none}.workspace-shortcut strong{font-size:13px}.workspace-shortcut small{font-size:12px}.workspace-shortcut b{font-size:22px}.enterprise-shell .dashboard-page .stat-card{min-height:140px}}
@media(prefers-reduced-motion:reduce){.enterprise-shell *{scroll-behavior:auto!important;transition:none!important}}
.office-progress{position:fixed;top:16px;left:max(16px,calc(100vw - 316px));width:300px;max-width:calc(100vw - 32px);min-height:46px;padding:12px 14px;box-sizing:border-box;border-radius:9px;background:#1554b4;color:white;box-shadow:0 6px 22px #102d5530;font:600 14px/22px 'Segoe UI',system-ui,sans-serif;z-index:2500;overflow:hidden;white-space:nowrap;display:flex;align-items:center;gap:8px}
.office-progress[hidden]{display:none}.office-progress[data-state=success]{background:#18845a}.office-progress[data-state=success] .ui-icon{filter:brightness(0) invert(1)}.office-progress[data-state=error]{background:#b42318;white-space:normal;cursor:pointer}.office-progress[data-state=waiting]{background:#123f80}
.security-operation-feedback:empty,.security-operation-feedback:has(>[hidden]){display:none}
.security-login-card .security-operation-feedback{margin:0 0 16px}
.security-login-card .security-operation-feedback .office-progress{position:relative;inset:auto;width:100%;max-width:none;background:#1554b4;color:#fff;font:500 14px/1.45 'Segoe UI',system-ui,sans-serif;border-radius:8px;padding:10px 12px}
.security-login-card form[aria-busy=true] .btn::before{content:'';display:inline-block;width:15px;height:15px;margin-right:8px;vertical-align:-2px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:security-code-spin .8s linear infinite}
@keyframes security-code-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.security-login-card form[aria-busy=true] .btn::before{animation:none}}
}
@media print{.office-progress{display:none!important}}

/* Enterprise system: scoped controls and header. No sidebar or official-paper rules. */
:root {
    --ds-brand:var(--eo-navy); --ds-accent:var(--eo-teal);
    --ds-surface:#fff; --ds-surface-subtle:#f6f8fa; --ds-surface-hover:#edf3fc;
    --ds-text:var(--eo-text); --ds-muted:#475569; --ds-border:var(--eo-border);
    --ds-success:var(--eo-success); --ds-warning:#805400; --ds-danger:#b42318;
    --ds-info:var(--eo-navy); --ds-focus:var(--eo-text);
    --ds-space-1:8px; --ds-space-2:16px; --ds-space-3:24px; --ds-space-4:32px;
    --ds-radius-control:8px; --ds-radius-card:12px; --ds-radius-chip:99px;
    --ds-shadow-1:0 1px 3px #102d550a; --ds-shadow-2:0 8px 28px #102d551a;
    --ds-font:'Segoe UI Variable','Segoe UI',system-ui,-apple-system,sans-serif;
    --ds-motion:160ms;
}
@media screen {
    /* Header has six explicit cells; feedback never floats above another control. */
    .enterprise-shell .topbar.ds-header {
        display:grid; grid-template-columns:36px minmax(140px,1fr) minmax(0,260px) auto auto minmax(148px,200px);
        grid-template-areas:'menu title activity alerts time search'; gap:12px;
        min-height:80px; padding:12px 16px; align-items:center; flex:none;
        font-family:var(--ds-font); isolation:isolate;
    }
    .ds-header .sidebar-toggle { grid-area:menu; width:36px; height:36px; padding:0; }
    .enterprise-shell .ds-header .topbar-heading { grid-area:title; min-width:0; max-width:none; }
    .enterprise-shell .ds-header .topbar-title { font-size:20px!important; font-weight:700; letter-spacing:-.02em; line-height:1.3; }
    .ds-header .workspace-breadcrumb { font-size:11px; line-height:1.3; white-space:nowrap; overflow:hidden; margin-bottom:4px; }
    .enterprise-shell .ds-header .topbar-welcome { display:block; min-width:0; }
    .enterprise-shell .ds-header .topbar-welcome strong { display:block; font-size:18px; font-weight:650; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .enterprise-shell .ds-header .topbar-welcome>span { font-size:11px; margin:2px 0 0; }
    .ds-activity-slot { grid-area:activity; position:relative; min-width:0; width:100%; max-width:300px; height:44px; }
    .enterprise-shell .ds-header #notification-bell { grid-area:alerts; min-height:40px; height:40px; font-size:12.5px; padding:7px 10px; gap:6px; margin:0; }
    .ds-header .notification-count { font-variant-numeric:tabular-nums; font-size:10px; padding:4px 6px; margin:0!important; }
    .enterprise-shell .ds-header .topbar-clock-slot { grid-area:time; order:initial; margin:0; padding:0; border:0; justify-self:stretch; min-width:0; }
    .enterprise-shell .ds-header .workspace-clock {
        display:flex; align-items:center; gap:8px; padding:5px 10px;
        border:1px solid var(--ds-border); border-radius:var(--ds-radius-card);
        background:var(--ds-surface-subtle); box-shadow:none; min-width:0;
    }
    .enterprise-shell .ds-header .clock-face { display:block; width:40px; height:40px; flex:0 0 40px; }
    .enterprise-shell .ds-header .clock-time { font-size:15px; line-height:1.35; font-weight:650; font-variant-numeric:tabular-nums; white-space:nowrap; }
    .enterprise-shell .ds-header .clock-date { font-size:10px; line-height:1.4; white-space:nowrap; margin:1px 0 0; }
    .enterprise-shell .ds-header .topbar-search { grid-area:search; display:block; width:100%; max-width:none; min-width:0; margin:0!important; }
    .enterprise-shell .ds-header .topbar-search input { height:40px; min-width:0; font:13px var(--ds-font); background:var(--ds-surface); }
    .ds-toast-host { position:fixed; inset:auto 16px auto auto; top:var(--ds-header-bottom,96px); width:min(300px,calc(100vw - 32px)); z-index:2500; pointer-events:none; }
    /* A class set from the header's actual width also covers an expanded sidebar. */
    .enterprise-shell .ds-header.ds-header-compact {
        grid-template-columns:36px minmax(100px,1fr) auto auto minmax(148px,200px);
        grid-template-areas:'menu title alerts time search'; gap:10px;
    }
    .ds-header-compact .ds-activity-slot { display:none; }

    /* One feedback element; only its fill shrinks. Text and actions remain readable. */
    .office-progress.ds-feedback {
        position:relative; inset:auto; width:100%; max-width:300px; min-height:44px;
        padding:10px 12px; display:grid; grid-template-columns:18px minmax(0,1fr);
        gap:4px 8px; background:var(--ds-brand); color:white;
        border:1px solid transparent; border-radius:var(--ds-radius-control);
        box-shadow:var(--ds-shadow-1); font:500 12px/1.4 var(--ds-font);
        white-space:normal; overflow:hidden; pointer-events:auto; cursor:default;
    }
    .ds-feedback[hidden] { display:none; }
    .ds-activity-slot .ds-feedback { position:absolute; inset:0 auto auto 0; }
    .ds-feedback-fill { position:absolute; inset:0; background:#ffffff14; transform-origin:left; transform:scaleX(var(--ds-remaining,1)); pointer-events:none; transition:transform 160ms linear; }
    .ds-feedback-icon { position:relative; width:17px; height:17px; filter:brightness(0) invert(1); }
    .ds-feedback-message { position:relative; min-width:0; overflow-wrap:anywhere; max-height:100px; overflow-y:auto; }
    .ds-feedback-label { margin-right:5px; }
    .ds-feedback-percent { font-size:11px; font-variant-numeric:tabular-nums; opacity:.9; white-space:nowrap; }
    .ds-feedback-actions { grid-column:2; display:flex; gap:12px; position:relative; }
    .ds-feedback-actions button { padding:2px 0; min-height:32px; border:0; border-bottom:1px solid #ffffff80; background:transparent; color:white; font:600 12px var(--ds-font); }
    .ds-feedback-actions button:focus-visible { outline:2px solid white!important; outline-offset:2px; }
    .ds-feedback-actions[hidden],.ds-feedback-actions [hidden],.ds-feedback-percent[hidden] { display:none; }
    .office-progress.ds-feedback[data-state=success] { background:var(--ds-success); }
    .office-progress.ds-feedback[data-state=error] { background:var(--ds-danger); }
    .ds-toast-host .ds-feedback,.ds-fullscreen-feedback .ds-feedback { box-shadow:var(--ds-shadow-2); }
    .ds-fullscreen-feedback { position:fixed; top:56px; right:16px; width:min(300px,calc(100% - 32px)); z-index:2500; pointer-events:none; }

    /* Opt-in components. Adapters are restricted to portal controls outside paper. */
    .ds-content { font-family:var(--ds-font); }
    /* Legacy heading selectors contain IDs inside :not(); these opt-in sizes must win. */
    .ds-content .ds-page-title,.ds-page-title { font:700 22px/1.3 var(--ds-font); font-size:22px!important; line-height:1.3!important; color:var(--ds-text); letter-spacing:-.02em; }
    .ds-content .ds-section-title,.ds-section-title { font:600 15px/1.4 var(--ds-font); font-size:15px!important; line-height:1.4!important; color:var(--ds-text); margin:0 0 16px; }
    .ds-body { font:400 14px/1.5 var(--ds-font); }
    .enterprise-shell :is(.ds-button,.ds-content .btn):not(:where(#printArea *, .document-reading-page *, .word-document-preview *)) {
        display:inline-flex; align-items:center; justify-content:center; gap:8px;
        font:500 13px/1.4 var(--ds-font); min-height:36px; padding:7px 12px;
        border-radius:var(--ds-radius-control); box-shadow:none; white-space:nowrap;
        transition:background-color var(--ds-motion),border-color var(--ds-motion),box-shadow var(--ds-motion);
    }
    .enterprise-shell :is(.ds-button--primary,.ds-content .btn-primary,.ds-content .btn-success):not(:where(#printArea *, .document-reading-page *)) { background:var(--ds-accent); border:1px solid var(--ds-accent); color:white; }
    .enterprise-shell :is(.ds-button--secondary,.ds-content .btn-outline-primary,.ds-content .btn-outline-secondary):not(:where(#printArea *, .document-reading-page *)) { background:var(--ds-surface); border:1px solid var(--ds-border); color:var(--ds-brand); }
    .enterprise-shell :is(.ds-button--tertiary,.ds-content .btn-link):not(:where(#printArea *, .document-reading-page *)) { background:transparent; border:1px solid transparent; color:var(--ds-brand); text-decoration:none; }
    .enterprise-shell :is(.ds-button--warning,.ds-content .btn-outline-warning):not(:where(#printArea *, .document-reading-page *)) { background:var(--ds-surface); border:1px solid #c9a858; color:var(--ds-warning); }
    .enterprise-shell :is(.ds-button--danger,.ds-content .btn-outline-danger):not(:where(#printArea *, .document-reading-page *)) { background:var(--ds-surface); border:1px solid #d9a9a3; color:var(--ds-danger); }
    .enterprise-shell .ds-button:not(:disabled):hover,.enterprise-shell .ds-content .btn-outline-secondary:not(:disabled):hover { background:var(--ds-surface-hover); border-color:#8ca8cf; }
    .enterprise-shell .ds-button--primary:not(:disabled):hover { background:var(--ds-brand); color:white; }
    .enterprise-shell .ds-button--danger:not(:disabled):hover { background:#fff1ee; border-color:var(--ds-danger); }
    .enterprise-shell .ds-button--warning:not(:disabled):hover { background:#fff8e7; border-color:var(--ds-warning); }
    .ds-button:active { box-shadow:inset 0 1px 2px #102d5520; }
    .ds-button:disabled,.ds-button[aria-disabled=true],.ds-content .btn:disabled { opacity:.55; cursor:not-allowed; }
    .ds-button[aria-busy=true] { cursor:wait; }
    .ds-button .ui-icon { width:17px; height:17px; flex:none; }
    .ds-button--primary .ui-icon { filter:brightness(0) invert(1); }
    .enterprise-shell :is(.ds-content,.ds-header) :is(a,button,input,select,textarea,summary):focus-visible { outline:3px solid var(--ds-focus)!important; outline-offset:3px; }
    .enterprise-shell .ds-content :is(.form-control,.form-select):not(:where(#printArea *, .document-reading-page *)) { border-color:var(--ds-border); border-radius:var(--ds-radius-control); font:14px/1.5 var(--ds-font); color:var(--ds-text); }
    .ds-content .form-label { font-size:12.5px; font-weight:600; line-height:1.5; }
    .ds-field-help { font-size:12px; color:var(--ds-muted); margin-top:8px; }
    .ds-field-error { font-size:12px; color:var(--ds-danger); margin-top:8px; }

    .ds-tabs,.ds-content .nav-pills { display:flex; gap:16px; flex-wrap:wrap; border-bottom:1px solid var(--ds-border); }
    .enterprise-shell :is(.ds-tabs .ds-tab,.ds-content .nav-pills .nav-link) { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:8px 2px; color:var(--ds-muted); border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; font:500 13px/1.4 var(--ds-font); text-decoration:none; }
    .enterprise-shell :is(.ds-tab[aria-current=page],.ds-tab[aria-selected=true],.ds-content .nav-pills .nav-link.active) { color:var(--ds-brand); border-bottom-color:var(--ds-accent); background:transparent; font-weight:700; }
    .ds-tab:hover,.ds-content .nav-pills .nav-link:hover { color:var(--ds-brand); background:var(--ds-surface-hover); }
    .ds-count { padding:1px 6px; border-radius:99px; font-size:11px; font-variant-numeric:tabular-nums; background:var(--ds-surface-subtle); }
    .ds-chip { display:inline-flex; align-items:center; gap:6px; max-width:100%; padding:4px 9px; border:1px solid var(--ds-border); border-radius:var(--ds-radius-chip); font:600 12px/1.4 var(--ds-font); background:var(--ds-surface-subtle); color:var(--ds-muted); white-space:nowrap; }
    .ds-chip .ui-icon { width:14px; height:14px; flex:none; }
    .ds-chip[data-tone=info] { color:var(--ds-brand); background:#edf3fc; border-color:#b4c9e5; }
    .ds-chip[data-tone=success] { color:#116443; background:#ecf7f1; border-color:#b4dcca; }
    .ds-chip[data-tone=warning] { color:var(--ds-warning); background:#fff8e7; border-color:#dec88d; }
    .ds-chip[data-tone=danger] { color:var(--ds-danger); background:#fff1ee; border-color:#e5b8b0; }

    .ds-table { width:100%; table-layout:fixed; border-collapse:collapse; font:13.5px/1.4 var(--ds-font); color:var(--ds-text); }
    .ds-table thead th { position:sticky; top:0; z-index:1; background:var(--ds-surface-subtle); font-size:12px; font-weight:600; color:var(--ds-muted); }
    .ds-table :is(td,th) { padding:12px; border-bottom:1px solid var(--ds-border); text-align:left; vertical-align:middle; height:52px; }
    .ds-table .ds-number { text-align:right; font-variant-numeric:tabular-nums; }
    .ds-table .ds-subject { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-weight:600; }
    .ds-table .ds-reference { display:block; font-size:11.5px; color:var(--ds-muted); font-variant-numeric:tabular-nums; }
    .ds-table tbody tr:hover { background:var(--ds-surface-subtle); }
    .ds-table tr[data-needs-action=true] td:first-child { box-shadow:inset 3px 0 var(--ds-accent); }
    .ds-table tr[tabindex]:focus-visible { outline:3px solid var(--ds-focus); outline-offset:-3px; }
    .ds-empty { padding:32px 24px; text-align:center; color:var(--ds-muted); border:1px dashed var(--ds-border); border-radius:var(--ds-radius-card); background:var(--ds-surface); }
    .ds-empty h2 { margin:8px 0; font-size:15px; font-weight:600; color:var(--ds-text); }
    .ds-empty p { margin:0; font-size:13px; }
    .ds-loading { padding:16px; border-radius:var(--ds-radius-card); background:var(--ds-surface); }
    .ds-skeleton { display:block; height:12px; width:70%; margin:12px 0; border-radius:4px; background:#e3e9f0; animation:ds-pulse 1.4s ease-in-out infinite alternate; }
    .ds-error { padding:16px; border:1px solid #e5b8b0; border-radius:var(--ds-radius-card); background:#fff1ee; color:var(--ds-danger); font-size:13px; }
    @keyframes ds-pulse { to { opacity:.45; } }
    @media(max-width:1099px) {
        .enterprise-shell .topbar.ds-header { grid-template-columns:36px minmax(100px,1fr) auto auto minmax(148px,200px); grid-template-areas:'menu title alerts time search'; gap:10px; }
        .ds-header .ds-activity-slot { display:none; }
    }
    @media(max-width:700px) {
        .enterprise-shell .topbar.ds-header,.enterprise-shell .topbar.ds-header.ds-header-compact {
            grid-template-columns:36px minmax(0,1fr) minmax(128px,160px);
            grid-template-areas:'menu title alerts' 'time time search'; gap:8px; padding:10px 12px;
        }
        .enterprise-shell .ds-header .topbar-title { font-size:17px!important; }
        .enterprise-shell .ds-header #notification-bell { justify-self:end; }
        .enterprise-shell .ds-header .workspace-clock { padding:4px 7px; gap:6px; }
        .enterprise-shell .ds-header .clock-face { width:34px; height:34px; flex-basis:34px; }
        .enterprise-shell .ds-header .clock-time { font-size:13px; }
        .enterprise-shell .ds-header .clock-date { font-size:9px; }
        .enterprise-shell .ds-header .topbar-search input { font-size:12px; height:44px; padding:6px 8px; }
        .enterprise-shell .ds-header .topbar-welcome strong { font-size:15px; }
        .enterprise-shell .ds-content .btn:not(:where(#printArea *,.document-reading-page *)) { min-height:40px; }
        .ds-feedback-actions button { min-height:40px; }
    }
    @media(max-width:359px) {
        .enterprise-shell .topbar.ds-header,.enterprise-shell .topbar.ds-header.ds-header-compact { grid-template-columns:36px minmax(0,1fr) auto; grid-template-areas:'menu title alerts' 'time time time' 'search search search'; }
        .enterprise-shell .ds-header .topbar-clock-slot { justify-self:stretch; }
        .enterprise-shell .ds-header .workspace-clock { justify-content:center; }
    }
    @media(prefers-reduced-motion:reduce) { .ds-skeleton { animation:none; } .ds-feedback-fill,.ds-button { transition:none; } }
}
@media print { .ds-toast-host,.ds-fullscreen-feedback,.ds-feedback { display:none!important; } }

/* V4 shared components. No branding, sidebar, clock logic or paper selectors. */
:root { --ds-font:'Segoe UI Variable','Segoe UI',system-ui,'Nirmala UI','Urdu Typesetting',sans-serif; }
@media screen {
    .ds-feedback-message { display:flex; align-items:center; gap:5px; overflow:hidden; }
    .ds-feedback-label { display:block; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:0; }
    .ds-feedback-percent { flex:none; }
    .ds-dialog { box-sizing:border-box; padding:0; width:min(520px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); border:1px solid var(--ds-border); border-radius:var(--ds-radius-card); color:var(--ds-text); background:var(--ds-surface); box-shadow:0 20px 80px #102d5538; font:14px/1.55 var(--ds-font); overflow:auto; }
    .ds-dialog::backdrop { background:#102d5573; backdrop-filter:blur(2px); }
    .ds-dialog[open] { animation:ds-dialog-enter var(--ds-motion) ease-out; }
    .ds-dialog-header { display:flex; gap:12px; align-items:center; padding:24px 24px 16px; background:var(--ds-surface); border:0; position:static; justify-content:start; }
    .ds-dialog-header h2 { font:650 20px/1.35 var(--ds-font); margin:0; letter-spacing:-.02em; }
    .ds-dialog-icon { box-sizing:content-box; width:22px; height:22px; padding:10px; border-radius:50%; background:var(--ds-surface-hover); flex:none; }
    .ds-dialog[data-tone=danger] .ds-dialog-icon { background:#fff1ee; }
    .ds-dialog[data-tone=warning] .ds-dialog-icon { background:#fff8e7; }
    .ds-dialog-body { padding:0 24px 24px; }
    .ds-dialog-subject { font-weight:650; margin:0 0 4px; overflow-wrap:anywhere; }
    .ds-dialog-reference { color:var(--ds-muted); font-size:12px; font-variant-numeric:tabular-nums; margin:0 0 16px; overflow-wrap:anywhere; }
    .ds-dialog-consequence { margin:16px 0 0; }
    .ds-dialog-body h3 { font-size:12px; font-weight:600; color:var(--ds-muted); margin:20px 0 8px; }
    .ds-dialog-remarks { margin:0; padding:12px 16px; border-inline-start:3px solid var(--ds-border); background:var(--ds-surface-subtle); white-space:pre-wrap; overflow-wrap:anywhere; max-height:160px; overflow:auto; }
    .ds-dialog-footer { position:sticky; bottom:0; display:flex; justify-content:flex-end; gap:8px; padding:16px 24px; border-top:1px solid var(--ds-border); background:var(--ds-surface-subtle); }
    .ds-dialog .ds-button { display:inline-flex; justify-content:center; align-items:center; gap:8px; border-radius:8px; border:1px solid var(--ds-border); min-height:40px; padding:8px 16px; font:600 13px/1.4 var(--ds-font); cursor:pointer; color:var(--ds-brand); background:white; }
    .ds-dialog .ds-button--primary { background:var(--ds-brand); border-color:var(--ds-brand); color:white; }
    .ds-dialog .ds-button--warning { color:var(--ds-warning); border-color:#c9a858; }
    .ds-dialog .ds-button--danger { color:var(--ds-danger); border-color:#d9a9a3; }
    .ds-dialog .ds-button:hover { box-shadow:inset 0 0 0 1px currentColor; }
    .ds-dialog :is(button,textarea,a):focus-visible,.ds-list :is(button,a,input,select,tr[tabindex]):focus-visible { outline:3px solid var(--ds-focus)!important; outline-offset:3px; }
    .ds-field-label { display:block; margin:16px 0 8px; font-size:12.5px; font-weight:600; }
    .ds-input { box-sizing:border-box; width:100%; border:1px solid var(--ds-border); border-radius:8px; padding:10px 12px; color:var(--ds-text); background:white; font:14px/1.5 var(--ds-font); }
    .ds-input[aria-invalid=true] { border-color:var(--ds-danger); }
    .ds-field-error[hidden] { display:none; }
    .ds-result-link { color:var(--ds-brand); text-decoration:underline; font-weight:600; display:inline-block; padding:4px 0; }
    .ds-alert { display:flex; gap:12px; align-items:start; padding:16px; border:1px solid var(--ds-border); border-radius:12px; background:white; color:var(--ds-text); font:14px/1.5 var(--ds-font); }
    .ds-alert .ui-icon { width:20px; height:20px; flex:none; margin-top:2px; }
    .ds-alert-copy { flex:1; min-width:0; overflow-wrap:anywhere; }
    .ds-alert-copy strong { display:block; font-size:13px; margin-bottom:4px; }
    .ds-alert-copy p { margin:0; }
    .ds-alert[data-tone=danger] { background:#fff1ee; border-color:#e5b8b0; }
    .ds-alert[data-tone=success] { background:#ecf7f1; border-color:#b4dcca; }
    .ds-alert[data-tone=warning] { background:#fff8e7; border-color:#dec88d; }
    .ds-alert button { flex:none; }
    .ds-list { min-width:0; border:1px solid var(--ds-border); border-radius:12px; background:white; box-shadow:var(--ds-shadow-1); }
    .ds-list-toolbar { display:flex; flex-wrap:wrap; gap:8px 12px; align-items:end; padding:16px; border-bottom:1px solid var(--ds-border); }
    .ds-list-toolbar label { display:flex; flex-direction:column; gap:4px; font-size:12px; font-weight:600; color:var(--ds-muted); min-width:0; }
    .ds-list-toolbar label:first-child { flex:1 1 200px; }
    .ds-list-toolbar input,.ds-list-toolbar select { box-sizing:border-box; max-width:100%; min-height:36px; border:1px solid var(--ds-border); border-radius:8px; background:white; color:var(--ds-text); padding:6px 8px; font:13px var(--ds-font); }
    .ds-list [data-ds-list-count] { display:block; padding:12px 16px; color:var(--ds-muted); font:12px var(--ds-font); }
    .ds-list .ds-table { min-width:0!important; margin:0; }
    .ds-list .ds-table th { font-size:11px; }
    .ds-list .ds-table :is(th,td) { padding:8px; height:56px; }
    .ds-list .ds-table :is(.ds-reference,.ds-fromto,.ds-stage) { display:block; max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
    .ds-list .ds-table .ds-reference { font-size:12px; }
    .ds-list .ds-table .ds-reference-cell { width:17%; }
    .ds-list .ds-table .ds-subject-cell { width:23%; }
    .ds-list .ds-table .ds-received-cell { width:12%; font-size:11px; font-variant-numeric:tabular-nums; }
    .ds-list .ds-table .ds-stage-cell { width:9%; }
    .ds-list .ds-table .ds-age-cell { width:6%; }
    .ds-list .ds-table .ds-status-cell { width:13%; }
    .ds-list .ds-table .ds-open-cell { width:64px; }
    .ds-list .ds-table [data-ds-row] { cursor:pointer; }
    .ds-list .ds-table [data-needs-action=false] .ds-subject { font-weight:400; }
    .ds-list .ds-table .ds-chip { max-width:100%; box-sizing:border-box; padding:3px 6px; font-size:11px; }
    .ds-list .ds-chip span { overflow:hidden; text-overflow:ellipsis; }
    .ds-list [data-ds-list-empty] { padding:24px; font-size:13px; color:var(--ds-muted); }
    .ds-list [hidden] { display:none!important; }
    .ds-list[data-density=compact] .ds-table :is(th,td) { height:48px; padding-block:6px; }
    @keyframes ds-dialog-enter { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
    @media(max-width:1099px) {
        .ds-list .ds-table,.ds-list .ds-table tbody { display:block; }
        .ds-list .ds-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
        .ds-list .ds-table [data-ds-row] { display:grid; grid-template-columns:minmax(0,1fr) auto; padding:12px 16px; gap:6px 12px; border-bottom:1px solid var(--ds-border); }
        .ds-list .ds-table [data-ds-row]>td { width:auto; min-width:0; height:auto; padding:0; border:0; }
        .ds-list .ds-table .ds-subject-cell { grid-column:1; grid-row:1; }
        .ds-list .ds-table .ds-reference-cell { grid-column:1; grid-row:2; }
        .ds-list .ds-table .ds-open-cell { grid-column:2; grid-row:1/3; align-self:center; }
        .ds-list .ds-table .ds-status-cell { grid-column:2; grid-row:3; }
        .ds-list td[data-label]::before { content:attr(data-label) ': '; color:var(--ds-muted); font-size:11px; }
        .ds-dialog { width:min(520px,calc(100vw - 24px)); max-height:calc(100dvh - 24px); }
        .ds-dialog-header,.ds-dialog-body { padding-inline:20px; }
        .ds-dialog-footer { padding:16px 20px; }
    }
    @media(prefers-reduced-motion:reduce) { .ds-dialog[open] { animation:none; } }
}
@media print { .ds-dialog { display:none!important; } }

/* Shared page structure, restricted to application chrome and data tables. */
@media screen {
    .ds-pagebar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin:0 0 16px; }
    .ds-page-description { margin:0; color:var(--ds-muted); font-size:13px; }
    .ds-pagebar .ds-tabs,.ds-pagebar .nav-tabs { flex:1; margin:0!important; }
    .ds-list-scope { color:var(--ds-muted); font-size:11.5px; margin:8px 0 20px; }
    .ds-register-search { border:1px solid var(--ds-border); border-radius:8px; background:white; margin:0 0 12px; padding:10px 14px; }
    .ds-register-search>summary { color:var(--ds-brand); cursor:pointer; font-size:12px; font-weight:600; }
    .ds-register-search form { margin:12px 0 0!important; }
    .ds-dashboard { min-width:0; }
    .ds-quick-actions { display:flex; flex-wrap:wrap; gap:8px; }
    .ds-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:20px 0 28px; }
    .ds-kpi { position:relative; display:grid; grid-template-columns:1fr 40px; grid-template-rows:auto auto auto; gap:5px 8px; text-decoration:none; color:var(--ds-text); border:1px solid var(--ds-border); border-radius:12px; background:white; padding:18px 20px; box-shadow:var(--ds-shadow-1); transition:transform var(--ds-motion),box-shadow var(--ds-motion); }
    .ds-kpi:hover { color:var(--ds-text); transform:translateY(-2px); box-shadow:var(--ds-shadow-2); }
    .ds-kpi--dominant { border-inline-start:4px solid var(--ds-brand); }
    .ds-kpi-icon { grid-column:2; grid-row:1/3; display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#edf3fc; }
    .ds-kpi-icon img { width:18px; height:18px; }
    .ds-kpi--warning .ds-kpi-icon { background:#fff8e7; }
    .ds-kpi-count { grid-column:1; font:700 30px/1.2 var(--ds-font); font-variant-numeric:tabular-nums; }
    .ds-kpi strong { grid-column:1/-1; font-size:13px; font-weight:600; }
    .ds-kpi small { grid-column:1/-1; font-size:11px; color:var(--ds-muted); }
    .ds-responsibilities { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
    .ds-responsibilities span { border:1px solid var(--ds-border); border-radius:99px; padding:3px 9px; color:var(--ds-muted); font-size:11px; }
    .ds-section-bar { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:0 0 12px; }
    .enterprise-shell .main-content .ds-section-bar h2 { margin:0!important; font:600 15px/1.4 var(--ds-font)!important; }
    .ds-section-bar a { font-size:12px; color:var(--ds-brand); }
    .ds-dashboard-section { margin:0 0 24px; }
    .ds-header .topbar-heading:has(.topbar-welcome) .topbar-title { display:none; }
    .ds-subject-with-attachment { display:flex; align-items:center; gap:6px; min-width:0; }
    .ds-subject-with-attachment>div { min-width:0; flex:1; }
    .ds-row-type { display:block; color:var(--ds-muted); font-size:10.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .ds-attachment-action,.ds-row-edit { display:inline-flex; align-items:center; justify-content:center; width:28px; height:32px; border:1px solid transparent; border-radius:6px; flex:none; }
    .ds-attachment-action:hover,.ds-row-edit:hover { background:var(--ds-surface-hover); border-color:var(--ds-border); }
    .ds-attachment-action img,.ds-row-edit img { width:15px; height:15px; }
    .ds-list .ds-open-cell { white-space:nowrap; }
    .ds-list .ds-table .ds-open-cell { width:88px; }
    .ds-list .ds-table .ds-open-cell .ds-button { padding:6px 8px; min-height:32px; font-size:12px; }
    .ds-overdue { display:flex; align-items:center; gap:4px; font-size:10px; color:var(--ds-danger); margin-top:2px; }
    .ds-overdue img { width:12px; height:12px; }
    .ds-list-filters { position:relative; }
    .ds-list-filters>summary { min-height:36px; border:1px solid var(--ds-border); border-radius:8px; background:white; color:var(--ds-brand); padding:7px 10px; font:500 13px/1.4 var(--ds-font); cursor:pointer; }
    .ds-filter-fields { position:absolute; inset:calc(100% + 8px) 0 auto auto; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:min(400px,calc(100vw - 48px)); padding:16px; border:1px solid var(--ds-border); border-radius:12px; background:white; box-shadow:var(--ds-shadow-2); z-index:30; }
    .ds-list-filters:not([open]) .ds-filter-fields { display:none; }
    .ds-filter-fields label:first-child { flex:none; }
    .ds-list .ds-list-toolbar { padding:12px 14px; }
    .ds-list [data-ds-list-count] { padding:8px 14px; }
    .ds-page-heading-source { display:none!important; }
    .ds-content { font-size:14px; line-height:1.5; }
    .ds-page-toolbar { justify-content:flex-end!important; gap:12px; min-height:36px; margin-bottom:16px!important; }
    .ds-page-toolbar>div:has(>.ds-page-heading-source):not(:has(p)) { display:none; }
    .ds-content>.card:not(#printArea):not(.document-reading-page) { border-radius:12px; }
    .ds-content :is(h4,h5):not(:where(#printArea *, .document-reading-page *, .word-document-preview *)) { font:600 15px/1.45 var(--ds-font); }
    .ds-content .form-control:not(:where(#printArea *, .document-reading-page *)),.ds-content .form-select:not(:where(#printArea *, .document-reading-page *)) { min-height:36px; }
    .ds-content .nav-tabs { gap:16px; border-bottom:1px solid var(--ds-border); }
    .ds-content .nav-tabs .nav-link { border:0; border-bottom:2px solid transparent; border-radius:0; background:transparent; color:var(--ds-muted); padding:8px 2px; font:500 13px/1.4 var(--ds-font); }
    .ds-content .nav-tabs .nav-link.active { color:var(--ds-brand); border-bottom-color:var(--ds-brand); background:transparent; font-weight:700; }
    .ds-content .ds-data-region { overflow:visible; }
    .ds-content .ds-data-table { width:100%; min-width:0!important; table-layout:fixed; border-collapse:collapse; margin:0; font:13px/1.45 var(--ds-font); }
    .ds-data-table :is(th,td) { padding:12px 10px!important; border-bottom:1px solid var(--ds-border); overflow-wrap:anywhere; vertical-align:middle; }
    .ds-data-table thead th { font-size:11.5px; font-weight:600; color:var(--ds-muted); background:var(--ds-surface-subtle); }
    .ds-data-table td .btn { margin-bottom:4px; }
    .ds-data-table tbody tr:hover { background:var(--ds-surface-subtle); }
    .ds-data-table [hidden] { display:none!important; }
    .ds-content .btn .ui-icon { width:16px; height:16px; flex:none; }
    .ds-content .btn-primary>.ui-icon,.ds-content .btn-success>.ui-icon { filter:brightness(0) invert(1); }
    .enterprise-shell .sidebar-navigation .sidebar-nav { padding-bottom:24px; }
    :is(.dd-page-frame,#printArea,.document-reading-page,.word-document-preview)>.screen-watermarks:not([hidden]) { display:flex!important; position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:0!important; inset:0!important; width:100%; height:100%; z-index:6; }
    :is(.dd-page-frame,#printArea,.document-reading-page,.word-document-preview)>.screen-watermarks span { color:rgba(43,73,85,.065); }
    .ds-content :is(.document-reading-page,.word-document-preview) { position:relative; }
    .ds-form-section { padding:20px; border:1px solid var(--ds-border); border-radius:12px; background:white; }
    .ds-system-page { max-width:620px; margin:48px auto; padding:32px; text-align:center; border:1px solid var(--ds-border); border-radius:12px; background:white; }
    .ds-system-page>.ui-icon { width:40px; height:40px; margin-bottom:16px; }
    .ds-system-page h2 { font:700 22px/1.3 var(--ds-font); }
    .ds-system-page p { color:var(--ds-muted); font-size:14px; margin:16px 0 24px; }
    @media(max-width:900px) {
        .ds-kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
        .ds-kpi { padding:16px; }
        .ds-list .ds-table .ds-open-cell { width:auto; }
        .ds-data-table,.ds-data-table tbody { display:block; }
        .ds-data-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
        .ds-data-table tbody tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:16px 0; border-bottom:1px solid var(--ds-border); }
        .ds-data-table tbody td { display:block; width:auto!important; min-width:0; padding:0 8px!important; border:0; }
        .ds-data-table tbody td::before { content:attr(data-label); display:block; color:var(--ds-muted); font-size:11px; margin-bottom:4px; }
        .ds-data-table tbody td:last-child:has(.btn) { grid-column:1/-1; }
        .ds-content .ds-data-region { padding:12px!important; }
        .ds-system-page { margin:24px 0; padding:24px; }
    }
    @media(max-width:480px) { .ds-kpi-grid { gap:8px; }.ds-kpi-count { font-size:26px; }.ds-kpi { padding:12px; }.ds-kpi-icon { width:30px; height:30px; }.ds-kpi { grid-template-columns:1fr 30px; }.ds-kpi small { min-height:30px; }.ds-filter-fields { position:fixed; inset:auto 12px 12px; width:auto; }.ds-quick-actions .btn { flex:1; } }
    @media(prefers-reduced-motion:reduce) { .ds-kpi { transition:none; }.ds-kpi:hover { transform:none; } }
}

/* V6 shared-component refinement. Existing brand/sidebar and official paper remain separate. */
:root{--ds-secondary:#475569;--ds-placeholder:#526174;--ds-font:'Segoe UI Variable','Segoe UI',Tahoma,'Noto Naskh Arabic',system-ui,sans-serif}
:root[data-ds-theme=dark]{--ds-surface:#162337;--ds-surface-subtle:#101b2c;--ds-surface-hover:#22334d;--ds-text:#f1f5fb;--ds-muted:#c1cede;--ds-secondary:#c1cede;--ds-placeholder:#b4c3d8;--ds-border:#526581;--ds-focus:#adcaff;--ds-warning:#ffda8a;--ds-danger:#ffb4aa;--ds-shadow-1:0 2px 8px #0003;--ds-shadow-2:0 8px 28px #0005}
@media(prefers-color-scheme:dark){:root:not([data-ds-theme=light]){--ds-surface:#162337;--ds-surface-subtle:#101b2c;--ds-surface-hover:#22334d;--ds-text:#f1f5fb;--ds-muted:#c1cede;--ds-secondary:#c1cede;--ds-placeholder:#b4c3d8;--ds-border:#526581;--ds-focus:#adcaff;--ds-warning:#ffda8a;--ds-danger:#ffb4aa;--ds-shadow-1:0 2px 8px #0003;--ds-shadow-2:0 8px 28px #0005}}
@media screen{
 body.enterprise-shell{font-family:var(--ds-font);font-size:15px;line-height:1.45;color:var(--ds-text);background:var(--ds-surface-subtle);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
 .enterprise-shell .main-area{background:var(--ds-surface-subtle)}
 .enterprise-shell .sidebar-navigation{padding-bottom:20px}
 body.enterprise-shell .ds-content :is(.card,.ds-list,.ds-form-section,.ds-alert):not(:where(#printArea,#printArea *,.document-reading-page,.document-reading-page *,.word-document-preview,.word-document-preview *)){background:var(--ds-surface);color:var(--ds-text);border-color:var(--ds-border)}
 body.enterprise-shell .ds-content :is(label,.form-label,.ds-field-label){font-size:14px;font-weight:500}
 body.enterprise-shell .ds-content :is(.ds-field-help,.text-muted,.small,.ds-list-scope,.ds-row-type,.ds-overdue,.ds-page-description){font-size:13px;color:var(--ds-muted)}
 body.enterprise-shell .ds-content :is(input,select,textarea):not(:where(#printArea *,.document-reading-page *,.word-document-preview *)){font:14px/1.45 var(--ds-font);color:var(--ds-text);background:var(--ds-surface);border-color:var(--ds-border)}
 body.enterprise-shell .ds-content :is(input,textarea)::placeholder{color:var(--ds-placeholder);opacity:1}
 body.enterprise-shell .ds-content .ds-list .ds-table,body.enterprise-shell .ds-content .ds-data-table{font:14px/1.45 var(--ds-font);color:var(--ds-text)}
 body.enterprise-shell .ds-content :is(.ds-table,.ds-data-table) thead th{font-size:14px;font-weight:600;color:var(--ds-muted);background:var(--ds-surface-subtle)}
 body.enterprise-shell .ds-content :is(.ds-reference,.ds-stage,.ds-character-count,[data-ds-list-count]),body.enterprise-shell .ds-content .ds-list td[data-label]::before{font-size:13px}
 body.enterprise-shell .ds-content .ds-chip{font-size:12px;font-weight:600}
 body.enterprise-shell .ds-content :is(.ds-button,.btn):not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){font-size:14px;min-height:40px}
 body.enterprise-shell .ds-content :is(.ds-tab,.nav-link){font-size:14px}
 body.enterprise-shell .ds-content .ds-list-toolbar label{font-size:14px}
 body.enterprise-shell .ds-content .ds-list-toolbar{background:var(--ds-surface);border-radius:12px 12px 0 0}
 body.enterprise-shell .ds-content :is(.ds-data-table .text-muted,.ds-table .ds-reference){color:var(--ds-muted)}
 body.enterprise-shell .ds-content :is(.ds-button--secondary,.btn-outline-secondary,.btn-outline-primary){color:var(--ds-text);background:var(--ds-surface);border-color:var(--ds-border)}
 body.enterprise-shell .ds-content .ds-section-bar h2{font-size:16px!important;font-weight:650!important}
 .ds-dialog{background:var(--ds-surface);color:var(--ds-text)}
 .ds-dialog :is(label,h3,p,textarea,.ds-button){font-size:14px}
 .ds-dialog .ds-dialog-consequence{font-size:15px;color:var(--ds-muted)}
 .ds-dialog .ds-button--secondary{color:var(--ds-text);background:var(--ds-surface)}
 .enterprise-shell .topbar.ds-header{background:var(--ds-surface);border-color:var(--ds-border)}
 body.enterprise-shell .topbar.ds-header .topbar-title{font-size:22px!important;color:var(--ds-text)!important}
 .ds-header .workspace-breadcrumb,.enterprise-shell .ds-header .clock-date,.enterprise-shell .ds-header .topbar-welcome>span{font-size:13px;color:var(--ds-muted)}
 .enterprise-shell .ds-header .clock-time{font-size:16px;color:var(--ds-text)}
 .enterprise-shell .ds-header .topbar-search input{font-size:14px;color:var(--ds-text);background:var(--ds-surface)}
 .enterprise-shell .ds-header .workspace-clock{background:var(--ds-surface-subtle)}
 .enterprise-shell .ds-header #notification-bell{font-size:14px;color:var(--ds-text);background:var(--ds-surface);border-color:var(--ds-border)}
 .enterprise-shell .ds-header .notification-count{font-size:12px}
 .ds-content :is(form,.ds-list-toolbar,.btn,button,input,select,textarea){position:relative;z-index:3}
 .ds-content :is(.letter-approval-panel,.dd-page-frame,#printArea,.word-document-preview){z-index:3}
 .ds-content .letter-approval-panel{background:var(--ds-surface)}
 .ds-doc-modal{box-sizing:border-box;width:min(1200px,92vw);height:90dvh;max-height:90dvh;max-width:1200px;padding:0;border:1px solid var(--ds-border);border-radius:14px;background:var(--ds-surface);color:var(--ds-text);box-shadow:0 24px 90px #061a3840;overflow:hidden}
 .ds-doc-modal::backdrop{background:#07172b94;backdrop-filter:blur(3px)}
 .ds-doc-shell{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;width:100%;height:100%;min-height:0;background:var(--ds-surface);color:var(--ds-text);font:15px/1.45 var(--ds-font)}
 .ds-doc-header{display:flex;align-items:center;gap:16px;justify-content:space-between;padding:16px 20px;border-bottom:1px solid var(--ds-border);background:var(--ds-surface)}
 .ds-doc-title{min-width:0;display:flex;align-items:center;gap:12px;flex:1}
 .ds-doc-title h2{font:650 20px/1.3 var(--ds-font);margin:0;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
 .ds-doc-title .ds-chip{max-width:32%;overflow:hidden;text-overflow:ellipsis;font-size:12px}
 .ds-doc-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:8px 16px;border-bottom:1px solid var(--ds-border);background:var(--ds-surface)}
 .ds-doc-modal .ds-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 12px;font:500 14px/1.4 var(--ds-font);border:1px solid var(--ds-border);border-radius:8px;color:var(--ds-text);background:var(--ds-surface);cursor:pointer;white-space:nowrap}
 .ds-doc-modal .ds-button:hover:not(:disabled){background:var(--ds-surface-hover)}
 .ds-doc-modal .ds-button:disabled{opacity:.5;cursor:default}
 .ds-doc-modal .ds-button--primary{font-weight:600;background:var(--ds-accent);border-color:var(--ds-accent);color:white}
 .ds-doc-modal .ds-button--primary:hover:not(:disabled){background:var(--ds-brand)}
 .ds-doc-modal .ds-button--primary .ui-icon{filter:brightness(0) invert(1)}
 .ds-doc-tools .ds-button{border-color:transparent;padding:6px 8px}
 .ds-doc-tools output{font:600 13px/1.4 var(--ds-font);font-variant-numeric:tabular-nums;padding:0 4px;white-space:nowrap}
 .ds-doc-tools .ds-doc-count{min-width:84px;text-align:center}
 .ds-doc-next .ui-icon{transform:rotate(180deg)}
 .ds-doc-preview{position:relative;isolation:isolate;min-width:0;min-height:0;overflow:auto;background:var(--ds-surface-subtle);padding:24px;text-align:center;overscroll-behavior:contain;scrollbar-gutter:stable}
 .ds-doc-page{position:relative;min-width:0;width:fit-content;margin:0 auto;z-index:1}
 .ds-doc-canvas{display:block;background:white;box-shadow:0 3px 18px #102d551c;margin:auto}
 .ds-doc-image{display:block;max-width:100%;max-height:100%;object-fit:contain;margin:auto;background:white}
 .ds-doc-word{display:block;width:min(1000px,80vw);height:calc(90dvh - 210px);border:0;background:white}
 .ds-doc-status{position:relative;max-width:580px;margin:20px auto;padding:12px 16px;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface);color:var(--ds-text);font-size:15px;text-align:start}
 .ds-doc-loading{max-width:580px;margin:20px auto;height:60%;padding:32px;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:8px}
 .ds-doc-loading .ds-skeleton{height:16px;width:90%;margin:20px 0}.ds-doc-loading .ds-skeleton:nth-child(2){width:70%}
 .ds-doc-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--ds-border);background:var(--ds-surface)}
 .ds-doc-modal :is(button,a,iframe,[tabindex]):focus-visible{outline:3px solid var(--ds-focus);outline-offset:2px}
 .ds-doc-modal [hidden]{display:none!important}
 .ds-doc-expanded{width:100vw;height:100dvh;max-height:100dvh;max-width:100vw;margin:0;border-radius:0}
 .ds-doc-print-frame{position:fixed;left:-10000px;top:0;width:816px;height:1056px;border:0}
 @media(max-width:700px){.ds-doc-modal{inset:0;margin:0;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0}.ds-doc-header{padding:12px;gap:8px}.ds-doc-title{display:block}.ds-doc-title h2{font-size:18px}.ds-doc-title .ds-chip{margin-top:4px;max-width:100%}.ds-doc-tools{padding:6px;gap:2px}.ds-doc-tools .ds-button{font-size:13px;padding:6px}.ds-doc-preview{padding:12px}.ds-doc-footer{padding:12px;justify-content:stretch}.ds-doc-footer .ds-button{flex:1}.ds-doc-word{width:calc(100vw - 24px);height:calc(100dvh - 270px)}}
 @media(prefers-reduced-motion:reduce){.ds-doc-modal *{animation:none!important;transition:none!important}}
}
@media print{.ds-doc-modal{display:none!important}}
@media screen{
 body.enterprise-shell .ds-document-workspace .letter-approval-panel .ds-action-body :is(label,.form-label){font-size:14px!important;font-weight:500}
 body.enterprise-shell .ds-document-workspace :is(.ds-next-preview,.ds-delivery-summary,.ds-character-count,.ds-compose-help .ds-field-help,.ds-action-heading .ds-field-help,.ds-comment-text,.ds-comment-excerpt,.ds-comment-more,.ds-comment-by strong,.ds-comment-by span,.ds-comment-meta){font-size:13px!important;color:var(--ds-muted)}
 body.enterprise-shell .ds-document-workspace .ds-action-tabs button{font-size:14px;min-height:40px!important}
 body.enterprise-shell .ds-document-workspace .document-action-footer .btn{font-size:14px!important;min-height:40px!important}
 body.enterprise-shell .ds-document-workspace .document-action-footer button:is([value=Approve],[value=Sign],[value=Issue],[value=Send],[value=Dispatch]){min-height:44px!important}
 body.enterprise-shell .ds-document-workspace .dd-viewer-tools :is(button,a){font-size:13px;min-height:40px}
 body.enterprise-shell .ds-document-workspace .dd-process .dd-guidance,body.enterprise-shell .ds-document-workspace .dd-step{font-size:13px}
 body.enterprise-shell .ds-document-workspace .ds-action-heading h2{font-weight:650!important}
 :root[data-ds-theme=dark] .ds-chip[data-tone=warning]{color:#ffda8a;background:#352c16;border-color:#77643d}
 :root[data-ds-theme=dark] .ds-chip[data-tone=danger]{color:#ffb4aa;background:#3c2023;border-color:#86504c}
 :root[data-ds-theme=dark] .ds-chip[data-tone=success]{color:#9fe0bd;background:#17392e;border-color:#47785f}
 :root[data-ds-theme=dark] .ds-chip[data-tone=info]{color:#b6d2ff;background:#172f54;border-color:#496b9a}
}
@media screen{
 .ds-doc-activity{flex:0 0 min(260px,24vw);max-width:300px;height:44px}
 .ds-doc-activity:empty,.ds-doc-activity:has(.office-progress[hidden]){display:none}
 .ds-doc-activity .office-progress.ds-feedback{position:relative;inset:auto;width:100%;max-width:100%;min-height:44px;font-size:13px;box-shadow:none}
 body.enterprise-shell .ds-doc-modal .ds-button{min-height:40px;font:500 14px/1.4 var(--ds-font);padding:8px 12px}
 body.enterprise-shell .ds-doc-modal .ds-button,body.enterprise-shell .ds-dialog .ds-button--secondary,body.enterprise-shell .ds-content :is(.ds-button--secondary,.btn-outline-secondary,.btn-outline-primary){color:var(--ds-text);background:var(--ds-surface);border-color:var(--ds-border)}
 body.enterprise-shell .ds-doc-modal .ds-button--primary{color:#fff;background:var(--ds-accent);border-color:var(--ds-accent)}
 body.enterprise-shell .ds-doc-modal .ds-button--primary:hover:not(:disabled){background:var(--ds-brand)}
 body.enterprise-shell .ds-doc-modal .ds-button:not(.ds-button--primary):hover:not(:disabled){background:var(--ds-surface-hover)}
 :root[data-ds-theme=dark] :is(.ds-doc-modal,.ds-dialog,.ds-kit-card) .ui-icon{filter:brightness(0) invert(1)}
 @media(prefers-color-scheme:dark){:root:not([data-ds-theme=light]) :is(.ds-doc-modal,.ds-dialog,.ds-kit-card) .ui-icon{filter:brightness(0) invert(1)}}
 @media(max-width:700px){.ds-doc-header{flex-wrap:wrap}.ds-doc-title{flex:1;min-width:0}.ds-doc-activity{flex:1 0 100%;width:100%;max-width:none;order:3}.ds-doc-header>.ds-button{order:2}body.enterprise-shell .ds-doc-modal .ds-button{min-height:44px;padding:8px}}
}

/* V6 document workspace: visible navigation, one reading pane, pinned authorized actions. */
@media screen {
 body.enterprise-shell:has(.ds-document-workspace) .topbar.ds-header{min-height:72px;padding-block:8px}
 body.enterprise-shell:has(.ds-document-workspace) .main-content.ds-content{padding:6px 12px!important;gap:4px;overflow:hidden}
 body.enterprise-shell .ds-document-workspace{grid-template-rows:auto auto minmax(0,1fr)!important;gap:4px;color:var(--ds-text)}
 body.enterprise-shell .ds-document-workspace .ds-document-navigation{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 8px;gap:8px;border:1px solid var(--ds-border);border-radius:10px;background:var(--ds-surface);overflow:visible}
 .ds-document-tabs{display:flex;flex:1;min-width:0;gap:0;overflow-x:auto;scrollbar-width:thin;align-self:stretch}
 body.enterprise-shell .ds-document-tabs>button{display:inline-flex;align-items:center;justify-content:center;gap:5px;flex:none;min-height:44px;padding:8px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--ds-muted);font:500 14px/1.4 var(--ds-font);white-space:nowrap}
 body.enterprise-shell .ds-document-tabs>button[aria-selected=true]{border-bottom-color:var(--ds-accent);color:var(--ds-text);font-weight:700;background:var(--ds-surface-subtle)}
 body.enterprise-shell .ds-document-workspace .dd-commands{display:flex;flex:none;width:auto;gap:4px;overflow:visible}
 body.enterprise-shell .ds-document-workspace .dd-commands .ds-button{min-height:36px;padding:7px 9px;font-size:14px}
 body.enterprise-shell .ds-document-workspace .dd-columns{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:12px;min-height:0;height:100%;align-items:stretch;overflow:visible}
 body.enterprise-shell .ds-document-workspace .dd-reader,body.enterprise-shell .ds-document-workspace .ds-detail-panel{grid-column:1;grid-row:1;min-width:0;min-height:0;height:100%;border:1px solid var(--ds-border);border-radius:10px;background:var(--ds-surface);overflow:hidden;box-shadow:var(--ds-shadow-1)}
 body.enterprise-shell .ds-document-workspace .ds-detail-panel{overflow:auto;padding:20px}
 .ds-detail-panel h2{font:650 16px/1.4 var(--ds-font);margin:0 0 16px}.ds-detail-panel h3,.ds-detail-panel h5{font:650 16px/1.4 var(--ds-font)}
 .ds-detail-panel .ds-comment-thread{max-width:100%;margin:16px 0}.ds-detail-panel .ds-comment-entry{padding:16px 0}.ds-detail-panel .ds-comment-text,.ds-detail-panel .ds-comment-excerpt{font-size:14px!important;color:var(--ds-text)}
 .ds-detail-panel .ds-related-links{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.ds-detail-loading{padding:20px;color:var(--ds-muted)}
 body.enterprise-shell .ds-document-workspace .letter-approval-panel{grid-column:2;grid-row:1;position:static;top:auto;height:100%;min-height:0;background:var(--ds-surface);color:var(--ds-text);border-color:var(--ds-border);overflow:hidden}
 body.enterprise-shell .ds-document-workspace .workflow-workspace{display:flex;height:100%;min-height:0;flex-direction:column;background:var(--ds-surface);color:var(--ds-text);overflow:hidden}
 body.enterprise-shell .ds-document-workspace .ds-action-heading{padding:12px 14px;border-bottom:1px solid var(--ds-border);background:var(--ds-surface);flex:none}
 body.enterprise-shell .ds-document-workspace .ds-action-heading h2{font:650 16px/1.35 var(--ds-font)!important;color:var(--ds-text);white-space:normal;max-height:none;margin:0 0 6px}
 body.enterprise-shell .ds-document-workspace .ds-task-meta{font-size:13px;margin-bottom:8px}.ds-task-meta .ds-chip{font-size:12px}
 .ds-desk-chip{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border:1px solid var(--ds-border);border-radius:7px;max-width:100%;font:600 12px/1.4 var(--ds-font);background:var(--ds-surface-subtle);color:var(--ds-text);vertical-align:middle}
 .ds-desk-chip>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-desk-chip[data-desk-tone=mine]{color:#14583d;background:#eaf7ef;border-color:#97c9ac}.ds-desk-chip[data-desk-tone=returned]{color:#783d06;background:#fff2dc;border-color:#e2ba74}.ds-desk-chip[data-desk-tone=other]{color:#153f77;background:#ecf3ff;border-color:#a5bfe4}.ds-desk-chip[data-desk-tone=complete]{color:#315948;background:#eef5f0}
 body.enterprise-shell .ds-document-workspace .letter-approval-panel #officer-action-body{padding:12px 14px!important;display:flex;flex-direction:column;gap:7px;min-height:0;flex:1;overflow:auto!important}
 body.enterprise-shell .ds-document-workspace .letter-approval-panel #officer-action-comment{min-height:72px;max-height:140px;resize:vertical;font:14px/1.45 var(--ds-font);color:var(--ds-text);background:var(--ds-surface);border-color:var(--ds-border);margin:0!important}
 body.enterprise-shell .ds-document-workspace .ds-compose-help{display:flex;gap:8px;align-items:start;margin:0}.ds-compose-help p{margin:0}
 body.enterprise-shell .ds-document-workspace .ds-next-preview{white-space:normal;overflow:visible;max-height:none;margin:0;padding:8px 0;border-bottom:1px solid var(--ds-border);font-size:13px!important;color:var(--ds-muted)}
 body.enterprise-shell .ds-document-workspace .ds-delivery-summary{padding:0;margin:0;border:0;background:transparent;color:var(--ds-muted)}
 body.enterprise-shell .ds-document-workspace .ds-delivery-summary>p{margin:0 0 5px}.ds-delivery-counts{display:flex;gap:6px;flex-wrap:wrap;font-size:13px}
 body.enterprise-shell .ds-document-workspace .document-action-footer{display:flex;flex-direction:column;flex:none;gap:8px;padding:12px 14px;border-top:1px solid var(--ds-border);background:var(--ds-surface)}
 body.enterprise-shell .ds-document-workspace .document-action-footer>div,.ds-visible-actions,.ds-visible-decisions{display:contents!important}
 body.enterprise-shell .ds-document-workspace .document-action-footer form{width:100%;margin:0;flex:none}
 body.enterprise-shell .ds-document-workspace .document-action-footer .btn{width:100%;min-height:40px;font:600 14px/1.4 var(--ds-font);border-radius:8px;white-space:normal}
 body.enterprise-shell .ds-document-workspace .document-action-footer :is(.btn-primary,.btn-success){background:var(--ds-accent)!important;border-color:var(--ds-accent)!important;color:#fff!important;min-height:44px!important}
 body.enterprise-shell .ds-document-workspace .document-action-footer .btn-outline-warning{background:#fff5e2;color:#783d06;border-color:#d8b36d}
 body.enterprise-shell .ds-document-workspace .document-action-footer .btn-outline-danger{background:var(--ds-surface);color:#a4261b;border-color:#cf847c}
 body.enterprise-shell .ds-document-workspace .document-action-footer .ds-danger-zone{display:block!important;border-top:1px solid var(--ds-border);padding-top:8px;margin:0}
 body.enterprise-shell .ds-document-workspace [data-ds-reassign-open]{order:2}body.enterprise-shell .ds-document-workspace #document-safety-form{order:3}body.enterprise-shell .ds-document-workspace .ds-danger-zone{order:4}
 body.enterprise-shell .ds-document-workspace .dd-process{display:flex;align-items:center;min-height:44px;gap:8px;padding:4px 10px;margin:0;background:var(--ds-surface);border-color:var(--ds-border);flex-wrap:nowrap}
 body.enterprise-shell .ds-document-workspace .dd-steps{display:flex;flex:1;min-width:0;overflow:auto;margin:0;gap:4px;align-items:center}
 body.enterprise-shell .ds-document-workspace .dd-steps>li{flex:1;min-width:0;display:block;padding:0}.ds-document-workspace .workflow-step:before,.ds-document-workspace .workflow-step:after{display:none!important}
 body.enterprise-shell .ds-document-workspace .dd-step{display:flex;align-items:center;justify-content:center;gap:5px;min-height:32px;width:100%;font:600 13px/1.3 var(--ds-font);padding:4px;border-radius:7px;color:var(--ds-muted)}
 body.enterprise-shell .ds-document-workspace .dd-step[aria-current=step]{color:var(--ds-text);background:var(--ds-surface-hover);border-color:var(--ds-accent)}
 .ds-process-desk{display:flex;gap:6px;align-items:center;min-width:0;max-width:48%}.ds-process-desk .dd-meta-chip{max-width:160px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ds-process-desk .ds-desk-chip{max-width:200px}
 body.enterprise-shell .ds-document-workspace .dd-guidance{display:none}.ds-process-desk .ds-desk-chip img{width:14px}
 body.enterprise-shell .ds-document-workspace .dd-viewer-tools{min-height:36px;padding:3px 8px;background:var(--ds-surface);border-color:var(--ds-border);gap:6px}
 body.enterprise-shell .ds-document-workspace .dd-viewer-tools :is(a,button){display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:32px;padding:5px 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:var(--ds-text);font:500 13px/1.3 var(--ds-font);text-decoration:none}
 body.enterprise-shell .ds-document-workspace .dd-viewer-tools :is(a,button):hover{background:var(--ds-surface-hover);border-color:var(--ds-border)}
 body.enterprise-shell .ds-document-workspace .dd-viewer{min-height:0;height:auto;flex:1;background:var(--ds-surface-subtle);padding:8px;overflow:auto}
 body.enterprise-shell .ds-document-workspace [hidden]{display:none!important}
 @media(min-width:1100px) and (max-height:800px){body.enterprise-shell .ds-document-workspace .ds-action-heading{padding:10px 12px}.ds-document-workspace .ds-action-heading .ds-task-meta{display:none}body.enterprise-shell .ds-document-workspace .letter-approval-panel #officer-action-body{padding:10px 12px!important;gap:5px}body.enterprise-shell .ds-document-workspace .letter-approval-panel #officer-action-comment{min-height:64px;max-height:80px}body.enterprise-shell .ds-document-workspace .document-action-footer{padding:10px 12px;gap:6px}body.enterprise-shell .ds-document-workspace .document-action-footer .btn{min-height:36px}body.enterprise-shell .ds-document-workspace .ds-delivery-summary>p{display:none}.ds-process-desk .dd-meta-chip{max-width:115px}}
 @media(max-width:1279px){.ds-document-tabs>button span:not(.ds-count){display:none}.ds-document-tabs>button{min-width:44px}.ds-process-desk .dd-meta-chip{max-width:100px}}
 @media(max-width:1099px){body.enterprise-shell:has(.ds-document-workspace){height:auto;overflow:auto}body.enterprise-shell:has(.ds-document-workspace) .app-shell,body.enterprise-shell:has(.ds-document-workspace) .main-area{height:auto;min-height:100dvh}body.enterprise-shell .ds-document-workspace .dd-columns{display:flex;flex-direction:column;height:auto;overflow:visible}body.enterprise-shell .ds-document-workspace .dd-reader{display:flex;height:65dvh;min-height:360px;flex:none}body.enterprise-shell .ds-document-workspace .ds-detail-panel{min-height:340px;max-height:65dvh}body.enterprise-shell .ds-document-workspace .letter-approval-panel{position:sticky;bottom:0;top:auto;height:auto;max-height:none;display:flex;z-index:10}body.enterprise-shell .ds-document-workspace .document-action-footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}body.enterprise-shell .ds-document-workspace .document-action-footer :is(.ds-danger-zone,form){min-width:0}body.enterprise-shell .ds-document-workspace .document-action-footer .ds-danger-zone{border-top:0;padding-top:0}body.enterprise-shell .ds-document-workspace .dd-close-actions{display:none!important}body.enterprise-shell .ds-document-workspace .ds-document-navigation{flex-wrap:wrap}.ds-document-tabs{width:100%;flex:auto}.ds-document-workspace .dd-commands{width:100%!important;justify-content:flex-end}.ds-process-desk{max-width:45%}.ds-process-desk .dd-meta-chip{display:none}.ds-process-desk .workflow-status{display:none}body.enterprise-shell .ds-document-workspace .letter-approval-panel #officer-action-body{max-height:none;overflow:visible!important}body.enterprise-shell .ds-document-workspace .dd-actions-shortcut{display:none}}
 @media(max-width:600px){body.enterprise-shell .ds-document-workspace .dd-process{flex-wrap:wrap}.ds-process-desk{max-width:100%;width:100%}.ds-document-workspace .dd-steps{flex-basis:100%!important}.ds-document-tabs>button{flex:1}body.enterprise-shell .ds-document-workspace .document-action-footer .btn{min-height:44px}.ds-document-workspace .ds-detail-panel{padding:16px}}
 :root[data-ds-theme=dark] .ds-desk-chip[data-desk-tone=mine]{background:#17392e;color:#a9e4c5;border-color:#47785f}:root[data-ds-theme=dark] .ds-desk-chip[data-desk-tone=other]{background:#172f54;color:#b6d2ff;border-color:#496b9a}:root[data-ds-theme=dark] .ds-desk-chip[data-desk-tone=returned]{background:#352c16;color:#ffda8a;border-color:#77643d}
}
@media print{#printArea{zoom:1!important}.ds-document-tabs,.ds-detail-panel,.ds-process-desk{display:none!important}}

/* V6 shared registers, dashboard and remaining authenticated surfaces. */
@media screen{
 body.enterprise-shell .ds-content .ds-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:0 0 20px}
 body.enterprise-shell .ds-content .ds-kpi{--kpi-ink:#7a3d05;--kpi-tint:#fff4df;--kpi-edge:#b55a08;display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:4px 8px;align-content:start;min-height:164px;padding:16px;border:1px solid var(--ds-border);border-left:5px solid var(--kpi-edge);border-radius:12px;background:var(--kpi-tint);color:var(--kpi-ink);text-decoration:none;box-shadow:var(--ds-shadow-1);position:relative;transition:transform 150ms,box-shadow 150ms}
 body.enterprise-shell .ds-content .ds-kpi--dominant{grid-column:span 2}
 body.enterprise-shell .ds-content .ds-kpi--returned{--kpi-ink:#7f2c1e;--kpi-tint:#fff0eb;--kpi-edge:#b44029}
 body.enterprise-shell .ds-content .ds-kpi--overdue{--kpi-ink:#8f2329;--kpi-tint:#ffedef;--kpi-edge:#b52f3b}
 body.enterprise-shell .ds-content .ds-kpi--complete{--kpi-ink:#145338;--kpi-tint:#eaf7ef;--kpi-edge:#24784e}
 body.enterprise-shell .ds-content .ds-kpi--inprocess{--kpi-ink:#193f7d;--kpi-tint:#edf3ff;--kpi-edge:#2f60ac}
 body.enterprise-shell .ds-content .ds-kpi[aria-current=true]{outline:2px solid var(--kpi-edge);outline-offset:2px}
 body.enterprise-shell .ds-content .ds-kpi:hover{transform:translateY(-2px);box-shadow:var(--ds-shadow-2)}
 body.enterprise-shell .ds-content .ds-kpi-icon{display:grid;place-items:center;grid-column:2;grid-row:1;background:var(--kpi-edge);width:36px;height:36px;border-radius:50%}
 body.enterprise-shell .ds-content .ds-kpi-icon img{width:20px;height:20px;filter:brightness(0) invert(1)}
 body.enterprise-shell .ds-content .ds-kpi-count{grid-column:1;grid-row:1;font:700 36px/1.1 var(--ds-font);color:var(--kpi-ink);font-variant-numeric:tabular-nums}
 body.enterprise-shell .ds-content .ds-kpi>strong{grid-column:1/-1;font:600 15px/1.4 var(--ds-font);margin-top:12px;color:var(--kpi-ink)}
 body.enterprise-shell .ds-content .ds-kpi>small{grid-column:1/-1;font:400 13px/1.45 var(--ds-font);color:var(--kpi-ink);min-height:0;margin-top:4px}
 body.enterprise-shell .ds-content .ds-list{border-color:var(--ds-border);background:var(--ds-surface);overflow:visible}
 body.enterprise-shell .ds-content .ds-list-toolbar{display:flex;flex-wrap:wrap;align-items:end;gap:12px;padding:12px 16px}
 body.enterprise-shell .ds-content .ds-list-toolbar label{font-size:13px;color:var(--ds-muted);flex:0 1 auto;min-width:0;margin:0}
 body.enterprise-shell .ds-content .ds-list-toolbar label:first-child{flex:1 1 200px}
 body.enterprise-shell .ds-content .ds-list-toolbar input,body.enterprise-shell .ds-content .ds-list-toolbar select{font-size:14px;min-height:40px;max-width:100%;border-color:var(--ds-border);background:var(--ds-surface);color:var(--ds-text)}
 body.enterprise-shell .ds-content .ds-list-toolbar--minimal{padding:10px 16px;justify-content:space-between}.ds-list-toolbar--minimal label{max-width:340px}
 body.enterprise-shell .ds-content .ds-list .ds-table{width:100%;table-layout:fixed;border-collapse:collapse;font:500 14px/1.45 var(--ds-font);margin:0;color:var(--ds-text);background:var(--ds-surface)}
 body.enterprise-shell .ds-content .ds-list .ds-table th{padding:12px;font:600 14px/1.4 var(--ds-font);background:var(--ds-surface-subtle);color:var(--ds-muted);border-bottom:1px solid var(--ds-border)}
 body.enterprise-shell .ds-content .ds-list .ds-table td{padding:10px 12px;vertical-align:middle;border-color:var(--ds-border);height:64px;overflow:hidden}
 body.enterprise-shell .ds-content .ds-list .ds-reference-cell{width:18%}.ds-list .ds-subject-cell{width:28%}.ds-list .ds-desk-cell{width:19%}.ds-list .ds-stage-cell{width:8%}.ds-list .ds-age-cell{width:11%}.ds-list .ds-status-cell{width:11%}.ds-list .ds-open-cell{width:84px}
 body.enterprise-shell .ds-content .ds-list .ds-reference{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 13px/1.45 var(--ds-font);color:var(--ds-muted)}
 body.enterprise-shell .ds-content .ds-list .ds-subject{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:normal;font:600 14px/1.45 var(--ds-font);max-height:42px;color:var(--ds-text)}
 body.enterprise-shell .ds-content .ds-list .ds-row-type{display:none}
 body.enterprise-shell .ds-content .ds-list .ds-fromto{display:block;white-space:normal;overflow:hidden;max-height:42px;font-size:13px;color:var(--ds-muted)}
 body.enterprise-shell .ds-content .ds-list .ds-stage{font-size:13px;color:var(--ds-muted)}
 body.enterprise-shell .ds-content .ds-list time{display:block;font-size:13px;white-space:normal;color:var(--ds-muted)}
 body.enterprise-shell .ds-content .ds-list .ds-chip{font-size:12px;font-weight:600;white-space:normal;line-height:1.35;padding:5px 7px}
 body.enterprise-shell .ds-content .ds-list .ds-open-cell .ds-button{min-height:36px;font-size:13px;padding:7px 10px;white-space:nowrap}
 body.enterprise-shell .ds-content .ds-list [data-needs-action=true]{border-left:3px solid var(--ds-accent)}
 body.enterprise-shell .ds-content .ds-list[data-density=compact] td{height:48px;padding-block:6px}
 body.enterprise-shell .ds-content .ds-list [data-ds-list-count]{display:block;padding:8px 16px;border-top:1px solid var(--ds-border);font-size:13px;color:var(--ds-muted)}
 body.enterprise-shell .ds-content .ds-list [data-ds-list-empty]{padding:24px;color:var(--ds-muted);font-size:14px}
 body.enterprise-shell .ds-content .ds-filter-fields{background:var(--ds-surface);border-color:var(--ds-border);box-shadow:var(--ds-shadow-2);z-index:30}
 body.enterprise-shell .ds-content .ds-register-search{padding:12px 16px;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:10px;margin:0 0 16px}
 body.enterprise-shell .ds-content .ds-register-search>summary{font-size:14px;color:var(--ds-text);font-weight:600;cursor:pointer}
 body.enterprise-shell .ds-content .ds-data-table{table-layout:auto;width:100%}.ds-content .ds-data-table td{overflow-wrap:anywhere;min-width:0}.ds-content .ds-data-table td:last-child .btn{white-space:nowrap}
 body.enterprise-shell .ds-content :is(.ds-form-section,.ds-system-page,.ds-notifications,.card:not(.document-reading-page)):not(:where(#printArea *, .word-document-preview *)){border-color:var(--ds-border);background:var(--ds-surface);color:var(--ds-text)}
 body.enterprise-shell .ds-content :is(.list-group-item,.bg-light):not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){background:var(--ds-surface)!important;color:var(--ds-text)!important;border-color:var(--ds-border)}
 body.enterprise-shell .ds-content .ds-notifications a.text-dark{color:var(--ds-text)!important}
 body.enterprise-shell .ds-content :is(.text-muted,.small):not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){font-size:13px!important;color:var(--ds-muted)!important}
 body.enterprise-shell .ds-content :is(h4,h5,h6):not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){font-size:16px;font-weight:650;color:var(--ds-text)}
 body.enterprise-shell .ds-content :is(.form-label,label):not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){font-size:14px;font-weight:500;color:var(--ds-text)}
 body.enterprise-shell .ds-content :is(.btn-primary,.btn-success):not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){background:var(--ds-accent);border-color:var(--ds-accent);color:#fff}
 .ds-notifications .list-group-item{padding:16px;gap:16px;border-left:3px solid transparent}.ds-notifications .list-group-item.fw-bold{border-left-color:var(--ds-accent)}
 .ds-folder-grid .card{border-top:3px solid var(--ds-accent)}.ds-process-catalog details{border-left:3px solid var(--ds-accent)}
 @media(max-width:1199px){body.enterprise-shell .ds-content .ds-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}body.enterprise-shell .ds-content .ds-kpi--dominant{grid-column:span 2}.ds-list .ds-stage-cell{display:none}}
 @media(max-width:800px){body.enterprise-shell .ds-content .ds-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.enterprise-shell .ds-content .ds-kpi--dominant{grid-column:span 2}body.enterprise-shell .ds-content .ds-list .ds-table,body.enterprise-shell .ds-content .ds-list .ds-table tbody{display:block;width:100%}body.enterprise-shell .ds-content .ds-list .ds-table thead{display:none}body.enterprise-shell .ds-content .ds-list .ds-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:16px;border-bottom:1px solid var(--ds-border)}body.enterprise-shell .ds-content .ds-list .ds-table td{display:block!important;width:auto!important;height:auto!important;padding:0!important;border:0;overflow:visible;min-width:0}body.enterprise-shell .ds-content .ds-list .ds-reference-cell,body.enterprise-shell .ds-content .ds-list .ds-subject-cell{grid-column:1/-1}body.enterprise-shell .ds-content .ds-list .ds-open-cell{grid-column:2;grid-row:3/6;align-self:center}body.enterprise-shell .ds-content .ds-list .ds-desk-cell,body.enterprise-shell .ds-content .ds-list .ds-age-cell,body.enterprise-shell .ds-content .ds-list .ds-status-cell{grid-column:1}body.enterprise-shell .ds-content .ds-list td[data-label]::before{display:none}body.enterprise-shell .ds-content .ds-list .ds-fromto{max-height:none}.ds-list .ds-stage-cell{display:none!important}.ds-list-toolbar>label{flex:1 1 130px!important}.ds-list-toolbar .ds-list-filters{margin-left:auto}.ds-pagebar{flex-wrap:wrap}.ds-pagebar>.nav{min-width:0;overflow:auto}}
 :root[data-ds-theme=dark] .ds-content .ds-kpi{--kpi-ink:#ffda98;--kpi-tint:#332913;--kpi-edge:#b97b26}:root[data-ds-theme=dark] .ds-content .ds-kpi--returned{--kpi-ink:#ffc8b9;--kpi-tint:#3b211b;--kpi-edge:#bb6d59}:root[data-ds-theme=dark] .ds-content .ds-kpi--overdue{--kpi-ink:#ffc6cb;--kpi-tint:#3b1f26;--kpi-edge:#bc6170}:root[data-ds-theme=dark] .ds-content .ds-kpi--complete{--kpi-ink:#b2e5c8;--kpi-tint:#193328;--kpi-edge:#51956d}:root[data-ds-theme=dark] .ds-content .ds-kpi--inprocess{--kpi-ink:#c5dbff;--kpi-tint:#192e4b;--kpi-edge:#638cc4}
 @media(prefers-reduced-motion:reduce){body.enterprise-shell .ds-content .ds-kpi{transition:none;transform:none}}
}

/* Keep the same visible controls at compact desktop / browser zoom sizes. */
@media screen{
 .ds-forward-dialog{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;background:var(--ds-surface);color:var(--ds-text)}
 .ds-forward-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
 .ds-forward-dialog>header,.ds-forward-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--ds-border)}
 body.enterprise-shell .ds-document-workspace .ds-forward-dialog h2{font:650 16px/1.4 var(--ds-font)!important;margin:0;min-width:0;overflow-wrap:anywhere}
 .ds-forward-dialog>header{flex:none}
 .ds-forward-dialog form{display:flex;flex:1;flex-direction:column;min-height:0;max-height:none}
 .ds-forward-fields{display:flex;flex:1;min-height:0;flex-direction:column;gap:8px;padding:16px 20px;overflow:auto}
 .ds-forward-fields label{font-size:14px}.ds-forward-fields textarea{min-height:96px;font-size:14px}
 .ds-forward-shortcuts{display:flex;flex-wrap:wrap;gap:8px}.ds-forward-dialog .btn{width:auto!important;min-height:40px}
 .ds-forward-dialog footer{flex:none;border:0;border-top:1px solid var(--ds-border);justify-content:flex-end}
 body.enterprise-shell .ds-document-workspace [data-ds-forward-open]{order:2}
 .ds-referral-summary{padding:8px;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface-subtle);font-size:13px}
 .ds-referral-summary p{margin:6px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
}
@media screen and (prefers-color-scheme:dark){
 :root:not([data-ds-theme=light]) .ds-content .ds-kpi{--kpi-ink:#ffda98;--kpi-tint:#332913;--kpi-edge:#b97b26}
 :root:not([data-ds-theme=light]) .ds-content .ds-kpi--returned{--kpi-ink:#ffc8b9;--kpi-tint:#3b211b;--kpi-edge:#bb6d59}
 :root:not([data-ds-theme=light]) .ds-content .ds-kpi--overdue{--kpi-ink:#ffc6cb;--kpi-tint:#3b1f26;--kpi-edge:#bc6170}
 :root:not([data-ds-theme=light]) .ds-content .ds-kpi--complete{--kpi-ink:#b2e5c8;--kpi-tint:#193328;--kpi-edge:#51956d}
 :root:not([data-ds-theme=light]) .ds-content .ds-kpi--inprocess{--kpi-ink:#c5dbff;--kpi-tint:#192e4b;--kpi-edge:#638cc4}
 :root:not([data-ds-theme=light]) .ds-desk-chip[data-desk-tone=mine]{color:#b2e5c8;background:#193328;border-color:#51956d}
 :root:not([data-ds-theme=light]) .ds-desk-chip[data-desk-tone=returned]{color:#ffda98;background:#332913;border-color:#b97b26}
 :root:not([data-ds-theme=light]) .ds-desk-chip[data-desk-tone=other]{color:#c5dbff;background:#192e4b;border-color:#638cc4}
 :root:not([data-ds-theme=light]) .ds-desk-chip[data-desk-tone=complete]{color:#b2e5c8;background:#193328}
}
@media screen {
 body.enterprise-shell .ds-content .ds-list .ds-reference-cell{width:16%}
 body.enterprise-shell .ds-content .ds-list .ds-subject-cell{width:auto}
 body.enterprise-shell .ds-content .ds-list .ds-desk-cell{width:18%}
 body.enterprise-shell .ds-content .ds-list .ds-stage-cell{width:8%}
 body.enterprise-shell .ds-content .ds-list .ds-age-cell{width:11%}
 body.enterprise-shell .ds-content .ds-list .ds-status-cell{width:11%}
 body.enterprise-shell .ds-content .ds-list .ds-open-cell{width:104px;overflow:visible}
 body.enterprise-shell .ds-content .ds-list .ds-open-cell .ds-row-edit{display:inline-flex;vertical-align:middle;min-width:24px;min-height:36px;align-items:center;justify-content:center}
 body.enterprise-shell .ds-document-workspace .letter-approval-panel{display:flex;visibility:visible;transform:none;inset:auto;box-shadow:var(--ds-shadow-1)}
 body.enterprise-shell .ds-document-workspace .dd-actions-shortcut{display:none!important}
 @media(min-width:900px) and (max-width:1099px){
  body.enterprise-shell:has(.ds-document-workspace){height:100dvh;overflow:hidden}
  body.enterprise-shell:has(.ds-document-workspace) .app-shell{height:100dvh;min-height:0}
  body.enterprise-shell:has(.ds-document-workspace) .main-area{height:100%;min-height:0}
  body.enterprise-shell .ds-document-workspace .dd-columns{display:grid;grid-template-columns:minmax(0,1fr) 310px;height:100%;min-height:0}
  body.enterprise-shell .ds-document-workspace .dd-reader,body.enterprise-shell .ds-document-workspace .ds-detail-panel{height:100%;min-height:0;max-height:none}
  body.enterprise-shell .ds-document-workspace .letter-approval-panel{position:static;height:100%;min-height:0;max-height:none}
  body.enterprise-shell .ds-document-workspace .ds-document-navigation{flex-wrap:nowrap}
  body.enterprise-shell .ds-document-workspace .dd-commands{width:auto;justify-content:flex-end}
  body.enterprise-shell .ds-document-workspace .document-action-footer{display:flex;gap:6px;padding:8px 12px!important}
  body.enterprise-shell .ds-document-workspace .ds-action-heading{padding:8px 12px}
  body.enterprise-shell .ds-document-workspace .ds-task-meta{display:none}
  body.enterprise-shell .ds-document-workspace .letter-approval-panel #officer-action-body{padding:8px 12px!important;gap:4px}
  body.enterprise-shell .ds-document-workspace .letter-approval-panel #officer-action-comment{min-height:56px;max-height:72px}
  body.enterprise-shell .ds-document-workspace .ds-next-preview{padding:4px 0}
  body.enterprise-shell .ds-document-workspace .ds-delivery-summary>p{display:none}
  body.enterprise-shell .ds-document-workspace .ds-process-desk .dd-meta-chip{display:none}
 }
 @media(max-width:899px){
  body.enterprise-shell:has(.ds-document-workspace) .main-content.ds-content{overflow:visible;flex:none}
  body.enterprise-shell .ds-document-workspace{flex:none;height:auto;min-height:0;grid-template-rows:auto auto auto!important}
  body.enterprise-shell .ds-document-workspace .letter-approval-panel{position:relative;bottom:auto;height:auto;max-height:none;width:100%;flex:none}
  body.enterprise-shell .ds-document-workspace .workflow-workspace{height:auto;flex:none;width:100%}
  body.enterprise-shell .ds-document-workspace .document-action-footer .btn{min-height:44px!important}
  body.enterprise-shell .ds-document-workspace .letter-approval-panel #officer-action-body{flex:none;overflow:visible!important}
  body.enterprise-shell .ds-document-workspace .dd-columns{flex:none}
 }
}

/* Targeted dashboard cards. Official documents, header and navigation are unaffected. */
body.enterprise-shell .ds-dashboard .ds-kpi-grid{grid-template-columns:1.2fr repeat(4,minmax(0,1fr));align-items:stretch;gap:14px}
body.enterprise-shell .ds-dashboard .ds-kpi{height:150px;min-height:150px;display:grid;grid-template-columns:minmax(0,1fr) 40px;grid-template-rows:40px 44px 1fr;gap:0;padding:12px 14px;border-left:5px solid var(--kpi-edge);background:var(--kpi-tint);text-decoration:none}
body.enterprise-shell .ds-dashboard .ds-kpi--dominant{grid-column:auto;--kpi-tint:#fff1d6;border-left-width:6px}
body.enterprise-shell .ds-dashboard .ds-kpi--returned{--kpi-ink:#432078;--kpi-tint:#f0e8fa;--kpi-edge:#6d3bc3}
body.enterprise-shell .ds-dashboard .ds-kpi>strong{grid-row:2;margin:6px 0 0;font-weight:650;color:var(--ds-text);line-height:1.35;min-height:40px}
body.enterprise-shell .ds-dashboard .ds-kpi>small{grid-row:3;align-self:end;margin:0;color:var(--ds-secondary);font-size:13.5px;line-height:1.4}
body.enterprise-shell .ds-dashboard .ds-kpi--dominant .ds-kpi-count{font-size:40px}
body.enterprise-shell .ds-dashboard .ds-kpi:focus-visible{outline:3px solid var(--ds-text);outline-offset:3px}
body.enterprise-shell .ds-dashboard .ds-kpi-icon{width:40px;height:40px}
:root[data-ds-theme=dark] body.enterprise-shell .ds-dashboard .ds-kpi--dominant{--kpi-tint:#332913}
:root[data-ds-theme=dark] body.enterprise-shell .ds-dashboard .ds-kpi--returned{--kpi-tint:#2d2046;--kpi-ink:#e1caff;--kpi-edge:#b798f1}
@media(max-width:1200px){body.enterprise-shell .ds-dashboard .ds-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){body.enterprise-shell .ds-dashboard .ds-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.enterprise-shell .ds-dashboard .ds-kpi{height:150px;min-height:150px}}
@media(max-width:450px){body.enterprise-shell .ds-dashboard .ds-kpi-grid{grid-template-columns:minmax(0,1fr)}}

/* Dashboard-only reading and interaction refinements. */
body.enterprise-shell .ds-dashboard{font-size:15px;line-height:1.5;color:var(--ds-text)}
body.enterprise-shell .ds-dashboard .ds-list :is(time,.ds-chip){white-space:nowrap;font-variant-numeric:tabular-nums}
body.enterprise-shell .ds-dashboard .ds-list .ds-subject{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
body.enterprise-shell .ds-dashboard .ds-list :is(.ds-reference,.ds-fromto,.ds-stage,time,[data-ds-list-count]){font-size:13px;color:var(--ds-secondary)}
body.enterprise-shell .ds-dashboard .ds-list [data-ds-row]{cursor:pointer}
body.enterprise-shell .ds-dashboard .ds-list [data-ds-row]:hover{background:var(--ds-surface-subtle)}
body.enterprise-shell .ds-dashboard .ds-list [data-ds-row]:focus-visible{outline:3px solid var(--ds-text);outline-offset:-3px}
body.enterprise-shell .ds-dashboard [data-dashboard-open]{background:var(--ds-accent);border-color:var(--ds-accent);color:#fff}
@media(prefers-reduced-motion:reduce){body.enterprise-shell .ds-dashboard .ds-kpi:hover{transform:none}}

body.enterprise-shell .ds-dashboard .ds-kpi[data-empty=true] .ds-kpi-count{color:var(--ds-secondary)}

body.enterprise-shell .ds-dashboard .ds-list .ds-reference-cell{width:12%}
body.enterprise-shell .ds-dashboard .ds-list .ds-subject-cell{width:27%}
body.enterprise-shell .ds-dashboard .ds-list .ds-desk-cell{width:17%}
body.enterprise-shell .ds-dashboard .ds-list .ds-stage-cell{width:8%}
body.enterprise-shell .ds-dashboard .ds-list .ds-age-cell{width:11%}
body.enterprise-shell .ds-dashboard .ds-list .ds-status-cell{width:16%}
body.enterprise-shell .ds-dashboard .ds-list .ds-open-cell{width:9%}

/* Keep the existing in-paper watermark single; restored workspace marks remain outside papers. */
body:has(.dd-page-frame,#printArea,.document-reading-page,.word-document-preview,.ds-doc-modal[open],.pdf-document canvas) > .screen-watermarks{display:none}
.ds-doc-preview > .screen-watermarks{position:absolute;top:0;right:0;bottom:0;left:0;inset:0;width:100%;height:100%;z-index:6}

/* Local, font-independent document formatting controls. */
.body-editor .body-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:10px;align-items:center}
.body-editor .body-tool-group{display:flex;flex-wrap:wrap;align-items:center;gap:3px;padding-right:8px;border-right:1px solid var(--ds-border,#cbd5e1)}
.body-editor .body-tool-group:last-child{border-right:0;padding-right:0}
.body-editor .body-tool-button{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 34px;width:34px;min-width:34px;height:34px;padding:6px!important;border:1px solid transparent;background:transparent;color:#173c55;font-size:17px;line-height:1;border-radius:5px}
.body-editor .body-tool-button svg{display:block;width:20px;height:20px;flex:none}
.body-editor .body-tool-button:hover,.body-editor .body-tool-button[aria-pressed=true]{background:#dce9ee;border-color:#afc9d3;color:#103d46}
.body-editor .body-tool-button:focus-visible{outline:3px solid #174e68;outline-offset:1px}
.body-editor .body-color-label{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;color:#173c55}
.body-editor .body-toolbar select{min-width:92px;max-width:172px;min-height:36px;font-size:14px}
.body-editor .body-toolbar input[type=color]{width:32px;height:32px;min-height:32px;padding:2px;cursor:pointer}
@media(max-width:600px){.body-editor .body-tool-button{width:40px;height:40px;flex-basis:40px}.body-editor .body-toolbar{gap:8px 4px}.body-editor .body-tool-group{padding-right:5px}}

/* Clickable current-desk status; wrapping keeps office names visible on narrow screens. */
body.enterprise-shell .ds-content .ds-list .ds-location-status{display:inline-block;max-width:100%;text-decoration:none;border-radius:6px}
body.enterprise-shell .ds-content .ds-list .ds-location-status .ds-chip{white-space:normal;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}
body.enterprise-shell .ds-content .ds-list .ds-location-status:focus-visible{outline:3px solid var(--ds-focus,#1b5bbd);outline-offset:3px}

/* Compact top-right profile control; the menu opens below the header. */
.enterprise-shell .header-account{position:relative;flex:0 0 auto;margin:0;color:var(--ds-text,#173447)}
.header-account-trigger{list-style:none;display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 9px 4px 4px;border:1px solid var(--ds-border,#cbd5e1);border-radius:28px;cursor:pointer;background:var(--ds-surface,#fff);font-size:13px;font-weight:600;user-select:none}
.header-account-trigger::-webkit-details-marker{display:none}
.header-account-trigger:hover,.header-account[open] .header-account-trigger{background:var(--ds-surface-hover,#eef4f7);border-color:var(--ds-brand,#176e75)}
.header-account-avatar{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:#153b48;color:#fff;font-size:14px;font-weight:700;line-height:1}
.header-account-chevron{font-size:14px;color:var(--ds-muted,#526375)}
.header-account[open] .header-account-chevron{transform:rotate(180deg)}
.header-account-panel{position:absolute;top:calc(100% + 10px);right:0;bottom:auto;left:auto;width:310px;max-width:calc(100vw - 24px);inset:calc(100% + 10px) 0 auto auto;width:min(310px,calc(100vw - 24px));padding:8px;border:1px solid var(--ds-border,#cbd5e1);border-radius:14px;background:var(--ds-surface,#fff);box-shadow:0 12px 36px #132e4826;z-index:120}
.header-account:not([open]) .header-account-panel{display:none}
.header-account-identity{display:flex;align-items:center;gap:12px;padding:12px 10px 16px;margin-bottom:4px;border-bottom:1px solid var(--ds-border,#cbd5e1)}
.header-account-identity .header-account-avatar{width:44px;height:44px;flex-basis:44px;font-size:18px}
.header-account-identity>div{min-width:0}.header-account-identity strong,.header-account-identity div>span{display:block;overflow-wrap:anywhere;line-height:1.45}
.header-account-identity strong{font-size:15px}.header-account-identity div>span{font-size:12px;color:var(--ds-muted,#526375)}
.header-account-panel a,.header-account-panel button{display:flex;align-items:center;gap:10px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:inherit;text-decoration:none;font:500 14px/1.4 var(--ds-font,Arial,sans-serif);text-align:start}
.header-account-panel a:hover,.header-account-panel button:hover{background:var(--ds-surface-hover,#eef4f7)}
.header-account-panel form{margin:4px 0 0;padding-top:4px;border-top:1px solid var(--ds-border,#cbd5e1)}
.header-account :is(summary,a,button):focus-visible{outline:3px solid var(--ds-focus,#1b5bbd);outline-offset:2px}
@media(max-width:700px){.enterprise-shell .topbar.ds-header.has-account{grid-template-columns:34px minmax(0,1fr) auto auto}.header-account-label,.header-account-chevron{display:none}.header-account-trigger{padding:4px;min-width:44px;justify-content:center}}
@media screen{
 .enterprise-shell .topbar.ds-header.has-account{grid-template-columns:36px minmax(100px,1fr) minmax(0,180px) auto auto minmax(130px,180px) auto;grid-template-areas:'menu title activity alerts time search profile'}
 .enterprise-shell .topbar.ds-header.has-account .header-account{grid-area:profile;justify-self:end}
 .enterprise-shell .topbar.ds-header.ds-header-compact.has-account{grid-template-columns:36px minmax(100px,1fr) auto auto minmax(130px,180px) auto;grid-template-areas:'menu title alerts time search profile'}
 @media(max-width:1099px){.enterprise-shell .topbar.ds-header.has-account{grid-template-columns:36px minmax(100px,1fr) auto auto minmax(130px,180px) auto;grid-template-areas:'menu title alerts time search profile'}}
 @media(max-width:700px){.enterprise-shell .topbar.ds-header.has-account,.enterprise-shell .topbar.ds-header.ds-header-compact.has-account{grid-template-columns:36px minmax(0,1fr) auto 44px;grid-template-areas:'menu title alerts profile' 'time time search search';gap:8px}}
 @media(max-width:359px){.enterprise-shell .topbar.ds-header.has-account,.enterprise-shell .topbar.ds-header.ds-header-compact.has-account{grid-template-areas:'menu title alerts profile' 'time time time time' 'search search search search'}}
}

/* Shared compact activity navigation on signed-in pages. */
body.enterprise-shell .workspace-activity{flex:none;min-width:0;margin:0 0 14px}
body.enterprise-shell .workspace-activity .ds-kpi-grid{margin:0;gap:10px;grid-template-columns:repeat(5,minmax(0,1fr))}
body.enterprise-shell .workspace-activity .ds-kpi{height:104px;min-height:104px;padding:10px 12px;grid-template-columns:minmax(0,1fr) 28px;grid-template-rows:30px auto 1fr;gap:2px 6px;border-left-width:4px}
body.enterprise-shell .workspace-activity .ds-kpi .ds-kpi-count{font-size:28px;line-height:1.1}
body.enterprise-shell .workspace-activity .ds-kpi>strong{grid-column:1/-1;grid-row:2;min-height:0;margin:0;font-size:13px;line-height:1.3}
body.enterprise-shell .workspace-activity .ds-kpi>small{font-size:11px;line-height:1.3}
body.enterprise-shell .workspace-activity .ds-kpi-icon{width:28px;height:28px;grid-row:1}
body.enterprise-shell .workspace-activity .ds-kpi-icon img{width:16px;height:16px}
@media(max-width:1100px){body.enterprise-shell .workspace-activity .ds-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){body.enterprise-shell .workspace-activity .ds-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.enterprise-shell .workspace-activity .ds-kpi{height:112px;min-height:112px}body.enterprise-shell .workspace-activity .ds-kpi--dominant{grid-column:auto}}

/* VC office: existing shared shell and list with compact work-queue navigation. */
.vc-dashboard h1{font-size:22px;font-weight:700;margin:0 0 4px;color:var(--ds-text)}
.vc-work-queues{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 20px;padding:8px;background:var(--ds-surface);border:1px solid var(--ds-border);border-radius:10px}
.vc-work-queues a{display:flex;align-items:center;gap:8px;min-height:40px;padding:8px 12px;border-radius:7px;text-decoration:none;color:var(--ds-text);font-size:14px;font-weight:600}
.vc-work-queues a:hover{background:var(--ds-surface-hover)}.vc-work-queues a[aria-current=page]{background:var(--ds-brand);color:#fff}
.vc-work-queues a:focus-visible{outline:3px solid var(--ds-focus,#1b5bbd);outline-offset:2px}
.vc-sop-guide{margin:20px 0 0;padding:14px 16px;border:1px solid var(--ds-border);border-radius:10px;background:var(--ds-surface);font-size:14px;color:var(--ds-text)}
.vc-sop-guide summary{font-weight:600;cursor:pointer;min-height:24px}.vc-sop-guide li{margin:8px 0}.vc-sop-guide p{color:var(--ds-muted);font-size:13px}
@media(max-width:600px){.vc-work-queues a{flex:1 1 130px;justify-content:space-between}.vc-dashboard>.ds-section-bar{align-items:flex-start;flex-wrap:wrap}}
.vc-work-queues a[aria-current=page] .ds-count{background:#fff;color:var(--ds-brand);font-weight:700}

/* Note Sheet and SOP screens share the configured process overview. */
.note-process-overview{min-width:0;margin-bottom:16px;padding:14px 16px;border:1px solid var(--ds-border);border-radius:10px;background:var(--ds-surface);color:var(--ds-text)}
.note-process-overview .ds-section-bar{margin-bottom:12px;gap:12px;flex-wrap:wrap}
.note-process-overview h2{margin:0;font:600 16px/1.4 var(--ds-font)}
.note-process-overview .ds-section-bar>span{font-size:13px;color:var(--ds-muted)}
.note-process-stages{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px;list-style:none;padding:0;margin:0}
.note-process-stages>li{display:flex;align-items:flex-start;gap:8px;min-width:0;padding:10px;border:1px solid var(--ds-border);border-radius:8px;background:var(--ds-surface-subtle)}
.note-process-stages>li[aria-current=step]{border-color:var(--ds-accent);box-shadow:inset 3px 0 var(--ds-accent)}
.note-stage-number{display:grid;place-items:center;flex:none;width:24px;height:24px;border:1px solid var(--ds-border);border-radius:50%;font-size:12px;font-weight:600}
.note-process-stages li>div{min-width:0;overflow-wrap:anywhere}.note-process-stages strong{font-size:13px;line-height:1.4}
.note-process-stages li :is(small,div>span){display:block;margin-top:4px;font-size:12px;line-height:1.4;color:var(--ds-muted)}
.note-process-stages [aria-current=step] .note-stage-number{background:var(--ds-accent);border-color:var(--ds-accent);color:#fff}
.workflow-action-dialog{width:min(720px,calc(100vw - 32px));max-width:720px;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--ds-border);border-radius:14px;color:var(--ds-text);background:var(--ds-surface);box-shadow:0 24px 80px #092a3b40}
.workflow-action-dialog::backdrop{background:#102d3f66}
.workflow-action-dialog .ds-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--ds-border)}
.workflow-action-dialog .ds-dialog-header h2{margin:0;font:650 18px/1.4 var(--ds-font)}
.workflow-action-dialog[open]{display:flex;flex-direction:column}
.workflow-action-dialog .ds-dialog-header{flex:none;background:var(--ds-surface)}
.workflow-action-dialog .ds-dialog-body{padding:20px;overflow:auto;max-height:none;min-height:0;flex:1}
.workflow-action-dialog .workflow-popup-footer{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;flex:none;padding:12px 20px;border-top:1px solid var(--ds-border);background:var(--ds-surface)}
.workflow-action-dialog .workflow-popup-footer .btn,.workflow-action-dialog .ds-dialog-header .btn{min-height:44px}
.workflow-action-dialog form{margin:0!important;box-shadow:none!important}
.workflow-action-dialog textarea{min-height:120px}
.workflow-action-dialog .body-toolbar{flex-wrap:wrap}.workflow-action-dialog .body-editable{min-height:140px!important}
.workflow-action-dialog [hidden],form[data-workflow-popup][hidden],[data-workflow-popup-fields][hidden]{display:none!important}
.workflow-action-launchers{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.workflow-action-launchers .btn{min-height:44px}
.note-workspace{display:flex;flex-direction:column;gap:6px;min-width:0;min-height:0}
.note-workspace>:is(.note-navigation,.note-status-strip,.note-process-overview,.alert){flex:none}
.note-workspace>.alert{margin:0}
.note-navigation,.note-status-strip{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:8px 10px;border:1px solid var(--ds-border);border-radius:10px;background:var(--ds-surface);color:var(--ds-text)}
.note-tabs,.note-file-commands{display:flex;align-items:center;flex-wrap:wrap;gap:4px}
@media screen{
 .note-file-commands{min-width:0;gap:6px;position:relative}
 body.enterprise-shell .note-file-commands>.btn,body.enterprise-shell .note-file-commands>form>.btn,body.enterprise-shell .note-output-menu>summary{min-height:36px;padding:6px 10px;font-size:13px}
 .note-file-commands>form{margin:0!important;padding:0!important;border:0;box-shadow:none}
 .note-output-menu{position:static;flex:none}
 .note-output-menu>summary{display:inline-flex;align-items:center;gap:8px;list-style:none;cursor:pointer}
 .note-output-menu>summary::-webkit-details-marker{display:none}
 .note-output-menu>summary::after{content:'⌄';font-size:14px}
 .note-output-options{position:absolute;right:0;top:calc(100% + 6px);z-index:1100;display:grid;gap:4px;padding:8px;width:min(300px,85vw);max-height:55vh;overflow:auto;background:var(--ds-surface,#fff);border:1px solid var(--ds-border,#ccd7e5);border-radius:10px;box-shadow:0 8px 24px #17365d26}
 .note-output-menu:not([open])>.note-output-options{display:none}
 body.enterprise-shell .note-output-options>.btn{width:100%;justify-content:flex-start;white-space:normal;text-align:left;min-height:38px;font-size:13px}
 .note-reading-panel .note-linked-documents{margin-top:12px!important;padding:12px!important;gap:0}
 .note-linked-documents>h3{font-size:17px;line-height:1.4;margin:0 0 10px}
 .note-linked-documents>[data-notification-draft]{padding:10px!important;margin-bottom:10px!important;min-width:0;background:var(--ds-surface,#fff)}
 .note-linked-documents>[data-notification-draft]>summary{font-size:14px;line-height:1.5;overflow-wrap:anywhere;cursor:pointer}
 .note-linked-document-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px;margin:6px 0 0;padding-bottom:5px;border-bottom:1px solid var(--ds-border,#ccd7e5)}
 .note-linked-document-tools>form{display:inline-flex!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:transparent}
 body.enterprise-shell .note-linked-document-tools .btn{min-height:34px;padding:6px 10px;font-size:13px}
 .note-linked-documents iframe{display:block;max-width:100%}
}
.note-tabs :is(button,a){display:inline-flex;align-items:center;min-height:40px;padding:8px 10px;background:transparent;border:0;border-bottom:3px solid transparent;border-radius:4px;color:var(--ds-text);font:500 14px/1.4 var(--ds-font);text-decoration:none}
.note-tabs button[aria-selected=true]{border-bottom-color:var(--ds-accent);background:var(--ds-surface-hover);font-weight:650}
.note-tabs :is(a,button):focus-visible{outline:3px solid var(--ds-focus);outline-offset:1px}
.note-status-strip{justify-content:flex-start;font-size:13px;gap:16px}.note-status-strip>span:last-child{margin-left:auto;overflow-wrap:anywhere}
.note-workspace>.note-process-overview{margin:0}
.note-workspace-columns{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:12px;min-width:0;min-height:0;align-items:start}
.note-workspace-columns>[hidden]{display:none!important}
.note-reading-panel,.note-support-panel{grid-column:1;grid-row:1;min-width:0;border:1px solid var(--ds-border);border-radius:10px;background:var(--ds-surface-subtle);padding:12px;overflow:auto}
.note-reading-panel #printArea{max-width:960px;margin:0 auto;border-radius:0}
.note-action-panel{grid-column:2;grid-row:1;border:1px solid var(--ds-border);border-radius:10px;background:var(--ds-surface);color:var(--ds-text);min-width:0;overflow:auto}
.note-action-panel>header{padding:14px;border-bottom:1px solid var(--ds-border)}
.note-action-panel h2{font:650 16px/1.4 var(--ds-font);margin:0 0 6px}.note-action-panel header p{font-size:13px;margin:0;color:var(--ds-muted)}
.note-action-controls{padding:14px;display:flex;flex-direction:column;gap:8px}.note-action-controls .workflow-action-launchers{display:flex;flex-direction:column;margin:0}
.note-action-controls :is(.btn,form){width:100%}.note-action-controls .btn{min-height:44px;white-space:normal}
.note-action-controls [data-workflow-action=Approve]{order:-1}
.note-file-details{padding:14px;border-top:1px solid var(--ds-border);font-size:13px}.note-file-details summary{cursor:pointer;font-weight:600;min-height:32px}
.note-file-details .card{padding:8px 0!important;border:0;box-shadow:none;background:transparent}
@media screen and (min-width:1100px){
 body.enterprise-shell:has(.note-workspace){height:100dvh;overflow:hidden}
 body.enterprise-shell:has(.note-workspace) .app-shell{height:100dvh;min-height:0}
 body.enterprise-shell:has(.note-workspace) .main-area{height:100%;min-height:0}
 body.enterprise-shell:has(.note-workspace) .topbar.ds-header{min-height:72px;padding-block:8px}
 body.enterprise-shell:has(.note-workspace) .main-content.ds-content{padding:6px 12px!important;overflow:hidden;min-height:0}
 .note-workspace{height:100%;flex:1}.note-workspace-columns{height:auto;flex:1;align-items:stretch}
 .note-workspace-columns>:is(.note-reading-panel,.note-support-panel,.note-action-panel){height:100%;min-height:0}
}
@media screen and (max-width:1099px){.note-workspace-columns{display:flex;flex-direction:column}.note-workspace-columns>section,.note-action-panel{width:100%}.note-action-panel{overflow:visible}.note-file-commands .btn{min-height:40px}.note-status-strip>span:last-child{margin-left:0}}
@media print{.note-workspace,.note-workspace-columns,.note-reading-panel{display:block!important;height:auto!important;overflow:visible!important;padding:0!important;border:0!important}.note-support-panel,.note-action-panel{display:none!important}}
@media print{.note-workspace-columns>.note-reading-panel[hidden]{display:block!important}}
@media screen and (min-width:1100px){
 body.enterprise-shell .note-document-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:16px;margin:0;align-items:start}
 body.enterprise-shell .note-document-layout>.col-12{grid-column:1/-1;padding:0;margin:0!important}
 body.enterprise-shell .note-document-layout>:is(.note-document-reader,.note-document-actions){width:auto;max-width:100%;min-width:0;padding:0}
 body.enterprise-shell .note-document-layout>.note-document-actions{position:sticky;top:12px}
}
@media screen and (max-width:1099px){
 body.enterprise-shell .note-document-layout>:is(.note-document-reader,.note-document-actions){width:100%;max-width:100%;flex:0 0 100%}
 body.enterprise-shell .note-document-actions{margin-top:16px}
}
.staff-work-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;min-width:0}
.staff-work-controls>.alert{flex-basis:100%;margin:0}
.letter-approval-panel .staff-work-controls{padding:12px;border-bottom:1px solid var(--ds-border,#d5dfeb)}
.letter-approval-panel .staff-work-controls>a,.note-action-controls .staff-work-controls>a{width:100%;justify-content:center}

/* Action dialogs share a reading-width editor, independent of sidebar controls. */
body.enterprise-shell dialog:is(.workflow-action-dialog,.ds-forward-dialog,.ds-reassign-dialog){width:min(880px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 32px);box-sizing:border-box;overflow:hidden}
body.enterprise-shell dialog.workflow-action-dialog[open]{display:flex;flex-direction:column}
body.enterprise-shell dialog:is(.workflow-action-dialog,.ds-forward-dialog,.ds-reassign-dialog) .ds-dialog-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;flex:none;padding:18px 24px}
body.enterprise-shell dialog:is(.workflow-action-dialog,.ds-forward-dialog,.ds-reassign-dialog) .ds-dialog-header h2{width:auto;min-width:0;margin:0;font:650 21px/1.35 var(--ds-font);overflow-wrap:normal;word-break:normal}
body.enterprise-shell dialog:is(.workflow-action-dialog,.ds-forward-dialog,.ds-reassign-dialog) :is(.ds-dialog-header,.ds-dialog-footer) .btn{width:auto!important;flex:0 0 auto;min-height:44px;min-width:90px;white-space:normal}
body.enterprise-shell dialog.workflow-action-dialog .ds-dialog-body{min-width:0;min-height:0;padding:20px 24px;overflow-y:auto;overflow-x:hidden}
body.enterprise-shell dialog.workflow-action-dialog :is(form,.workflow-loaded-form,[data-workflow-popup-fields],.body-editor){min-width:0;max-width:100%;box-sizing:border-box}
body.enterprise-shell dialog.workflow-action-dialog :is(input:not([type=checkbox]):not([type=radio]),textarea,select){max-width:100%;box-sizing:border-box}
body.enterprise-shell dialog.workflow-action-dialog .body-toolbar{display:flex;flex-wrap:wrap;gap:6px;max-width:100%;height:auto}
body.enterprise-shell dialog.workflow-action-dialog .body-tool-group{flex-wrap:wrap;min-width:0;max-width:100%}
body.enterprise-shell dialog.workflow-action-dialog .body-editable{min-height:220px!important;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere;line-height:1.65}
body.enterprise-shell dialog.workflow-action-dialog .workflow-popup-footer{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:14px 24px}
body.enterprise-shell dialog.workflow-action-dialog.note-sheet-form-dialog{width:min(1440px,calc(100vw - 32px));height:calc(100dvh - 40px);max-height:calc(100dvh - 40px)}
body.enterprise-shell dialog.note-sheet-form-dialog .ds-dialog-body{flex:1 1 auto}
body.enterprise-shell dialog.note-sheet-form-dialog .workflow-loaded-form>.card{width:100%;max-width:none!important;margin:0;padding:16px!important}
@media(max-width:600px){body.enterprise-shell dialog.workflow-action-dialog.note-sheet-form-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);height:calc(100dvh - 20px);max-height:calc(100dvh - 20px)}}
@media(max-width:600px){body.enterprise-shell dialog.workflow-action-dialog .ds-dialog-header,body.enterprise-shell dialog.workflow-action-dialog .ds-dialog-body,body.enterprise-shell dialog.workflow-action-dialog .workflow-popup-footer{padding:14px}body.enterprise-shell dialog.workflow-action-dialog .body-editable{min-height:180px!important}}

body.enterprise-shell .workflow-action-dialog #officer-comment-count{display:none!important}
body.enterprise-shell .workflow-action-dialog .workflow-popup-footer .btn-outline-warning{color:#754800;background:#fff8e8;border-color:#c89b3c}

/* Shared list controls retain the same styling when selector-list functions are unavailable. */
.ds-list-toolbar .ds-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 12px;border-radius:8px;font:500 13px/1.4 var(--ds-font);white-space:nowrap}
.ds-list-toolbar .ds-button--tertiary{background:transparent;border:1px solid transparent;color:var(--ds-brand);text-decoration:none}

/* High-contrast selection states. Screen controls only; official print is unchanged. */
@media screen {
body.enterprise-shell input[type=checkbox]:not(:where(#printArea *, .document-reading-page *, .word-document-preview *)),
body.enterprise-shell input[type=radio]:not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){
    -webkit-appearance:none;appearance:none;display:inline-block;flex-shrink:0;
    width:22px;height:22px;min-width:22px;min-height:22px;padding:0;
    vertical-align:middle;margin-top:.15em;margin-right:.4em;
    border:2px solid #52657d;border-radius:5px;background-color:#fff;background-image:none;
    background-repeat:no-repeat;background-position:center;background-size:18px 18px;
    opacity:1;filter:none;cursor:pointer;box-shadow:none;
}
body.enterprise-shell input[type=radio]:not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){border-radius:50%}
body.enterprise-shell input[type=checkbox]:checked:not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){
    background-color:#123f80;border-color:#123f80;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
body.enterprise-shell input[type=radio]:checked:not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){
    background-color:#123f80;border-color:#123f80;
    background-image:radial-gradient(circle,#fff 0 4px,transparent 4.5px);
}
body.enterprise-shell input[type=checkbox]:indeterminate:not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){
    background-color:#123f80;border-color:#123f80;
    background-image:linear-gradient(#fff,#fff);background-size:12px 3px;
}
body.enterprise-shell .form-switch{padding-left:3.8em;min-height:30px}
body.enterprise-shell .form-switch input[type=checkbox]{
    width:52px;height:28px;min-width:52px;min-height:28px;margin-left:-3.8em;margin-top:0;
    border-radius:20px;border-color:#475569;background-color:#475569;
    background-image:radial-gradient(circle,#fff 0 8px,transparent 8.5px);
    background-size:22px 22px;background-position:1px center;
}
body.enterprise-shell .form-switch input[type=checkbox]:checked{
    border-color:#0c6547;background-color:#0c6547;
    background-image:radial-gradient(circle,#fff 0 8px,transparent 8.5px);
    background-size:22px 22px;background-position:calc(100% - 1px) center;
}
body.enterprise-shell .form-switch .form-check-label{color:#102d55;opacity:1;line-height:1.7}
body.enterprise-shell .form-switch input[type=checkbox] + .form-check-label::after{
    content:'OFF';display:inline-block;margin-left:12px;padding:1px 8px;border:1px solid #475569;
    border-radius:4px;background:#475569;color:#fff;font-size:12px;line-height:1.6;font-weight:800;vertical-align:middle;
}
body.enterprise-shell .form-switch input[type=checkbox]:checked + .form-check-label::after{content:'ON';background:#0c6547;border-color:#0c6547}
body.enterprise-shell input[type=checkbox]:disabled:not(:where(#printArea *, .document-reading-page *, .word-document-preview *)),
body.enterprise-shell input[type=radio]:disabled:not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){
    background-color:#e2e8f0;border-color:#64748b;opacity:1;cursor:not-allowed;
}
body.enterprise-shell input[type=checkbox]:checked:disabled:not(:where(#printArea *, .document-reading-page *, .word-document-preview *)),
body.enterprise-shell input[type=radio]:checked:disabled:not(:where(#printArea *, .document-reading-page *, .word-document-preview *)){background-color:#64748b}
body.enterprise-shell .form-switch input[type=checkbox]:disabled{border-color:#64748b;background-color:#e2e8f0}
body.enterprise-shell .form-switch input[type=checkbox]:checked:disabled{background-color:#64748b}
body.enterprise-shell .form-check-input:disabled ~ .form-check-label{opacity:1;color:#475569}
body.enterprise-shell .form-switch input[type=checkbox]:disabled + .form-check-label::after{border-color:#64748b;background:#e2e8f0;color:#334155}
body.enterprise-shell input[type=checkbox]:focus-visible,body.enterprise-shell input[type=radio]:focus-visible{outline:3px solid #b45309;outline-offset:3px;box-shadow:none}
body.enterprise-shell .ds-content .nav-tabs,body.enterprise-shell .ds-tabs,body.enterprise-shell .ds-content .nav-pills{gap:8px;padding-bottom:8px}
body.enterprise-shell .ds-content .nav-tabs .nav-link,
body.enterprise-shell .ds-tabs .ds-tab,
body.enterprise-shell .ds-content .nav-pills .nav-link{
    padding:8px 14px;border:1px solid #718e97;border-radius:7px;background:#fff;color:#12343f;font-weight:600;
}
body.enterprise-shell .ds-document-tabs>button,
body.enterprise-shell .note-tabs :is(button,a),
body.enterprise-shell .ds-action-tabs button,
body.enterprise-shell .vc-work-queues a{background:#fff;color:#12343f}
body.enterprise-shell .ds-content .nav-tabs .nav-link.active,
body.enterprise-shell .ds-content .nav-tabs .nav-link[aria-current=page],
body.enterprise-shell .ds-content .nav-tabs .nav-link[aria-selected=true],
body.enterprise-shell .ds-tabs .ds-tab[aria-current=page],
body.enterprise-shell .ds-tabs .ds-tab[aria-selected=true],
body.enterprise-shell .ds-tabs .ds-tab.active,
body.enterprise-shell .ds-content .nav-pills .nav-link.active,
body.enterprise-shell .ds-content .nav-pills .nav-link[aria-current=page],
body.enterprise-shell .ds-content .nav-pills .nav-link[aria-selected=true],
body.enterprise-shell .ds-document-tabs>button[aria-selected=true],
body.enterprise-shell .note-tabs button[aria-selected=true],
body.enterprise-shell .ds-action-tabs button[aria-selected=true],
body.enterprise-shell .vc-work-queues a[aria-current=page]{
    background:#1b5361;border-color:#1b5361;color:#fff;font-weight:700;box-shadow:inset 0 -6px 0 #d4a72c;
}
body.enterprise-shell .body-tool-button[aria-pressed=true],
body.enterprise-shell .btn-check:checked + .btn{
    background:#123f80;border-color:#123f80;color:#fff;font-weight:700;box-shadow:inset 0 -3px 0 #e7bc59;
}
body.enterprise-shell .ds-content .nav-tabs .nav-link:not(.active):not([aria-current=page]):not([aria-selected=true]):hover,
body.enterprise-shell .ds-content .nav-pills .nav-link:not(.active):not([aria-current=page]):not([aria-selected=true]):hover,
body.enterprise-shell .ds-tabs .ds-tab:not(.active):not([aria-selected=true]):not([aria-current=page]):hover,
body.enterprise-shell .ds-document-tabs>button:not([aria-selected=true]):hover,
body.enterprise-shell .note-tabs :is(button,a):not([aria-selected=true]):hover,
body.enterprise-shell .ds-action-tabs button:not([aria-selected=true]):hover,
body.enterprise-shell .vc-work-queues a:not([aria-current=page]):hover{background:#e4f0f2;border-color:#1b5361;color:#12343f}
body.enterprise-shell :is(.ds-document-tabs,.ds-action-tabs,.note-tabs) [aria-selected=true] .ui-icon{filter:brightness(0) invert(1)}
body.enterprise-shell :is(.ds-tabs,.nav-tabs,.nav-pills,.ds-document-tabs,.note-tabs,.vc-work-queues) :is([aria-selected=true],[aria-current=page],.active) .ds-count{background:#fff;color:#1b5361}
body.enterprise-shell .ds-content select option:checked{background:#123f80;color:#fff}
body.enterprise-shell .ds-content .form-control:disabled,body.enterprise-shell .ds-content .form-select:disabled{opacity:1;background:#e2e8f0;border-color:#94a3b8;color:#475569}
body.enterprise-shell .ds-content .btn:disabled,
body.enterprise-shell .ds-content .ds-button:disabled,
body.enterprise-shell .ds-content .btn[aria-disabled=true],
body.enterprise-shell .ds-content .ds-button[aria-disabled=true]{
    opacity:1;background:#e2e8f0;border-color:#94a3b8;color:#475569;box-shadow:none;cursor:not-allowed;
}
@media(forced-colors:active){
    body.enterprise-shell input[type=checkbox],body.enterprise-shell input[type=radio]{appearance:auto;forced-color-adjust:auto}
}
}

/* Six equal dashboard cards, including personal drafts. */
body.enterprise-shell .workspace-activity .ds-kpi-grid:has([data-dashboard-card="drafts"]){grid-template-columns:repeat(6,minmax(0,1fr))}
body.enterprise-shell .workspace-activity .ds-kpi--drafts{--kpi-ink:#164e63;--kpi-tint:#e0f2f5;--kpi-edge:#0e7490}
:root[data-ds-theme=dark] body.enterprise-shell .workspace-activity .ds-kpi--drafts{--kpi-ink:#b6edf5;--kpi-tint:#14333b;--kpi-edge:#58b6c9}
@media(max-width:1200px){body.enterprise-shell .workspace-activity .ds-kpi-grid:has([data-dashboard-card="drafts"]){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){body.enterprise-shell .workspace-activity .ds-kpi-grid:has([data-dashboard-card="drafts"]){grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:450px){body.enterprise-shell .workspace-activity .ds-kpi-grid:has([data-dashboard-card="drafts"]){grid-template-columns:minmax(0,1fr)}}

/* Clear daily navigation and compact dashboard presentation. */
body.enterprise-shell .sidebar-nav[aria-label]{padding-bottom:6px}
body.enterprise-shell .sidebar-nav[aria-label] .sidebar-link{min-height:40px;padding-block:8px}
body.enterprise-shell .ds-header .topbar-welcome .ds-officer-identity{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.35;margin-top:3px}
body.enterprise-shell .ds-dashboard #office-queue .ds-list [data-ds-list-empty]{margin:0;padding:18px 20px}
@media(max-width:700px){body.enterprise-shell .ds-header .topbar-welcome .ds-officer-identity{display:block;font-size:12px}}

/* Use the available content width for activity cards and avoid an empty header column. */
body.enterprise-shell .workspace-activity{container-type:inline-size}
@container(max-width:1100px){body.enterprise-shell .workspace-activity .ds-kpi-grid:has([data-dashboard-card="drafts"]){grid-template-columns:repeat(3,minmax(0,1fr))}}
@container(max-width:600px){body.enterprise-shell .workspace-activity .ds-kpi-grid:has([data-dashboard-card="drafts"]){grid-template-columns:repeat(2,minmax(0,1fr))}}
@container(max-width:350px){body.enterprise-shell .workspace-activity .ds-kpi-grid:has([data-dashboard-card="drafts"]){grid-template-columns:minmax(0,1fr)}}
@media(min-width:1201px){body.enterprise-shell .topbar.ds-header.has-account:not(:has(.ds-activity-slot>*)){grid-template-columns:36px minmax(180px,1fr) auto auto minmax(140px,210px) auto;grid-template-areas:'menu title alerts time search profile'}}
body.enterprise-shell .ds-header .topbar-welcome strong{white-space:normal;text-overflow:clip;line-height:1.3}
@media(min-width:701px) and (max-width:1200px){body.enterprise-shell .topbar.ds-header.has-account,body.enterprise-shell .topbar.ds-header.ds-header-compact.has-account{grid-template-columns:36px minmax(0,1fr) auto auto;grid-template-areas:'menu title alerts profile' 'time time search search';gap:10px}body.enterprise-shell .ds-header .ds-activity-slot{display:none}}

/* Shared activity cards: readable type, flexible height and no clipped labels. */
body.enterprise-shell .workspace-activity .ds-kpi{height:auto;min-height:142px;padding:clamp(12px,1.4cqi,18px);grid-template-rows:auto auto 1fr;gap:7px 8px;min-width:0;box-shadow:inset 6px 0 0 var(--kpi-edge),var(--ds-shadow-1)}
body.enterprise-shell .workspace-activity .ds-kpi:hover{box-shadow:inset 6px 0 0 var(--kpi-edge),var(--ds-shadow-2)}
/* Larger correspondence tabs, matching the sidebar's teal-and-gold selection. */
body.enterprise-shell .ds-content .correspondence-folder-tabs{gap:10px!important;flex-wrap:wrap}
body.enterprise-shell .ds-content .correspondence-folder-tabs .nav-link{min-height:56px;padding:14px 24px;font-size:16px;font-weight:600;line-height:1.5;border-radius:10px;background:#fff;color:#12343f;border:1px solid #718e97;display:inline-flex;align-items:center;justify-content:center}
body.enterprise-shell .ds-content .correspondence-folder-tabs .nav-link.active{background:#1b5361;color:#fff;border-color:#1b5361;box-shadow:inset 0 -6px 0 #d4a72c}
body.enterprise-shell .ds-content .correspondence-folder-tabs .nav-link:not(.active):hover{background:#e4f0f2;color:#12343f;border-color:#1b5361}
@media(max-width:600px){body.enterprise-shell .ds-content .correspondence-folder-tabs .nav-link{min-height:48px;padding:10px 16px;font-size:15px}}
body.enterprise-shell .workspace-activity .ds-kpi .ds-kpi-count{font-size:clamp(28px,2.8cqi,36px);line-height:1.1}
body.enterprise-shell .workspace-activity .ds-kpi>strong{font-size:clamp(14px,1.1cqi,16px);line-height:1.35;min-height:2.7em;white-space:normal;overflow-wrap:break-word}
body.enterprise-shell .workspace-activity .ds-kpi>small{font-size:clamp(12px,1cqi,14px);line-height:1.4;align-self:end;overflow-wrap:break-word}
body.enterprise-shell .workspace-activity .ds-kpi-icon{width:32px;height:32px;grid-row:1}
body.enterprise-shell .workspace-activity .ds-kpi-icon img{width:18px;height:18px}
/* Compact top search button; the existing authorized search runs in a native modal. */
body.enterprise-shell .topbar-search-trigger{grid-area:search;justify-self:end;display:grid;place-items:center;width:44px;min-width:44px;height:44px;padding:10px}
body.enterprise-shell .topbar-search-trigger .ui-icon{width:20px;height:20px}
body.enterprise-shell .topbar.ds-header.has-account:has(.topbar-search-trigger):not(:has(.ds-activity-slot>*)),body.enterprise-shell .topbar.ds-header.ds-header-compact.has-account:has(.topbar-search-trigger){grid-template-columns:36px minmax(160px,1fr) auto auto 44px auto;grid-template-areas:'menu title alerts time search profile'}
.workspace-search-dialog{box-sizing:border-box;width:min(680px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);margin:auto;padding:24px;border:1px solid var(--ds-border,#cbd5e1);border-radius:16px;color:var(--ds-text,#173447);background:var(--ds-surface,#fff);box-shadow:0 24px 80px #102a4333;overflow:auto}
.workspace-search-dialog::backdrop{background:#102a4380}
.workspace-search-heading{display:flex;align-items:flex-start;gap:16px;justify-content:space-between;margin-bottom:20px}
.workspace-search-heading h2{margin:0 0 6px;font-size:22px;font-weight:700;line-height:1.25}
.workspace-search-heading p,.workspace-search-tip{font-size:13px;line-height:1.5;color:var(--ds-secondary,#475569);margin:0}
.workspace-search-close{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;padding:0;border:1px solid var(--ds-border,#cbd5e1);border-radius:8px;background:var(--ds-surface,#fff);color:var(--ds-text,#173447);font-size:28px;line-height:1;cursor:pointer}
.workspace-search-close:hover{background:var(--ds-surface-hover,#eef4f7)}
.workspace-search-dialog :is(button,a,input):focus-visible{outline:3px solid var(--ds-focus,#1b5bbd);outline-offset:2px}
.workspace-search-fields{display:flex;align-items:stretch;gap:8px}
.workspace-search-fields input{min-width:0;flex:1;min-height:46px;font-size:16px}
.workspace-search-fields button{min-height:46px;flex-shrink:0}
.workspace-search-tip{margin-top:10px}
.workspace-search-dialog .live-search-dropdown{position:static;width:100%;max-width:none;max-height:52dvh;overflow:auto;margin-top:16px;padding:8px;border:1px solid var(--ds-border,#cbd5e1);border-radius:10px;background:var(--ds-surface,#fff);box-shadow:none}
.workspace-search-dialog .live-search-item{color:var(--ds-text,#173447)}
.workspace-search-dialog .live-search-item span,.workspace-search-dialog .live-search-group-title{color:var(--ds-secondary,#475569)}
@media(max-width:700px){body.enterprise-shell .topbar.ds-header.has-account:has(.topbar-search-trigger):not(:has(.ds-activity-slot>*)),body.enterprise-shell .topbar.ds-header.ds-header-compact.has-account:has(.topbar-search-trigger){grid-template-columns:36px minmax(0,1fr) 44px 44px;grid-template-areas:'menu title search profile' 'time time alerts alerts';gap:8px}.workspace-search-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px);padding:18px;max-height:calc(100dvh - 24px)}.workspace-search-heading h2{font-size:20px}}

@media(min-width:701px) and (max-width:1100px){body.enterprise-shell .topbar.ds-header.has-account:has(.topbar-search-trigger):not(:has(.ds-activity-slot>*)),body.enterprise-shell .topbar.ds-header.ds-header-compact.has-account:has(.topbar-search-trigger){grid-template-columns:36px minmax(0,1fr) 44px 44px;grid-template-areas:'menu title search profile' 'time time alerts alerts';gap:8px}}
@media(max-width:450px){body.enterprise-shell .ds-header .workspace-clock .clock-face{display:none}body.enterprise-shell .ds-header .workspace-clock .clock-date{font-size:11px}body.enterprise-shell .ds-header .workspace-clock .clock-time{font-size:14px}}

/* Keep modal geometry and the typing position steady while suggestions update. */
.workspace-search-dialog .live-search-dropdown{height:clamp(140px,36dvh,320px);max-height:none;min-height:0;scrollbar-gutter:stable;overflow-anchor:none}
.workspace-search-dialog .live-search-dropdown[hidden]{display:block!important;visibility:hidden}
.workspace-search-dialog{scrollbar-gutter:stable}

/* Account menu: clear identity, account shortcuts and a distinct sign-out action. */
.header-account-panel{max-height:calc(100dvh - 120px);overflow:auto;overscroll-behavior:contain}
.header-account-panel a>span{min-width:0}.header-account-panel a strong{display:block;font-size:14px;font-weight:600}.header-account-panel a small{display:block;font-size:12px;line-height:1.4;color:var(--ds-secondary,#475569);margin-top:2px}
.header-account-identity .header-account-email{font-size:12px;overflow-wrap:anywhere}
.header-account-panel form button{color:var(--ds-danger,#a52730)}

/* Keep signed-in names readable without crowding the header. */
.header-account-label{min-width:0;max-width:180px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.authenticator-qr-panel{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px;margin:18px 0;border:1px solid var(--ds-border,#cbd5e1);border-radius:12px;background:var(--ds-surface,#fff);text-align:center}
.authenticator-setup-qr{display:block;width:280px;max-width:100%;height:auto;aspect-ratio:1;background:#fff;border:1px solid #cbd5e1;image-rendering:pixelated}
.authenticator-qr-panel p{margin:0;font-size:14px;overflow-wrap:anywhere;max-width:100%}
.authenticator-manual-key{padding:14px;border:1px solid var(--ds-border,#cbd5e1);border-radius:10px}.authenticator-manual-key summary{cursor:pointer;font-weight:600}.authenticator-manual-key summary:focus-visible{outline:3px solid var(--ds-focus,#1b5bbd);outline-offset:3px}
/* Attachment pages follow the main document without changing its print layout. */
.document-attachment-pages{width:100%;min-width:0;margin:24px auto;color:#12343f}
.document-attachment-pages>h3{font-size:18px;font-weight:700;margin:0 0 12px}
.document-attachment-page{margin:0 0 20px;border:1px solid #cbd5e1;border-radius:10px;background:#fff;overflow:hidden;box-shadow:0 2px 10px #102a3308}
.document-attachment-page>header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;padding:12px 14px;background:#f0f6f7;border-bottom:1px solid #cbd5e1}
.document-attachment-page>header strong{min-width:0;overflow-wrap:anywhere;font-size:14px}
.document-attachment-page [data-attachment-content]{width:100%;min-width:0;background:#fff}
.document-attachment-page [data-attachment-content]>p{padding:16px}
.document-attachment-pdf-page{width:100%;background:white;border-bottom:1px solid #dce5e8;overflow:hidden}
.document-attachment-pdf-page canvas,.document-attachment-page .ds-doc-image{display:block;max-width:100%;width:100%!important;height:auto!important}
.document-attachment-page iframe{display:block;width:100%;height:750px;border:0;background:white}
.note-reading-panel>.document-attachment-pages{max-width:850px}
@media(max-width:600px){.document-attachment-page iframe{height:65dvh}.document-attachment-page>header{padding:10px}}
.dd-viewer>.document-attachment-pages{max-width:794px}
/* Keep every PDF edge reachable, including on narrow screens and at higher zoom. */
.ds-doc-shell{grid-template-columns:minmax(0,1fr)}
.ds-doc-header,.ds-doc-tools,.ds-doc-footer{min-width:0}
.ds-doc-footer{flex-wrap:wrap}
/* Error details must remain readable instead of truncating the actual failure. */
.ds-toast-host:has(.ds-feedback[data-state=error]){width:min(480px,calc(100vw - 32px))}
.office-progress.ds-feedback[data-state=error]{max-width:100%;flex-wrap:wrap}
.office-progress.ds-feedback[data-state=error] .ds-feedback-message{display:block;flex:1 1 220px;max-height:40vh;overflow-y:auto;overflow-x:hidden}
.office-progress.ds-feedback[data-state=error] .ds-feedback-label{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}

/* Note composition: scoped layout only; shared document and watermark styles are retained. */
.note-compose-card{width:100%;max-width:1180px;min-width:0;padding:18px;margin-inline:auto}
.note-compose-form{min-width:0}
.note-compose-basics{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:10px 20px;align-items:start;border-bottom:1px solid #d5dfeb;margin-bottom:12px;padding-bottom:0}
.note-compose-basics>*{min-width:0}
/* When this office has no visible folder picker, do not leave an empty grid column. */
.note-compose-basics:not(:has(> [data-folder-picker])){grid-template-columns:minmax(0,1fr)}
.note-compose-basics>.alert{grid-column:1/-1}
.note-compose-card .form-label{margin-bottom:5px;line-height:1.3}
.note-compose-card .form-control,.note-compose-card .form-select{min-width:0;max-width:100%}
.note-compose-card .subject-suggestions-status{min-height:1.4em;margin-bottom:0}
.note-compose-options{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:12px;align-items:start;margin-bottom:12px}
.note-compose-options>section{min-width:0;background:#f8fafc}
.note-compose-card [data-dfa-upload-panel] p{margin-bottom:10px}
.note-compose-card [data-dfa-selection-list]:empty,.note-compose-card [data-approval-note-status]:empty{display:none}
.note-compose-card [data-dfa-selection-list] li{overflow-wrap:anywhere;margin-block:6px}
.note-compose-card [data-dfa-upload-panel] .btn{white-space:normal}
.note-compose-actions{flex-wrap:wrap;border-top:1px solid #d5dfeb;padding-top:12px;margin-top:12px}
.note-compose-card .form-check{padding-block:2px}
@media(max-width:900px){.note-compose-basics,.note-compose-options{grid-template-columns:minmax(0,1fr);gap:8px}.note-compose-card{padding:16px}.note-compose-actions>.btn{flex:1 1 150px}}
@media(max-width:480px){.note-compose-card{padding:12px}.note-compose-card input[type=file]{font-size:13px}.note-compose-card [data-dfa-upload-panel]{padding:12px!important}}

/* Compact spacing within Note Sheet composition only. */
.note-compose-form>.mb-3,.note-compose-basics>.mb-3{margin-bottom:12px!important}
.note-compose-basics .form-check.mb-3{margin-bottom:8px!important}
.note-compose-card .form-control,.note-compose-card .form-select{min-height:40px;padding-block:7px}
.note-compose-card [data-folder-picker]>.position-relative.mb-2{margin-bottom:6px!important}
.note-compose-options>section{margin-bottom:0!important;padding:10px 12px!important;min-height:62px}
.note-compose-options [data-dfa-upload-panel]{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.note-compose-options [data-dfa-upload-panel]>details{min-width:0;margin-top:0!important}
.note-compose-options [data-dfa-upload-panel]>details[open]{flex-basis:100%}
.note-compose-options .note-unified-files{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.note-compose-options:has(>.note-unified-files){grid-template-columns:minmax(0,1fr)}
.note-compose-flags{display:flex;flex-wrap:wrap;gap:8px 20px;margin-bottom:8px}
.note-compose-flags .form-check{margin-bottom:0}
.note-unified-files:not(:has(li)) [data-note-source-panel]{display:none}
.note-unified-files .note-file-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.note-unified-files .note-file-actions[hidden]{display:none!important}
.note-unified-files .note-file-actions .btn{min-height:36px;padding:6px 10px;font-size:13px}
.note-compose-card .note-unified-files p{margin-block:4px 0;font-size:12px;line-height:1.4}
.note-unified-files [data-note-source-panel]:not(:has(li)):not(:has([data-prepare-approval-note])){display:none}
.note-unified-files .note-prepared-files:not(:has(li)){display:none}
.note-unified-files [data-note-file-status]:empty{display:none}
.note-unified-files :is([data-dfa-selection-list],[data-source-selection-list]) li{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-block:4px}
.note-unified-files :is([data-dfa-selection-list],[data-source-selection-list]) li>span{min-width:0;overflow-wrap:anywhere}
.note-unified-files :is([data-dfa-selection-list],[data-source-selection-list]) .btn{flex-shrink:0;min-height:32px;padding:4px 8px}
@media(min-width:641px){
 .note-compose-options .note-unified-files{grid-template-columns:minmax(0,1fr) auto;column-gap:12px}
 .note-unified-files>.note-file-choice{grid-column:1;grid-row:1;min-width:0}
 .note-unified-files>.note-add-document:not([open]){grid-column:2;grid-row:1;align-self:start;padding-top:23px}
 .note-unified-files>.note-add-document:not([open])>summary{white-space:nowrap}
 .note-unified-files>:is([data-note-source-panel],.note-prepared-files,.note-prepare-all-files,.note-add-document[open]){grid-column:1/-1}
}
.note-compose-options [data-dfa-upload-panel]>details>div.mt-3{margin-top:10px!important}
.note-compose-options [data-dfa-upload-panel] summary.btn{min-height:38px;padding:7px 12px}
.note-compose-options>section:not([data-dfa-upload-panel]){display:flex;align-items:center}
.note-compose-options>section:not([data-dfa-upload-panel])>.form-check{display:flex;align-items:center;gap:8px;margin-bottom:0!important;padding-block:0;line-height:1.3}
.note-compose-options>section:not([data-dfa-upload-panel]) .form-check-input{flex:none;margin-top:0}
.note-compose-card .sun-editor+small{margin-bottom:6px!important}
.note-compose-card .office-editor-layout{margin-top:6px!important;margin-bottom:10px!important}
@media(max-width:600px){.note-compose-card .form-control,.note-compose-card .form-select{min-height:44px}.note-compose-options{gap:8px}}

/* HTML readers use the screen stamp; printing uses the paper stamp instead. */
@media screen{.dd-page-frame:has(>.screen-watermarks) .paper-watermark{display:none!important}}

/* Letter composition shares Note Sheet spacing, while keeping its own fields and workflow. */
.letter-compose-form>.row{--bs-gutter-y:12px}
.letter-compose-subject{padding-bottom:12px}
.letter-compose-subject>.col-12+.col-12{margin-top:10px}
.letter-compose-uploads{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px;margin-bottom:12px;align-items:start}
.letter-compose-uploads>[data-letter-file-picker]{grid-column:1/-1}
[data-letter-file-picker] .draft-import-actions[hidden]{display:none!important}
.letter-compose-uploads>[data-letter-draft-import]{padding:12px!important;margin-bottom:0!important;background:#f8fafc}
.letter-compose-uploads>.mb-3{margin-bottom:0!important;padding:12px;border:1px solid #d5dfeb;border-radius:6px}
.letter-compose-uploads .form-text{margin-top:6px;margin-bottom:0;line-height:1.45}
.letter-compose-form>[class~="row"]:first-of-type{margin-bottom:12px!important}
@media(max-width:900px){.letter-compose-uploads{grid-template-columns:minmax(0,1fr)}.letter-compose-subject{padding-bottom:10px}}

[data-action-office-picker] [data-action-office-menu]{top:100%;left:0;margin-top:4px;max-width:100%}
[data-action-office-selection]{overflow-wrap:anywhere}

.office-select-picker{min-width:0}
.office-select-options{position:absolute;top:100%;left:0;right:0;z-index:1100;max-height:280px;max-height:min(280px,45vh);overflow:auto;margin-top:4px}
.office-select-options>.list-group-item{white-space:normal;overflow-wrap:anywhere}
.office-copy-search{list-style:none;cursor:text;display:flex;align-items:center;gap:8px}
.office-copy-search::-webkit-details-marker{display:none}
.office-copy-search>.form-control{flex:1;min-width:0}

.recipient-selection-bar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin-top:6px}
.recipient-selection-bar>small,.recipient-selection-bar>[role=status]{min-width:0;flex:1 1 200px;overflow-wrap:anywhere}
.recipient-selection-bar>.btn{flex:none;white-space:nowrap}

/* Draft PDF pages carry their own watermark; suppress the app overlay only while visible. */
body.draft-watermarked-preview-visible>.screen-watermarks{display:none}

/* Letter creation: align settings, recipient and details without changing form behavior. */
.letter-compose-card .letter-compose-settings{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,.45fr) auto;align-items:start;gap:8px 16px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #d5dfeb}
.letter-compose-card .letter-compose-settings>div{min-width:0;margin-bottom:0!important}
.letter-compose-card .letter-compose-type:not(:has(select)){display:none}
.letter-compose-card .letter-compose-settings:not(:has(.letter-compose-type select)){grid-template-columns:minmax(0,260px) auto;justify-content:start}
.letter-compose-card .letter-compose-confidential{display:flex;align-items:center;gap:8px;min-height:40px;margin:26px 0 0;padding:0 4px 0 0;white-space:nowrap}
.letter-compose-card .letter-compose-confidential .form-check-input{float:none;margin:0;flex:none}
.letter-compose-card .letter-compose-confidential .form-check-label{margin:0}
.letter-compose-card .letter-compose-form>.row.g-3.mb-3{--bs-gutter-y:0;margin-top:0;margin-bottom:12px!important}
.letter-compose-card .recipient-selection-bar{min-height:28px;gap:4px 12px;margin-top:4px}
.letter-compose-card .recipient-selection-bar>.btn{min-height:32px;padding:4px 10px;font-size:12px}
.letter-compose-card .letter-compose-basics{grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:8px 16px;padding-bottom:2px;margin-bottom:10px}
.letter-compose-card .letter-compose-subject{padding-bottom:0}
.letter-compose-card .letter-compose-basics:not(:has(>[data-folder-picker])){grid-template-columns:minmax(0,1fr)}
.letter-compose-card .letter-compose-uploads{align-items:start;gap:12px;margin-bottom:10px}
.letter-compose-card .letter-compose-uploads .form-text{font-size:12px;line-height:1.4}
/* Compact only the Letter compose controls, never the editor or printed paper. */
.letter-compose-card{padding:14px 18px}
.letter-compose-card .letter-compose-form>.row.g-3.mb-3{margin-bottom:8px!important}
.letter-compose-card .letter-compose-settings :is(.form-control,.form-select),
.letter-compose-card [data-action-office-search],
.letter-compose-card .letter-compose-basics :is(input.form-control,select.form-select),
.letter-compose-card .letter-compose-uploads input[type=file]{height:40px;min-height:40px;padding-block:6px;font-size:14px}
.letter-compose-card .letter-compose-type #type-template-status:empty{display:none}
.letter-compose-card .letter-compose-uploads>[data-letter-draft-import]{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;padding:12px!important}
.letter-compose-card .letter-compose-uploads>[data-letter-draft-import]>:not(input[type=file]):not([data-import-letter-body]){grid-column:1/-1;margin-block:0!important}
.letter-compose-card .letter-compose-uploads [data-import-letter-body]{margin-top:0!important;min-height:40px;padding:6px 10px;align-self:start}
.letter-compose-card .letter-compose-uploads [data-import-status]:empty{display:none}
[data-letter-draft-import] .draft-import-picker{min-width:0;margin-top:8px}
[data-letter-draft-import] .draft-import-picker input[type=file]{width:100%;min-width:0}
[data-letter-draft-import] .draft-import-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-block:8px}
[data-letter-draft-import] .draft-import-actions .btn{flex:0 1 auto;width:auto;min-height:34px!important;padding:5px 10px!important;font-size:13px;line-height:1.4;white-space:normal;margin:0!important}
[data-letter-draft-import] [data-import-status]{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.letter-compose-card .letter-compose-uploads>[data-letter-draft-import]>.draft-import-picker{margin:0!important}
.letter-compose-card .letter-compose-uploads>[data-letter-draft-import]>.draft-import-actions{margin:0!important}
.letter-compose-card .letter-compose-uploads>.mb-3{padding:10px}
.letter-compose-card .letter-compose-basics [data-folder-picker]{margin-bottom:8px!important}
.letter-compose-card .letter-compose-basics [data-folder-picker]>.form-text{margin-top:4px;font-size:12px;line-height:1.4}
@media(max-width:600px){.letter-compose-card{padding:12px}.letter-compose-card .letter-compose-uploads>[data-letter-draft-import]{grid-template-columns:minmax(0,1fr)}.letter-compose-card .letter-compose-uploads [data-import-letter-body]{justify-self:start}.letter-compose-card .letter-compose-settings :is(.form-control,.form-select),.letter-compose-card [data-action-office-search],.letter-compose-card .letter-compose-basics :is(input.form-control,select.form-select),.letter-compose-card .letter-compose-uploads input[type=file]{height:44px;min-height:44px}}
@media(max-width:900px){.letter-compose-card .letter-compose-basics{grid-template-columns:minmax(0,1fr)}}
@media(max-width:650px){.letter-compose-card .letter-compose-settings{grid-template-columns:minmax(0,1fr) auto;gap:10px 14px}.letter-compose-card .letter-compose-type{grid-column:1/-1}.letter-compose-card .letter-compose-confidential{white-space:normal}}

/* Operation feedback: the same pending-track pattern used by the admission portal.
   Scope is the feedback component only; paper layout and watermark rules are untouched. */
@media screen {
    .office-progress.ds-feedback[data-state=processing] { padding-bottom:15px; }
    .office-progress.ds-feedback[data-state=processing] .ds-feedback-fill {
        inset:auto auto 0 0; width:35%; height:4px; background:#f3c746;
        transform:none; animation:office-operation-working 1.3s ease-in-out infinite;
    }
    .ds-toast-host .office-progress.ds-feedback { max-width:390px; width:100%; }
    .ds-toast-host .ds-feedback-label { white-space:normal; text-overflow:clip; }
    @keyframes office-operation-working { from { transform:translateX(-110%); } to { transform:translateX(310%); } }
    @media(prefers-reduced-motion:reduce) {
        .office-progress.ds-feedback[data-state=processing] .ds-feedback-fill { animation:none; width:100%; }
    }
}

/* Receipt confirmation stays in the process strip; the three-row reader grid is unchanged. */
@media screen {
    body.enterprise-shell .ds-document-workspace .dd-process:has(>.receipt-acknowledgement){flex-wrap:wrap}
    .ds-document-workspace .receipt-acknowledgement{flex:1 0 100%;min-width:0;padding:8px 0 2px;border-top:1px solid var(--ds-border)}
}

/* A separate editor dialog preserves the parent Note Sheet and its unsaved fields. */
body.enterprise-shell dialog.note-document-editor-dialog{width:min(1440px,calc(100vw - 32px));max-width:calc(100vw - 32px);height:calc(100dvh - 32px);max-height:calc(100dvh - 32px);padding:0;overflow:hidden}
body.enterprise-shell dialog.note-document-editor-dialog[open]{display:flex;flex-direction:column}
.note-document-editor-dialog .ds-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;flex:none}
.note-document-editor-dialog .ds-dialog-header h2{margin:0;font-size:21px}
.note-document-editor-dialog iframe{width:100%;flex:1;min-height:0;border:0;background:white}
.note-document-editor-dialog .note-editor-loading{margin:12px 20px}
.note-document-editor-dialog [hidden]{display:none!important}
