:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#16362d;background:#f3f7f4;color-scheme:light}*{box-sizing:border-box}body{margin:0}header{background:#fff;border-bottom:1px solid #dce7e1;display:flex;justify-content:space-between;align-items:center;padding:20px max(24px,calc((100vw - 1180px)/2));gap:20px}.brand{display:flex;align-items:center;gap:12px;color:#174d39;text-decoration:none}.brand strong{display:block;font-size:1.4rem}.brand small{display:block;max-width:330px;font-size:.7rem;margin-top:2px}.mark{background:#176444;color:white;border-radius:12px;padding:12px;font-weight:700}main{max-width:1180px;margin:30px auto;padding:0 24px}.card{background:white;border:1px solid #d7e4db;border-radius:16px;padding:clamp(20px,4vw,36px);margin:20px 0}.login{max-width:650px;margin:8vh auto}.login h1{font-size:clamp(2.4rem,7vw,3.6rem);line-height:1.08;letter-spacing:-.05em}.eyebrow{font-size:.75rem;letter-spacing:.13em;font-weight:700;color:#32624f}h1{letter-spacing:-.035em;font-size:2rem;margin:12px 0}h2{font-size:1.2rem}p{line-height:1.65}button,.formlink{background:#176444;color:#fff;border:1px solid #176444;border-radius:9px;padding:11px 17px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none}button:hover{background:#104b32}.quiet{color:#22573e;background:white;border-color:#cadad0}.quiet:hover{background:#edf5ef}.danger{background:#a33333;border-color:#a33333}.busy button{pointer-events:none;opacity:.6}input,select,textarea{display:block;width:100%;font:inherit;border:1px solid #b6c9bf;border-radius:8px;padding:11px;background:#fff;color:#17362b;margin-top:7px}input:focus,select:focus,textarea:focus{outline:3px solid #a3d2bb;outline-offset:2px}label{font-size:.9rem;font-weight:600}textarea{min-height:80px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:24px 0}.full{grid-column:1/-1}.checkbox{display:flex;align-items:center;gap:10px}.checkbox input{width:auto}.muted,small{color:#52685b}.badge{display:inline-block;background:#e7f2ec;color:#235c42;border-radius:20px;padding:6px 12px;font-size:.75rem;font-weight:600}.notice{background:#e4f2e8;padding:14px 18px;border-radius:9px;margin:16px 0}.error{background:#fbe6e4;color:#822d2d}nav{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}nav button{background:transparent;color:#22573e;border-color:#c9d9d0}.welcome,.sectionhead{display:flex;align-items:center;justify-content:space-between;gap:20px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stats article{background:white;padding:22px;border-radius:12px;border:1px solid #d7e4db}.stats strong{display:block;font-size:2rem}.stats span{font-size:.75rem;color:#52685b}.tablewrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:.87rem}th,td{text-align:left;padding:15px 10px;border-bottom:1px solid #e5ece7;white-space:nowrap}th{color:#52685b;font-size:.75rem}.actions{display:flex;flex-wrap:wrap;gap:10px}.assignment,.approval{border-bottom:1px solid #dce7e1;padding-bottom:24px}#userbar{display:flex;align-items:center;gap:15px;font-size:.8rem}footer{text-align:center;color:#52685b;font-size:.75rem;margin:40px 20px}footer a{color:inherit}a{color:#176444}@media(max-width:650px){header{align-items:flex-start;flex-direction:column;padding:16px 20px}.grid{grid-template-columns:1fr}.full{grid-column:auto}.stats{grid-template-columns:1fr 1fr}.welcome,.sectionhead{align-items:flex-start;flex-direction:column}main{padding:0 16px}.brand small{max-width:250px}}

