/* JasCars navigation system */body.portal-active header{padding-left:calc(258px + max(24px,(100vw - 1400px)/2))}body.portal-active main{max-width:1220px;margin-left:calc(258px + max(22px,(100vw - 1480px)/2));margin-right:auto}#workspace-nav{display:none}body.portal-active #workspace-nav{display:flex;position:fixed;left:0;top:0;bottom:0;width:258px;z-index:30;background:#10283e;color:#fff;flex-direction:column;padding:26px 15px;box-shadow:7px 0 26px #122d4715}.nav-brand{font-size:21px;font-weight:800;letter-spacing:-.7px;padding:4px 14px 24px}.nav-brand small{display:block;color:#8ca8be;font-size:11px;letter-spacing:1.8px;text-transform:uppercase;margin-top:3px}.nav-caption{font-size:10px;text-transform:uppercase;letter-spacing:1.8px;color:#8aa4ba;padding:19px 15px 9px;font-weight:750}.nav-link{display:flex;align-items:center;gap:12px;width:100%;padding:12px 14px;border-radius:11px;color:#c7d7e5;text-decoration:none;font-weight:600;font-size:13px;margin:2px 0;transition:.18s}.nav-link:hover{background:#1e3c55;color:#fff;text-decoration:none}.nav-link.active{background:#2470a9;color:#fff}.nav-icon{font-size:17px;width:23px;text-align:center}.nav-footer{margin-top:auto;border-top:1px solid #ffffff20;padding:16px 14px 0;color:#a9bdcf;font-size:12px}#mobile-nav-toggle{display:none}body.portal-active #app>.panel:first-of-type{position:relative}body.portal-active #app>.panel:first-of-type:after{content:"YOUR WORKSPACE";display:block;font-size:10px;letter-spacing:2px;color:#b7d6ed;font-weight:750;margin-top:12px}#workspace-shortcuts{display:flex;gap:10px;flex-wrap:wrap;margin:-3px 0 19px}#workspace-shortcuts button{background:white;color:#245376;border:1px solid #dce7f0;box-shadow:0 3px 12px #1236530b;padding:10px 14px;font-size:13px}#workspace-shortcuts button:hover{background:#eaf4fb}section.panel:target{scroll-margin-top:85px}#app .panel{scroll-margin-top:85px}#management{scroll-margin-top:85px}@media(max-width:1000px){body.portal-active header{padding-left:22px}body.portal-active main{margin:20px auto;max-width:1180px}body.portal-active #workspace-nav{transform:translateX(-105%);transition:transform .2s;box-shadow:none}body.portal-active.nav-open #workspace-nav{transform:translateX(0);box-shadow:10px 0 40px #071d3290}body.portal-active #mobile-nav-toggle{display:inline-flex;align-items:center;justify-content:center;position:fixed;right:16px;bottom:18px;z-index:35;border-radius:100px;width:54px;height:54px;font-size:23px;box-shadow:0 8px 25px #102d4850}body.portal-active.nav-open:before{content:"";position:fixed;inset:0;background:#091b2a8c;z-index:29}}@media(min-width:1001px){body.portal-active #mobile-nav-toggle{display:none}}@media(prefers-reduced-motion:reduce){.nav-link,body.portal-active #workspace-nav{transition:none}}
[data-manager-only][hidden]{display:none!important}

