:root{font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#1b3448;background:#f5f7f5;--navy:#102239;--blue:#2b5d6b;--ink:#1b3448;--muted:#5b6d7a;--line:#dce5e5;--surface:#fff;--accent:#c7dfa9;--radius:12px}
*,*::before,*::after{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
a{color:var(--blue)}
button,a,input,select,textarea{outline-offset:3px}
button{cursor:pointer}
button:disabled,select:disabled{cursor:default;opacity:.55}
.shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}
.sidebar{background:var(--navy);color:#d0dbec;padding:27px 16px 18px;display:flex;flex-direction:column;position:sticky;top:0;height:100dvh}
.brand{display:flex;align-items:center;gap:12px;color:white;font-size:19px;font-weight:750;line-height:1.15;text-decoration:none;letter-spacing:-.4px;margin:0 8px 40px}
.brand-icon{display:grid;place-items:center;width:42px;height:42px;background:#294b64;color:#d9eec5;border-radius:11px;flex:none}
.icon{display:inline-block;width:19px;height:19px;vertical-align:middle;flex:none}
.nav-label{font-size:10px;letter-spacing:1.6px;color:#98aac4;font-weight:750;margin:0 12px 10px}
.nav-link{display:flex;align-items:center;gap:11px;color:#c9d6e9;text-decoration:none;border-radius:8px;padding:11px 12px;margin-bottom:4px;font-size:14px;font-weight:560}
.nav-link:hover,.nav-link.active{color:white;background:#253f55}
.nav-link.active{box-shadow:inset 3px 0 var(--accent)}
.side-bottom{margin-top:auto;padding-top:18px}
.profile{border-top:1px solid #304159;margin:16px 0 0;padding:18px 8px 0;display:flex;align-items:center;gap:10px;font-size:13px;color:#fff}
.profile small{display:block;color:#a9bad2;font-size:11px}
.avatar{display:grid;place-items:center;width:34px;height:34px;background:#2b4160;border-radius:9px;color:#dce8fd;font-weight:700}
.workspace{display:flex;min-width:0;flex-direction:column}
.topbar{min-height:68px;padding:12px 30px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:0 1px 5px #122a3b08}
.breadcrumb,.project-controls,.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.breadcrumb,.project-controls label{font-size:13px;color:var(--muted)}
.breadcrumb strong{color:var(--ink)}
.chevron{color:#8a9bb2}
.project-controls select{max-width:310px}
main{width:100%;max-width:1500px;margin:0 auto;padding:27px 30px 38px}
.footer{margin-top:auto;padding:15px 30px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;display:flex;align-items:center;gap:8px}
.dot{display:inline-block;background:#2d8c6e;width:7px;height:7px;border-radius:50%}
.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;border:1px solid #cdd7e5;background:white;color:var(--ink);padding:8px 13px;border-radius:8px;font-size:13px;font-weight:650;white-space:nowrap;text-decoration:none;min-height:38px}
.button:hover{background:#eef3fa}
.button.primary{background:#234b5c;border-color:#234b5c;color:#fff}
.button.primary:hover{background:#173b4b}
.button.subtle{border-color:transparent;color:var(--blue)}
#menu{display:none}
.hero{background:linear-gradient(110deg,#142b43,#1c4254);color:white;border-radius:13px;padding:27px 29px;display:flex;align-items:center;justify-content:space-between;gap:20px;position:relative;overflow:hidden;margin-bottom:28px;box-shadow:0 10px 24px #112e3b1a}
.hero::after{content:"";pointer-events:none;position:absolute;right:-40px;top:-130px;width:380px;height:380px;background:repeating-linear-gradient(132deg,transparent 0 24px,#87b3fd1c 25px 26px);mask-image:linear-gradient(90deg,transparent,#000)}
.hero .actions{position:relative;z-index:1}
.eyebrow{font-size:11px;letter-spacing:1.4px;font-weight:800;text-transform:uppercase;color:#48668e;margin:0 0 7px}
.hero .eyebrow{color:#c6e2b2}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(25px,3vw,35px);letter-spacing:-.9px;line-height:1.14;margin-bottom:8px}
h2{font-size:18px;letter-spacing:-.3px;margin-bottom:4px}
h3{font-size:15px;margin-bottom:7px}
.hero p:last-child,.heading p:last-child,.panel p:last-child{margin-bottom:0}
.hero .meta{font-size:13px;color:#d5e3f9}
.heading{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin:7px 0 22px}
.muted,.heading p{color:var(--muted)}
.section-head,.panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px}
.section-head{margin-bottom:12px}
.section-head small,.panel-head small{color:var(--muted)}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}
.metric,.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 4px 14px #182e4d08}
.metric{color:var(--ink);padding:16px;text-decoration:none;display:block}
.metric:hover{border-color:#8cab9c;box-shadow:0 7px 20px #182e4d12}
.metric-top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.metric-icon{display:grid;place-items:center;width:35px;height:35px;background:#e8f1e5;color:#376450;border-radius:9px}
.metric.warn .metric-icon{background:#fff0e4;color:#a14614}
.metric-number{display:block;font-size:29px;font-weight:750;line-height:1.15;margin:12px 0 3px;letter-spacing:-.7px}
.metric-label{font-size:13px;color:var(--muted);font-weight:630}
.panel-head{padding:17px 19px}
.panel-head p{margin:0;font-size:13px;color:var(--muted)}
.panel{margin-bottom:16px;overflow:hidden}
.loading,.empty,.help-copy{padding:24px}
.empty{text-align:center;color:var(--muted)}
.empty strong{display:block;color:var(--ink);margin-bottom:4px}
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}
th{color:#51657e;font-size:11px;letter-spacing:.35px;background:#f7f9fc;white-space:nowrap}
td,th{padding:12px 14px;border-top:1px solid #e7edf5;vertical-align:middle}
td:first-child,th:first-child{padding-left:19px}
td:last-child,th:last-child{padding-right:19px}
tbody tr:hover{background:#f9fbff}
td.nowrap{white-space:nowrap}
.ref{font-weight:730;color:var(--blue);white-space:nowrap}
.link-button{background:none;border:0;padding:0;text-align:left;color:var(--ink);font-weight:660}
.link-button:hover{text-decoration:underline;color:var(--blue)}
.tag{display:inline-block;white-space:nowrap;font-size:11px;font-weight:730;padding:3px 8px;border-radius:20px;background:#e5f0f2;color:#285368}
.tag.good{background:#e6f5ed;color:#216844}
.tag.warn{background:#fff0de;color:#8f4210}
.tag.neutral{background:#edf0f5;color:#495a70}
.overdue{color:#a13c20;font-weight:700}
.toolbar{display:flex;align-items:center;gap:10px;padding:14px 18px;flex-wrap:wrap}
.toolbar .search{flex:1 1 220px}
.toolbar .export{margin-left:auto}
input,textarea,select{color:var(--ink);background:white;border:1px solid #cdd7e5;border-radius:8px;padding:8px 10px;min-height:38px;max-width:100%}
textarea{resize:vertical;min-height:92px}
.count{padding:9px 19px;font-size:12px;color:var(--muted);border-top:1px solid #e7edf5}
.totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}
.total{padding:13px 16px;background:white;border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:12px}
.total strong{display:block;font-size:20px;color:var(--ink);overflow-wrap:anywhere}
.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.help-copy p{color:var(--muted)}
dialog{border:1px solid var(--line);border-radius:15px;padding:0;width:min(720px,calc(100% - 24px));max-height:92dvh;color:var(--ink);box-shadow:0 14px 60px #0c172d50}
dialog::backdrop{background:#101f367a}
.modal-head,.modal-foot{background:#fff;display:flex;justify-content:space-between;gap:8px;align-items:center;padding:15px 21px}
.modal-head{border-bottom:1px solid var(--line);position:sticky;top:0;z-index:1}
.modal-head h2{margin:0}
.modal-foot{border-top:1px solid var(--line);position:sticky;bottom:0;flex-wrap:wrap;z-index:1}
.modal-body{padding:19px 21px}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.field{display:flex;flex-direction:column;gap:4px;font-size:13px;font-weight:650;min-width:0}
.field.wide{grid-column:1/-1}
.field small{font-weight:400;color:var(--muted)}
.field input,.field textarea,.field select{width:100%;font-weight:400}
.notification-choice{flex-direction:row;align-items:flex-start;gap:11px;padding:13px 15px;border:1px solid var(--line);border-radius:8px;background:#f7faf8;cursor:pointer}
.notification-choice input{width:17px;min-width:17px;height:17px;margin:2px 0 0;accent-color:#2f6d59}
.notification-choice span small{display:block;margin-top:4px;line-height:1.5}
.attachment-list,.history{margin:6px 0 0;padding-left:20px;font-size:13px;overflow-wrap:anywhere}
.form-error{color:#a12c20;background:#fff1ed;border-radius:8px;padding:10px;margin-top:13px;font-size:13px}
.form-error:empty{display:none}
#toast{position:fixed;bottom:20px;right:20px;background:#162b48;color:white;border-radius:8px;z-index:2;padding:11px 15px;box-shadow:0 3px 12px #0003}
#toast:empty,#print-sheet{display:none}
.hero .button.primary{background:var(--accent);border-color:var(--accent);color:#19382f}
.hero .button.primary:hover{background:#e1edcf;border-color:#e1edcf}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,1fr);gap:16px;align-items:start}
.dashboard-grid .panel{margin-bottom:0}
.panel-head .eyebrow{margin:0 0 4px;color:#648271}
.next-actions .panel-head{padding-bottom:11px}
.action-list{padding:0 14px 8px}
.action-item{width:100%;display:flex;gap:12px;align-items:center;text-align:left;padding:13px 7px;background:white;border:0;border-top:1px solid #e8eeee;color:var(--ink)}
.action-item:hover{background:#f6faf6}
.action-item .action-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:#e8f1e5;color:#386450;flex:none}
.action-item strong,.action-item small{display:block}
.action-item strong{font-size:13px}
.action-item small{font-size:11px;color:var(--muted);margin-top:2px}
.action-arrow{margin-left:auto;color:#628773}
.action-note{border-top:1px solid var(--line);background:#f9fbf8;padding:13px 19px;font-size:12px;color:#536b61}
.action-note strong{color:#8d481a}
.status-dot{display:inline-block;width:7px;height:7px;background:#89b980;border-radius:50%;margin-right:8px}
.empty-state{text-align:center;padding:44px 24px 48px;max-width:560px;margin:auto}
.empty-state h3{font-size:17px;margin:14px 0 5px}
.empty-state p{color:var(--muted);font-size:13px;margin-bottom:20px}
.empty-icon{width:44px;height:44px;border-radius:11px;background:#e7f1e5;color:#396851;display:grid;place-items:center;margin:auto}
.empty-state .button{margin:auto}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.loading-state{padding-top:15px}
.skeleton{display:block;border-radius:9px;background:linear-gradient(100deg,#e7edeb 20%,#f4f7f5 38%,#e7edeb 60%);background-size:220% 100%;animation:shimmer 1.6s ease-in-out infinite}
.loading-kicker{width:120px;height:12px;margin-bottom:14px}
.loading-title{width:min(430px,75%);height:38px;margin-bottom:31px}
.loading-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}
.loading-cards .skeleton{height:108px}
.loading-table{height:230px}
@keyframes shimmer{to{background-position-x:-220%}}
@media(prefers-reduced-motion:reduce){.skeleton{animation:none}}
@media(max-width:1050px){.shell{grid-template-columns:205px minmax(0,1fr)}.topbar,main,.footer{padding-left:20px;padding-right:20px}.project-controls select{max-width:225px}}
@media(max-width:800px){.shell{display:block}.sidebar{display:none;position:fixed;z-index:4;width:235px;box-shadow:0 10px 30px #0004;top:64px;height:calc(100dvh - 64px);padding-top:18px}.sidebar.show{display:flex}#menu{display:inline-flex}.topbar{height:auto;min-height:64px;flex-wrap:wrap}.breadcrumb{margin-right:auto}.project-controls label{display:none}.workspace{min-height:100dvh}.metrics,.loading-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:510px){main,.topbar,.footer{padding-left:12px;padding-right:12px}.project-controls{width:100%;flex-wrap:nowrap}.project-controls select{flex:1;min-width:0;max-width:none}.hero,.heading{align-items:flex-start;flex-direction:column}.hero{padding:19px}.help-grid,.fields{grid-template-columns:1fr}.totals{grid-template-columns:1fr}.toolbar .export{margin-left:0}.metric{padding:12px}}
@page{size:A4;margin:18mm}
@media print{
body{background:white;color:#14263e}
.shell,#toast,dialog{display:none!important}
#print-sheet{display:block;font:11pt/1.5 system-ui,sans-serif}
#print-sheet h1{font-size:24pt}
.print-head{border-bottom:2px solid #14263e;margin-bottom:18px;padding-bottom:12px}
.print-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;margin-bottom:18px}
.print-grid div,.print-block{break-inside:avoid;overflow-wrap:anywhere}
.print-block p{white-space:pre-wrap}
.print-note{margin-top:20px;padding-top:10px;border-top:1px solid #ccc;font-size:9pt}
}