/* Actual pending operations control visibility; no simulated progress. */
.action-progress[hidden]{display:none}
.action-progress{position:fixed;inset:0;z-index:1000;background:rgb(18 44 32 / 26%);display:grid;place-items:center;padding:24px;cursor:wait}
.progress-card{display:flex;flex-direction:column;align-items:center;gap:16px;max-width:370px;width:100%;padding:32px 24px;background:#fff;border:1px solid #d7e4db;border-radius:18px;box-shadow:0 20px 70px #102d3326;text-align:center}
.progress-card strong{font-size:1.05rem;color:#16362d}.progress-card>span:last-child{font-size:.87rem;color:#52685b;line-height:1.6}
.progress-spinner{width:42px;height:42px;border:4px solid #dcece3;border-top-color:#176444;border-radius:50%;animation:progress-spin .8s linear infinite}
button:disabled{cursor:wait;opacity:.65}
@keyframes progress-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.progress-spinner{animation:none;border-color:#176444 #dcece3 #176444 #dcece3}}


.brand-logo{display:block;width:350px;max-width:75vw;height:auto}.login-logo{width:76px;height:auto;display:block;margin-bottom:20px}.progress-logo{width:46px;height:46px;object-fit:contain}@media(max-width:650px){.brand-logo{width:290px}}

dialog{width:min(720px,94vw);max-height:85vh;overflow:auto;border:1px solid #d7e4db;border-radius:18px;padding:24px;color:#16362d}dialog::backdrop{background:rgb(18 44 32 / 45%)}dialog form{margin-top:20px}

/* Request creation is the primary dashboard action; exports are secondary. */
.welcome{padding:16px 0 26px;gap:28px}.welcome>div:first-child{min-width:0}.welcome .eyebrow{margin:0 0 8px}.welcome h1{margin:0 0 10px}.welcome>div>p:last-child{margin:0;color:#52685b;font-size:.9rem}
.request-cta{display:inline-flex;align-items:center;gap:14px;min-width:245px;min-height:78px;padding:16px 20px;text-align:left;background:linear-gradient(120deg,#176444,#124f39);border:1px solid #176444;border-radius:16px;box-shadow:0 5px 14px #124f3918;flex-shrink:0}
.request-cta:hover{background:linear-gradient(120deg,#1b7250,#145c40);border-color:#145c40;box-shadow:0 7px 18px #124f3926}.request-cta-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#ffffff18;border:1px solid #ffffff2e;font-size:28px;line-height:1;font-weight:400;flex-shrink:0}.request-cta-copy{display:flex;flex-direction:column;gap:4px}.request-cta-title{font-size:1rem;font-weight:700;line-height:1.3;color:#fff}.request-cta-hint{font-size:.75rem;font-weight:400;color:#e0f0e6;line-height:1.4}.request-cta-arrow{margin-left:auto;padding-left:12px;color:#c6e6d4;font-size:21px;font-weight:400}
.request-tools{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.request-tools button{font-size:.8rem;font-weight:600;padding:10px 13px;min-height:42px}.request-tools .quiet{background:#f8fbf9;border-color:#d9e6dd;color:#32624f}.request-tools .quiet:hover{background:#edf5ef;border-color:#b7d0c0}
button:focus-visible{outline:3px solid #74b898;outline-offset:4px}
@media(max-width:850px){.sectionhead:has(.request-tools){align-items:flex-start;flex-direction:column;gap:10px}.request-tools{justify-content:flex-start}}
@media(max-width:650px){.welcome{padding:10px 0 24px;gap:20px;width:100%}.request-cta{width:100%;min-width:0;min-height:74px}.request-tools{width:100%;display:grid;grid-template-columns:1fr}.request-tools button{width:100%;text-align:left}.request-cta-arrow{padding-right:3px}}

/* One type family, with clear heading, label, value and supporting-text levels. */
:root{font-family:"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,sans-serif;font-size:16px;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body{line-height:1.5}h1,h2,h3{font-weight:700;color:#163b30;text-wrap:balance}h1{font-size:clamp(1.6rem,3vw,2rem);line-height:1.2;letter-spacing:-.035em}h2{font-size:1.125rem;line-height:1.35;letter-spacing:-.015em}p{font-size:.9375rem;line-height:1.65}button{font-size:.875rem;line-height:1.35;letter-spacing:0}.eyebrow{font-size:.6875rem;line-height:1.5;letter-spacing:.1em;font-weight:700}.muted,small{font-size:.8125rem;line-height:1.6}label{font-size:.8125rem;line-height:1.5;font-weight:600}input,select,textarea{font-size:.9375rem;font-weight:400;line-height:1.5}nav button{font-size:.875rem;font-weight:600;min-height:44px}
.stats .stat-card{padding:20px 20px 18px;display:flex;flex-direction:column;min-height:148px}.stat-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:38px}.stats .stat-label{font-size:.8125rem;font-weight:600;line-height:1.35;color:#315749;max-width:145px}.stats .stat-icon{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:10px;font-size:1.2rem;font-weight:600;background:#e8f3eb;color:#28704b}.stats .stat-value{font-size:2.125rem;line-height:1.15;font-weight:700;letter-spacing:-.045em;margin:10px 0 4px;font-variant-numeric:tabular-nums}.stats .stat-caption{font-size:.6875rem;line-height:1.4;color:#718078}.stat-for_supervisor_review .stat-icon{background:#fff2db;color:#946409}.stat-submitted_to_region .stat-icon{background:#e7eefb;color:#456ba5}.stat-submitted .stat-icon{background:#e8f3f5;color:#397688}
.sectionhead{margin-bottom:14px}.sectionhead h2{margin:0}table{font-size:.875rem;line-height:1.5}th{font-size:.6875rem;letter-spacing:.055em;text-transform:uppercase;font-weight:700;color:#60756a;background:#f8fbf9}td{color:#345447}td:first-child{font-weight:600;color:#203f32}.badge{font-size:.6875rem;line-height:1.4;font-weight:600;letter-spacing:0;padding:6px 10px}.status-draft{background:#eef1ef;color:#596c61}.status-submitted{background:#e8f3f5;color:#366974}.status-for_supervisor_review{background:#fff2db;color:#805b10}.status-returned{background:#fff0df;color:#895419}.status-rejected{background:#fbeaea;color:#a13f3f}.status-submitted_to_region{background:#e7eefb;color:#3e6094}
.notification-item{padding:14px 0;border-bottom:1px solid #e5ece7}.notification-item p{margin:0 0 4px;font-size:.875rem}.notification-item small{display:block;font-size:.6875rem;color:#748379}
@media(max-width:650px){.stats{gap:10px}.stats .stat-card{padding:16px 14px;min-height:150px}.stats .stat-label{font-size:.75rem}.stats .stat-caption{font-size:.625rem}.stats .stat-value{font-size:1.875rem}.request-cta-title{font-size:.9375rem}.stat-heading{align-items:flex-start}.stats .stat-icon{width:28px;height:28px;border-radius:8px}}

.policy-page{max-width:960px}.policy-document{padding:clamp(22px,5vw,48px)}.policy-document h1{margin:8px 0 12px}.policy-document h2{margin:32px 0 12px;font-size:1.1rem}.policy-document p,.policy-document li{font-size:.9375rem;line-height:1.8;max-width:78ch}.policy-document ul{padding-left:24px}.policy-document li{margin:10px 0}.policy-meta{font-size:.75rem!important;color:#667b6e}.policy-document .notice p{margin:8px 0 0;font-size:.875rem}.policy-document nav{border-top:1px solid #dce7e1;margin-top:32px;padding-top:20px;gap:24px}.policy-document a{text-underline-offset:3px}.policy-document a:focus-visible{outline:3px solid #74b898;outline-offset:3px}

.staff-reminders{width:min(720px,94vw);max-height:86dvh;padding:clamp(20px,4vw,32px)}.staff-reminders h2{font-size:1.4rem;margin:8px 0 14px;line-height:1.3}.reminder-list{display:grid;gap:0}.reminder-list section{border-top:1px solid #e2ebe5;padding:16px 0}.reminder-list h3{font-size:.875rem;line-height:1.4;margin:0 0 6px;font-weight:700;color:#21553e}.reminder-list p{font-size:.8125rem;line-height:1.7;margin:0;color:#496453}.reminder-sources{font-size:.8125rem;line-height:1.7;padding:14px 0}.reminder-sources summary{cursor:pointer;font-weight:600}.reminder-footer{position:sticky;bottom:-32px;background:#fff;padding:16px 0 6px;display:flex;justify-content:flex-end;border-top:1px solid #e2ebe5}.reminder-footer button{min-width:100px;min-height:44px}.staff-reminders-info{position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));z-index:90;width:48px;height:48px;padding:0;border-radius:50%;display:grid;place-items:center;background:#176444;box-shadow:0 4px 16px #123c3430;font-size:27px;font-weight:400}.staff-reminders-info[hidden]{display:none}@media(max-width:650px){.staff-reminders-info{right:16px;bottom:max(16px,env(safe-area-inset-bottom))}.reminder-footer{bottom:-20px}}

/* Sick Leave compliance blocker: visually distinct from informational notices. */
.late-filing-blocker{background:#fff0f0;color:#8b1e26;border:2px solid #c62828;border-left:6px solid #b91c1c;border-radius:10px;padding:16px 18px}
.late-filing-blocker strong{color:#991b1b;font-weight:800}
.late-filing-blocker p,.late-filing-blocker label{color:#7f1d1d}
.late-filing-blocker textarea{background:#fff;border:1px solid #c65e65;color:#24352d}
.late-filing-blocker textarea:focus{outline:3px solid #f3a1a8;outline-offset:2px}
.late-filing-blocker[hidden]{display:none}

/* Explain exactly why a Sick Leave draft is still blocked. */
.draft-validation-status{grid-column:1/-1;margin:0;padding:10px 14px;border-radius:8px;font-size:.875rem;line-height:1.55}
.draft-validation-status.error{background:#fff0f0;color:#842029;border-left:4px solid #b91c1c}
.draft-validation-status.success{background:#e8f4ec;color:#185b3d;border-left:4px solid #278454}

/* Accessible status tabs for Requests, with a separate collapsible processed archive. */
.request-status-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:18px 0}
.request-status-tabs button{min-width:0;background:#f6faf7;border:1px solid #d6e5db;color:#285640;text-align:left;padding:13px 14px;display:grid;grid-template-columns:1fr auto;gap:3px 8px;align-items:start;border-radius:11px}
.request-status-tabs button:hover{background:#edf5ef}
.request-status-tabs button[aria-selected=true]{background:#176444;color:#fff;border-color:#176444;box-shadow:0 0 0 2px #17644422}
.request-status-tabs button span{font-weight:700;line-height:1.35}
.request-status-tabs button strong{font-size:1.05rem;font-variant-numeric:tabular-nums}
.request-status-tabs button small{grid-column:1/-1;color:inherit;opacity:.8;font-weight:400;font-size:.72rem}
.processed-requests{margin-top:24px;border-top:1px solid #d7e4db;padding-top:15px}
.processed-requests summary{cursor:pointer;color:#285640;font-weight:600}
.processed-requests .tablewrap{margin-top:12px}
@media(max-width:750px){.request-status-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Wellness Leave: red warning, not a neutral informational dialog. */
.wellness-warning-modal{width:min(94vw,490px);border:2px solid #b91c1c;border-top:8px solid #b91c1c;border-radius:14px;background:#fff2f2;color:#7f1d1d;padding:24px;box-shadow:0 24px 64px #450a0a36}
.wellness-warning-modal::backdrop{background:#1f0d0db8}
.wellness-warning-modal h2{color:#991b1b;margin:0 0 14px;font-size:1.3rem;line-height:1.35}
.wellness-warning-modal p{background:#fff;border-left:5px solid #dc2626;border-radius:7px;padding:14px 16px;color:#7f1d1d;line-height:1.65;font-weight:600}
.wellness-warning-modal .actions{display:flex;justify-content:flex-end;margin-top:20px}
.wellness-warning-modal #wellness-reminder-ok{background:#b91c1c;border-color:#b91c1c;color:white;font-weight:700}
.wellness-warning-modal #wellness-reminder-ok:hover{background:#991b1b}
.wellness-warning-modal #wellness-reminder-ok:focus-visible{outline:3px solid #ef4444;outline-offset:3px}

@media(min-width:751px) and (max-width:1100px){.request-status-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Role-specific Home is a card-only landing page. The Back control is absent on Home. */
.home-heading{margin:20px 0 24px}
.home-heading h1{margin:8px 0}.home-heading p:last-child{color:#52685b;margin:0}
.home-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 36px}
.home-service-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:8px;min-height:172px;padding:22px;border:1px solid #d7e4db;border-radius:16px;background:#fff;color:#163b30;box-shadow:0 4px 16px rgb(21 68 43 / 4%);transition:border-color .15s ease,transform .15s ease,box-shadow .15s ease}
.home-service-card:hover{background:#f5faf6;border-color:#80b59b;transform:translateY(-2px);box-shadow:0 8px 22px rgb(21 68 43 / 9%)}
.home-service-card strong{font-size:1.05rem;color:#163b30;line-height:1.3}
.home-service-card small{color:#587265;font-weight:400;font-size:.8125rem}
.home-card-symbol{display:grid;place-items:center;min-width:34px;height:34px;padding:4px 9px;background:#e4f2e8;border-radius:10px;color:#176444;font-size:1.15rem}
.home-card-count{font-size:2rem;line-height:1.1;font-weight:750;font-variant-numeric:tabular-nums;color:#176444}
@media(max-width:850px){.home-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.home-card-grid{grid-template-columns:1fr;gap:12px}.home-service-card{min-height:136px;padding:17px}}
@media(prefers-reduced-motion:reduce){.home-service-card{transition:none}.home-service-card:hover{transform:none}}


/* Wellness-only clickable dates. Responsive for laptop and mobile viewports. */
.wellness-regular-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.wellness-regular-dates[hidden],.wellness-date-picker[hidden]{display:none}
.wellness-date-picker{border:1px solid #d7e4db;border-radius:.9rem;padding:clamp(.75rem,2vw,1.3rem);background:#f9fcfa}
.wellness-date-picker h2{margin:0 0 .5rem;font-size:1.1rem}
.wellness-date-picker p{margin:.5rem 0;font-size:.83rem}
.wellness-month-controls{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin:1rem 0 .6rem}
.wellness-month-controls button{min-width:2.75rem;min-height:2.75rem;padding:.4rem .7rem}
.wellness-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.28rem;max-width:32rem}
.wellness-weekday{font-size:.72rem;text-align:center;color:#52685b;font-weight:700;padding:.4rem 0}
.wellness-calendar-date{display:grid;place-items:center;aspect-ratio:1;min-width:0;min-height:2.3rem;padding:.15rem;border:1px solid #d7e4db;border-radius:.55rem;background:#fff;color:#234b39;font-weight:650;cursor:pointer}
.wellness-calendar-date:hover:not(:disabled){border-color:#176444;background:#e8f4ec}
.wellness-calendar-date.selected{background:#176444;color:#fff;border-color:#176444}
.wellness-calendar-date:disabled{opacity:.35;cursor:not-allowed}
.wellness-calendar-date:focus-visible{outline:.18rem solid #31845c;outline-offset:.13rem}
.wellness-selection-count{font-weight:750;color:#176444}
.wellness-selected-dates{line-height:1.6;overflow-wrap:anywhere}
@media(max-width:40rem){.wellness-regular-dates{grid-template-columns:1fr}.wellness-calendar-grid{max-width:100%;gap:.17rem}.wellness-calendar-date{min-height:2.15rem}}