#workspace-shortcuts button[hidden],#workspace-nav [hidden]{display:none!important}
.jascars-editor{margin:16px 0;padding:17px;background:#f3f8fc;border:1px solid #dbe9f3;border-radius:12px}.jascars-editor h3{margin:5px 0 12px}.jascars-editor label{display:block;margin:12px 0}.jascars-editor label input{margin-top:5px}.jascars-editor summary{cursor:pointer;font-weight:750}


/* Match the approved JasCars demo design while retaining real data and auth. */
body.portal-active{background:#f4f7fb;color:#203349;font:14px/1.5 Inter,system-ui,-apple-system,"Segoe UI",sans-serif}
body.portal-active header{background:#f4f7fb;color:#203349;box-shadow:none;border-bottom:1px solid #e3eaf1;min-height:83px}
body.portal-active header strong{color:#203349;font-size:21px}
body.portal-active header span{color:#6d8398}
body.portal-active main{max-width:none;width:auto;margin-top:0;padding:26px 34px 65px}
body.portal-active #workspace-nav{width:246px;padding:25px 15px;box-shadow:none}
body.portal-active header{padding-left:280px}
body.portal-active main{margin-left:246px}
body.portal-active .nav-brand{font-size:24px;padding:0 13px 26px}
body.portal-active .nav-link{font-size:14px;border-radius:10px;padding:12px 13px}
body.portal-active .nav-link.active{background:#2876b1}
body.portal-active .nav-caption{padding:19px 13px 7px}
body.portal-active .panel{border:1px solid #e2eaf1;border-radius:16px;padding:22px;box-shadow:0 6px 25px #173c5b08}
body.portal-active #app>.panel:first-child{border-radius:19px;background:linear-gradient(112deg,#153a5b,#2376ad);box-shadow:0 15px 32px #15446d20}
body.portal-active .grid{gap:18px}
body.portal-active h1{font-size:29px}
body.portal-active h2{font-size:18px}
body.portal-active button{background:#17639f;border-radius:9px}
body.portal-active button.secondary{background:#eaf2f8;color:#205a84}
body.portal-active th{background:#f6f9fc;color:#75889b}
body.portal-active #management:before{font-size:21px}
body.portal-active #workspace-shortcuts{display:none}
@media(max-width:1000px){body.portal-active header{padding-left:20px}body.portal-active main{margin:0 auto;padding:22px 18px 65px}}
@media(max-width:640px){body.portal-active main{padding:16px 12px 65px}body.portal-active .panel{padding:16px}}

/* Calendar-first manager overview */
body.portal-active.manager-workspace #manager-overview{display:block;margin:0 0 22px}#manager-overview{display:none}#manager-overview-intro h2{font-size:23px;margin:0 0 4px}#manager-overview-intro p{margin:0 0 16px}#manager-overview-calendar #calendar-card{margin-bottom:0;min-height:360px}#manager-overview-calendar #calendar-card h2{font-size:20px}#manager-overview-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:17px}.manager-summary-link{display:flex;flex-direction:column;gap:5px;padding:18px 20px;background:#fff;border:1px solid #e2eaf1;border-radius:14px;box-shadow:0 6px 25px #173c5b08;text-decoration:none}.manager-summary-link strong{color:#173d5d;font-size:16px}.manager-summary-link span{color:#6b8093;font-size:12px}.manager-summary-link:hover{border-color:#8fbfe1;text-decoration:none}body.manager-workspace #management:before{content:none}body.manager-workspace #management{margin-top:22px}@media(max-width:700px){#manager-overview-summary{grid-template-columns:1fr}}

/* Single-page-at-a-time portal navigation */
body.portal-active #app main>.grid,body.portal-active #management{display:none!important}body.portal-active #workspace-home{display:none}body.portal-active[data-portal-page="workspace-home"] #workspace-home{display:block}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #management{display:block!important}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-overview{display:block}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #pending-card,body.portal-active.manager-workspace[data-portal-page="workspace-home"] #employees-card{display:none}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-overview-calendar #calendar-card{display:block}body.portal-active[data-portal-page="pending-card"] #management,body.portal-active[data-portal-page="employees-card"] #management,body.portal-active[data-portal-page="calendar-card"] #management{display:block!important}body.portal-active[data-portal-page="pending-card"] #manager-overview,body.portal-active[data-portal-page="employees-card"] #manager-overview,body.portal-active[data-portal-page="calendar-card"] #manager-overview{display:none}body.portal-active[data-portal-page="pending-card"] #pending-card,body.portal-active[data-portal-page="employees-card"] #employees-card,body.portal-active[data-portal-page="calendar-card"] #calendar-card{display:block}body.portal-active[data-portal-page="pending-card"] #employees-card,body.portal-active[data-portal-page="employees-card"] #pending-card{display:none}body.portal-active[data-portal-page="leave-card"] #app main>.grid,body.portal-active[data-portal-page="requests-card"] #app main>.grid,body.portal-active[data-portal-page="forms-card"] #app main>.grid,body.portal-active[data-portal-page="balance-card"] #app main>.grid{display:block!important}body.portal-active #app main>.grid>section{display:none}body.portal-active[data-portal-page="leave-card"] #leave-card,body.portal-active[data-portal-page="requests-card"] #requests-card,body.portal-active[data-portal-page="forms-card"] #forms-card,body.portal-active[data-portal-page="balance-card"] #balance-card{display:block;max-width:1100px}body.portal-active.manager-workspace #management:before{content:none}

/* Neutral calendar with highlighted dates only */
#manager-overview-calendar .calendar-day,#calendar-card .calendar-day{background:#fff!important;border:1px solid #e0e6ed!important;border-radius:8px;min-height:76px;padding:9px;color:#273d50}#manager-overview-calendar .calendar-day.has-event,#calendar-card .calendar-day.has-event{background:#fff!important}#manager-overview-calendar .calendar-date,#calendar-card .calendar-date{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;font-weight:750}#manager-overview-calendar .has-event .calendar-date,#calendar-card .has-event .calendar-date{background:#1d679c;color:#fff}#manager-overview-calendar .calendar-day.today .calendar-date,#calendar-card .calendar-day.today .calendar-date{outline:2px solid #1d679c;outline-offset:2px}#manager-overview-calendar .calendar-event,#calendar-card .calendar-event{font-size:11px;color:#3e556a;line-height:1.3;margin-top:5px}#manager-overview-calendar .calendar-month,#calendar-card .calendar-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}#manager-overview-calendar .calendar-weekday,#calendar-card .calendar-weekday{text-align:center;font-size:11px;font-weight:750;color:#71879a;padding:8px 2px}@media(max-width:700px){#manager-overview-calendar .calendar-day,#calendar-card .calendar-day{padding:4px;min-height:53px}.calendar-event{font-size:9px!important}.calendar-date{width:24px!important;height:24px!important}}

/* Dedicated calendar view shares the real calendar and hides other panels */
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #manager-overview{display:block!important}body.portal-active.manager-workspace[data-portal-page="calendar-card"] #manager-overview-intro,body.portal-active.manager-workspace[data-portal-page="calendar-card"] #manager-overview-summary{display:none}body.portal-active.manager-workspace[data-portal-page="calendar-card"] #pending-card,body.portal-active.manager-workspace[data-portal-page="calendar-card"] #employees-card{display:none}#jascars-month-calendar{margin:15px 0}#jascars-month-calendar .calendar-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:10px}#jascars-month-calendar .calendar-toolbar button{background:#f0f4f8;color:#244761;padding:7px 15px;font-size:19px}#jascars-month-calendar .calendar-toolbar strong{font-size:18px}#calendar table{font-size:12px}#calendar-card #calendar{margin-top:18px}body.portal-active[data-portal-page="workspace-home"] #workspace-home{display:none}body.portal-active:not(.manager-workspace)[data-portal-page="workspace-home"] #workspace-home{display:block}

/* Intentionally minimal manager overview: calendar and three compact figures only */
body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-overview-intro{display:none}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card #calendar{display:none}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card{min-height:0}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-overview-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}body.portal-active.manager-workspace[data-portal-page="workspace-home"] .manager-summary-link{padding:14px 17px;box-shadow:none}body.portal-active.manager-workspace[data-portal-page="workspace-home"] .manager-summary-link strong{font-size:23px}body.portal-active.manager-workspace[data-portal-page="workspace-home"] .manager-summary-link span{font-size:12px}@media(max-width:650px){body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-overview-summary{grid-template-columns:1fr 1fr}}

/* Keep reporting on its own page, never in the manager overview */
body.portal-active #asg-tools{display:none!important}body.portal-active.manager-workspace[data-portal-page="asg-tools"] #asg-tools{display:block!important;margin:0 0 30px}body.portal-active.manager-workspace[data-portal-page="asg-tools"] #management{display:none!important}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #asg-tools{display:none!important}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-overview-summary{margin-bottom:0}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card{margin-bottom:0}

/* One calendar only: original table remains in DOM as data source but is not shown. */
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card #calendar{display:none!important}

/* Simplified single native absence calendar and manual entry */
#jascars-month-calendar{display:none!important}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card .absence-month{display:block}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card #calendar{display:block!important}body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card #calendar>.muted,body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card #calendar>div:not(.absence-month),body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card #jascars-manual-absence{display:none!important}body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card #calendar{display:block!important}body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card #calendar>.muted,body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card #calendar>div:not(.absence-month){display:none!important}body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card #jascars-manual-absence{display:block!important;margin:12px 0 18px}#jascars-manual-absence>summary{display:inline-flex;background:#17639f;color:#fff;border-radius:9px;padding:11px 16px;cursor:pointer;font-weight:650;list-style:none}#jascars-manual-absence[open]>summary{margin-bottom:14px}body.portal-active #asg-analysis{display:none!important}body.portal-active.manager-workspace[data-portal-page="asg-analysis"] #asg-analysis{display:block!important}body.portal-active.manager-workspace[data-portal-page="asg-analysis"] #management{display:none!important}body.portal-active.manager-workspace[data-portal-page="asg-analysis"] #asg-tools{display:none!important}

/* Manager analysis table and filters */
#asg-analysis .analysis-filters{display:flex;gap:12px;flex-wrap:wrap;align-items:end;margin:20px 0}#asg-analysis .analysis-filters label{display:flex;flex-direction:column;gap:5px;flex:1;min-width:145px;font-size:12px;font-weight:650}#asg-analysis .analysis-filters select,#asg-analysis .analysis-filters input{width:100%;padding:10px;border:1px solid #d8e3ec;border-radius:8px;background:white}#asg-analysis .analysis-table-wrap{overflow-x:auto}#asg-analysis table{width:100%;border-collapse:collapse}#asg-analysis th,#asg-analysis td{padding:13px 12px;text-align:left;border-bottom:1px solid #e6edf3}#asg-analysis th{font-size:12px;color:#516a7f;background:#f7f9fb}#asg-analysis tr:hover td{background:#f8fafc}

/* Calendar colour refinement: white cells, highlighted date, translucent name chips only */
#calendar-card .absence-cell:not(.outside),#calendar-card .absence-cell.selected,#calendar-card .absence-cell:hover{background:#fff!important;border:1px solid #dce5ed!important;box-shadow:none!important}#calendar-card .absence-cell.selected{border-color:#8db2d0!important}#calendar-card .absence-cell strong{display:inline-grid;place-items:center;align-self:flex-start;width:27px;height:27px;border-radius:50%;background:transparent!important;color:#243d52!important;font-size:13px;font-weight:700}#calendar-card .absence-cell.today strong,#calendar-card .absence-cell.selected strong{background:#17639f!important;color:#fff!important}#calendar-card .absence-cell .absence-event{background:rgba(27,110,166,.11)!important;color:#245a7d!important;border:1px solid rgba(27,110,166,.13);border-radius:6px;padding:4px 6px;font-size:10px;font-weight:600}#calendar-card .absence-cell .absence-event.other{background:rgba(193,133,51,.12)!important;color:#805b29!important;border-color:rgba(193,133,51,.16)}#calendar-card .absence-cell .absence-more{background:transparent!important;color:#62788a!important}

/* Individual employee wage reference calendar */
#analysis-person[hidden]{display:none!important}#analysis-person{margin-top:20px}#analysis-person .analysis-person-top,#analysis-person .analysis-month-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}#analysis-person .analysis-legend{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}#analysis-person .analysis-legend span{border-radius:6px;padding:6px 9px;font-size:12px}#analysis-person .analysis-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:20px}#analysis-person .analysis-weekday{text-align:center;color:#637b8d;font-size:12px;font-weight:700}#analysis-person .analysis-day{min-height:92px;border:1px solid #dde5ed;background:white;border-radius:8px;padding:7px 5px;min-width:0}#analysis-person .analysis-day strong{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;margin-bottom:5px;font-size:12px}#analysis-person .analysis-day strong.analysis-today{background:#17639f;color:white}#analysis-person .analysis-chip{display:block;margin-top:4px;border-radius:5px;padding:4px 5px;font-size:10px;overflow-wrap:anywhere;line-height:1.3}#analysis-person .analysis-chip.approved,#analysis-person .analysis-legend-approved{background:rgba(35,151,83,.13);color:#16653b}#analysis-person .analysis-chip.pending,#analysis-person .analysis-legend-pending{background:rgba(235,150,39,.17);color:#8a4e06}#analysis-person .analysis-chip.absence,#analysis-person .analysis-legend-absence{background:rgba(34,112,179,.12);color:#215f92}#analysis-person .analysis-chip.rejected,#analysis-person .analysis-legend-rejected{background:#eef0f3;color:#65717d}@media(max-width:700px){#analysis-person .analysis-month-grid{gap:2px}#analysis-person .analysis-day{padding:4px 2px;min-height:65px}#analysis-person .analysis-chip{font-size:9px}}

/* Analysis lives inside main; explicitly show the selected manager page */
body.portal-active #app main #asg-analysis{display:none!important}body.portal-active[data-portal-page="asg-analysis"] #app main #asg-analysis{display:block!important;width:100%;margin:0 0 24px}body.portal-active[data-portal-page="asg-analysis"] #app main>.grid,body.portal-active[data-portal-page="asg-analysis"] #app main>#workspace-home,body.portal-active[data-portal-page="asg-analysis"] #app main>#management{display:none!important}

/* Live-site manager-only staff walkthrough */
body.portal-active #app main #staff-walkthrough{display:none!important}body.portal-active.manager-workspace[data-portal-page="staff-walkthrough"] #app main #staff-walkthrough{display:block!important;width:100%;margin:0 0 24px}body.portal-active[data-portal-page="staff-walkthrough"] #app main>.grid,body.portal-active[data-portal-page="staff-walkthrough"] #app main>#workspace-home,body.portal-active[data-portal-page="staff-walkthrough"] #app main>#management,body.portal-active[data-portal-page="staff-walkthrough"] #app main>#asg-analysis{display:none!important}#staff-walkthrough .staff-walkthrough-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}#staff-walkthrough .staff-walkthrough-tabs button{padding:10px 13px;background:#f2f6fa;border:1px solid #d9e4ec;border-radius:8px;color:#23445e}#staff-walkthrough .staff-walkthrough-tabs button.selected{background:#17639f;color:white}#staff-walkthrough-content>.panel{box-shadow:none;border:1px solid #e2eaf1}#staff-walkthrough-content input:disabled,#staff-walkthrough-content select:disabled,#staff-walkthrough-content textarea:disabled{opacity:.8}#staff-walkthrough-content a{cursor:default}

/* Split every calendar date into morning and afternoon */
#calendar-card .absence-half-wrap{display:grid;grid-template-rows:1fr 1fr;flex:1;min-height:54px;gap:0;width:100%}#calendar-card .absence-half{display:flex;flex-direction:column;gap:3px;min-width:0;padding:4px 0}#calendar-card .absence-half+.absence-half{border-top:1px dashed #c3d2df}#calendar-card .absence-half-label{font-size:9px;font-weight:750;letter-spacing:.4px;color:#60798e}#calendar-card .absence-half .absence-event{max-width:100%;white-space:normal;overflow-wrap:anywhere}#calendar-card .absence-cell{min-height:148px}#calendar-card .absence-cell strong{flex-shrink:0}@media(max-width:680px){#calendar-card .absence-cell{min-height:115px}#calendar-card .absence-half-label{font-size:8px}}

/* Calendar detail edit/delete controls */
#calendar-card .absence-detail-row{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:9px 0;border-bottom:1px solid #e2eaf1}#calendar-card .absence-detail-row>span:nth-child(2){flex:1;min-width:160px}#calendar-card .absence-detail-actions{display:inline-flex;gap:7px;flex-wrap:wrap}#calendar-card .absence-detail-actions button{padding:6px 11px;font-size:12px}

/* Compact initials when multiple employees share a calendar half-day */
#calendar-card .absence-half .absence-event.absence-initials{display:inline-flex;align-items:center;justify-content:center;width:28px;min-width:28px;height:24px;padding:2px 4px;border-radius:7px;font-size:10px;line-height:1;font-weight:800;letter-spacing:.1px;white-space:nowrap;overflow:hidden}#calendar-card .absence-half:has(.absence-initials){flex-direction:row;align-items:center;align-content:flex-start;flex-wrap:wrap;gap:3px}#calendar-card .absence-half:has(.absence-initials) .absence-half-label{width:100%}#calendar-card .absence-half .absence-more{font-size:10px}

#analysis-person-modal[hidden]{display:none!important}#analysis-person-modal{position:fixed;inset:0;z-index:99999;background:rgba(12,28,46,.68);display:flex;align-items:center;justify-content:center;padding:16px}#analysis-person-modal .analysis-person-dialog{background:#fff;color:#1c2c3b;border-radius:14px;width:min(1040px,100%);max-height:92vh;overflow:auto;padding:22px;box-shadow:0 20px 70px #0a1c3060}#analysis-person-modal .analysis-person-header{display:flex;justify-content:space-between;align-items:start;gap:14px}#analysis-person-modal .analysis-person-legend{display:flex;gap:22px;flex-wrap:wrap;margin:12px 0;color:#38506a}#analysis-person-modal .analysis-person-legend span:first-child{color:#235aa1}#analysis-person-modal .analysis-person-legend span:last-child{color:#187a56}#analysis-person-modal .analysis-person-month{margin:20px 0}#analysis-person-modal .analysis-person-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}#analysis-person-modal .analysis-person-weekday{text-align:center;font-size:12px;font-weight:700;padding:5px}#analysis-person-modal .analysis-person-day{min-height:74px;border:1px solid #dce5ef;border-radius:6px;padding:5px;min-width:0}#analysis-person-modal .analysis-person-day.outside{opacity:.35;background:#f3f6f9}#analysis-person-modal .analysis-person-day strong{display:block;font-size:12px}#analysis-person-modal .analysis-person-chip{display:block;border-radius:4px;font-size:11px;line-height:1.25;padding:3px;margin-top:3px;overflow-wrap:anywhere}#analysis-person-modal .analysis-person-chip.leave{background:#dceafb;color:#194b8c}#analysis-person-modal .analysis-person-chip.extra{background:#d7f2e6;color:#145c41}#analysis-person-modal .analysis-person-record{border-bottom:1px solid #e2eaf1;padding:8px 0;margin:0}@media(max-width:600px){#analysis-person-modal .analysis-person-dialog{padding:12px}#analysis-person-modal .analysis-person-day{min-height:58px;padding:2px}#analysis-person-modal .analysis-person-chip{font-size:9px}}

/* Manager overview greeting and summary above calendar */
#manager-welcome-banner{background:linear-gradient(115deg,#133c62,#1d628f);color:#fff;border-radius:16px;padding:26px 30px;margin-bottom:20px;box-shadow:0 10px 24px rgba(13,52,84,.12)}#manager-welcome-banner .welcome-eyebrow{display:block;font-size:11px;letter-spacing:1.6px;font-weight:700;color:#c8e3f7;margin-bottom:10px}#manager-welcome-banner h2{color:#fff;font-size:clamp(23px,3vw,34px);line-height:1.2;margin:0 0 7px}#manager-welcome-banner p{color:#e1effa;margin:0}#manager-overview-summary{margin-bottom:20px}@media(max-width:600px){#manager-welcome-banner{padding:20px}}

/* Staff overview mirrors management overview, restricted to own records */
#staff-personal-overview{display:none}body.portal-active:not(.manager-workspace)[data-portal-page="workspace-home"] #staff-personal-overview{display:block}body.portal-active:not(.manager-workspace) #workspace-home>#logout,body.portal-active:not(.manager-workspace) #workspace-home>#role,body.portal-active:not(.manager-workspace) #workspace-home>#welcome,body.portal-active:not(.manager-workspace) #workspace-home>#asg-staff-absence,body.portal-active:not(.manager-workspace) #workspace-home>.muted{display:none!important}body.portal-active:not(.manager-workspace) #workspace-home{padding:0;border:0;background:transparent;box-shadow:none}body.portal-active:not(.manager-workspace) #workspace-home:after{display:none!important}.staff-overview-banner{background:linear-gradient(115deg,#133c62,#1d628f);color:white;border-radius:16px;padding:26px 30px;margin-bottom:20px}.staff-overview-banner .welcome-eyebrow{display:block;color:#c8e3f7;font-size:11px;letter-spacing:1.6px;font-weight:700;margin-bottom:10px}.staff-overview-banner h2{color:white;font-size:clamp(23px,3vw,34px);margin:0 0 7px}.staff-overview-banner p{color:#e1effa;margin:0}.staff-overview-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-bottom:20px}.staff-overview-calendar{padding:22px}.staff-overview-calendar-heading h2{margin:0}.staff-overview-month{display:flex;align-items:center;justify-content:space-between;margin:20px 0 14px}.staff-overview-month button{font-size:20px;padding:6px 16px}.staff-overview-month strong{font-size:18px}.staff-overview-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.staff-weekday{text-align:center;font-size:11px;font-weight:750;color:#71879a;padding:8px 2px}.staff-calendar-day{background:white;border:1px solid #e0e6ed;border-radius:8px;min-height:86px;padding:9px;min-width:0}.staff-calendar-day strong{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;font-size:13px}.staff-calendar-day.today strong{background:#17639f;color:white}.staff-calendar-event{display:block;margin-top:5px;border-radius:5px;background:#dcebf8;color:#1a5078;font-size:11px;padding:4px;overflow-wrap:anywhere}@media(max-width:700px){.staff-overview-summary{grid-template-columns:1fr 1fr;gap:10px}.staff-overview-summary .manager-summary-link{padding:13px}.staff-overview-banner{padding:20px}.staff-calendar-day{min-height:60px;padding:4px}.staff-overview-calendar-grid{gap:3px}.staff-calendar-event{font-size:9px;padding:2px}}

/* Staff holiday status legend */
.staff-calendar-legend{display:flex;align-items:center;flex-wrap:wrap;gap:12px 22px;margin:16px 0 8px;font-size:13px;font-weight:650;color:#304c63}.staff-calendar-legend span{display:inline-flex;align-items:center;gap:7px}.staff-legend-dot{display:inline-block;width:12px;height:12px;border-radius:4px}.staff-legend-dot.approved{background:#25875c}.staff-legend-dot.pending{background:#df8a22}.staff-calendar-event.approved{background:#d9f2e4;color:#17613d;border:1px solid #a7dfbd}.staff-calendar-event.pending{background:#fff0d5;color:#94570c;border:1px solid #f2c67d}

/* Staff time-off request history stays with request form; staff forms is an independent page */
body.portal-active:not(.manager-workspace) #app main>#forms-card{display:none!important}body.portal-active:not(.manager-workspace)[data-portal-page="forms-card"] #app main>#forms-card{display:block!important;max-width:1100px;margin:0 0 24px}body.portal-active:not(.manager-workspace)[data-portal-page="forms-card"] #app main>.grid{display:none!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#requests-card{display:block!important;max-width:1100px;margin-top:20px}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-card{display:block!important}body.portal-active:not(.manager-workspace) #app main>.grid>#requests-card{display:none}body.portal-active.manager-workspace #app main>#forms-card{display:none!important}

/* Strictly separate staff forms from holiday requests; last-rule overrides */
body.portal-active:not(.manager-workspace)[data-portal-page="forms-card"] #app main>.grid,body.portal-active:not(.manager-workspace)[data-portal-page="forms-card"] #app main>.grid #leave-card,body.portal-active:not(.manager-workspace)[data-portal-page="forms-card"] #app main>.grid #requests-card{display:none!important}body.portal-active:not(.manager-workspace)[data-portal-page="forms-card"] #app main>#forms-card{display:block!important}body.portal-active:not(.manager-workspace):not([data-portal-page="forms-card"]) #app main>#forms-card{display:none!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{display:block!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid #leave-card,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid #requests-card{display:block!important}

/* Keep holiday entitlement off the Staff Forms page */
body.portal-active[data-portal-page="forms-card"] #balance-card,body.portal-active[data-portal-page="forms-card"] #staff-overview-balance,body.portal-active[data-portal-page="forms-card"] #app main>.grid{display:none!important}

/* Staff policy reference page */
body.portal-active #staff-policies{display:none!important}body.portal-active:not(.manager-workspace)[data-portal-page="staff-policies"] #staff-policies{display:block!important;max-width:1100px}body.portal-active:not(.manager-workspace)[data-portal-page="staff-policies"] #app main>.grid,body.portal-active:not(.manager-workspace)[data-portal-page="staff-policies"] #forms-card{display:none!important}.staff-policies-header{background:linear-gradient(120deg,#153b5d,#2775a8);color:white;padding:25px;border-radius:13px;margin-bottom:20px}.staff-policies-header span{font-size:11px;letter-spacing:1.5px;opacity:.8}.staff-policies-header h2{font-size:25px!important;color:white;margin:9px 0}.staff-policies-header p{max-width:800px;color:#e5f1fa}.staff-policy-tabs{display:flex;flex-wrap:wrap;gap:9px;margin-bottom:20px}.staff-policy-tab{font-size:13px;padding:11px 15px;background:#e7f0f7!important;color:#214969!important}.staff-policy-tab.active{background:#17639f!important;color:white!important}.staff-policy-document{display:none}.staff-policy-document.active{display:block}.staff-policy-document h3{font-size:21px;margin:10px 0}.staff-policy-part{margin:9px 0;border:1px solid #dae5ef;border-radius:10px;padding:13px 16px;background:white}.staff-policy-part summary{font-weight:700;cursor:pointer;color:#1c4564}.staff-policy-part p{white-space:pre-line;line-height:1.75;margin:13px 0 3px;color:#334b5f}

/* Holiday balance belongs only to Request Time Off, never to reference pages */
body.portal-active:not(.manager-workspace) #balance-card{display:none!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #balance-card{display:block!important}body.portal-active:not(.manager-workspace)[data-portal-page="staff-policies"] #balance-card,body.portal-active:not(.manager-workspace)[data-portal-page="forms-card"] #balance-card{display:none!important}

/* Academic calendar: independent staff page */
body.portal-active #academic-calendar{display:none!important}body.portal-active:not(.manager-workspace)[data-portal-page="academic-calendar"] #academic-calendar{display:block!important;max-width:1100px}body.portal-active:not(.manager-workspace)[data-portal-page="academic-calendar"] #app main>.grid,body.portal-active:not(.manager-workspace)[data-portal-page="academic-calendar"] #forms-card,body.portal-active:not(.manager-workspace)[data-portal-page="academic-calendar"] #staff-policies,body.portal-active:not(.manager-workspace)[data-portal-page="academic-calendar"] #balance-card{display:none!important}.academic-head{background:linear-gradient(115deg,#153b5d,#2775a8);color:#fff;border-radius:14px;padding:24px}.academic-head span{font-size:11px;letter-spacing:1.5px;opacity:.8}.academic-head h2{font-size:25px!important;color:white;margin:6px 0}.academic-head p{color:#e7f2fa}.academic-controls{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:20px 0}.academic-controls label{font-weight:700}.academic-controls select{min-width:210px}.academic-controls strong{font-size:17px;min-width:170px;text-align:center}.academic-legend{display:flex;flex-wrap:wrap;gap:10px 20px;margin:16px 0;font-size:12px}.academic-legend span{display:flex;align-items:center;gap:7px}.academic-key{width:12px;height:12px;border-radius:3px;display:inline-block;background:#f4f7fa;border:1px solid #d8e1eb}.academic-key.holiday{background:#e5d5f8}.academic-key.bank{background:#f7c5c5}.academic-key.special{background:#d2e9b9}.academic-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.academic-cell{min-height:73px;border:1px solid #e1e8f0;border-radius:9px;padding:8px;background:#fff}.academic-cell.muted{opacity:.3}.academic-cell.holiday{background:#e9dcf7;border-color:#d9c5ef}.academic-cell.bank{background:#f9d5d5;border-color:#efbcbc}.academic-cell.special{background:#dceecb;border-color:#b8d99e}.academic-cell .academic-day{font-weight:750;font-size:14px}.academic-cell small{display:block;margin-top:5px;font-size:10px;line-height:1.2}.academic-weekday{text-align:center;color:#5b7387;font-weight:750;padding:8px}.academic-note{margin-top:16px;font-size:12px}@media(max-width:640px){.academic-month-grid{gap:3px}.academic-cell{min-height:53px;padding:4px}.academic-cell small{font-size:8px}.academic-controls strong{min-width:110px;font-size:14px}}

/* Independent staff training page */
body.portal-active #staff-training{display:none!important}body.portal-active:not(.manager-workspace)[data-portal-page="staff-training"] #staff-training{display:block!important;max-width:1100px}body.portal-active:not(.manager-workspace)[data-portal-page="staff-training"] #app main>.grid,body.portal-active:not(.manager-workspace)[data-portal-page="staff-training"] #forms-card,body.portal-active:not(.manager-workspace)[data-portal-page="staff-training"] #staff-policies,body.portal-active:not(.manager-workspace)[data-portal-page="staff-training"] #academic-calendar,body.portal-active:not(.manager-workspace)[data-portal-page="staff-training"] #balance-card{display:none!important}.staff-training-head{padding:25px;border-radius:14px;background:linear-gradient(115deg,#153b5d,#2775a8);color:white;margin-bottom:20px}.staff-training-head span{font-size:11px;letter-spacing:1.5px;opacity:.8}.staff-training-head h2{font-size:25px!important;color:white;margin:8px 0}.staff-training-head p{color:#e7f2fa}.staff-training-resource{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;padding:23px;border:1px solid #dce7f0;border-radius:13px;background:#f8fbfd;margin-bottom:14px}.staff-training-resource h3{margin:0 0 7px;color:#173d5d}.staff-training-resource p{margin:0;color:#5c7388}.staff-training-link{display:inline-block;background:#17639f;color:#fff!important;text-decoration:none;border-radius:9px;padding:13px 18px;font-weight:700}.staff-training-link:hover{background:#104d7e;text-decoration:none}

/* Escort incident form feature card */
.staff-form-feature{display:flex;align-items:center;gap:17px;padding:19px 20px;background:linear-gradient(115deg,#eaf5f7,#f6fbfc);border:1px solid #a9d7dc;border-radius:13px;text-decoration:none!important;color:#163c53!important;transition:transform .18s,box-shadow .18s}.staff-form-feature:hover{transform:translateY(-2px);box-shadow:0 7px 20px #173f561c}.staff-form-feature-icon{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:12px;background:#187f89;color:#fff;font-size:26px;font-weight:700}.staff-form-feature-content{display:flex;flex-direction:column;gap:5px}.staff-form-feature-content strong{font-size:16px}.staff-form-feature-content small{color:#557382;font-size:12px;line-height:1.5}.staff-form-feature-content em{color:#087c88;font-size:12px;font-weight:750;font-style:normal}

/* AC Garages matching maintenance icon */
.staff-form-maintenance-icon svg{width:28px;height:28px;display:block}

/* Compact leave entitlement card: only on Request Time Off */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #balance-card{display:flex!important;flex-direction:row;align-items:center;justify-content:space-between;gap:18px;max-width:1100px;width:100%;min-height:0!important;height:auto!important;padding:15px 20px!important;margin:0 0 14px!important;border:1px solid #cde4e9!important;border-radius:13px!important;background:linear-gradient(110deg,#f1f9fa,#fff)!important;box-shadow:none!important}.holiday-balance-top{display:flex;align-items:center;gap:12px;min-width:0}.holiday-balance-symbol{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:11px;background:#d7f0ec;color:#137f83;font-size:23px}.holiday-balance-top h2{font-size:15px!important;line-height:1.3;margin:0 0 3px!important;color:#1a4658}.holiday-balance-top p{font-size:12px;color:#648091;margin:0}.holiday-balance-compact #balance{font-size:17px;font-weight:750;text-align:right;color:#165f70;line-height:1.4;max-width:58%}.holiday-balance-compact #balance *{margin-top:0;margin-bottom:0}.holiday-balance-compact #balance strong{font-size:21px;color:#126b78}@media(max-width:560px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #balance-card{padding:13px!important;gap:10px;align-items:flex-start;flex-direction:column}.holiday-balance-compact #balance{max-width:100%;text-align:left;font-size:15px;padding-left:54px}}

/* Request Time Off: fix root grid stretching balance beside form */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:16px!important;grid-template-columns:none!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#balance-card{order:0!important;flex:none!important;align-self:stretch!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;margin:0!important;box-sizing:border-box!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-card{order:1!important;flex:none!important;align-self:stretch!important;width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;box-sizing:border-box!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#requests-card{order:2!important;flex:none!important;align-self:stretch!important;width:100%!important;max-width:none!important;margin-top:0!important;box-sizing:border-box!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #balance-card #balance{background:none!important;padding:0!important;border:none!important;box-shadow:none!important;min-height:0!important;width:auto!important}

/* Time off collage: form left, holiday top right, requests below */
@media(min-width:900px){
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;align-items:stretch!important;gap:16px!important;grid-auto-flow:row!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-card{grid-column:1!important;grid-row:1 / 3!important;order:0!important;min-width:0!important;width:auto!important;align-self:stretch!important;margin:0!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#balance-card{grid-column:2!important;grid-row:1!important;order:0!important;align-self:stretch!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:space-between!important;min-width:0!important;width:auto!important;margin:0!important;padding:16px!important;gap:12px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#requests-card{grid-column:2!important;grid-row:2!important;order:0!important;min-width:0!important;width:auto!important;min-height:0!important;max-height:none!important;align-self:stretch!important;margin:0!important;overflow-y:auto!important;overflow-x:auto!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#balance-card #balance{max-width:45%!important;text-align:right!important;white-space:normal!important}
}
@media(max-width:899px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{display:flex!important;flex-direction:column!important;gap:14px!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#balance-card{order:0!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-card{order:1!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#requests-card{order:2!important}}

/* Holiday balance: bold centered number filling top-right card */
@media(min-width:900px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#balance-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:9px!important;min-height:175px!important;padding:20px 16px!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #balance-card .holiday-balance-top{display:flex!important;justify-content:center!important;align-items:center!important;gap:9px!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #balance-card .holiday-balance-symbol{width:35px!important;height:35px!important;flex-basis:35px!important;font-size:19px!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #balance-card .holiday-balance-top p{display:none!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #balance-card #balance{max-width:100%!important;width:100%!important;text-align:center!important;font-size:clamp(28px,3.2vw,48px)!important;line-height:1.13!important;font-weight:850!important;letter-spacing:-1.1px!important;white-space:normal!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #balance-card #balance strong,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #balance-card #balance b{font-size:inherit!important;font-weight:inherit!important;color:inherit!important}}

/* Unified holiday and requests panel */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-right-panel{display:flex!important;flex-direction:column!important;gap:0!important;min-width:0!important;min-height:0!important;padding:0!important;overflow:hidden!important;background:#fff!important;border:1px solid #dbe6ef!important;border-radius:15px!important;box-shadow:none!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel>#balance-card{display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:10px!important;flex:0 0 auto!important;min-height:175px!important;width:100%!important;max-width:none!important;margin:0!important;padding:23px 18px!important;border:0!important;border-bottom:1px solid #e1eaf1!important;border-radius:0!important;box-shadow:none!important;background:linear-gradient(135deg,#f1fafb,#fff)!important;text-align:center!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel>#balance-card .holiday-balance-top{justify-content:center!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel>#balance-card #balance{width:100%!important;max-width:100%!important;text-align:center!important;font-size:clamp(28px,3.2vw,48px)!important;line-height:1.2!important;font-weight:850!important;background:transparent!important;padding:0!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel>#requests-card{display:block!important;flex:1 1 auto!important;min-height:0!important;max-width:none!important;width:100%!important;margin:0!important;padding:22px!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:auto!important}
@media(min-width:900px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(320px,1fr)!important;grid-template-rows:auto!important;align-items:stretch!important;gap:16px!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-card{grid-column:1!important;grid-row:1!important;align-self:stretch!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-right-panel{grid-column:2!important;grid-row:1!important;align-self:stretch!important}}
@media(max-width:899px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{display:flex!important;flex-direction:column!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-card{order:0!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-right-panel{order:1!important}}

/* Hide empty staff overview shell on independent staff pages */
body.portal-active:not(.manager-workspace)[data-portal-page="forms-card"] #app main>#workspace-home,body.portal-active:not(.manager-workspace)[data-portal-page="staff-policies"] #app main>#workspace-home,body.portal-active:not(.manager-workspace)[data-portal-page="academic-calendar"] #app main>#workspace-home,body.portal-active:not(.manager-workspace)[data-portal-page="staff-training"] #app main>#workspace-home{display:none!important}

/* Actual DOM is main > #app > #workspace-home, not #app > main. Hide the blank overview panel on all standalone staff pages. */
body.portal-active:not(.manager-workspace)[data-portal-page="forms-card"] main #app>#workspace-home,body.portal-active:not(.manager-workspace)[data-portal-page="staff-policies"] main #app>#workspace-home,body.portal-active:not(.manager-workspace)[data-portal-page="academic-calendar"] main #app>#workspace-home,body.portal-active:not(.manager-workspace)[data-portal-page="staff-training"] main #app>#workspace-home{display:none!important}

/* Definitive empty-panel fix, independent of DOM nesting */
body.portal-active:not(.manager-workspace):is([data-portal-page="forms-card"],[data-portal-page="staff-policies"],[data-portal-page="academic-calendar"],[data-portal-page="staff-training"]) #workspace-home{display:none!important}

/* Remove the ACTUAL holiday-and-requests wrapper (not just its text) from every other staff page */
body.portal-active:not(.manager-workspace):not([data-portal-page="leave-card"]) #leave-right-panel{display:none!important}
body.portal-active:not(.manager-workspace):is([data-portal-page="forms-card"],[data-portal-page="staff-policies"],[data-portal-page="academic-calendar"],[data-portal-page="staff-training"]) #app .grid{display:none!important}
body.portal-active:not(.manager-workspace):is([data-portal-page="forms-card"],[data-portal-page="staff-policies"],[data-portal-page="academic-calendar"],[data-portal-page="staff-training"]) #app #workspace-home{display:none!important}

/* Emergency contacts: dedicated staff resource */
body.portal-active:not(.manager-workspace) #emergency-contacts{display:none}body.portal-active:not(.manager-workspace)[data-portal-page="emergency-contacts"] #emergency-contacts{display:block!important}body.portal-active:not(.manager-workspace)[data-portal-page="emergency-contacts"] #workspace-home,body.portal-active:not(.manager-workspace)[data-portal-page="emergency-contacts"] #app .grid,body.portal-active:not(.manager-workspace)[data-portal-page="emergency-contacts"] #leave-right-panel{display:none!important}.em-contact-header{background:linear-gradient(110deg,#173d5c,#246a89);color:white;padding:25px 28px;border-radius:12px;margin-bottom:20px}.em-contact-header span{font-size:11px;letter-spacing:1.4px;font-weight:750;color:#c9e5ed}.em-contact-header h2{font-size:27px;color:white;margin:9px 0}.em-contact-header p{margin:0;color:#dcebf3;font-size:13px}.em-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.em-contact-card{background:#fff;border:1px solid #dce6ec;border-radius:12px;padding:20px;min-width:0}.em-contact-card:first-child{grid-column:1/-1}.em-contact-card h3{font-size:16px;color:#173d5c;margin:0 0 13px}.em-contact-card p{font-size:13px;color:#506676;line-height:1.6;margin:6px 0}.em-contact-numbers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:15px}.em-contact-line{display:flex;flex-direction:column;gap:4px;background:#f2f7f9;border-radius:9px;padding:11px 12px;min-width:0}.em-contact-line span{font-size:11px;font-weight:650;color:#526e7b}.em-contact-line a{font-size:15px;font-weight:800;color:#087586;text-decoration:none;overflow-wrap:anywhere}.em-contact-line a:hover{text-decoration:underline}@media(max-width:750px){.em-contact-grid{grid-template-columns:1fr}.em-contact-card:first-child{grid-column:auto}.em-contact-numbers{grid-template-columns:1fr 1fr}.em-contact-header{padding:21px}.em-contact-header h2{font-size:23px}}@media(max-width:430px){.em-contact-numbers{grid-template-columns:1fr}}

/* Staff FAQ */
body.portal-active:not(.manager-workspace) #staff-faq{display:none}body.portal-active:not(.manager-workspace)[data-portal-page="staff-faq"] #staff-faq{display:block!important}body.portal-active:not(.manager-workspace)[data-portal-page="staff-faq"] #workspace-home,body.portal-active:not(.manager-workspace)[data-portal-page="staff-faq"] #app .grid,body.portal-active:not(.manager-workspace)[data-portal-page="staff-faq"] #leave-right-panel{display:none!important}.faq-head{background:linear-gradient(110deg,#173d5c,#246a89);color:white;padding:26px;border-radius:12px;margin-bottom:22px}.faq-head span{font-size:11px;letter-spacing:1.3px;color:#c9e5ed}.faq-head h2{color:white;font-size:27px;margin:9px 0}.faq-head p{color:#dcebf3;margin:0}.faq-search-label{display:block;font-weight:700;margin-bottom:7px}.faq-group{margin:22px 0}.faq-group h3{font-size:17px;color:#183f5a;margin-bottom:11px}.faq-item{border:1px solid #dce6ec;border-radius:10px;margin:9px 0;background:white}.faq-item summary{cursor:pointer;font-weight:700;padding:16px 18px;color:#183f5a}.faq-item[open] summary{border-bottom:1px solid #e4edf2}.faq-item p{padding:15px 18px;margin:0;color:#425d6e;line-height:1.65}.faq-item[hidden],.faq-group[hidden]{display:none!important}#faq-search{width:100%;max-width:700px;box-sizing:border-box}

/* Clear, ordered navigation groups */
body.portal-active #workspace-nav .nav-caption{margin-top:9px;padding-top:15px;padding-bottom:6px;font-size:10px;letter-spacing:1.45px;color:#8faec3}body.portal-active #workspace-nav .nav-caption:first-of-type{margin-top:0}body.portal-active #workspace-nav .nav-link{margin-bottom:2px;min-height:37px;display:flex;align-items:center;gap:10px}body.portal-active #workspace-nav .nav-link .nav-icon{flex:0 0 23px;text-align:center}body.portal-active #workspace-nav{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#53758c transparent}body.portal-active #workspace-nav .nav-footer{margin-top:auto;padding-top:17px}

/* Standalone staff extra-time page */
body.portal-active:not(.manager-workspace) #staff-extra-time{display:none}body.portal-active:not(.manager-workspace)[data-portal-page="staff-extra-time"] #staff-extra-time{display:block!important}body.portal-active:not(.manager-workspace)[data-portal-page="staff-extra-time"] #workspace-home,body.portal-active:not(.manager-workspace)[data-portal-page="staff-extra-time"] #app .grid,body.portal-active:not(.manager-workspace)[data-portal-page="staff-extra-time"] #leave-right-panel{display:none!important}.extra-time-page-head{background:linear-gradient(110deg,#173d5c,#246a89);color:#fff;border-radius:12px;padding:26px;margin-bottom:18px}.extra-time-page-head span{font-size:11px;letter-spacing:1.4px;color:#c9e5ed}.extra-time-page-head h2{color:#fff;font-size:27px;margin:8px 0}.extra-time-page-head p{color:#dcebf3;margin:0}.extra-time-history{margin-top:24px;border-top:1px solid #dce6ed;padding-top:18px}.extra-time-history h3{color:#173d5c}.extra-time-history>div{overflow-x:auto}#staff-extra-time-form-host .asg-box{box-shadow:none!important;border:1px solid #dce6ed!important;border-radius:12px!important;margin:0!important}#staff-extra-time-form-host .asg-box h2{margin-top:0}#staff-extra-time-form-host .asg-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#staff-extra-time-form-host label{display:block;font-size:13px;font-weight:650}#staff-extra-time-form-host input,#staff-extra-time-form-host select,#staff-extra-time-form-host textarea{display:block;width:100%;box-sizing:border-box;margin-top:6px}#staff-extra-time-form-host textarea{min-height:95px}@media(max-width:600px){#staff-extra-time-form-host .asg-row{grid-template-columns:1fr}}

/* Keep recent holiday requests fully inside the right-hand card */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel>#requests-card{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;width:100%!important;overflow-x:auto!important;overflow-y:auto!important;overflow-wrap:anywhere!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests{display:block!important;box-sizing:border-box!important;min-width:0!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-wrap:anywhere!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests>*{max-width:100%;box-sizing:border-box}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests table{max-width:100%;width:100%;min-width:0;table-layout:auto}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests td,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests th{overflow-wrap:anywhere;white-space:normal}@media(min-width:900px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{min-width:0!important;width:100%!important;max-width:100%!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-right-panel{min-width:0!important;width:100%!important;max-width:100%!important}}

/* Restore My Requests visibility: never clip the history below the balance */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel{height:auto!important;min-height:100%!important;max-height:none!important;overflow:visible!important;align-self:stretch!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel>#requests-card{display:block!important;visibility:visible!important;opacity:1!important;flex:1 0 auto!important;height:auto!important;min-height:180px!important;max-height:none!important;overflow:visible!important;position:relative!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests{display:block!important;visibility:visible!important;opacity:1!important;height:auto!important;min-height:36px!important;overflow-x:auto!important;overflow-y:visible!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests table{display:table!important;width:max-content!important;min-width:100%!important;max-width:none!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests tbody{display:table-row-group!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests tr{display:table-row!important}

/* Extra time vehicle movement guidance */
#staff-extra-time-form-host .extra-time-bus-notice,#asg-extra-time-request .extra-time-bus-notice{padding:14px 16px;margin:15px 0;border:1px solid #f0d4a2;border-left:4px solid #d18b26;border-radius:9px;background:#fff9ee;color:#674615;font-size:14px;line-height:1.5;font-weight:600}

/* Four evenly spaced manager overview summary cards */
body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-overview-summary{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:850px){body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-overview-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-overview-summary{grid-template-columns:1fr!important}}

.manager-calendar-switch{display:flex;align-items:center;gap:12px;margin:12px 0 18px;flex-wrap:wrap}.manager-calendar-switch label{font-weight:700;color:#173b5a}.manager-calendar-switch select{padding:9px 14px;border:1px solid #ccd9e5;border-radius:8px;background:#fff;min-width:165px}.manager-extra-event.approved{background:#d9f4df!important;color:#166534!important;border-left:3px solid #249347}.manager-extra-event.pending{background:#fff0ce!important;color:#965600!important;border-left:3px solid #e5a32e}

/* Team calendars live only in the dedicated management tab. */
body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card{display:none!important}
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #manager-overview{display:none!important}
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card{display:block!important}
#calendar-card[data-calendar-view="extra"] #calendar{display:none!important}
#calendar-card[data-calendar-view="extra"] #manager-extra-hours-calendar{display:block!important}
#calendar-card[data-calendar-view="absences"] #calendar{display:block!important}
#calendar-card[data-calendar-view="absences"] #manager-extra-hours-calendar{display:none!important}

/* Restore management overview absence calendar, while limiting the switcher to Team Calendars. */
body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-overview{display:block!important}
body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-overview-calendar #calendar-card{display:block!important}
body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card .manager-calendar-switch,body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card #manager-extra-hours-calendar{display:none!important}
body.portal-active.manager-workspace[data-portal-page="workspace-home"] #calendar-card #calendar{display:block!important}
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #manager-overview{display:block!important}
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #manager-overview-banner,body.portal-active.manager-workspace[data-portal-page="calendar-card"] #manager-overview-intro,body.portal-active.manager-workspace[data-portal-page="calendar-card"] #manager-overview-summary{display:none!important}
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #manager-overview-calendar #calendar-card{display:block!important}

/* Academic calendar is a third exclusive Team Calendars view. */
#calendar-card[data-calendar-view="academic"] #calendar,#calendar-card[data-calendar-view="academic"] #manager-extra-hours-calendar{display:none!important}
#calendar-card[data-calendar-view="academic"] #manager-academic-calendar{display:block!important}
#calendar-card:not([data-calendar-view="academic"]) #manager-academic-calendar{display:none!important}
#manager-academic-calendar{margin-top:16px}
body.portal-active.manager-workspace[data-portal-page="workspace-home"] #manager-academic-calendar{display:none!important}

/* Ensure the management school calendar uses the same seven-column layout as the staff calendar. */
#manager-academic-calendar #manager-academic-month-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;width:100%;margin-top:14px}
#manager-academic-calendar .academic-cell{min-width:0;min-height:73px}
@media(max-width:640px){#manager-academic-calendar #manager-academic-month-grid{gap:3px}#manager-academic-calendar .academic-cell{min-height:53px}}

/* Exactly one Team Calendars view at a time; override older absence display rules. */
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card[data-calendar-view="academic"] #calendar,body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card[data-calendar-view="extra"] #calendar{display:none!important}
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card[data-calendar-view="academic"] #manager-extra-hours-calendar,body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card[data-calendar-view="absences"] #manager-extra-hours-calendar{display:none!important}
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card[data-calendar-view="absences"] #manager-academic-calendar,body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card[data-calendar-view="extra"] #manager-academic-calendar{display:none!important}
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card[data-calendar-view="academic"] #manager-academic-calendar{display:block!important}
body.portal-active.manager-workspace[data-portal-page="calendar-card"] #calendar-card[data-calendar-view="extra"] #manager-extra-hours-calendar{display:block!important}

/* Colour-coded calendar keys for absence and extra-time views. */
#calendar-card .absence-legend,#calendar-card .team-calendar-legend{display:flex;align-items:center;flex-wrap:wrap;gap:9px 20px;margin:10px 0 16px;font-size:12px;color:#52677a}
#calendar-card .team-key-item{display:inline-flex;align-items:center;gap:8px;font-weight:650;color:#304c63}
#calendar-card .team-key-swatch{display:inline-block;width:15px;height:15px;flex:0 0 15px;border-radius:4px;border:1px solid transparent}
#calendar-card .team-key-swatch.holiday{background:rgba(27,110,166,.18);border-color:rgba(27,110,166,.38)}
#calendar-card .team-key-swatch.other{background:rgba(193,133,51,.2);border-color:rgba(193,133,51,.42)}
#calendar-card .team-key-swatch.approved{background:#d9f4df;border-color:#249347}
#calendar-card .team-key-swatch.pending{background:#fff0ce;border-color:#e5a32e}
#calendar-card .team-key-note{font-weight:400;color:#607389}

/* Manager sidebar uses dedicated groups; staff sidebar remains separate. */
#workspace-nav [data-staff-only][hidden],#workspace-nav [data-manager-only][hidden]{display:none!important}
body.portal-active.manager-workspace #workspace-nav .nav-caption[data-manager-only]{color:#a9c7dd}

/* Analysis employee calendar: readable reason on hover or keyboard focus. */
#analysis-person-modal .analysis-person-chip.extra{position:relative;cursor:help;overflow:visible}
#analysis-person-modal .analysis-extra-tooltip{display:none;position:absolute;bottom:calc(100% + 7px);left:0;z-index:100;min-width:180px;max-width:min(290px,70vw);width:max-content;white-space:normal;overflow-wrap:anywhere;background:#17354e;color:#fff;border-radius:8px;padding:9px 11px;font-size:12px;font-weight:500;line-height:1.45;box-shadow:0 8px 22px #10283e45;pointer-events:none}
#analysis-person-modal .analysis-person-chip.extra:hover .analysis-extra-tooltip,#analysis-person-modal .analysis-person-chip.extra:focus-visible .analysis-extra-tooltip{display:block}
#analysis-person-modal .analysis-person-chip.extra:focus-visible{outline:2px solid #17354e;outline-offset:2px}

/* Staff leave: contain My Requests within viewport, overriding older overflow-visible rules. */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-right-panel{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;overflow:hidden!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel>#requests-card{min-width:0!important;max-width:100%!important;width:100%!important;box-sizing:border-box!important;overflow:hidden!important;padding:18px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests{min-width:0!important;width:100%!important;max-width:100%!important;overflow-x:auto!important;overflow-y:auto!important;box-sizing:border-box!important;overscroll-behavior-x:contain}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests th,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests td{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
@media(max-width:899px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{display:flex!important;flex-direction:column!important;width:100%!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-card,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-right-panel{width:100%!important;min-width:0!important;max-width:100%!important}}

/* Staff time-off page: form only, with compact live holiday balance in heading. */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-card{display:block!important;width:100%!important;max-width:900px!important;min-width:0!important;margin:0 auto!important;box-sizing:border-box!important;grid-column:auto!important;grid-row:auto!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel{display:none!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-header{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid #e1eaf1}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-heading{flex:1 1 290px;min-width:0}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-eyebrow{font-size:11px;font-weight:800;letter-spacing:1.5px;color:#31729d}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-heading h2{font-size:26px;margin:5px 0 7px}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-heading p{margin:0;max-width:490px}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #balance-card{display:flex!important;flex:0 1 225px!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;width:auto!important;max-width:260px!important;min-width:180px!important;min-height:0!important;height:auto!important;margin:0!important;padding:12px 15px!important;border:1px solid #cce4e6!important;border-radius:12px!important;background:#f0faf9!important;box-shadow:none!important;gap:5px!important;text-align:left!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #balance-card .holiday-balance-top{display:flex!important;align-items:center!important;gap:7px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #balance-card .holiday-balance-symbol{display:none!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #balance-card h2{font-size:12px!important;margin:0!important;color:#42677a!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #balance-card .holiday-balance-top p{display:none!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #balance-card #balance{display:block!important;font-size:19px!important;line-height:1.3!important;font-weight:800!important;text-align:left!important;width:100%!important;max-width:100%!important;padding:0!important;margin:0!important;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere!important}
@media(max-width:600px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-header{align-items:stretch}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #balance-card{flex:1 1 100%!important;max-width:100%!important}}

/* Staff time-off form: full available page width and matching blue heading. */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-card{width:100%!important;max-width:none!important;margin:0!important;min-width:0!important;box-sizing:border-box!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-header{background:linear-gradient(112deg,#153a5b,#2376ad)!important;color:#fff!important;border-radius:14px!important;padding:22px 24px!important;margin:-4px -4px 22px!important;border-bottom:0!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-heading h2,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-eyebrow,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-heading p{color:#fff!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-heading p{opacity:.87}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #balance-card{background:#ffffff!important;border-color:#dbeaf1!important;color:#173a55!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #balance-card h2{color:#376078!important}
@media(max-width:600px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card .leave-form-header{padding:18px 16px!important}}

/* Wide responsive two-column time-off form. Keep existing field IDs and behaviour. */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave.leave-wide-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:20px 24px!important;align-items:start!important;width:100%!important;max-width:none!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-field{min-width:0!important;display:flex!important;flex-direction:column!important;gap:7px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-fields-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;min-width:0}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-fields-grid[hidden],body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-field[hidden]{display:none!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-grid-note{grid-column:1/-1}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave input:not([type="hidden"]),body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave select,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave textarea{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;margin:0!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-submit-row{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:16px;padding-top:8px}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-submit-row p{margin:0}
@media(max-width:700px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave.leave-wide-form,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-fields-grid{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}}

/* Approval notification badges, centre and unobtrusive popup. */
#workspace-nav .notification-nav{border:0;background:transparent;text-align:left;cursor:pointer;font:inherit;color:#c7d7e5;margin-top:15px}
#workspace-nav .notification-nav:hover{background:#1e3c55;color:#fff}
#workspace-nav .notification-badge{margin-left:auto;flex:none;min-width:21px;height:21px;padding:1px 6px;border-radius:14px;background:#d93043;color:white;font-size:12px;font-weight:800;line-height:19px;text-align:center}
#workspace-nav .notification-badge[hidden]{display:none!important}
#portal-notification-panel[hidden],.portal-notification-toast[hidden]{display:none!important}
#portal-notification-panel{position:fixed;inset:0;z-index:1000;background:#0a203480;display:flex;align-items:center;justify-content:center;padding:18px}
#portal-notification-panel .notification-dialog{width:min(520px,100%);max-height:85vh;overflow:auto;background:#fff;border-radius:16px;padding:24px;box-shadow:0 20px 60px #071b3050;color:#17334a}
#portal-notification-panel .notification-head{display:flex;align-items:center;justify-content:space-between;gap:15px}
#portal-notification-panel .notification-head h2{margin:0}
#portal-notification-panel .notification-subtitle{font-size:13px;color:#617487}
#portal-notification-panel .notification-item{display:flex;flex-direction:column;gap:5px;width:100%;text-align:left;background:#edf5fc;border:1px solid #d7e6f3;color:#193d5a;border-radius:10px;padding:13px;margin:9px 0;cursor:pointer}
#portal-notification-panel .notification-item.is-read{background:#fff;color:#6a7c89}
#portal-notification-panel .notification-item span{font-size:12px}
#portal-notification-panel .notification-read-all{margin-top:12px}
.portal-notification-toast{position:fixed;right:22px;bottom:24px;z-index:1100;max-width:min(350px,calc(100vw - 44px));background:#173d5c;color:#fff;padding:16px 20px;border-radius:12px;box-shadow:0 12px 35px #10283e55;cursor:pointer;font-size:14px}

/* Account-based approval notifications and section badges */
#workspace-nav .portal-notification-button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;background:transparent;color:#d4e4f0;border:1px solid #ffffff2b;border-radius:10px;padding:11px 13px;margin-top:14px;font-size:13px;cursor:pointer}
#workspace-nav .portal-notification-button:hover{background:#244b6a}
#workspace-nav .portal-unread-badge{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;min-width:21px;height:21px;padding:0 5px;border-radius:99px;background:#d93649;color:#fff;font-size:11px;font-weight:800;line-height:1}
#workspace-nav .portal-unread-badge[hidden]{display:none!important}
#portal-notification-panel{position:fixed;z-index:100;left:258px;bottom:18px;width:min(380px,calc(100vw - 280px));max-height:min(530px,80vh);overflow:auto;background:#fff;border:1px solid #d9e4ed;border-radius:15px;box-shadow:0 18px 65px #0d253d40;color:#17354e}
#portal-notification-panel[hidden]{display:none!important}
.portal-notification-head{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid #e3eaf1}
.portal-notification-head button{padding:2px 9px;background:#eaf1f7;color:#1b405b;font-size:23px}
.portal-notification-list{max-height:435px;overflow:auto}
.portal-notification-item{display:flex;flex-direction:column;gap:4px;width:100%;padding:13px 18px;text-align:left;background:#fff;color:#233e52;border:0;border-bottom:1px solid #edf1f5;border-radius:0;font-size:13px}
.portal-notification-item.unread{background:#eef6fc;border-left:4px solid #2576af}
.portal-notification-item:hover{background:#e3f0fa;color:#17354e}
.portal-notification-item span{font-weight:400}.portal-notification-item small{color:#60768a}
#portal-notification-toasts{position:fixed;top:88px;right:18px;z-index:110;display:flex;flex-direction:column;gap:9px;max-width:min(340px,calc(100vw - 36px))}
.portal-notification-toast{display:flex;flex-direction:column;gap:6px;background:#fff;color:#17354e;border-left:4px solid #2576af;border-radius:10px;padding:13px 15px;box-shadow:0 9px 32px #10283e35;font-size:13px}
.portal-notification-toast button{align-self:flex-start;padding:5px 12px;font-size:12px}
@media(max-width:1000px){#portal-notification-panel{left:12px;bottom:85px;width:min(380px,calc(100vw - 24px))}}

/* Manager messages and staff inbox */
#portal-messages[hidden],#portal-message-compose[hidden]{display:none!important}
#portal-messages .portal-messages-heading{padding:22px 25px;background:linear-gradient(112deg,#153a5b,#2376ad);border-radius:13px;color:white;margin-bottom:24px}
#portal-messages .portal-messages-heading span{font-size:11px;letter-spacing:1.3px;font-weight:800}
#portal-messages .portal-messages-heading h2{color:#fff;font-size:26px;margin:7px 0}
#portal-messages .portal-messages-heading p{color:#e2f2fc;margin:0}
#portal-message-compose{padding:20px;background:#f4f8fc;border:1px solid #dbe7f0;border-radius:12px;margin-bottom:26px}
#portal-message-form{display:grid;gap:10px}#portal-message-form label{font-weight:700}#portal-message-form input,#portal-message-form textarea,#portal-message-form select{width:100%;max-width:100%;box-sizing:border-box}#portal-message-form button{justify-self:start;margin-top:10px}
#portal-message-list{display:grid;gap:14px}.portal-message-card{padding:18px;border:1px solid #dbe6ef;border-radius:12px;background:#fff;overflow-wrap:anywhere}.portal-message-card h4{margin:0 0 5px;font-size:17px}.portal-message-card small{color:#61778b}.portal-message-card p{white-space:pre-wrap;color:#243f55}.portal-message-card button{margin:7px 8px 0 0}

/* Searchable multi-recipient manager message picker */
#portal-message-form .portal-recipient-mode{display:flex;flex-wrap:wrap;gap:12px 25px;margin:0 0 8px}
#portal-message-form .portal-recipient-mode label{display:flex;align-items:center;gap:8px;margin:0;cursor:pointer}
#portal-message-form .portal-recipient-mode input,#portal-message-form .portal-recipient-option input{width:auto!important;flex:none}
#portal-recipient-picker[hidden]{display:none!important}
#portal-recipient-picker{padding:15px;background:white;border:1px solid #dbe6ef;border-radius:12px}
#portal-recipient-selected{padding:9px 0;color:#225678;font-weight:650;overflow-wrap:anywhere}
#portal-recipient-results{max-height:270px;overflow:auto;border-top:1px solid #e2eaf1;padding-top:8px}
#portal-recipient-results .portal-recipient-option{display:flex;align-items:center;gap:10px;padding:9px;border-radius:8px;cursor:pointer;margin:0}
#portal-recipient-results .portal-recipient-option:hover{background:#edf5fc}

/* Staff overview: separate morning and afternoon slots, with date-wide extra-time rows. */
#staff-overview-calendar-grid .staff-calendar-split{display:flex;flex-direction:column;gap:5px;min-height:122px;padding:7px 5px}
#staff-overview-calendar-grid .staff-calendar-halves{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3px;flex:1;min-width:0}
#staff-overview-calendar-grid .staff-calendar-half{min-width:0;border:1px solid #e3ebf2;border-radius:5px;background:#f7fafc;padding:4px 2px;overflow-wrap:anywhere}
#staff-overview-calendar-grid .staff-calendar-half-label{display:block;text-align:center;color:#52728a;font-size:10px;font-weight:800;margin-bottom:3px}
#staff-overview-calendar-grid .staff-calendar-half .staff-calendar-event{font-size:10px;line-height:1.25;padding:4px 2px;white-space:normal;overflow-wrap:anywhere}
#staff-overview-calendar-grid .staff-calendar-extra{font-size:10px;line-height:1.25;padding:5px 3px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:700px){#staff-overview-calendar-grid .staff-calendar-split{padding:3px 2px;min-height:105px;gap:3px}#staff-overview-calendar-grid .staff-calendar-halves{gap:2px}#staff-overview-calendar-grid .staff-calendar-half{padding:2px 1px}#staff-overview-calendar-grid .staff-calendar-half-label{font-size:9px}#staff-overview-calendar-grid .staff-calendar-half .staff-calendar-event,#staff-overview-calendar-grid .staff-calendar-extra{font-size:9px;padding:2px 1px}}

/* Conditional time-off category fields remain adjacent to the type dropdown. */
#leave #otherReasonFields[hidden],#leave #medicalEvidenceFields[hidden]{display:none!important}
#leave #otherReasonFields,#leave #medicalEvidenceFields{align-self:start}
#leave #medicalEvidenceFields small{font-size:12px;color:#56718a}

/* Staff time-off form: simple one-question-at-a-time vertical layout. */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave.leave-wide-form{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:18px!important;max-width:760px!important;margin:0 auto!important;width:100%!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-fields-grid{display:flex!important;flex-direction:column!important;gap:18px!important;width:100%!important;grid-column:auto!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-field{display:flex!important;flex-direction:column!important;width:100%!important;gap:7px!important;margin:0!important;padding:0!important;min-width:0!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-field label{margin:0!important;display:block!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-field input,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-field select,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-field textarea{width:100%!important;max-width:100%!important;box-sizing:border-box!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-field textarea{min-height:95px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-grid-note{grid-column:auto!important;display:block!important;margin:0!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave .leave-submit-row{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:10px!important;grid-column:auto!important;padding-top:20px!important;border-top:1px solid #e1eaf1!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave [hidden]{display:none!important}

/* Time-off request: interactive morning/afternoon calendar */
#leave-calendar-section{width:100%;min-width:0;border:1px solid #d8e4ee;border-radius:14px;padding:16px;background:#fbfdff}#leave-calendar-section h3{margin:0 0 7px;color:#163a5a}#leave-calendar-section .leave-calendar-instructions{margin:0 0 16px;color:#254d70}#leave-calendar-section .leave-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}#leave-calendar-section .leave-calendar-toolbar button{padding:7px 17px;font-size:22px}#leave-calendar-section .leave-calendar-weekdays,#leave-calendar-section .leave-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}#leave-calendar-section .leave-calendar-weekdays{margin-bottom:7px;text-align:center;font-size:12px;color:#526c82;font-weight:700}#leave-calendar-section .leave-calendar-day{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0;border:1px solid #dbe6ef;border-radius:9px;padding:6px 4px;background:white}#leave-calendar-section .leave-calendar-day>strong{text-align:center;font-size:13px}#leave-calendar-section .leave-calendar-day.weekend{background:#f1f4f7;opacity:.55}#leave-calendar-section .leave-calendar-slot{width:100%;min-width:0;padding:9px 2px;background:#eaf1f7;color:#24445d;border:1px solid #c9dbe9;border-radius:6px;font-size:12px;font-weight:800;cursor:pointer}#leave-calendar-section .leave-calendar-slot.selected{background:#145b96;color:#fff;border-color:#145b96;box-shadow:inset 0 0 0 1px #fff5}#leave-calendar-section .leave-calendar-slot:focus-visible{outline:3px solid #e6a947;outline-offset:2px}#leave-calendar-section .leave-calendar-slot:disabled{cursor:not-allowed}#leave-calendar-section #leave-calendar-status{font-weight:700;margin:15px 0 8px}#leave-calendar-section>small{display:block;margin-top:10px;color:#526c82}@media(max-width:600px){#leave-calendar-section{padding:10px}#leave-calendar-section .leave-calendar-weekdays,#leave-calendar-section .leave-calendar-grid{gap:2px}#leave-calendar-section .leave-calendar-day{padding:4px 2px;gap:3px;border-radius:5px}#leave-calendar-section .leave-calendar-slot{font-size:10px;padding:9px 0}}

/* Wide landscape staff leave form, matching overview dashboard proportions */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card #leave.leave-wide-form{max-width:none!important;width:100%!important;margin:0!important;gap:20px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app .portal-main{max-width:none!important;width:100%!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-card{max-width:none!important;width:100%!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section{padding:24px!important;border-radius:16px!important;background:#fff!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-grid,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-weekdays{gap:9px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-day{min-height:120px!important;padding:10px!important;gap:8px!important;border-radius:11px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-day>strong{font-size:16px!important;text-align:left!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-slot{min-height:34px!important;font-size:13px!important;padding:8px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave #kind{max-width:480px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave #otherReasonFields,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave #medicalEvidenceFields{max-width:700px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave #holidayReasonFields{max-width:750px!important}
@media(max-width:800px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section{padding:12px!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-grid,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-weekdays{gap:3px!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-day{min-height:88px!important;padding:4px 2px!important;gap:4px!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-day>strong{font-size:12px!important;text-align:center!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-slot{min-height:29px!important;font-size:10px!important;padding:4px 0!important}}

/* Sickness periods include automatically highlighted weekend AM/PM cells. */
#leave-calendar-section .leave-calendar-day.weekend:has(.leave-calendar-slot.selected){opacity:1;background:#e9f4ff;border-color:#7aa9d0}

/* Staff time-off reason: large blue chooser and clear selectable options. */
#leave .leave-reason-picker{width:100%!important;max-width:760px!important}
#leave #leave-reason-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;max-width:650px;min-height:62px;padding:16px 22px;border:1px solid #124c7b;border-radius:12px;background:#145b96;color:#fff;font-size:17px;font-weight:800;cursor:pointer;text-align:left;box-shadow:0 4px 12px rgba(20,91,150,.16)}
#leave #leave-reason-trigger:hover{background:#104b7c}
#leave #leave-reason-trigger:focus-visible,#leave .leave-reason-option:focus-visible{outline:3px solid #e8aa44;outline-offset:3px}
#leave #leave-reason-selected{font-weight:700;color:#20537b;margin:2px 0 0}
#leave .leave-reason-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:650px;width:100%;padding:14px;border:1px solid #c9dbe9;background:#f7fbff;border-radius:12px}
#leave .leave-reason-options[hidden]{display:none!important}
#leave .leave-reason-option{padding:13px 12px;min-height:46px;background:#fff;border:1px solid #c8d8e7;border-radius:9px;text-align:left;color:#183d5c;font-weight:700;cursor:pointer}
#leave .leave-reason-option:hover,#leave .leave-reason-option[aria-pressed="true"]{background:#e0f0ff;border-color:#145b96}
#leave #kind[hidden]{display:none!important}
@media(max-width:600px){#leave #leave-reason-trigger{font-size:15px;padding:13px 16px;min-height:56px}#leave .leave-reason-options{grid-template-columns:1fr}}

/* Staff time off: request history restored as a right-hand status overview. */
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{display:grid!important;grid-template-columns:minmax(0,1.65fr) minmax(300px,.85fr)!important;align-items:start!important;gap:18px!important;width:100%!important;max-width:none!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid>#leave-card{grid-column:1!important;grid-row:1!important;width:100%!important;max-width:none!important;margin:0!important;min-width:0!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel{display:flex!important;flex-direction:column!important;grid-column:2!important;grid-row:1!important;position:sticky!important;top:18px!important;align-self:start!important;width:100%!important;min-width:0!important;max-width:none!important;max-height:calc(100vh - 36px)!important;overflow-y:auto!important;overflow-x:hidden!important;gap:14px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel>#requests-card{display:block!important;width:100%!important;max-width:none!important;min-width:0!important;overflow:visible!important;padding:20px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel>#balance-card{display:none!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel #my-requests{overflow-x:auto!important;max-width:100%!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-day{min-height:94px!important;padding:7px 4px!important}
body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-grid,body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-weekdays{gap:4px!important}
.leave-request-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.leave-request-history-head h2{margin:3px 0 0}.leave-request-count{background:#e7f1fa;color:#145b96;border-radius:99px;padding:6px 12px;font-weight:800}.leave-request-history-subtitle{font-weight:700;font-size:13px;color:#5b7185;margin:15px 0 9px}.leave-request-summary{border:1px solid #dce7ef;border-radius:12px;padding:13px;margin:0 0 10px;background:#fff}.leave-request-summary-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.leave-request-summary-top strong{font-size:14px}.leave-request-status{font-size:12px;font-weight:800;border-radius:99px;padding:5px 9px;white-space:nowrap}.leave-request-status.is-pending{background:#fff0ce;color:#8a5500}.leave-request-status.is-approved{background:#dcf5e6;color:#17643a}.leave-request-status.is-rejected{background:#ffe1e1;color:#a32929}.leave-request-status.is-cancelled{background:#e9edf1;color:#536477}.leave-request-dates{font-weight:650;margin:9px 0 3px;font-size:13px}.leave-request-meta{font-size:12px;color:#617387;margin:3px 0}.leave-request-empty{background:#f4f8fb;border:1px dashed #b7cbdc;border-radius:10px;padding:15px;color:#516a7d}.leave-request-history-details{margin-top:14px;border-top:1px solid #dbe6ef;padding-top:14px}.leave-request-history-details summary{color:#145b96;font-weight:700;cursor:pointer}.leave-request-history-details #my-requests{margin-top:12px}
@media(max-width:1150px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #app main>.grid{display:flex!important;flex-direction:column!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-right-panel{position:static!important;max-height:none!important;overflow:visible!important;width:100%!important}body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-day{min-height:100px!important}}
@media(max-width:650px){body.portal-active:not(.manager-workspace)[data-portal-page="leave-card"] #leave-calendar-section .leave-calendar-day{min-height:78px!important;padding:4px 2px!important}}

/* Confirmation after a successfully saved time-off request. */
#leave-success-dialog.leave-success-dialog{position:fixed;inset:0;margin:auto;max-width:min(540px,calc(100vw - 32px));width:100%;box-sizing:border-box;border:1px solid #cddfeb;border-radius:20px;padding:35px 28px;text-align:center;box-shadow:0 22px 90px rgba(12,36,62,.32);background:#fff;color:#17344b;z-index:99999}
#leave-success-dialog::backdrop{background:rgba(10,27,47,.65);backdrop-filter:blur(3px)}
#leave-success-dialog .leave-success-icon{display:grid;place-items:center;margin:0 auto 18px;width:76px;height:76px;border-radius:50%;background:#e0f6e9;color:#167744;font-size:44px;font-weight:800}
#leave-success-dialog h2{font-size:26px;line-height:1.2;margin:0 0 13px;color:#123b5b}
#leave-success-dialog p{font-size:16px;line-height:1.6;color:#506b7e;margin:0 auto 23px;max-width:440px}
#leave-success-dialog .leave-success-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap}
#leave-success-dialog .leave-success-actions button{min-height:48px;padding:12px 20px;border-radius:10px;font-weight:800}
#leave-success-dialog #leave-success-view{background:#145b96;color:#fff;border:1px solid #145b96}
#leave-success-dialog #leave-success-close{background:#eef4f8;color:#254b69;border:1px solid #d1e0eb}
#requests-card.leave-request-highlight{outline:3px solid #145b96;outline-offset:3px;transition:outline .3s}
@media(max-width:540px){#leave-success-dialog.leave-success-dialog{padding:28px 18px}#leave-success-dialog h2{font-size:22px}#leave-success-dialog .leave-success-actions{flex-direction:column}#leave-success-dialog .leave-success-actions button{width:100%}}

/* Explicit required-field validation for staff time-off requests. */
#leave .leave-validation-summary{background:#fff1ef;border:2px solid #d0443e;color:#86241f;border-radius:12px;padding:15px 18px;margin-bottom:18px;font-weight:600}
#leave .leave-validation-summary[hidden],#leave .leave-field-error[hidden]{display:none!important}
#leave .leave-validation-summary ul{margin:8px 0 0;padding-left:22px}
#leave .leave-field-error{color:#a52724;background:#fff1ef;border-left:4px solid #d0443e;padding:9px 12px;border-radius:5px;font-size:14px;font-weight:750;margin:8px 0}
#leave [aria-invalid="true"]{outline:3px solid #d0443e!important;outline-offset:3px!important;border-color:#d0443e!important}
#leave #leave-reason-trigger{white-space:normal}

/* High-visibility, red-only validation treatment for staff with visual difficulties. */
#leave .leave-validation-summary:not([hidden]){display:block!important;background:#a51d1d!important;color:#fff!important;border:4px solid #680c0c!important;border-radius:16px!important;padding:23px 26px!important;margin:18px 0 25px!important;font-size:21px!important;font-weight:800!important;line-height:1.5!important;box-shadow:0 6px 18px rgba(130,15,15,.24)!important}
#leave .leave-validation-summary strong{color:#fff!important;font-size:23px!important;line-height:1.4!important;display:block!important}
#leave .leave-validation-summary ul{color:#fff!important;font-size:20px!important;line-height:1.6!important;padding-left:30px!important;margin:13px 0 0!important}
#leave .leave-validation-summary li{margin:7px 0!important}
#leave .leave-field-error:not([hidden]){display:block!important;background:#b21f1f!important;color:#fff!important;border:3px solid #7e0f0f!important;border-left:7px solid #7e0f0f!important;border-radius:9px!important;padding:14px 17px!important;font-size:19px!important;font-weight:800!important;line-height:1.4!important;margin:12px 0!important}
#leave [aria-invalid="true"]{outline:5px solid #bd2020!important;outline-offset:4px!important;border-color:#bd2020!important}
#leave #leave-reason-trigger[aria-invalid="true"]{background:#a51d1d!important;color:#fff!important;border:3px solid #680c0c!important;min-height:72px!important;font-size:19px!important}
#leave #leave-message:not(:empty){font-size:18px!important;font-weight:750!important;line-height:1.5!important}
@media(max-width:600px){#leave .leave-validation-summary:not([hidden]){padding:18px!important;font-size:19px!important}#leave .leave-validation-summary strong{font-size:20px!important}#leave .leave-validation-summary ul{font-size:18px!important;padding-left:24px!important}#leave .leave-field-error:not([hidden]){font-size:18px!important;padding:12px!important}}

/* Clear, large-format guidance for one appointment/absence per form. */
#leave-separate-requests-note:not([hidden]){display:block!important;background:#fff7e6!important;border:3px solid #8c4d00!important;border-left:8px solid #8c4d00!important;border-radius:12px!important;color:#513000!important;padding:18px 20px!important;font-size:19px!important;line-height:1.5!important;margin:15px 0 20px!important}
#leave-separate-requests-note strong{display:block;font-size:21px!important;margin-bottom:6px!important;color:#513000!important}
#leave-calendar-instructions{font-size:18px!important;line-height:1.55!important;font-weight:650!important}

/* Fourth staff overview card: accessible, distinct non-holiday absence totals. */
#staff-personal-overview .staff-overview-absence-summary{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:6px!important}
#staff-personal-overview .staff-overview-absence-summary strong{font-size:20px!important;line-height:1.3!important;color:#173d59!important}
#staff-personal-overview .staff-overview-absence-summary small{display:block!important;font-size:13px!important;line-height:1.45!important;font-weight:700!important;color:#435b6d!important;margin-top:4px!important}
#staff-personal-overview .staff-overview-summary{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:1150px){#staff-personal-overview .staff-overview-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){#staff-personal-overview .staff-overview-summary{grid-template-columns:1fr!important}}

/* Balanced, responsive typography across all four staff overview summary cards. */
#staff-personal-overview .staff-overview-summary .manager-summary-link{min-width:0!important;overflow-wrap:break-word!important;padding:clamp(12px,1.4vw,19px)!important;gap:6px!important}
#staff-personal-overview .staff-overview-summary .manager-summary-link>span{font-size:clamp(12px,1vw,15px)!important;line-height:1.35!important}
#staff-personal-overview .staff-overview-summary .manager-summary-link>strong{font-size:clamp(17px,1.55vw,24px)!important;line-height:1.25!important;overflow-wrap:anywhere!important}
#staff-personal-overview .staff-overview-absence-summary>strong{font-size:clamp(15px,1.2vw,19px)!important;line-height:1.25!important}
#staff-personal-overview .staff-overview-absence-summary>small{font-size:11px!important;line-height:1.35!important;font-weight:550!important;margin-top:2px!important}
@media(max-width:1150px){#staff-personal-overview .staff-overview-summary .manager-summary-link>strong{font-size:clamp(18px,2.3vw,24px)!important}}
@media(max-width:650px){#staff-personal-overview .staff-overview-summary .manager-summary-link>strong{font-size:21px!important}#staff-personal-overview .staff-overview-absence-summary>strong{font-size:18px!important}}

/* Five balanced staff overview cards; sickness and non-holiday absences separately displayed. */
#staff-personal-overview .staff-overview-summary{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:clamp(8px,1vw,14px)!important}
#staff-personal-overview .staff-overview-summary .manager-summary-link{min-width:0!important;padding:clamp(10px,1vw,16px)!important}
#staff-personal-overview .staff-overview-summary .manager-summary-link>strong{font-size:clamp(17px,1.5vw,23px)!important;overflow-wrap:anywhere!important}
#staff-personal-overview .staff-overview-absence-summary>small{font-size:11px!important;line-height:1.35!important}
@media(max-width:1150px){#staff-personal-overview .staff-overview-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){#staff-personal-overview .staff-overview-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:420px){#staff-personal-overview .staff-overview-summary{grid-template-columns:1fr!important}}

/* Full names, reasons and end dates in the selected manager absence day details. */
.absence-day-detail .absence-detail-row{align-items:flex-start!important;gap:10px!important}
.absence-day-detail .absence-detail-row>span:nth-child(2){white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.5!important;font-size:14px!important;font-weight:600!important;flex:1!important;min-width:0!important}

/* Clickable manager overview metrics navigate to relevant portal pages. */
#manager-overview-summary .manager-summary-action{width:100%;text-align:left;font:inherit;cursor:pointer;appearance:none;min-width:0}
#manager-overview-summary .manager-summary-action:hover{border-color:#6ca7d1;box-shadow:0 8px 22px #173c5b18;transform:translateY(-1px)}
#manager-overview-summary .manager-summary-action:focus-visible{outline:3px solid #2d78ae;outline-offset:3px}

/* Restore original neutral white manager summary cards while retaining useful navigation. */
#manager-overview-summary .manager-summary-link{background:#fff!important;color:inherit!important;border:1px solid #e2eaf1!important;box-shadow:0 6px 25px #173c5b08!important;transform:none!important}
#manager-overview-summary .manager-summary-link>span{color:#6b8093!important}
#manager-overview-summary .manager-summary-link>strong{color:#173d5d!important}
#manager-overview-summary .manager-summary-action:hover{background:#fff!important;border-color:#8fbfe1!important;box-shadow:0 6px 25px #173c5b08!important;transform:none!important}

/* Staff off today details modal, matching the original white summary cards. */
.manager-off-today-dialog{border:1px solid #dce5ef;border-radius:16px;background:#fff;color:#173d5d;padding:0;width:min(540px,calc(100vw - 32px));max-height:80vh;box-shadow:0 22px 70px #102f4d45}
.manager-off-today-dialog::backdrop{background:#112b43a3}
.manager-off-today-inner{padding:24px;max-height:75vh;overflow:auto}
.manager-off-today-header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.manager-off-today-header h2{margin:0;font-size:21px}
.manager-off-today-list{display:grid;gap:10px;margin-top:16px}
.manager-off-today-row{display:flex;flex-direction:column;gap:5px;padding:13px 15px;background:#f7fafc;border:1px solid #e2eaf1;border-radius:10px}
.manager-off-today-row span{font-size:13px;color:#526b80;line-height:1.5}

/* Larger, colour-coded Staff Off Today pop-up. Holiday blue, sickness rose, other amber. */
.manager-off-today-dialog{width:min(760px,calc(100vw - 32px))!important;max-width:760px!important;max-height:min(86vh,900px)!important}
.manager-off-today-inner{padding:clamp(20px,3vw,34px)!important;max-height:82vh!important}
.manager-off-today-list{gap:13px!important;margin-top:20px!important}
.manager-off-today-row{padding:17px 20px!important;border-left:5px solid #d2dce6!important;gap:7px!important}
.manager-off-today-row strong{font-size:16px!important}
.manager-off-today-row span{font-size:14px!important}
.manager-off-today-row.off-type-holiday{background:#edf6ff!important;border-color:#bcd9f4!important;border-left-color:#347cb7!important}
.manager-off-today-row.off-type-sickness{background:#fff0f2!important;border-color:#f1c4cc!important;border-left-color:#c44c65!important}
.manager-off-today-row.off-type-other{background:#fff8e9!important;border-color:#ecd9a7!important;border-left-color:#bc8730!important}
@media(max-width:600px){.manager-off-today-dialog{width:calc(100vw - 20px)!important}.manager-off-today-inner{padding:18px!important}}

/* Large, accessible announcement role selection tiles */
#portal-role-picker{margin:14px 0 22px!important}
#portal-role-picker .portal-role-tile{position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;box-sizing:border-box!important;width:100%!important;min-height:72px!important;margin:10px 0!important;padding:18px 22px!important;background:#fff!important;border:2px solid #b4c6d5!important;border-radius:12px!important;cursor:pointer!important;font-size:19px!important;font-weight:700!important;line-height:1.4!important;color:#173d5d!important}
#portal-role-picker .portal-role-tile input{position:absolute!important;opacity:0!important;width:1px!important;height:1px!important;pointer-events:none!important}
#portal-role-picker .portal-role-tile .portal-role-tile-label{display:block!important;font-size:19px!important;color:inherit!important}
#portal-role-picker .portal-role-tile .portal-role-tile-indicator{display:flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:36px!important;height:36px!important;border:2px solid #819bad!important;border-radius:9px!important;color:transparent!important;background:#fff!important;font-size:24px!important;font-weight:800!important}
#portal-role-picker .portal-role-tile:has(input:checked){background:#e2f2ff!important;border-color:#146ca6!important;color:#104e7b!important;box-shadow:0 0 0 1px #146ca6!important}
#portal-role-picker .portal-role-tile input:checked~.portal-role-tile-indicator{background:#146ca6!important;border-color:#146ca6!important;color:#fff!important}
#portal-role-picker .portal-role-tile:has(input:focus-visible){outline:4px solid #efae43!important;outline-offset:3px!important}
#portal-role-picker .portal-role-tile:hover{border-color:#146ca6!important}
#portal-role-count{font-size:16px!important;font-weight:700!important;line-height:1.5!important;margin:15px 0!important}
@media(min-width:700px){#portal-role-picker{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px 14px!important}#portal-role-picker>p{grid-column:1/-1!important}#portal-role-picker .portal-role-tile{margin:0!important}}

#portal-role-picker[hidden]{display:none!important}

/* Only show job-role recipient tiles when By job role is chosen. */
#portal-role-picker[hidden],#portal-role-picker[style*="display: none"]{display:none!important}

/* Proportionate announcement job-role tiles, retaining readable labels and accessible targets. */
#portal-role-picker{margin:10px 0 16px!important}
#portal-role-picker .portal-role-tile{min-height:50px!important;padding:9px 13px!important;gap:10px!important;border-radius:9px!important;margin:6px 0!important;font-size:16px!important}
#portal-role-picker .portal-role-tile .portal-role-tile-label{font-size:16px!important;line-height:1.35!important}
#portal-role-picker .portal-role-tile .portal-role-tile-indicator{width:25px!important;height:25px!important;font-size:17px!important;border-radius:6px!important}
#portal-role-count{font-size:14px!important;margin:10px 0!important}
@media(min-width:700px){#portal-role-picker{gap:8px 10px!important}#portal-role-picker .portal-role-tile{margin:0!important}}

/* Accessible manager approval details dialog */
.jascars-request-details{width:min(740px,calc(100vw - 28px));max-width:740px;max-height:86vh;padding:0;border:1px solid #d7e3ed;border-radius:15px;background:#fff;color:#173d5d;box-shadow:0 24px 80px #142f4b55}
.jascars-request-details::backdrop{background:#112b43a8}
.jascars-request-details-inner{padding:26px;max-height:82vh;overflow-y:auto}
.jascars-request-details-header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.jascars-request-details-header h2{margin:0;font-size:22px}
.jascars-request-detail-row{padding:12px 0;border-bottom:1px solid #e0e8f0;display:grid;grid-template-columns:minmax(150px,36%) minmax(0,1fr);gap:14px;overflow-wrap:anywhere;line-height:1.5;font-size:15px}
.jascars-request-detail-row strong{color:#284b67}
@media(max-width:540px){.jascars-request-details-inner{padding:17px}.jascars-request-detail-row{grid-template-columns:1fr;gap:4px}}

/* Large, persistent, accessible staff decision notices */
#portal-notification-panel{width:min(620px,calc(100vw - 20px))!important;max-width:620px!important;max-height:min(85vh,820px)!important;overflow-y:auto!important}
#portal-notification-panel .portal-notification-head strong{font-size:22px!important}
#portal-notification-panel .jascars-persistent-notification{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:9px!important;text-align:left!important;padding:16px 18px!important;margin:10px 0!important;border:1px solid #c7d8e7!important;border-radius:12px!important;background:#fff!important;color:#173d5d!important;cursor:default!important}
#portal-notification-panel .jascars-persistent-notification.unread{border-left:5px solid #146ca6!important;background:#edf6ff!important}
#portal-notification-panel .jascars-persistent-notification strong{font-size:17px!important;line-height:1.4!important}
#portal-notification-panel .jascars-persistent-notification span{font-size:15px!important;line-height:1.55!important}
#portal-notification-panel .jascars-persistent-notification button{align-self:flex-start!important;min-height:44px!important;font-size:15px!important;font-weight:700!important;padding:10px 16px!important}
#portal-notification-toasts .jascars-decision-toast{min-width:min(420px,calc(100vw - 24px))!important;max-width:min(520px,calc(100vw - 24px))!important;padding:20px!important;border:2px solid #146ca6!important;box-shadow:0 12px 36px #163a5a44!important}
#portal-notification-toasts .jascars-decision-toast strong{font-size:19px!important}
#portal-notification-toasts .jascars-decision-toast span{font-size:16px!important;line-height:1.5!important}
.jascars-staff-decision-dialog{width:min(660px,calc(100vw - 24px));max-width:660px;max-height:85vh;padding:0;border:1px solid #c5d7e5;border-radius:15px;background:#fff;color:#173d5d;box-shadow:0 24px 80px #102d4a66}
.jascars-staff-decision-dialog::backdrop{background:#102d4a9e}
.jascars-staff-decision-inner{padding:26px;max-height:80vh;overflow:auto;font-size:16px;line-height:1.55}
.jascars-staff-decision-inner h2{font-size:23px;margin:0 0 12px}
.jascars-staff-decision-field{padding:12px 0;border-bottom:1px solid #e1eaf1}
.jascars-staff-decision-field strong{display:block;font-size:15px}
.jascars-staff-decision-field p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.jascars-staff-decision-inner>button{margin-top:18px;min-height:44px}

/* Full page notifications inbox, shared by staff and managers */
#portal-notification-page{display:none!important;box-sizing:border-box;width:100%;max-width:none!important;margin:0 auto!important;padding:clamp(20px,3vw,36px)!important}
body.portal-active[data-portal-page="portal-notification-page"] #portal-notification-page{display:block!important}
body.portal-active[data-portal-page="portal-notification-page"] #app main> :not(#portal-notification-page){display:none!important}
body.portal-active[data-portal-page="portal-notification-page"] #app main>.grid{display:none!important}
body.portal-active[data-portal-page="portal-notification-page"] #app #management{display:none!important}
.jascars-inbox-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex-wrap:wrap;border-bottom:1px solid #dce7f1;padding-bottom:20px;margin-bottom:20px}
.jascars-inbox-head h1{font-size:clamp(26px,3vw,34px);margin:4px 0 10px;color:#173d5d}
.jascars-inbox-head p{font-size:16px;line-height:1.5}
#jascars-inbox-count{font-size:16px;font-weight:700;color:#145b96}
.jascars-inbox-list{display:grid;gap:14px}
.jascars-inbox-card{border:2px solid #d5e4f0;border-left:6px solid #267bb7;border-radius:13px;padding:20px;background:#fff;overflow-wrap:anywhere}
.jascars-inbox-card>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.jascars-inbox-card h3{margin:0;font-size:20px;color:#173d5d}
.jascars-inbox-card p{font-size:16px;line-height:1.6;margin:12px 0}
.jascars-inbox-card button{min-height:44px;font-weight:700;font-size:15px;padding:10px 18px}
.jascars-inbox-empty{padding:24px;background:#f4f9fc;border-radius:12px;font-size:17px}
.jascars-inbox-dialog{width:min(760px,calc(100vw - 24px));max-width:760px;max-height:90vh;border:1px solid #b9cfdf;border-radius:16px;padding:0;background:#fff;color:#173d5d;box-shadow:0 24px 80px #102d4a66}
.jascars-inbox-dialog::backdrop{background:#102d4ab0}
.jascars-inbox-dialog-inner{padding:clamp(18px,3vw,34px);max-height:86vh;overflow:auto;font-size:16px;line-height:1.6}
.jascars-inbox-dialog-inner h2{font-size:25px;margin:0 0 10px}
.jascars-inbox-message{font-size:18px;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere}
.jascars-inbox-field{padding:12px 0;border-bottom:1px solid #e1e9f1}
.jascars-inbox-field strong{display:block}
.jascars-inbox-field p{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.jascars-inbox-question{margin-top:25px;padding:20px;background:#f2f7fb;border:1px solid #ccdfed;border-radius:12px}
.jascars-inbox-question>strong{font-size:19px}
.jascars-inbox-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:15px}
.jascars-inbox-actions button{min-height:48px;font-size:15px;font-weight:700;padding:12px 16px}
@media(max-width:600px){.jascars-inbox-actions{flex-direction:column}.jascars-inbox-actions button{width:100%}}

/* Announcement composer: clear form without sending */
.portal-message-compose-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:15px}
.portal-message-compose-actions button{min-height:44px;padding:10px 18px;font-size:15px;font-weight:700}

/* Notifications is a standalone app-level page, not inside the staff Time Off grid. */
body.portal-active[data-portal-page="portal-notification-page"] #app > :not(#workspace-nav):not(#portal-notification-page):not(#mobile-nav-toggle){display:none!important}
body.portal-active[data-portal-page="portal-notification-page"] #app > #portal-notification-page{display:block!important;min-width:0!important;max-width:none!important;width:100%!important;box-sizing:border-box!important;grid-column:2 / -1!important;grid-row:1 / -1!important;align-self:start!important}
body.portal-active[data-portal-page="portal-notification-page"] #app > #workspace-nav{display:flex!important}
@media(max-width:800px){body.portal-active[data-portal-page="portal-notification-page"] #app > #portal-notification-page{grid-column:1 / -1!important}}

/* Professional staff profile */
#staff-profile[hidden]{display:none!important}body.portal-active[data-portal-page="staff-profile"] #app #workspace-home{display:none!important}body.portal-active[data-portal-page="staff-profile"] #app #staff-profile{display:block!important;max-width:1050px;margin:0 auto 24px;padding:30px;background:#fff}#staff-profile .staff-profile-hero{display:flex;align-items:center;gap:24px;padding:27px;background:linear-gradient(115deg,#153a5b,#2376ad);border-radius:15px;color:#fff;margin-bottom:30px}#staff-profile .staff-profile-avatar-wrap{position:relative;width:104px;height:104px;flex:none;border-radius:50%;background:#ffffff20;border:3px solid #ffffff70;display:grid;place-items:center;overflow:hidden}#staff-profile .staff-profile-avatar-wrap img{width:100%;height:100%;object-fit:cover}#staff-profile .staff-profile-avatar-wrap img[hidden]{display:none}#staff-profile .staff-profile-avatar-wrap span{font-size:28px;font-weight:800;color:white}#staff-profile .staff-profile-photo-button{position:absolute;bottom:0;left:0;right:0;background:#102c47e8;color:white;text-align:center;font-size:10px;padding:5px 2px;cursor:pointer;margin:0}#staff-profile .staff-profile-identity h1{font-size:29px;color:#fff;margin:4px 0}#staff-profile .staff-profile-identity p{color:#e1eff9;margin:0 0 8px}#staff-profile .staff-profile-eyebrow,#staff-profile .staff-profile-heading>div>span{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#32749e}#staff-profile .staff-profile-eyebrow{color:#c3e2f8}#staff-profile .staff-profile-active{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#e3f5ed}#staff-profile .staff-profile-active i{width:7px;height:7px;background:#61d7a0;border-radius:50%}#staff-profile .staff-profile-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:27px 0 17px}#staff-profile .staff-profile-heading h2{font-size:20px;margin:4px 0}#staff-profile .staff-profile-heading p{font-size:13px;margin:0}#staff-profile .staff-profile-locked{font-size:11px;color:#657b8e;background:#f0f4f7;border-radius:20px;padding:7px 11px;white-space:nowrap}#staff-profile .staff-profile-details-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#staff-profile .staff-profile-detail{display:flex;flex-direction:column;gap:5px;padding:16px 17px;background:#f7f9fb;border:1px solid #e5ebf1;border-radius:11px;min-width:0}#staff-profile .staff-profile-detail span,#staff-profile .staff-profile-leave-grid article span{font-size:11px;color:#6d8193;font-weight:650}#staff-profile .staff-profile-detail strong{font-size:14px;color:#203b52;overflow-wrap:anywhere}#staff-profile .staff-profile-detail small{font-size:11px;color:#8493a1}#staff-profile .staff-profile-divider{height:1px;background:#e6edf3;margin:28px 0}#staff-profile .staff-profile-form{padding:20px;background:#f5f9fc;border:1px solid #dce8f1;border-radius:13px;margin-bottom:17px}#staff-profile .staff-profile-form[hidden]{display:none!important}#staff-profile .staff-profile-form:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}#staff-profile .staff-profile-field label{display:block;font-size:12px;font-weight:750;margin:0 0 6px}#staff-profile .staff-profile-actions{grid-column:1/-1;display:flex;gap:9px;flex-wrap:wrap}#staff-profile #profile-edit-message{grid-column:1/-1;margin:0;font-size:13px}#staff-profile .staff-profile-leave-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#staff-profile .staff-profile-leave-grid article{display:flex;flex-direction:column;gap:7px;padding:17px;background:#eef6fb;border:1px solid #d9e9f4;border-radius:11px}#staff-profile .staff-profile-leave-grid article strong{font-size:20px;color:#174d73}#staff-profile .staff-profile-footnote{font-size:12px;background:#f7f9fb;padding:13px 15px;border-radius:9px;margin-top:18px}#staff-profile .staff-profile-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;border-top:1px solid #e6edf3;padding-top:18px;margin-top:24px;color:#8292a0;font-size:11px}@media(max-width:650px){body.portal-active[data-portal-page="staff-profile"] #app #staff-profile{padding:17px}#staff-profile .staff-profile-hero{padding:18px;gap:14px}#staff-profile .staff-profile-avatar-wrap{width:78px;height:78px}#staff-profile .staff-profile-identity h1{font-size:22px}#staff-profile .staff-profile-details-grid{grid-template-columns:1fr}#staff-profile .staff-profile-leave-grid{grid-template-columns:1fr}#staff-profile .staff-profile-form:not([hidden]){grid-template-columns:1fr}#staff-profile .staff-profile-heading{align-items:flex-start;flex-direction:column}}

body.portal-active[data-portal-page="staff-profile"] #app main>.grid{display:none!important}

/* Refined staff profile layout */
#staff-profile{max-width:1120px!important;margin:0 auto 30px!important;padding:clamp(18px,3vw,34px)!important;border:1px solid #dfe8f0!important;box-shadow:0 16px 42px rgba(18,48,74,.08)!important}
#staff-profile .staff-profile-hero{position:relative;overflow:hidden;min-height:160px;padding:clamp(20px,3vw,32px)!important;border-radius:18px!important;background:linear-gradient(115deg,#102c47 0%,#174d75 58%,#2679a8 100%)!important;box-shadow:0 12px 26px rgba(16,44,71,.16)}
#staff-profile .staff-profile-hero:after{content:'';position:absolute;width:260px;height:260px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-75px;top:-125px;box-shadow:0 0 0 28px rgba(255,255,255,.035),0 0 0 58px rgba(255,255,255,.025);pointer-events:none}
#staff-profile .staff-profile-avatar-wrap{width:108px!important;height:108px!important;background:rgba(255,255,255,.14)!important;border:3px solid rgba(255,255,255,.72)!important;box-shadow:0 5px 18px rgba(0,0,0,.16)}
#staff-profile .staff-profile-identity{position:relative;z-index:1;min-width:0}
#staff-profile .staff-profile-identity h1{font-size:clamp(24px,3vw,32px)!important;letter-spacing:-.8px!important}
#staff-profile .staff-profile-active{padding:5px 10px;border:1px solid rgba(255,255,255,.22);border-radius:30px;background:rgba(255,255,255,.1)}
#staff-profile .staff-profile-heading{margin:32px 0 16px!important;align-items:center}
#staff-profile .staff-profile-heading>div>span{font-size:10px!important;letter-spacing:1.4px!important;color:#347ba7!important}
#staff-profile .staff-profile-heading h2{font-size:21px!important;color:#173650!important;letter-spacing:-.45px}
#staff-profile .staff-profile-heading p{font-size:13px!important;color:#718397!important}
#staff-profile .staff-profile-heading>button{white-space:nowrap;padding:10px 16px!important}
#staff-profile .staff-profile-details-grid{gap:13px!important}
#staff-profile .staff-profile-detail{position:relative;min-height:84px;padding:17px 18px!important;background:linear-gradient(180deg,#fbfdff,#f5f8fb)!important;border:1px solid #e2eaf1!important;border-radius:13px!important;transition:border-color .15s,transform .15s}
#staff-profile .staff-profile-detail:hover{border-color:#c7d9e8!important;transform:translateY(-1px)}
#staff-profile .staff-profile-detail span{font-size:11px!important;letter-spacing:.15px;color:#71859a!important}
#staff-profile .staff-profile-detail strong{font-size:15px!important;line-height:1.4;color:#193b56!important}
#staff-profile .staff-profile-detail small{font-size:11px!important;line-height:1.45}
#staff-profile .staff-profile-locked{border:1px solid #e3eaf0;background:#f4f7fa;color:#526c81}
#staff-profile .staff-profile-form{padding:22px!important;background:#f5f9fc!important;border:1px solid #d9e7f1!important;border-radius:14px!important}
#staff-profile .staff-profile-field input{min-height:46px;border:1px solid #cbd9e4;background:#fff}
#staff-profile .staff-profile-actions{align-items:center}
#staff-profile .staff-profile-leave-grid{gap:13px!important}
#staff-profile .staff-profile-leave-grid article{min-height:112px;justify-content:center;padding:20px!important;background:linear-gradient(145deg,#f2f8fc,#eaf3f9)!important;border:1px solid #d9e8f2!important;border-radius:13px!important}
#staff-profile .staff-profile-leave-grid article strong{font-size:23px!important;letter-spacing:-.5px}
#staff-profile .staff-profile-footnote{border:1px solid #e5ebf1;background:#f8fafc!important;color:#62778a!important;line-height:1.65}
#staff-profile .staff-profile-bottom{margin-top:28px!important;padding-top:20px!important}
#staff-profile #profile-edit-message:not(:empty){padding:10px 12px;border-radius:8px;background:#edf5fb;color:#245575}
@media(max-width:650px){#staff-profile .staff-profile-hero{align-items:center}#staff-profile .staff-profile-avatar-wrap{width:82px!important;height:82px!important}#staff-profile .staff-profile-heading>button{width:100%}#staff-profile .staff-profile-details-grid{gap:9px!important}#staff-profile .staff-profile-detail{min-height:72px;padding:14px!important}}


/* Make the account Profile button prominent in the portal header */
#account-area{display:flex;align-items:center}
#account-button:not([hidden]){
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  min-height:50px!important;
  padding:10px 21px!important;
  border:2px solid #145b96!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#1768a5,#104b7c)!important;
  color:#fff!important;
  font-size:15px!important;
  font-weight:800!important;
  letter-spacing:.15px!important;
  box-shadow:0 5px 15px rgba(20,91,150,.24)!important;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease!important;
}
#account-button:not([hidden]):hover{
  background:linear-gradient(135deg,#0f5a94,#0b3e69)!important;
  box-shadow:0 7px 19px rgba(20,91,150,.32)!important;
  transform:translateY(-2px)!important;
}
#account-button:not([hidden]):focus-visible{
  outline:3px solid #e8ad49!important;
  outline-offset:4px!important;
}
#account-button #account-avatar-small:not([hidden]){
  width:31px!important;
  height:31px!important;
  border:2px solid rgba(255,255,255,.8)!important;
}
@media(max-width:600px){
  #account-button:not([hidden]){min-height:46px!important;padding:8px 16px!important;font-size:14px!important}
}


/* Staff self-service account security */
#staff-profile .staff-account-security{margin:4px 0 8px}
#staff-profile .staff-account-security-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
#staff-profile .staff-account-security-card{display:flex;flex-direction:column;gap:10px;padding:22px;border:1px solid #dce6ef;border-radius:14px;background:linear-gradient(180deg,#f8fbfe,#fff);box-shadow:0 5px 18px rgba(20,53,78,.06)}
#staff-profile .staff-account-security-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#e8f2fa;color:#155b8e;font-size:21px}
#staff-profile .staff-account-security-card h3{margin:2px 0 0;color:#173c5a;font-size:18px}
#staff-profile .staff-account-security-card>p{margin:0 0 5px;color:#617386;font-size:13px;line-height:1.55}
#staff-profile .staff-account-security-card label{margin:4px 0 0;color:#29465f;font-size:13px;font-weight:700}
#staff-profile .staff-account-security-card input{box-sizing:border-box;width:100%;min-height:45px;padding:11px 13px;border:1px solid #cbd8e4;border-radius:9px;background:#fff;color:#19364e;font:inherit}
#staff-profile .staff-account-security-card input:focus{outline:3px solid #d5eafa;border-color:#2478b5}
#staff-profile .staff-account-security-card button{align-self:flex-start;min-height:44px;margin-top:5px;padding:10px 18px;border:0;border-radius:9px;background:linear-gradient(135deg,#1768a5,#104b7c);color:#fff;font-weight:800;cursor:pointer}
#staff-profile .staff-account-security-card button:disabled{opacity:.6;cursor:wait}
#staff-profile .staff-account-security-message{min-height:18px;margin:2px 0 0;color:#285c3d;font-size:13px;line-height:1.5}
@media(max-width:760px){#staff-profile .staff-account-security-grid{grid-template-columns:1fr}}

/* Prominent staff extra-time warning */
#staff-extra-time > .extra-time-bus-notice{box-sizing:border-box;width:100%;background:#ffad42;color:#3b2100;border:2px solid #b85b00;border-left:7px solid #b85b00;border-radius:12px;padding:20px 22px;margin:0 0 20px;font-size:16px;line-height:1.6;font-weight:600;overflow-wrap:anywhere;}
#staff-extra-time > .extra-time-bus-notice > strong:first-child{display:block;font-size:20px;line-height:1.3;margin-bottom:9px;font-weight:800;}
#staff-extra-time > .extra-time-bus-notice > strong:first-child::before{content:'⚠ ';} 
#staff-extra-time > .extra-time-bus-notice a{color:#3b2100;text-decoration:underline;}
@media(max-width:600px){#staff-extra-time > .extra-time-bus-notice{padding:16px;font-size:15px;}}
