:root{--ink:#183b56;--muted:#667787;--bg:#f3f6f8;--line:#dce4ea;--teal:#087c72;--blue:#3767b5;--orange:#ae6619}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Segoe UI,Arial,sans-serif;font-size:1rem}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);padding:10px 16px;border-radius:8px}button:hover{filter:brightness(.96)}button:disabled{opacity:.5;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #83b7e3;outline-offset:2px}.primary{background:var(--ink);color:white;border-color:var(--ink);font-weight:600}.text{background:transparent;border:0;padding-left:0;color:inherit}h1{font-size:2.125rem;letter-spacing:-1px;margin:10px 0}h2{margin:8px 0;font-size:1.6875rem}h3{font-size:1.125rem;margin:24px 0 12px}p{line-height:1.55}small,.muted{color:var(--muted)}[hidden]{display:none!important}.eyebrow{font-size:0.8125rem;letter-spacing:1.7px;font-weight:700;color:var(--muted)}.brand{font-weight:800;font-size:1.6875rem;letter-spacing:1px}.brand span{display:block;font-size:0.75rem;letter-spacing:3px;margin-top:12px;opacity:.6}aside{position:fixed;inset:0 auto 0 0;width:235px;background:#112d43;color:#fff;padding:35px 25px;display:flex;flex-direction:column}nav{margin-top:60px}nav button{width:100%;display:flex;gap:15px;border:0;color:#b0c2d0;background:transparent;text-align:left;padding:15px 10px;margin-bottom:9px;font-size:0.8125rem}nav button span{font-size:1rem}nav button.selected{background:#234960;color:#fff}.aside-bottom{margin-top:auto;display:grid;gap:12px}.aside-bottom small{color:#a8c2d2}main{margin-left:235px;padding:38px 42px}header{display:flex;justify-content:space-between;align-items:center;gap:20px}header p{color:var(--muted);margin:0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:28px 0}.metric{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px}.metric span{font-size:0.875rem;color:var(--muted)}.metric strong{display:block;font-size:2.0625rem;margin-top:10px}.metric small{display:block;margin-top:8px}.bar{height:5px;background:#e8eef3;border-radius:4px;margin-top:15px;overflow:hidden}.bar i{display:block;height:100%;background:var(--teal)}.toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:23px 0}.toolbar input{min-width:230px}.toolbar .spacer{flex:1}input,select,textarea{border:1px solid var(--line);border-radius:7px;background:white;color:var(--ink);padding:10px;width:100%;min-width:0}label{display:grid;gap:7px;color:var(--muted);font-size:0.875rem}.table-wrap{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{font-size:0.75rem;letter-spacing:.7px;text-transform:uppercase;color:var(--muted);background:#f8fafb;padding:17px 13px;text-align:left}td{padding:20px 13px;border-top:1px solid #edf1f4}td strong{display:block}td small{display:block;margin-top:7px}.badge{display:inline-block;border-radius:5px;background:#e9f0f7;color:var(--blue);padding:5px 8px;font-size:0.8125rem}.badge.green{background:#e4f4ed;color:#286849}.badge.orange{background:#fff0de;color:#a95c08}.dots{display:flex;gap:5px;margin:10px 0}.dot{height:7px;width:22px;border-radius:3px;background:#e0e6ea}.dot.done{background:#209c82}.dot.progress{background:#ddb058}.empty{padding:60px;text-align:center;background:white;border:1px dashed var(--line);border-radius:12px}.notice{padding:14px 18px;background:#fff4dc;border:1px solid #efd19a;border-radius:9px;margin:20px 0}.error{color:#ab3434}footer{display:flex;justify-content:space-between;color:var(--muted);font-size:0.8125rem;margin-top:30px}.calendar-head{display:flex;justify-content:space-between;align-items:center;margin:22px 0}.calendar-head h2{text-transform:capitalize}.calendar{display:grid;grid-template-columns:repeat(7,minmax(110px,1fr));background:white;border:1px solid var(--line);border-radius:10px;overflow:hidden}.weekday{text-align:center;padding:14px;font-size:0.8125rem;background:#eaf0f5;font-weight:600}.day{min-height:145px;border-top:1px solid var(--line);border-right:1px solid var(--line);padding:8px}.day.other{background:#f8fafb;color:#93a1ad}.day.today{box-shadow:inset 0 0 0 2px #9bbdd4}.day-top{display:flex;justify-content:space-between;align-items:center;font-size:0.875rem;margin-bottom:8px}.event{display:block;width:100%;text-align:left;padding:6px;border:0;border-left:3px solid var(--blue);border-radius:4px;background:#edf3fd;font-size:0.75rem;margin:5px 0;white-space:normal}.event.vo{background:#e6f4ed;border-color:var(--teal)}.event.delivered{opacity:.65}.event strong{display:block;margin:3px 0}.calendar-wrap{overflow:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.wide{grid-column:1/-1}dialog{width:min(900px,94vw);max-height:92vh;border:0;border-radius:16px;padding:28px;color:var(--ink);box-shadow:0 20px 80px #0004}dialog::backdrop{background:#102c4399}.dialog-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.dialog-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px;position:sticky;bottom:-28px;background:white;padding:15px 0}.step-row{display:grid;grid-template-columns:145px 1fr;gap:10px;align-items:center;border-top:1px solid var(--line);padding:12px 0}.step-row .step-note{grid-column:2/-1}.step-row small{display:block;margin-top:3px;font-weight:400}.check{display:flex;gap:10px;align-items:center;margin:24px 0 12px;font-size:1rem}.check input{width:auto}fieldset{border:1px solid var(--line);border-radius:10px;padding:20px}details{margin-top:22px}summary{cursor:pointer;font-weight:600}#history p{font-size:0.875rem;border-bottom:1px solid var(--line);padding:8px}.login{min-height:100vh;background:#112d43;color:white;padding:40px}.login-card{max-width:450px;margin:50px auto;background:#fff;color:var(--ink);border-radius:18px;padding:35px}.login-card h1{font-size:2.625rem;line-height:1.15}.login-card form{display:grid;gap:18px;margin-top:25px}.login-card p{color:var(--muted)}#toast{position:fixed;bottom:25px;right:25px;padding:16px 24px;background:var(--ink);color:white;border-radius:10px;z-index:5}.settings{max-width:750px;background:white;border:1px solid var(--line);border-radius:12px;padding:28px}.settings form{display:grid;gap:18px}.settings ul{padding-left:20px;line-height:2}.legend{display:flex;gap:16px;color:var(--muted);font-size:0.875rem}.legend i{display:inline-block;width:8px;height:8px;border-radius:50%;background:var(--blue);margin-right:6px}.legend i.vo{background:var(--teal)}@media(max-width:1100px){main{padding:28px 22px}aside{width:200px;padding:25px 15px}main{margin-left:200px}.metrics{grid-template-columns:repeat(2,1fr)}h1{font-size:1.8125rem}}@media(max-width:700px){aside{position:static;width:100%;padding:18px}.brand{font-size:1.25rem}.brand br{display:none}.brand span{margin-top:5px}nav{margin-top:15px;display:flex;gap:4px;overflow:auto}nav button{white-space:nowrap;width:auto;margin:0;padding:10px}nav button span{font-size:0.875rem}.aside-bottom{display:flex;flex-wrap:wrap;align-items:center;margin-top:12px;font-size:0.875rem}main{margin:0;padding:22px 14px}header{align-items:flex-start;flex-direction:column}.metric{padding:15px}.metrics{gap:10px}.metric strong{font-size:1.6875rem}.form-grid{grid-template-columns:1fr}.step-row{grid-template-columns:1fr 1fr}.step-row strong{grid-column:1/-1}.step-row .step-note{grid-column:1/-1}footer{flex-direction:column;gap:8px}.login{padding:22px}.login-card{padding:25px;margin-top:30px}.toolbar input{min-width:180px;flex:1}.dialog-actions{flex-wrap:wrap}.calendar{min-width:900px}}
.subnav{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.org{background:white;border:1px solid var(--line);padding:18px;border-radius:12px}.org object{display:block;width:100%;height:75vh;margin-top:16px}.message-card{background:white;border:1px solid var(--line);border-radius:10px;padding:20px;margin:12px 0}.message-card p{white-space:normal;overflow-wrap:anywhere}
.department-entry{margin-top:24px}.month-picker{max-width:260px;margin-bottom:20px}

.metrics>.subnav{grid-column:1/-1;margin-bottom:0}

.side-subnav{margin:-2px 0 16px 12px;padding-left:10px;border-left:1px solid #456376}.side-subnav button{font-size:0.875rem;padding:10px;margin-bottom:3px}.side-subnav button.selected{background:#234960;color:#fff}#permissionFields .check{margin:12px 0}@media(max-width:700px){.side-subnav{display:flex;margin:0;border-left:0;padding-left:0;gap:4px}.side-subnav button{white-space:nowrap}}

.preparation-summary{min-width:245px;white-space:nowrap;position:relative}.preparation-count{font-size:0.8125rem;font-weight:600;color:var(--muted);margin-bottom:10px}.preparation-icons{display:inline-flex;align-items:center;gap:8px}.preparation-icon{position:relative;display:flex;align-items:center;justify-content:center;width:36px;height:36px;padding:7px;border-radius:7px;border:1px solid #cbd5df;background:#f2f5f7;color:#667787}.preparation-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.preparation-icon.done{background:#e4f4ed;border-color:#85c3a1;color:#207049}.preparation-icon.ongoing{background:#eaf2ff;border-color:#7babe5;color:#245fab}.preparation-icon.not-required{background:#fafbfc;color:#8a98a4;border-style:dashed}.preparation-mark{position:absolute;right:-4px;bottom:-4px;display:flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;font-size:0.8125rem;font-weight:800;background:white;box-shadow:0 0 0 1px currentColor}.preparation-icon.ongoing .preparation-mark{font-size:1.4375rem;line-height:10px}.preparation-blocker-icon{position:relative;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin-left:8px;padding:0;border-color:#dda65b;background:#fff0de;color:#995000;font-weight:800;vertical-align:middle}.preparation-icon:focus::after,.preparation-blocker-icon:focus::after{content:attr(aria-label);position:absolute;bottom:calc(100% + 7px);left:0;z-index:3;width:max-content;max-width:250px;white-space:normal;background:#183b56;color:white;border-radius:6px;padding:7px 10px;font-size:0.875rem;font-weight:400;line-height:1.4;pointer-events:none}.preparation-icon:hover{filter:brightness(.96)}

/* Delivery form and urgency */
small{font-size:.854167em}aside{overflow-y:auto}#recordForm fieldset{margin:20px 0;min-width:0}#recordForm legend{font-weight:700;padding:0 7px;color:var(--ink)}#recordForm .delivery-toggle{margin:4px 0 12px;padding:16px;background:#edf3f9;border:1px solid #c9d9e8;border-radius:9px;font-weight:700;color:var(--ink)}.form-hint{font-size:0.875rem;color:var(--muted);margin:10px 0 20px}.service-notes{margin-top:16px}.validation-summary{border:1px solid #d75353;background:#fff0f0;color:#a02828;padding:16px;border-radius:9px;margin:16px 0}.validation-summary ul{margin:8px 0 0;padding-left:20px}.validation-summary a{color:#a02828}.field-error{font-size:0.8125rem;line-height:1.4;color:#b12525;font-weight:600}#recordForm [aria-invalid=true]{border:2px solid #ce3434;background:#fff5f5}#recordForm .section-invalid{border:2px solid #ce3434}#recordForm .section-invalid legend{color:#ad2222}.urgent-deliveries{margin:6px 0 32px}.urgent-deliveries h2{font-size:1.375rem;color:#b02828}.urgent-deliveries>p{color:#985858;font-size:0.875rem;margin:8px 0 16px}.normal-deliveries h2{font-size:1.375rem;margin-bottom:16px}.urgent-deliveries .table-wrap{border-color:#eab9b9}.urgent-row td{background:#fff8f7}.urgent-text,.urgent-text small{color:#b12626!important;font-weight:700}.compact-empty{padding:22px;text-align:left;font-size:0.875rem}.event.urgent-event{color:#ad2525;background:#fff0ee;border-color:#c63434;font-weight:700}.dialog-actions{z-index:2;gap:8px}dialog{overflow:auto}#recordForm label{min-width:0}#recordForm .step-row{grid-template-columns:150px minmax(0,1fr)}
@media(max-width:700px){#recordForm .step-row{grid-template-columns:1fr}.aside-bottom small{font-size:0.75rem}#recordForm fieldset{padding:16px}#recordForm .dialog-actions button{padding:10px 12px}.metrics .metric span,.metrics .metric small{overflow-wrap:anywhere}}

.invitation-table td{vertical-align:top}.invitation-table input[type=checkbox]{width:18px;height:18px}.invitation-table input[type=email]{min-width:255px}.invitation-table select{min-width:165px}.invitation-table th{white-space:normal}.invite-state{white-space:normal;min-width:165px;max-width:280px;overflow-wrap:anywhere}.roster-import{background:white;border:1px solid var(--line);border-radius:10px;padding:18px;margin:16px 0}.roster-import textarea{margin:12px 0}.invitation-table td small{max-width:240px;white-space:normal}#inviteError{white-space:pre-wrap}#teamForm .notice{font-size:0.875rem}#inviteProgress{font-weight:600;color:var(--teal)}

/* Visible, non-colour-only preparation states in the list. */
.preparation-summary{white-space:normal;min-width:300px;max-width:440px}.preparation-icons{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px}.preparation-step{display:flex;flex-direction:column;align-items:center;gap:3px;width:72px;text-align:center}.preparation-step-label{font-size:.7rem;line-height:1.2;color:var(--text,#183b56);font-weight:600;overflow-wrap:anywhere}.preparation-step-status{font-size:.7rem;line-height:1.2;color:#526170}.preparation-step.done .preparation-step-status{color:#207049}.preparation-step.ongoing .preparation-step-status{color:#245fab}.preparation-blocker-label{display:inline-block;max-width:340px;color:#995000;font-size:.8rem;font-weight:600;vertical-align:middle;overflow-wrap:anywhere}.preparation-blocker-icon{margin-top:8px;margin-left:0;margin-right:5px}
