[hidden]{display:none!important}
:root{--navy:#102e49;--teal:#087e8b;--ink:#173247;--muted:#6c7c89;--line:#dfe7ec;--bg:#f3f6f8;--gold:#e7ba55}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,select,textarea{font:inherit}button,a{cursor:pointer}button{border:0;border-radius:8px;padding:10px 17px;background:#e8eff3;color:var(--ink);font-weight:600}button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:wait}a{color:var(--teal)}.primary{background:var(--teal);color:white}.quiet{background:transparent;border:1px solid var(--line)}.icon{font-size:22px;padding:4px 10px;background:transparent}.muted,small{color:var(--muted)}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.2;letter-spacing:-1px}h2{font-size:22px;letter-spacing:-.4px}h3{font-size:16px}.eyebrow,.workspace-label{font-size:10px;letter-spacing:1.7px;font-weight:700;color:var(--muted)}.brandmark{font-size:38px;letter-spacing:-2px;font-weight:800;line-height:1}.brandmark span{display:block;font-size:9px;letter-spacing:3.5px;margin:8px 0 0 3px;color:var(--gold)}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-card{padding:12vh max(40px,10vw);background:white}.auth-card .brandmark{color:var(--navy);margin-bottom:60px}.auth-card h1{max-width:390px;font-size:38px}.auth-card p{color:var(--muted)}.auth-art{position:relative;overflow:hidden;background:var(--navy);color:white;padding:12vh 8vw;display:flex;flex-direction:column;justify-content:center}.auth-art h2{font-size:52px;line-height:1.15;font-weight:500;position:relative;z-index:1}.auth-art span{letter-spacing:3px;font-size:10px;color:#86bfc7;margin-bottom:35px}.auth-art p{margin-top:65px;color:#86bfc7}.orbit{position:absolute;width:650px;height:650px;border:1px solid #ffffff17;border-radius:100%;right:-320px;bottom:-200px;box-shadow:0 0 0 65px #ffffff05,0 0 0 130px #ffffff03}label{display:block;font-size:12px;font-weight:600;margin:16px 0 5px}input,select,textarea{display:block;width:100%;padding:11px 12px;border:1px solid #cbd8e1;border-radius:7px;background:white;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #96cbd0;outline-offset:1px}textarea{min-height:85px;resize:vertical}input[type=checkbox]{width:auto;display:inline-block;margin-right:8px}form .primary{margin-top:20px}.auth-card button.primary{width:100%}aside{position:fixed;inset:0 auto 0 0;width:230px;background:var(--navy);color:white;padding:34px 20px;display:flex;flex-direction:column;z-index:20}aside .brandmark{margin:0 16px 45px}.workspace-label{color:#6d91ab;margin:0 15px 13px}nav{display:grid;gap:5px}nav button{padding:12px 15px;text-align:left;background:transparent;color:#afc2d1;font-weight:500;display:flex;align-items:center;gap:13px}nav button.active{background:#ffffff12;color:white;border-left:3px solid #55bec6}nav button span{width:20px;font-size:18px}.sidebar-foot{margin-top:auto;color:#96afc1;font-size:12px;padding:20px 15px}.sidebar-foot small{color:#6d91ab}.shell{margin-left:230px}header{height:86px;background:white;border-bottom:1px solid var(--line);padding:0 40px;display:flex;align-items:center;gap:15px}header strong{display:block;font-size:18px;margin-top:2px}.user{margin-left:auto;display:flex;gap:20px;align-items:center;font-size:12px}#menu{display:none}main{padding:34px 40px;max-width:1600px;margin:auto}footer{font-size:11px;color:var(--muted);padding:20px 40px;border-top:1px solid var(--line)}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.page-head p{margin:8px 0 0;color:var(--muted)}.page-head h1{margin:0}.actions{display:flex;gap:8px;flex-wrap:wrap}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:26px}.stat,.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:23px}.stat .label{color:var(--muted);font-size:12px}.stat .number{font-size:32px;font-weight:700;letter-spacing:-1px;margin-top:12px}.stat .hint{font-size:10px;color:var(--teal)}.grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.panel{margin-bottom:22px}.panel h2{font-size:17px;margin-bottom:20px}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:10px}table{border-collapse:collapse;width:100%;text-align:left;white-space:nowrap}th{font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--muted);background:#f9fbfc;padding:14px 18px;border-bottom:1px solid var(--line)}td{padding:16px 18px;border-bottom:1px solid #edf1f4;font-size:12px}td:first-child{font-weight:600}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#f7fafb}.record-link{padding:0;border:0;background:transparent;color:var(--teal);text-align:left}.badge{display:inline-block;background:#e8f5f2;color:#177c6a;border-radius:20px;padding:4px 9px;font-size:10px;font-weight:600}.badge.warn{background:#fff4db;color:#9b6e1b}.badge.gray{background:#edf1f4;color:#617584}.empty{padding:55px 30px;text-align:center;color:var(--muted)}.empty h3{color:var(--ink)}.filter{display:flex;gap:10px;margin-bottom:18px}.filter input{max-width:400px}.row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid #edf1f4}.row:last-child{border:0}.row p{margin:0}.row small{display:block}.bar{height:6px;background:#e9eff2;border-radius:5px;margin-top:8px;width:100%}.bar span{display:block;background:var(--teal);height:100%;border-radius:5px}.kv{display:grid;grid-template-columns:160px 1fr;gap:10px;margin:12px 0;font-size:13px}.kv dt{color:var(--muted)}.kv dd{margin:0;overflow-wrap:anywhere}.timeline{padding:12px 0 12px 20px;border-left:2px solid #d8e5ea;margin-left:5px;position:relative}.timeline:before{content:'';position:absolute;width:8px;height:8px;border-radius:50%;background:var(--teal);left:-5px;top:18px}.timeline strong{font-size:12px}.timeline p{font-size:12px;margin:4px 0;white-space:pre-wrap}.timeline small{font-size:10px}.callout{padding:16px 20px;border:1px solid #cfe4e5;background:#edf7f7;border-radius:9px;margin-bottom:20px;font-size:12px}.error,#modal-error{color:#ad3846;font-size:12px;padding:10px 0;white-space:pre-wrap}#notice:not(:empty){padding:12px 16px;background:#e4f4ee;color:#206b55;border-radius:8px;margin-bottom:18px}dialog{border:1px solid var(--line);border-radius:14px;box-shadow:0 25px 80px #102e4933;width:min(650px,94vw);padding:28px;max-height:90vh;overflow:auto}dialog::backdrop{background:#102e4966;backdrop-filter:blur(3px)}.modal-head{display:flex;align-items:center;justify-content:space-between}.modal-head h2{margin:0}.modal-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);margin-top:20px;padding-top:15px}.modal-actions .primary{margin:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid .full{grid-column:1/-1}.tabs{display:flex;gap:8px;margin-bottom:18px;flex-wrap:wrap}.tabs button{font-size:12px}.secret{font:16px monospace;letter-spacing:2px;overflow-wrap:anywhere;background:var(--bg);padding:18px}.smalltext{font-size:12px}.pill{display:inline-block;padding:6px 10px;background:#edf2f6;border-radius:7px;font-size:11px;margin:4px}pre{white-space:pre-wrap;font-size:11px;overflow-wrap:anywhere}#modal-form .modal-actions button{min-width:90px}@media(max-width:1100px){.cards{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}main{padding:25px}.auth-card{padding:8vh 6vw}}@media(max-width:760px){aside{transform:translateX(-100%);transition:transform .2s}body.menu-open aside{transform:translateX(0)}.shell{margin-left:0}header{padding:0 15px;height:75px}#menu{display:block}.user{gap:8px}.user span{display:none}main{padding:22px 16px}.page-head{align-items:flex-start;flex-direction:column}h1{font-size:27px}.cards{gap:10px}.stat{padding:17px}.stat .number{font-size:27px}.auth{display:block}.auth-art{display:none}.auth-card{padding:8vh 25px;min-height:100vh}.auth-card h1{font-size:33px}.auth-card .brandmark{margin-bottom:40px}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}footer{padding:20px 16px}.kv{grid-template-columns:110px 1fr}.filter{flex-wrap:wrap}}

#mfa-qr{background:#fff;padding:20px;width:256px;max-width:100%;margin:12px auto;box-sizing:border-box}#mfa-qr img,#mfa-qr canvas{max-width:100%;height:auto}

#document-preview{max-width:100%;height:auto;user-select:none}#modal:has(#document-preview) .modal-actions button[type=submit]{display:none}

/* Responsive guards for directory, director and finance views. */
main,#view,.shell,.panel,.stat,.grid>*,.cards>*,.form-grid>*,.page-head>*{min-width:0}
.page-head{flex-wrap:wrap}.page-head h1{overflow-wrap:anywhere}.panel{max-width:100%}.table-wrap{max-width:100%;overscroll-behavior-inline:contain}.row{flex-wrap:wrap}.badge{max-width:100%;overflow-wrap:anywhere;white-space:normal}.full{grid-column:1/-1}.payment-qr{display:block;max-width:min(320px,100%);height:auto;margin:16px auto}.email-excerpt{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto}.deadline-overdue{color:#a32938;background:#fff0f1}.deadline-urgent{color:#9b5d0a;background:#fff4db}.deadline-due-soon{color:#775c0d;background:#fff9e6}#modal-fields canvas{max-width:100%;height:auto}aside{overflow-y:auto}.sidebar-foot{padding-top:30px}button{overflow-wrap:anywhere}details{margin:12px 0}summary{cursor:pointer;color:var(--teal)}
@media(max-width:760px){.panel{padding:18px}.filter>*{min-width:0;max-width:100%}.page-head>*{max-width:100%}.kv{grid-template-columns:minmax(80px,30%) minmax(0,1fr)}.auth-card{padding:7vh 22px}.stat .number{font-size:25px}.actions{max-width:100%}aside{max-height:100dvh}dialog{padding:20px}}

/* CGS premium workspace: clear hierarchy, accessible status colours and calendar cards. */
:root{--navy:#102b46;--teal:#087d87;--ink:#19334c;--muted:#617489;--line:#dce5ef;--bg:#f3f6fb;--gold:#d9ab4c}
body{background:radial-gradient(ellipse at 90% 0,#e7f0f7 0,transparent 50%),var(--bg);font-size:14px;line-height:1.6}
h1,h2,h3{color:var(--navy)}h1{font-size:34px;font-weight:780;letter-spacing:-1px}h2{font-weight:740}h3{line-height:1.4}
:focus-visible{outline:3px solid #168a9a;outline-offset:3px}button{border-radius:10px;transition:background .15s,box-shadow .15s;min-height:40px}button:hover{box-shadow:0 3px 12px #17324712}button.primary{background:linear-gradient(120deg,#087e8b,#07626e);box-shadow:0 4px 10px #087e8b25;color:white}.quiet{background:#fff}.record-link{min-height:28px;line-height:1.5;font-weight:700}.record-link:hover{text-decoration:underline;box-shadow:none}
aside{background:linear-gradient(165deg,#102e49,#0b2038 85%);border-right:1px solid #ffffff12;box-shadow:5px 0 24px #112e4910;padding-top:28px}nav{gap:6px}nav button{border:1px solid transparent;border-radius:10px;font-size:12px;min-height:43px;padding:10px 13px}nav button.active{background:linear-gradient(100deg,#1a596d,#153a54);border:1px solid #74c7ce33;border-left:3px solid #e7ba55;box-shadow:0 5px 14px #00000015}nav button:hover{background:#ffffff0a}nav button.active:hover{background:#1a596d}nav button span{color:#91d6dc}.workspace-label{color:#9bb2c4}.sidebar-foot small{color:#93aabd}
.brandmark{margin-left:3px!important;margin-right:3px!important;letter-spacing:normal}.brandmark img{display:block;width:100%;height:auto;max-width:190px;background:white;border-radius:10px;padding:8px}.brandmark span{font-size:9px;letter-spacing:3px;margin:12px 0 0;text-align:center;color:#e7c16f}.auth-card .brandmark{max-width:250px}.auth-card .brandmark img{max-width:250px;padding:0}.auth-card .brandmark span{color:var(--teal);text-align:left;margin-left:2px}
header{height:90px;box-shadow:0 2px 14px #18334c04;background:#ffffffed}header strong{font-size:20px;font-weight:750}.eyebrow{color:#537086;letter-spacing:1.8px}.user>span{padding:7px 12px;background:#f1f5fa;border:1px solid var(--line);border-radius:30px;font-size:11px}
main{padding-top:30px}.page-head{padding:25px 28px;background:linear-gradient(110deg,#fff,#edf5f9);border:1px solid #dce7f0;border-radius:18px;border-top:3px solid var(--teal);box-shadow:0 6px 22px #17324705;margin-bottom:25px}.page-head p{max-width:760px;font-size:13px}.stat,.panel{border-radius:16px;border-color:#e0e8f1;box-shadow:0 5px 20px #17324704}.stat{position:relative;overflow:hidden;border-top:3px solid var(--teal);padding:23px}.stat:nth-child(2){border-top-color:#4569aa}.stat:nth-child(3){border-top-color:#a77327}.stat:nth-child(4){border-top-color:#7258a2}.stat .label{font-weight:650;color:#566b80}.stat .number{color:var(--navy);font-size:35px;line-height:1.25;margin:15px 0 7px}.stat .hint{color:#486e79}.panel{padding:25px}.panel h2{display:flex;align-items:center;gap:10px;font-size:18px;line-height:1.4;padding-bottom:15px;border-bottom:1px solid #e9eef4;margin-bottom:19px}.panel h2:before{content:'';flex:0 0 5px;height:22px;background:var(--teal);border-radius:4px}.panel[data-tone=finance]{border-top:3px solid #4265a2}.panel[data-tone=finance] h2{color:#294a82}.panel[data-tone=finance] h2:before{background:#4265a2}.panel[data-tone=attention]{border-top:3px solid #d49b35}.panel[data-tone=attention] h2:before{background:#d49b35}.panel[data-tone=secure] h2:before{background:#447b72}
.table-wrap{border-radius:12px}th{background:#eef3f9;color:#4a637b;letter-spacing:.8px;font-weight:750;padding:15px 17px}td{padding:16px 17px}td small{display:block;color:var(--muted);margin-top:4px}tbody tr:hover{background:#f1f8fa}.badge{font-size:11px;font-weight:700;letter-spacing:.1px;padding:5px 11px;line-height:1.45;border:1px solid transparent;background:#eaf1fa;color:#315b8d}.badge.success{background:#e7f4ee;color:#216246;border-color:#c5e3d2}.badge.warn{background:#fff3d9;color:#7e5100;border-color:#efd79f}.badge.danger{background:#ffeaec;color:#a2293d;border-color:#efbdc6}.badge.info{background:#eaf1fa;color:#315b8d;border-color:#d0deef}.badge.gray{background:#edf1f4;color:#526678}
.callout{border-left:4px solid #178793;background:#edf7f8}.callout.error{border-color:#c74459;background:#fff0f2;color:#a3293d}.error{color:#a3293d}.empty{padding:34px 22px;background:#fafcfe;border:1px dashed #dce5ef;border-radius:12px}.empty h3{margin-bottom:6px}.empty p{margin-bottom:0;font-size:12px}.pill{background:#edf3fa;color:#294b70;font-weight:650}dialog{border-radius:18px;padding:30px;box-shadow:0 25px 90px #0c263c40}.modal-head{border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:10px}.modal-head h2{font-size:23px}.modal-head .icon{flex-shrink:0}.modal-actions{padding-top:19px}label{color:#3e5870}input,select,textarea{border-radius:9px;border-color:#cbd9e6;min-height:44px}input[type=checkbox]{min-height:0;accent-color:var(--teal)}
.deadline-cards{display:grid;gap:13px}.deadline-card{display:flex;align-items:flex-start;gap:20px;padding:18px;background:#f8fbfe;border:1px solid #dce6ef;border-left:4px solid #438a99;border-radius:13px;min-width:0}.calendar-date{display:inline-flex;align-items:center;gap:12px;flex-shrink:0;vertical-align:middle}.calendar-date time{display:flex;flex-direction:column;align-items:center;min-width:68px;overflow:hidden;background:white;border:1px solid #d6e1ed;border-radius:10px;box-shadow:0 3px 8px #19334c08;line-height:1.2}.calendar-month{display:block;width:100%;text-align:center;background:#176879;color:white;padding:5px 10px;font-size:10px;font-weight:800;letter-spacing:1.3px}.calendar-date time>strong{font-size:27px;font-weight:780;color:#19334c;padding:6px 9px 1px}.calendar-year{color:#617489;font-size:10px;padding-bottom:7px}.calendar-context{max-width:150px;font-size:12px;overflow-wrap:anywhere}.calendar-context:empty{display:none}.calendar-context strong,.calendar-context small{display:block}.calendar-context small{font-size:10px}.deadline-content{min-width:0;flex:1}.deadline-label{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:10px;letter-spacing:1px;font-weight:750;text-transform:uppercase;color:#617489;margin-bottom:7px}.deadline-label .badge{text-transform:none;letter-spacing:0}.deadline-content h3{font-size:16px;margin:0 0 5px;overflow-wrap:anywhere}.deadline-content p{font-size:12px;margin:0 0 9px;overflow-wrap:anywhere}.deadline-content .actions{margin-top:10px}.deadline-content .actions button{font-size:11px;padding:8px 12px;min-height:35px}.deadline-overdue{background:#fff6f7;border-color:#ecc4cc;border-left-color:#bd3651}.deadline-overdue .calendar-month{background:#ad304a}.deadline-urgent{background:#fff9ee;border-color:#ecd8ad;border-left-color:#bb7a15}.deadline-urgent .calendar-month{background:#946014}.deadline-due-soon{background:#fffdf5;border-left-color:#bd9b3c}.deadline-card .calendar-date{align-items:flex-start;flex-direction:column;gap:7px}.deadline-card .calendar-context{max-width:105px}
@media(min-width:1200px){.deadline-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid .deadline-cards{grid-template-columns:1fr}}
@media(max-width:760px){header{height:78px}header strong{font-size:17px}.eyebrow{font-size:8px;letter-spacing:1px}.page-head{padding:21px 18px;border-radius:14px}.page-head h1{font-size:27px;letter-spacing:-.7px}.panel{padding:18px}.panel h2{font-size:17px}.stat{padding:16px}.stat .number{font-size:27px}.stat .label{font-size:11px}.deadline-card{gap:13px;padding:14px 12px}.deadline-content h3{font-size:14px}.calendar-date time{min-width:59px}.calendar-date time>strong{font-size:25px}.calendar-context{max-width:110px}.deadline-card .calendar-context{max-width:76px}.deadline-content .actions{gap:6px}.deadline-label{gap:6px}nav button{font-size:12px}.user{gap:4px}.user .quiet{padding:8px 10px;font-size:11px}dialog{padding:20px}.modal-head h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{aside,header,.actions,footer{display:none}.shell{margin:0}.panel,.stat,.page-head{box-shadow:none;break-inside:avoid}body{background:white}.calendar-month{print-color-adjust:exact}}

.auth-art h2{color:#fff}.auth-art{background:linear-gradient(140deg,#102e49,#0b4655)}.auth-art>span{color:#e7c16f}

#change-password{margin-top:18px;color:#d4e6ee;border-color:#456078;background:#163a50;font-size:12px;flex-shrink:0}.auth-art h2{color:#fff}
