/* Shared workspace foundations. Document print templates remain independent. */
:root{--line:#e3e9f1;--muted:#61738a;--shadow:0 4px 20px #18344e06;font-size:16px}
body{background:#f5f7fb;color:#24364b;line-height:1.6}
header{min-height:76px;padding-block:12px;border-bottom:1px solid var(--line);box-shadow:none}
.brand-avatar{width:48px;height:48px;border:1px solid var(--line);border-radius:14px;background:#fff}
header strong,#brand{font-size:19px}header small{font-size:11px;margin-top:2px}
main{max-width:1600px;margin:auto;padding:24px}
#workspace{grid-template-columns:232px minmax(0,1fr);gap:24px}
.workspace-main{gap:20px}.panel{padding:24px;border-radius:18px;border-color:var(--line);box-shadow:var(--shadow)}
#appSidebar{background:#102a43;border:0;border-radius:18px;padding:14px 10px}
#appSidebar [data-tab]{font-size:14px;min-height:44px;padding:10px 12px;gap:10px;border-radius:10px}
#appSidebar svg{width:20px;height:20px}.nav-group-title{font-size:11px;letter-spacing:.2px;border:0;color:#a6b9cc;padding:16px 12px 6px;margin:0}
#appSidebar button.active{background:#ffffff14;color:#fff;border:1px solid #ffffff18;border-inline-start:3px solid #d8b572}
.nav-caption{font-size:14px}.nav-foot{font-size:11px;color:#a6b9cc}
.toolbar{gap:12px}.dashboard-hero{padding:26px;border-radius:18px}.dashboard-hero h1{font-size:28px;margin:0 0 6px}.dashboard-hero p:not(.eyebrow){font-size:14px;line-height:1.7}
h2,.section-head h2{font-size:22px;line-height:1.5}h3{font-size:18px;line-height:1.5}
.section-head{align-items:center;padding-bottom:16px;margin-bottom:16px;flex-wrap:wrap}.section-head h2{border:0;padding:0;margin:0}
button{font-size:14px;min-height:44px;padding:10px 14px;border-radius:10px;box-shadow:none;font-weight:700}
button.primary{background:var(--brand,#153552);box-shadow:0 3px 8px #15355212}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #407ac2;outline-offset:3px}
label{font-size:14px;line-height:1.5;margin:12px 0 8px}input,select,textarea{font-size:16px;min-height:44px;padding:10px 12px;margin-top:6px;border-color:#d9e2ed;border-radius:10px;background:#fff}
input:focus,select:focus,textarea:focus{border-color:#407ac2;box-shadow:0 0 0 3px #407ac218}
input[type=checkbox],input[type=radio]{width:18px;height:18px;min-height:0;margin:0;vertical-align:middle;accent-color:var(--brand)}
input[type=email],input[type=tel],input[type=url]{direction:ltr;text-align:left}
form{margin-top:18px}fieldset{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fafbfd}legend{font-size:14px;font-weight:700;padding-inline:8px}
.actions{gap:8px;flex-wrap:wrap}.two-col{gap:16px}.muted{color:var(--muted);font-size:13px}
.stat-card{padding:18px;border-inline-start:0!important;background:#fff!important;border:1px solid var(--line);border-radius:14px}.stat-card strong{font-size:32px}.stat-card>span{font-size:14px}.stat-card small{font-size:12px}
.home-cards{gap:16px;grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}.home-card{border-top:0}.home-card h3{margin:0 0 8px}.home-total{font-size:36px;line-height:1.3}.home-card p{font-size:13px;background:#f5f7fb;margin:8px 0;padding:8px 10px}
.quote-item,.history-item,.member-card{border:1px solid var(--line);border-radius:14px;background:#fff;padding:18px;margin:12px 0;box-shadow:none;overflow-wrap:anywhere}
.quote-item>strong{display:block;font-size:16px;margin-bottom:8px}.quote-item>br{display:none}.quote-item button{margin:8px 0 0 8px}.quote-item .pill{margin:0 0 6px 8px}.pill{font-size:12px;padding:4px 9px;border-radius:20px}
.profile-stats,.performance-cards{gap:12px}.profile-stats article{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff}.profile-stats strong{font-size:25px;overflow-wrap:anywhere}
.table-scroll{overflow:auto;border:1px solid var(--line);border-radius:12px}th,td{font-size:13px;padding:12px 14px;text-align:start}thead{background:#f3f6fa}tbody tr:hover{background:#edf4fc}tbody tr:nth-child(even){background:#fafbfd}
#workspaceTabs{gap:6px}.workspace-tab{border-radius:9px}.workspace-tab button{font-size:13px;min-height:38px;padding:7px 10px}.workspace-tab button:last-child{font-size:19px;padding:5px 9px}
.document-tools{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:12px;padding:14px;background:#f5f7fb;border:1px solid var(--line);border-radius:12px;margin:18px 0;scroll-margin-top:20px}.document-tools label{margin:0}.document-tools>p{grid-column:1/-1;margin:0}
.workflow-center{border:1px solid var(--line);border-radius:16px;padding:20px;background:#fff;margin:18px 0}.workflow-center h3{margin:0 0 4px}.workflow-center>p{margin:0 0 14px}
.workflow-path{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;list-style:none;padding:0;margin:0 0 16px;counter-reset:stage}.workflow-path li{counter-increment:stage}.workflow-path button{width:100%;height:100%;display:flex;align-items:center;gap:8px;text-align:start;font-size:12px;background:#f8fafc;border-color:var(--line)}.workflow-path button:before{content:counter(stage);display:grid;place-items:center;min-width:24px;height:24px;background:#e9eff6;color:#244868;border-radius:8px;font-size:11px}
.workflow-queue{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.workflow-queue button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;background:#fff;text-align:start;border-color:var(--line)}.workflow-queue strong{font-size:26px;line-height:1.2;color:#153552}.workflow-queue span{font-size:12px;color:#61738a}.workflow-next{font-size:13px;padding:10px 12px;background:#f2f6fa;border-radius:9px;margin:14px 0 0;color:#405972}.workflow-empty{padding:20px;text-align:center;background:#f7f9fc;border:1px dashed #ccd7e5;border-radius:12px;color:#61738a;font-size:14px}
dialog{max-width:min(760px,calc(100vw - 24px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:0 24px 80px #102a432b}dialog::backdrop{background:#102a4370}
.dashboard-related{padding:16px;border-radius:12px}.dashboard-related>summary,#employeeAccess>summary{font-size:16px}
@media(max-width:1000px){.workflow-path{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){
 main{padding:14px 12px 24px}header{min-height:64px;padding:10px 12px;flex-wrap:nowrap}.brand-avatar{width:42px;height:42px;flex-shrink:0}header strong,#brand{font-size:16px}header small{font-size:10px}.header-user small{display:none}.header-user{flex-shrink:0}.header-brand{gap:8px}.logout-icon{width:40px;height:40px;min-height:40px}.toolbar{display:flex;flex-wrap:wrap;padding:0;gap:8px}.toolbar label{width:100%;font-size:12px}.toolbar button{font-size:12px;padding:8px 10px}.toolbar #scopeLabel{width:100%;font-size:12px;order:3}
 #workspace{display:block}.workspace-main{gap:14px}.panel{padding:18px 14px;border-radius:15px}h2,.section-head h2{font-size:20px}.dashboard-hero{padding:20px}.dashboard-hero h1{font-size:24px}.dashboard-hero p:not(.eyebrow){font-size:13px}
 #appSidebar{border-radius:16px 0 0 16px;padding:16px 12px}#appSidebar [data-tab]{font-size:15px;min-height:46px}.nav-group-title{font-size:12px}
 .home-cards{grid-template-columns:1fr}.home-total{font-size:32px}.home-card p{font-size:13px}.stat-card{padding:14px}.stat-card strong{font-size:27px}.stat-card>span{font-size:12px}
 .section-head .actions{width:100%}.section-head .actions button{flex:1 1 130px}.quote-item{padding:14px}.quote-item>strong{font-size:15px}.quote-item button{font-size:12px;padding:9px 10px}.document-tools{grid-template-columns:1fr;padding:12px;gap:10px}
 .workflow-center{padding:16px 12px}.workflow-path{grid-template-columns:1fr 1fr;gap:6px}.workflow-path button{font-size:12px;padding:9px 8px}.workflow-path li:last-child{grid-column:1/-1}.workflow-queue{gap:6px}.workflow-queue button{padding:12px 8px}.workflow-queue strong{font-size:24px}.workflow-queue span{font-size:11px}
 .two-col{gap:10px}.profile-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-stats strong{font-size:21px}.profile-stats article{padding:12px}.profile-stats article span{font-size:12px}
 #quoteReview iframe{height:480px!important}dialog{padding:16px}.home-duty{flex-wrap:wrap}.home-duty button{width:100%}.home-duty small{font-size:12px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
