:root{/* Layoutrevisjon 29.10.2026: én skrift og én aksent (produktgrønn fra B-logoen). --wine er beholdt som navn fordi over 100 regler bruker den. */--font:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;--brand:#163428;--mint:#9cc3ad;--wine:var(--brand);--ink:#1d2320;--muted:#59615c;--line:#dfe3e0;--paper:#f6f7f5;--accent:#2f6b52;--green:#336954}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 var(--font)}button,input,textarea,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font:normal clamp(1.6rem,2.2vw,2rem)/1.2 var(--font);letter-spacing:-.025em;margin-bottom:12px}h2{font:normal 1.5rem var(--font)}h3{font:normal 1.25rem var(--font)}a{color:var(--wine)}.sidebar{position:fixed;inset:0 auto 0 0;width:235px;padding:34px 22px;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{font:52px/1 var(--font);color:var(--wine);text-decoration:none;padding:0 12px 34px;letter-spacing:-3px}.brand small{display:block;font:11px/2 var(--font);letter-spacing:2px;margin-top:12px}.eyebrow{font-size:14px;color:var(--accent);font-weight:650}.sidebar .eyebrow{padding:0 12px}nav{display:grid;gap:7px}nav a{display:flex;gap:12px;align-items:center;padding:13px 12px;border-radius:7px;text-decoration:none;color:var(--muted);font-size:14px}nav a.active{background:#ebf2ee;color:var(--wine);font-weight:650}nav .icon{font-size:19px;width:22px;text-align:center}.side-bottom{margin-top:auto;padding:22px 12px 0;border-top:1px solid var(--line);font-size:13px;color:var(--muted)}main{margin-left:235px;min-width:0}.topbar{min-height:74px;padding:15px 40px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px}.topbar label{display:flex;align-items:center;gap:12px}.topbar select{padding:7px 10px}.view{padding:34px 40px 60px;max-width:1600px;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.heading p:last-child{color:var(--muted);margin-bottom:0}.muted{color:var(--muted)}.small{font-size:14px}.badge{display:inline-flex;align-items:center;border-radius:30px;padding:4px 10px;font-size:12px;white-space:nowrap;background:#eaf2ed;color:var(--green);font-weight:600}.badge.warning{background:#fbefd9;color:#84591a}.badge.wine{background:#ebf2ee;color:var(--wine)}button,.button{border:1px solid var(--wine);border-radius:6px;padding:9px 15px;background:white;color:var(--wine);font-size:14px;font-weight:600;text-decoration:none}.primary{background:var(--wine);color:white}.text-button{border:0;background:none;padding:6px 0;text-decoration:underline;text-underline-offset:3px}.banner{padding:13px 18px;border:1px solid #eadbc3;background:#fff9ee;border-radius:7px;font-size:14px;margin-bottom:24px}.filters,.panel,.metric,.station-card,.rule{border:1px solid var(--line);background:white;border-radius:9px}.filters{padding:20px 22px;margin:22px 0;display:flex;align-items:end;gap:16px;flex-wrap:wrap}label{display:grid;gap:6px;font-size:14px;font-weight:600}input,select,textarea{background:white;border:1px solid #958890;border-radius:5px;padding:9px 11px;max-width:100%;min-width:0;font-weight:400}input[type=number]{width:110px}input[type=checkbox]{width:17px;height:17px;accent-color:var(--wine)}.check{display:flex;align-items:center;gap:8px;font-weight:400;font-size:14px}.checks{display:flex;flex-wrap:wrap;gap:18px;margin:14px 0}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:24px 0}.metric{padding:21px}.metric span{color:var(--muted);font-size:14px}.metric strong{display:block;font:34px/1.2 var(--font);color:var(--wine);margin:12px 0 8px}.metric small{font-size:13px;color:var(--muted)}.section-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:30px 0 15px}.section-title h2{margin:0}.panel{padding:24px;margin:20px 0}.table-wrap{overflow:auto;background:white;border:1px solid var(--line);border-radius:9px}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;background:#f4f7f6;color:var(--muted);font-size:13px;font-weight:600;padding:14px 13px;white-space:nowrap}td{padding:16px 13px;border-top:1px solid var(--line);vertical-align:middle}tbody tr:hover{background:#fafdfc}.time{white-space:nowrap;font-weight:600;color:var(--wine)}.staff{font:24px var(--font);color:var(--wine)}.num{font-variant-numeric:tabular-nums}.occupancy{min-width:95px}.occupancy progress{display:block;width:82px;height:5px;margin-top:6px;accent-color:var(--wine)}.stations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.station-card{padding:24px}.station-head{display:flex;justify-content:space-between;gap:10px}.station-card.disabled{background:#f4f3f2}.table-chips{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.table-chip{display:grid;gap:2px;min-width:52px;background:#f7f9f8;border:1px solid #d8e2dd;border-radius:7px;text-align:center;padding:9px;color:var(--wine);font-size:13px}.table-chip small{color:var(--muted);font-size:12px}.row{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.row>*{min-width:0}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:18px}.rule{padding:20px;margin:12px 0}.rule-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.rule input[name=name]{width:min(100%,350px)}.rule .row{gap:16px}.rule label{flex:1;min-width:95px}.rule select,.rule input{width:100%}.rule label.check{flex:0 0 auto}.empty{padding:45px 25px;text-align:center;background:white;border:1px dashed #c7d5ce;border-radius:9px}.empty p{color:var(--muted)}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.status-item{border:1px solid var(--line);border-radius:7px;padding:18px}.status-item p{margin:8px 0 0}.status-list{display:grid;gap:10px}.status-row{display:flex;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);padding:15px 0}.status-row:last-child{border:0}.status-row p{margin:6px 0 0;font-size:13px;color:var(--muted)}.status-row>div:last-child{text-align:right;min-width:130px}.code{font:12px/1.6 ui-monospace,Menlo,Consolas,monospace;white-space:pre-wrap;background:#f3f6f4;padding:16px;border-radius:6px;overflow-wrap:anywhere}details{margin:18px 0}summary{cursor:pointer;color:var(--wine);font-weight:600}.notice{position:fixed;bottom:24px;right:24px;max-width:450px;z-index:20;white-space:pre-wrap;background:var(--wine);color:white;border-radius:9px;padding:16px 20px;box-shadow:0 5px 20px #0002}.notice.error{background:#8a392c}dialog{width:min(900px,calc(100vw - 30px));max-height:90vh;border:0;border-radius:12px;padding:30px;color:var(--ink);box-shadow:0 15px 60px #0003}dialog::backdrop{background:#24141c77}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:20px}.dialog-head h2{margin:0}.reason-list{padding-left:20px}.reason-list li{margin:10px 0}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px}.loading{padding:45px}.footnote{font-size:13px;color:var(--muted);margin:18px 0}.article-select{min-width:120px}#preview{white-space:pre-wrap}progress{accent-color:var(--wine)}[hidden]{display:none!important}@media(max-width:1150px){.view{padding:28px 24px}.topbar{padding:14px 24px}.metrics{grid-template-columns:repeat(2,1fr)}.sidebar{width:215px;padding:30px 15px}main{margin-left:215px}}@media(max-width:760px){.sidebar{position:static;width:auto;padding:20px;border-right:0;border-bottom:1px solid var(--line)}.brand{font-size:36px;padding:0 0 18px}.brand small{display:inline-block;margin:0 0 0 16px;font-size:11px;letter-spacing:1px}.sidebar>.eyebrow,.side-bottom{display:none}nav{display:flex;overflow:auto;gap:5px}nav a{white-space:nowrap;padding:10px;font-size:13px}nav .icon{display:none}main{margin:0}.topbar{padding:12px 20px;align-items:start}.topbar>span{display:none}.view{padding:24px 18px}.heading{align-items:start}.heading .badge{display:none}.metrics{gap:10px}.metric{padding:17px}.metric strong{font-size:29px}.stations,.two-col,.status-grid{grid-template-columns:1fr}.filters{padding:16px;gap:12px}.filters label{flex:1;min-width:125px}.filters button{width:100%}.status-row{flex-wrap:wrap}.status-row>div:last-child{text-align:left}.notice{right:12px;left:12px;bottom:12px;max-width:none}.rule .row label{min-width:120px}.panel{padding:18px}dialog{padding:20px}}

.roster-wrap{max-height:70vh}.roster-grid{min-width:1180px}.roster-grid thead th{position:sticky;top:0;z-index:2}.roster-grid tbody th{position:sticky;left:0;z-index:1;background:#f7faf8;min-width:175px;border-top:1px solid var(--line)}.roster-grid tbody th small{display:block;font-weight:400;margin-top:5px}.roster-grid td{vertical-align:top;min-width:130px;padding:9px}.shift-card{display:grid;text-align:left;width:100%;gap:5px;margin:5px 0;padding:10px 8px;border:1px solid #c9d7d0;border-left:4px solid var(--wine);background:#eef5f2;font-size:13px}.shift-card span,.shift-card small{font-size:12px;font-weight:400}.shift-card.dept-1{background:#edf2f9;border-left-color:#49709b}.shift-card.dept-2{background:#f8f0df;border-left-color:#af8331}.shift-card.dept-3{background:#eaf2ed;border-left-color:#39745b}.add-shift{width:100%;border:1px dashed #d0d7d3;background:transparent;padding:5px;color:var(--muted)}.shift-card:hover,.add-shift:hover{filter:brightness(.96)}

nav .nav-group{min-width:0}nav a.nav-parent{justify-content:space-between;font-weight:650}nav .nav-children{display:grid;gap:3px;margin:5px 0 16px 12px;padding-left:10px;border-left:1px solid var(--line)}nav .nav-children a{font-size:14px;padding:10px 11px}.nav-coming{display:flex;justify-content:space-between;gap:8px;padding:10px 11px;font-size:13px;color:var(--muted)}.nav-coming small{font-size:12px;background:#f1eded;border-radius:4px;padding:2px 5px}@media(max-width:760px){nav{display:grid;grid-template-columns:1fr 1fr;overflow:visible;align-items:start}nav .nav-children{margin-left:0;padding-left:7px}nav .nav-children a{white-space:normal}.nav-coming{flex-wrap:wrap}}

/* Original logo within the existing brand footprint. */
.sidebar .brand{position:relative;color:transparent}.sidebar .brand small{visibility:hidden}.sidebar .brand .brand-logo{position:absolute;top:0;left:12px;width:calc(100% - 24px);max-width:155px;height:auto}
@media(max-width:760px){.sidebar .brand .brand-logo{left:0;width:140px;max-width:100%}}

.rule.rule-base{background:#f0f8f1;border-color:#8bb897;border-left:4px solid #397c4c}.rule-base summary,.rule-base>p.small{color:#245e34}

nav .nav-data{margin:3px 0;border:0;padding:0;background:transparent}nav .nav-data summary{padding:10px 11px;font-size:13px;color:var(--muted);cursor:pointer}nav .nav-data-links{display:grid;gap:3px;padding-left:8px}

nav a.nav-parent[href="#vaktplan"],nav a.nav-parent[href="#plan"]{background:#ebf2ee;color:var(--wine)}

.availability-days{display:grid;gap:10px;margin:20px 0}.availability-day{display:grid;grid-template-columns:90px minmax(190px,1fr) 150px 150px;align-items:end;border-bottom:1px solid var(--line);padding-bottom:12px}.availability-day strong{padding-bottom:10px}.availability-record{padding:18px 0;border-bottom:1px solid var(--line)}@media(max-width:1000px){.availability-day{grid-template-columns:1fr 1fr}.availability-day strong{grid-column:1/-1}}

#rosterAvailability{padding:18px;max-width:900px}#rosterAvailability h2{font-size:1.3rem;margin-bottom:14px}#rosterAvailability .row{gap:10px}#rosterAvailability label{font-size:12px;gap:3px}#rosterAvailability input,#rosterAvailability select{padding:6px 8px;font-size:13px}#rosterAvailability p{margin-bottom:10px}#rosterAvailability .availability-days{gap:5px;margin:12px 0}#rosterAvailability .availability-day{grid-template-columns:70px minmax(170px,1fr) 110px 110px;gap:10px;padding-bottom:6px}#rosterAvailability .availability-day strong{font-size:13px;padding-bottom:7px}#rosterAvailability .availability-day label{font-size:0}#rosterAvailability .availability-day label input,#rosterAvailability .availability-day label select{font-size:13px}#rosterAvailability .availability-day:first-child label{font-size:12px}#rosterAvailability .small{font-size:12px}@media(max-width:760px){#rosterAvailability .availability-day{grid-template-columns:60px minmax(110px,1fr) 85px 85px}}@media(max-width:540px){#rosterAvailability .availability-day{grid-template-columns:1fr 1fr}#rosterAvailability .availability-day strong{grid-column:auto}#rosterAvailability .availability-day label{font-size:12px}}

.availability-overview .availability-editor{padding:12px;background:#f7faf8;white-space:normal}.availability-overview .availability-editor .panel{margin-bottom:14px}.availability-overview .text-button{text-align:left;text-decoration:none;font-weight:600}.availability-overview td{vertical-align:middle}

.availability-overview>tbody>tr>td{padding:8px 12px}.availability-overview>tbody>tr>td>button{padding:6px 10px}.availability-overview>tbody>tr>td>.text-button{padding:4px 0}.availability-overview>tbody>tr>td.availability-editor{padding:12px}

.employee-active{display:inline-flex;border:1px solid var(--line);border-radius:6px;cursor:default;padding:6px 10px;border-color:var(--line);color:var(--muted)}.employee-active.is-active{background:#eaf2ed;border-color:#8bb897;color:#245e34}

.availability-date{display:block;font-size:12px;font-weight:400;color:var(--muted);white-space:nowrap;margin-top:2px}#rosterAvailability input[readonly]{background:#f1f4f2;color:var(--muted)}

#rosterAvailability .availability-options{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center;padding:6px 0}#rosterAvailability .availability-options label.check{font-size:13px;display:flex;align-items:center;gap:6px}#rosterAvailability .availability-options input[type=checkbox]{width:16px;height:16px}

.shift-fields{border:0;padding:0;margin:0;min-width:0}.shift-fields:disabled{opacity:.7}

#rosterAvailability .availability-wish{grid-column:2/-1;display:grid;grid-template-columns:minmax(170px,1fr) 110px 110px;gap:10px;align-items:end}#rosterAvailability .availability-wish label{font-size:12px}#rosterAvailability .availability-wish label.check{font-size:13px;padding-bottom:7px}@media(max-width:540px){#rosterAvailability .availability-wish{grid-column:1/-1;grid-template-columns:1fr 1fr}#rosterAvailability .availability-wish label.check{grid-column:1/-1}}

.availability-percent{display:block;font-size:12px;color:var(--muted);line-height:1.3}

.employee-capacity{border:1px solid var(--line);border-radius:7px;padding:16px;margin:20px 0}.employee-capacity legend{font-weight:600;color:var(--wine);padding:0 7px}

.capacity-station-list{display:grid;gap:8px;margin:14px 0}.capacity-station{border:1px solid var(--line);border-radius:6px;padding:10px 12px}.capacity-station summary{cursor:pointer;font-weight:600;margin-bottom:8px}.capacity-station .checks{gap:10px 16px}.capacity-station p{margin:8px 0}.capacity-station .check small{font-weight:400;color:var(--muted)}

.capacity-mode{margin-top:12px;max-width:400px}

.view{padding:24px 28px 40px}.heading{margin-bottom:18px}.heading h1{font-size:clamp(1.5rem,2.2vw,2rem);margin-bottom:8px}.panel{padding:16px 18px;margin-bottom:16px}.banner{padding:9px 13px;margin-bottom:16px}.filters{padding:14px 16px;gap:10px;margin:16px 0}.row{gap:10px}input,select,textarea{padding:7px 9px}table td,table th{padding:9px 12px}.metrics{gap:12px;margin:16px 0}.metric{padding:15px 18px}
#rosterEmployee h2{font-size:1.3rem;margin-bottom:12px}#rosterEmployee input,#rosterEmployee select{font-size:13px;padding:6px 8px}#rosterEmployee label{font-size:12px;gap:3px}#rosterEmployee .checks{gap:8px 14px;margin:9px 0}#rosterEmployee .employee-capacity{padding:12px;margin:14px 0}#rosterEmployee .employee-capacity p{margin-bottom:8px;font-size:12px}#rosterEmployee .capacity-station-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:10px 0;align-items:start}#rosterEmployee .capacity-station{padding:8px 10px;font-size:13px}#rosterEmployee .capacity-station summary{margin-bottom:0}#rosterEmployee .capacity-station[open] summary{margin-bottom:8px}.capacity-mode{margin-top:8px}
@media(max-width:760px){.view{padding:18px 16px}.panel{padding:14px}.filters{padding:12px}#rosterEmployee .capacity-station-list{grid-template-columns:1fr}}

#rosterEmployee .capacity-station{margin:0}

.allocation-rule{margin:8px 0;border:1px solid var(--line);border-radius:6px;padding:9px 12px}.allocation-rule summary{cursor:pointer;font-weight:600;font-size:14px}.allocation-rule form{margin-top:12px}.allocation-rule input{font-size:13px;width:100%;min-width:100px}.allocation-rule table{width:100%}.allocation-rule th,.allocation-rule td{padding:6px 8px}



.shift-card[draggable=true]{cursor:grab}.shift-card[draggable=true]:active{cursor:grabbing}.worktime-control p{margin:8px 0 0}.worktime-control .check{font-weight:600;color:var(--wine)}

.reservation-summary{flex-basis:100%;border-top:1px solid var(--line);padding-top:16px;margin-top:6px}.reservation-summary p{margin:7px 0}.reservation-summary a{font-size:14px}

form[data-occupancy-rule]{display:block}form[data-occupancy-rule]>.check{display:flex;justify-content:flex-start;gap:8px;margin-bottom:12px}form[data-occupancy-rule]>.check input{width:auto}form[data-occupancy-rule] .row{display:flex;flex-wrap:wrap;align-items:end}form[data-occupancy-rule] .row label{flex:1 1 140px;min-width:0}form[data-occupancy-rule] .row label:first-child{flex:2 1 220px}form[data-occupancy-rule] .row input{width:100%;min-width:0}

form[data-occupancy-rule]{padding:10px 12px;margin:8px 0}form[data-occupancy-rule]>.check{margin:0 0 7px;font-size:13px;gap:6px}form[data-occupancy-rule] .row{display:grid;grid-template-columns:minmax(150px,2fr) repeat(3,minmax(90px,1fr)) auto;gap:8px;align-items:end}form[data-occupancy-rule] .row label{font-size:12px;gap:3px;min-width:0}form[data-occupancy-rule] .row input{font-size:14px;padding:5px 7px}form[data-occupancy-rule] .row button{font-size:13px;padding:7px 10px;white-space:nowrap} .occupancy-rules>p{font-size:13px;margin-bottom:9px} .occupancy-rules>h2{font-size:1.25rem;margin-bottom:10px}
@media(max-width:1100px){form[data-occupancy-rule] .row{grid-template-columns:repeat(4,minmax(0,1fr))}form[data-occupancy-rule] .row label:first-child{grid-column:1/-1}form[data-occupancy-rule] .row button{white-space:normal}}@media(max-width:600px){form[data-occupancy-rule] .row{grid-template-columns:repeat(2,minmax(0,1fr))}}

.occupancy-rules>summary{cursor:pointer;font-weight:650;color:var(--wine)}.occupancy-rules[open]>summary{margin-bottom:12px}

.hr-navigation{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px}.hr-navigation a{padding:7px 10px;border:1px solid var(--line);border-radius:6px;text-decoration:none;font-size:13px;background:white}.hr-navigation a[aria-current=page]{background:var(--wine);color:white;border-color:var(--wine)}.hr-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.hr-card{display:block;text-decoration:none;color:var(--ink);margin:0}.hr-card h2{font-size:1.25rem;margin:12px 0 8px}.hr-card p{font-size:14px;color:var(--muted)}.hr-card>span:last-child{font-size:13px;color:var(--wine)}@media(max-width:1100px){.hr-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.hr-cards{grid-template-columns:1fr}}

/* General HR settings */
.hr-general-settings { max-width:1050px;padding:14px 18px; }
.hr-general-settings .section-title {margin:0 0 7px;}
.hr-general-settings h2 {font-size:21px;margin:0;}
.hr-general-settings > p {font-size:12px;line-height:1.4;margin:0 0 10px;}
.hr-general-settings .actions {margin:10px 0 0;}
.hr-general-settings .actions button {font-size:13px;padding:6px 10px;}
.hr-setting-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); gap: 16px; padding: 8px 0; border-top: 1px solid var(--line, #ddd); align-items: start; }
.hr-setting-row h3 {font:600 13px/1.35 var(--font);margin:0 0 3px;}
.hr-setting-row p {margin:0;max-width:600px;font-size:12px;line-height:1.35;}
.hr-setting-control { min-width: 0; }
.hr-setting-control select {width:100%;font-size:13px;padding:4px 7px;min-height:30px;}
.hr-setting-control .check {font-size:13px;margin:0;min-height:28px;}
.hr-setting-checks { border: 0; padding: 0; margin:6px 0 0;display:flex;flex-wrap:wrap;gap:4px 12px; }
.hr-setting-checks legend { font-size: 12px; color: #666; margin-bottom: 4px; }
.hr-setting-checks .check { margin: 0; }
.hr-setting-choice .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 680px) { .hr-setting-row { grid-template-columns: 1fr; gap: 12px; } }
/* Ferieplanlegger og personalliste */
.leave-calendar { max-height: 680px; }
.leave-calendar table { width: max-content; min-width: 100%; border-collapse: separate; border-spacing: 0; }
.leave-calendar th, .leave-calendar td { border-right: 1px solid #e6e1da; padding: 5px; text-align: center; min-width: 36px; }
.leave-calendar thead th { position: sticky; top: 0; background: #f6f2ec; z-index: 2; font-size: 11px; }
.leave-calendar tr > th:first-child { position: sticky; left: 0; min-width: 190px; max-width: 240px; text-align: left; background: #fff; z-index: 1; }
.leave-calendar thead th:first-child { z-index: 3; background: #f6f2ec; }
.leave-calendar th small, .personnel-table td small { display: block; font-size: 11px; font-weight: normal; color: #666; }
.leave-calendar .weekend { background: #f0ece8; }
.leave-calendar .current-day { box-shadow: inset 0 2px #386e53; }
.leave-calendar td button { padding: 3px; min-width: 28px; border: 0; background: transparent; }
.leave-mark { display: inline-block; border-radius: 4px; padding: 3px 6px; font-size: 11px; line-height: 1.4; }
.leave-mark.approved { color: #205438; background: #dfefe4; }
.leave-mark.pending { color: #77531c; background: #fff0c8; }
.leave-mark.absence, .leave-mark.cancelled, .leave-mark.rejected { color: #615c58; background: #ebe7e3; }
.personnel-table td { white-space: nowrap; }
@media print { .sidebar, .topbar, .hr-navigation, .no-print, .view > .banner, .heading > .badge { display: none !important; } body, main, .view { background: white !important; margin: 0 !important; padding: 0 !important; } .app, #app { display: block !important; } .table-wrap { overflow: visible; } .personnel-table { font-size:12px; } .personnel-table td, .personnel-table th { padding: 4px; white-space: normal; } }

/* Hele feriedagen åpner registrering ved den ansatte. */
.leave-calendar td { padding: 0; }
.leave-calendar td button { display: block; width: 100%; min-height: 42px; border-radius: 0; cursor: pointer; }
.leave-calendar td button:hover { background: #e3ede8; }
.leave-calendar td button:focus-visible { outline: 2px solid #386e53; outline-offset: -2px; }
.leave-entry-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 24px; border: 1px solid #ddd3cd; border-radius: 12px; overflow: auto; background: #fff; box-shadow: 0 20px 70px #0003; }
.leave-entry-dialog::backdrop { background: #20161a88; }
.leave-entry-dialog form > label { display: grid; gap: 6px; margin-top: 14px; }
.leave-entry-dialog form > label input, .leave-entry-dialog form > label textarea { width: 100%; box-sizing: border-box; }
.leave-entry-dialog .dialog-head h2 { margin: 0; }
.leave-entry-dialog .row { margin-top: 16px; }

/* Søndager skiller seg fra lørdager i ferieplanleggeren. */
.leave-calendar .sunday { background: #fbe5e5; }
.leave-calendar thead th.sunday { color: #a32132; background: #f6d4d8; }
.leave-calendar td.sunday button:hover { background: #f4cdd2; }

/* Fargen viser fraværstype; symbol viser behandlingsstatus. */
.leave-mark.type-holiday { background: #fff0b6; color: #75551a; }
.leave-mark.type-leave, .leave-mark.type-parental_leave { background: #e8dcf7; color: #603789; }
.leave-mark.type-course { background: #d9eafa; color: #245981; }
.leave-mark.type-sick_self, .leave-mark.type-sick_certificate, .leave-mark.type-sick_hospital, .leave-mark.type-child_sick, .leave-mark.type-caregiver_sick, .leave-mark.type-sick_outside_employer, .leave-mark.type-sick_partial { background: #fadbe2; color: #418061; }
.leave-mark.type-quarantine { background: #ffe1c8; color: #8b4b1c; }
.leave-mark.type-off { background: #deeee5; color: #315d47; }
.leave-calendar .leave-mark.approved { box-shadow: inset 0 0 0 1px currentColor; }

.leave-entry-dialog .leave-delete { background: #a32132; border-color: #a32132; color: white; }
.leave-entry-dialog .leave-delete:hover { background: #861a29; }

.leave-dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 18px; }
.leave-dialog-actions .actions { margin: 0; }
.leave-entry-dialog .leave-save { background: #2d6843; border-color: #2d6843; color: #fff; }
.leave-entry-dialog .leave-save:hover { background: #245436; }
.leave-entry-dialog .leave-cancel { background: #e7e7e7; border-color: #cdcdcd; color: #454545; }
.leave-entry-dialog .leave-cancel:hover { background: #d8d8d8; }

.time-view-switch { display: inline-flex; border: 1px solid #ccd4cc; border-radius: 6px; overflow: hidden; }
.time-view-switch button { border: 0; border-radius: 0; margin: 0; background: #e8e8e8; color: #444; }
.time-view-switch button.active { background: #2d6843; color: white; }
.time-employee-details { margin-top: 24px; }
.time-employee-details h2 { margin-bottom: 6px; }

.supplement-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; }
.supplement-actions .supplement-save { background: #2d6843; border-color: #2d6843; color: #fff; }
.supplement-actions .supplement-save:hover { background: #245436; }
.supplement-actions .supplement-delete { background: #a32132; border-color: #a32132; color: #fff; }
.supplement-actions .supplement-delete:hover { background: #861a29; }

.overtime-field small { display: block; max-width: 280px; margin-top: 6px; font-weight: normal; line-height: 1.45; }

.month-roster th, .month-roster td { min-width: 40px; }
.month-roster td { vertical-align: top; }
.month-roster .month-shift { padding: 4px 2px; min-height: 42px; background: #e2eee8; font-size:12px; line-height: 1.4; margin: 2px 0; }
.month-roster .month-shift.dept-1 { background: #dce8f7; }
.month-roster .month-shift.dept-2 { background: #f5e7c8; }
.month-roster .month-shift.dept-3 { background: #dceddf; }
.month-roster .leave-mark { padding: 2px 3px; text-decoration: none; margin: 2px 0; }
.month-roster .month-empty { color: #5f6b65; }
.month-roster table { width: 100%; min-width: 1100px; table-layout: fixed; }
.month-roster th, .month-roster td { min-width: 28px; padding: 2px; }
.month-roster tr > th:first-child { width: 180px; min-width: 180px; max-width: 180px; overflow-wrap: anywhere; }
.month-roster .month-shift { font-size:12px; padding: 4px 1px; }

.staff-tabs { display: flex; flex-wrap: wrap; gap: 5px; }
.staff-tabs button.active { background: var(--wine, #37664f); border-color: var(--wine, #37664f); color: #fff; }
.staff-card .section-title h2 { margin-bottom: 4px; }
.staff-card .row { align-items: end; }
.staff-card td small { display: block; margin-top: 4px; color: #666; }
.staff-card textarea { width: 100%; box-sizing: border-box; }

.clock-shortcut{display:inline-flex;align-items:center;gap:8px;text-decoration:none;margin-left:auto;min-height:44px}.clock-shortcut svg{flex-shrink:0}.employee-home{max-width:900px;margin:auto}.clock-panel{text-align:center}.clock-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.clock-actions button{min-height:64px;font-weight:650}.clock-actions .clock-in{background:var(--green);color:white;border-color:var(--green)}.clock-actions button:disabled{cursor:default}.employee-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.employee-sections .panel{margin:0}.employee-sections p{font-size:14px}.topbar:has(.clock-shortcut){flex-wrap:wrap}@media(max-width:600px){.employee-sections{grid-template-columns:1fr}.clock-shortcut span{font-size:13px}}

.employee-shell main{margin-left:0}.employee-shell .topbar label{display:none}.employee-shell .heading .eyebrow,.employee-shell .heading>.badge{display:none}.employee-shell .view{max-width:980px}

.smart-proposal-grid td{padding:6px;vertical-align:middle}.smart-proposal-grid .shift-card{border:1px solid #b8d5b7;border-radius:14px;padding:14px 8px;text-align:center;justify-items:center;min-height:80px}.smart-proposal-grid .shift-card strong{font-size:18px}.smart-proposal-grid .shift-early{background:#a7d397;color:#18332b}.smart-proposal-grid .shift-day{background:#d0e8c6;color:#18332b}.smart-proposal-grid .shift-late{background:#20634b;color:white;border-color:#20634b}.smart-proposal-grid .add-shift{border-radius:14px;min-height:40px}.proposal-absence{display:block;text-align:center;padding:14px 8px;border:1px solid #bad6b7;border-radius:14px;background:white;color:#31565c;font-weight:600;margin:5px 0}.smart-proposal-grid th:last-child{min-width:110px}

/* Kompakt oppsett for tillegg på røde dager. */
#hrOptions-holidays{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:14px 16px}
#hrOptions-holidays>.section-title,#hrOptions-holidays>p,#hrOptions-holidays>.actions{grid-column:1/-1;margin:0}
#hrOptions-holidays h2{font-size:1.25rem;margin:0}
#hrOptions-holidays>p{font-size:13px;line-height:1.4}
#hrOptions-holidays [data-holiday-row]{margin:0;min-width:0;padding:7px 10px 10px;border-radius:6px}
#hrOptions-holidays legend{font-size:14px;font-weight:600;padding:0 4px}
#hrOptions-holidays .row{display:grid;grid-template-columns:minmax(0,1fr) 100px;gap:8px}
#hrOptions-holidays .row label{min-width:0;font-size:12px;gap:3px}
#hrOptions-holidays input,#hrOptions-holidays select{min-width:0;width:100%;font-size:13px;padding:5px 7px}
#hrOptions-holidays button{font-size:13px;padding:7px 12px}
@media(max-width:700px){#hrOptions-holidays{grid-template-columns:1fr}}

.employee-fold{border:1px solid var(--line);border-radius:7px;padding:10px 12px;margin:10px 0}.employee-fold>summary{cursor:pointer;font-weight:650;color:var(--wine);font-size:14px}.employee-fold[open]>summary{margin-bottom:10px}.employee-fold .employee-fold{background:white}.employee-fold .row{gap:10px}.employee-fold p{font-size:13px;margin:8px 0}

.hr-overview-navigation{margin-bottom:6px}

.nav-heading{display:flex;align-items:stretch;border-radius:7px;overflow:hidden}.nav-heading.active{background:#ebf2ee}.nav-heading a.nav-parent{flex:1;min-width:0;border-radius:0}.nav-heading .nav-toggle{flex:0 0 36px;padding:0;border:0;border-radius:0;background:transparent;color:var(--wine)}.nav-heading .nav-toggle:hover{background:#dde8e2}



[aria-label="Filtrer ansatte etter avdeling"]{margin-bottom:14px}

.season-departments{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 20px}.season-employees{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:12px 20px;margin:16px 0}.season-employees label{white-space:normal;overflow-wrap:anywhere;align-items:flex-start}

.hr-text-tabs{gap:22px;border-bottom:1px solid var(--line);margin-top:-6px;margin-bottom:20px}.hr-text-tabs a{padding:6px 0 9px;border:0;border-bottom:3px solid transparent;border-radius:0;background:transparent;color:var(--muted)}.hr-text-tabs a[aria-current=page]{background:transparent;color:var(--wine);border-color:var(--wine);font-weight:650}.hr-text-tabs a:hover{color:var(--wine);border-bottom-color:var(--accent)}

.availability-overview .availability-cell-link.is-empty{font-weight:400;color:var(--muted);text-decoration:underline;text-underline-offset:3px}.availability-overview .availability-cell-link.is-empty:hover{color:var(--wine)}

.availability-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(290px,380px);gap:24px;align-items:start}.availability-rule-card{margin:0;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.availability-rule-card strong{color:#111;font-weight:700}.availability-rule-card p{font-size:13px;line-height:1.5;color:var(--muted);margin:8px 0 12px}.availability-rule-card legend{font-size:13px}.availability-rule-card .check{align-items:start}@media(max-width:1050px){.availability-layout{grid-template-columns:1fr}.availability-rule-card{max-width:none}}

#rosterAvailability{max-width:none}#rosterAvailability .availability-rule-card .check{font-size:14px;line-height:1.5}#rosterAvailability .availability-rule-card p{font-size:13px}

.availability-editor-shell .view{padding-top:18px;padding-bottom:20px}.availability-editor-shell .heading{margin-bottom:12px}.availability-editor-shell .heading h1{font-size:1.8rem;margin-bottom:6px}.availability-editor-shell .heading p{margin-bottom:0}.availability-editor-shell .heading .eyebrow{margin-bottom:6px}.availability-editor-shell .banner{padding:9px 12px;margin-bottom:12px}.availability-editor-shell .hr-navigation{margin-bottom:10px}.availability-editor-shell .hr-text-tabs{margin-bottom:12px}.availability-editor-shell #rosterAvailability{padding:14px;margin-top:10px}.availability-editor-shell .availability-layout{gap:16px}.availability-editor-shell .availability-rule-card{padding:10px 12px}.availability-editor-shell .availability-rule-card p{margin:6px 0 8px;line-height:1.4}.availability-day-details{margin:8px 0 12px}.availability-day-details summary{font-size:14px}.availability-editor-shell #availability-day-fields{border:0;padding:0;margin:0;min-width:0}.availability-editor-shell .availability-period-buttons{margin:10px 0 6px}.availability-editor-shell #availability-wishes{margin-bottom:6px}

.availability-hours-details{margin:8px 0 12px}.availability-hours-details summary{font-size:14px}

@media(max-width:600px){.hr-text-tabs{flex-direction:column;align-items:stretch;gap:0}.hr-text-tabs a{display:flex;align-items:center;min-height:44px;padding:10px 12px;border-bottom:0;border-left:3px solid transparent}.hr-text-tabs a[aria-current=page]{border-left-color:var(--wine);background:#ebf2ee}.hr-text-tabs a:hover{border-left-color:var(--accent)}}

.holiday-deadline{padding:10px 14px}.holiday-deadline-departments{display:flex;flex-wrap:wrap;gap:4px 24px;margin:4px 0}.holiday-deadline-departments span{font-size:13px}.holiday-deadline>a{font-size:13px}

/* Compact holiday calendar controls; retain usable touch targets on mobile. */
[data-rule-panel="leave-filters"]{padding:10px 14px;margin-bottom:12px}[data-rule-panel="leave-filters"]>summary{font-size:14px}[data-rule-panel="leave-filters"][open]>summary{margin-bottom:8px}#leave-filter{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:end}#leave-filter>.row{gap:8px;align-items:end}#leave-filter>.actions{gap:8px;margin:0;align-items:center}#leave-filter label{font-size:12px;gap:3px}#leave-filter input,#leave-filter select{padding:5px 8px;font-size:13px;min-height:32px}#leave-filter button{padding:6px 10px;font-size:13px;min-height:32px}#leave-filter input[name=search],#leave-filter input[id=lp-actor]{width:135px}#leave-filter strong{font-size:13px}@media(max-width:600px){#leave-filter button,#leave-filter input,#leave-filter select{min-height:44px}#leave-filter>.row,#leave-filter>.actions{flex-wrap:wrap}}

.holiday-planner-shell .view{padding-top:16px;padding-bottom:20px}.holiday-planner-shell .heading{margin-bottom:10px}.holiday-planner-shell .heading h1{font-size:1.8rem;margin-bottom:4px}.holiday-planner-shell .heading p{margin-bottom:0}.holiday-planner-shell .heading .eyebrow{margin-bottom:5px}.holiday-planner-shell .banner{padding:8px 12px;margin-bottom:10px}.holiday-planner-shell .hr-navigation{margin-bottom:8px}.holiday-planner-shell .hr-navigation a{padding:5px 9px}.holiday-planner-shell .actions{gap:7px;margin-top:7px;margin-bottom:7px}.holiday-planner-shell .leave-legend{gap:6px;margin:7px 0 4px}.holiday-planner-shell .view>p.small{margin:6px 0}.holiday-planner-shell .leave-calendar th,.holiday-planner-shell .leave-calendar td{padding:3px;min-width:33px}.holiday-planner-shell .leave-calendar tbody th{font-size:12px;line-height:1.4}.holiday-planner-shell .leave-calendar th small{font-size:12px}.holiday-planner-shell .leave-calendar td button{padding:2px;min-height:28px;min-width:26px}.holiday-planner-shell .leave-calendar{max-height:calc(100vh - 180px)}@media(max-width:600px){.holiday-planner-shell .hr-navigation a{min-height:44px;display:flex;align-items:center}.holiday-planner-shell .leave-calendar td button{min-height:44px;min-width:40px}}

.season-planner-shell .view{padding-top:18px}.season-planner-shell .heading{margin-bottom:12px}.season-planner-shell .heading h1{font-size:1.8rem;margin-bottom:5px}.season-planner-shell .heading p{margin-bottom:0}.season-planner-shell .season-departments{margin-bottom:12px;gap:8px}.season-planner-shell .panel{padding:12px 16px;margin-bottom:10px}.season-planner-shell details.panel>summary{font-size:14px}.season-planner-shell details.panel:not([open])>summary{margin:0}.season-planner-shell .banner{padding:9px 14px;margin-bottom:12px}.season-planner-shell .banner p{margin:3px 0 0}.season-planner-shell .season-method p{font-size:13px;color:var(--muted);margin-bottom:0;line-height:1.5}

.season-week strong,.season-week small{display:block;white-space:nowrap}.season-week strong{font-size:14px;font-weight:600}.season-week small{margin-top:3px;font-size:13px;color:var(--muted)}

.availability-neutral-status{font-weight:400}

.season-overview-table small{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:var(--muted)}.season-overview-dates,.season-deadline-date{white-space:nowrap}.season-overview-table td{vertical-align:top}.season-overview-table td:last-child button{white-space:nowrap}.season-deadline-date{display:block}

.daily-staffing-title{display:block}.daily-staffing-title h2{margin-bottom:10px}.daily-staffing-title .actions{justify-content:flex-start;margin:0 0 12px}

.kitchen-skill-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px 16px;margin:12px 0}.kitchen-skill-grid label{display:flex;flex-direction:column;gap:5px}.kitchen-skill-grid select{width:100%}

/* Department selectors keep both forms mounted while showing one department. */
.rules-department-tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin-bottom:20px}.rules-department-tabs button{border:0;border-radius:0;background:transparent;padding:10px 20px;border-bottom:3px solid transparent;color:var(--muted)}.rules-department-tabs button[aria-pressed="true"]{color:var(--wine);border-bottom-color:var(--wine);font-weight:700}.rule-department{margin-bottom:24px}.rule-department[hidden]{display:none}.rule-department>.panel:last-child{margin-bottom:0}@media(max-width:600px){.rules-department-tabs button{flex:1;padding:10px 12px}}

/* Shared, high-contrast marker follows the current page and selected section. */
:root{--navigation-active:#183a2f;--navigation-active-text:#fff}
.sidebar nav .nav-heading:not(.active){background:transparent}
.sidebar nav .nav-children a[aria-current="page"]{background:var(--navigation-active);color:var(--navigation-active-text);font-weight:700;border-left:4px solid #76ac91;padding-left:7px}
.sidebar nav .nav-heading.active{background:#ebf2ee}
.rules-department-tabs button[aria-pressed="true"],.hr-navigation a[aria-current="page"]{background:var(--navigation-active);color:var(--navigation-active-text);border-color:var(--navigation-active);border-radius:6px 6px 0 0}
.rules-department-tabs button:not([aria-pressed="true"]){background:transparent;color:var(--muted)}

.sidebar nav .nav-heading:not(.active) a.nav-parent{background:transparent;color:var(--muted)}

button.kitchen-plan-saved{background:#eaf2ed;color:#285940;border-color:#6b9b80}



#newEmployeeDetails{margin:12px 0 18px}#newEmployeeDetails>summary{font-size:14px}#newEmployeeDetails>form{padding-top:16px}#newEmployeeDetails>form>h2{display:none}

/* Keep period, date and historical comparison together. */
#settings>.planning-context{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;flex-basis:100%;min-width:0}

/* Compact reservation totals with optional source details. */
#settings>.reservation-summary{flex-basis:100%;padding:8px 0;margin:0;border-top:1px solid var(--line)}
.reservation-summary>summary{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;list-style:none;font-size:14px;color:var(--ink);font-weight:400}
.reservation-summary>summary::-webkit-details-marker{display:none}
.reservation-summary>summary>strong{font-weight:700}.reservation-summary>summary .badge{font-size:12px;padding:3px 8px}
.reservation-details-toggle{margin-left:auto;color:var(--wine);font-weight:600}.reservation-details-toggle::after{content:' ▾'}.reservation-summary[open] .reservation-details-toggle::after{content:' ▴'}
.reservation-summary-details{padding-top:12px;font-size:14px}.reservation-summary-details p{margin:6px 0}

.cost-period-shortcut{border:0;background:none;padding:3px 0;margin:6px 0;font-size:13px;text-decoration:underline;color:var(--wine);min-height:auto}

.forecast-cost-table>tbody>tr>td{vertical-align:top}.forecast-cost-date{white-space:nowrap}.cost-details-toggle{background:none;border:0;padding:3px 0;font-size:13px;white-space:nowrap;text-decoration:underline}.forecast-cost-detail>td{background:#faf8f7;padding:14px 16px}.forecast-cost-detail h3{font-size:14px;margin:0 0 12px}.cost-breakdown{display:flex;flex-wrap:wrap;gap:12px 24px;margin:0 0 12px}.cost-breakdown>div{min-width:130px}.cost-breakdown dt{font-size:13px;color:var(--muted)}.cost-breakdown dd{margin:4px 0 0;font-weight:600}.forecast-common-issues details{margin-top:6px}.forecast-common-issues li{margin:5px 0}

.roster-week-picker{display:flex;align-items:flex-end;gap:8px}.roster-week-picker>button{width:40px;flex:0 0 40px}.roster-toolbar>.roster-more-options{flex-basis:100%;border-top:1px solid var(--line);padding-top:10px}.roster-more-options>.row{padding-top:10px;align-items:flex-end}

.roster-grid .shift-card.shift-copy-pending { background:#fff0d6; border:1px solid #b65c00; border-left:4px solid #b65c00; color:#733a00; }

.roster-grid .shift-inline-editor {cursor:default;justify-items:stretch;text-align:left;min-width:120px;gap:6px;}
.shift-inline-editor label {display:grid;gap:2px;width:100%;font-size:12px;}
.shift-inline-editor input {width:100%;min-width:0;padding:5px;font-size:14px;box-sizing:border-box;}
.shift-inline-actions {display:flex;gap:4px;flex-wrap:wrap;}
.shift-inline-actions button {padding:5px 7px;font-size:12px;}
.shift-inline-editor .shift-more {font-size:12px;text-align:left;}

.roster-grid thead th.roster-save-heading {right:0;z-index:4;min-width:170px;background:#f4f6f5;box-shadow:-2px 0 5px #30101c10;}
.roster-save-heading > span {display:block;}
.roster-save-controls {display:grid;justify-items:end;gap:6px;margin-top:9px;}
.roster-save-controls small {font-size:12px;color:var(--wine);}
.roster-save-controls .primary {padding:9px 12px;font-size:13px;white-space:nowrap;}
.roster-save-controls .text-button {font-size:12px;}

.roster-grid .roster-group-heading th {position:static;padding:8px 12px;background:#ebefed;color:var(--wine);font-size:13px;border-top:1px solid var(--line);}
.roster-group-heading .text-button {font-weight:700;text-align:left;}
.roster-grid tr[hidden] {display:none;}
.roster-grid tbody th .roster-employee-workload {font-weight:600;color:var(--wine);}
.roster-hours-total strong {font-size:13px;white-space:nowrap;}
.roster-hours-total small {display:block;margin-top:5px;font-size:12px;color:var(--muted);}
.roster-hours-total .roster-hours-over {color:#9b2935;font-weight:600;}

.roster-grid .roster-day-blocked {background:#f2f5f3;}
.roster-day-availability {display:block;font-size:12px;color:var(--muted);margin:4px 0;}

.shift-inline-editor .shift-delete {font-size:12px;text-align:left;color:#a52132;}

.roster-unassigned-preview {font-size:12px;font-weight:400;margin-left:8px;}

.roster-unassigned-preview .roster-pick-name {font-size:12px;font-weight:400;}
.roster-grid .roster-picked-row > th {background:#f3edf5;border-left:3px solid var(--wine);}

.roster-grid thead th.roster-sunday {background:#f9dfe3;color:#962c3b;}
.roster-grid tbody td.roster-sunday {background:#fff0f2;border-left:1px solid #edc5cd;border-right:1px solid #edc5cd;}
.roster-grid tbody td.roster-sunday.roster-day-blocked {background:#f5e5e8;}

/* Compact weekly overview, while keeping the inline editor comfortable to use. */
.roster-grid td,.smart-proposal-grid td {padding:5px;}
.roster-grid .shift-card:not(.shift-inline-editor) {min-height:48px;padding:7px 6px;gap:3px;margin:3px 0;border-radius:9px;}
.smart-proposal-grid .shift-card:not(.shift-inline-editor) strong {font-size:14px;line-height:1.2;}
.roster-grid .shift-card span {font-size:12px;line-height:1.25;}
.roster-grid .add-shift,.smart-proposal-grid .add-shift {min-height:23px;padding:2px 5px;border-radius:8px;font-size:14px;line-height:18px;}
.roster-grid tbody th {padding:7px 8px;}
.roster-grid tbody th small {margin-top:2px;font-size:12px;line-height:1.25;}
.roster-grid tbody th > .text-button {font-size:13px;line-height:1.3;}
.roster-hours-total small {margin-top:3px;line-height:1.25;}

.roster-grid .shift-early,.roster-grid .shift-day {background:#d0e8c6;color:#18332b;border-color:#b8d5b7;}
.roster-grid .shift-late {background:#20634b;color:white;border-color:#20634b;}

.roster-work-warning {margin-top:6px;font-size:12px;color:#9b2935;}
.roster-work-warning summary {font-weight:700;}
.roster-work-warning ul {padding-left:14px;max-width:240px;white-space:normal;}
.roster-private-cost {margin-top:6px;font-size:12px;color:var(--wine);}
.roster-private-cost summary {font-weight:600;}
.roster-private-cost p,.roster-private-cost ul {max-width:230px;white-space:normal;margin:6px 0;}

.roster-heading-actions {display:flex;align-items:flex-start;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:8px;}
.roster-heading-actions .roster-save-controls {margin-top:0;}
.roster-week-warnings {position:relative;text-align:left;font-size:13px;font-weight:400;}
.roster-week-warnings summary {cursor:pointer;color:var(--wine);font-weight:700;white-space:nowrap;padding:9px 0;}
.roster-week-warnings ul {position:absolute;right:0;top:100%;z-index:6;width:min(420px,70vw);max-height:300px;overflow:auto;box-sizing:border-box;margin:0;padding:14px 18px 14px 30px;background:white;border:1px solid var(--line);border-radius:8px;box-shadow:0 5px 16px #30101c20;white-space:normal;}
.roster-week-warnings li + li {margin-top:8px;}

.roster-help {margin:8px 0;font-size:13px;}
.roster-help summary {cursor:pointer;color:var(--wine);font-weight:700;}
.roster-help .worktime-control {margin-top:10px;}
.metrics.roster-metrics {display:flex;flex-wrap:wrap;gap:8px 24px;margin:10px 0;}
.roster-metrics .metric {display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;padding:6px 0;border:0;border-radius:0;background:transparent;box-shadow:none;}
.roster-metrics .metric strong {font-size:18px;line-height:1.2;margin:0;}
.roster-metrics .metric span {font-size:13px;}
.roster-metrics .metric small {font-size:12px;}

.smart-plan-help {font-size:13px;margin:0 0 12px;}
.smart-plan-help summary {cursor:pointer;color:var(--wine);font-weight:600;}
.stations.smart-plan-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:12px;align-items:start;}
.smart-plan-grid .smart-plan-card {padding:14px;margin:0;font-size:13px;}
.smart-plan-title {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:8px;}
.smart-plan-title h2 {font-size:20px;margin:0 auto 0 0;}
.smart-plan-card p {margin:6px 0;}
.smart-plan-card .actions {gap:6px;margin:10px 0 8px;}
.smart-plan-card button {padding:6px 9px;font-size:12px;}
.smart-plan-card summary {font-size:12px;cursor:pointer;color:var(--wine);font-weight:600;}
.smart-plan-card form {display:grid;gap:8px;margin-top:10px;}
.smart-plan-card input {width:100%;min-width:0;}
.smart-plans-content .smart-plan-new {padding:12px 14px;margin-top:12px;}
.smart-plan-new summary {cursor:pointer;font-size:13px;font-weight:600;color:var(--wine);}
.smart-plan-new form {margin-top:12px;}
@media(max-width:600px){.stations.smart-plan-grid{grid-template-columns:minmax(0,1fr);}}

.allocation-rule .allocation-area-group th {background:#edf1ef;color:var(--wine);padding:7px 10px;font-size:13px;border-top:1px solid var(--line);}
.allocation-rule .allocation-area-group + tr td {padding-top:9px;}

.allocation-map {margin:14px 0;}
.allocation-map .row {gap:8px;align-items:end;}
.allocation-map .row input {padding:6px 8px;}
.allocation-map .row button {padding:7px 10px;font-size:13px;}
.allocation-map-status {font-size:13px;margin:12px 0;}
.allocation-map-layout {display:grid;grid-template-columns:minmax(0,860px) minmax(300px,1fr);gap:18px;align-items:start;}
.allocation-map-canvas {border:1px solid var(--line);border-radius:8px;overflow:auto;}
.allocation-map-canvas svg {display:block;width:100%;min-width:500px;height:auto;color:var(--ink);font-family:var(--font);}
.allocation-map-legend h3 {font:600 14px var(--font);margin:4px 0 12px;}
.allocation-map-person {display:flex;align-items:flex-start;gap:8px;margin-bottom:12px;font-size:13px;}
.allocation-map-person small {display:block;color:var(--muted);margin-top:2px;}
.allocation-map-color {width:17px;height:17px;border:1px solid #6c686d;border-radius:4px;flex-shrink:0;margin-top:2px;}
@media(max-width:1000px){.allocation-map-layout{grid-template-columns:1fr;}.allocation-map-legend{display:flex;flex-wrap:wrap;gap:10px 18px;}.allocation-map-legend h3,.allocation-map-legend > p{width:100%;}.allocation-map-person{margin-bottom:2px;}}

.allocation-map [data-map-table] {cursor:pointer;}
.allocation-map [data-map-table]:focus rect {stroke:#183a2f;stroke-width:3px;}
.allocation-override-editor h3 {font-size:16px;margin:0 0 10px;}
.allocation-override-editor details {margin:12px 0;}
.allocation-map-person .text-button {font-size:12px;padding:3px 0;}

.allocation-map-legend .allocation-override-editor {padding:12px;margin:14px 0;min-width:0;width:100%;box-sizing:border-box;}
.allocation-map-legend .allocation-override-editor > .row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.allocation-map-legend .allocation-override-editor > .row > label:nth-child(n+3) {grid-column:1/-1;}
.allocation-map-legend .allocation-override-editor input,.allocation-map-legend .allocation-override-editor select {min-width:0;width:100%;box-sizing:border-box;}
.allocation-map-legend .allocation-override-editor input[type=checkbox] {width:auto;}
@media(max-width:1000px){.allocation-map-legend .allocation-override-editor{flex-basis:100%;}}

.allocation-map-toolbar {display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;}
.allocation-automation-controls {margin-left:auto;display:grid;grid-template-columns:minmax(180px,1fr) auto;gap:8px 10px;align-items:end;max-width:440px;}
.allocation-automation-controls > .check {grid-column:1/-1;justify-self:end;}
.allocation-automation-controls > span {grid-column:1/-1;text-align:right;}
.allocation-automation-controls > button {justify-self:end;}
.allocation-automation-controls > label:not(.check) select {width:100%;min-width:0;}
@media(max-width:700px){.allocation-automation-controls{margin-left:0;max-width:100%;width:100%;}.allocation-automation-controls > .check{justify-self:start;}.allocation-automation-controls > span{text-align:left;}}

.allocation-map-legend .allocation-live-end {display:grid;gap:8px;padding:10px 0;border-bottom:1px solid #e0e4e2;}
.allocation-map-legend .allocation-live-end select {min-width:0;width:100%;}
.allocation-map-legend .allocation-live-end p {margin:0;}

.allocation-map-legend .allocation-override-editor,.allocation-map-legend .allocation-live-panel {padding:10px;margin:10px 0;font-size:13px;width:100%;box-sizing:border-box;}
.allocation-map-legend .allocation-override-editor h3,.allocation-map-legend .allocation-live-panel h3 {font-size:14px;margin:0 0 7px;}
.allocation-map-legend .allocation-override-editor label,.allocation-live-end label {font-size:12px;}
.allocation-map-legend .allocation-override-editor p,.allocation-map-legend .allocation-live-panel > p {font-size:12px;margin:6px 0;line-height:1.35;}
.allocation-map-legend .allocation-override-editor details {margin:6px 0;}
.allocation-map-legend .allocation-override-editor input,.allocation-map-legend .allocation-override-editor select,.allocation-map-legend .allocation-live-end select {padding:5px 7px;min-height:30px;font-size:13px;}
.allocation-map-legend .allocation-override-editor button,.allocation-map-legend .allocation-live-panel button {padding:6px 9px;min-height:30px;font-size:13px;}
.allocation-compact-actions {display:flex;gap:6px;margin-top:7px;flex-wrap:wrap;}
.allocation-map-legend .allocation-live-end {grid-template-columns:minmax(0,1fr) auto;gap:6px 8px;padding:6px 0;align-items:end;}
.allocation-live-end > strong,.allocation-live-end > details {grid-column:1/-1;}
.allocation-live-tables summary {font-size:12px;}
@media(max-width:1000px){.allocation-live-panel{flex-basis:100%;}}

.allocation-automation-controls > fieldset {display:contents;border:0;padding:0;margin:0;}
.allocation-automation-controls > fieldset > .check {grid-column:1/-1;justify-self:end;}
.allocation-automation-controls > fieldset > span {grid-column:1/-1;text-align:right;}
.allocation-map [data-map-table][aria-disabled=true] {cursor:default;}

.allocation-map-legend .allocation-extra-button {padding:7px 10px;margin:4px 0 8px;font-size:13px;}

.allocation-person-actions {display:flex;flex-wrap:wrap;gap:4px 12px;}
.allocation-map-legend .allocation-inline-end summary {font-size:12px;color:var(--wine);margin-top:3px;cursor:pointer;}
.allocation-map-legend .allocation-quick-action {padding:10px;margin:10px 0;font-size:13px;}
.allocation-map-legend .allocation-quick-action p {margin:6px 0;font-size:12px;}
.allocation-map-legend .allocation-quick-action select {min-width:0;width:100%;padding:5px 7px;}
.allocation-map-legend .allocation-quick-action button,.allocation-relief-person button {font-size:13px;padding:5px 8px;}
.allocation-relief-list {margin:8px 0;}
.allocation-relief-person {display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px;padding:6px 0;font-size:13px;}
.allocation-relief-person small {color:var(--muted);}

/* Compact daily wage estimate under the month calendar. */
.month-roster tfoot th, .month-roster tfoot td { border-top: 1px solid var(--line, #ddd); background: #f2f4f3; font-size:12px; text-align: center; vertical-align: middle; padding: 4px 2px; }
.month-roster tfoot th:first-child { text-align: left; }
.month-roster tfoot small { display: block; font-size:12px; font-weight: normal; }
.month-roster .month-daily-cost td { font-variant-numeric: tabular-nums; }
.month-roster .month-daily-cost strong { font-size:12px; white-space: nowrap; }
.month-roster tfoot .sunday { background: #fbe8eb; }

/* Employee phone view: current assignment only, with readable names below the map. */
.employee-allocation-heading { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.employee-allocation-heading h2,.employee-allocation-heading p { margin:0 0 4px; }
.employee-allocation-heading button { min-height:44px; }
.employee-allocation .allocation-map-canvas { width:100%;min-width:0; }
.employee-allocation .allocation-map-canvas svg { width:100%;min-width:0;height:auto;display:block; }
.employee-allocation-people { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px; }
.employee-allocation-person { display:flex;gap:8px;align-items:start;min-width:0; }
.employee-allocation-color { width:20px;height:20px;flex-shrink:0; }
.employee-allocation-person strong,.employee-allocation-person small { display:block;overflow-wrap:anywhere; }
.employee-allocation-person small { font-size:13px;color:#6c686d; }
@media(max-width:600px){.employee-shell main{padding:0}.employee-shell .view{padding:12px}.employee-shell .topbar{padding:10px 12px}.employee-shell .heading h1{font-size:25px}.employee-allocation.panel{padding:12px}.employee-allocation h2{font-size:20px}.employee-allocation-people{grid-template-columns:1fr}.clock-actions{gap:8px;margin:12px 0}.clock-panel{padding:14px}}

.employee-allocation-navigation {display:flex;align-items:end;gap:8px;margin:12px 0;flex-wrap:wrap;}
.employee-allocation-navigation button,.employee-allocation-navigation input {min-height:44px;}
.employee-allocation-navigation label {flex:1;max-width:150px;min-width:90px;}
.employee-allocation-navigation input {width:100%;}

.employee-allocation-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin-top:12px}
.employee-allocation-dates label{min-width:0}.employee-allocation-dates input{width:100%;min-width:0;min-height:44px}

/* Minimum staffing timeline, with two draggable handles per interval. */
.staffing-timeline h2{margin-top:0}.staffing-timeline-axis{display:flex;justify-content:space-between;margin:12px 0;font-size:13px;color:var(--muted)}
.staffing-timeline-level{padding:12px 0;border-top:1px solid var(--line)}.staffing-timeline-level-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.staffing-timeline-level-title button{padding:5px 10px;font-size:13px;min-height:36px}
.staffing-timeline-interval{margin-top:10px}.staffing-timeline-interval.is-inactive{opacity:.55}.staffing-timeline-range{height:44px;position:relative;margin:0 12px}.staffing-timeline-range svg{width:100%;height:44px;position:absolute;inset:0}
.staffing-timeline-range input[type=range]{appearance:none;-webkit-appearance:none;position:absolute;inset:0;width:100%;height:44px;margin:0;padding:0;border:0;background:transparent;pointer-events:none}
.staffing-timeline-range input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:22px;height:32px;background:#fff;border:3px solid var(--brand);border-radius:7px;pointer-events:auto;cursor:ew-resize}
.staffing-timeline-range input[type=range]::-moz-range-thumb{width:18px;height:28px;background:#fff;border:3px solid var(--brand);border-radius:7px;pointer-events:auto;cursor:ew-resize}.staffing-timeline-range input:focus-visible{outline:2px solid #0057d9;outline-offset:2px}
.staffing-timeline-interval-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px}.staffing-timeline-interval-controls strong{min-width:110px}.staffing-timeline-interval-controls button{padding:4px 8px;font-size:13px}.staffing-timeline-interval-controls .check{margin:0}
@media(max-width:600px){.staffing-timeline .row{align-items:stretch}.staffing-timeline .row>label{width:100%}.staffing-timeline select{max-width:100%}}

/* All intervals at a staffing level share the same horizontal time axis. */
.staffing-timeline-level{display:grid;grid-template-columns:minmax(0,1fr);row-gap:6px}
.staffing-timeline-level-title{grid-area:1/1}
.staffing-timeline-interval{display:contents}
.staffing-timeline-range{grid-area:2/1;margin:0 12px;pointer-events:none}
.staffing-timeline-shared-track{grid-area:2/1;align-self:center;height:14px;margin:0 12px;border-radius:7px;background:#e9edeb}
.staffing-timeline-interval.is-inactive .staffing-timeline-range,.staffing-timeline-interval.is-inactive .staffing-timeline-interval-controls{opacity:.55}
.staffing-timeline-range:focus-within{z-index:2}
.staffing-timeline-interval-controls{grid-column:1;padding:3px 0}

/* Compact staffing editor: headcount, shared timeline and add button on one row. */
.staffing-timeline-level{grid-template-columns:95px minmax(0,1fr) 92px;column-gap:8px;row-gap:2px;padding:7px 0}
.staffing-timeline-level-title{display:contents}
.staffing-timeline-level-title>strong{grid-area:1/1;font-size:14px;align-self:center}
.staffing-timeline-level-title>button{grid-area:1/3;font-size:12px;min-height:28px;padding:3px 7px;align-self:center}
.staffing-timeline-range,.staffing-timeline-shared-track{grid-area:1/2;margin:0 10px}
.staffing-timeline-range,.staffing-timeline-range svg,.staffing-timeline-range input[type=range]{height:34px}
.staffing-timeline-interval-controls{grid-column:2/4;font-size:12px;gap:5px 10px;padding:0}
.staffing-timeline-interval-controls strong{min-width:90px}
.staffing-timeline-interval-controls button{font-size:12px;padding:2px 7px;min-height:26px}
.staffing-timeline-level>p{grid-column:2/4;margin:0;font-size:12px}
.staffing-timeline>p{font-size:13px;margin:6px 0}
.staffing-timeline h2{font-size:20px;margin-bottom:6px}
.staffing-timeline-axis{margin:6px 102px 2px;font-size:12px}
@media(max-width:600px){.staffing-timeline-level{grid-template-columns:76px minmax(0,1fr) 75px;column-gap:3px}.staffing-timeline-level-title>strong{font-size:13px}.staffing-timeline-level-title>button{font-size:12px}.staffing-timeline-interval-controls{grid-column:1/4;gap:4px 8px}.staffing-timeline-axis{margin-right:82px;margin-left:79px}}

.staffing-timeline-days{display:flex;gap:4px;margin:8px 0;flex-wrap:wrap}
.staffing-timeline-days button{min-height:30px;padding:4px 12px;font-size:13px}
.staffing-timeline-days button[aria-pressed=true]{color:#fff;background:var(--brand);border-color:var(--brand)}
.staffing-timeline-period{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.staffing-timeline-period>label{flex:1;min-width:180px;max-width:440px;font-size:13px}
.staffing-timeline-period select{width:100%;min-height:30px;padding:4px 8px;font-size:13px}
.staffing-timeline-copy{position:relative;font-size:13px}
.staffing-timeline-copy summary{cursor:pointer;padding:7px 0;color:var(--brand);font-weight:600}
.staffing-timeline-copy-options{position:absolute;top:100%;right:0;z-index:5;display:flex;gap:8px;flex-wrap:wrap;padding:12px;width:290px;max-width:80vw;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 4px 14px #0002}
.staffing-timeline-copy-options small{width:100%;font-size:12px;line-height:1.4}
.staffing-timeline-copy-options button{font-size:13px;padding:4px 8px;min-height:30px}
@media(max-width:600px){.staffing-timeline-days{gap:3px}.staffing-timeline-days button{padding:4px 8px}.staffing-timeline-copy-options{right:auto;left:0}}

/* Align interval times with the left edge of the staffing row. */
.staffing-timeline-interval-controls{grid-column:1/4}

/* Keep the time at the left and group interval actions at the right. */
.staffing-timeline-interval-controls>strong{margin-right:auto}
.staffing-timeline-interval-controls{column-gap:12px}
@media(max-width:600px){.staffing-timeline-interval-controls{column-gap:7px}.staffing-timeline-interval-controls strong{min-width:80px}}

.staffing-timeline>summary{cursor:pointer;color:var(--wine)}
.staffing-timeline>summary>h2{display:inline;font-size:20px;margin:0}
.staffing-timeline[open]>summary{margin-bottom:8px}

/* Compact occupancy rules; editors open only when requested. */
.occupancy-rules>summary{margin-bottom:0}
.occupancy-help{margin:10px 0;font-size:13px}
.occupancy-help>summary,.occupancy-inactive>summary{font-size:13px;cursor:pointer;color:var(--wine)}
.occupancy-help p{margin:6px 0;font-size:13px;max-width:80ch}
.occupancy-column-headings,.occupancy-rule-row>summary{display:grid;grid-template-columns:40px minmax(0,1fr) 110px 65px;gap:10px;align-items:center}
.occupancy-column-headings{font-size:12px;color:var(--muted);padding:7px 9px;background:#f4f7f6;border-bottom:1px solid var(--line)}
.occupancy-rule-row{border-bottom:1px solid var(--line)}
.occupancy-rule-row>summary{padding:8px 9px;font-size:13px;cursor:pointer;list-style:none;color:var(--ink);font-weight:400}
.occupancy-rule-row>summary::-webkit-details-marker{display:none}
.occupancy-rule-row small{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.occupancy-rule-row .occupancy-status{color:var(--green);font-weight:bold}
.occupancy-edit-label{color:var(--wine);text-decoration:underline;text-align:right}
.occupancy-rule-row[open] .occupancy-edit-label{font-weight:700}
.occupancy-rule-row form{padding:10px;background:#f8faf9;border-top:1px solid var(--line)}
.occupancy-rule-row form .row{gap:10px;margin:8px 0}
.occupancy-rule-row form label{font-size:12px}
.occupancy-rule-row form input{padding:5px 8px;font-size:13px}
.occupancy-rule-row form button,.occupancy-rules>[data-add-occupancy]{font-size:13px;padding:5px 10px;min-height:30px}
.occupancy-rules>[data-add-occupancy]{margin-top:10px}
.occupancy-inactive{margin:10px 0}.occupancy-inactive>summary{padding:4px 0}
.occupancy-empty{margin:10px 0}
@media(max-width:600px){.occupancy-column-headings,.occupancy-rule-row>summary{grid-template-columns:30px minmax(0,1fr) 65px 48px;gap:5px}.occupancy-staff-label{display:none}}

/* Tight occupancy editor with three equally sized numeric fields. */
.occupancy-rules.panel{padding:12px 14px}
.occupancy-rules>summary{font-size:14px}
.occupancy-help{margin:6px 0}
.occupancy-column-headings{padding:4px 7px;font-size:12px}
.occupancy-rule-row>summary{padding:5px 7px;min-height:30px;font-size:13px}
.occupancy-inactive{margin:6px 0}
.occupancy-inactive>summary{padding:2px 0;font-size:13px}
.occupancy-rule-row form{padding:7px 8px}
.occupancy-rule-row form>.check{font-size:12px;gap:5px}
.occupancy-rule-row form .row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:6px 0}
.occupancy-rule-row form .row>label{gap:3px;min-width:0;width:auto;font-size:12px}
.occupancy-rule-row form .row input{width:100%;min-width:0;min-height:28px;padding:4px 7px;font-size:13px}
.occupancy-rule-row form .actions{margin:6px 0 0;gap:6px}
.occupancy-rule-row form button,.occupancy-rules>[data-add-occupancy]{min-height:28px;padding:4px 8px;font-size:12px}
.occupancy-empty{margin:6px 0;font-size:12px}
@media(max-width:420px){.occupancy-rule-row form .row{gap:5px}.occupancy-rule-row form .row>label{font-size:12px}}

/* One desktop line for activation, thresholds, staff count and actions. */
.occupancy-rule-row form{display:grid;grid-template-columns:auto repeat(3,minmax(80px,1fr)) auto;align-items:end;gap:8px}
.occupancy-rule-row form .row{display:contents}
.occupancy-rule-row form>.check{align-self:end;min-height:28px;margin:0;white-space:nowrap}
.occupancy-rule-row form .actions{display:flex;flex-wrap:nowrap;margin:0;white-space:nowrap;align-self:end}
.occupancy-rule-row form .actions button{min-height:28px}
@media(max-width:600px){.occupancy-rule-row form{grid-template-columns:repeat(3,minmax(0,1fr))}.occupancy-rule-row form>.check{grid-column:1/-1}.occupancy-rule-row form .actions{grid-column:1/-1}}

/* Override the generic first-field rule that spans the entire form. */
.occupancy-rule-row form .row>label,.occupancy-rule-row form .row>label:first-child{grid-column:auto;grid-row:auto}

.season-overview>summary{cursor:pointer;color:var(--wine)}
.season-overview>summary>h2{display:inline;margin:0}
.season-overview[open]>summary{margin-bottom:10px}

/* Compact seasonal minimum patterns; existing staffing timelines stay unchanged. */
.season-template-editor{padding:10px!important;margin:8px 0!important}
.season-template-editor>.row{gap:6px 10px;margin-bottom:8px}
.season-template-editor label{font-size:12px;gap:3px}
.season-template-editor input[type=time]{width:88px;min-height:30px;padding:4px 6px}
.season-template-editor select{min-height:30px;padding:4px 6px}
.season-template-level{display:grid;grid-template-columns:76px minmax(0,1fr) 85px;align-items:center;gap:8px;padding:5px 0;border-top:1px solid var(--line)}
.season-template-level>strong{font-size:13px}
.season-template-level>button{padding:4px 8px;min-height:30px;font-size:12px}
.season-template-interval{display:grid;grid-template-columns:350px minmax(180px,1fr);align-items:center;gap:10px;margin:2px 0}
.season-template-interval>.row{flex-wrap:nowrap;gap:7px;margin:0;align-items:center}
.season-template-interval .check{white-space:nowrap;font-size:12px}
.season-template-interval .staffing-timeline-range{margin:0 10px!important;height:34px}
.season-template-interval .staffing-timeline-range svg,.season-template-interval .staffing-timeline-range input[type=range]{height:34px}
.season-template-interval .staffing-timeline-range input[type=range]::-webkit-slider-thumb{width:17px;height:25px;border-width:2px}
@media(max-width:1000px){.season-template-interval{grid-template-columns:minmax(0,1fr);gap:2px}.season-template-level{grid-template-columns:62px minmax(0,1fr) 75px}.season-template-interval>.row{flex-wrap:wrap}}
@media(max-width:540px){.season-template-level{grid-template-columns:1fr 80px}.season-template-level>strong{grid-column:1}.season-template-level>[data-season-level]{grid-column:1/-1;grid-row:2}.season-template-level>button{grid-column:2;grid-row:1}}
.season-template-editor [data-season-end-time][hidden]{display:none!important}

/* Dense season pattern workspace with full labels available on weekday buttons. */
.season-template-workspace.panel{padding:10px 12px}
.season-template-workspace>h2{font-size:20px;margin-bottom:5px}
.season-template-workspace>p{font-size:12px;margin:4px 0 8px}
[data-rule-panel=season-template-pattern]>.actions{gap:4px;margin:5px 0}
[data-rule-panel=season-template-pattern]>.actions button{font-size:12px;padding:3px 9px;min-height:27px}
.season-template-help{font-size:12px;margin:3px 0}
.season-template-help>summary{font-size:12px;cursor:pointer}
.season-template-help p{font-size:12px;margin:4px 0}
.season-template-editor.panel{padding:6px 8px!important;margin:5px 0!important}
.season-template-editor>.row{gap:5px 8px;margin-bottom:4px}
.season-template-editor label{font-size:12px;gap:1px}
.season-template-editor input[type=time]{width:75px;min-height:26px;padding:2px 5px;font-size:12px}
.season-template-editor select{min-height:26px;padding:2px 5px;font-size:12px}
.season-template-editor input[type=checkbox]{width:14px;height:14px}
.season-template-editor button{font-size:12px;padding:3px 8px;min-height:27px}
.season-template-editor>details{margin:3px 0;font-size:12px}
.season-template-editor>details>summary{font-size:12px}
.season-template-level{grid-template-columns:61px minmax(0,1fr) 73px;gap:5px;padding:3px 0}
.season-template-level>strong{font-size:12px}
.season-template-level>button{font-size:12px;padding:3px 6px;min-height:26px}
.season-template-interval{grid-template-columns:290px minmax(100px,1fr);gap:5px;margin:0}
.season-template-interval>.row{flex-wrap:nowrap;gap:5px}
.season-template-interval>.row>label,.season-template-interval>.row>label:first-child{grid-column:auto;flex:none;min-width:0;width:auto}
.season-template-interval .check{font-size:12px;gap:4px}
.season-template-interval .staffing-timeline-range{height:28px;margin:0 8px!important}
.season-template-interval .staffing-timeline-range svg,.season-template-interval .staffing-timeline-range input[type=range]{height:28px}
.season-template-interval .staffing-timeline-range input[type=range]::-webkit-slider-thumb{height:22px;width:15px}
[data-rule-panel=season-template-pattern]>.small{font-size:12px;line-height:1.4;margin:4px 0}
#season-template-site-hours{font-size:12px;padding:3px 7px;min-height:25px}
@media(max-width:760px){.season-template-interval{grid-template-columns:minmax(0,1fr)}.season-template-interval>.row{flex-wrap:wrap}}
@media(max-width:540px){.season-template-level{grid-template-columns:1fr 73px}}

/* Monthly templates show anonymous shifts on a compact horizontal calendar. */
.month-open-template{margin:10px 0;border-top:1px solid var(--line);padding-top:10px}
.month-open-template h3{font-size:17px;margin:0 0 8px}
.month-open-settings{display:flex;flex-wrap:wrap;gap:8px;align-items:end}
.month-open-settings label{font-size:12px;gap:3px;max-width:240px}
.month-open-settings input{width:105px;padding:5px 7px;font-size:13px}
.month-open-settings label:first-of-type input{width:190px}
.month-open-settings button,.month-open-template>.actions button{font-size:13px;padding:5px 9px;min-height:30px}
.month-open-template>.actions{margin:8px 0;gap:8px}
.month-open-calendar{max-width:100%;overflow:auto;border:1px solid var(--line);border-radius:6px}
.month-open-calendar table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:fixed}
.month-open-calendar th,.month-open-calendar td{min-width:44px;max-width:60px;text-align:center;font-size:12px;padding:4px 3px;border:1px solid var(--line);vertical-align:middle}
.month-open-calendar th:first-child{min-width:105px;max-width:130px;position:sticky;left:0;background:#f7faf8;z-index:1;text-align:left}
.month-open-calendar .sunday{background:#fbe5e9;color:#9e1e34}
.month-open-calendar .weekend{background:#f0eeec}
.month-open-shift{display:block;background:#e7eeeb;color:var(--wine);padding:3px 2px;border:1px solid #b9cfc4;border-radius:4px;white-space:nowrap;font-weight:600;line-height:1.35}
.month-open-calendar tfoot td{font-size:12px;background:#f4f6f5}
.month-open-history,.season-template-date-adjustments{margin:10px 0;font-size:13px}
.month-open-history td{font-size:12px;white-space:normal}
.month-planned-open th{background:#ebf3ef}.month-planned-open .month-shift{border:1px dashed var(--wine);background:#e8f1ec;color:var(--wine)}
@media(max-width:600px){.month-open-settings{gap:6px}.month-open-settings label{max-width:100%}.month-open-template .badge{white-space:normal}}

.month-revenue-report h2{font-size:21px;margin-bottom:8px}.month-revenue-report>p{font-size:13px}.month-revenue-report .month-open-calendar th,.month-revenue-report .month-open-calendar td{min-width:65px;max-width:85px;font-size:12px}.month-revenue-report small{display:block}

/* Keep occupancy thresholds compact instead of stretching across the workspace. */
.occupancy-rules.panel{width:min(100%,700px);padding:8px 10px}
.occupancy-column-headings,.occupancy-rule-row>summary{grid-template-columns:24px minmax(100px,1fr) 90px 48px;gap:6px}
.occupancy-column-headings{padding:3px 5px}
.occupancy-rule-row>summary{padding:3px 5px;min-height:25px;font-size:12px}
.occupancy-rule-row form{grid-template-columns:48px 95px 140px 110px max-content;gap:6px;padding:5px 6px}
.occupancy-rule-row form .row>label{font-size:12px;line-height:1.2;gap:2px}
.occupancy-rule-row form .row input{min-height:25px;padding:3px 6px;font-size:12px}
.occupancy-rule-row form>.check{font-size:12px;gap:4px;min-height:25px}
.occupancy-rule-row form .actions{gap:4px}
.occupancy-rule-row form .actions button{min-height:25px;padding:3px 6px;font-size:12px}
.occupancy-rules input[type=checkbox]{width:14px;height:14px}
@media(max-width:600px){.occupancy-rule-row form{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.occupancy-column-headings,.occupancy-rule-row>summary{grid-template-columns:24px minmax(80px,1fr) 70px 46px}}

.occupancy-rule-row{margin:0}
.occupancy-rule-row form{margin:0}
.occupancy-help,.occupancy-inactive{margin:4px 0}

/* Match the weekly pattern editor to the compact shared occupancy panel. */
[data-rule-panel=season-template-pattern]{max-width:700px}
.season-template-editor.panel{width:100%;padding:5px 6px!important;margin:4px 0!important}
.season-template-editor>.row{display:flex;flex-wrap:wrap;gap:4px 6px;margin-bottom:3px}
.season-template-editor>.row>label{flex:none;min-width:0;font-size:12px}
.season-template-editor>.row>label:first-child{grid-column:auto;width:auto}
.season-template-editor>.row .check{font-size:12px;gap:4px}
.season-template-editor input[type=time]{width:68px;min-height:24px;padding:2px 4px;font-size:12px}
.season-template-editor select{min-height:24px;padding:2px 4px;font-size:12px;max-width:190px}
.season-template-level{grid-template-columns:56px minmax(0,1fr) 65px;gap:4px;padding:2px 0}
.season-template-level>strong{font-size:12px}
.season-template-level>button{min-height:24px;font-size:12px;padding:2px 5px}
.season-template-interval{grid-template-columns:230px minmax(60px,1fr);gap:4px}
.season-template-interval>.row{flex-wrap:nowrap;gap:4px}
.season-template-interval label{font-size:12px}
.season-template-interval .check{font-size:12px;gap:3px}
.season-template-interval select{max-width:90px}
.season-template-interval .staffing-timeline-range,.season-template-interval .staffing-timeline-range svg,.season-template-interval .staffing-timeline-range input[type=range]{height:25px}
[data-rule-panel=season-template-pattern]>.actions{gap:3px;margin:4px 0}
[data-rule-panel=season-template-pattern]>.actions button{padding:2px 7px;min-height:25px;font-size:12px}
[data-rule-panel=season-template-pattern]>.small{margin:4px 0;line-height:1.35}
.season-template-editor>details{margin:3px 0}
@media(max-width:540px){.season-template-level{grid-template-columns:1fr 65px}.season-template-interval{grid-template-columns:minmax(0,1fr)}.season-template-interval>.row{flex-wrap:wrap}}

.month-open-calendar button.month-open-shift{font-size:12px;width:100%;padding:3px 2px;cursor:pointer}
.month-open-empty{display:block;width:100%;border:0;background:transparent;min-height:30px;font-size:13px;padding:2px;color:var(--wine)}
.month-open-edit{display:flex;gap:8px;flex-wrap:wrap;align-items:end;border:1px solid var(--line);border-radius:6px;padding:10px;margin:8px 0;background:#f7faf8}
.month-open-edit strong{width:100%;font-size:13px}.month-open-edit input{width:105px;padding:5px 7px}.month-open-edit button{padding:5px 9px;font-size:13px}.month-open-edit small{width:100%;font-size:12px}

.month-insert-open-row{display:block;margin-top:3px;padding:1px 3px;min-height:19px;font-size:12px;border:0;background:transparent;text-decoration:underline}

.month-open-calendar .month-open-cell-edit{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:0;padding:5px;width:110px;min-width:110px;border:1px solid var(--wine,#244f3a);border-radius:5px;background:#fff}.month-open-calendar .month-open-cell-edit label{display:flex;flex-direction:column;gap:2px;font-size:12px;margin:0}.month-open-calendar .month-open-cell-edit input{width:100%;min-width:0;box-sizing:border-box;font-size:13px;padding:3px}.month-open-calendar .month-open-cell-edit button{font-size:12px;min-height:24px;padding:3px 6px}

.month-template-cost{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:10px 0;padding:8px;background:#f5f8f6;border-radius:6px}.month-template-cost label{font-size:12px;margin:0;max-width:205px}.month-template-cost input{font-size:13px;padding:5px;min-height:30px}.month-template-cost button{font-size:12px;min-height:30px;padding:5px 9px}.month-template-cost strong{font-size:13px;padding:5px 0}.month-template-cost small{flex-basis:100%;font-size:12px;color:#666}

.month-day-revenue{max-width:520px;padding:8px;margin:8px 0;border:1px solid #d6ddda;border-radius:6px}.month-day-revenue table{font-size:12px}.month-day-revenue td,.month-day-revenue th{padding:3px 8px}.month-open-calendar .month-day-revenue-button{border:0;background:transparent;color:inherit;font:inherit;padding:2px;min-height:0;cursor:pointer;text-decoration:underline}

.month-day-revenue>.table-wrap{max-height:310px;overflow:auto}.month-day-revenue thead{position:sticky;top:0;background:#f3f6f4}

.month-open-calendar th.month-active-day,.month-open-calendar td.month-active-day{background:#d6e6de;box-shadow:inset 2px 0 var(--brand),inset -2px 0 var(--brand)}.month-open-calendar thead th.month-active-day{background:var(--brand);color:white;box-shadow:inset 2px 0 var(--brand),inset -2px 0 var(--brand),inset 0 2px var(--brand)}.month-open-calendar tfoot tr:last-child td.month-active-day{box-shadow:inset 2px 0 var(--brand),inset -2px 0 var(--brand),inset 0 -2px var(--brand)}

.month-template-years{display:grid;gap:8px;margin:12px 0}.month-template-year{border:1px solid #dde1df;border-radius:7px;padding:8px 12px;margin:0}.month-template-year>summary{font-size:16px}.month-template-year>.actions{margin:8px 0 0;gap:6px}.month-template-year button{font-size:13px;min-height:32px;padding:6px 12px}.month-template-recalculate{margin-top:12px}.month-template-recalculate>summary{font-size:13px}

.sidebar nav .nav-planning-group{background:#f0eef0;border:1px solid #e1dde1;border-radius:9px;margin:6px 0 14px 0;padding:7px;gap:3px}.sidebar nav .nav-planning-group>a{padding:9px 10px}.sidebar nav .nav-planning-group .nav-data{margin:7px 0 0;padding:6px 3px 0;border-top:1px solid #d9d3d8}

.sidebar nav .nav-work-group>.nav-heading,.sidebar nav .nav-work-group>.nav-heading>a.nav-parent{background:#ebf2ee;color:var(--wine)}.sidebar nav .nav-work-group>.nav-heading>.nav-toggle{color:var(--wine)}

.season-level-actions{display:flex;flex-wrap:wrap;gap:4px;align-self:center}.season-template-level .season-level-actions button{font-size:12px;padding:3px 6px;min-height:24px;white-space:nowrap}

.month-replace-dialog{max-width:560px;width:calc(100% - 32px);border:1px solid #cfd7d3;border-radius:12px;padding:22px;color:var(--ink)}.month-replace-dialog::backdrop{background:#23121b66}.month-replace-dialog h2{font-size:23px}.month-replace-dialog .actions{gap:8px;flex-wrap:wrap}.month-replace-dialog button{font-size:13px;padding:8px 12px}

.manual-month-choices{display:flex;flex-wrap:wrap;gap:8px 18px;border:1px solid var(--line);border-radius:6px;padding:8px;margin:8px 0}.manual-month-choices legend{font-weight:700;font-size:14px}.manual-month-choices .check{font-size:13px}.manual-month-assignment{padding:10px;background:#ebf2ee;border-radius:6px;margin:10px 0}.manual-month-calendar td{min-width:80px!important;max-width:100px!important}.manual-month-calendar small{display:block;font-size:12px;white-space:normal}.manual-month-calendar .month-open-shift{display:block}

.sidebar nav #nav-lag-vaktmaler>a[href="#manuell-maaned"]{font-weight:700}

.pattern-link-controls{display:flex;flex-wrap:wrap;align-items:center;gap:5px 12px;padding:8px 10px;background:#f0eef0;border-radius:6px;margin:8px 0}.pattern-link-controls .check{font-size:13px;font-weight:650;margin:0}.pattern-link-controls small{font-size:12px;color:var(--muted)}

.manual-month-employee-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:8px}.manual-month-employee{text-align:left;background:#f4f7f2;border:1px solid #c9d7c3;border-radius:8px;padding:10px;cursor:grab}.manual-month-employee strong,.manual-month-employee small{display:block}.manual-month-employee small{margin-top:4px;font-weight:normal}.manual-month-employee.unavailable{background:#f6eded;opacity:1;color:#586c62;cursor:not-allowed}.manual-month-employee[aria-pressed="true"]{outline:3px solid #25503b}.manual-month-selected-day{background:#ebf2ee}.manual-month-calendar th button[aria-pressed="true"]{background:#25503b;color:white}.manual-month-calendar [data-manual-month-drop]:hover{outline:2px solid #25503b}.manual-month-employees{margin-top:20px}

.manual-month-employee-list{max-height:340px;overflow:auto;padding:4px}.manual-month-employees{background:#fff;border-top:1px solid #d7ddda;padding-top:12px}

.manual-month-employee.wish{background:#f0e7fa;border-color:#cbb2e3;color:#4f3268}.manual-month-employee.available{background:#e9f4e6;border-color:#afcba6;color:#294d24}.manual-month-employee.unknown{background:#f0f0f2;border-color:#d3d3d8;color:#494952}.manual-month-employee.agreed{background:#e5effa;border-color:#a9c1df;color:#254969}.manual-month-employee.unavailable{background:#fae8e8;border-color:#dfb2b2;color:#793c3c}

/* Compact manual month: full names on hover, dates and assignments stay readable. */
.manual-month-planner{padding:12px}.manual-month-planner h2{font-size:22px;margin:0 0 8px}.manual-month-planner>p{margin:5px 0;font-size:13px}.manual-month-planner .actions{gap:6px;margin:8px 0}.manual-month-planner .actions button{padding:6px 10px;min-height:32px;font-size:13px}.manual-month-planner .worktime-control{padding:6px 8px}.manual-month-planner .worktime-control p{margin:4px 0;font-size:12px}.manual-month-switch{margin-bottom:8px}.manual-month-calendar th,.manual-month-calendar td{padding:2px;min-width:66px!important;max-width:74px!important}.manual-month-calendar th:first-child{min-width:52px!important;max-width:58px!important}.manual-month-calendar th button{padding:3px 6px;min-height:28px;font-size:12px;width:100%}.manual-month-calendar button.month-open-shift{font-size:12px;padding:3px 1px;min-height:30px;line-height:1.2}.manual-month-calendar button.month-open-shift:disabled{opacity:1;color:var(--wine);cursor:default}.manual-month-calendar small{font-size:12px;line-height:1.15;max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manual-month-employees{margin-top:10px;padding-top:8px}.manual-month-employees h3{margin:0 0 5px;font-size:16px}.manual-month-employees p{margin:4px 0;font-size:12px}.manual-month-employee-list{grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:5px;max-height:245px}.manual-month-employee{padding:6px 8px;border-radius:5px;font-size:13px}.manual-month-employee small{font-size:12px;margin-top:2px}

.manual-month-calendar .manual-month-add-cell{width:100%;min-height:28px;padding:2px;border:0;background:transparent;color:var(--wine);font-size:18px}.manual-month-calendar .manual-month-add-cell:hover{background:#dce7e2}.manual-month-cell-add{display:grid;gap:3px;min-width:105px;padding:3px}.manual-month-cell-add label{font-size:12px;text-align:left}.manual-month-cell-add input{width:100%;min-width:0;padding:2px;font-size:12px}.manual-month-cell-add button{padding:3px;font-size:12px;min-height:22px}

.manual-month-calendar th:first-child{min-width:110px!important;max-width:130px!important}.manual-month-calendar th.manual-month-name{font-size:12px;white-space:normal;line-height:1.2;background:#edf0ee}.manual-month-calendar td .month-open-shift+.month-open-shift{margin-top:3px}

.manual-month-cost{display:flex;flex-wrap:wrap;align-items:end;gap:8px 20px;background:#f4f7f6;padding:8px;margin:8px 0;border-radius:5px}.manual-month-cost label{font-size:12px;max-width:230px}.manual-month-cost input{display:block;width:120px;padding:5px;margin-top:4px}.manual-month-cost p{flex:1;min-width:220px;margin:0;font-size:12px}.manual-month-calendar tfoot th{font-size:12px;white-space:normal}.manual-month-calendar tfoot td{font-size:12px}.manual-month-planner .month-day-revenue{max-height:340px;overflow:auto;max-width:600px}

.manual-month-calendar th.manual-month-selected-day,.manual-month-calendar td.manual-month-selected-day{background:#d6e6de;box-shadow:inset 2px 0 var(--brand),inset -2px 0 var(--brand)}.manual-month-calendar thead th.manual-month-selected-day{background:var(--brand);color:white}.manual-month-calendar tfoot tr:last-child td.manual-month-selected-day{box-shadow:inset 2px 0 var(--brand),inset -2px 0 var(--brand),inset 0 -2px var(--brand)}.manual-month-calendar td.manual-month-selected-day .month-open-shift{border-color:#5e9278;background:#e2efe8}

.month-template-item{display:inline-flex;align-items:center;gap:3px}.month-template-item .month-template-delete{font-size:12px;padding:4px 6px;min-height:26px;background:transparent;color:var(--wine);border-color:#c6d5ce}

.manual-month-calendar .manual-month-name-hours{display:inline-block;white-space:nowrap;font-size:12px;font-weight:800;color:var(--wine);background:#d9e5df;border-radius:4px;padding:2px 4px;margin-top:2px}

.manual-month-priority{font-size:12px;display:inline-flex;align-items:center;gap:5px}.manual-month-priority select{font-size:13px;max-width:240px;padding:6px}

.manual-month-fulltime-summary{padding:7px 9px;margin:8px 0;background:#fff8eb;border:1px solid #e9d8b8;border-radius:5px;font-size:13px}.manual-month-fulltime-summary p{margin:4px 0 0}.manual-month-calendar .manual-month-agreement-hours{display:block;white-space:normal;font-weight:normal;color:#57625c;font-size:12px;line-height:1.2;margin-top:3px;max-width:none}

.manual-planning-settings{background:#f0f3f2;border:1px solid #d6ddda;padding:8px 10px;border-radius:6px;margin:8px 0}.manual-planning-settings-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:7px 16px;margin:10px 0}.manual-planning-settings-grid label{font-size:13px}.manual-planning-settings-grid select{margin-left:6px;font-size:13px;max-width:220px}.manual-planning-settings p{font-size:12px;margin:5px 0}

/* Sundays remain visible throughout the manual month, including totals. */
.manual-month-calendar th.manual-month-sunday:not(.manual-month-selected-day),.manual-month-calendar td.manual-month-sunday:not(.manual-month-selected-day){background:#fff0f0}
.manual-month-calendar thead th.manual-month-sunday:not(.manual-month-selected-day) button{background:#ffe4e4;color:#a32e36;border-color:#d49a9e}

.manual-revenue-dialog{width:min(620px,calc(100vw - 32px));max-width:620px;max-height:80vh;margin:auto;padding:16px;border:1px solid #cfd7d3;border-radius:10px;color:var(--ink);background:white;box-shadow:0 12px 48px #23121b33;overflow:auto}
.manual-revenue-dialog::backdrop{background:#23121b66}
.manual-month-planner .manual-revenue-dialog .month-day-revenue{max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:visible}
.manual-revenue-dialog .month-day-revenue>.table-wrap{max-height:55vh;overflow:auto}

.manual-month-calendar thead th{position:relative}
.manual-month-calendar .manual-day-opening-check{display:block;position:absolute;top:0;right:1px;z-index:1;padding:0;margin:0;line-height:1}
.manual-day-opening-check input{width:11px;height:11px;margin:0;accent-color:var(--wine);cursor:pointer}
.manual-month-calendar thead th:has(.manual-day-opening-check)>button{padding-right:12px}
.manual-month-calendar .manual-day-opening-status{display:block;max-width:none;white-space:normal;color:#a32e36;font-size:12px}
.manual-opening-dialog .check{display:flex;gap:8px;margin:12px 0}
.manual-opening-dialog input[type=time]{display:block}

.manual-month-calendar [data-manual-month-move-shift][draggable=true]{cursor:grab}.manual-month-calendar [data-manual-month-move-shift][draggable=true]:active{cursor:grabbing}

/* Explicit 100% supplement dates stand out across every calendar row. */
.manual-month-calendar th.manual-month-red-day,.manual-month-calendar td.manual-month-red-day{background:#dc4545!important;color:#fff}
.manual-month-calendar th.manual-month-red-day button,.manual-month-calendar td.manual-month-red-day .month-open-shift{background:#ffe0e0;color:#761c25;border-color:#b12e38}
.manual-month-calendar .manual-month-red-day .manual-month-add-cell,.manual-month-calendar .manual-red-day-status{color:#fff}
.manual-month-calendar .manual-red-day-status{display:block;font-weight:800;font-size:12px;max-width:none;white-space:normal}

.manual-month-calendar .manual-month-employee-empty{font-size:14px;min-height:38px;color:#6f6269}.manual-month-calendar .manual-month-employee-empty:hover{outline:1px dashed #5e9278;background:#ebf2ee}
.manual-month-overview .manual-overview-peak{font-family:var(--font);font-size:24px;font-weight:700;color:var(--wine);white-space:nowrap}.manual-month-overview td>details>div{max-height:400px;overflow:auto}.manual-month-overview td>details[open]{min-width:500px}.manual-month-overview td>details summary{white-space:nowrap}

.manual-revenue-drag-handle{cursor:grab;touch-action:none;user-select:none;padding:5px;border-radius:5px}.manual-revenue-drag-handle:hover{background:#f1f6f3}.manual-revenue-drag-handle.dragging{cursor:grabbing}.manual-revenue-drag-handle:focus-visible{outline:2px solid var(--wine);outline-offset:2px}.manual-revenue-drag-handle button{cursor:pointer}

.manual-month-totals{margin:12px 0;padding:12px;border:1px solid #cfd7d3;border-radius:8px;background:#f7faf8}.manual-month-totals h3{margin:0 0 10px}.manual-month-totals dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:8px;margin:0}.manual-month-totals dl>div{padding:9px;border-radius:6px;background:white}.manual-month-totals dt{font-size:12px;color:#665b62}.manual-month-totals dd{font-size:18px;font-weight:800;margin:5px 0 0;color:var(--wine)}.manual-month-totals .manual-month-total-highlight{background:#e2ece7;border:1px solid #a3c2b2}.manual-month-totals .manual-month-total-highlight dd{font-size:23px}.manual-month-totals p{margin:9px 0 0}.manual-month-calendar .manual-month-total-column{min-width:105px!important;max-width:135px!important;background:#e2ece7;font-weight:800;border-left:2px solid #5e9278;white-space:nowrap}
/* Compact month totals keep the calendar close to the editing controls. */
.manual-month-totals{padding:8px;margin:8px 0}.manual-month-totals h3{font-size:17px;margin:0 0 6px}.manual-month-totals dl{grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}.manual-month-totals dl>div{padding:6px;min-width:0}.manual-month-totals dt{font-size:12px;line-height:1.25;min-height:25px}.manual-month-totals dd,.manual-month-totals .manual-month-total-highlight dd{font-size:clamp(11px,1.1vw,16px);line-height:1.25;margin:3px 0 0;white-space:nowrap}.manual-month-totals p.small{font-size:12px;line-height:1.35;margin:6px 0 0}@media(max-width:900px){.manual-month-totals dl{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}.manual-month-totals dd,.manual-month-totals .manual-month-total-highlight dd{font-size:14px}.manual-month-totals dt{min-height:0}}

.manual-month-calendar .manual-holiday-name{display:block;max-width:none;white-space:normal;overflow:visible;text-overflow:clip;color:white;font-size:12px;font-weight:800;line-height:1.15;padding:2px 10px 2px 2px}.manual-holiday-note{padding:8px;background:#fff0f0;border-radius:5px}

/* Compact manual distribution settings; expand only when editing. */
.manual-planning-settings{padding:6px 9px;margin:6px 0}
.manual-planning-settings>summary{font-size:14px}
.manual-planning-settings-grid{gap:5px 12px;margin:7px 0;align-items:center}
.manual-planning-settings-grid label{font-size:12px;line-height:1.35}
.manual-planning-settings-grid select{padding:4px 6px;margin-top:2px;font-size:12px;min-height:28px}
.manual-planning-settings .actions{gap:5px;margin-top:6px}
.manual-planning-settings .actions button{padding:5px 8px;font-size:12px}
.manual-settings-help{margin:5px 0;font-size:12px}
.manual-settings-help>summary{font-size:12px}

/* Compact employee selection below the manual calendar. */
.manual-month-employees{margin-top:7px;padding-top:6px}
.manual-month-employees>summary{font-size:14px}
.manual-month-employees p{font-size:12px;line-height:1.35;margin:3px 0}
.manual-month-employees>.check{font-size:12px;margin:4px 0}
.manual-month-employee-list{grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:4px;max-height:190px;padding:3px}
.manual-month-employee{padding:4px 6px;font-size:12px;line-height:1.25}
.manual-month-employee small{font-size:12px;margin-top:2px}

.manual-month-calendar .manual-month-department th{background:#e8eeeb;color:var(--wine);padding:6px 8px;font-size:13px;text-align:left;max-width:none!important}

.kitchen-setup h2{font-size:20px;margin:0 0 6px}
.kitchen-setup .small{font-size:12px;line-height:1.45}
.kitchen-day-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}
.kitchen-day-tabs button{padding:5px 9px;font-size:13px}
.kitchen-day-settings{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;padding:8px;background:#f4f7f6;border-radius:5px}
.kitchen-day-settings label{font-size:12px}
.kitchen-day-settings input{padding:4px 6px;font-size:13px}
.kitchen-day-settings button{padding:5px 9px;font-size:12px}
.kitchen-day-settings p{flex-basis:100%;margin:0}
.kitchen-station-head,.kitchen-station-summary{display:grid;grid-template-columns:minmax(150px,1.3fr) minmax(110px,1fr) 75px 75px minmax(160px,1.5fr);gap:8px;align-items:center}
.kitchen-station-head{padding:10px;font-size:12px;color:#6b6267;font-weight:bold}
.kitchen-station-editor{border:1px solid #d8dedb;border-radius:5px;margin:4px 0;overflow:hidden}
.kitchen-station-summary{padding:9px 10px;font-size:13px;cursor:pointer;background:#f8faf9}
.kitchen-station-summary u{display:inline-block;margin-left:5px;color:var(--wine)}
.kitchen-station-editor[open]>.kitchen-station-summary{background:#e8eeeb}
.kitchen-station-editor>form{padding:10px}
.kitchen-editor-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:8px 12px;align-items:end}
.kitchen-editor-grid label{font-size:12px}
.kitchen-editor-grid input,.kitchen-editor-grid select{display:block;width:100%;padding:5px 7px;margin-top:3px;font-size:13px;min-height:30px}
.kitchen-station-editor fieldset{margin:8px 0;padding:8px;border:1px solid #d8dedb}
.kitchen-station-editor legend{font-size:13px;font-weight:bold}
.kitchen-copy,.kitchen-load-preview{margin:8px 0;font-size:13px}
.kitchen-station-editor button.primary{font-size:13px;padding:6px 10px}
@media(max-width:760px){.kitchen-station-head{display:none}.kitchen-station-summary{grid-template-columns:1fr 1fr}.kitchen-station-summary>strong,.kitchen-station-summary>span:last-child{grid-column:1/-1}.kitchen-station-summary>span:nth-child(3):before{content:'Minimum: '}.kitchen-station-summary>span:nth-child(4):before{content:'Maksimum: '}}

/* Compact automatic waiter rules without repeated occupancy headings. */
#rule-area-restaurant .season-template-editor{padding:10px;margin:7px 0}
#rule-area-restaurant .season-template-level{padding-top:5px;padding-bottom:5px;gap:8px}
#rule-area-restaurant .season-level-actions{gap:4px}
#rule-area-restaurant .season-level-actions button{padding:4px 7px;font-size:13px}
#rule-area-restaurant .season-template-interval .row{gap:6px}
#rule-area-restaurant .season-template-interval input:not([type=checkbox]),#rule-area-restaurant .season-template-interval select{padding:5px 7px}
.occupancy-rules-compact{padding:8px 10px;margin:8px 0}
.occupancy-rules-compact .occupancy-help{margin:0 0 5px}
.occupancy-rules-compact .occupancy-rule-row>summary{padding-top:6px;padding-bottom:6px}

.kitchen-day-copy{border-top:1px solid var(--line);margin-top:10px;padding-top:10px}
.kitchen-day-copy summary{font-size:13px}
.kitchen-day-copy .checks{gap:12px;margin:9px 0}
.kitchen-day-copy .check{font-size:13px}
.kitchen-day-copy button{font-size:13px;padding:6px 10px;margin-top:7px}

.kitchen-station-head,.kitchen-station-summary{grid-template-columns:minmax(180px,1.4fr) minmax(120px,1fr) 90px minmax(120px,1fr)}
.kitchen-production{padding:10px;margin:12px 0}
.kitchen-production>summary{font-size:14px}
.kitchen-production>details{border-top:1px solid var(--line);margin-top:5px;padding:7px 0}
.kitchen-production>details>summary{font-size:13px}
.kitchen-production form{padding:8px 0}
.kitchen-production button{padding:6px 10px;font-size:13px}
@media(max-width:760px){.kitchen-station-summary{grid-template-columns:1fr 1fr}.kitchen-station-summary>strong{grid-column:1/-1}.kitchen-station-summary>span:last-child{grid-column:auto}}

/* Compact kitchen day and staffing editors. */
.kitchen-setup{padding:12px;margin:10px 0}
.kitchen-setup h2{font-size:18px;margin-bottom:4px}
.kitchen-setup>p{margin-bottom:6px}
.kitchen-day-tabs{gap:4px;margin:7px 0}
.kitchen-day-tabs button{padding:4px 7px;font-size:12px}
.kitchen-day-settings{padding:5px 7px;gap:4px 8px}
.kitchen-day-settings label{gap:2px;font-size:12px}
.kitchen-day-settings input{padding:3px 5px;font-size:12px;min-height:26px}
.kitchen-day-settings input[type=date]{width:125px}
.kitchen-day-settings button{padding:4px 7px;font-size:12px}
.kitchen-day-settings p{font-size:12px;line-height:1.3}
.kitchen-station-head{padding:6px 8px;font-size:12px}
.kitchen-station-summary{padding:6px 8px;font-size:13px}
.kitchen-station-editor{margin:3px 0}
.kitchen-station-editor>form{padding:7px 8px}
.kitchen-setup .kitchen-editor-grid{gap:5px 8px}
.kitchen-setup .kitchen-editor-grid label{font-size:12px;gap:2px}
.kitchen-setup .kitchen-editor-grid input,.kitchen-setup .kitchen-editor-grid select{padding:4px 6px;font-size:12px;min-height:28px;margin-top:2px}
.kitchen-setup .kitchen-station-editor .small{font-size:12px;margin:4px 0;line-height:1.35}
.kitchen-day-copy{margin-top:7px;padding-top:7px}

.kitchen-day-copy.kitchen-day-settings{border-top:0;margin:6px 0 8px;padding:5px 7px}
.kitchen-day-copy.kitchen-day-settings details{margin-left:auto}
.kitchen-day-copy.kitchen-day-settings .checks{margin:6px 0}
.kitchen-day-copy.kitchen-day-settings button{margin-top:0}

.table-wrap thead th{position:sticky;top:0;z-index:2;background:#f3f6f4;box-shadow:0 1px 0 var(--line)}
.manual-month-worktime-report{border:1px solid var(--line);border-radius:10px;background:#f7faf8;padding:12px 16px;margin:12px 0}.manual-worktime-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.manual-worktime-heading h3{margin:0;font-size:16px;color:var(--wine)}.manual-worktime-switch{display:flex;align-items:center;gap:8px;font-weight:700;cursor:pointer}.manual-worktime-switch input{appearance:none;position:relative;width:44px;height:26px;margin:0;border:1px solid #aaa;border-radius:20px;background:#aaa;cursor:pointer;flex-shrink:0}.manual-worktime-switch input:after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;background:#fff;border-radius:50%}.manual-worktime-switch input:checked{background:var(--wine);border-color:var(--wine)}.manual-worktime-switch input:checked:after{transform:translateX(18px)}.manual-worktime-switch input:focus-visible{outline:2px solid var(--wine);outline-offset:3px}.manual-worktime-switch input:disabled{cursor:default;opacity:.65}.manual-month-reports{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:10px}.manual-month-reports>summary{font-size:16px;font-weight:700;color:var(--wine)}.manual-staffing-why{padding:10px 12px;background:#f7faf8;border-radius:8px}

.actual-hours-history .table-wrap{max-height:32rem}
.actual-hours-comparison{margin:0 0 1rem;padding:.8rem;border:1px solid var(--line,#d6ddda);border-radius:8px;background:#fff}

.staffing-report-version{display:inline-flex;align-items:center;gap:.35rem;flex-wrap:wrap}

.kitchen-month-calendar{max-height:65vh}.kitchen-month-calendar th,.kitchen-month-calendar td{min-width:105px;vertical-align:top}.kitchen-month-calendar th:first-child{min-width:170px}.kitchen-month-calendar td button{display:block;width:100%;margin:0 0 .35rem;padding:.35rem;font-size:.75rem}

.kitchen-month-calendar tbody th{position:sticky;left:0;z-index:1;background:#f4f6f5}.kitchen-month-calendar thead th:first-child{left:0;z-index:3}

/* Compact manual calendar; keep full names, contract figures and sticky headings. */
.manual-month-calendar th,.manual-month-calendar td{padding:1px;min-width:60px!important;max-width:64px!important;line-height:1.1}
.manual-month-calendar th:first-child{min-width:112px!important;max-width:120px!important}
.manual-month-calendar th.manual-month-name{padding:3px 4px;font-size:12px;line-height:1.1}
.manual-month-calendar .manual-month-name-hours{font-size:12px;line-height:1.1;padding:1px 3px;margin-top:0}
.manual-month-calendar .manual-month-agreement-hours{font-size:12px;line-height:1.1;margin-top:1px;white-space:normal;overflow:visible;max-width:none}
.manual-month-calendar th button{min-height:24px;padding:2px 4px;font-size:12px;line-height:1.1}
.manual-month-calendar button.month-open-shift{min-height:23px;padding:2px 1px;font-size:12px;line-height:1.1}
.manual-month-calendar td .month-open-shift+.month-open-shift{margin-top:2px}
.manual-month-calendar small{font-size:12px;line-height:1.1}
.manual-month-calendar .manual-month-employee-empty{min-height:26px;font-size:13px}
.manual-month-calendar .manual-month-add-cell{min-height:23px;font-size:16px;padding:1px}
.manual-month-calendar .manual-month-department th{padding:4px 6px;font-size:12px}

.manual-month-totals .manual-hours-info{padding:0 3px;margin-left:5px;min-height:20px;border:0;background:transparent;color:var(--wine);font-size:17px;vertical-align:middle}.manual-hours-dialog{width:min(620px,94vw);max-height:85vh;overflow:auto;padding:20px;border:1px solid var(--line);border-radius:12px}.manual-hours-dialog::backdrop{background:#28151f66}.manual-hours-dialog h2{font-size:22px;margin-top:0}.manual-hours-dialog tbody tr:last-child{font-weight:800;background:#eaf0ed}

.confirmed-month-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.confirmed-month-tabs .button,.confirmed-month-tabs button{padding:5px 9px;min-height:30px;font-size:13px}.confirmed-month-tabs button:disabled{opacity:.4;cursor:default}#roster-save-status{font-size:13px;font-weight:700;color:var(--wine)}

.archive-month-tabs{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.archive-month-tabs .button,.archive-month-tabs button{padding:5px 9px;min-height:30px;font-size:13px}.archive-month-tabs button:disabled{opacity:.4;cursor:default}

details[data-archive-month][hidden]{display:none!important}

.report-popup{width:min(1440px,96vw);max-width:96vw;max-height:94dvh;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);overflow:hidden}.report-popup::backdrop{background:#28151f88}.report-popup[open]{display:flex;flex-direction:column}.report-popup-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border-bottom:1px solid var(--line);background:#fff;flex-shrink:0}.report-popup-head h2{font-size:23px;margin:0}.report-popup-head .actions{flex-shrink:0;margin:0}.report-popup-body{padding:20px;overflow:auto;min-height:0;overscroll-behavior:contain}.report-popup-body>.panel{margin:0}.report-popup-full{width:98vw;max-width:98vw;height:98dvh;max-height:98dvh}.report-popup-body .table-wrap thead th{background:#f4f7f6}.report-popup-content>p:first-child{margin-top:0}@media(max-width:760px){.report-popup-head{align-items:start;padding:12px;flex-wrap:wrap}.report-popup-head h2{font-size:20px}.report-popup-body{padding:12px}}

/* Compact report windows: retain all figures and explanations. */
.report-popup-head{padding:9px 14px;gap:10px}.report-popup-head h2{font-size:19px;line-height:1.2}.report-popup-head button{min-height:30px;padding:5px 10px;font-size:13px}.report-popup-body{padding:10px 14px;font-size:13px;line-height:1.4}.report-popup-body>.panel{padding:0;border:0;box-shadow:none}.report-popup-body>.panel>h2:first-child{display:none}.report-popup-body p{margin:7px 0}.report-popup-body p.small{font-size:12px;line-height:1.35;margin:5px 0}.report-popup-body h3{font-size:17px;margin:10px 0 6px}.report-popup-body h4{font-size:14px;margin:10px 0 5px}.report-popup-body details{margin:6px 0;padding:0}.report-popup-body summary{padding:5px 0;font-size:13px}.report-popup-body table{font-size:12px}.report-popup-body th,.report-popup-body td{padding:6px 8px;line-height:1.3}.report-popup-body .manual-month-totals{padding:8px;margin:6px 0}.report-popup-body .manual-month-totals dl{gap:5px}.report-popup-body .manual-month-totals dl>div{padding:6px}.report-popup-body .manual-month-totals dd{font-size:19px}.report-popup-body .manual-month-totals dt{font-size:12px}

/* Each report table owns its scrolling, so its headers stay in view. */
.report-popup-body{flex:1 1 auto;max-height:calc(94dvh - 60px);scrollbar-gutter:stable}.report-popup-full .report-popup-body{max-height:calc(98dvh - 60px)}.report-popup-body .table-wrap{max-height:min(52dvh,32rem);overflow:auto;position:relative;overscroll-behavior:auto;scrollbar-gutter:stable}.report-popup-body .table-wrap table{border-collapse:separate;border-spacing:0}.report-popup-body .table-wrap thead th{position:sticky;top:0;z-index:3;background:#f3f6f4;box-shadow:0 1px 0 var(--line)}.report-popup-body .month-open-calendar thead th:first-child{left:0;z-index:4;background:#f3f6f4}.report-popup-body .month-open-calendar tbody th:first-child{z-index:2;background:#f7faf8}

.manual-month-reports>details:has(>summary[aria-haspopup="dialog"]){padding:0;margin:5px 0;border:0;background:transparent}.manual-month-reports summary[aria-haspopup="dialog"]{display:list-item;cursor:pointer;padding:6px 0}.manual-month-reports summary[aria-haspopup="dialog"]::marker{content:'↗  '}.manual-month-reports summary[aria-haspopup="dialog"]::after{content:'Åpne vindu';display:inline-block;margin-left:10px;font-size:12px;font-weight:400;color:var(--muted)}

.manual-month-board{margin:12px 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px}.manual-month-board h3{margin:0;font-size:16px}.manual-month-board>details{margin:6px 0 0}.manual-board-color{display:block;width:18px;height:18px;border:1px solid #6c686d;border-radius:4px;flex-shrink:0}.report-popup-body .allocation-map-canvas{max-width:100%;overflow:auto;margin-top:8px}.report-popup-body .allocation-map-canvas svg{display:block;width:100%;min-width:560px;height:auto;max-height:64dvh}

fieldset.workshop-preview{min-width:0;border:0;padding:0;margin:0}.workshop-preview:disabled{opacity:1}.workshop-preview button:disabled{opacity:1;cursor:default}

.manual-month-planner{position:relative}.manual-month-planner>h2{padding-right:45px}.manual-planner-info{position:absolute;top:12px;right:12px;margin:0!important;padding:0!important;border:0!important;background:transparent!important}.manual-planner-info>summary{list-style:none;display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid var(--wine);border-radius:50%;font-size:22px;line-height:1;color:var(--wine);cursor:pointer}.manual-planner-info>summary::-webkit-details-marker{display:none}.manual-planner-info>summary::marker{content:''}.manual-planner-info>summary:focus-visible{outline:2px solid var(--wine);outline-offset:3px}.report-popup-body .manual-information-financials{margin-top:8px}
.manual-planner-info{position:sticky;top:8px;float:right;z-index:6;right:0}

.manual-month-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:10px 0}.manual-month-toolbar>.actions{margin:0}.manual-toolbar-choice{margin:0;padding:0;border:0}.manual-toolbar-choice>summary{list-style:none;display:block;border:1px solid var(--wine);border-radius:5px;padding:7px 12px;font-size:13px;font-weight:700;color:var(--wine);background:white;cursor:pointer}.manual-toolbar-choice>summary::-webkit-details-marker{display:none}.manual-toolbar-choice>summary::marker{content:''}.manual-toolbar-choice:first-child>summary{background:var(--wine);color:white}.manual-month-save-actions{margin-left:auto!important}.manual-toolbar-choice>summary:focus-visible{outline:2px solid var(--wine);outline-offset:2px}@media(max-width:760px){.manual-month-save-actions{margin-left:0!important}}

.kitchen-month-planner{position:relative}.kitchen-month-planner>h2{padding-right:42px}.kitchen-month-calendar{max-height:65vh}.kitchen-month-calendar th,.kitchen-month-calendar td{min-width:64px;max-width:85px;padding:3px;vertical-align:top;font-size:12px}.kitchen-month-calendar th:first-child{min-width:120px;max-width:145px}.kitchen-month-calendar td button{font-size:12px;line-height:1.2;padding:3px 2px;margin:0 0 3px}.kitchen-month-calendar thead th{min-height:30px}.kitchen-month-calendar table{width:max-content;min-width:100%}
.kitchen-month-calendar .manual-month-name small{display:block;font-size:12px;font-weight:400}.kitchen-month-calendar .manual-month-add{min-height:23px;font-size:20px;font-weight:700;line-height:1;padding:0;border:0;background:transparent;color:var(--wine)}

.manual-fulltime-actions{display:flex;flex-direction:column;align-items:stretch;gap:5px}.manual-month-toolbar>.actions{align-items:flex-start}

/* Every report popup uses the same information symbol, including board versions. */
.report-info-trigger{list-style:none;cursor:pointer}.report-info-trigger::-webkit-details-marker{display:none}.report-info-trigger::marker{content:''!important}.report-info-trigger::before{content:'ⓘ';display:inline-block;margin-right:7px;font-size:17px;font-weight:400;color:var(--wine)}.manual-planner-info>.report-info-trigger::before{content:none}.report-info-trigger::after{content:none!important}.report-info-trigger:focus-visible{outline:2px solid var(--wine);outline-offset:3px}

.report-popup-head{cursor:grab;touch-action:none;user-select:none}.report-popup-head.report-popup-dragging{cursor:grabbing}.report-popup-full .report-popup-head{cursor:default}.report-popup-head .actions{cursor:default;touch-action:auto}.report-popup-head:focus-visible{outline:2px solid var(--wine);outline-offset:-3px}

@media(min-width:761px){.sidebar{height:100dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior-y:contain;scrollbar-gutter:stable}.sidebar>*{flex-shrink:0}}

.workshop-munu{border:1px solid var(--line);border-radius:8px;padding:10px 12px;margin:10px 0 14px;background:#f7faf8}.workshop-munu .section-title{margin-bottom:4px;align-items:center}.workshop-munu .section-title details{margin:0;padding:0;border:0}.workshop-munu p{margin:4px 0 8px}.workshop-munu .actions{margin:0;flex-wrap:wrap}

.workshop-munu .report-info-trigger{font-size:0;padding:0;line-height:1}.workshop-munu .report-info-trigger::before{font-size:21px;margin:0}.season-template-workspace>label:has(#workshop-month){display:grid;gap:4px;max-width:210px}

.sidebar nav .nav-workshop-folder{display:grid;gap:2px}.sidebar nav .nav-workshop-folder>a{padding:9px 10px}.sidebar nav .nav-workshop-folder>.nav-workshop-saved{margin:0 0 7px 12px;padding:6px 10px;font-size:13px;border-left:2px solid var(--line);border-radius:0 6px 6px 0}

.sidebar nav .nav-workshop-folder>a:first-child{font-weight:700}

.manual-month-tools{position:sticky;top:8px;float:right;z-index:6;display:flex;gap:7px;align-items:center;margin:0 0 8px 12px}.manual-month-tools .planner-letter-popup{margin:0!important;padding:0!important;border:0!important;background:transparent!important}.planner-letter-popup>summary{display:grid;place-items:center;list-style:none;width:34px;height:34px;border:1px solid #9f97ae;border-radius:50%;font-size:14px;font-weight:750;color:#39293d;cursor:pointer}.planner-letter-popup>.report-info-trigger::before{content:none}.planner-letter-popup>summary::-webkit-details-marker{display:none}.planner-letter-O>summary{background:#eee6fa;border-color:#b7a5cc}.planner-letter-D>summary{background:#e3f3e9;border-color:#96bba6}.planner-letter-DM>summary{background:#e3effb;border-color:#99b5d1}.planner-letter-popup>summary:hover{filter:brightness(.96)}.manual-month-tools~p{clear:none}.manual-month-period{scroll-margin-top:12px}

.planner-letter-A>summary{background:#fff0ce;border-color:#c5ac72}.analysis-week-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}.analysis-week-buttons>details{border:1px solid #c5ac72;border-radius:8px;background:#fff6df;padding:10px}.analysis-week-buttons>details>summary{font-weight:700}.report-popup-floating{position:fixed;top:8vh;width:min(900px,92vw);max-height:85vh;box-shadow:0 12px 48px #0004;resize:both;overflow:auto}.analysis-chart-scroll{overflow:auto}.analysis-chart{display:block;width:100%;min-width:900px;background:#fff}.analysis-chart text{font:16px sans-serif;fill:#514951}.analysis-grid{stroke:#ddd;stroke-width:1}.analysis-line{fill:none;stroke-width:2.5;stroke-linejoin:round}.analysis-total{color:#3059b5;stroke:#3059b5}.analysis-food{color:#178059;stroke:#178059}.analysis-drink{color:#bc5b16;stroke:#bc5b16}.analysis-point{fill:transparent;stroke:none}.analysis-point:hover,.analysis-point:focus{fill:#3059b5;outline:none}.analysis-legend{display:flex;flex-wrap:wrap;gap:18px;font-weight:700}

.report-popup-floating.report-popup-full{width:98vw;max-height:98dvh;height:98dvh;top:1vh;left:1vw;resize:none}

/* Compact comparison windows; expand a graph when inspecting individual hours. */
.report-popup-floating{width:min(680px,94vw);max-height:76dvh;min-width:min(360px,94vw)}
.report-popup-floating .report-popup-head{padding:10px 12px;gap:8px}
.report-popup-floating .report-popup-head h2{font-size:17px}
.report-popup-floating .report-popup-head .actions{gap:5px}
.report-popup-floating .report-popup-head button{font-size:12px;padding:5px 8px;min-height:28px}
.report-popup-floating .report-popup-body{padding:12px}
.report-popup-floating .report-popup-body p{font-size:13px;margin:6px 0}
.report-popup-floating .analysis-chart{min-width:560px}
.report-popup-floating.report-popup-collapsed{width:min(440px,94vw);height:auto!important;resize:none}
.report-popup-floating.report-popup-collapsed .report-popup-body{display:none}
.report-popup-floating.report-popup-full{width:98vw;max-height:98dvh;height:98dvh}

.planner-letter-AK>summary{background:#dcf4f1;border-color:#85b8af}.planner-letter-OP>summary{background:#e9f7f0;border-color:#a6c5b5}.manual-month-tools{flex-wrap:wrap;max-width:300px}

.manual-month-bottom-tools{display:flex;align-items:center;gap:10px;margin-top:14px;padding-top:10px;border-top:1px solid var(--line)}.manual-month-bottom-tools>.planner-letter-popup{margin:0!important;padding:0!important;border:0!important;background:transparent!important}

.analysis-zoom-controls,.report-popup-size-controls{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.analysis-zoom-controls{margin:8px 0}.analysis-zoom-controls button,.report-popup-size-controls button{padding:4px 9px;font-size:13px;min-height:28px}.analysis-zoom-controls output{min-width:48px;text-align:center;font-size:13px}.report-popup-size-controls{flex-shrink:0;padding:7px 12px;border-top:1px solid var(--line);background:#f8faf9}.report-popup-size-controls small{font-size:12px;color:var(--muted)}.report-popup-collapsed .report-popup-size-controls{display:none}.analysis-chart-scroll{max-width:100%;scrollbar-gutter:stable}

.planner-letter-R>summary{background:#e1efff;border-color:#97b4d6}.planner-letter-B>summary{background:#e9f5da;border-color:#acc28e}#settings>.planner-letter-popup,.planning-letter-tools>.planner-letter-popup{margin:0;padding:0;border:0;background:transparent}#settings>.planner-letter-popup{flex-basis:100%;border-top:1px solid var(--line);padding-top:10px}.planning-letter-tools{margin:12px 0}.planner-letter-popup>summary{padding:0}

.planner-letter-MB>summary{background:#f0e4fa;border-color:#bca0ce}.planning-letter-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

/* Every dialog supports mouse resizing, including reservation and setup reports. */
dialog{resize:both;overflow:auto}dialog.popup-mouse-resized{max-width:calc(100vw - 8px)!important;max-height:calc(100dvh - 8px)!important;box-sizing:border-box}.report-popup{min-width:min(320px,96vw)}.report-popup-head{flex-wrap:wrap}.report-popup-head h2{min-width:0;overflow-wrap:anywhere}.popup-resize-handle{position:absolute;right:0;bottom:0;width:25px;height:25px;min-height:0;padding:0;border:0;border-radius:0;background:#eef3f0;color:var(--wine);font-size:21px;line-height:25px;cursor:nwse-resize;touch-action:none;z-index:10}.popup-resize-handle:focus-visible{outline:2px solid var(--wine);outline-offset:-3px}.report-popup-size-controls{padding-right:34px}.report-popup-full,.report-popup-collapsed{resize:none}.report-popup-full>.popup-resize-handle,.report-popup-collapsed>.popup-resize-handle{display:none}

.popup-drag-handle{position:sticky;top:0;z-index:5;cursor:grab;touch-action:none;user-select:none;background:#fff;border-bottom:1px solid var(--line);padding-bottom:10px}.popup-drag-handle.popup-dragging{cursor:grabbing}.popup-drag-handle:focus-visible{outline:2px solid var(--wine);outline-offset:2px}

.manual-month-setup-tools{display:flex;align-items:center;margin:8px 0}.manual-month-setup-tools>.planner-letter-popup{margin:0!important;padding:0!important;border:0!important;background:transparent!important}

.manual-planning-settings>h3{font-size:14px;margin:0 0 12px}.manual-settings-help>h4{font-size:14px;margin:12px 0 6px}

.planner-letter-RS>summary{background:#fce5da;border-color:#cda68f}

.availability-editor-shell #rosterAvailability{scroll-margin-top:12px;padding:12px}.availability-quick{background:#f4f7f6;border:1px solid var(--line);border-radius:7px;padding:8px;margin:8px 0}.availability-quick .actions{gap:6px;margin:0 0 6px}.availability-quick button{padding:5px 8px;font-size:12px;min-height:28px}.availability-quick .row{align-items:end}.availability-quick input{max-width:100px}.availability-quick p{margin:5px 0!important}.availability-week-range{display:block;font-size:13px;font-weight:700;color:var(--wine);margin-top:4px}#rosterAvailability .availability-days{gap:3px;margin:6px 0}#rosterAvailability .availability-day{grid-template-columns:100px minmax(280px,1fr) 105px 105px;gap:8px;padding:4px 0;align-items:center}#rosterAvailability .availability-day .availability-options{display:flex;gap:12px;align-items:center;flex-wrap:wrap}#rosterAvailability .availability-day .check{font-size:13px!important}#rosterAvailability .availability-day strong{padding:0}.availability-day-name .check{align-items:center}.availability-status-label select{min-width:135px}.availability-hours-details{margin-top:8px}.availability-editor-shell .availability-period-buttons{margin:0 0 5px}#rosterAvailability .availability-day .availability-wish{grid-column:2/-1}#rosterAvailability .availability-day .availability-wish label{font-size:12px}@media(max-width:900px){#rosterAvailability .availability-day{grid-template-columns:90px 1fr 95px 95px}}@media(max-width:600px){#rosterAvailability .availability-day{grid-template-columns:1fr 1fr}#rosterAvailability .availability-day .availability-options{grid-column:1/-1}#rosterAvailability .availability-day label{font-size:12px}}

.availability-hours-details{display:grid;grid-template-columns:minmax(280px,1fr) minmax(360px,2fr);gap:12px;margin-top:12px}.availability-hours-group,.availability-other-limits{border:1px solid var(--line);border-radius:8px;padding:10px 12px}.availability-hours-group{background:#eef3f0;border-color:#bcccc4}.availability-other-limits{background:#f9fafa}.availability-hours-details h3{font-size:14px;margin:0 0 8px}#rosterAvailability .availability-hours-group .row{align-items:end}.availability-hours-explanation{font-weight:600;color:var(--wine);margin:8px 0!important}.availability-other-limits input{max-width:140px}@media(max-width:1000px){.availability-hours-details{grid-template-columns:1fr}}

.availability-copy-range{color:var(--wine);font-weight:600}.availability-copy-preview{width:min(720px,94vw);max-height:88dvh;border:1px solid var(--line);border-radius:12px;padding:16px;color:var(--ink)}.availability-copy-preview::backdrop{background:#28151f88}.availability-copy-preview h2{font-size:20px;margin:0 0 10px}.availability-copy-preview .table-wrap{max-height:45dvh;overflow:auto}.availability-copy-preview th{background:#f7faf8}

.availability-layout{grid-template-columns:minmax(0,1fr)}.availability-quick-top{display:grid;grid-template-columns:minmax(330px,1.3fr) minmax(240px,1fr) minmax(250px,1fr);gap:12px;align-items:start}.availability-bulk-box,.availability-copy-box{padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}.availability-copy-box{background:#edf5fc;border-color:#b1c6da}.availability-copy-box>strong{display:block;margin-bottom:6px}.availability-copy-range{line-height:1.5}.availability-reset-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0;padding:10px;background:#fff5f2;border:1px solid #e2c2b8;border-radius:8px}.availability-reset-actions button{font-size:13px;padding:6px 9px}.availability-quick .availability-rule-card{max-width:none}.availability-quick .availability-rule-card p{font-size:12px}@media(max-width:1100px){.availability-quick-top{grid-template-columns:1fr 1fr}.availability-bulk-box{grid-column:1/-1}}@media(max-width:650px){.availability-quick-top{grid-template-columns:1fr}.availability-bulk-box{grid-column:auto}}

.sidebar{overflow-anchor:none}

.employee-capacity-dialog{width:min(780px,94vw);max-height:90dvh;padding:0;border:1px solid var(--line)}.employee-capacity-dialog #rosterQuickCapacity{margin:0;border:0;padding:18px}.employee-capacity-dialog .dialog-head{margin-bottom:12px}.employee-capacity-dialog h2{font-size:21px}.capacity-quick-group{padding:10px 12px;border:1px solid var(--line);border-radius:8px;margin:10px 0;background:#f8faf9}.capacity-quick-group h3{font-size:14px;margin:0 0 8px}.capacity-quick-summary{padding:10px;background:#edf5ef;border:1px solid #b6cebd;border-radius:7px;font-weight:600}

.capacity-open-layout{padding:12px;margin:12px 0;background:#f8faf9;border:1px solid var(--line);border-radius:10px}.capacity-open-layout>h3{font-size:17px;margin:0 0 10px}.capacity-open-grid{display:grid;grid-template-columns:minmax(240px,1fr) minmax(200px,.8fr) minmax(300px,1.4fr);gap:12px;align-items:start}.capacity-open-card{padding:12px;background:#fff;border:1px solid var(--line);border-radius:8px}.capacity-open-card>h3{font-size:15px;margin:0 0 10px}.capacity-open-card .row{gap:10px}.capacity-open-card .row label{flex:1 1 130px}.capacity-open-card .checks{gap:8px}.capacity-open-card .capacity-station{padding:10px;margin-top:10px}.capacity-station h4{font-size:14px;margin:0 0 6px}.capacity-station-tables{margin-top:6px}.capacity-open-card .capacity-mode{margin-top:8px}@media(max-width:1200px){.capacity-open-grid{grid-template-columns:1fr 1fr}.capacity-open-card:last-child{grid-column:1/-1}}@media(max-width:650px){.capacity-open-grid{grid-template-columns:1fr}.capacity-open-card:last-child{grid-column:auto}}

.planner-letter-FP>summary{background:#f9e5d3;border-color:#c7a17c}.planner-letter-AN>summary{background:#e8eafb;border-color:#a4abd0}.manual-month-setup-tools{gap:8px;flex-wrap:wrap}.report-popup-body [data-workshop-people] .banner{font-size:13px}.report-popup-body [data-workshop-people] .panel{padding:12px}

.manual-shift-dialog{width:min(620px,94vw);max-height:88dvh;padding:16px;border:1px solid var(--line)}.manual-shift-dialog h2{font-size:20px}.manual-shift-dialog h3{font-size:14px}.manual-shift-dialog form.row{align-items:end;gap:10px}.manual-shift-delete{border-top:1px solid var(--line);padding-top:12px;margin-top:14px}.manual-shift-delete button{color:#8b302e;border-color:#b66561}

.planner-letter-DA>summary{background:#e6f0d9;border-color:#a5bc8a}

.occupancy-permanent-delete{color:#8b302e;border-color:#bc8881}

.kitchen-production-table {min-width:760px;width:100%;}
.kitchen-production-table input {width:100%;min-width:80px;max-width:130px;}
.kitchen-production-table select {min-width:130px;}
.kitchen-production-table th[scope="row"] {white-space:nowrap;}
.production-status {display:inline-block;white-space:nowrap;font-size:.8rem;font-weight:700;color:#28663b;background:#edf7ef;padding:5px 8px;border-radius:6px;}
.production-status.production-missing {color:#875006;background:#fff3d8;}
.production-help {margin-top:14px;}

/* Inspektør 23.10.2026: tall høyrejustert, toppfelt som i menyverkstedet, sammenleggbar meny på mobil. */
td.num,th.num{text-align:right}td.occupancy.num progress{margin-left:auto}
.topbar .crumb{font-size:12px;letter-spacing:.5px}.topbar .crumb b{font-weight:700}
.menu-toggle{display:none}
@media(max-width:760px){.topbar>span.crumb{display:block;flex-basis:100%}.topbar{align-items:center;flex-wrap:wrap;row-gap:10px}.topbar .clock-shortcut span{display:none}.sidebar{display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 12px}.sidebar .brand{padding-bottom:0;min-height:52px}.menu-toggle{display:inline-flex;align-items:center;min-height:44px}.sidebar>nav{display:none;grid-column:1/-1;margin-top:16px}.sidebar.menu-open>nav{display:grid}}
/* Kalendertekst 24.10.2026: tekst under 11 px løftet til 11 px; beleggsregelskjemaet får krympbare kolonner så handlingene ikke skyves ut. */
@media(min-width:601px){.occupancy-rule-row form{grid-template-columns:48px minmax(70px,95px) minmax(100px,140px) minmax(80px,110px) max-content}}
.month-open-calendar button.month-open-shift{white-space:normal;overflow-wrap:anywhere}

/* Samme vektorlogo og størrelse som Menyverkstedet. */
.sidebar .brand{display:block;padding:0 0 18px;min-height:0}
.sidebar .brand .brand-logo{position:static;display:block;width:180px;max-width:100%;height:auto;margin:0 auto}
@media(max-width:760px){.sidebar .brand{padding:0}.sidebar .brand .brand-logo{width:138px;margin:0}}

.user-account-metadata{display:flex;gap:32px;flex-wrap:wrap;color:var(--muted);font-size:14px;margin:16px 0}.user-account-card .hr-navigation{margin:20px 0}.user-account-card input:not([type=checkbox]){max-width:360px}.user-account-card .actions{margin-top:20px}

.user-role-options,.user-department-options{border:1px solid var(--line);border-radius:8px;padding:14px;margin:16px 0;min-width:0}.user-role-options{display:flex;flex-wrap:wrap;gap:14px}.user-department-options .checks{margin:10px 0}

.employee-home-tables{margin:24px 0}.employee-home-tables>h2{margin-bottom:8px}.clock-shortcut svg{width:26px;height:26px}

.test-clock-user{display:grid;gap:8px;text-align:left;max-width:500px;margin:20px auto}.test-clock-status{font-weight:700;margin:20px 0}.clock-panel .table-wrap{text-align:left;margin-top:20px}

.test-clock-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.test-clock-totals>div{background:#f5f7f6;border-radius:8px;padding:12px}.test-clock-totals span{display:block;font-size:13px;color:var(--muted)}.test-clock-totals strong{font-size:clamp(18px,3vw,28px);font-variant-numeric:tabular-nums}.test-clock-status.on-pause{color:#875006;background:#fff3d8;border-radius:8px;padding:10px}.clock-actions>button:only-child{grid-column:1/-1}@media(max-width:420px){.test-clock-totals{gap:5px}.test-clock-totals>div{padding:8px 3px}}

.test-clock-out-editor{border:1px solid var(--line);border-radius:10px;padding:18px;text-align:left;background:#f8faf9;margin:16px 0}.test-clock-out-editor>label{display:grid;gap:7px;margin:12px 0}.test-clock-out-editor>label.check{display:flex}.test-clock-out-editor textarea{width:100%;resize:vertical}.test-clock-out-editor .actions{margin-top:16px}
.test-clock-out-editor>[hidden]{display:none}

.employee-sections [data-report-popup]>summary{display:inline-block;background:var(--wine);color:#fff;border:1px solid var(--wine);border-radius:7px;padding:10px 15px;font-weight:650}.employee-sections [data-report-popup]>.report-info-trigger::before{content:none}.my-hours-period{margin:16px 0}.my-hours-content .table-wrap{max-height:44vh;overflow:auto}.my-hours-content>h3{margin-top:18px}

.analysis-popup.analysis-compact{width:min(1100px,94vw);height:auto;max-height:85dvh}.analysis-popup.analysis-compact .report-popup-body{padding:8px 12px}.analysis-popup.analysis-compact [data-analysis-compact-view]>:not(.analysis-chart-scroll):not(.analysis-legend){display:none}.analysis-popup.analysis-compact .analysis-legend{font-size:13px;gap:14px;margin:0 0 3px}.analysis-popup.analysis-compact .analysis-chart{min-width:0;width:100%;height:auto}.analysis-popup.analysis-compact .analysis-chart-scroll{overflow:hidden;scrollbar-gutter:auto}.analysis-popup.report-popup-full{width:98vw;height:98dvh;max-width:98vw;max-height:98dvh}.analysis-popup.analysis-compact.report-popup-full .analysis-chart-scroll{height:100%}.analysis-popup.analysis-compact.report-popup-full .analysis-chart{height:100%}
.analysis-popup.analysis-compact .analysis-chart{width:100%!important}.analysis-popup.analysis-compact.report-popup-full [data-analysis-compact-view]{height:100%;display:flex;flex-direction:column}.analysis-popup.analysis-compact.report-popup-full .analysis-chart-scroll{flex:1;min-height:0}

.manual-month-warning-button{margin:0;padding:0;border:0;background:transparent}.manual-month-warning-button>summary.report-info-trigger{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 14px;border:1px solid #a81f31;border-radius:7px;background:#b52034;color:#fff;font-weight:700;line-height:1.2;list-style:none}.manual-month-warning-button>summary.report-info-trigger::before{content:none}.manual-month-warning-button>summary:hover{background:#941b2b}.manual-month-warning-button>summary:focus-visible{outline:3px solid #183a2f;outline-offset:3px}

.manual-month-setup-tools{position:sticky;top:8px;z-index:6;width:max-content;max-width:100%;padding:4px 6px;background:rgba(255,255,255,.97);border-radius:10px;box-shadow:0 2px 8px #0000000a}@media(max-width:600px){.manual-month-setup-tools{top:52px}}

[data-who-working] .who-status-finished{background:#fbe8e9;color:#a02736}[data-who-working] .who-finished td:first-child{color:#a02736}

[data-who-working] .who-department-heading th{position:static;background:#e6edea;color:var(--wine);font-weight:700;padding-top:12px;padding-bottom:12px;border-top:2px solid var(--line)}

.leave-year-calendar{max-height:68vh}.leave-year-calendar table{width:100%;min-width:1100px;table-layout:fixed}.leave-year-calendar th:first-child{width:180px}.leave-year-calendar thead button{padding:5px 2px;width:100%;font-size:13px}.leave-year-calendar tbody th small{display:block;font-weight:400}.leave-year-calendar td{vertical-align:top;padding:4px}.leave-year-calendar .leave-year-period{display:block;width:100%;margin:2px 0;padding:4px 2px;font-size:12px;white-space:normal}.leave-year-empty{width:100%;border:0;background:transparent;color:var(--muted);padding:8px 2px}

.manual-month-tool-groups{position:sticky;top:8px;z-index:7;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;margin:8px 0 12px;padding:6px;background:rgba(255,255,255,.98);border-radius:10px;box-shadow:0 2px 8px #0000000a}.manual-month-tool-groups>.manual-month-setup-tools,.manual-month-tool-groups>.manual-month-tools{position:static;top:auto;float:none;z-index:auto;margin:0;padding:0;max-width:none;background:transparent;box-shadow:none}.manual-month-tool-groups>.manual-month-setup-tools{justify-self:start}.manual-month-tool-groups>.manual-month-tools{justify-self:center;flex-wrap:nowrap;padding:0 24px;border-inline:1px solid var(--line)}.manual-month-config-tools{display:flex;gap:8px;justify-self:end;align-items:center}.manual-month-config-tools>.planner-letter-popup{margin:0!important;padding:0!important;border:0!important;background:transparent!important}@media(max-width:780px){.manual-month-tool-groups{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}.manual-month-tool-groups>.manual-month-tools{order:3;flex-basis:100%;justify-content:center;padding:6px 0 0;border-inline:0;border-top:1px solid var(--line)}}
.manual-month-bottom-tools{position:fixed;right:18px;bottom:16px;z-index:8;width:max-content;margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.98);box-shadow:0 3px 14px #00000012}.manual-month-planner{padding-bottom:105px}@media(max-width:600px){.manual-month-bottom-tools{right:8px;bottom:8px;padding:5px 7px}}

.planner-letter-BH>summary{background:#e5edf7;border-color:#8fa8c9}.staffing-why .table-wrap{max-height:65vh}.staffing-why table{min-width:950px}.staffing-why td{vertical-align:top}.staffing-why td details{max-width:360px;white-space:normal}

.leave-year-calendar thead .leave-year-month{min-height:68px;white-space:normal;line-height:1.25}.leave-year-month>span{display:block;font-weight:700}.leave-year-month small{display:block;font-size:11px;font-weight:400;margin-top:4px}.leave-year-month.has-entries{background:#e5f1eb;border-color:#80ad96;color:#285e47}.leave-year-month.has-pending{background:#fff0c9;border-color:#caa451;color:#78551b}.leave-year-month.is-empty{background:#f5f4f4;border-color:var(--line);color:var(--muted)}.leave-year-month-pending{font-weight:700!important}

.kitchen-month-planner{padding-bottom:105px}.kitchen-month-calendar button:not(.manual-month-add){white-space:normal;overflow-wrap:anywhere;max-width:100%;line-height:1.25}.kitchen-month-calendar td{overflow:hidden}

.cost-control-table {max-height:65vh;overflow:auto;margin-block:1rem;}
.cost-control-table table {min-width:1050px;}
.cost-control-table td {vertical-align:top;}
.cost-control-table td:last-child {min-width:260px;}
.cost-control-table details[open] {min-width:360px;max-width:650px;white-space:normal;}
.cost-control-table input {max-width:100%;}

.cost-day-bubbles{display:flex;align-items:center;gap:12px;margin:14px 0;flex-wrap:wrap}
.cost-day-bubbles>.cost-day-bubble{margin:0;padding:0;border:0;background:transparent}
.cost-day-bubble>summary.report-info-trigger{display:flex;align-items:center;justify-content:center;min-width:64px;height:44px;padding:0 16px;border-radius:999px;border:2px solid;font-weight:700;line-height:1;list-style:none;cursor:pointer}
.cost-day-bubble>summary::before,.cost-day-bubble>summary::after{display:none!important;content:none!important}
.cost-day-bubble>summary::-webkit-details-marker{display:none}
.cost-day-bubble-f>summary.report-info-trigger{background:#e3efff;border-color:#92b2dc;color:#29486e}
.cost-day-bubble-op>summary.report-info-trigger{background:#fbe5ed;border-color:#cba0b1;color:#682e47}
.cost-day-bubble>summary:focus-visible{outline:3px solid #284a39;outline-offset:3px}

/* Compact full-text cost tools open the shared report popup. */
.cost-control-tools{gap:10px;margin:18px 0 0}
.cost-control-tools>.cost-day-bubble>summary.report-info-trigger{height:auto;min-height:40px;padding:10px 18px;font-size:14px;line-height:1.25}
.cost-control-extra>summary.report-info-trigger{background:#e5f2e8;border-color:#a0c5a9;color:#315c3f}
.cost-control-basis>summary.report-info-trigger{background:#eee7f7;border-color:#b8a5d1;color:#55416b}

.leave-calendar [data-leave-cell]{user-select:none;touch-action:pan-y}.leave-calendar .leave-range-selected{background:#dceef5!important;outline:2px solid #729daf;outline-offset:-2px}

/* Lokale aktiviteter: faste ovale verktøy og en rolig årsoversikt. */
.local-activity-tools{position:fixed;right:18px;bottom:108px;z-index:8;display:flex;gap:10px;padding:5px;background:#fff;border-radius:24px;box-shadow:0 2px 12px #00000012}
.amfi-popup{border:0!important;padding:0!important;margin:0!important;background:transparent!important}
.amfi-popup>summary.report-info-trigger{display:flex!important;align-items:center;justify-content:center;min-height:40px;padding:7px 22px!important;border:1px solid #d3b66b!important;border-radius:999px!important;background:#fff2c9!important;color:#513d15!important;font-weight:700;list-style:none}
.amfi-popup>summary.report-info-trigger::before,.amfi-popup>summary.report-info-trigger::after{display:none!important}
.amfi-popup>summary::-webkit-details-marker{display:none}
.amfi-year-controls{justify-content:space-between;align-items:center}.amfi-year-controls h3{margin:0}
.amfi-year-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.amfi-month{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:95px;background:#faf9f7;border:1px solid var(--line);text-transform:none}
.amfi-month.has-events{background:#fff8df;border-color:#d3b66b}.amfi-month[aria-pressed=true]{outline:3px solid var(--wine,#183a2f);outline-offset:1px}.amfi-month span,.amfi-month small{font-size:.85rem;font-weight:400}.amfi-month strong{text-transform:capitalize}
.amfi-month-detail h3{text-transform:capitalize}.amfi-month-detail .table-wrap{max-height:48vh}.amfi-month-detail th:first-child{min-width:125px}.amfi-month-detail td{white-space:normal;min-width:210px;vertical-align:top}.amfi-month-detail details{margin:8px 0;padding:0;border:0;background:transparent}.amfi-month-detail ul{padding-left:18px}
.amfi-tag{display:inline-block;border-radius:12px;padding:2px 8px;margin-top:8px;background:#eee8f8;font-size:.8rem}.amfi-tag.hours{background:#e0f2e8}.amfi-tag.campaign{background:#fff0c5}.amfi-tag.theme{background:#e3eefb}
.amfi-date-marker{display:block!important;width:max-content;max-width:100%;margin:5px auto 0;padding:3px 8px!important;min-height:0!important;border:1px solid #d3b66b!important;border-radius:15px!important;background:#fff2c9!important;color:#513d15!important;font-size:12px!important;line-height:1.4!important;white-space:nowrap}
.amfi-source-note{margin-top:18px}.local-activity-tools summary:focus-visible,.amfi-month:focus-visible,.amfi-date-marker:focus-visible{outline:3px solid #183a2f;outline-offset:3px}
@media(max-width:650px){.amfi-year-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.local-activity-tools{right:8px;bottom:88px}.amfi-month{padding:8px;min-height:80px}}
.visit-activity-popup>summary.report-info-trigger,.visit-date-marker{background:#e2f2f6!important;border-color:#8cbcc8!important;color:#23545f!important}
.amfi-insights{margin:15px 0}.amfi-insights article{border-bottom:1px solid var(--line);padding:8px 0}.amfi-insights h4{margin:6px 0}
/* Samme bunnlinje som DA/OP/BH, med tydelig skille mellom verktøygruppene. */
.manual-month-bottom-tools>.local-activity-tools{position:static;padding:0 14px 0 0;margin-right:4px;border-right:1px solid var(--line);border-radius:0;box-shadow:none;background:transparent}
@media(max-width:650px){.manual-month-bottom-tools{max-width:calc(100vw - 16px);gap:6px}.manual-month-bottom-tools>.local-activity-tools{gap:5px;padding-right:8px;margin-right:0}.amfi-popup>summary.report-info-trigger{padding:6px 12px!important;min-height:36px}}
.amfi-view-controls{margin-bottom:16px}.amfi-view-controls [aria-pressed=true]{background:var(--wine,#183a2f);color:white}.amfi-map-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:16px 0}.amfi-map-month{border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff}.amfi-map-month h4{margin:0 0 12px;text-transform:capitalize}.amfi-map-month ul{list-style:none;padding:0;margin:0}.amfi-map-month li{margin:0 0 6px}.amfi-map-event{display:flex;width:100%;flex-direction:column;align-items:flex-start;gap:3px;padding:7px 9px;text-align:left;white-space:normal;background:#fff8df;border:1px solid #e8d99f;border-radius:8px;color:#2a332f;font-size:.8rem;font-weight:400}.amfi-map-event.cruise,.amfi-map-event.flight{background:#e9f4f7;border-color:#b6d5df}.amfi-map-event.hours{background:#e6f3eb;border-color:#bad5c4}.amfi-map-event.theme,.amfi-map-event.industry{background:#f3f0f8;border-color:#d5cce3}.amfi-map-date{font-weight:600}.amfi-map-event strong{line-height:1.35}.amfi-map-event small{font-size:.75rem;color:#625c62}.amfi-map-event:focus-visible{outline:3px solid #183a2f;outline-offset:2px}@media(max-width:650px){.amfi-map-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.amfi-map-month{padding:8px}}
/* Datoene bærer signalet; ett klikk viser dagen uten en ekstra månedsmeny. */
.activity-year-calendar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}.activity-month-calendar{border:1px solid var(--line);border-radius:10px;padding:10px;background:#fff}.activity-month-calendar h3{font-family:inherit;font-size:.95rem;text-transform:capitalize;margin:0 0 9px}.activity-weekdays,.activity-month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px}.activity-weekdays{text-align:center;font-size:.68rem;color:#777;margin-bottom:4px}.activity-month-days>span,.activity-month-days>button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;min-height:27px;padding:3px 0;font-size:.75rem;line-height:1.1;border:0;border-radius:5px;background:transparent;font-weight:400;color:#39343a}.activity-month-days>button{background:#edf5fc;cursor:pointer}.activity-month-days>button:hover{background:#d8eafb}.activity-blue-dot{display:inline-block;flex:none;width:7px;height:7px;border-radius:50%;background:#247ec1}.activity-calendar-legend{display:flex;align-items:center;gap:8px}.activity-date-dot{display:inline-flex!important;align-items:center;justify-content:center;width:20px!important;height:20px!important;min-height:0!important;margin:2px auto 0;padding:0!important;border:0!important;border-radius:50%!important;background:transparent!important}.activity-date-dot .activity-blue-dot{width:8px;height:8px}.activity-date-dot:hover{background:#e0effb!important}.activity-day-detail h3{font-family:inherit;font-size:1.2rem;margin:18px 0}.activity-day-event{padding:12px 0;border-bottom:1px solid var(--line)}.activity-day-event h4{font-family:inherit;font-size:1.15rem;margin:8px 0}.activity-day-event p{margin:8px 0;max-width:75ch}.activity-day-event details{border:0;padding:0;background:transparent;margin:10px 0}.activity-arrival{font-size:1.05rem;line-height:1.7}.activity-uncertain{color:#8a5400;font-weight:600}.activity-date-dot:focus-visible,.activity-month-days>button:focus-visible{outline:3px solid #183a2f;outline-offset:2px}@media(max-width:850px){.activity-year-calendar{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:560px){.activity-year-calendar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.activity-month-calendar{padding:7px}}
.activity-date-markers{display:flex;justify-content:center;align-items:center;gap:4px;min-height:18px}.activity-date-markers .activity-date-dot{width:16px!important;height:16px!important;margin:1px 0;padding:0!important;background:#e1f0fc!important;border:1px solid #93bfdf!important;color:#1e6190!important;font-family:inherit;font-size:11px!important;font-weight:700!important;line-height:1!important}.activity-letter-dot{display:inline-flex;align-items:center;justify-content:center;width:13px;height:13px;font-size:11px;font-weight:700;color:white}.activity-month-days>button{min-height:30px}
/* Tydelige 13px-merker med større, gjennomsiktig klikkflate. */
.activity-date-markers{gap:1px;min-height:15px}.activity-date-markers .activity-date-dot{width:20px!important;height:18px!important;background:transparent!important;border:0!important;margin:0}.activity-letter-dot{display:inline-flex;align-items:center;justify-content:center;width:13px;height:13px;border-radius:50%;background:#287bb8;color:#fff;font-size:11px;line-height:1;font-weight:700;flex:none}.activity-month-days>button{min-height:27px}
/* Samme kildefarger i boblene, årskalenderen og vaktplanens små merker. */
.activity-letter-dot.amfi-calendar-marker{background:#fff2c9;color:#513d15;box-shadow:inset 0 0 0 1px #d3b66b}
.activity-letter-dot.visit-calendar-marker{background:#e2f2f6;color:#23545f;box-shadow:inset 0 0 0 1px #8cbcc8}
.amfi-year-calendar .activity-month-days>button{background:#fffaf0}.amfi-year-calendar .activity-month-days>button:hover{background:#fff2c9}
.visit-year-calendar .activity-month-days>button{background:#f1f8fa}.visit-year-calendar .activity-month-days>button:hover{background:#e2f2f6}
/* Kompakt periodevalg i ledig plass ved det vanlige månedsvalget. */
.workshop-month-choices{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap}.workshop-single-month{flex:1 1 300px}.workshop-batch-months{flex:0 1 auto;max-width:100%;padding-top:8px}.workshop-batch-months h3{font-family:inherit;font-size:1rem;margin:0 0 10px}.workshop-batch-form{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.workshop-batch-form label{font-size:.85rem;gap:6px}.workshop-batch-form input{max-width:185px}.workshop-batch-months>.small{margin:8px 0 12px}.workshop-batch-form>[data-month-create-status]{margin:0;font-size:.85rem}
.kitchen-week-setup{border:0;padding:0;margin:0 0 24px;background:transparent}.kitchen-week-setup>summary{color:var(--wine,#183a2f);font-size:1.05rem;font-weight:700}.kitchen-week-setup>.kitchen-setup{margin-top:16px}.kitchen-edit-dialog form{margin:0;border:0;box-shadow:none}.kitchen-edit-dialog .report-popup-head{align-items:center}

/* Oppvask: one visible rule row, with optional details in shared popups. */
.dish-period-group{border-top:1px solid var(--line,#d9dddb);margin-top:24px;padding-top:16px}
.dish-rule-card{background:#fff}
.dish-rule-card .actions h3{margin:0 auto 0 0}
.dish-rule-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}
.dish-rule-options>section{padding:12px;background:#f5f8f6;border-radius:10px}
.dish-rule-options>section>span{display:block;margin:6px 0}
.dish-rule-summary{padding:10px 12px;border-left:3px solid #31654b;background:#f7faf8}
[data-dish-save-for]:empty{display:none}

.dish-rule-options .report-info-trigger{font-size:.9rem}
@media(max-width:650px){.dish-rule-options{grid-template-columns:1fr}}

.dish-rule-overview{margin:20px 0;padding:16px;border:1px solid var(--line,#d9dddb);border-radius:12px;background:#fff}.dish-rule-overview h3{margin-top:0}.dish-rule-overview .table-wrap{max-height:360px}.dish-rule-overview th,.dish-rule-overview td{vertical-align:top}.dish-rule-card{scroll-margin-top:20px}

.dish-rule-overview table{width:100%;min-width:0;table-layout:auto;font-size:.85rem}.dish-rule-overview th,.dish-rule-overview td{padding:8px;white-space:normal}.dish-rule-overview td button{padding:6px 8px;font-size:.85rem}

.dish-base-overview .actions{align-items:center}.dish-base-week{max-height:270px}.dish-base-day{margin:14px 0;padding:12px}.dish-base-slot{display:flex;flex-wrap:wrap;align-items:end;gap:10px;padding:10px 0;border-bottom:1px solid var(--line,#d9dddb)}.dish-base-slot label{font-size:.9rem}.dish-base-slot input[type=time]{width:120px}.dish-base-slot input[type=number]{width:90px}

.dish-base-overview,.dish-shift-times-overview{padding:16px 18px;margin:12px 0}.dish-base-overview h2,.dish-shift-times-overview h2{font-size:1.25rem;margin:0 0 8px}.dish-base-overview p,.dish-shift-times-overview p{margin:8px 0}.dish-base-overview .actions{gap:8px 16px}

/* Personlig ansattside uten verkstedmeny. */
.personal-portal main{margin:0 auto;max-width:960px;padding:24px}.personal-portal form{max-width:480px}.personal-portal .table-wrap{max-height:420px;overflow:auto}

.employee-access-table{max-height:420px;overflow:auto}

.preview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:20px}.preview-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;padding:16px;min-height:105px}.preview-card strong{font-size:16px}.preview-card span{font-size:14px;font-weight:400;color:var(--muted)}.preview-dialog{width:min(760px,94vw);max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:24px;color:var(--ink);background:var(--paper)}.preview-dialog::backdrop{background:#28151f88}.preview-dialog .section-title{margin-top:0}.preview-dialog form{display:grid;gap:14px}.preview-dialog textarea{min-height:90px}.preview-dialog [role=status]{color:var(--green)}@media(max-width:760px){.preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.preview-grid{grid-template-columns:1fr}}
.preview-profile{display:flex;align-items:center;flex-wrap:wrap;gap:12px;justify-content:space-between;padding:16px}.preview-profile h2,.preview-profile p{margin:0}.preview-profile label{min-width:180px}.preview-receipt{padding:14px 18px}.preview-receipt h2{font-size:20px}.preview-receipt p{margin-bottom:6px}
.preview-dialog.preview-dialog-full{width:98vw;height:98dvh;max-width:98vw;max-height:98dvh}.preview-dialog .section-title{flex-wrap:wrap}.preview-dialog .section-title .actions{margin:0}

#personal-availability.preview-dialog{width:min(1000px,96vw);padding:16px}#personal-availability-form{max-width:none;gap:8px}#personal-availability-form .table-wrap{max-height:none}#personal-availability-form table{min-width:660px;font-size:13px}#personal-availability-form th,#personal-availability-form td{padding:4px 6px}#personal-availability-form thead th{padding-block:7px}#personal-availability-form select{padding:5px 7px;min-height:34px;font-size:13px}#personal-availability-form .personal-time-range{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}#personal-availability-form .personal-time-range input{width:92px;min-width:92px;min-height:34px;padding:5px;font-size:13px}#personal-availability-form .small{font-size:13px;margin:0}#personal-availability>.section-title{margin-bottom:8px}#personal-availability>p{font-size:14px;margin-bottom:10px}#personal-availability.preview-dialog-full{width:98vw}
/* Compact time approval overview. */
.time-register th,.time-register td{white-space:nowrap;padding:.45rem .6rem;font-size:.9rem}
.time-register .actions{flex-wrap:nowrap;gap:.35rem;margin:0}
.time-register button,.time-register summary{font-size:.85rem;padding:.35rem .55rem}
.time-register [data-report-popup]{margin:0}
.time-comparison{display:grid;grid-template-columns:8rem 1fr;gap:.65rem}
.time-comparison dt{font-weight:700}.time-comparison dd{margin:0}
dialog:has(#timeEditor),dialog:has(.time-comparison){width:min(850px,calc(100vw - 24px))}
.time-page .time-filter{padding:.7rem;margin-bottom:.5rem}.time-page .time-filter .row{gap:.65rem}
.time-page .time-filter input,.time-page .time-filter select,.time-actor input{padding:.4rem .55rem}
.time-page .time-metrics{display:flex;gap:1.3rem;margin:.6rem 0;flex-wrap:wrap}
.time-page .time-metrics .metric{display:flex;gap:.5rem;align-items:baseline;padding:0;background:none;border:0;box-shadow:none}
.time-page .time-metrics .metric strong{font-size:1.15rem}.time-actor{display:flex;gap:1rem;align-items:center;margin:.7rem 0}
.time-actor label{display:flex;gap:.6rem;align-items:center}.time-actor input{max-width:16rem}
/* Keep the time controls together instead of spreading them down the page. */
.time-page{min-width:0}
.time-page .time-filter{display:flex;align-items:flex-end;flex-wrap:wrap;gap:.6rem 1rem;padding:.65rem .75rem}
.time-page .time-filter .row{display:flex;flex-wrap:wrap;gap:.6rem;margin:0}
.time-page .time-filter label{margin:0;font-size:.85rem}
.time-page .time-filter input[type=date]{width:9rem;min-width:0}
.time-page .time-filter select{max-width:16rem;min-width:0}
.time-page .time-filter .actions{margin:0;gap:.6rem;align-items:center;flex-wrap:wrap}
.time-page .time-filter .check{display:flex;gap:.4rem;align-items:center;white-space:nowrap}
.time-page .time-filter .check input{margin:0}
.time-toolbar{display:flex;align-items:center;justify-content:flex-start;gap:.6rem 1.5rem;flex-wrap:wrap;margin:.5rem 0}
.time-toolbar .time-actor{margin:0;gap:.6rem;flex-wrap:wrap}
.time-toolbar .time-actor small{max-width:15rem;font-size:.75rem}
.time-toolbar .actions{margin:0}
.time-page>p.small{margin:.4rem 0;font-size:.8rem}
.time-page>.panel{padding:.65rem .75rem;margin:.6rem 0}
.time-page>.panel p{margin:0}
@media(max-width:650px){.time-page .time-filter .row{width:100%}.time-page .time-filter select{max-width:100%}.time-toolbar{align-items:flex-start;gap:.6rem}.time-toolbar .time-actor small{max-width:100%}}
.time-page .time-filter{padding:.45rem .55rem;gap:.45rem .7rem;margin-bottom:.35rem}
.time-page .time-filter input,.time-page .time-filter select{padding:.3rem .4rem;font-size:.85rem}
.time-page .time-filter .row{gap:.45rem}
.time-page .time-filter input[type=date]{width:8.3rem}
.time-page .time-filter select[name=employee]{width:13rem}
.time-page .time-filter select[name=department]{width:10rem}
.time-page button{padding:.4rem .65rem;font-size:.85rem}
.time-page .time-metrics{margin:.4rem 0;gap:1rem;font-size:.82rem}
.time-page .time-metrics .metric strong{font-size:1rem}
.time-page>p.small{margin:.25rem 0;font-size:.75rem}
.time-toolbar{margin:.35rem 0;gap:.4rem 1rem}
.time-toolbar .time-actor label{font-size:.82rem}
.time-toolbar .time-actor input{width:10rem;padding:.3rem .45rem;font-size:.85rem}
.time-toolbar .time-actor small{display:none}
.time-page>.panel{padding:.5rem .65rem;margin:.4rem 0;font-size:.85rem}
/* Dense time overview, while retaining every filter and action. */
.time-page .time-filter{padding:.3rem .45rem;gap:.3rem .5rem;margin-bottom:.2rem}
.time-page .time-filter .row{gap:.35rem}
.time-page .time-filter label{font-size:.75rem;line-height:1.15}
.time-page .time-filter input,.time-page .time-filter select{padding:.2rem .35rem;font-size:.8rem;min-height:1.9rem;margin-top:.15rem}
.time-page .time-filter input[type=date]{width:7.8rem}
.time-page .time-filter select[name=employee]{width:12rem}
.time-page .time-filter select[name=department]{width:9rem}
.time-page button,.time-page .time-view-switch button{padding:.25rem .5rem;font-size:.78rem;min-height:1.9rem}
.time-page .time-metrics{margin:.25rem 0;gap:.8rem;font-size:.75rem}
.time-page .time-metrics .metric strong{font-size:.9rem}
.time-page>p.small{margin:.15rem 0;font-size:.7rem;line-height:1.25}
.time-toolbar{margin:.2rem 0;gap:.3rem .7rem}
.time-toolbar .time-actor label{font-size:.75rem;gap:.35rem}
.time-toolbar .time-actor input{width:9rem;padding:.2rem .35rem;font-size:.78rem;min-height:1.9rem}
.time-register th,.time-register td{padding:.25rem .4rem;font-size:.8rem;line-height:1.2}
.time-register .actions{gap:.2rem}
.time-register button,.time-register summary{padding:.15rem .35rem;font-size:.75rem;min-height:1.6rem}
.time-register .badge{padding:.12rem .35rem;font-size:.65rem}
.time-page>.panel{padding:.35rem .5rem;margin:.25rem 0;font-size:.8rem}
/* Give the shifts the screen space on time pages. */
main:has(.time-page) .view{padding-top:12px}
main:has(.time-page) .heading{margin-bottom:8px;gap:12px;align-items:center}
main:has(.time-page) .heading>div{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px}
main:has(.time-page) .heading .eyebrow{display:none}
main:has(.time-page) .heading h1{font-size:1.5rem;margin:0}
main:has(.time-page) .heading p{font-size:.8rem;margin:0}
main:has(.time-page) .banner{padding:5px 10px;margin-bottom:7px;font-size:.75rem}
main:has(.time-page) .hr-navigation{display:inline-flex;flex-wrap:wrap;gap:4px;margin:0 8px 7px 0;vertical-align:top}
main:has(.time-page) .hr-navigation a{padding:4px 8px;font-size:.78rem}
main:has(.time-page) .hr-navigation[aria-label=Timer]{display:flex;margin-bottom:7px}
main:has(.time-page) .topbar{padding-top:8px;padding-bottom:8px;min-height:0}
main:has(.time-page) .topbar select{padding:4px 8px;font-size:.8rem}
@media(max-width:650px){main:has(.time-page) .heading>div{gap:4px}main:has(.time-page) .hr-navigation a{padding:6px 8px}}
.accounting-person h2{font:600 .95rem/1.3 var(--font);margin:.75rem 0 .3rem}.accounting-person h2 small{font-size:.75rem;font-weight:400;margin-left:.7rem;color:var(--muted)}
.accounting-table{max-height:65vh}.accounting-table table{width:100%;font-size:12px}.accounting-table th,.accounting-table td{white-space:nowrap;padding:4px 5px;line-height:1.25;text-align:right}.accounting-table th:first-child,.accounting-table td:first-child{text-align:left}.accounting-table td small{display:block;font-size:11px;color:var(--muted)}.accounting-table summary{font-size:12px;padding:2px 4px}.accounting-table tfoot{font-weight:700;background:#eaedec}
.accounting-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px 14px}.accounting-fields label{font-size:.8rem}.accounting-fields input{padding:5px 7px;min-width:0;width:100%}
[data-accounting-report]>.actions{margin:.4rem 0;gap:.5rem;font-size:.8rem}[data-accounting-report]>.small{font-size:.75rem;margin:.3rem 0}.accounting-blockers{font-size:.8rem;margin:.4rem 0;padding-left:1.2rem}
@media print{body:has([data-accounting-report]) .sidebar,body:has([data-accounting-report]) .topbar,body:has([data-accounting-report]) .hr-navigation,body:has([data-accounting-report]) .time-filter,body:has([data-accounting-report]) [data-accounting-report]>.actions,body:has([data-accounting-report]) dialog{display:none!important}body:has([data-accounting-report]) main{margin:0;padding:0;width:100%}body:has([data-accounting-report]) .view{padding:0}.accounting-table{max-height:none;overflow:visible}.accounting-table table{font-size:11px}.accounting-table th,.accounting-table td{padding:3px}.accounting-table tr{break-inside:avoid}.accounting-table thead{display:table-header-group}.accounting-person h2{break-after:avoid}.accounting-table th{position:static!important}body:has([data-accounting-report]) [data-report-popup]{display:none!important}}
.accounting-scope{font-size:.8rem;margin:.45rem 0}.accounting-print-status,.accounting-review-stamp{display:none!important}
@media print{.accounting-print-status{display:block!important;font-weight:700}.accounting-review-stamp{display:block!important;font-size:11px}}
form[data-accounting-row]{max-width:none;width:100%}dialog:has(form[data-accounting-row]){width:min(1000px,calc(100vw - 24px))}[data-accounting-error]:empty{display:none}
/* Sickness follow-up: text/count and colour always agree. */
.cost-day-bubble[data-sickness-status=attention]>summary.report-info-trigger,.cost-day-bubble[data-request-status=attention]>summary.report-info-trigger,.cost-day-bubble[data-conflict-status=attention]>summary.report-info-trigger{background:#fde2e2;border-color:#c34747;color:#842020}
.cost-day-bubble[data-sickness-status=empty]>summary.report-info-trigger,.cost-day-bubble[data-request-status=empty]>summary.report-info-trigger,.cost-day-bubble[data-conflict-status=empty]>summary.report-info-trigger{background:#e3efff;border-color:#92b2dc;color:#29486e}
.cost-day-bubble[data-sickness-status=complete]>summary.report-info-trigger,.cost-day-bubble[data-request-status=complete]>summary.report-info-trigger,.cost-day-bubble[data-conflict-status=complete]>summary.report-info-trigger{background:#e5f2e9;border-color:#6c9c7b;color:#285c3b}
.cost-day-bubble[data-sickness-status=unknown]>summary.report-info-trigger,.cost-day-bubble[data-request-status=unknown]>summary.report-info-trigger,.cost-day-bubble[data-conflict-status=unknown]>summary.report-info-trigger{background:#f0eef0;border-color:#aaa3aa;color:#5c555e}
.time-page .time-manual-open{background:#e5f2e9;border-color:#6c9c7b;color:#285c3b}
[data-manual-status-group][hidden]{display:none!important}
.cost-day-bubbles:has(>[data-conflict-status]),.cost-day-bubbles:has(>[data-request-status]),.cost-day-bubbles:has(>[data-sickness-status]){display:inline-flex;margin:8px 10px 8px 0;vertical-align:top}
.hr-navigation button.followup-tab{border-radius:999px;border-width:2px;min-height:44px;padding:0 16px;font-weight:700}
.hr-navigation button.followup-tab[data-followup-status=attention]{background:#fde2e2;border-color:#c34747;color:#842020}
.hr-navigation button.followup-tab[data-followup-status=empty]{background:#e3efff;border-color:#92b2dc;color:#29486e}
.hr-navigation button.followup-tab[data-followup-status=complete]{background:#e5f2e9;border-color:#6c9c7b;color:#285c3b}
.hr-navigation button.followup-tab[aria-pressed=true]{box-shadow:inset 0 0 0 1px currentColor}
.hr-navigation.leave-view-navigation{align-items:center;gap:6px;flex-wrap:wrap}
.hr-navigation.leave-view-navigation .followup-tab{margin-left:6px}
.hr-navigation.leave-view-navigation>.cost-day-bubbles{margin:0 0 0 6px}

/* Compact daily personnel register; original stamps remain separate from payroll. */
.personnel-overview #personnel-filter{padding:8px 10px;margin:8px 0}.personnel-overview .row{gap:8px;align-items:end}.personnel-overview label{font-size:13px;gap:3px}.personnel-overview input,.personnel-overview select,.personnel-overview button{font-size:13px;min-height:32px;padding:5px 8px}.personnel-summary,.personnel-row-actions,.personnel-stamp-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.personnel-summary>span.no-print{display:flex;gap:12px;flex-wrap:wrap}.personnel-control-note{font-size:13px;color:#705322;background:#fff8e9;padding:6px 9px;border-radius:6px}.personnel-control-note span,.personnel-control-note details{display:inline-block}.personnel-print-heading{margin:8px 0;font-size:12px}.personnel-overview .personnel-table th,.personnel-overview .personnel-table td{padding:6px 8px;font-size:13px}.personnel-code{font-family:monospace;font-size:11px;overflow-wrap:anywhere}.personnel-stamp-tools{margin-top:10px}.personnel-stamp-tools label{max-width:200px}.personnel-table{max-height:65vh}.personnel-overview details[data-report-popup]>summary{font-size:13px}.personnel-overview .personnel-table .badge{font-size:12px;padding:3px 7px}
@media print{.personnel-overview .personnel-table{max-height:none;overflow:visible}.personnel-code{font-size:11px}.personnel-summary{font-size:12px}.personnel-control-note{color:#000;background:none;border:1px solid #aaa}}

@media print{body:has(.personnel-overview) dialog{display:none!important}.personnel-overview .personnel-table thead{display:table-header-group}.personnel-overview .personnel-table th{position:static!important}.personnel-overview .personnel-table tr{break-inside:avoid}}
.company-settings{max-width:960px;padding:14px}.company-settings h2{font-size:20px;margin:0 0 8px}.company-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px}.company-fields label{font-size:13px}.company-fields input{padding:7px 9px;min-height:34px;font-size:14px}.personnel-company-line{margin:6px 0;font-weight:700;font-size:13px}@media(max-width:760px){.company-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.company-fields{grid-template-columns:1fr}}
[data-missing-clock-out]{margin:6px 0}.missing-clock-status{display:inline-block}.missing-clock-status>summary{border:1px solid;border-radius:999px;padding:7px 12px;font-weight:700}.missing-clock-status.attention>summary{background:#fde2e2;color:#842020;border-color:#c34747}.missing-clock-status.empty>summary{background:#e3efff;color:#29486e;border-color:#92b2dc}
/* Follow-up tools share a compact row above the time list. */
.time-page .time-followup-row{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:6px 0}.time-followup-row>[data-missing-clock-out],.time-followup-row>.cost-day-bubbles{display:inline-flex;margin:0;padding:0;border:0;background:none}.time-followup-row .missing-clock-status{margin:0;padding:0;border:0;background:none;box-shadow:none}.time-followup-row .missing-clock-status>summary.report-info-trigger,.time-followup-row .cost-day-bubble>summary.report-info-trigger{height:36px;min-height:36px;padding:0 12px;display:inline-flex;align-items:center;line-height:1.1;font-size:13px;border-width:1px}.time-page .time-metrics{margin:6px 0 3px}.time-page .time-toolbar{margin:5px 0 8px}.time-page .time-toolbar>.actions{margin:0;gap:7px}.time-page>.small.muted{margin:3px 0 5px}
.time-filter [data-time-filter-field][hidden]{display:none}.time-filter select[name=filterType]{min-width:100px}.time-filter [data-time-filter-field] select{min-width:180px;max-width:260px}
.profile-mark{width:32px;height:32px;flex:0 0 32px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #88a395;border-radius:50%;background:#fff;color:var(--wine);font-size:13px;font-weight:700;line-height:1}.profile-mark.has-initials{background:#e9f0ec;border-color:#acc1b6}.clock-shortcut .profile-mark svg{width:22px;height:22px}
.staff-identity{padding:12px 16px}.staff-identity h3{margin:0 0 6px;font-size:17px}.staff-identity>p{margin:6px 0}.identity-warning{color:#8b5226}.staff-identity>.actions{gap:12px}.personnel-table [data-personnel-identity]{font-size:11px}.report-popup [data-identity-number]{font-family:monospace;font-size:18px;font-weight:700}@media print{.staff-identity,[data-identity-number]{display:none!important}}
@media print{dialog[data-report-source-key^="staff-identity-"]{display:none!important}}
.identity-saved-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:8px 0}.identity-masked{font-family:monospace;font-size:17px;letter-spacing:1px}.identity-eye{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;padding:5px;background:transparent;border:1px solid var(--line);border-radius:50%;color:var(--wine)}.identity-eye:hover{background:#e9f0ec}.identity-eye:focus-visible{outline:2px solid var(--wine);outline-offset:3px}@media print{[data-identity-display],[data-identity-eye],[data-identity-eye-status]{display:none!important}}

.staff-history-footer{display:flex;gap:8px;justify-content:flex-end;margin-top:8px;pointer-events:none}.staff-history-footer>details{pointer-events:auto}.staff-history-footer .staff-history-bubble{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:36px;height:36px;min-height:36px;padding:0;border:1px solid #9eafd1;border-radius:50%;background:#eaf0ff;color:#294a7c;font-weight:700;list-style:none;cursor:pointer}.staff-history-bubble::before,.staff-history-bubble::after,.staff-history-bubble::-webkit-details-marker{display:none!important}.staff-history-bubble:focus-visible{outline:2px solid var(--wine);outline-offset:3px}@media print{.staff-history-footer{display:none}}

.staff-history-footer .staff-import-bubble{background:#edf6e9;border-color:#9cb58f;color:#375c2b}

.staff-identity{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;padding:10px 14px;margin:10px 0}.staff-identity>h3{grid-column:1/-1;margin:0;font-size:16px;line-height:1.25}.staff-identity>.identity-saved-row{grid-column:1/-1;margin:0;gap:8px;font-size:14px;line-height:1.3}.staff-identity>p{grid-column:1/-1;margin:0;font-size:13px;line-height:1.3}.staff-identity>.actions{margin:0;gap:8px;align-self:center}.staff-identity>.actions>details,.staff-identity>.staff-history-footer>details{margin:0;padding:0;border:0;background:transparent}.staff-identity>.actions>details>summary{font-size:14px;line-height:1.3}.staff-identity>.staff-history-footer{margin:0;align-self:end}.staff-identity .identity-eye{width:28px;height:28px;padding:4px}.staff-identity .identity-masked{font-size:14px}

.swap-policy-panel{padding:12px 14px;margin:10px 0}.swap-policy-panel h3{font-size:17px;margin:0 0 8px}.swap-policy-panel>details{display:inline-block;margin:0 12px 0 0;padding:0;border:0}.swap-policy-panel>p{margin:6px 0 0}.leader-swaps>details{margin:0;padding:0;border:0}.leader-swaps>details>summary{display:inline-flex;align-items:center;min-height:36px;padding:6px 12px;border:1px solid #92b2dc;border-radius:999px;background:#e3efff;color:#29486e;font-size:13px}.leader-swaps[data-status=attention]>details>summary{background:#fde2e2;border-color:#c34747;color:#842020}.leader-swaps table td{vertical-align:top}.leader-swaps .table-wrap,.swap-policy-panel .table-wrap{max-height:55vh}

[data-manual-day-copy][draggable="true"]{cursor:grab;user-select:none;}
[data-manual-day-copy].manual-day-copy-source{opacity:.55;cursor:grabbing;}
[data-manual-day-copy].manual-day-copy-target{outline:3px solid #28704c;outline-offset:2px;background:#e5f2e9;}

.manual-analysis-toggle{border:1px solid #c5ac72;border-radius:999px;background:#fff0ce;color:#163428;min-width:44px;min-height:36px;padding:6px 12px;font-weight:700}.manual-analysis-toggle.active{box-shadow:inset 0 0 0 2px #9a7424}
.manual-month-analysis[hidden]{display:none}.manual-month-analysis{box-sizing:border-box;width:100%;height:auto;min-height:0;border:1px solid #d9c99d;border-radius:9px;background:#fffdf7;margin:10px 0;padding:8px;display:flex;flex-direction:column;overflow:hidden}
.manual-analysis-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;flex-shrink:0;font-size:14px}.manual-analysis-heading .analysis-legend{margin:0;gap:12px;font-size:13px}.manual-analysis-heading button{padding:3px 8px;min-height:26px;font-size:13px}.manual-analysis-content{flex:1;min-height:0;display:flex;flex-direction:column}.manual-analysis-status{font-size:12px;color:var(--muted);padding:2px 0 4px;flex-shrink:0}.manual-analysis-grid{flex:1;min-height:0;overflow:visible;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:auto;gap:8px}.manual-analysis-week{min-width:0;background:white;border:1px solid #e6e0d4;border-radius:5px;padding:3px;display:flex;flex-direction:column;overflow:hidden}.manual-analysis-week-title{display:flex;align-items:center;justify-content:space-between;gap:5px;flex-shrink:0;font-size:12px}.manual-analysis-week-title strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.manual-analysis-week-title details{margin:0;flex-shrink:0}.manual-analysis-week-title summary{font-size:11px;padding:1px 4px;cursor:pointer;white-space:nowrap}.manual-analysis-mini{display:block;width:100%;height:clamp(135px,19vh,190px);flex:none;min-height:0}.manual-analysis-mini text{font:18px sans-serif;fill:#514951}.manual-analysis-mini .analysis-line{stroke-width:2.7}
@media(max-width:1000px){.manual-analysis-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.manual-analysis-grid{grid-template-columns:1fr}.manual-analysis-heading .analysis-legend{font-size:11px;gap:7px}.manual-month-analysis{height:auto;max-height:none;min-height:0}}

.manual-rs-toggle{border:1px solid #b89783;border-radius:999px;background:#fae7d9;color:#163428;min-width:44px;min-height:36px;padding:6px 10px;font-weight:700}.manual-rs-toggle.active{box-shadow:inset 0 0 0 2px #33644c}.manual-rs-panel[hidden]{display:none}.manual-rs-panel{width:100%;box-sizing:border-box;margin:10px 0;padding:10px 12px;border:1px solid #dec9b6;border-radius:9px;background:#fffaf5}.manual-rs-heading,.manual-rs-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.manual-rs-heading button{min-height:26px;padding:3px 8px;font-size:13px}.manual-rs-title h3{margin:5px 0;font-size:16px}.manual-rs-title>span{font-size:13px;color:var(--muted)}.manual-rs-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:5px 0;font-size:14px}.manual-rs-summary>div{display:flex;flex-direction:column;gap:3px}.manual-rs-summary span{font-size:13px;color:var(--muted)}.manual-rs-advice{margin:5px 0;font-size:14px}.manual-rs-department+.manual-rs-department{border-top:1px solid var(--line);margin-top:10px;padding-top:4px}.manual-rs-table{font-size:13px}.manual-rs-table th,.manual-rs-table td{padding:5px 7px}.manual-rs-best{background:#edf4ec}.manual-rs-footnote{font-size:12px;color:var(--muted);margin:7px 0 3px}.manual-rs-panel .table-wrap{max-height:none}@media(max-width:650px){.manual-rs-summary{grid-template-columns:1fr}}

/* Former employees remain readable and available through the archive. */
.employee-ended>td{background:#f9e7e8}.employee-ended .employee-active{color:#862e40;border-color:#d5a5ad;background:#fbeff0}

button[data-employee-archive="true"]{background:#e1f3ea;color:#25503b;border-color:#97c5ae}button[data-employee-archive="true"][aria-pressed="true"],button[data-employee-archive="true"]:hover{background:#bee6d2;color:#122b22;border-color:#5c9b7c}button[data-employee-archive="true"][aria-pressed="true"]{box-shadow:inset 0 0 0 1px #5c9b7c}

button.personal-clock-in{background:#287342;color:#fff;border-color:#287342}button.personal-clock-in:hover{background:#1c5830;border-color:#1c5830}button.personal-clock-out{background:#b52e3a;color:#fff;border-color:#b52e3a}button.personal-clock-out:hover{background:#92222d;border-color:#92222d}

button.preview-card.has-open-offers{background:#fff1b8;border-color:#b58a19;color:#513d08}button.preview-card.has-open-offers span{color:#665018}button.preview-card.has-open-offers:hover{background:#ffe58c;border-color:#8c6811}

.personal-bottom-nav{display:flex;justify-content:center;background:#171717;color:white;border-radius:12px;padding:8px;margin-top:16px}.personal-bottom-nav button{display:flex;align-items:center;gap:9px;background:transparent;color:white;border:0;min-height:48px}.personal-bottom-nav button:focus-visible{outline:3px solid #ffe58c}.own-profile-data{display:grid;gap:0;margin:12px 0}.own-profile-data>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(0,2fr);gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.own-profile-data dt{font-weight:650}.own-profile-data dd{margin:0;overflow-wrap:anywhere}.own-profile-eye{min-height:44px;margin-left:4px}
@media(max-width:760px){.personal-portal:has(.personal-bottom-nav){padding-bottom:calc(82px + env(safe-area-inset-bottom))}.personal-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:1000;border-radius:0;margin:0;padding:6px 12px calc(6px + env(safe-area-inset-bottom));box-shadow:0 -2px 10px #0002}.personal-bottom-nav button{flex-direction:column;gap:2px;min-width:90px;font-size:13px}.own-profile-data>div{grid-template-columns:1fr;gap:5px}#personal-profile{max-height:calc(100dvh - 24px)}}

.colleagues-list{display:grid;margin-top:12px;gap:6px}.colleagues-list>button{display:grid;gap:4px;text-align:left;padding:12px;min-height:60px}.colleagues-list>button[hidden]{display:none}.colleagues-list span{font-size:14px;color:var(--muted)}.colleague-contact-actions{display:grid;gap:10px;margin:16px 0}.colleague-contact-actions .button,.colleague-contact-actions button{min-height:48px;overflow-wrap:anywhere;text-align:center}.colleague-message{padding:10px 12px;background:#f1eff0;border-radius:12px;margin:8px 0}.colleague-message.mine{background:#e4f1eb}.colleague-message p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0 0}[data-colleague-messages]{max-height:35dvh;overflow:auto}#colleague-message-form{margin-top:14px}#personal-colleagues{max-height:calc(100dvh - 24px)}

[data-personal-out-editor]{border-top:1px solid var(--line);margin-top:16px;padding-top:12px}[data-personal-out-editor]>label:not(.check){display:grid;gap:6px;margin:12px 0}[data-personal-out-editor] textarea{width:100%;resize:vertical}[data-personal-out-editor][hidden],[data-personal-out-time-label][hidden]{display:none}

[data-personal-out-error]:not(:empty){background:#fde2e2;color:#842020;border:1px solid #c34747;border-radius:8px;padding:12px;font-weight:650}

/* Erica Min side: mobil arbeidsdag, avgrenset fra lederverkstedet. */
.personal-portal{--wine:#353f35;--accent:#4e6953;--green:#336954;--ink:#29342e;--muted:#626b63;--line:#dce2da;--paper:#f5f4ee;background:var(--paper)}
.personal-portal main{max-width:960px;padding:0 28px 32px}
.personal-brand{display:flex;align-items:center;justify-content:space-between;padding:20px 0 16px;border-bottom:1px solid var(--line);margin-bottom:22px;gap:16px}.personal-brand img{display:block;width:104px;height:56px;object-fit:contain}.personal-brand>span{color:var(--muted);font-size:14px}
.personal-welcome{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:20px 0}.personal-welcome h1{font-size:30px;margin:4px 0 0;overflow-wrap:anywhere}.personal-welcome .personal-eyebrow{margin:0}.personal-eyebrow{font:600 11px/1.5 var(--font);letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.personal-portal .banner{font-size:13px;padding:9px 12px;margin:0 0 14px}.personal-portal button{min-height:44px;border-color:#b5c2b5}.personal-portal button.primary{background:#353f35;border-color:#353f35;color:white}.personal-portal button.personal-clock-in{background:#287342;border-color:#287342}.personal-portal button.personal-clock-out{background:#b52e3a;border-color:#b52e3a}.personal-portal button.personal-clock-out:hover{background:#92222d}.personal-portal button.personal-clock-in:hover{background:#1c5830}
.personal-portal .panel{border-radius:16px;box-shadow:none}.personal-day{padding:22px!important;background:#fff;border:1px solid var(--line)}.personal-day-status{display:flex;align-items:center;gap:9px}.personal-status-dot{width:9px;height:9px;background:#336954;border-radius:50%;box-shadow:0 0 0 4px #ecf3ed}.personal-day>.small{margin:8px 0 16px}.personal-day>button{width:100%;font-size:16px;min-height:50px;border-radius:10px}.personal-next-shift{display:grid;gap:4px;margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.personal-next-shift>strong{font-size:17px}.personal-next-shift>span:last-child{font-size:14px;color:var(--muted)}
.personal-services{margin-top:26px}.personal-services h2{font-size:22px;margin-bottom:12px}.personal-services .preview-grid{margin-top:0}.personal-services .preview-card{background:white;border:1px solid var(--line);border-radius:14px;min-height:100px;padding:16px;color:var(--ink)}.personal-services .preview-card:hover{background:#eef3ec;border-color:#7a927b}.personal-services .preview-card.has-open-offers{background:#fff1ba;border-color:#d6bf6b}.personal-services .preview-card strong{font-size:15px}.personal-services .preview-card span{font-size:13px}
.personal-portal .personal-bottom-nav{background:#353f35;gap:4px;padding:8px;border-radius:14px}.personal-portal .personal-bottom-nav button{flex:1;min-width:0;justify-content:center;flex-direction:column;gap:3px;font-size:12px;padding:6px;color:#fff;border-radius:9px}.personal-portal .personal-bottom-nav button[aria-current=page]{background:#ffffff1a}.personal-bottom-nav button>span[aria-hidden]{font:26px/1 sans-serif;height:25px}.personal-portal .personal-bottom-nav button svg{width:25px;height:25px}.personal-account{border-top:1px solid var(--line);padding-top:20px;margin-top:24px}.personal-account h3{margin-bottom:8px}.personal-account .actions{margin-top:0}
.personal-mobile-list{display:none}.personal-portal .badge{white-space:normal}.personal-portal .preview-dialog [role=alert]:empty{display:none}.personal-record{padding:16px;border:1px solid var(--line);border-radius:12px;background:white;overflow-wrap:anywhere}.personal-record p{font-size:14px;margin:8px 0}.personal-record-head{display:flex;align-items:start;justify-content:space-between;gap:10px}.personal-record-head h3{font:600 14px/1.5 var(--font);margin:0}.personal-record-status{font-size:12px;padding:3px 7px;background:#edf2e9;color:#353f35;border-radius:6px}.personal-record dl{margin:12px 0 0}.personal-record dl>div{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px}.personal-record dd{margin:0;text-align:right}.personal-record details{margin:12px 0 0;border-top:1px solid var(--line);padding-top:10px}.personal-record summary{font-size:14px}
@media(max-width:760px){
 .personal-portal main{padding:0 16px 24px}.personal-brand{padding:12px 0;margin-bottom:14px}.personal-brand img{width:88px;height:47px}.personal-brand>span{font-size:13px}.personal-welcome{margin:16px 0}.personal-welcome h1{font-size:26px}.personal-welcome>button{font-size:13px;padding:8px 12px}.personal-portal .preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.personal-services .preview-card{padding:14px;min-height:110px}.personal-services .preview-card strong{line-height:1.35}.personal-day{padding:18px!important}
 .personal-portal .personal-bottom-nav{position:fixed;inset:auto 0 0;border-radius:0;margin:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom));z-index:100}.personal-portal:has(.personal-bottom-nav){padding-bottom:calc(82px + env(safe-area-inset-bottom))}
 .personal-portal .preview-dialog,.personal-portal .preview-dialog.preview-dialog-full,.personal-portal #personal-availability.preview-dialog,.personal-portal #personal-profile,.personal-portal #personal-colleagues{position:fixed;inset:0;margin:0;width:100%;max-width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:20px 16px calc(24px + env(safe-area-inset-bottom));resize:none;overflow-x:hidden;overflow-y:auto;background:var(--paper)}
 .personal-portal .preview-dialog>.section-title{position:sticky;top:-20px;z-index:2;background:var(--paper);padding:16px 0 12px;border-bottom:1px solid var(--line);margin-bottom:18px;display:flex;align-items:center;justify-content:space-between;gap:8px}.personal-portal .preview-dialog>.section-title h2{font-size:23px;margin:0}.personal-portal .preview-dialog>.section-title [data-personal-full],.personal-portal [data-own-profile-full],.personal-portal [data-colleagues-full],.personal-portal [data-colleague-full]{display:none}.personal-portal .preview-dialog>.section-title button{font-size:14px;padding:8px 12px}.personal-portal .preview-dialog>p{font-size:14px}.personal-portal .preview-dialog>.panel{padding:0;border:0;background:transparent}.personal-portal .personal-desktop-table{display:none}.personal-mobile-list{display:grid;gap:12px;margin:16px 0}.personal-portal form{max-width:none}.personal-portal input,.personal-portal select,.personal-portal textarea{font-size:16px;max-width:100%}.personal-portal #personal-leave-form .row{display:grid;grid-template-columns:1fr;gap:12px}.personal-portal #personal-leave-form label{min-width:0;width:100%;display:grid;gap:5px}.personal-portal #personal-leave-form input,.personal-portal #personal-leave-form select{width:100%}.personal-portal #personal-leave-form{margin-bottom:24px}.personal-portal .personal-leave-table{max-height:none;overflow:visible;border:0;margin-top:14px}.personal-leave-table thead{display:none}.personal-leave-table table,.personal-leave-table tbody{display:block}.personal-leave-table tr{display:block;background:white;border:1px solid var(--line);border-radius:12px;padding:10px 14px;margin-bottom:12px}.personal-leave-table td{display:block;border:0;padding:5px 0;overflow-wrap:anywhere}.personal-leave-table td[data-label]::before{content:attr(data-label);display:block;font-size:12px;font-weight:600;color:var(--muted)}
}
@media(max-width:760px){html:has(.personal-portal dialog[open]){overflow:hidden}.personal-portal:has(dialog[open]){overflow:hidden}.personal-portal .preview-dialog::backdrop{background:var(--paper)}}
.personal-services .personal-tables-card{background:#e8f1e5;border-color:#8da489}.personal-tables-filter{display:flex!important;gap:10px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.personal-tables-filter label{display:grid;gap:4px}.personal-tables-summary{background:#e8f1e5;border:1px solid #b6cbb0;border-radius:12px;padding:16px;margin:16px 0}.personal-tables-summary h3{margin-bottom:10px}.personal-table-chip{display:inline-block;padding:5px 9px;margin:3px 3px 3px 0;background:#287342;color:white;border-radius:6px;font-size:14px;font-weight:650}.personal-table-relief{padding:12px;background:#fff1ba;border-radius:10px}.personal-map-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:24px}.personal-map-heading h3{margin:0}.personal-table-map{border:1px solid var(--line);border-radius:12px;overflow:auto;background:#faf9f7;max-width:100%}.personal-table-map svg{display:block;width:100%;height:auto}.personal-table-map.zoomed svg{min-width:860px}.personal-portal #personal-tables{width:min(1000px,96vw)}[data-personal-tables-content][aria-busy=true]{opacity:.6}
@media(max-width:760px){.personal-portal #personal-tables{width:100%;max-width:100%}.personal-tables-filter label{flex:1;min-width:120px}.personal-tables-filter input{width:100%}.personal-tables-filter button{flex:1}.personal-map-heading button{font-size:13px}.personal-services .personal-tables-card{grid-column:1/-1;min-height:76px}}
.personal-table-time{display:grid;gap:8px;flex:1;min-width:190px}.personal-table-arrows{display:flex;gap:8px}.personal-table-arrows button{flex:1;white-space:nowrap}.personal-table-people{margin:22px 0}.personal-table-person{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.personal-person-color{flex:0 0 18px;margin-top:4px}.personal-table-person p{margin:4px 0 0}.personal-table-person .small{color:var(--muted)}

/* Mobil lederflate: verkstedene og kostnadskontroll kommer først. */
.mobile-workshop-home,.mobile-workshop-nav{display:none}.mobile-navigation-dialog{width:min(480px,calc(100vw - 24px));padding:20px;border:1px solid #dce2da;background:#f5f4ee;color:#29342e;resize:none}.mobile-navigation-dialog::backdrop{background:#17251ddd}.mobile-navigation-head{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-20px;background:#f5f4ee;padding:12px 0;z-index:2}.mobile-navigation-head h2{margin:0;font-size:25px}.mobile-navigation-head button{min-height:44px}.mobile-navigation-dialog [data-mobile-panel-content]>a{display:grid;grid-template-columns:auto 1fr auto;gap:4px 12px;padding:15px;margin:8px 0;background:#fff;border:1px solid #dce2da;border-radius:12px;text-decoration:none;color:#29342e}.mobile-navigation-dialog a>svg{grid-column:1;grid-row:1/3;align-self:center;width:24px;height:24px;color:#344b39}.mobile-navigation-dialog a>strong{grid-column:2}.mobile-navigation-dialog a>span:first-of-type{font-size:13px;color:#626b63;grid-column:2}.mobile-navigation-dialog a>span:last-of-type{grid-column:3;grid-row:1/3;align-self:center}.mobile-navigation-dialog [hidden]{display:none!important}
@media(max-width:760px){
 body:has(.workshop-mobile-shell){background:#f5f4ee}.workshop-mobile-shell{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
 .workshop-mobile-shell .sidebar{padding:10px 16px;background:#fff;border-bottom:1px solid var(--line)}.workshop-mobile-shell .brand-logo{width:94px;height:50px;object-fit:contain}.workshop-mobile-shell .brand{min-height:50px}.workshop-mobile-shell .menu-toggle{min-height:44px;padding:8px 13px;border-color:#bbc8b9;border-radius:10px}.workshop-mobile-shell .topbar{padding:10px 16px;gap:8px;background:#f5f4ee;min-height:0}.workshop-mobile-shell .topbar>span.crumb{flex-basis:auto;margin-right:auto;font-size:12px}.workshop-mobile-shell .topbar label{font-size:0;gap:0}.workshop-mobile-shell .topbar select{font-size:13px;min-height:36px;max-width:150px;padding:6px 8px}.workshop-mobile-shell .topbar .clock-shortcut{width:36px;height:36px;padding:5px}.workshop-mobile-shell .view{padding:18px 16px 24px}.workshop-mobile-shell .heading{margin-bottom:16px}.workshop-mobile-shell .heading .eyebrow{display:none}.workshop-mobile-shell .heading p{font-size:14px}.workshop-mobile-shell .banner{font-size:13px;padding:10px 12px}.workshop-mobile-shell input,.workshop-mobile-shell select,.workshop-mobile-shell textarea{font-size:16px}.workshop-mobile-shell button,.workshop-mobile-shell .button{min-height:44px}
 .mobile-workshop-home-route .desktop-home-content{display:none}.mobile-workshop-home-route .mobile-workshop-home{display:block}.mobile-workshop-home-route .topbar .crumb{display:none!important}.mobile-workshop-home h1{font-size:28px;margin:4px 0 16px}.mobile-home-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#626b63;margin:0}.mobile-workshop-priority{display:grid;gap:12px}.mobile-workshop-card{display:flex;align-items:center;gap:14px;padding:19px 16px;border:1px solid #c7d4c2;border-radius:15px;color:#29342e;text-decoration:none;background:#fff;min-height:90px;box-shadow:0 2px 6px #24352006}.mobile-workshop-card.waiter{background:#e7efdf}.mobile-workshop-card.kitchen{background:#f0f3e9}.mobile-workshop-card.costs{background:#353f35;color:white;border-color:#353f35}.mobile-workshop-card>svg{flex:0 0 28px;width:28px;height:28px}.mobile-workshop-card>div{flex:1;min-width:0}.mobile-workshop-card strong{display:block;font-size:18px;line-height:1.3}.mobile-workshop-card div>span{display:block;font-size:13px;margin-top:5px;opacity:.8}.mobile-workshop-card>span{font-size:23px}.mobile-today{margin-top:26px}.mobile-today h2{font-size:23px;margin:4px 0 12px}.mobile-today-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mobile-today-links a{display:grid;gap:7px;align-content:start;background:#fff;border:1px solid #dce2da;border-radius:12px;padding:15px;min-height:105px;color:#29342e;text-decoration:none}.mobile-today-links strong{font-size:14px}.mobile-today-links span{font-size:13px;color:#626b63}.mobile-smart-link{display:block;padding:18px 0;color:#353f35;text-decoration:underline;font-size:14px}
 .workshop-mobile-shell .mobile-workshop-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:2px;position:fixed;inset:auto 0 0;z-index:60;background:#171717;color:white;padding:7px 6px calc(7px + env(safe-area-inset-bottom));border-top:1px solid #343a34;box-shadow:0 -3px 14px #0002}.mobile-workshop-nav>a,.mobile-workshop-nav>button{display:flex;flex-direction:column;align-items:center;justify-content:start;gap:5px;border:0;background:transparent;color:white;text-decoration:none;min-width:0;min-height:60px;padding:5px 1px;border-radius:8px;font:500 11px/1.2 var(--font);text-align:center}.mobile-workshop-nav svg{flex:0 0 24px}.mobile-workshop-nav [aria-current=page]{background:#344b39;color:#e6f1df}.mobile-workshop-nav a:focus-visible,.mobile-workshop-nav button:focus-visible{outline:3px solid #ffe58c;outline-offset:-2px}.mobile-workshop-nav>a:hover,.mobile-workshop-nav>button:hover{background:#2b332d}.workshop-mobile-shell .notice{bottom:calc(94px + env(safe-area-inset-bottom))}.workshop-mobile-shell .mobile-navigation-dialog{max-height:calc(100dvh - 30px);padding-bottom:calc(20px + env(safe-area-inset-bottom))}.workshop-mobile-shell .employee-allocation .row{gap:8px}.workshop-mobile-shell .allocation-map-canvas{overflow:auto}.workshop-mobile-shell .allocation-map-canvas svg{min-width:700px}
}
@media(max-width:760px){.workshop-mobile-shell.employee-shell{padding-bottom:0}}
@media(max-width:760px){.mobile-today-links>button{display:grid;gap:7px;align-content:start;text-align:left;background:#fff;border:1px solid #dce2da;border-radius:12px;padding:15px;min-height:105px;color:#29342e}.mobile-workshop-nav>.is-active{background:#344b39;color:#e6f1df}}

/* Kostnadskontroll: fire tallkolonner, dagsgrunnlag i eget vindu. */
.cost-control-page{padding:20px}.cost-control-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.cost-control-toolbar>label{display:grid;gap:5px}.cost-control-toolbar input{min-height:42px}.cost-control-toolbar>.primary{min-height:42px}.cost-preliminary{font-size:13px;color:var(--muted);align-self:center;margin-left:auto}.cost-period-heading{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:8px 0 12px}.cost-period-heading h2{font-size:23px;margin:0}.cost-period-heading>span{font-size:13px;color:var(--muted)}.cost-summary-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cost-summary-cards>div{padding:14px;background:#f1f5ee;border:1px solid #d7e0d2;border-radius:10px;min-width:0}.cost-summary-cards span{display:block;font-size:13px;color:#596452}.cost-summary-cards strong{display:block;font-size:clamp(16px,2vw,25px);margin-top:5px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.cost-summary-note,.cost-waiting-note{font-size:13px;margin:10px 0;color:var(--muted)}.cost-waiting-note{padding:9px 12px;background:#fff5d7;border-radius:8px;color:#6c5821}
.cost-control-overview-table{max-height:none;overflow:visible;margin-block:14px 8px}.cost-control-overview-table table{min-width:0;width:100%;table-layout:fixed;font-size:14px;font-variant-numeric:tabular-nums}.cost-control-overview-table caption{text-align:left;font-size:12px;color:var(--muted);padding:0 0 8px}.cost-control-overview-table thead th{padding:7px 10px;white-space:normal;color:#353f35;background:#eef2e9}.cost-control-overview-table thead th:first-child{width:25%}.cost-control-overview-table thead th:nth-child(2),.cost-control-overview-table thead th:nth-child(3){width:28%}.cost-control-overview-table thead th:last-child{width:19%}.cost-control-overview-table th:not(:first-child),.cost-control-overview-table td{text-align:right}.cost-control-overview-table tbody th,.cost-control-overview-table td{padding:4px 10px;vertical-align:middle;font-size:14px;line-height:1.4;white-space:nowrap;min-width:0}.cost-control-overview-table td:last-child{min-width:0}.cost-control-overview-table tbody th{background:#fff;color:var(--ink);font-weight:600}.cost-control-overview-table .cost-day-weekend,.cost-control-overview-table .cost-day-weekend>th{background:#f5f7f1}.cost-control-overview-table .cost-day-future,.cost-control-overview-table .cost-day-future>th{color:#8b918a;background:#fafaf7}.cost-control-overview-table .cost-day-incomplete>td{background:#fffaf0}.cost-control-overview-table details{margin:0;min-width:0;max-width:none}.cost-control-overview-table details[open]{min-width:0;max-width:none}.cost-control-overview-table summary.report-info-trigger{font:inherit;color:inherit;display:inline-block;padding:2px 0;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.cost-control-overview-table summary::marker{content:''}.cost-value-missing{color:#8b918a}.cost-date-state{white-space:normal;font-size:11px;display:inline-block;line-height:1.2;color:#797b71}.cost-table-footnote{font-size:12px;line-height:1.5;color:var(--muted);margin:8px 0 14px}.cost-control-overview-table sup{color:#866527;font-weight:700;font-size:11px;margin-left:2px}
@media(max-width:760px){.cost-control-page{padding:12px}.cost-control-toolbar{gap:10px}.cost-control-toolbar>label{flex:1;min-width:120px}.cost-control-toolbar input{width:100%;font-size:16px}.cost-control-toolbar>.primary{font-size:14px;flex:1}.cost-preliminary{margin:0;font-size:12px;flex-basis:100%}.cost-period-heading h2{font-size:21px}.cost-period-heading>span{font-size:12px}.cost-summary-cards{gap:6px}.cost-summary-cards>div{padding:10px 7px}.cost-summary-cards span{font-size:11px}.cost-summary-cards strong{font-size:14px}.cost-control-overview-table tbody th,.cost-control-overview-table td{padding:3px 4px;font-size:12px;white-space:normal}.cost-control-overview-table thead th{padding:7px 4px;font-size:11px}.cost-control-overview-table tbody th>details>summary{min-height:32px;display:inline-flex;align-items:center;white-space:normal;line-height:1.3}.cost-control-overview-table td{white-space:nowrap}.cost-control-overview-table .cost-date-state{white-space:normal;font-size:11px}.cost-control-overview-table caption{font-size:11px}.cost-control-overview-table .cost-day-future th{padding-block:6px}.cost-control-page .cost-control-tools{gap:6px}.cost-control-page .cost-control-tools summary.report-info-trigger{font-size:13px;min-height:44px}.workshop-mobile-shell:has(.cost-control-page)>.sidebar{position:static}.workshop-mobile-shell:has(.cost-control-page) .view{padding:14px 10px}.workshop-mobile-shell:has(.cost-control-page) .heading p{display:none}.workshop-mobile-shell:has(.cost-control-page) .heading h1{font-size:24px}.workshop-mobile-shell:has(.cost-control-page) .heading{margin-bottom:12px}}
@media(max-width:760px){.cost-summary-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.cost-summary-cards>div:first-child{grid-column:1/-1}.cost-summary-cards strong{font-size:18px}.cost-summary-cards>div:first-child strong{font-size:21px}}
.cost-summary-cards.cost-status-incomplete>div{background:#fff4f2;border-color:#e7bdb8}.cost-summary-cards.cost-status-incomplete strong{color:#a82932}.cost-summary-cards.cost-status-complete>div{background:#edf6e8;border-color:#b7cfad}.cost-summary-cards.cost-status-complete strong{color:#246137}.cost-completeness{font-size:13px;line-height:1.5;margin:10px 0;font-weight:600}.cost-completeness.cost-status-incomplete{color:#a82932}.cost-completeness.cost-status-complete{color:#246137}.cost-completeness.cost-status-neutral{color:var(--muted)}
.cost-approval-status{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;margin:14px 0;border:1px solid #ddd8cb;border-radius:10px;background:#fbf8ee}.cost-approval-status strong{display:block;font-size:15px}.cost-approval-status p{font-size:13px;margin:5px 0 0;color:var(--muted)}.cost-approval-status.waiting{border-color:#deb0a9;background:#fff3f0}.cost-approval-status.waiting strong{color:#a82932}.cost-approval-status.approved{border-color:#b4cda9;background:#edf6e8}.cost-approval-status.approved strong{color:#246137}.cost-approval-status button{font-size:13px;min-height:44px;flex-shrink:0;max-width:240px}.cost-day-approval{display:inline-block;margin-left:5px;font:bold 11px/15px sans-serif;text-align:center;min-width:15px;border-radius:50%}.cost-day-approval.waiting{color:#9c2029;background:#f9dcd7}.cost-day-approval.approved{color:#246137;background:#e4f0de}.cost-control-overview-table tbody th>details{display:inline-block}.cost-control-overview-table tr[hidden]{display:none!important}
@media(max-width:760px){.cost-approval-status{display:block;padding:11px}.cost-approval-status button{width:100%;max-width:none;margin-top:10px}.cost-day-approval{margin-left:2px;min-width:12px;font-size:11px;line-height:12px}.cost-approval-status .small{overflow-wrap:anywhere}.cost-control-overview-table tbody th>details{max-width:calc(100% - 14px);vertical-align:middle}}
.rs-readiness-banner{display:flex;flex-direction:column;gap:4px;padding:11px 13px;border:1px solid #e0c889;background:#fff5d9;border-radius:9px;margin:10px 0;color:#6c531d}.rs-readiness-banner.conflict{border-color:#dca9a5;background:#fff0ed;color:#9d2d32}.rs-readiness-banner>strong{font-size:15px}.rs-readiness-banner>span{font-size:13px}.rs-overview-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:12px 0}.rs-overview-cards>div{display:grid;gap:5px;padding:13px;border:1px solid #dedfd4;border-radius:10px;background:white;min-width:0}.rs-overview-cards span{font-size:13px;color:var(--muted)}.rs-overview-cards strong{font-size:22px;line-height:1.2;color:#353f35;font-variant-numeric:tabular-nums}.rs-overview-cards small{font-size:12px;color:var(--muted)}.rs-hr-status{display:grid;gap:5px;font-size:13px;margin:10px 0}.rs-overview-conclusion{font-size:14px;padding:10px 12px;border-left:3px solid #c5b498;background:#fff}.rs-overview-conclusion>strong{display:block;margin-top:4px}.rs-detail-actions{display:flex;gap:10px;flex-wrap:wrap}.rs-detail-actions>details{margin:5px 0}.rs-detail-actions summary.report-info-trigger{font-size:13px;padding:8px 12px;border:1px solid #d6c6ac;border-radius:999px;background:white}.manual-rs-department>.small{font-size:12px}.manual-rs-department+.manual-rs-department{margin-top:20px;padding-top:12px}@media(max-width:900px){.rs-overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.rs-overview-cards strong{font-size:18px}.rs-overview-cards>div{padding:10px}}

/* Profil åpnes med et ekstra trykk; følsomme felt vises hver for seg. */
.personal-bottom-nav button[hidden]{display:none!important}.own-profile-sensitive{display:flex;align-items:center;justify-content:space-between;gap:12px}.own-profile-eye{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex-shrink:0;min-width:74px}.own-profile-eye svg{width:22px;height:22px}.own-profile-eye:focus-visible{outline:3px solid var(--green);outline-offset:2px}
/* Direkte utlogging i Min sides faste bunnfelt. */
.personal-portal .personal-bottom-nav{background:#171717}.personal-portal .personal-bottom-nav #personal-logout{border-left:1px solid #ffffff24;border-radius:0 8px 8px 0}

/* Profilen ruller mellom overskriften og den alltid synlige kontoknappen. */
.personal-portal #personal-profile[open]{display:flex;flex-direction:column;overflow:hidden}
.personal-portal #personal-profile>.section-title,.personal-portal #personal-profile>.personal-account{flex-shrink:0}
.personal-portal #personal-profile>[data-own-profile-content]{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto}
.personal-portal #personal-profile>.personal-account{background:var(--paper);margin-top:12px;padding-top:12px;padding-bottom:env(safe-area-inset-bottom)}
.personal-portal #personal-profile>.personal-account h3{margin-top:0}
.personal-portal #personal-profile #personal-return{min-height:48px;white-space:normal}
@media(max-width:760px){.personal-portal #personal-profile #personal-return{width:100%}.personal-portal #personal-profile>.personal-account .actions{display:block}}

/* Mine timer: dato, klokkeslett og status kan leses uten å åpne detaljene. */
.personal-hours-list{display:grid;gap:10px}.personal-hours-month{font:600 18px/1.4 var(--font);text-transform:capitalize;margin:12px 0 0}
.personal-hours-record .personal-record-head{align-items:center}.personal-hours-record h4{font:600 17px/1.4 var(--font);margin:0;text-transform:capitalize}.personal-hours-record .personal-record-status{flex-shrink:0}
.personal-hours-main{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-top:12px}.personal-hours-clock{display:block;font-size:22px;font-variant-numeric:tabular-nums}.personal-hours-department,.personal-hours-nextday{display:block;font-size:13px;color:var(--muted);margin-top:4px}.personal-hours-nextday{color:var(--ink)}
.personal-hours-duration{text-align:right;flex-shrink:0}.personal-hours-duration span{display:block;font-size:12px;color:var(--muted)}.personal-hours-duration strong{display:block;font-size:18px}.personal-hours-record .personal-hours-reviewed{display:flex;justify-content:space-between;gap:12px;background:#f2f4ef;padding:8px;border-radius:6px;margin-bottom:0}
.personal-hours-record .personal-hours-status-approved{background:#e5f2e8;color:#22633a}.personal-hours-record .personal-hours-status-pending{background:#fff0d9;color:#805000}.personal-hours-record .personal-hours-status-unknown{background:#eee;color:#555}
.personal-hours-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 8px}.personal-hours-overview>div{display:grid;text-align:center;gap:4px;padding:12px 5px;border:1px solid var(--line);border-radius:10px;background:white}.personal-hours-overview strong{font-size:25px}.personal-hours-overview span{font-size:12px}.personal-hours-overview .has-pending{background:#fff4e3;border-color:#dfc18a;color:#805000}
@media(max-width:360px){.personal-hours-record h4{font-size:15px}.personal-hours-record .personal-record-status{font-size:11px}.personal-hours-clock{font-size:20px}.personal-hours-duration strong{font-size:16px}}

.holiday-quota-panel .table-wrap{max-height:420px}.holiday-quota-panel th small{display:block;font-weight:400;color:var(--muted)}.holiday-quota-dialog{width:min(900px,94vw)}.holiday-quota-dialog fieldset{border:1px solid var(--line);border-radius:10px;padding:16px}.holiday-quota-dialog legend{font-weight:600}.holiday-quota-dialog .row{display:flex;flex-wrap:wrap;gap:12px}.holiday-quota-dialog label{flex:1;min-width:180px}.holiday-quota-dialog input,.holiday-quota-dialog select{max-width:100%}.holiday-quota-dialog .check{display:flex;gap:8px;align-items:start;margin-top:12px}.holiday-quota-dialog .check input{flex:none;width:auto}.holiday-quota-dialog [role=status]{overflow-wrap:anywhere}

/* Feriekvote: kompakt oversikt, detaljer åpnes fra navnet. */
.quota-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;max-width:none}.quota-filters label{display:grid;gap:5px;font-size:13px}.quota-filters input[type=number]{width:95px}.quota-filters input[type=search]{width:185px}.quota-filters .quota-filter-check{display:flex;align-items:center;gap:7px;min-height:40px}.quota-filter-check input{width:auto}.holiday-quota-panel [data-quota-message]:empty{display:none}
.quota-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0 12px}.quota-summary>div{display:flex;align-items:center;gap:12px;padding:13px 16px;border:1px solid var(--line);border-radius:10px;background:#f8f8f6}.quota-summary strong{font:700 29px/1.1 var(--font);font-variant-numeric:tabular-nums}.quota-summary span{font-size:14px}.quota-summary>.quota-summary-ok{background:#edf5ef;border-color:#b8d2be;color:#245f37}.quota-summary>.quota-summary-warning{background:#fff4e1;border-color:#e1c891;color:#765015}
.quota-table-caption{display:flex;justify-content:space-between;gap:12px;margin:10px 0 6px;color:var(--muted);font-size:12px}.holiday-quota-panel .quota-compact-wrap{max-height:520px}.quota-compact-table{width:100%;min-width:700px;font-size:13px}.quota-compact-table th,.quota-compact-table td{padding:5px 9px;vertical-align:middle}.quota-compact-table thead th{padding:11px 9px;white-space:nowrap}.quota-compact-table tbody th{background:white;font-weight:400;white-space:nowrap}.quota-compact-table .quota-number{text-align:right;font-variant-numeric:tabular-nums;font-size:14px;white-space:nowrap}.quota-compact-table .quota-remaining{font-weight:700}.quota-compact-table .quota-name{font-size:13px;font-weight:600;min-height:34px;padding:5px 0;border:0;background:transparent;color:var(--wine);text-align:left;box-shadow:none;white-space:nowrap}.quota-name:hover{text-decoration:underline}.quota-name:focus-visible{outline:2px solid var(--wine);outline-offset:3px}.quota-status{display:inline-flex;gap:5px;align-items:center;border-radius:5px;padding:4px 6px;font-size:12px;white-space:nowrap}.quota-status-ok{background:#e8f2eb;color:#245f37}.quota-status-warning{background:#fff0d8;color:#765015}.quota-status-error{background:#fbe6e7;color:#9a2434}.quota-overdrawn{color:#9a2434}.quota-pending{font-size:11px;white-space:nowrap;color:#765015}.quota-unknown{color:#777}.quota-help{margin-top:12px;font-size:13px}.quota-help>summary{cursor:pointer;color:var(--muted)}.quota-help p{max-width:85ch}
@media(max-width:700px){.quota-summary{gap:6px}.quota-summary>div{display:grid;gap:5px;padding:10px}.quota-summary strong{font-size:25px}.quota-summary span{font-size:12px}.quota-table-caption{flex-wrap:wrap}.quota-compact-table .quota-name{min-height:44px}}

.quota-compact-table{table-layout:fixed}.quota-compact-table th:first-child{width:28%}.quota-compact-table th:nth-child(2),.quota-compact-table th:nth-child(3),.quota-compact-table th:nth-child(4){width:10%}.quota-compact-table th:nth-child(5){width:14%}.quota-compact-table th:last-child{width:28%}.quota-compact-table .quota-name{display:block;width:100%;overflow:hidden;text-overflow:ellipsis}.quota-compact-table td:last-child{white-space:nowrap;overflow:hidden}.quota-compact-table .quota-status{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}

#personal-time-approvals[open]{display:flex;flex-direction:column;overflow:hidden}#personal-time-approvals>.section-title,#personal-time-approvals>.time-approval-footer{flex-shrink:0}#personal-time-approvals [data-time-approvals-content]{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto}.time-approval-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:end}.time-approval-filters label{display:grid;gap:4px;font-size:13px}.time-approval-filters input,.time-approval-filters select{width:100%;min-width:0}.time-approval-filters>label{flex:1;min-width:140px}.time-approval-filters .row{display:flex;gap:8px;margin:0}.time-approval-filters .row label{min-width:0}.time-approval-select-all{display:flex;align-items:center;gap:8px;font-size:14px;padding:10px 0}.time-approval-select-all input,.time-approval-pick input{width:24px;height:24px;min-height:24px;flex-shrink:0;accent-color:var(--green)}.time-approval-row{padding:12px;border:1px solid var(--line);border-radius:10px;background:white;margin-bottom:8px}.time-approval-row-main{display:flex;align-items:center;justify-content:space-between;gap:10px}.time-approval-pick{display:flex;align-items:center;gap:9px;min-width:0;min-height:44px}.time-approval-pick small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.time-approval-pick strong{font-size:14px}.time-approval-hours{text-align:right;white-space:nowrap}.time-approval-hours strong,.time-approval-hours span{display:block}.time-approval-hours strong{font-size:16px}.time-approval-hours span{font-size:13px;color:var(--muted)}.time-approval-row details{margin-top:8px;font-size:13px}.time-approval-row p{font-size:13px;margin:8px 0}.time-approval-row .time-approval-issue{color:#9a2434}.time-approval-changed{color:#805000}.time-approval-footer{display:grid;gap:6px;padding:12px 0 max(0px,env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--paper)}.time-approval-footer>span{font-size:13px}.time-approval-footer button{width:100%;min-height:48px}.time-approval-confirm-list{max-height:45dvh;overflow:auto;padding-left:20px;font-size:14px}.time-approval-confirm-list li{margin-bottom:10px}#personal-approval-confirm .actions{position:sticky;bottom:0;padding-top:12px;background:var(--paper)}@media(max-width:760px){.personal-portal #personal-time-approvals{padding-bottom:12px}.time-approval-filters{gap:6px}.time-approval-filters .row{width:100%}.time-approval-filters .row label{flex:1}.time-approval-filters>label{min-width:120px}.time-approval-filters input,.time-approval-filters select{padding:7px}.personal-portal .time-approval-filters>button{font-size:13px;min-height:34px;padding:6px 10px}.time-approval-pick strong{font-size:14px}.time-approval-row{padding:10px}}

.personal-cost-totals{display:grid;gap:8px;margin:12px 0}.personal-cost-totals>div{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:white}.personal-cost-totals span{font-size:13px}.personal-cost-totals strong{font-size:18px;white-space:nowrap}.personal-cost-incomplete>div{background:#fff0f0;border-color:#dfacb1}.personal-cost-complete>div{background:#eaf5ed;border-color:#b8d2be}.personal-cost-status{font-size:14px;font-weight:600}.personal-cost-table table{width:100%;min-width:0;table-layout:fixed;font-size:13px}.personal-cost-table th,.personal-cost-table td{padding:9px 4px;text-align:right;overflow-wrap:anywhere}.personal-cost-table th:first-child{width:18%;text-align:left}.personal-cost-table small{display:block;font-size:11px;color:#805000}.personal-portal #personal-cost-control .row{display:flex;align-items:end;gap:10px}.personal-portal #personal-cost-control [type=month]{max-width:100%}

/* Kompakt oppstart: to innstillingsrader, forklaring ved behov. */
.panel.arrival-compact{padding:10px 14px;margin-block:10px}.arrival-compact>h3{font-size:16px;line-height:1.3;margin:0 0 3px}.arrival-compact>.arrival-window{font-size:13px;line-height:1.35;margin:0 0 5px;color:var(--muted)}.arrival-compact .arrival-period{display:grid;grid-template-columns:76px minmax(0,1fr) max-content;align-items:center;gap:8px;min-height:34px;margin:0;padding:2px 0}.arrival-compact .arrival-period>.check{display:flex;align-items:center;gap:6px;margin:0;font-size:13px;white-space:nowrap}.arrival-compact .arrival-period>.check input{width:17px;height:17px;min-height:17px;margin:0}.arrival-compact .arrival-period>span{font-size:13px;line-height:1.35}.arrival-compact .arrival-period>details{margin:0;padding:0;border:0;background:transparent}.arrival-compact .arrival-period>details>summary{font-size:13px;line-height:1.3;min-height:28px;padding:4px 0;gap:5px;white-space:nowrap}.arrival-compact .arrival-period .report-info-icon{width:15px;height:15px;font-size:12px}.arrival-compact>.arrival-help{margin:4px 0 0;padding:0;border:0;background:transparent;font-size:12px;line-height:1.4}.arrival-help>summary{cursor:pointer;color:var(--muted);font-size:12px}.arrival-help p{font-size:13px;margin:6px 0}.arrival-compact>.arrival-kitchen-note{font-size:12px;line-height:1.4;margin:4px 0;color:var(--muted)}
@media(max-width:560px){.arrival-compact .arrival-period{grid-template-columns:66px minmax(0,1fr);gap:3px 8px}.arrival-compact .arrival-period>details{grid-column:2}.arrival-compact .arrival-period>details>summary{min-height:30px}.arrival-compact>h3{font-size:15px}}

/* One independent activation choice at the left of each rule-group heading. */
.rule-group-heading{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap;margin:.4rem 0 .65rem}
.rule-group-heading h2,.rule-group-heading h3{margin:0;flex:1;min-width:12rem}
.rule-group-toggle{margin:0!important;display:inline-flex!important;align-items:center;gap:.4rem;flex:none!important;font-size:.9rem;font-weight:600;white-space:nowrap}
.rule-group-toggle input{margin:0;flex:none;width:1.15rem;height:1.15rem;accent-color:var(--wine,#27523d)}
.rule-group-toggle:has(input:not(:checked)){color:var(--muted,#686568)}
summary.rule-group-heading{list-style:none}
summary.rule-group-heading>span{flex:1}

summary.rule-group-heading>span::before{content:"▸ ";font-size:.8em}
details[open]>summary.rule-group-heading>span::before{content:"▾ "}

.arrival-summary>span{display:block;line-height:1.4}

.workshop-month-choices.workshop-month-single-only{display:block}
.workshop-month-single-only .workshop-single-month{max-width:24rem}
details.workshop-batch-months{margin-top:1.25rem;padding-top:1rem;border-top:1px solid var(--line,#dedade)}
details.workshop-batch-months>summary{font-weight:600;cursor:pointer}
details.workshop-batch-months[open]>summary{margin-bottom:.9rem}

.workshop-rule-summary{margin:.75rem 0 1rem}
.workshop-rule-summary p{margin:0 0 .5rem}
.workshop-data-basis>.panel{margin-top:.5rem}

.workshop-create-flow{display:grid;gap:.65rem;margin:1rem 0 .5rem}
.workshop-create-flow>.check{margin:0}
.workshop-create-flow>.actions{margin:.3rem 0 0}
.workshop-extra-options{padding:.75rem;border-left:3px solid var(--line);margin:0 0 0 1.4rem}
.workshop-extra-options[hidden]{display:none!important}
.workshop-data-basis .workshop-munu{padding:12px;margin-bottom:12px}

.booking-update-summary{padding:10px 12px;border:1px solid var(--line);border-radius:8px;margin:10px 0;background:#faf8f3}
.booking-update-summary p{margin:5px 0}
.booking-update-summary.has-new-booking-need{border-color:#c78325}
.month-open-shift.booking-need-shift{border:2px solid #b66f16;background:#fff2d7}
.month-open-shift.booking-need-shift small{font-weight:700;color:#785016}
.personal-roster-notices{border-left:4px solid var(--wine,#183a2f)}

.month-open-shift.booking-approved-shift{border:2px solid #527b66;background:#eaf3ed}
.month-open-shift.booking-approved-shift small{color:#2d5d43;font-weight:700}

/* Compact saved monthly templates. */
.stored-templates{max-width:1000px}
.stored-templates>h2{font-size:1.35rem;margin-bottom:14px}
.stored-templates .table-wrap{margin:0 0 12px;max-width:960px}
.stored-templates table{min-width:0;width:100%;table-layout:auto}
.stored-templates thead th{padding:7px 10px;font-size:13px}
.stored-templates tbody td,.stored-templates tbody th{padding:8px 12px;vertical-align:middle;line-height:1.4;font-size:14px}
.stored-templates tbody th{position:static;background:transparent;font-weight:600;text-align:left}
.stored-templates td:first-child,.stored-templates thead th:first-child{width:38px;text-align:center}
.stored-templates td:last-child{width:160px}
.stored-templates .actions{gap:8px;margin:0 0 10px;flex-wrap:wrap}
.stored-templates td .actions{margin:0;flex-wrap:nowrap}
.stored-templates button{min-height:34px;padding:6px 12px;font-size:14px;line-height:1.4}
.stored-templates input[type=checkbox]{margin:0;vertical-align:middle;width:17px;height:17px}
.stored-templates tbody tr:has(input:checked){background:#eef5f2}
.stored-templates form[data-season-template=restore-months] p{font-size:14px;margin:8px 0}

.manual-roster-flow{padding:12px 14px;margin:12px 0;border:1px solid #d0dcd6;border-radius:8px;background:#f9fbfa}
.manual-roster-flow ol{display:flex;flex-wrap:wrap;gap:8px 18px;list-style:none;padding:0;margin:0 0 10px;font-size:14px;color:var(--muted)}
.manual-roster-flow li{display:flex;gap:6px;align-items:center}.manual-roster-flow li span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e7edea}
.manual-roster-flow li[aria-current=step]{color:var(--wine);font-weight:700}.manual-roster-flow li[aria-current=step] span{background:var(--wine);color:white}
.manual-roster-flow p{margin:4px 0;font-size:14px}

/* Keep the calendar's horizontal control within reach above the mobile menu. */
.workshop-calendar-scrollbar{display:none}.workshop-calendar-scrollbar[hidden]{display:none!important}
@media(max-width:760px){
 .workshop-mobile-shell .workshop-calendar-scrollbar:not([hidden]){display:flex;align-items:center;position:fixed;z-index:61;height:44px;padding:0 10px;border:1px solid var(--line);border-radius:9px 9px 0 0;background:#fff;box-shadow:0 -2px 8px #0001}
 .workshop-calendar-scrollbar input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;min-width:0;min-height:44px;margin:0;padding:0;border:0;background:transparent;cursor:ew-resize}
 .workshop-calendar-scrollbar input::-webkit-slider-runnable-track{height:9px;background:#e8e5e7;border-radius:8px}
 .workshop-calendar-scrollbar input::-webkit-slider-thumb{-webkit-appearance:none;width:64px;height:15px;margin-top:-3px;border-radius:8px;background:#a29ba0;border:1px solid #82777e}
 .workshop-calendar-scrollbar input::-moz-range-track{height:9px;background:#e8e5e7;border-radius:8px}
 .workshop-calendar-scrollbar input::-moz-range-thumb{width:64px;height:15px;border-radius:8px;background:#a29ba0;border:1px solid #82777e}
 .workshop-calendar-scrollbar input:focus-visible{outline:3px solid var(--wine);outline-offset:-3px}
 .workshop-mobile-shell:has(.workshop-calendar-scrollbar:not([hidden])){padding-bottom:calc(154px + env(safe-area-inset-bottom))}
}

.workshop-calendar-view-controls[hidden],.workshop-calendar-enlarge[hidden]{display:none!important}
.workshop-calendar-view-controls,.workshop-calendar-enlarge{display:none}
@media(max-width:760px){
 .workshop-mobile-shell .workshop-calendar-view-controls:not([hidden]){display:flex;gap:8px;margin:8px 0}
 .workshop-calendar-view-controls button{min-height:44px;font-size:14px;padding:8px 12px}
 .workshop-mobile-shell .workshop-calendar-overview{position:relative;max-height:none!important;overflow:hidden!important;cursor:zoom-in}
 .workshop-calendar-overview table{pointer-events:none}
 .workshop-mobile-shell .workshop-calendar-enlarge:not([hidden]){display:block;position:absolute;inset:0;width:100%;height:100%;padding:0;margin:0;background:transparent;border:0;border-radius:0;cursor:zoom-in}
 .workshop-calendar-enlarge:focus-visible{outline:3px solid var(--wine);outline-offset:-3px}
}

/* Compact planning order, then one finishing row below the calendar. */
.manual-distribution-steps{display:grid;gap:6px}.manual-distribution-steps>.actions{margin:0;align-items:center;gap:7px}.manual-distribution-steps button,.manual-month-footer button{min-height:34px;padding:6px 10px;font-size:13px;line-height:1.3}.manual-distribution-steps .manual-month-priority{display:flex;gap:6px;align-items:center;font-size:13px;margin:0}.manual-distribution-steps select{width:auto;min-width:110px;min-height:34px;padding:5px 8px;font-size:13px}.manual-month-footer{margin:12px 0 6px;padding-top:10px;border-top:1px solid var(--line)}.manual-month-footer .manual-month-save-actions{margin:0!important;justify-content:flex-start;align-items:center;gap:8px}.manual-month-footer .booking-update-summary{display:contents}.manual-month-footer .manual-month-secondary-actions{margin:8px 0 0;gap:8px;align-items:center}.manual-month-footer>p{margin:6px 0;font-size:12px}
.restart-roster-control{display:inline-block!important;margin:0!important;padding:0!important;border:0!important}.restart-roster-control>summary.report-info-trigger,.restart-roster-control>summary{display:inline-flex;align-items:center;min-height:34px;padding:6px 10px!important;border:1px solid #cb7b27!important;border-radius:5px;background:#fff0db!important;color:#814400!important;font-size:13px!important;font-weight:650;list-style:none}.restart-roster-control>summary::before,.restart-roster-control>summary::marker{content:none!important}.restart-roster-control>summary::-webkit-details-marker{display:none}.restart-roster-control>summary:hover{background:#ffe2b6!important}.restart-roster-control>summary:focus-visible{outline:2px solid #9c520c;outline-offset:2px}
.manual-roster-flow{padding:7px 10px;margin:8px 0}.manual-roster-flow ol{font-size:12px;gap:5px 12px;margin-bottom:5px}.manual-roster-flow li span{width:18px;height:18px}.manual-roster-flow p{font-size:12px;margin:3px 0}
@media(max-width:760px){.manual-distribution-steps>.actions{flex-wrap:wrap}.manual-month-footer .manual-month-save-actions{flex-wrap:wrap}}

.manual-month-top-warnings{display:flex;justify-content:flex-start;margin:0 0 8px}.manual-month-top-warnings .manual-month-warning-button>summary.report-info-trigger{min-height:34px;padding:6px 10px;font-size:13px}

.manual-month-footer.manual-month-footer-follow{position:fixed;z-index:58;margin:0;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 -3px 16px #0002;max-height:35dvh;overflow-y:auto;overscroll-behavior:contain}
.manual-month-planner:has(.manual-month-footer-follow) .manual-month-bottom-tools{bottom:var(--roster-actions-offset,150px)}
@media(max-width:760px){.manual-month-footer.manual-month-footer-follow{z-index:62;padding:7px 9px;max-height:38dvh}.manual-month-footer-follow button,.manual-month-footer-follow .restart-roster-control>summary{min-height:40px}.manual-month-footer-follow>p{font-size:11px;line-height:1.3}}

/* Hjem: a reversible product overview; other workspaces retain their styling. */
.home-nav-link{display:flex;align-items:center;gap:9px;padding:10px 13px!important;border:1px solid #dbe5de;font-weight:700!important;font-size:14px!important;color:#244f3f!important;margin-bottom:6px}.home-nav-link>span{font-size:22px;line-height:1}.home-nav-link.is-current{background:#e8f0e9;border-color:#b7cbbc}
.workspace-home-route>.view,.workspace-home-route main>.view{padding-top:28px}.workspace-home{--home-green:var(--brand);--home-line:#e0e7e1;--home-muted:#66746c;max-width:1190px;margin:0 auto;color:#233b30}.home-brand-row{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:8px 0 26px;border-bottom:1px solid var(--home-line)}.home-product-logo{display:block;width:min(680px,78%);height:auto}.home-previous-link{display:inline-flex;gap:8px;align-items:center;font-size:13px;white-space:nowrap;color:var(--home-muted);text-decoration:none;padding:8px;border-radius:6px}.home-previous-link:hover{text-decoration:underline;background:#edf2ee}.home-welcome{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:29px 0 26px}.home-company{margin:0 0 7px;font-size:13px;font-weight:650;color:var(--home-muted)}.home-welcome h1{font-family:var(--font);font-size:30px;line-height:1.2;font-weight:650;letter-spacing:-.8px;margin:0 0 8px}.home-welcome p:last-child{font-size:14px;color:var(--home-muted);margin:0}.home-date{text-align:right;display:grid;gap:5px;flex-shrink:0;font-size:14px;color:#4e6256}.home-date>span{font-size:12px;color:#7b877f}.home-date time::first-letter{text-transform:uppercase}
.home-work-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.home-work-card{display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--home-line);border-radius:16px;padding:25px 26px 22px;box-shadow:0 3px 10px var(--brand)04}.home-roster-card{background:#f1f6f0;border-color:#cfddce}.home-card-heading{display:flex;align-items:center;gap:13px;margin-bottom:22px}.home-card-icon{width:43px;height:43px;display:grid;place-items:center;flex-shrink:0;background:#edf3ec;border:1px solid #dde8dc;border-radius:12px;color:#40664d}.home-card-icon svg{width:24px;height:24px}.home-roster-card .home-card-icon{background:#dfeadd;border-color:#d1dfce}.home-card-heading h2{font-family:var(--font);font-size:21px;font-weight:650;line-height:1.3;letter-spacing:-.4px;margin:0 0 4px}.home-card-heading p{font-size:13px;color:var(--home-muted);line-height:1.5;margin:0}
.home-roster-links{display:grid;gap:8px;margin:0 0 20px}.home-roster-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;background:#fff;border:1px solid #dfe8dc;border-radius:9px;text-decoration:none;color:var(--home-green)}.home-roster-row strong{display:block;font-size:14px;font-weight:650}.home-roster-row small{display:block;font-size:13px;color:var(--home-muted);margin-top:2px}.home-roster-row>span:last-child{font-size:19px}.home-roster-row:hover{border-color:#92af98;background:#fbfdf9}.home-empty{font-size:13px;padding:7px 2px;margin:0;color:var(--home-muted)}.home-queue-row{display:flex;align-items:center;gap:7px;color:#45604e;text-decoration:none;font-size:13px;padding:4px 2px}.home-queue-row>span:last-child{margin-left:auto}.home-queue-dot{width:7px;height:7px;background:#7e9b71;border-radius:50%}.home-queue-empty{font-size:13px;color:#788278;margin:3px 0 0}
.home-metric{display:flex;align-items:baseline;gap:10px;margin:0 0 12px}.home-metric>strong{font-size:37px;line-height:1.2;letter-spacing:-1.3px;font-weight:650;color:#284e3e}.home-metric>span{font-size:14px;color:var(--home-muted)}.home-time-metrics{display:flex;align-items:start;gap:28px}.home-time-metrics .home-metric{display:grid;gap:5px}.home-metric-secondary{padding-left:25px;border-left:1px solid var(--home-line)}.home-metric-secondary>strong{color:#758574}.home-card-statuses{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:25px}.home-status{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;font-size:12px;line-height:1.3;color:#55705c;background:#edf4ed;border-radius:6px}.home-status-attention{background:#fcf0dc;color:#885f26}.home-report-preview{padding:0 0 5px;margin-bottom:20px}.home-report-preview>span{display:block;font-size:13px;color:var(--home-muted);margin-bottom:8px}.home-report-preview>strong{font-size:23px;line-height:1.35;font-weight:600;letter-spacing:-.4px}.home-report-preview>p{font-size:13px;color:var(--home-muted);margin:8px 0 0;max-width:350px}
.home-card-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 17px;margin-top:auto;padding-top:4px}.home-button{display:inline-flex;align-items:center;justify-content:center;gap:15px;min-height:40px;padding:9px 13px;border:1px solid #ccdbcd;border-radius:8px;color:#315641;background:#fff;text-decoration:none;font-weight:650;font-size:13px;line-height:1.4}.home-button-primary{background:var(--home-green);border-color:var(--home-green);color:#fff}.home-button:hover{background:#e9f1e8;border-color:#a6bda9}.home-button-primary:hover{background:#153d2e;border-color:#153d2e}.home-text-link{font-size:13px;color:#53725b;text-decoration:none;padding:7px 0}.home-text-link:hover{text-decoration:underline}.home-page-footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:23px 2px 10px;font-size:13px;color:#78867b}.home-page-footer a{color:#607865;text-decoration:none}.home-previous-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;border:1px solid #d4dfd3;background:#f0f5ee;padding:15px 18px;margin-bottom:22px;border-radius:12px}.home-previous-controls p{margin:4px 0 0;font-size:13px;color:#5d6d60}.home-previous-controls .actions{margin:0;gap:7px}.home-previous-controls button{font-size:13px;min-height:36px;padding:6px 10px}
@media(max-width:1000px){.home-work-card{padding:20px}.home-brand-row{gap:12px}.home-welcome{padding-block:23px}.home-card-actions{gap:8px 14px}.home-date{font-size:13px}}
@media(max-width:760px){.workspace-home-route main>.view{padding:17px 14px 20px}.home-brand-row{align-items:start;padding:8px 0 19px;flex-wrap:wrap;gap:13px}.home-product-logo{width:100%;max-width:540px}.home-previous-link{font-size:12px;padding:3px 0}.home-welcome{align-items:start;gap:12px;padding:21px 0}.home-welcome h1{font-size:25px}.home-welcome p:last-child{font-size:13px}.home-company{font-size:12px}.home-date{font-size:12px;max-width:115px;padding-top:1px}.home-work-grid{grid-template-columns:1fr;gap:13px}.home-work-card{padding:20px;border-radius:13px}.home-card-heading{margin-bottom:18px}.home-card-heading h2{font-size:20px}.home-card-actions{gap:10px 17px}.home-button{min-height:44px}.home-text-link{min-height:40px;display:inline-flex;align-items:center}.home-page-footer{font-size:12px;padding:20px 1px 5px;gap:9px}.home-previous-controls{padding:14px}.home-previous-controls button{min-height:44px}.home-nav-link{min-height:44px}}
@media(max-width:380px){.home-welcome{flex-wrap:wrap}.home-date{max-width:none;display:flex;gap:10px;text-align:left}.home-card-actions{align-items:stretch}.home-card-actions .home-button{width:100%}}

/* Whole-month overview on both desktop and mobile, with explicit enlargement. */
.workshop-mobile-shell .workshop-calendar-view-controls:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:7px;position:sticky;top:6px;z-index:8;width:max-content;max-width:100%;margin:8px 0;padding:6px 8px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 2px 6px #0001;scroll-margin-top:8px}
.workshop-calendar-view-controls button{min-height:32px;padding:5px 10px;font-size:13px;line-height:1.2}.workshop-calendar-view-controls button[aria-pressed=true]{background:#e6eee6;border-color:#9db7a3;color:#28533d}.workshop-calendar-view-controls output{min-width:44px;text-align:center;font-size:13px;font-weight:650;font-variant-numeric:tabular-nums}
.workshop-mobile-shell .workshop-calendar-overview{position:relative;max-height:none!important;overflow:hidden!important;cursor:zoom-in}.workshop-calendar-overview table{pointer-events:none}.workshop-calendar-overview .manual-month-agreement-hours{display:none}.workshop-calendar-overview th.manual-month-name{font-size:12px;line-height:1.05}.workshop-calendar-overview .manual-month-name-hours{font-size:12px;line-height:1.05}.workshop-mobile-shell .workshop-calendar-enlarge:not([hidden]){display:block;position:absolute;inset:0;width:100%;height:100%;min-height:0;padding:0;margin:0;background:transparent;border:0;border-radius:0;cursor:zoom-in}.workshop-calendar-enlarge:focus-visible{outline:3px solid var(--wine);outline-offset:-3px}
@media(max-width:760px){.workshop-calendar-view-controls button{min-height:42px;padding:7px 9px}.workshop-mobile-shell .workshop-calendar-view-controls:not([hidden]){gap:5px;padding:5px}.workshop-calendar-view-controls output{min-width:38px}}

/* One predictable row for period and roster size. */
.manual-month-period.workshop-calendar-unified-controls{position:sticky;top:6px;z-index:8;display:flex;align-items:center;flex-wrap:wrap;gap:7px 13px;margin:8px 0;padding:7px 9px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 2px 6px #0001;scroll-margin-top:8px}
.workshop-calendar-unified-controls>label{display:flex;align-items:center;gap:7px;margin:0;font-size:13px;white-space:nowrap}.workshop-calendar-unified-controls>label select{width:auto;min-width:105px;min-height:32px;padding:5px 8px;font-size:13px}
.workshop-mobile-shell .workshop-calendar-unified-controls .workshop-calendar-view-controls:not([hidden]){position:static;margin:0;padding:0;border:0;box-shadow:none;max-width:100%;background:transparent;gap:7px}
.workshop-calendar-unified-controls>.small.muted{flex-basis:100%;margin:0;font-size:12px;line-height:1.35}
@media(max-width:760px){.manual-month-period.workshop-calendar-unified-controls{gap:6px 10px;padding:6px 8px}.workshop-calendar-unified-controls>label select{min-height:40px}.workshop-mobile-shell .workshop-calendar-unified-controls .workshop-calendar-view-controls:not([hidden]){gap:5px}}

/* Horizontal access stays visible on PC as well as mobile. */
.workshop-mobile-shell .workshop-calendar-scrollbar:not([hidden]){display:flex;align-items:center;position:fixed;z-index:61;height:44px;padding:0 10px;border:1px solid var(--line);border-radius:9px 9px 0 0;background:#fff;box-shadow:0 -2px 8px #0001}
.workshop-calendar-scrollbar input[type=range]{appearance:none;-webkit-appearance:none;display:block;width:100%;min-width:0;min-height:44px;margin:0;padding:0;border:0;background:transparent;cursor:ew-resize}.workshop-calendar-scrollbar input::-webkit-slider-runnable-track{height:9px;background:#e8e5e7;border-radius:8px}.workshop-calendar-scrollbar input::-webkit-slider-thumb{-webkit-appearance:none;width:64px;height:15px;margin-top:-3px;border-radius:8px;background:#a29ba0;border:1px solid #82777e}.workshop-calendar-scrollbar input::-moz-range-track{height:9px;background:#e8e5e7;border-radius:8px}.workshop-calendar-scrollbar input::-moz-range-thumb{width:64px;height:15px;border-radius:8px;background:#a29ba0;border:1px solid #82777e}.workshop-calendar-scrollbar input:focus-visible{outline:3px solid var(--wine);outline-offset:-3px}
.manual-month-planner .manual-month-bottom-tools,.manual-month-planner:has(.manual-month-footer-follow) .manual-month-bottom-tools,.kitchen-month-planner .manual-month-bottom-tools{bottom:max(20px,var(--workshop-scrollbar-offset,0px),var(--roster-actions-offset,0px))}

.manual-month-footer .roster-permanent-delete,.roster-permanent-delete{margin-left:auto;border-radius:999px!important;background:#b32638!important;border:1px solid #a31c30!important;color:#fff!important;font-size:13px;font-weight:700;padding:7px 16px!important;min-height:36px;white-space:nowrap}.roster-permanent-delete:hover{background:#922034!important}.roster-permanent-delete:focus-visible{outline:3px solid #e6a1aa;outline-offset:3px}.kitchen-delete-actions{justify-content:flex-end}
.manual-distribution-steps .manual-month-priority{flex:0 0 auto;grid-template-columns:auto auto;white-space:nowrap}.manual-distribution-steps .manual-month-priority select{width:86px!important;min-width:86px!important;max-width:86px!important;flex:0 0 86px;border-radius:3px;min-height:32px;padding:4px 7px;font-size:13px}
@media(max-width:760px){.manual-distribution-steps .manual-month-priority select{min-height:40px}.manual-month-footer .roster-permanent-delete{min-height:40px}}

.workshop-hub{max-width:1000px}.workshop-hub-intro{font-size:20px;font-weight:650;color:#2d4e3b;margin-bottom:15px}.workshop-hub-status{display:flex;flex-wrap:wrap;gap:10px 22px;margin-bottom:22px;padding-bottom:18px;border-bottom:1px solid var(--line);font-size:14px;color:#6d756e}.workshop-hub-status a{color:#32583e;text-decoration:none}.workshop-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.workshop-choice-card{display:flex;align-items:center;gap:15px;min-height:118px;padding:20px;border:1px solid #d8e2d7;border-radius:12px;background:#f8fbf6;color:#2b5038;text-decoration:none}.workshop-choice-card:hover{background:#eaf2e7;border-color:#acc4a9}.workshop-choice-card strong{display:block;font-size:18px;margin-bottom:5px}.workshop-choice-card div>span{display:block;font-size:13px;line-height:1.5;color:#69756b}.workshop-choice-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:10px;background:#e7efe4;font-size:25px}.workshop-choice-card>span:last-child{margin-left:auto;font-size:21px}.workshop-back-link{display:inline-block;margin:0 0 18px;font-size:14px}.workshop-saved-rosters{max-width:1000px}.workshop-saved-rosters th,.workshop-saved-rosters td{padding:10px 12px}.workshop-saved-rosters a.button{font-size:13px;min-height:34px;padding:6px 12px}
@media(max-width:650px){.workshop-choice-grid{grid-template-columns:1fr;gap:10px}.workshop-choice-card{min-height:92px;padding:16px}.workshop-choice-card strong{font-size:17px}.workshop-hub-status{gap:9px;margin-bottom:17px}.workshop-saved-rosters a.button{min-height:42px}}

/* Compact department overview; only column headers stay sticky. */
.season-overview .season-overview-intro{margin:8px 0 12px;font-size:14px;color:var(--muted)}
.season-overview .season-overview-table{font-size:14px;min-width:660px}
.season-overview .season-overview-table thead th{padding:10px 12px;white-space:nowrap}
.season-overview .season-overview-table tbody th,.season-overview .season-overview-table tbody td{padding:8px 12px;vertical-align:middle;line-height:1.35}
.season-overview .season-overview-table tbody th{position:static;text-align:left;background:transparent;font-weight:650;white-space:nowrap}
.season-overview .season-overview-table .season-overview-number{font-variant-numeric:tabular-nums}
.season-overview .season-overview-table td:last-child{text-align:right;width:1%}
.season-overview .season-overview-table button{font-size:14px;min-height:34px;padding:5px 11px}
.season-overview .season-overview-note{margin:10px 0 0;font-size:13px}
@media(max-width:760px){.season-overview .season-overview-table button{min-height:44px}}

/* Department season workspace: visible steps, details in the shared dialogs. */
.season-workspace{padding:18px 20px}.season-workspace h2{font-size:21px;margin:0 0 18px}.season-workspace h3{font-family:inherit;font-size:14px;font-weight:650;margin:0 0 9px}.season-workspace #seasonSettings>.row{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr)) 145px 155px;gap:12px;max-width:900px}.season-workspace label{font-size:14px}.season-workspace input,.season-workspace select{width:100%;min-width:0;padding:7px 9px;min-height:38px}.season-setup-choices{margin:18px 0;padding:15px 0;border-block:1px solid var(--line)}.season-setup-choices p{font-size:14px;margin:0 0 9px;color:var(--muted)}.season-popup-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.season-secondary-actions{margin-top:12px}.season-department-workspace>[data-report-popup]{display:inline-block;margin:0 8px 12px 0}.season-department-workspace [data-report-popup]>summary.report-info-trigger{display:inline-flex;align-items:center;list-style:none;border:1px solid var(--line);border-radius:7px;padding:7px 12px;font:600 13px/1.4 var(--font);color:var(--wine);background:white;cursor:pointer}.season-department-workspace [data-report-popup]>summary.report-info-trigger::marker{content:''}.season-department-workspace [data-report-popup]>summary.report-info-trigger::-webkit-details-marker{display:none}.season-department-workspace [data-report-popup]>summary.report-info-trigger::before{content:none}.season-main-actions button{font-size:14px;padding:8px 13px;min-height:38px}.season-results h2{font-size:21px}.season-results table{font-size:14px}.season-results th,.season-results td{padding:8px 10px}
@media(max-width:900px){.season-workspace #seasonSettings>.row{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.season-workspace{padding:15px}.season-workspace #seasonSettings>.row{gap:10px}.season-popup-actions{align-items:stretch}.season-popup-actions summary.report-info-trigger,.season-main-actions button{min-height:44px}}

/* Home navigation additions; sidebar remains available. */
.topbar-personal-links,.topbar-home-links{display:flex;gap:10px;align-items:center}.topbar-personal-links{margin-left:auto}.topbar-home-link{display:inline-flex;align-items:center;gap:7px;min-height:40px;padding:7px 11px;border:1px solid #cfddd1;border-radius:8px;background:#edf4ee;color:var(--brand);font-weight:650;text-decoration:none;white-space:nowrap}.topbar-home-link svg{width:21px;height:21px}.topbar-home-link:hover,.topbar-home-link[aria-current=page]{background:#dceade;border-color:#a4bfa9}.topbar-personal-links .clock-shortcut{margin-left:4px}
.home-setup-dock{position:fixed;bottom:0;left:235px;right:0;z-index:55;min-height:54px;background:var(--brand);color:white;border-top:1px solid #507360;box-shadow:0 -3px 14px var(--brand)18;padding:7px 24px calc(7px + env(safe-area-inset-bottom))}.home-setup-dock>a{display:flex;align-items:center;justify-content:center;gap:12px;min-height:40px;width:fit-content;max-width:100%;margin:auto;padding:5px 12px;border-radius:7px;text-decoration:none;color:white;font-size:14px;font-weight:600}.home-setup-dock svg{width:23px;height:23px;flex-shrink:0}.home-setup-dock a:hover{background:#ffffff15}.home-setup-dock a:focus-visible{outline:3px solid #ffe58c;outline-offset:1px}.home-setup-dock-space{height:80px}.home-setup-grid{margin-top:0}
@media(max-width:1000px){.topbar{flex-wrap:wrap;gap:10px 14px}.topbar-personal-links{gap:7px}.topbar-home-links{gap:6px}.topbar-home-link{padding:6px 8px}}
@media(max-width:760px){.topbar-personal-links{margin-left:auto;flex-wrap:wrap}.topbar-home-link{font-size:13px;min-height:44px}.topbar-personal-links .clock-shortcut{font-size:13px}.home-setup-dock{left:0;padding-inline:10px}.home-setup-dock>a{font-size:14px;min-height:44px}.home-setup-dock-space{height:82px}}

/* Light setup area belongs to the page and scrolls with its content. */
.home-setup-dock{position:static;inset:auto;width:auto;min-height:0;margin-top:22px;padding:14px 20px;background:#e6f0e7;color:var(--brand);border:1px solid #c7d9ca;border-radius:12px;box-shadow:none}.home-setup-dock>a{color:var(--brand)}.home-setup-dock a:hover{background:#d5e6d8}.home-setup-dock a:focus-visible{outline-color:#336954}

/* Lederens Min side: samme produktmerke, egne arbeidsområder og kompakte detaljer. */
.personal-portal .personal-brand{display:flex;align-items:center;justify-content:flex-start;gap:10px}
.personal-portal .personal-brand img{width:44px;height:44px;object-fit:contain}
.personal-portal .personal-brand span{display:grid;gap:2px}
.personal-portal .personal-brand strong{font-size:15px;color:#163428}
.personal-portal .personal-brand small{font-size:12px;color:var(--muted)}
.personal-leader .preview-card{text-align:left;text-decoration:none;color:inherit}
.personal-leader .preview-grid{gap:8px}
.personal-leader .preview-card{padding:12px;min-height:76px}
.personal-cost-section{margin:16px 0}
#personal-leader{width:min(1100px,calc(100vw - 24px));max-height:90vh;overflow:auto}
#personal-leader .hr-navigation{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}
#personal-leader .hr-navigation button{padding:6px 10px;font-size:13px}
#personal-leader .panel{padding:12px;margin:10px 0}
#personal-leader .row{gap:8px;flex-wrap:wrap}
#personal-leader .row label{min-width:130px;flex:1 1 150px}
#personal-leader input:not([type=checkbox]),#personal-leader select{width:100%;min-width:0;max-width:100%}
#personal-leader .table-wrap{max-height:45vh}
#personal-leader thead th{position:sticky;top:0;z-index:2;background:#edf2ed}
#personal-leader tbody th{position:static}
#personal-leader td,#personal-leader th{padding:6px 8px;font-size:13px}
#personal-leader .leader-person>summary{cursor:pointer;padding:5px 0}
#personal-leader .actions{gap:6px;margin:8px 0}
#personal-leader [role=alert]{color:#922525}
@media(max-width:600px){#personal-leader{padding:12px}#personal-leader .section-title{flex-wrap:wrap}#personal-leader .row label{flex-basis:100%}.personal-leader .preview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.planner-letter-T>summary{background:#dff0f7;border-color:#8db3c6}

.manual-month-footer .roster-save-error{display:block;flex-basis:100%;width:100%;padding:12px 16px;margin:8px 0 0;border:2px solid #b32638;border-left-width:6px;border-radius:7px;background:#fff0f1;color:#8d1829;font-size:15px;font-weight:600;line-height:1.45;white-space:normal}

/* Editable overview calendars keep their regular mouse and drag interactions. */
[data-manual-month-editable="true"] .workshop-calendar-overview table{pointer-events:auto}
.manual-shift-conflicts{margin:8px 0;padding:10px;border:1px solid #d6aa60;border-radius:8px;background:#fff8e7;color:#604118;font-size:12px;white-space:normal}.manual-shift-conflicts ul{margin:6px 0;padding-left:18px}.manual-shift-conflicts p{margin:6px 0}

/* Staff development: one assessed area, clear progression and compact records. */
.development-workspace{max-width:1120px;margin:18px auto;color:#243c31}.development-header{display:flex;justify-content:space-between;gap:24px;align-items:start;margin-bottom:22px}.development-eyebrow{text-transform:uppercase;letter-spacing:.09em;font-size:11px;font-weight:750;color:#667c6e}.development-header h2{font-size:27px;margin:7px 0}.development-header p,.development-step-title p{margin:5px 0;color:#68746b;font-size:13px}.development-area-select{min-width:230px}.development-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.development-summary>div{display:grid;gap:6px;padding:16px;background:#eef3ed;border-radius:12px}.development-summary span{font-size:11px;color:#68746b}.development-summary strong{font-size:15px}.development-card{padding:22px;background:#fff;border:1px solid #dae1d9;border-radius:14px;margin-bottom:15px}.development-step-title{display:flex;align-items:start;gap:12px;margin-bottom:16px}.development-step-title>b{display:grid;place-items:center;min-width:28px;height:28px;border-radius:50%;background:#e8efdf;color:#45613b;font-size:13px}.development-step-title h3{font-size:17px;margin:2px 0}.development-stages{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:18px}.development-stage{position:relative!important;display:flex!important;flex-direction:column;justify-content:start;align-items:start;gap:10px;padding:13px!important;border:1px solid #d9dfd7;border-radius:10px;cursor:pointer;font-size:12px!important;line-height:1.4;background:#fafbf8}.development-stage.selected{border:2px solid #355b42;background:#eff5e9;padding:12px!important}.development-stage input{width:auto;min-height:0;margin:0;accent-color:#355b42}.development-step-number{position:absolute;top:10px;right:12px;color:#829079;font-size:11px}.development-stage strong{font-size:12px}.development-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.development-check{display:flex!important;flex-direction:row!important;align-items:center;gap:10px;margin:0;padding:12px;border:1px solid #e2e6de;border-radius:8px;font-size:13px;cursor:pointer}.development-check:has(input:checked){background:#eff5e9;border-color:#99b487}.development-check input{width:17px;min-height:17px;margin:0;flex:none;accent-color:#355b42}.development-age{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin-bottom:14px}.development-age label{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;padding:12px;border:1px solid #d9dfd7;border-radius:9px;font-size:13px;cursor:pointer}.development-age label:has(input:checked){background:#eff5e9;border-color:#72966a}.development-age input{width:auto;min-height:0;margin:0}.development-note{display:block;font-size:11px;color:#6a756c;line-height:1.6;margin:12px 0 0}.development-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.development-mentor{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start;margin-top:16px}.development-save{position:sticky;bottom:12px;z-index:4;display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:14px 18px;background:#f3f6ee;border:1px solid #c9d6c0;border-radius:12px;margin:15px 0 22px;box-shadow:0 4px 18px #243c3110}.development-save>div{flex:1;min-width:180px}.development-save strong,.development-save small{display:block}.development-save small{font-size:11px;color:#63725e;margin-top:4px}.development-save button{min-height:38px;font-size:12px}.development-save [role]{flex-basis:100%;margin:0;font-size:12px}.development-save [role]:empty{display:none}.development-training-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.development-training h3{margin:5px 0;font-size:24px}.development-badge{padding:6px 10px;border-radius:20px;font-size:11px;font-weight:700}.development-badge.green{background:#e4efdf;color:#3b633a}.development-badge.amber{background:#fff0d1;color:#876127}.development-training progress{width:100%;height:9px;margin:12px 0;accent-color:#70975a}.development-training>p{font-size:13px;line-height:1.6;color:#667366}.development-days{list-style:none;margin:14px 0;padding:0}.development-days li{display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:space-between;padding:10px 0;border-bottom:1px solid #e7ebe3;font-size:12px}.development-days small{color:#778173}.development-empty{padding:18px;background:#f8f9f6;border-radius:8px;text-align:center}
@media(max-width:760px){.development-header{flex-direction:column;gap:12px}.development-header h2{font-size:23px}.development-area-select{width:100%;min-width:0}.development-summary{grid-template-columns:1fr;gap:7px}.development-summary>div{padding:12px;grid-template-columns:1fr 1fr}.development-stages{grid-template-columns:1fr 1fr}.development-card{padding:16px}.development-checks,.development-fields,.development-mentor{grid-template-columns:1fr}.development-age{grid-template-columns:1fr}.development-save{bottom:4px;padding:12px}.development-save button{min-height:42px}}
.development-panel-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:18px;align-items:start}.development-panel-grid>form{min-width:0}.development-panel-grid>.development-training{position:sticky;top:16px;padding:20px}.development-training-head{flex-wrap:wrap}.development-training progress{appearance:none;border:0;border-radius:8px;background:#e4eadc;overflow:hidden}.development-training progress::-webkit-progress-bar{background:#e4eadc;border-radius:8px}.development-training progress::-webkit-progress-value{background:#7a9a62;border-radius:8px}.development-training progress::-moz-progress-bar{background:#7a9a62;border-radius:8px}.development-panel-grid>.development-training .development-days li{display:grid;gap:3px}.development-panel-grid>.development-training .report-info-trigger{white-space:normal;text-align:left}
@media(max-width:1100px){.development-panel-grid{display:flex;flex-direction:column}.development-panel-grid>form{width:100%;order:2}.development-panel-grid>.development-training{position:static;width:100%;order:1;box-sizing:border-box}.development-panel-grid>.development-training .development-days li{display:flex}}

.development-workspace,.development-workspace *{box-sizing:border-box}.development-header>div{min-width:0}.development-header>div:first-child{flex:1}.development-workspace input,.development-workspace select{max-width:100%}.development-stages,.development-summary,.development-age{min-width:0}
@media(max-width:1100px){.development-header{flex-direction:column;gap:12px}.development-area-select{width:100%;min-width:0}}

/* Compact HR card: primary choices visible; detailed assessment expands in place. */
.development-workspace{margin:10px auto}.development-header{gap:12px;margin-bottom:12px}.development-header h2{font-size:21px;margin:0 0 4px}.development-header p{font-size:12px;margin:0}.development-header .development-area-select{font-size:12px}.development-summary{gap:7px;margin-bottom:10px}.development-summary>div{padding:9px;gap:3px;border-radius:8px}.development-summary strong{font-size:13px}.development-summary span{font-size:10px}.development-card{padding:12px;margin-bottom:9px;border-radius:10px}.development-step-title{gap:8px;margin-bottom:8px}.development-step-title h3{font-size:14px;margin:0}.development-step-title p{font-size:11px;margin:3px 0}.development-stages{gap:5px;margin-top:9px}.development-stage{padding:8px!important;gap:5px;font-size:11px!important}.development-stage.selected{padding:7px!important}.development-stage strong{font-size:11px}.development-step-number{top:6px;right:7px;font-size:10px}.development-checks{gap:6px}.development-check{padding:8px;font-size:12px}.development-age{gap:6px;margin-bottom:8px}.development-age label{padding:8px;font-size:12px}.development-note{font-size:10px;line-height:1.4;margin-top:7px}.development-fields,.development-mentor{gap:9px}.development-mentor{margin-top:9px}.development-save{position:static;gap:7px;padding:9px 11px;margin:9px 0;border-radius:8px}.development-save strong{font-size:12px}.development-save small{font-size:10px}.development-save button{min-height:32px;padding:6px 10px}.development-panel-grid{gap:12px;grid-template-columns:minmax(0,1fr) 250px}.development-panel-grid>.development-training{padding:12px}.development-training h3{font-size:19px;margin:3px 0}.development-training>p{font-size:11px;margin:6px 0}.development-training progress{height:6px;margin:7px 0}.development-badge{font-size:10px;padding:4px 7px}.development-fold>summary{cursor:pointer;font-size:13px;font-weight:650}.development-fold>summary span{float:right;font-size:11px;font-weight:400;color:#63725e}.development-fold[open]>summary{margin-bottom:10px}.development-day-list{font-size:11px;margin:8px 0}.development-days{margin:6px 0}.development-day-list summary{cursor:pointer}.development-panel-grid>.development-training .report-info-trigger{font-size:12px}.development-workspace input:not([type=checkbox]):not([type=radio]),.development-workspace select{min-height:32px;padding:6px 8px;font-size:12px}.development-workspace label{font-size:12px}
@media(max-width:1100px){.development-panel-grid{display:flex}.development-panel-grid>.development-training{order:2}.development-panel-grid>form{order:1}.development-header{flex-direction:row;align-items:center}.development-header .development-area-select{width:auto;min-width:160px}}
@media(max-width:600px){.development-header{flex-direction:column;align-items:stretch}.development-header .development-area-select{width:100%}.development-summary>div{padding:7px}.development-stages{grid-template-columns:repeat(2,minmax(0,1fr))}.development-save>div{min-width:130px}.development-summary{grid-template-columns:1fr}.development-age{grid-template-columns:1fr 1fr}.development-age label{padding:9px 7px}.development-fold>summary span{float:none;display:block;margin-top:3px}}

/* Main distribution flow: two planning actions and one contextual save. */
.compact-distribution{padding:12px;border:1px solid #dce4dc;border-radius:10px;background:#f7f9f4;margin:12px 0}.compact-distribution-status{font-size:12px;color:#596c5c;margin-bottom:9px}.compact-distribution-primary{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.compact-distribution-primary>button{font-size:12px;min-height:36px;padding:8px 12px}.compact-distribution-primary>.primary{margin-left:auto}.compact-distribution .report-info-trigger{font-size:11px}.roster-attach-target{font-size:11px;min-width:200px;max-width:300px}.roster-attach-target select{min-height:34px;font-size:12px;padding:6px}.roster-save-preview{display:block;flex-basis:100%;font-size:11px;color:#496143;line-height:1.5}.distribution-options section{padding:12px 0;border-bottom:1px solid #e1e7dd}.distribution-options section:last-child{border:0}.distribution-options button{font-size:12px}.distribution-options h3{font-size:16px;margin-top:0}.distribution-options p{font-size:12px;color:#65705f}.manual-month-secondary-actions{gap:8px}@media(max-width:650px){.compact-distribution-primary{align-items:stretch}.compact-distribution-primary>button,.compact-distribution-primary>.primary{width:100%;margin-left:0}.roster-attach-target{max-width:none;width:100%}}

.roster-lifecycle-controls .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere;line-height:1.5}

/* Workshop shortcuts share the white footer row with More options. */
.workshop-footer-tool-row{display:flex;align-items:center;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;width:100%}.workshop-footer-tool-row>details{margin:0}.workshop-footer-tool-row .manual-month-bottom-tools{position:static!important;inset:auto!important;display:flex;align-items:center;flex-wrap:wrap;gap:8px;width:auto;max-width:100%;margin:0 0 0 auto;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;z-index:auto}.workshop-footer-tool-row .manual-month-bottom-tools>.local-activity-tools{position:static;display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 4px 0 0;padding:0 12px 0 0;box-shadow:none;border-radius:0;background:transparent}.manual-month-secondary-actions:has(.workshop-footer-tool-row){width:100%}@media(max-width:650px){.workshop-footer-tool-row{gap:8px}.workshop-footer-tool-row .manual-month-bottom-tools{gap:6px}.workshop-footer-tool-row .manual-month-bottom-tools>.local-activity-tools{padding-right:8px}}

/* Compact employee capacity: one row with three values and a save action. */
.staff-capacity-panel{max-width:1120px;margin:12px auto;padding:12px}.capacity-inline-layout{padding:0;margin:0}.capacity-inline-layout>h3{margin:0 0 8px;font-size:16px}.capacity-inline-fields{display:grid;grid-template-columns:repeat(3,minmax(110px,180px)) max-content;gap:10px;align-items:end}.capacity-inline-fields label{min-width:0;font-size:12px;margin:0}.capacity-inline-fields input{width:100%;min-width:0;box-sizing:border-box;padding:7px 9px}.capacity-inline-fields button{min-height:36px;margin:0;padding:8px 14px;font-size:13px}.capacity-inline-layout>p{margin:7px 0;font-size:12px}.capacity-more>summary{font-size:13px;padding:6px 0}.capacity-more>.capacity-open-card{padding:10px;margin-top:8px}.capacity-more .capacity-quick-summary{font-size:12px}.development-age-source{font-size:13px;margin:6px 0;padding:9px;background:#eef4ef;border:1px solid #c6d8ca;border-radius:8px}.development-training-complete{border-color:#c6d8ca}.development-training-complete h3{font-size:18px;margin:5px 0}.development-training-complete .development-badge{white-space:normal}.development-training-complete p{font-size:12px}
@media(max-width:680px){.capacity-inline-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.capacity-inline-fields button{width:100%;min-width:0}.staff-capacity-panel{padding:10px}.capacity-inline-fields label{font-size:11px}}

.development-guide-link{display:inline-flex;align-items:center;gap:5px;margin-top:6px;padding:5px 9px;border:1px solid #bacfbd;border-radius:16px;color:#234e37;background:#edf4ed;font-size:12px;text-decoration:none}.development-guide-link:focus-visible{outline:3px solid #477d61;outline-offset:3px}

/* Malarbeid er et underordnet valg; månedsrådet følger den enkelte malen. */
.workshop-template-tools{margin-top:18px;font-size:13px;color:#53725b}
.workshop-template-tools>summary{display:list-item;cursor:pointer;width:fit-content;padding:7px 0;font-weight:500}
.workshop-template-tools>summary:hover{text-decoration:underline}
.workshop-template-tools .actions{gap:12px 22px;margin:8px 0 0}
.workshop-template-tools a{color:#53725b;text-decoration:none;padding:7px 0}
.workshop-template-tools a:hover{text-decoration:underline}
.workshop-template-tools :focus-visible{outline:2px solid #356b49;outline-offset:4px}
.stored-templates>.table-wrap{overflow:visible}
.stored-template-report-row>td{padding:0 12px 20px;background:#fff}
.template-staffing{padding:16px 18px;border:1px solid #dce5da;border-radius:10px;background:#f8fbf6;text-align:left;white-space:normal;font-weight:400}
.template-staffing h3{font-size:15px;margin:0 0 10px;color:#31513c}
.template-staffing p{margin:7px 0;line-height:1.5}
.template-staffing-recommendation{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 18px}
.template-staffing-recommendation strong{font-size:19px;color:#244b32}
.template-staffing-recommendation span{font-size:15px}
.template-staffing-basis,.template-staffing-models{font-size:13px}
.template-staffing-note{font-size:12px;color:#667268}
.template-staffing-models{margin-top:12px}
.template-staffing-models>summary{cursor:pointer;color:#31583d;padding:5px 0}
.template-staffing-models .table-wrap{margin:10px 0;max-width:100%;overflow:auto}
.template-staffing-models table{min-width:700px;font-size:12px;background:#fff}
.template-staffing-models td,.template-staffing-models th{padding:8px 10px}
.template-staffing-dishwashing{font-size:11px;color:#677269;border-top:1px solid #e1e8df;padding-top:8px;margin-top:12px!important}
@media(max-width:650px){.stored-template-report-row>td{padding:0 5px 15px}.template-staffing{padding:12px}.template-staffing-recommendation strong{font-size:17px}.template-staffing-recommendation{display:grid;gap:3px}.workshop-template-tools>summary,.workshop-template-tools a{min-height:44px;align-content:center}.stored-templates>form>.table-wrap>table{min-width:0;table-layout:fixed}.stored-templates>form>.table-wrap>table>thead th:first-child{width:44px}.stored-templates>form>.table-wrap>table>thead th:last-child{width:140px}.stored-templates>form>.table-wrap>table>tbody>tr>th{white-space:normal}.stored-templates>form>.table-wrap>table>tbody>tr>td>.actions{gap:4px}.stored-templates>form>.table-wrap>table>tbody>tr>td>.actions button{padding:6px 9px}}

/* Hele dagskolonner velges bare i servitørutkastet. */
.manual-day-rebuild-tools{padding:12px 14px;margin:12px 0;border:1px solid #d4dfd3;border-radius:9px;background:#f7faf5}
.manual-day-rebuild-tools>.actions{margin:0;gap:10px}
.manual-day-rebuild-tools button[aria-pressed=true]{background:#245840;color:#fff}
.manual-day-rebuild-tools>details{margin-top:10px}
.manual-month-calendar td.manual-day-marked,.manual-month-calendar th.manual-day-marked{background:#d9eddf!important;box-shadow:inset 2px 0 #4b8a60,inset -2px 0 #4b8a60}
.manual-month-calendar th.manual-day-marked button[data-manual-month-date]{background:#245840;color:#fff;outline:2px solid #245840}
.manual-month-calendar [aria-label^="Marker hele"],.manual-month-calendar [aria-label^="Fjern markering av"]{cursor:crosshair;min-height:38px}
form[data-manual-rebuild-form] fieldset{border:1px solid #d6e2d5;border-radius:9px;padding:12px;margin:14px 0}
form[data-manual-rebuild-form] legend{font-weight:650;padding:0 6px}
form[data-manual-rebuild-form] [data-rebuild-preview]{border-top:1px solid #d6e2d5;margin-top:18px;padding-top:14px}
form[data-manual-rebuild-form] .selected-days-staffing-report{margin:15px 0;white-space:normal}
form[data-manual-rebuild-form] .table-wrap{max-width:100%;overflow:auto}
@media(max-width:650px){.manual-day-rebuild-tools{padding:10px}}
/* Samme grunnbemanningskontroller, tilpasset bredden i datopopupen. */
form[data-manual-rebuild-day] .season-template-level{grid-template-columns:56px minmax(0,1fr) 100px}
form[data-manual-rebuild-day] .season-template-interval{grid-template-columns:310px minmax(80px,1fr)}
form[data-manual-rebuild-day] .season-level-actions{min-width:0}
@media(max-width:760px){form[data-manual-rebuild-day] .season-template-level{grid-template-columns:minmax(0,1fr);gap:8px}form[data-manual-rebuild-day] .season-template-interval{grid-template-columns:minmax(0,1fr)}form[data-manual-rebuild-day] .season-template-interval>.row{flex-wrap:wrap}form[data-manual-rebuild-day] .season-level-actions{padding-bottom:8px}form[data-manual-rebuild-day] [data-season-level]{min-width:0}}

/* Alle tidsrom for samme servitørnivå på én samlet linje. */
.season-template-editor.panel .season-template-level{grid-template-columns:56px minmax(0,1fr) 100px;align-items:center;gap:8px}
.season-template-editor [data-season-level]{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;min-width:0}
.season-template-editor.panel .season-template-interval{display:grid;grid-template-columns:minmax(0,1fr);flex:0 1 auto;gap:3px;max-width:100%;min-width:0;margin:0}
.season-template-editor .season-template-interval>.row{display:flex;align-items:center;flex-wrap:nowrap;gap:4px;width:max-content;max-width:100%}
.season-template-editor .season-template-interval label{display:inline-flex;align-items:center;gap:3px;margin:0}
.season-template-editor .season-template-interval input[type=time]{width:82px;max-width:100%;min-height:28px;font-size:12px}
.season-template-editor .season-template-interval select{max-width:105px;min-height:28px;font-size:12px}
.season-interval-caption,.season-template-interval:not(:first-child) .season-interval-active-caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.season-template-editor .season-template-interval+.season-template-interval{border-left:1px solid #cdd8cf;padding-left:6px}
.season-template-editor .season-template-interval .staffing-timeline-range{width:calc(100% - 16px);min-width:0;margin:0 8px!important;height:22px}
.season-template-editor .season-template-interval .staffing-timeline-range svg,.season-template-editor .season-template-interval .staffing-timeline-range input[type=range]{height:22px}
@media(max-width:760px){.season-template-editor.panel .season-template-level{grid-template-columns:48px minmax(0,1fr)}.season-template-editor .season-level-actions{grid-column:2;display:flex;gap:4px}.season-template-editor [data-season-level]{grid-column:2}.season-template-editor .season-template-interval+.season-template-interval{padding-left:0;border-left:0}}
@media(max-width:540px){.season-template-editor.panel .season-template-level{grid-template-columns:minmax(0,1fr)}.season-template-editor [data-season-level],.season-template-editor .season-level-actions{grid-column:1;grid-row:auto}.season-template-editor .season-template-interval>.row{flex-wrap:wrap}}
.season-time-separator{color:#68736b;align-self:center}
.season-template-editor select[name=intervalMode]:has(option[value=time]:checked){width:54px;max-width:54px}
.season-template-editor .season-template-interval .staffing-timeline-range{grid-column:1;grid-row:2}

/* Felles, kompakt verktøyfelt rett over kalenderen. */
.manual-calendar-toolbar{margin:12px 0 8px;padding:12px 14px;border:1px solid #dce4dc;border-radius:10px;background:#f8faf7}
.manual-calendar-primary>[data-workshop-calendar-scale]{min-width:0;max-width:100%}
.manual-calendar-primary{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px 20px}
.manual-calendar-primary .booking-update-compact{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;border:0;background:transparent;padding:0;margin:0}
.manual-calendar-primary .booking-update-compact>.booking-update-summary{display:contents}
.manual-calendar-primary .booking-update-compact>.primary{min-height:38px;padding:8px 14px}
.manual-calendar-primary .workshop-report-link{border:0;background:transparent;box-shadow:none;padding:6px 2px;min-height:32px;font-size:12px;color:#526a5b;text-decoration:underline;text-underline-offset:3px}
.manual-calendar-toolbar .manual-month-period{margin:9px 0 0;padding:0;border:0;background:transparent}
.manual-calendar-toolbar>.banner{margin:8px 0 0;padding:0;border:0;background:transparent;font-size:12px}
.workshop-mobile-shell .manual-calendar-toolbar .workshop-calendar-view-controls:not([hidden]){position:static;margin:0;padding:0;border:0;background:transparent;box-shadow:none;gap:5px}
.manual-calendar-toolbar .workshop-calendar-view-controls button{font-size:12px;min-height:32px;padding:5px 8px}
.workshop-line-toggle{margin:10px 0 0;border:0;padding:0;background:transparent}
.workshop-line-toggle>summary{display:flex;width:auto;align-items:center;gap:14px;cursor:pointer;color:var(--brand);padding:7px 0;font-size:13px;font-weight:600;list-style:none}
.workshop-line-toggle>summary::-webkit-details-marker{display:none}
.workshop-line-toggle>summary:after{content:'';height:1px;background:#d7dfda;flex:1}
.workshop-line-toggle>summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.workshop-advanced-content{padding:8px 0 0}
.workshop-advanced-content .manual-day-rebuild-tools{margin:0 0 6px;padding:0;border:0;background:transparent}
.manual-munu-status:empty{display:none}
.workshop-distribution-row{display:grid;grid-template-columns:auto minmax(220px,1fr) auto;align-items:start;gap:12px 20px}
.workshop-distribution-main>button{min-height:38px;padding:8px 14px;font-weight:650}
.workshop-distribution-main .distribution-more{margin-top:5px}
.workshop-distribution-save{max-width:340px}
.workshop-distribution-save .actions{margin:0}
.workshop-distribution-save .primary{min-height:38px}
.distribution-more .distribution-options{padding:5px 8px 0}
.kitchen-month-planner>.manual-month-toolbar .distribution-more{margin-top:7px}
@media(max-width:900px){.workshop-distribution-row{grid-template-columns:auto minmax(220px,1fr)}.workshop-distribution-save{grid-column:1/-1;max-width:100%}}
@media(max-width:650px){.manual-calendar-toolbar{padding:10px}.manual-calendar-primary{align-items:start;gap:10px}.manual-calendar-primary .booking-update-compact{gap:8px 12px}.workshop-distribution-row{grid-template-columns:minmax(0,1fr);gap:10px}.workshop-distribution-save{grid-column:1}.workshop-distribution-main>button{width:100%}.manual-calendar-toolbar .workshop-calendar-view-controls button{min-height:40px}}
.manual-booking-brief{font-size:12px;color:#49614f;line-height:1.5;margin:8px 0}

.workshop-save-delete{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.workshop-save-delete>button{width:100%;min-height:42px;padding:9px 14px;font-weight:700}
.workshop-save-delete>.workshop-delete-button{background:#b32638;border-color:#a31c30;color:#fff}
.workshop-save-delete>.workshop-delete-button:hover{background:#922034;border-color:#922034}
.workshop-save-delete>.workshop-delete-button:focus-visible{outline:3px solid #e6a1aa;outline-offset:3px}

/* Ledige vakter: hele datofeltet gult, tildelte vakter fortsatt grønt. */
.month-open-calendar tbody td:has(.month-open-shift):not(:has(.workshop-open-shift)):not(.manual-month-red-day):not(.manual-month-selected-day):not(.manual-day-marked){background:#f0f6f2}
.month-open-calendar tbody td:has(.workshop-open-shift){background:#fff8de!important}
.month-open-calendar tbody td .month-open-shift.workshop-open-shift{background:#fff3c4!important}
.month-open-calendar tbody td .month-open-shift.workshop-open-shift:not(.booking-need-shift){border-color:#d8c578}

.workshop-advanced-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.workshop-advanced-action{padding:12px 14px;border:1px solid #dce4dc;border-radius:8px;background:#fff}
.workshop-advanced-action>p{margin:8px 0 0;font-size:12px;line-height:1.5;color:#526356;max-width:62ch}
.workshop-advanced-action .manual-day-rebuild-tools,.workshop-copy-day-action>details{margin:0;padding:0;border:0;background:transparent}
.workshop-advanced-action .manual-day-rebuild-tools>.actions{margin:0;align-items:center}
.workshop-copy-day-action>details>summary,[data-rule-panel="manual-rebuild-days"]>summary{display:inline-flex;align-items:center;justify-content:center;min-width:160px;min-height:38px;margin:0;padding:7px 12px;border:1px solid var(--brand);border-radius:6px;background:#fff;font-size:13px;line-height:1.35;font-weight:600;list-style:none}
.workshop-copy-day-action>details>summary::-webkit-details-marker{display:none}
.workshop-copy-day-action>details>summary:focus-visible,[data-rule-panel="manual-rebuild-days"]>summary:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@media(max-width:650px){.workshop-advanced-actions{grid-template-columns:minmax(0,1fr)}}
.workshop-advanced-action .manual-day-rebuild-tools button[data-mark-manual-days]{display:inline-flex;align-items:center;justify-content:center;min-width:160px;min-height:38px;padding:7px 12px;border:1px solid var(--brand);border-radius:6px;background:#fff;font-size:13px;line-height:1.35;font-weight:600}
.workshop-copy-day-action>details>summary::before{content:none}
.workshop-copy-day-action>details>summary:hover,[data-rule-panel="manual-rebuild-days"]>summary:hover,.workshop-advanced-action .manual-day-rebuild-tools button[data-mark-manual-days]:hover{background:#edf4ef}
.workshop-advanced-action .manual-day-rebuild-tools button[data-mark-manual-days][aria-pressed=true]{background:#e7f0ea;border-color:#2f6b52}

.workshop-daily-active{margin:14px 0;padding:14px;border:1px solid #d5e2cf;border-radius:10px;background:#f9fbf6;scroll-margin-top:16px;scroll-margin-bottom:calc(24px + var(--roster-actions-offset,0px));min-width:0}
.workshop-daily-active[hidden]{display:none!important}
.workshop-daily-active-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.workshop-daily-active-heading h3{margin:0;font-size:16px}
.workshop-daily-active-heading button{flex:none;min-height:34px}
.workshop-daily-active-body.manual-month-employees{margin:0;padding:0;border:0;background:transparent;min-width:0}
.workshop-daily-active-body>.table-wrap{max-height:340px;overflow:auto}
.planner-letter-DA>summary[aria-expanded=true]{background:#d0e3bd;box-shadow:0 0 0 2px #91ac77}
@media(max-width:650px){.workshop-daily-active{padding:10px}.workshop-daily-active-heading{align-items:flex-start}.workshop-daily-active .manual-month-employee-list{grid-template-columns:minmax(0,1fr)}}

.manual-base-shortcut-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 15px;border:1px solid #cb7b27;border-radius:999px;background:#fff0db;color:#814400;font-size:13px;font-weight:650;white-space:nowrap}
.manual-base-shortcut-button:hover{background:#ffe2b6;border-color:#a75d16}
.manual-base-shortcut-button:focus-visible{outline:2px solid #9c520c;outline-offset:3px}
.workshop-distribution-row.with-base-shortcut{grid-template-columns:auto auto minmax(220px,1fr) auto}
.workshop-distribution-before{display:flex;align-items:flex-start}
.manual-base-scope-note{padding:10px 12px;border-left:3px solid #cb7b27;border-radius:6px;background:#fff5e6;font-size:13px;line-height:1.5}
@media(max-width:1100px){.workshop-distribution-row.with-base-shortcut{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}.with-base-shortcut .workshop-distribution-save{grid-column:auto}.with-base-shortcut .manual-base-shortcut-button{width:100%}}
@media(max-width:650px){.workshop-distribution-row.with-base-shortcut{grid-template-columns:minmax(0,1fr)}.manual-base-shortcut-button{white-space:normal;max-width:100%}}

.workshop-advanced-row{--workshop-undo-width:175px;position:relative;min-height:38px;margin-top:10px}
.workshop-advanced-row>.workshop-advanced{margin-top:0}
.workshop-advanced-row>.workshop-advanced>summary{min-height:38px;margin-right:calc(var(--workshop-undo-width) + 14px);box-sizing:border-box}
.workshop-advanced-row>[data-workshop-undo]{position:absolute;top:0;right:0;width:var(--workshop-undo-width);min-height:38px;padding:7px 12px;border:1px solid var(--brand);border-radius:6px;background:#fff;color:var(--brand);font-size:13px;line-height:1.35;font-weight:600}
.workshop-advanced-row>[data-workshop-undo]:not(:disabled):hover{background:#edf4ef}
.workshop-advanced-row>[data-workshop-undo]:disabled{opacity:.45;cursor:default}
.workshop-advanced-row>[data-workshop-undo]:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
@media(max-width:650px){.workshop-advanced-row{--workshop-undo-width:150px;min-height:44px}.workshop-advanced-row>.workshop-advanced>summary{min-height:44px;font-size:12px;gap:8px}.workshop-advanced-row>[data-workshop-undo]{min-height:44px;padding:7px 8px;font-size:12px}}

/* Unsaved booking proposals keep their own color over the common open-shift yellow. */
.month-open-calendar tbody td:has(.booking-need-shift){background:#fff7ec!important}
.month-open-calendar tbody td .month-open-shift.booking-need-shift{background:#fff0db!important;border-color:#d9a868}
.month-open-calendar tbody td .month-open-shift.workshop-open-shift.booking-approved-shift{background:#fff3c4!important;border-color:#d8c578}
.month-open-shift.booking-approved-shift small{color:#625321}

.time-print-report{display:none}
@media print{
 body:has([data-approved-time-print]) .sidebar,body:has([data-approved-time-print]) .topbar,body:has([data-approved-time-print]) .heading,body:has([data-approved-time-print]) .hr-navigation,body:has([data-approved-time-print]) dialog,body:has([data-approved-time-print]) .view>:not(.time-page),body:has([data-approved-time-print]) .time-page>:not(.time-print-report){display:none!important}
 body:has([data-approved-time-print]) main,body:has([data-approved-time-print]) .view,body:has([data-approved-time-print]) .time-page{display:block!important;width:auto!important;margin:0!important;padding:0!important;overflow:visible!important;height:auto!important;max-height:none!important}
 .time-print-report{display:block!important;color:#000;background:#fff;font-size:10pt}
 .time-print-report h1{font-size:18pt}.time-print-report h2{font-size:12pt;break-after:avoid}
 .time-print-report table{width:100%;border-collapse:collapse;font-size:9pt;table-layout:auto}
 .time-print-report th,.time-print-report td{padding:5px;border:1px solid #aaa;white-space:normal;text-align:left;position:static!important}
 .time-print-report thead{display:table-header-group}.time-print-report tr{break-inside:avoid}.time-print-test{font-weight:bold;border:2px solid #000;padding:8px}
}

@page payrollreport{size:A4 landscape;margin:10mm}
@media print{
 .payroll-report-output,[data-accounting-report]{page:payrollreport}
 body:has([data-payroll-demo-report]) .sidebar,body:has([data-payroll-demo-report]) .topbar,body:has([data-payroll-demo-report]) .heading,body:has([data-payroll-demo-report]) .view>:not(.time-page),body:has([data-payroll-demo-report]) .time-page>:not(.payroll-report-output),body:has([data-payroll-demo-report]) .actions{display:none!important}
 body:has([data-payroll-demo-report]) main,body:has([data-payroll-demo-report]) .view{margin:0!important;padding:0!important;width:auto!important}
 .payroll-report-output .accounting-table,.payroll-compact{overflow:visible!important;max-height:none!important;width:100%!important}
 .payroll-compact table{font-size:7pt!important;table-layout:auto}.payroll-compact th,.payroll-compact td{padding:3px!important;white-space:normal!important;position:static!important}
 .payroll-report-output thead{display:table-header-group}.payroll-report-output tr{break-inside:avoid}
}

@media print{body:has([data-accounting-report]) .time-view-switch,body:has([data-accounting-report]) [data-timebank-tools]{display:none!important}}

/* Kitchen group cards open the ordinary roster editor. */
.workshop-hub-groups .kitchen-group-card{width:100%;text-align:left;cursor:pointer;font:inherit;white-space:normal}.workshop-hub-groups .kitchen-group-card:hover{border-color:var(--brand);box-shadow:0 2px 8px #16342818}.kitchen-group-next{font-weight:700;color:var(--brand);border-top:1px solid var(--line);padding-top:10px;margin-top:6px}

/* Scoped clearing and readable shift editing outside the calendar. */
.workshop-clear-button{background:#fff;color:#a12734;border:1px solid #a12734;border-radius:7px;padding:10px 16px;font-weight:700}.workshop-clear-button:hover{background:#fff0f1}.workshop-shift-dialog{width:min(480px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;padding:18px;border:1px solid #b8cbc0;border-radius:12px;background:#f4f8f5;color:var(--ink)}.workshop-shift-dialog::backdrop{background:#16342866}.workshop-shift-dialog .manual-cell-editor{min-width:0;width:100%;max-width:none;padding:0;font-size:14px}.workshop-shift-dialog .manual-cell-editor-head strong{font-size:16px}.workshop-shift-dialog .manual-cell-editor :is(input,select,button){font-size:14px;min-height:38px}.workshop-shift-dialog .manual-month-cell-add{display:grid;gap:10px}.workshop-shift-dialog .report-popup-body{padding:0;overflow:visible}

/* Ordered tools for rebuilding selected roster days. */
.workshop-rebuild-steps{display:grid;gap:8px;padding:10px;border:1px solid #e1ae63;border-radius:9px;background:#fff8eb;width:100%;max-width:340px}.workshop-rebuild-steps>button{display:block;font-size:13px;line-height:1.4;width:100%;min-width:0;min-height:40px;white-space:normal;background:#fff0d5;color:#834609;border:1px solid #d58b2c;border-radius:7px;font-weight:700;text-align:left;padding:10px 12px}.workshop-rebuild-steps>button:hover{background:#ffe2ad}.workshop-rebuild-steps>button:focus-visible{outline:3px solid #b9680e;outline-offset:2px}

/* Vertical waiter workflow with rebuild tools on the right. */
.workshop-distribution-row.workshop-distribution-vertical{width:100%;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:24px;align-items:start}.workshop-distribution-workflow{display:grid;gap:12px;min-width:0;justify-items:start}.workshop-distribution-vertical .workshop-distribution-main{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 16px;width:100%}.workshop-distribution-vertical .workshop-distribution-main .distribution-more{margin:0;flex:0 1 220px;min-width:150px}.workshop-distribution-vertical .distribution-more>summary{padding:9px 0}.workshop-distribution-vertical .workshop-distribution-save{grid-column:auto;max-width:560px;width:100%}.workshop-distribution-vertical .workshop-save-delete{flex-direction:column;align-items:flex-start;gap:8px}.workshop-distribution-vertical .workshop-distribution-before{justify-self:end;width:100%}.workshop-distribution-vertical .workshop-rebuild-steps{max-width:none}.workshop-distribution-vertical .workshop-distribution-agreed>button{min-height:38px;padding:8px 14px}@media(max-width:1000px){.workshop-distribution-row.workshop-distribution-vertical{grid-template-columns:minmax(0,1fr)}.workshop-distribution-vertical .workshop-distribution-before{justify-self:start;max-width:340px}}

/* Equal widths for the three main workflow buttons. */
.workshop-distribution-vertical :is(.workshop-distribution-agreed>button,.workshop-distribution-main>button,.workshop-save-delete>button){width:280px;max-width:100%;min-height:42px;padding:9px 14px;white-space:normal}.workshop-distribution-vertical .workshop-distribution-main>button{flex:0 1 280px}

/* Light green background for the complete distribution workflow. */
.manual-month-toolbar.compact-distribution{background:#eaf4e7;border-color:#c8dcc4}

/* Clear, equal-sized groups below the extra distribution choices. */
.workshop-distribution-vertical .workshop-distribution-main{display:block;position:relative;container-type:inline-size}.workshop-distribution-vertical .workshop-distribution-main .distribution-more{margin:0;min-width:0;width:100%}.workshop-distribution-vertical .distribution-more>summary{width:220px;max-width:100%;min-height:42px}.distribution-options.distribution-options-tidy{display:grid;gap:12px;width:360px;max-width:100%;padding:12px 0 0}.distribution-options-tidy .distribution-option-group{margin:0;padding:14px;border:1px solid #d5e2d0;border-radius:9px;background:#f7fbf4;width:100%;min-width:0}.distribution-options-tidy .distribution-option-group:last-child{border:1px solid #d5e2d0}.distribution-options-tidy h3{margin:0 0 10px;font-size:14px;line-height:1.3;color:var(--brand)}.distribution-option-actions{display:grid;gap:8px}.distribution-option-actions>button{font-size:13px;width:100%;min-height:40px;padding:8px 12px;white-space:normal}.distribution-option-selected{display:grid;grid-template-columns:minmax(80px,100px) minmax(0,1fr);gap:10px;align-items:center}.distribution-option-selected .manual-month-priority{display:block;margin:0;min-width:0}.distribution-option-selected select{width:100%;min-width:0;min-height:40px;padding:8px;font-size:13px}.distribution-option-selected>button{font-size:13px;width:100%;min-height:40px;padding:8px 10px;white-space:normal}@container(min-width:460px){.workshop-distribution-main .distribution-more>summary{position:absolute;left:296px;top:0;width:calc(100% - 296px);max-width:220px}}

/* Kitchen group choice uses one explicit selection before period creation. */
.kitchen-group-choices{display:grid;gap:8px;border:1px solid #c8dcc4;border-radius:9px;padding:14px;max-width:560px;background:#f3f8ef}.kitchen-group-choices legend{font-weight:700;color:var(--brand)}.kitchen-group-choices .check{margin:0;padding:8px 10px;background:#fff;border:1px solid #dce5d8;border-radius:6px}.kitchen-group-choices .check:has(input:checked){border-color:#62876b;background:#eaf4e7}

/* Combined roster: readable departments, pinned dates/names and shared zoom controls. */
.combined-roster-view{min-width:0;--combined-accent:#dcece3}
.combined-roster-toolbar{padding:16px;margin-bottom:12px;background:#f7faf7}
.combined-roster-filters{display:flex;flex-wrap:wrap;align-items:end;gap:12px 18px}
.combined-roster-filters label{margin:0;min-width:150px}.combined-roster-filters select{min-width:230px}
.combined-group-summaries{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:16px 0}
.combined-group-summary{display:flex;flex-direction:column;gap:5px;padding:10px 12px;border:1px solid #d2ded6;border-top:4px solid var(--combined-accent);border-radius:7px;background:#fff;min-width:0}
.combined-group-summary strong{font-size:13px;line-height:1.4}.combined-group-summary span{font-size:12px;color:#506459}
.combined-tone-waiters{--combined-accent:#d8eadd}.combined-tone-dishwashing{--combined-accent:#f2e8c7}.combined-tone-pizza-pasta{--combined-accent:#dce6f4}.combined-tone-main-kitchen{--combined-accent:#eadff0}.combined-tone-lunch{--combined-accent:#dceeee}
.combined-roster-status{display:flex;align-items:center;flex-wrap:wrap;gap:7px 20px;font-size:13px;margin:10px 0}.combined-roster-status>.muted{flex-basis:100%}
.combined-roster-toolbar .workshop-calendar-view-controls:not([hidden]){position:static;margin:12px 0 0;max-width:100%;width:max-content}
.combined-roster-view .combined-roster{max-height:calc(100vh - 180px);border:1px solid #cbd8cf;border-radius:8px;background:#fff}
.combined-roster-view .combined-roster table{min-width:0;table-layout:fixed;border-collapse:separate;border-spacing:0}
.combined-roster-view .combined-roster th,.combined-roster-view .combined-roster td{height:44px;padding:4px;min-width:0;vertical-align:top;border-bottom:1px solid #dce4df;border-right:1px solid #e1e7e3}
.combined-roster-view .combined-roster tr>th:first-child{width:220px;min-width:220px;max-width:220px;position:sticky;left:0;z-index:2;padding:10px 12px;font-size:13px;line-height:1.4;background:#fff;box-shadow:1px 0 #c7d4cb}
.combined-roster-view .combined-roster thead th{position:sticky;top:0;z-index:4;height:56px;background:#eef4ef;color:#244734;text-align:center;font-size:12px}
.combined-roster-view .combined-roster thead th:first-child{z-index:5;background:#e6efe8;vertical-align:middle}
.combined-roster-view .combined-roster thead th>strong{display:block;font-size:16px;line-height:1.6}.combined-roster-view .combined-roster thead th>span{display:block;font-weight:500}
.combined-roster-view .combined-roster .combined-group-heading th,.combined-roster-view .combined-roster .combined-group-heading td{height:auto;color:#244734;background:var(--combined-accent);padding:10px 12px;border-top:6px solid #fff;border-bottom:1px solid #cbd8cf;vertical-align:middle;text-align:left}
.combined-roster-view .combined-roster .combined-group-heading th{font-size:14px}.combined-roster-view .combined-roster .combined-group-heading td{font-size:12px}.combined-roster-view .combined-roster .combined-group-heading td span{margin-left:20px}
.combined-roster-view .combined-roster tbody tr:not(.combined-group-heading)>th small{display:block;color:#66786b;font-size:11px;font-weight:400;margin-top:4px}
.combined-roster-view .combined-roster td.weekend{background:#f3f4f1}.combined-roster-view .combined-roster td.sunday{background:#fff3f3}.combined-roster-view .combined-roster thead th.sunday{background:#f9e1e3;color:#9b293d}.combined-roster-view .combined-roster thead th.weekend{background:#e8ebe5}
.combined-roster-view .combined-roster .combined-week-start{border-left:2px solid #b9cbbf}.combined-roster-view .combined-roster .current-day{box-shadow:inset 0 3px #377a58}
.combined-roster-view .combined-roster .combined-shift{min-height:0;padding:7px 4px;margin:1px 0 4px;background:#e6f0e9;border:1px solid #d1e3d7;border-radius:4px;font-size:12px;line-height:1.3;color:#203b2c}
.combined-shift>strong{display:block;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:12px}.combined-shift>small{display:block;margin-top:3px;overflow-wrap:anywhere;font-size:11px}
.combined-roster-view .combined-roster .combined-shift-open{background:#fff4cd;border-color:#e4cb7d;color:#614d1c}.combined-roster-view .combined-roster .combined-shift-pending{border-style:dashed;border-color:#aa863a}.combined-shift .combined-status{font-weight:650}
@media(max-width:1100px){.combined-group-summaries{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.combined-group-summaries{grid-template-columns:repeat(2,minmax(0,1fr))}.combined-roster-toolbar{padding:12px}.combined-roster-filters label{flex:1;min-width:130px}.combined-roster-filters select{min-width:0;width:100%}.combined-roster-view .combined-roster{max-height:70vh}}

.combined-roster-view .combined-roster thead th:not(:first-child){width:auto;min-width:0}

/* Readable combined roster: fixed day widths, normal scale and mouse panning. */
.combined-roster-view .combined-roster{cursor:grab;scrollbar-gutter:stable;max-height:70vh;overscroll-behavior-x:contain}
.combined-roster-view .combined-roster.combined-roster-panning{cursor:grabbing;user-select:none}
.combined-roster-view .combined-roster tr>th:first-child{width:240px;min-width:240px;max-width:240px;font-size:14px}
.combined-roster-view .combined-roster tr:not(.combined-group-heading)>td,.combined-roster-view .combined-roster thead th:not(:first-child){width:128px;min-width:128px;max-width:128px}
.combined-roster-view .combined-roster .combined-shift{padding:8px 5px;line-height:1.4;font-size:14px;overflow:hidden}
.combined-roster-view .combined-shift>strong{font-size:14px;white-space:nowrap}
.combined-roster-view .combined-shift>small{font-size:12px;overflow-wrap:normal;word-break:normal;white-space:normal}
.combined-roster-view .combined-roster caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.combined-roster-toolbar{padding:12px 14px}.combined-group-summaries{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.combined-group-summary{flex:1 1 180px;gap:2px;padding:6px 9px}.combined-group-summary strong{font-size:12px}.combined-group-summary span{font-size:12px}
.combined-roster-navigation{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:13px;color:#506459}
.combined-roster-toolbar .workshop-calendar-view-controls:not([hidden]){margin:0}

/* Existing rosters, browsed read-only by year and month. */
.workshop-history-link{font-size:14px;font-weight:600;white-space:nowrap;text-underline-offset:4px}
.roster-history{padding:20px}.roster-history-filters{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin:20px 0}.roster-history-filters label{min-width:140px}
.roster-history-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 0;border-top:1px solid var(--line)}.roster-history-row>div{display:grid;gap:4px}.roster-history-row strong{font-size:15px}.roster-history-row small{font-size:12px;color:var(--muted)}.roster-history-row>a{flex-shrink:0}
.roster-history-detail{padding:18px;margin-bottom:12px}.roster-history-detail h2{font-size:22px;margin:16px 0 8px}.roster-history-week{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:18px 0}.roster-history-detail .workshop-calendar-view-controls{position:static;margin:0}
@media(max-width:600px){.roster-history{padding:14px}.roster-history-row{gap:10px}.roster-history-row>a{padding:7px 10px}.heading:has(.workshop-history-link){align-items:start;flex-direction:column;gap:8px}.roster-history-week strong{order:-1;flex-basis:100%}}

/* Choose calendar dates without changing any saved roster. */
.combined-period-options{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.combined-period-options button{min-height:36px;padding:7px 12px;font-size:13px}.combined-period-options button[aria-pressed=true]{background:var(--brand);color:#fff}
.combined-period-navigation{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:12px 0}.combined-period-navigation strong{text-align:center;font-size:14px}.combined-period-navigation button{font-size:13px;min-height:34px;padding:6px 10px}
@media(max-width:600px){.combined-period-navigation strong{order:-1;flex-basis:100%}.combined-period-options button{flex:1 1 auto;min-height:40px}}

/* One employee row, several actual tasks; text identifies each task as well as colour. */
.workday-cell{display:flex;flex-direction:column;gap:.3rem;width:100%;min-height:3.4rem;padding:.3rem;border:1px solid #b8c8c0;background:#fff;text-align:left;font:inherit;border-radius:.4rem}
.workday-task{display:block;padding:.3rem .45rem;border-left:4px solid #497761;border-radius:.25rem;background:#edf5ef}
.workday-task strong,.workday-task small{display:block}
.workday-task-office{border-color:#6579a7;background:#edf0fa}
.workday-task-baking{border-color:#b17c39;background:#fff3dc}
.workday-editor{width:min(880px,95vw)}
.workday-editor fieldset{border:1px solid #ccd7d1;border-radius:.5rem;margin:.7rem 0;padding:.7rem}
.workday-editor .row{align-items:end}
.workday-editor [data-workday-error]:not(:empty){padding:.6rem;background:#fff0e7;color:#8b3028}
.agreed-work-tasks{flex-basis:100%;width:100%;padding:.45rem .65rem;background:#f6f8f6;border:1px solid #d7e0db;border-radius:.4rem}
.agreed-work-tasks fieldset{margin:.45rem 0;padding:.5rem;border:1px solid #d7e0db}
.agreed-work-tasks [data-agreed-task-row]{margin-bottom:.5rem}

/* Fixed tasks occupy the whole weekday row, never the narrow weekday-name column. */
#rosterAvailability .availability-day > .agreed-work-tasks{grid-column:1/-1;width:auto;min-width:0;max-width:100%;box-sizing:border-box}
#rosterAvailability .agreed-work-tasks summary{font-size:13px;line-height:1.4}
#rosterAvailability .availability-day .agreed-work-tasks label{font-size:12px}
#rosterAvailability .agreed-work-tasks [data-agreed-task-row]{display:grid;grid-template-columns:minmax(170px,1.8fr) minmax(90px,1fr) minmax(90px,1fr) auto;gap:10px;align-items:end}
#rosterAvailability .agreed-work-tasks input,#rosterAvailability .agreed-work-tasks select{width:100%;min-width:0;box-sizing:border-box}
#rosterAvailability .agreed-work-tasks input[type=checkbox]{width:auto}
#rosterAvailability .agreed-work-tasks button{white-space:nowrap;min-height:34px}
@media(max-width:650px){#rosterAvailability .agreed-work-tasks [data-agreed-task-row]{grid-template-columns:1fr 1fr}#rosterAvailability .agreed-work-tasks [data-agreed-task-row]>label:first-of-type{grid-column:1/-1}#rosterAvailability .agreed-work-tasks [data-agreed-task-row]>button{grid-column:1/-1}}
#rosterAvailability [data-availability-base-time][hidden],#rosterAvailability [data-task-time-source][hidden]{display:none!important}

/* Kitchen assessments reuse the HR approval flow with station-specific navigation. */
.development-kitchen-overview{padding:12px;margin-bottom:12px;background:#f3f6f3;border:1px solid #cbd8cf;border-radius:10px}.development-kitchen-overview h3{margin:0 0 9px;font-size:14px}.development-kitchen-areas{display:grid;grid-template-columns:repeat(auto-fit,minmax(135px,1fr));gap:7px}.development-kitchen-areas button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;min-width:0;white-space:normal;padding:9px;background:white}.development-kitchen-areas button span{font-size:11px;font-weight:400}.development-kitchen-areas button[aria-pressed=true]{border:2px solid #275841;background:#e6f0e8}.development-kitchen-areas button:focus-visible{outline:3px solid #477d61;outline-offset:2px}.development-kitchen-overview p{margin:9px 0 0}

.development-batch-choices{display:grid;gap:7px;margin:10px 0}.development-batch-choices .development-check{display:flex;align-items:center;gap:8px}.development-batch-choices input{flex:none}

/* The active tips method is highlighted across the whole overview card. */
.hr-card.tip-method-card-active{background:#d9eedf;border:2px solid #34734b;color:#163e29}.hr-card.tip-method-card-active h3,.hr-card.tip-method-card-active p,.hr-card.tip-method-card-active>span:last-child{color:#234e32}.hr-card.tip-method-card-active .badge{background:#27673e;color:#fff}.hr-card.tip-method-card-active:hover{background:#cce5d3}.hr-card.tip-method-card-active:focus-visible{outline:3px solid #174b2b;outline-offset:3px}

/* Holiday-pay control keeps employee names, dates and controls readable. */
[data-holiday-pay-year]{display:flex;align-items:flex-end;gap:8px}[data-holiday-pay-year] label{margin:0}.holiday-pay-table table{min-width:950px}.holiday-pay-table th,.holiday-pay-table td{vertical-align:top;white-space:normal}.holiday-pay-table small{display:block;margin-top:4px;color:var(--muted);font-weight:400}.holiday-pay-table .report-info-trigger{white-space:nowrap}

/* Bottom workshop tools are opt-in and share the white footer with roster actions. */
.workshop-tool-drawer[hidden]{display:none!important}.workshop-tool-drawer{display:flex;min-width:0;max-width:100%}.manual-month-footer .workshop-tools-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:500;min-height:32px;padding:5px 10px;color:#42594d;background:#fff;border:1px solid #c8d3cc;border-radius:7px}.workshop-tools-toggle[aria-expanded=true]{background:#edf4ef;border-color:#739180}.workshop-tools-toggle:focus-visible{outline:3px solid #477d61;outline-offset:2px}.workshop-tool-drawer .manual-month-bottom-tools{position:static!important;inset:auto!important;display:flex;align-items:center;flex-wrap:wrap;gap:8px;width:auto;max-width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;z-index:auto}.workshop-tool-drawer .manual-month-bottom-tools>.local-activity-tools{position:static;display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin:0 4px 0 0;padding:0 10px 0 0;box-shadow:none;border-radius:0;background:transparent}.workshop-tool-drawer .amfi-popup>summary.report-info-trigger{min-height:32px!important;font-size:12px!important;padding:5px 10px!important}.manual-month-planner,.kitchen-month-planner{padding-bottom:20px}@media(max-width:650px){.workshop-tool-drawer{flex-basis:100%;order:2}.workshop-tool-drawer .manual-month-bottom-tools{gap:6px}}

/* Shared HR departments and their own work tasks. */
.employee-work-areas{margin:1rem 0}.employee-work-area{margin:.6rem 0;padding:.8rem;border:1px solid #ccd7d0;border-radius:10px}.employee-work-area legend{padding:0 .4rem;font-weight:700}.employee-work-area details{margin:.5rem 0 0}.employee-work-area summary{cursor:pointer;font-weight:600}.employee-work-task{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;margin:.4rem 0;padding-left:1rem}.employee-work-task .check{margin-right:auto}.employee-work-task button{font-size:.85rem;padding:.3rem .6rem}.employee-work-area input[data-new-work-task]{min-width:180px}.employee-on-leave{color:#6c4c85!important}.employee-leave-badge{display:table;margin:.3rem 0;padding:.2rem .55rem;border-radius:20px;background:#eee6f4;color:#583c70;font-size:.85rem;font-weight:700}.employee-leave-return{display:block;color:#53475a}.employee-return-soon{display:block;color:#815b11;font-weight:700}[data-leave-return][hidden]{display:none!important}[data-leave-return]{margin:.7rem 0;border:1px solid #c8d3cc;border-radius:8px;padding:.8rem}

#leave-request .field-error{color:#9b2033;font-weight:600;margin:.3rem 0}#leave-request input[aria-invalid="true"]{border-color:#9b2033}#leave-request .field-error[hidden]{display:none!important}

.employee-leave-pending{background:#fff2d2;color:#765617}

.archive-shift-table{max-height:50vh;overflow:auto}[data-archive-dialog]{width:min(1100px,95vw)}[data-archive-dialog] .report-popup-body{padding:1rem}

.shared-date-error{display:block;color:#9b2033;font-weight:600;margin:.3rem 0}.shared-date-error[hidden]{display:none!important}input[data-shared-date-error]{border-color:#9b2033}

[data-workshop-tool-extra][hidden],.manual-month-tool-groups[hidden]{display:none!important}

/* Editable settings are actions; report/explanation triggers keep their info icon. */
summary.report-info-trigger.report-edit-trigger{display:inline-flex;align-items:center;gap:10px;max-width:100%;min-height:44px;padding:10px 15px;border:1px solid #adc4b8;border-radius:10px;background:#f1f7f3;color:#193c2e;font-size:14px;font-weight:650;line-height:1.4;list-style:none;box-shadow:0 1px 2px #16382b0a;transition:background .15s,border-color .15s}
summary.report-info-trigger.report-edit-trigger::before{content:'✎';display:inline-grid;place-items:center;flex:0 0 26px;width:26px;height:26px;margin:0;border-radius:7px;background:#dfece4;color:#23533e;font-size:21px;line-height:1}
summary.report-info-trigger.report-edit-trigger::after{content:'›'!important;display:block!important;margin-left:8px;color:#527461;font-size:23px;line-height:1}
summary.report-info-trigger.report-edit-trigger:hover{background:#e5f0e9;border-color:#658e77}
summary.report-info-trigger.report-edit-trigger:focus-visible{outline:3px solid #397456;outline-offset:3px}
[data-popup-kind="edit"]{margin-block:10px}
@media(max-width:600px){summary.report-info-trigger.report-edit-trigger{font-size:13px;padding:9px 12px;gap:8px}}
.workday-cell.workday-cell-empty{align-items:center;justify-content:center;min-height:2rem;padding:4px;border-color:transparent;background:transparent;color:#817b7d;box-shadow:none}
.workday-cell.workday-cell-empty:hover{background:#edf4ef;border-color:#bfd0c5;color:#244c37}
.workday-cell:focus-visible{outline:2px solid #397456;outline-offset:-2px}
.employee-work-areas[hidden],.employee-work-area-open[hidden]{display:none!important}
.employee-work-areas .employee-work-area{padding:10px 12px;margin:7px 0;background:#fff;border:1px solid #d9e3dd;border-radius:9px}
.employee-work-area-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.employee-work-area-line>.check{margin:0;min-width:160px}.employee-work-area-line>[data-work-task-selection]{flex:1}.employee-work-area-open{font-size:13px;min-height:34px;padding:6px 11px;background:#edf5ef;border:1px solid #b1c7b8;border-radius:8px;color:#244e38}
.work-area-popup{width:min(680px,94vw)}.work-area-popup .employee-work-task{padding:9px 0;margin:0;border-bottom:1px solid #e4ebe6}.work-area-popup>.report-popup-body>details{padding:10px 0}.work-area-popup .report-popup-head h2{font-size:20px}
@media(max-width:600px){.employee-work-area-line{gap:8px}.employee-work-area-line>.check{min-width:0;flex:1}.employee-work-area-line>[data-work-task-selection]{flex-basis:100%;order:3}}
.staff-worktime-shortcut{margin:0 0 14px;background:#eaf3ed;border:1px solid #adc8b7;color:#224d37}.worktime-accounts-popup{width:min(1150px,96vw)}.worktime-account-person{margin-top:14px}.worktime-account-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.worktime-account-metrics>span{background:#eff5f0;padding:12px;border-radius:8px;color:#5a6d60;font-size:13px}.worktime-account-metrics strong{display:block;font-size:21px;color:#214c36;margin-top:5px;font-variant-numeric:tabular-nums}.worktime-accounts-popup [hidden]{display:none!important}.worktime-account-person>.section-title{align-items:start}.worktime-account-person .table-wrap{max-height:360px}@media(max-width:650px){.worktime-account-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
[data-bank-ledger][hidden]{display:none!important}

/* Times-page follow-up triggers exist only while action is needed. */
.time-followup-row [hidden],.time-page [data-sickness-attention-only][hidden]{display:none!important}
.time-followup-row:has(>[data-time-followup-error][hidden]):not(:has([data-sickness-status=attention])):not(:has(.missing-clock-status.attention)){margin:0}
.time-followup-row>[data-time-followup-error]{margin:0;color:#842020;font-size:13px}

.personal-leader .leader-task-card,#personal-leader .leader-task-card{background:#fde2e2;border-color:#c34747;color:#842020}
.personal-leader [hidden],#personal-leader [hidden]{display:none!important}
#personal-leader .leader-bulk-choice{display:inline-flex;align-items:center;gap:8px;margin-right:12px;float:left}
#personal-leader [data-leader-bulk-form]{border-top:1px solid #d4dddd;padding-top:12px;margin-top:12px}

.personal-portal [data-time-approvals-open]{background:#fde2e2;border-color:#c34747;color:#842020}
.personal-portal [data-time-approvals-open][hidden],.personal-portal .time-approval-footer[hidden]{display:none!important}

.personal-portal .personal-services .preview-card[data-time-approvals-open],.personal-leader.personal-services .preview-card.leader-task-card{background:#fde2e2;border-color:#c34747;color:#842020}
.personal-portal .personal-services .preview-card[data-time-approvals-open] span{color:#842020}

/* Compact manual time registration. */
dialog:has(.time-quick-editor):not(.report-popup-full){width:min(450px,calc(100vw - 24px))}
.time-quick-editor{display:grid;gap:.8rem;padding:.2rem}
.time-quick-editor>label{display:grid;grid-template-columns:6.5rem minmax(0,1fr);gap:.65rem;align-items:center}
.time-quick-editor input,.time-quick-editor select,.time-quick-editor textarea{width:100%;min-width:0;box-sizing:border-box}
.time-quick-editor textarea{resize:vertical}
.time-quick-hours{border:0;padding:0;margin:0;min-width:0}
.time-quick-hours legend{font-weight:600;font-size:.9rem;margin-bottom:.35rem}
.time-quick-hours>div{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.6rem;align-items:end}
.time-quick-hours label{display:grid;gap:.25rem}
.time-quick-hours>div>span{padding-bottom:.6rem}
.time-quick-hours small:empty{display:none}
.time-quick-more{font-size:.85rem}
.time-quick-more>label{display:grid;gap:.3rem;margin-top:.65rem}
.time-quick-editor>.actions{justify-content:flex-end;margin:0}
.time-page [data-rule-panel="time-editor"]>summary[hidden]{display:none}

/* One compact row per time entry; the employee name opens details. */
.time-entry-table{max-height:65vh;overflow:auto;background:white;border:1px solid var(--line);border-radius:0}
.time-entry-table table{width:100%;border-collapse:separate;border-spacing:0}
.time-entry-table thead th{position:sticky;top:0;z-index:3;background:#f4f5f4;color:var(--ink);text-transform:none;letter-spacing:normal;font-size:.75rem;text-align:left}
.time-entry-table th,.time-entry-table td{padding:.4rem .45rem;border-right:1px solid var(--line);border-bottom:1px solid var(--line);white-space:nowrap;font-size:.75rem;font-weight:400;line-height:1.25}
.time-entry-table thead th{font-weight:650}
.time-entry-table tbody tr:hover{background:#f5f7f5}
.time-entry-name{display:flex;gap:.4rem;align-items:center}
.time-entry-name>input{flex:none;margin:0}
.time-entry-table .time-entry-name summary.report-info-trigger{padding:0;border:0;background:none;border-radius:0;min-height:0;font-size:inherit;font-weight:400;white-space:nowrap;color:var(--ink)}
.time-entry-table .time-entry-name summary.report-info-trigger::before{display:none}
.time-entry-table .time-entry-name summary:hover{text-decoration:underline}
.time-entry-table .time-entry-approval{text-align:center}
.time-approved-mark{color:#288300;font-size:1.1rem;font-weight:800;line-height:1}
.time-entry-table td[data-time-column="paid"]{text-align:center;font-variant-numeric:tabular-nums}

.time-entry-table .time-entry-summary{white-space:normal;min-width:9rem;max-width:18rem;font-size:.75rem}

.time-entry-table button.time-cell-edit{display:inline;padding:0;border:0;border-radius:0;min-height:0;background:none;color:inherit;font-size:inherit;font-weight:400;line-height:inherit;text-align:inherit;cursor:pointer}
.time-entry-table button.time-cell-edit:hover{text-decoration:underline;text-underline-offset:3px;color:var(--accent)}

/* A small correction window for clicks in the time grid. */
dialog:has(.time-mini-editor){width:min(330px,calc(100vw - 24px));height:auto;min-height:0}
dialog:has(.time-mini-editor) .report-popup-head{padding:.65rem .8rem}
dialog:has(.time-mini-editor) .report-popup-head h2{font-size:1rem}
dialog:has(.time-mini-editor) .report-popup-head button[aria-pressed],dialog:has(.time-mini-editor) .report-popup-size-controls,dialog:has(.time-mini-editor) .popup-resize-handle{display:none}
dialog:has(.time-mini-editor) .report-popup-content{padding:.75rem}
.time-mini-editor{display:grid;gap:.65rem}
.time-mini-editor>p{margin:0;font-size:.75rem}
.time-mini-hours{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.4rem;align-items:end}
.time-mini-hours>span{padding-bottom:.4rem}
.time-mini-editor input,.time-mini-editor select{width:100%;min-width:0;padding:.35rem .45rem}
.time-mini-editor label{font-size:.8rem;gap:.2rem}
.time-mini-editor details{font-size:.75rem}
.time-mini-editor details label{margin-top:.5rem}
.time-mini-editor .actions{justify-content:flex-end;margin:0;gap:.4rem}
.time-mini-editor .actions button{padding:.35rem .6rem;font-size:.8rem}

dialog:has(.time-mini-editor) .report-popup-head>.actions{display:none}
dialog:has(.time-mini-editor) .report-popup-body{padding:.65rem}
dialog:has(.time-mini-editor) .report-popup-content{padding:0}

.time-row-approval-actions{display:inline-flex;align-items:center;gap:.35rem}
.time-entry-table .time-approval-icon{display:inline-flex;justify-content:center;align-items:center;width:1.7rem;height:1.7rem;min-height:1.7rem;padding:0;border:1px solid var(--line);border-radius:4px;background:white;font-size:1rem;line-height:1}
.time-entry-table .time-quick-approve{color:#28703a;border-color:#b7d3bf;background:#f1f8f3;font-weight:800}
.time-entry-table .time-quick-approve:hover:not(:disabled){background:#dcefe1;border-color:#28703a}
.time-entry-table .time-quick-approve:disabled{opacity:.4;cursor:default}

.time-mini-editor textarea{width:100%;min-width:0;padding:.35rem .45rem;resize:vertical;font-size:.8rem}

/* Override the shared time editor's ID-based size rule. */
dialog.report-popup:has(#timeEditor.time-mini-editor){width:min(340px,calc(100vw - 24px));height:auto;min-height:0;max-height:calc(100dvh - 24px);padding:0}
dialog:has(#timeEditor.time-mini-editor) .report-popup-body{flex:0 1 auto;padding:.65rem;max-height:calc(100dvh - 80px)}
dialog:has(#timeEditor.time-mini-editor) .report-popup-content{padding:0}
dialog:has(#timeEditor.time-mini-editor) .report-popup-head{padding:.5rem .65rem}
dialog:has(#timeEditor.time-mini-editor) .report-popup-head h2{font-size:.9rem;line-height:1.2;margin:0}
dialog:has(#timeEditor.time-mini-editor) .report-popup-head>.actions,dialog:has(#timeEditor.time-mini-editor) .report-popup-size-controls,dialog:has(#timeEditor.time-mini-editor) .popup-resize-handle{display:none}
.time-mini-editor{gap:.5rem}
.time-mini-editor .time-mini-hours{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}
.time-mini-editor textarea{min-height:3rem;max-height:8rem}

dialog.report-popup:has(#timeEditor.time-mini-editor){position:fixed;inset:max(16px,12vh) 0 auto;margin:0 auto;height:fit-content;resize:none}

.time-mini-editor .time-employee-message,.time-employee-message{padding:.45rem .55rem;border-left:2px solid var(--line);background:#f6f8f6;font-size:.78rem;line-height:1.35;overflow-wrap:anywhere}
.time-employee-message p{white-space:pre-wrap;margin:.2rem 0 0}
.time-mini-editor input[name="breakMinutes"]{width:5rem}

.time-entry-table .time-reopen-icon{color:var(--muted);background:transparent;border-color:transparent}
.time-entry-table .time-reopen-icon:hover{color:var(--brand);background:#edf3ee;border-color:var(--line)}

/* Self-contained example report: no live employee or payroll data. */
dialog.report-popup:has([data-approved-demo-report]){width:min(1480px,96vw);height:fit-content;max-height:94dvh;inset:3dvh 0 auto;margin:0 auto}
.approved-demo-report{padding:12px;color:var(--ink);font-size:13px;line-height:1.45}
.approved-demo-header{display:flex;justify-content:space-between;gap:24px;align-items:center;background:#edf4ef;border:1px solid #d0dfd4;border-radius:8px;padding:22px 24px}
.approved-demo-label{display:inline-block;font-size:11px;letter-spacing:.12em;font-weight:750;color:#36654a}
.approved-demo-report .approved-demo-header h1{font-size:30px;font-weight:700;letter-spacing:-.03em;margin:7px 0 3px}
.approved-demo-header p{margin:0;color:#54685a}
.approved-demo-period{display:grid;gap:5px;text-align:right}.approved-demo-period strong{font-size:16px}.approved-demo-period span{font-size:12px;color:#54685a}
.approved-demo-note{padding:10px 12px;border-left:3px solid #9db8a5;background:#f6f8f6;font-size:12px;margin:14px 0}
.approved-demo-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:12px 0}.approved-demo-actions span{font-size:11px;color:var(--muted)}
.approved-demo-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0 24px}
.approved-demo-metrics>div{padding:14px 16px;border:1px solid var(--line);border-radius:6px;background:#fff}
.approved-demo-metrics span{display:block;font-size:11px;color:var(--muted)}.approved-demo-metrics strong{display:block;font-size:25px;color:var(--brand);font-weight:700;margin-top:5px}
.approved-demo-report section{margin:24px 0}.approved-demo-report section h2{font-size:17px;line-height:1.2;font-weight:700;margin:0 0 6px}.approved-demo-report section>p{font-size:12px;color:var(--muted);margin:0 0 10px}
.approved-demo-report .table-wrap{border:1px solid var(--line);border-radius:4px;max-height:28rem}
.approved-demo-report table{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}
.approved-demo-report th,.approved-demo-report td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;line-height:1.4}
.approved-demo-report th{font-weight:600}.approved-demo-report thead th{background:#f2f5f2;white-space:nowrap;font-size:11px;letter-spacing:0;text-transform:none;position:sticky;top:0;z-index:2}
.approved-demo-report tbody tr:last-child>*{border-bottom:0}.approved-demo-report small{display:block;color:var(--muted);font-size:11px;margin-top:3px}
.approved-demo-report .approved-demo-wide table{min-width:1300px}.approved-demo-report .approved-demo-wide td{white-space:nowrap}
.approved-demo-check{color:#327840;font-weight:800}.approved-demo-report footer{border-top:2px solid #d0dfd4;padding:16px 0 0;font-size:11px;color:var(--muted)}.approved-demo-report footer p{margin:5px 0 0}
.approved-demo-print-copy{display:none}
@media(max-width:700px){.approved-demo-report{padding:2px}.approved-demo-header{padding:16px;display:block}.approved-demo-period{text-align:left;margin-top:14px}.approved-demo-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.approved-demo-metrics strong{font-size:21px}}
@media print{
 body[data-approved-demo-printing]>:not(.approved-demo-print-copy){display:none!important}
 body[data-approved-demo-printing]>.approved-demo-print-copy{display:block!important;margin:0!important;padding:0!important}
 .approved-demo-print-copy .approved-demo-report{display:block!important;padding:0;color:#000;font-size:9pt}
 .approved-demo-print-copy .approved-demo-actions{display:none!important}
 .approved-demo-print-copy .table-wrap{overflow:visible!important;max-height:none!important;border:0}
 .approved-demo-print-copy table,.approved-demo-print-copy .approved-demo-wide table{width:100%;min-width:0!important;font-size:8pt;border-collapse:collapse}
 .approved-demo-print-copy th,.approved-demo-print-copy td{padding:4px;border:1px solid #bbb;white-space:normal!important;position:static!important}
 .approved-demo-print-copy thead{display:table-header-group}.approved-demo-print-copy tr{break-inside:avoid}
 .approved-demo-print-copy h2{break-after:avoid}.approved-demo-print-copy section{margin:15px 0}
 .approved-demo-print-copy .approved-demo-header{padding:12px}.approved-demo-print-copy .approved-demo-header h1{font-size:22pt}
 .approved-demo-print-copy .approved-demo-metrics{grid-template-columns:repeat(4,1fr);margin:12px 0}.approved-demo-print-copy .approved-demo-metrics strong{font-size:17pt}
}

/* Compact, price-free detailed time report with fast employee navigation. */
.approved-hours-report{font-size:12px;line-height:1.3;min-width:0}
.hours-report-top{display:flex;gap:1rem;align-items:baseline;justify-content:space-between;margin:.7rem 0}.hours-report-top h2{font-size:1rem;font-weight:650;margin:0}.hours-report-top span{font-size:.75rem;color:var(--muted)}
.hours-report-basis,.hours-report-footnote{font-size:.7rem;color:var(--muted);margin:.4rem 0}.hours-report-demo{font-size:.75rem;font-weight:700;color:#776121;margin:.4rem 0}
.hours-report-nav{display:block;border:0;margin:.8rem 0}.hours-report-alphabet,.hours-report-people{display:flex;gap:.2rem;flex-wrap:wrap;align-items:center}
.hours-report-alphabet{margin-bottom:.4rem}.hours-report-alphabet button{border:0;background:none;font-size:.85rem;padding:.1rem .25rem;min-height:0;font-weight:650;text-decoration:underline}
.hours-report-alphabet button:disabled{color:#a9aeab;opacity:1;cursor:default;text-decoration:none}
.hours-report-people button{border:0;background:none;padding:.15rem .5rem .15rem 0;min-height:0;font-size:.75rem;font-weight:400;text-decoration:underline}
.hours-report-people button[aria-pressed=true]{font-weight:750;color:var(--brand);text-decoration:none}
.hours-report-actions{display:flex;justify-content:flex-end;gap:.4rem;margin:.35rem 0}
.hours-report-person[hidden]{display:none!important}.hours-report-person>h3{font-size:.85rem;margin:.65rem 0 .4rem;font-weight:650}
.hours-detail-table{border:1px solid var(--line);border-radius:0;overflow:auto;max-height:55vh}
.hours-detail-table table{width:100%;border-collapse:separate;border-spacing:0;min-width:1050px}
.hours-detail-table th,.hours-detail-table td{padding:.3rem .4rem;border-bottom:1px solid var(--line);border-right:1px solid var(--line);font-size:.72rem;line-height:1.25;white-space:nowrap;text-align:right;font-weight:400;font-variant-numeric:tabular-nums}
.hours-detail-table th:first-child,.hours-detail-table td:first-child{text-align:left}.hours-detail-table thead th{position:sticky;top:0;z-index:2;background:#f2f4f2;font-weight:650;text-transform:none;letter-spacing:0}
.hours-detail-table small{display:block;font-size:.65rem;color:var(--muted);font-weight:400;margin-top:.15rem}
.hours-detail-table tfoot th,.hours-detail-table tfoot td{font-weight:700;background:#f1f3f1}
.hours-person-summary{margin:1rem 0}.hours-person-summary h3{font-size:.8rem;color:var(--accent);font-weight:650;border-bottom:1px solid var(--line);padding-bottom:.35rem;margin:0}
.hours-person-summary dl{display:block;margin:0}.hours-person-summary dl>div{display:flex;align-items:baseline;justify-content:space-between;border-bottom:1px solid var(--line);padding:.25rem 0;gap:1rem;font-size:.75rem}
.hours-person-summary dt,.hours-person-summary dd{margin:0}.hours-person-summary dl>div:first-child,.hours-person-summary dl>div:last-child{font-weight:700}
@media print{
 .approved-demo-print-copy .hours-report-nav,.approved-demo-print-copy .hours-report-actions{display:none!important}
 .approved-demo-print-copy .hours-detail-table{max-height:none;overflow:visible}
 .approved-demo-print-copy .hours-detail-table table{min-width:0!important;font-size:8pt}
 .approved-demo-print-copy .hours-report-person[hidden]{display:none!important}
 .approved-demo-print-copy .hours-report-top h2{font-size:14pt}
}
.time-tip-dialog{width:min(340px,calc(100vw - 24px));height:fit-content;max-height:calc(100dvh - 24px);inset:12vh 0 auto;margin:0 auto;padding:.8rem}
.time-tip-dialog h2{font-size:.95rem;font-weight:650;margin:0 0 .5rem}.time-tip-dialog .small{font-size:.75rem;margin:.4rem 0}
.time-tip-dialog form{display:grid;gap:.6rem}.time-tip-dialog label{font-size:.8rem;gap:.25rem}.time-tip-dialog input,.time-tip-dialog select{padding:.4rem;min-width:0;width:100%;font-size:.8rem}
.time-tip-dialog .actions{justify-content:flex-end;margin:0}.time-tip-dialog button{padding:.35rem .6rem;font-size:.8rem}.time-tip-dialog [data-tip-error]{color:#9e2b20;font-size:.75rem;margin:0}

/* Separate from holiday and approved absence; availability periods are read from their own register. */
.leave-mark.unavailable{color:#52416b;background:#eee8f5;border:1px dashed #9a87b2;text-decoration:none;font-weight:650}.leave-mark.unavailable:focus-visible{outline:2px solid #52416b;outline-offset:2px}

/* Opening-time deviations remain readable independently of their warning color. */
.manual-month-calendar button.opening-deviation,.kitchen-month-calendar button.opening-deviation{background:#fff0d5!important;border:2px solid #ad6500!important;color:#4e3100!important}
.opening-deviation-label{display:block;font-size:.8em;font-weight:700;line-height:1.2}
.day-copy-opening-review .table-wrap{max-height:45vh;overflow:auto}.day-copy-opening-review th{position:sticky;top:0;background:#fff;z-index:2}

/* Forgotten clock-out hints must wrap inside the compact time editor. */
.time-mini-editor .time-review-warning{padding:10px 12px;border:1px solid #d5ae59;border-radius:8px;background:#fff3d7;color:#654719;white-space:normal;overflow-wrap:anywhere;line-height:1.5}

.time-mini-editor .time-mini-dates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:.6rem}
.time-mini-editor .time-mini-dates input{width:100%;min-width:0}
.time-mini-editor [data-time-review-total]{overflow-wrap:anywhere;line-height:1.5}

/* Kompakt retting: tilleggsvalg åpnes av bruker, hovedfeltene beholder plass. */
.time-mini-editor{gap:.4rem}
.time-mini-editor [data-time-review-feedback] p{margin:.25rem 0;font-size:.75rem;line-height:1.35}
.time-mini-editor [data-time-review-feedback] .small{font-size:.7rem}
.time-mini-editor .time-review-warning{padding:.35rem .45rem}
.time-mini-editor textarea{min-height:2.5rem}
.time-mini-editor details label{margin-top:.35rem}
.time-mini-editor details .small{margin:.35rem 0;line-height:1.35}

/* Tips: korte rader og tydelig dagsoversikt, med eksisterende sticky tabellhoder. */
[data-tips-page] .tips-receipts{max-width:56rem;max-height:24rem}
[data-tips-page] .tips-receipts table{table-layout:auto}
[data-tips-page] .tips-receipts th,[data-tips-page] .tips-receipts td{padding:.25rem .5rem;font-size:.82rem;line-height:1.25}
[data-tips-page] .tips-receipts th:first-child{width:40%}
[data-tips-page] .tips-receipts td:last-child{width:8rem}
[data-tips-page] .tips-receipts input{width:7rem;min-width:0;min-height:1.9rem;height:1.9rem;padding:.2rem .4rem;font-size:.82rem}
[data-tips-page] .tips-participants{margin:.6rem 0;padding:.65rem .8rem;border:1px solid var(--line);border-radius:.6rem;background:#f5f8f6}
[data-tips-page] .tips-participants summary{font-weight:600;cursor:pointer}
[data-tips-page] .tips-participants .table-wrap{max-height:22rem;margin:.5rem 0}
[data-tips-page] .tips-participants th,[data-tips-page] .tips-participants td{padding:.3rem .5rem;font-size:.82rem}
@media(max-width:600px){[data-tips-page] .tips-receipts th,[data-tips-page] .tips-receipts td{padding:.25rem .35rem}[data-tips-page] .tips-receipts input{width:6rem}}

/* Min side: kompakt bordkart som standard, større ved brukerens valg. */
.personal-portal .personal-table-map{width:min(100%,280px);max-height:190px;margin-inline:auto}
.personal-portal .personal-table-map.zoomed{width:100%;max-height:65vh}

/* Min side på mobil: kompakt oversikt, normale felt og detaljer i dialogene. */
@media(max-width:760px){
 .personal-portal main{padding:0 10px 72px}
 .personal-portal .personal-brand{padding:7px 0;margin-bottom:7px;gap:7px}
 .personal-portal .personal-brand img{width:32px;height:32px}
 .personal-portal .personal-brand strong{font-size:13px}
 .personal-portal .personal-brand small{font-size:11px}
 .personal-portal main>aside.banner{padding:7px 9px;margin:7px 0;font-size:12px}
 .personal-portal main>aside.banner p{font-size:11px;line-height:1.25;margin:3px 0 0}
 .personal-portal .personal-welcome{margin:8px 0;gap:6px}
 .personal-portal .personal-welcome h1{font-size:20px;line-height:1.15;margin:2px 0 0}
 .personal-portal .personal-welcome>button{padding:5px 8px;min-height:36px;font-size:12px}
 .personal-portal .personal-services{margin-top:10px}
 .personal-portal .personal-services h2{font-size:16px;margin:0 0 5px}
 .personal-portal .personal-services>p{font-size:11px;margin:3px 0 5px}
 .personal-portal .personal-services .preview-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
 .personal-portal .personal-services .preview-card{min-height:52px;padding:6px 8px;border-radius:8px;gap:2px}
 .personal-portal .personal-services .preview-card strong{font-size:13px;line-height:1.2}
 .personal-portal .personal-services .preview-card span,.personal-portal .personal-services .preview-card small{font-size:11px;line-height:1.2}
 .personal-portal .personal-leader [data-leader-open="all"]>span,.personal-portal .personal-leader [data-leader-open="followup"]>span{display:none}
 .personal-portal .personal-services .personal-tables-card{grid-column:auto;min-height:52px}
 .personal-portal .personal-cost-section{display:flex;flex-wrap:wrap;align-items:center;gap:5px 10px;margin:10px 0;padding:8px!important}
 .personal-portal .personal-cost-section h2{font-size:15px;margin:0}
 .personal-portal .personal-cost-section p{display:none}
 .personal-portal .personal-cost-section button{font-size:12px;padding:5px 8px;min-height:36px}
 .personal-portal .personal-day{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 9px;padding:9px!important;margin:10px 0}
 .personal-portal .personal-day-status{font-size:13px;gap:6px}
 .personal-portal .personal-day>p{font-size:11px;margin:0;grid-column:1}
 .personal-portal .personal-day>button{grid-column:2;grid-row:1/3;width:auto;min-height:42px;font-size:14px;padding:7px 12px}
 .personal-portal .personal-next-shift{grid-column:1/-1;margin-top:3px;padding-top:5px;gap:1px}
 .personal-portal .personal-next-shift>strong{font-size:13px}
 .personal-portal .personal-next-shift>span:last-child{font-size:11px}
}

@media(max-width:760px){
 .personal-portal main>aside.banner p{display:none}
 .personal-portal .personal-services .preview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .personal-portal .personal-services .preview-card{min-height:44px;padding:5px 6px}
 .personal-portal .personal-services .preview-card strong{font-size:12px}
 .personal-portal .personal-services .preview-card span{display:none}
 .personal-portal .personal-services .preview-card small{font-size:11px}
 .personal-portal .personal-services .personal-tables-card{min-height:44px}
}

/* Compact leader leave overview: each case opens separately. */
#personal-leader [data-leader-enlarge],.leader-leave-dates-short{display:none}
@media(max-width:760px){
 .personal-portal #personal-leader{width:100%;max-width:100%;height:100dvh;max-height:100dvh;padding:10px}
 #personal-leader>.section-title{top:-10px;padding:8px 0;margin-bottom:10px;flex-wrap:nowrap}
 #personal-leader>.section-title h2{font-size:19px;line-height:1.2}
 #personal-leader>.section-title .actions{flex-wrap:nowrap;margin:0;gap:4px}
 #personal-leader [data-leader-enlarge]{display:inline-block}
 #personal-leader>.section-title button{font-size:13px;padding:8px;min-height:44px}
 #personal-leader [data-leader-month]{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;margin:0 0 8px;gap:6px}
 #personal-leader [data-leader-month] label{min-width:0;font-size:12px;gap:2px}
 #personal-leader [data-leader-month] button{min-height:44px;padding:7px;font-size:13px}
 #personal-leader [data-leader-discard]{grid-column:1/-1}
 #personal-leader [aria-label="Ferieoversikt"]{display:flex;flex-wrap:wrap;gap:4px;margin:6px 0}
 #personal-leader [aria-label="Ferieoversikt"] button{font-size:12px;min-height:44px;padding:6px 8px}
 #personal-leader .leader-leave-heading{display:none}
 #personal-leader .leader-leave-help{font-size:12px;margin:6px 0}
 #personal-leader .leader-leave-list{overflow:visible;max-height:none;border:0;margin-top:10px}
 #personal-leader .leader-leave-list table,#personal-leader .leader-leave-list tbody{display:block;width:100%;min-width:0}
 #personal-leader .leader-leave-list thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #personal-leader .leader-leave-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px 8px;padding:9px;margin:0 0 7px;background:white;border:1px solid var(--line);border-radius:8px;align-items:center}
 #personal-leader .leader-leave-row>td{border:0;padding:0;font-size:14px;min-width:0;overflow-wrap:anywhere;position:static;white-space:normal}
 #personal-leader .leader-leave-person{grid-column:1/3;grid-row:1;font-weight:600}
 #personal-leader .leader-leave-status{grid-column:3;grid-row:1;font-size:12px;color:var(--muted)}
 #personal-leader .leader-leave-period{grid-column:1;grid-row:2;white-space:nowrap}
 #personal-leader .leader-leave-type{grid-column:2;grid-row:2;font-size:12px}
 #personal-leader .leader-leave-action{grid-column:3;grid-row:2}
 #personal-leader .leader-leave-action>button{min-height:44px;padding:6px 10px;font-size:13px}
 #personal-leader .leader-leave-person .leader-bulk-choice{display:none}
 #personal-leader [data-leader-bulk-form]{display:none}
 #personal-leader .leader-leave-dates-full{display:none}
 #personal-leader .leader-leave-dates-short{display:inline}
 #personal-leader.leader-readable .leader-leave-row>td{font-size:18px}
 #personal-leader.leader-readable .leader-leave-row{grid-template-columns:minmax(0,1fr) auto}
 #personal-leader.leader-readable .leader-leave-person{grid-column:1/-1}
 #personal-leader.leader-readable .leader-leave-status{grid-column:2;grid-row:2}
 #personal-leader.leader-readable .leader-leave-period{grid-column:1;grid-row:2}
 #personal-leader.leader-readable .leader-leave-type{grid-column:1;grid-row:3}
 #personal-leader.leader-readable .leader-leave-action{grid-column:2;grid-row:3}
}

/* Shared one-glance mobile presentation for the entire personal portal. */
.personal-mobile-only,[data-mobile-enlarge]{display:none}
@media(min-width:761px){
 .personal-mobile-editor-wrap>.personal-mobile-editor{display:contents}
 .personal-mobile-editor>.section-title,.personal-mobile-editor>.personal-mobile-editor-note{display:none}
}
@media(max-width:760px){
 .personal-portal .personal-mobile-only,.personal-portal [data-mobile-enlarge]{display:inline-block}
 .personal-portal .preview-dialog:not(#personal-colleagues){font-size:14px;line-height:1.35;padding:10px 10px calc(16px + env(safe-area-inset-bottom))}
 .personal-portal .preview-dialog:not(#personal-colleagues)>.section-title{top:-10px;padding:8px 0;margin:0 0 10px;gap:6px;flex-wrap:nowrap;align-items:center}
 .personal-portal .preview-dialog:not(#personal-colleagues)>.section-title h2{font-size:19px;line-height:1.15;overflow-wrap:anywhere}
 .personal-portal .preview-dialog:not(#personal-colleagues)>.section-title .actions{flex-wrap:nowrap;gap:4px;margin:0}
 .personal-portal .preview-dialog:not(#personal-colleagues)>.section-title button{padding:6px 8px;font-size:13px;min-height:44px}
 .personal-portal .preview-dialog:not(#personal-colleagues)>.section-title [data-personal-cost-full],.personal-portal .preview-dialog:not(#personal-colleagues)>.section-title [data-time-approvals-full]{display:none}
 .personal-portal .preview-dialog:not(#personal-colleagues) h3{font-size:15px;margin:10px 0 6px}
 .personal-portal .preview-dialog:not(#personal-colleagues) h4{font-size:14px;margin:6px 0}
 .personal-portal .preview-dialog:not(#personal-colleagues) p{font-size:13px;margin:6px 0;line-height:1.35}
 .personal-portal .preview-dialog:not(#personal-colleagues) p:empty{display:none}
 .personal-portal .preview-dialog:not(#personal-colleagues) button,.personal-portal .preview-dialog:not(#personal-colleagues) .button{min-height:44px;max-width:100%;font-size:13px;white-space:normal}
 .personal-portal .preview-dialog:not(#personal-colleagues) form{gap:8px}
 .personal-portal .preview-dialog:not(#personal-colleagues) label{min-width:0;font-size:13px}
 .personal-portal .preview-dialog:not(#personal-colleagues) .row{gap:6px;align-items:end}
 .personal-portal .preview-dialog:not(#personal-colleagues) .row>label{min-width:0;flex:1 1 130px}
 .personal-portal .personal-mobile-editor-wrap{margin:8px 0}
 .personal-portal .personal-mobile-editor-wrap>.personal-mobile-only{width:100%;text-align:left;padding:10px 12px}
 .personal-portal .personal-mobile-editor:not([open]){display:none}
 .personal-portal .personal-mobile-editor .table-wrap{max-height:none;overflow:visible}
 .personal-portal .personal-mobile-list{gap:7px;margin:8px 0}
 .personal-portal .personal-record{padding:10px;border-radius:8px}
 .personal-portal .personal-record p{margin:4px 0;font-size:13px}
 .personal-portal .personal-record-head h3,.personal-portal .personal-record-head h4{font-size:14px;margin:0}
 .personal-portal .personal-record-status{font-size:11px;padding:3px 5px}
 .personal-portal .personal-record details{margin-top:7px;padding-top:7px}
 .personal-portal .personal-record summary{font-size:13px;min-height:44px;display:flex;align-items:center}
 .personal-portal .personal-hours-overview{gap:6px;padding:8px;margin:8px 0}
 .personal-portal .personal-hours-overview strong{font-size:18px}
 .personal-portal .personal-hours-clock,.personal-portal .personal-hours-duration strong{font-size:16px}
 .personal-portal .personal-hours-main{gap:8px;margin-top:6px}
 .personal-portal .personal-cost-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:8px}
 .personal-portal .personal-cost-totals>div{padding:4px;min-width:0}
 .personal-portal .personal-cost-totals strong{font-size:16px;overflow-wrap:anywhere}
 .personal-portal .personal-cost-totals span{font-size:11px;line-height:1.2}
 .personal-portal .personal-cost-table{max-height:none;overflow:visible}
 .personal-portal .personal-cost-table table{min-width:0;width:100%;table-layout:fixed}
 .personal-portal .personal-cost-table td,.personal-portal .personal-cost-table th{padding:5px 3px;font-size:12px;overflow-wrap:anywhere}
 .personal-portal .personal-cost-table small{font-size:11px;display:block}
 .personal-portal .personal-mobile-card-table{display:block;min-width:0!important;width:100%;table-layout:auto}
 .personal-portal .personal-mobile-card-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .personal-portal .personal-mobile-card-table tbody{display:block;width:100%}
 .personal-portal .personal-mobile-card-table tbody>tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 10px;border:1px solid var(--line);border-radius:8px;background:white;padding:10px;margin-bottom:7px}
 .personal-portal .personal-mobile-card-table tbody>tr>td,.personal-portal .personal-mobile-card-table tbody>tr>th{position:static;min-width:0;width:auto;border:0;padding:0;font-size:13px;background:transparent;overflow-wrap:anywhere;white-space:normal}
 .personal-portal .personal-mobile-card-table tbody>tr>:first-child{grid-column:1/-1;font-weight:600}
 .personal-portal .personal-mobile-card-table tbody>tr>:last-child{grid-column:1/-1}
 .personal-portal .personal-mobile-card-table tbody>tr>[data-mobile-label]:not(:first-child)::before{content:attr(data-mobile-label);display:block;font-size:11px;color:var(--muted);margin-bottom:2px;font-weight:500}
 .personal-portal .personal-mobile-card-table select{width:100%;min-height:44px}
 .personal-portal .personal-mobile-card-table .personal-time-range{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);width:100%;gap:3px}
 .personal-portal #personal-availability-form .personal-time-range input{width:100%;min-width:0;font-size:16px}
 .personal-portal .personal-mobile-card-table .personal-time-range input{min-width:0;width:100%}
 .personal-portal .preview-dialog:not(#personal-colleagues) .table-wrap:has(>.personal-mobile-card-table){max-height:none;overflow:visible;border:0}
 .personal-portal .own-profile-data{margin:8px 0}
 .personal-portal .own-profile-data>div{padding:7px 0;gap:8px}
 .personal-portal .own-profile-data dt,.personal-portal .own-profile-data dd{font-size:13px;min-width:0;overflow-wrap:anywhere}
 .personal-portal .time-approval-row{padding:10px;margin:7px 0}
 .personal-portal .time-approval-filters{gap:6px;padding:8px}
 .personal-portal .time-approval-row-main{gap:6px}
 .personal-portal .time-approval-pick strong{font-size:14px}
 .personal-portal .time-approval-hours strong{font-size:17px}
 .personal-portal .time-approval-row details{margin-top:6px}
 .personal-portal .personal-tables-filter{gap:5px}
 .personal-portal .personal-table-person{padding:8px;margin:5px 0}
 .personal-portal .personal-table-person p{margin:3px 0}
 .personal-portal .personal-table-map:not(.zoomed){max-height:175px}
 .personal-portal .personal-mobile-large{font-size:18px}
 .personal-portal .personal-mobile-large p,.personal-portal .personal-mobile-large label,.personal-portal .personal-mobile-large .personal-record p,.personal-portal .personal-mobile-large .personal-mobile-card-table tbody>tr>td,.personal-portal .personal-mobile-large .personal-mobile-card-table tbody>tr>th,.personal-portal .personal-mobile-large .own-profile-data dt,.personal-portal .personal-mobile-large .own-profile-data dd{font-size:18px}
 .personal-portal .personal-mobile-large h3,.personal-portal .personal-mobile-large .personal-record-head h3,.personal-portal .personal-mobile-large .personal-record-head h4{font-size:19px}
 .personal-portal .personal-mobile-large .personal-cost-totals{grid-template-columns:1fr}
 .personal-portal .personal-mobile-large .personal-cost-totals strong{font-size:22px}
 .personal-portal .personal-mobile-large .personal-cost-table td,.personal-portal .personal-mobile-large .personal-cost-table th{font-size:16px}
}
@media(max-width:760px){
 .personal-portal .personal-cost-totals>div{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px}
 .personal-portal .personal-cost-totals span{display:block;width:100%;white-space:normal}
 .personal-portal .personal-cost-totals strong{display:block;white-space:nowrap;font-size:16px;line-height:1.25}
 .personal-portal .personal-cost-table th:first-child{width:15%}
 .personal-portal .personal-mobile-large .personal-record strong,.personal-portal .personal-mobile-large .time-approval-pick strong{font-size:18px}
 .personal-portal .personal-mobile-large .personal-cost-totals strong{font-size:22px}
}
.clock-conflict{flex:1 1 100%;border:1px solid #aabdb2;border-radius:8px;padding:10px;margin:6px 0;background:#f0f5f1}.clock-conflict.has-conflict{border:2px solid #a13628;background:#fff0ea}.clock-conflict[hidden]{display:none!important}.clock-conflict p{margin:0 0 8px}.clock-conflict.has-conflict p{color:#82291f;font-weight:600}.clock-conflict-button{font-weight:700;min-height:44px}.clock-conflict select{margin-top:8px}.clock-conflict [hidden]{display:none!important}
/* The department leader uses the same compact time editor as Timer. */
#personal-leader .leader-time-review-dialog{position:fixed;inset:max(16px,8vh) 0 auto;margin:0 auto;width:min(340px,calc(100vw - 24px));height:fit-content;max-height:calc(100dvh - 32px);padding:.7rem;overflow:auto;border-radius:12px}
#personal-leader .leader-time-review-dialog>.section-title{margin:0 0 .5rem;padding:0 0 .4rem;position:static}
#personal-leader .leader-time-review-dialog h2{font-size:.95rem;margin:0}
#personal-leader .leader-time-review-dialog [data-personal-full]{display:none}
#personal-leader .leader-time-review-dialog .time-mini-editor{max-width:none;gap:.4rem;margin:0;font-size:.8rem}
#personal-leader .leader-time-review-dialog label{font-size:.8rem;gap:.25rem;min-width:0}
#personal-leader .leader-time-review-dialog input,#personal-leader .leader-time-review-dialog select{font-size:.8rem;min-width:0;padding:.4rem}
#personal-leader .leader-time-review-dialog .time-mini-hours{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:.35rem;align-items:end}
#personal-leader .leader-time-review-dialog button{font-size:.8rem;padding:.4rem .6rem}
#personal-leader .leader-time-review-dialog .actions{justify-content:flex-end}
#personal-leader .leader-time-review-dialog [data-leader-time-error]{color:#922525;font-size:.8rem}
@media(max-width:760px){.personal-portal #personal-leader .leader-time-review-dialog{height:fit-content;max-height:calc(100dvh - 24px);width:min(360px,calc(100vw - 20px));inset:12px 0 auto;margin:0 auto}.personal-portal #personal-leader .leader-time-review-dialog input,.personal-portal #personal-leader .leader-time-review-dialog select,.personal-portal #personal-leader .leader-time-review-dialog textarea{font-size:16px}.personal-portal #personal-leader .leader-time-review-dialog>.section-title{position:sticky;top:-.7rem}}

.workspace-access-note{display:block;margin-top:3px;font-weight:normal}.workspace-access-fields td{text-align:center}.workspace-access-fields input[type=checkbox]{width:20px;height:20px}.workspace-access-fields th[scope=row]{min-width:210px}.workspace-access-fields .table-wrap{max-height:480px}

/* Limited Home uses the same navigation groups and work cards as the main app. */
.restricted-home .compact-nav-links[hidden]{display:none}.restricted-home .sidebar nav .compact-nav-links>button{display:block;width:100%;padding:8px;border:0;border-radius:6px;background:transparent;color:var(--ink);font-size:14px;line-height:1.35;text-align:left;font-weight:600}.restricted-home .sidebar nav .compact-nav-links>button:hover{background:#e9f1e8}.restricted-home .restricted-nav-pending{display:block;padding:8px;font-size:13px;color:var(--muted)}.restricted-nav-pending small{display:block;font-size:11px}.restricted-home .home-button{cursor:pointer}.restricted-home .home-today p{color:var(--muted)}

.workshop-tools-toggle .workshop-toolbox-icon{width:18px;height:18px;flex:0 0 18px;pointer-events:none}

/* Hvem er på jobb: faste kolonner, grupper og kontaktvalg på forespørsel. */
#personal-who-working{width:min(1000px,96vw)}
.who-working-dates{display:flex;align-items:center;justify-content:center;gap:18px;margin:8px 0}.who-working-dates>button{font-size:28px;line-height:1;min-width:44px;min-height:44px}.who-working-dates label{margin:0}.who-working-dates input{font-size:18px;text-align:center;max-width:210px}.who-working-actions{justify-content:center;margin-bottom:20px}.who-working-group{margin:22px 0}.who-working-group-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-bottom:8px;border-bottom:2px solid #d8e4dd}.who-working-group-heading h3{margin:0;font-size:17px}.who-working-group-heading>span{font-size:12px;color:var(--muted);white-space:nowrap}.who-working-table{max-height:60vh;overflow:auto}.who-working-table table{width:100%;min-width:0;table-layout:auto}.who-working-table th{position:sticky;top:0;z-index:2;background:#edf2ee}.who-working-table th,.who-working-table td{padding:12px 8px;text-align:left;vertical-align:middle}.who-working-table td:first-child{width:48%}.who-working-table td small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.who-working-time{white-space:nowrap;font-variant-numeric:tabular-nums}.who-working-status{font-size:12px;font-weight:600}.who-working-status.status-present{color:#16613b}.who-working-status.status-pause{color:#81520d}.who-working-status.status-no-clock{color:#81520d}.who-working-contact{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border-radius:50%;color:#1e5139;background:#eef5ef}.who-working-empty{padding:24px;text-align:center;color:var(--muted)}
@media(max-width:600px){#personal-who-working{max-width:100vw;padding:14px}.who-working-dates{gap:8px}.who-working-group-heading{display:block}.who-working-group-heading h3{font-size:15px;margin-bottom:4px}.who-working-table th,.who-working-table td{padding:10px 4px;font-size:12px}.who-working-table td:first-child{width:auto}.who-working-table td small{font-size:11px}.who-working-status{font-size:11px}.who-working-time{font-size:11px}.who-working-contact{min-width:40px;min-height:44px;padding:6px}.who-working-table th:last-child,.who-working-table td:last-child{width:40px}.who-working-table td:first-child strong{overflow-wrap:anywhere}}
.personal-overview-item{min-width:0;position:relative;display:flex;flex-direction:column}.personal-overview-item>.preview-card{width:100%;height:100%;flex:1}.personal-overview-item[hidden]{display:none}.personal-overview-heading h2{margin:0}.overview-move-controls{display:flex;justify-content:flex-end;gap:6px;padding:6px}.overview-move-controls[hidden]{display:none}.overview-move-controls button{min-width:44px;min-height:40px}.overview-editing>.personal-overview-item{border:1px dashed #7b9e86;border-radius:12px;cursor:grab;background:#f0f5f1}.overview-editing>.personal-overview-item.overview-dragging{opacity:.5}.overview-editing>.personal-overview-item>.preview-card{cursor:grab}.overview-editing>.personal-overview-item>.preview-card:active{cursor:grabbing}
.personal-overview-item:has(>.preview-card[hidden]){display:none}
.personal-portal .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}

/* Tofaktor: lokal QR-kode med hvit marg for trygg skanning. */
.auth-setup-qr{display:block;width:280px;max-width:100%;height:auto;margin:12px auto;background:#fff}.auth-mfa-dialog details{margin:16px 0}.auth-mfa-dialog [data-mfa-error]{color:#a3212d}

/* Telefonvarsler: samme rolige popup og tydelige valg som Min side. */
#personal-push form,.personal-push-settings form{display:grid;gap:14px}#personal-push fieldset{display:grid;gap:10px;border:1px solid var(--line);border-radius:10px;padding:16px}#personal-push .check,.personal-push-settings .check{display:flex;align-items:center;gap:10px}#personal-push input[type=checkbox],.personal-push-settings input[type=checkbox]{width:auto}#personal-push .actions{margin-top:18px;flex-wrap:wrap}#personal-push [data-push-error],.personal-push-settings [data-push-error]{color:#a3212d}

/* Availability: quiet return link and saved periods beside the period rule. */
.availability-back-link{display:inline-block;font-size:13px;margin:0 0 6px;color:var(--muted);text-decoration:none}.availability-back-link:hover{text-decoration:underline;color:var(--wine)}
#rosterAvailability .availability-quick-top{grid-template-columns:repeat(3,minmax(0,1fr))}#rosterAvailability .availability-bulk-box{grid-column:1/-1}#rosterAvailability .availability-quick-top:not(:has(.availability-copy-box)){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.availability-period-overview{min-width:0;padding:12px;background:var(--paper);border:1px solid var(--line);border-radius:8px}.availability-period-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.availability-period-heading h3{font-size:15px;margin:0}.availability-period-item{padding:12px 0;border-top:1px solid var(--line);margin-top:10px}.availability-period-item strong{display:block;font-size:14px}.availability-period-item p{font-size:13px;margin:4px 0;color:var(--muted)}.availability-period-item.is-current>strong{color:var(--wine)}.availability-period-item .availability-period-conflict{color:var(--wine);font-weight:700}.availability-period-overview>.small{margin-top:12px}#rosterAvailability .availability-period-overview button{max-width:100%;white-space:normal}.availability-period-item button{font-size:13px}
@media(max-width:1000px){#rosterAvailability .availability-quick-top,#rosterAvailability .availability-quick-top:not(:has(.availability-copy-box)){grid-template-columns:1fr 1fr}#rosterAvailability .availability-copy-box{grid-column:1/-1}}
@media(max-width:650px){#rosterAvailability .availability-quick-top,#rosterAvailability .availability-quick-top:not(:has(.availability-copy-box)){grid-template-columns:minmax(0,1fr)}}

/* Saved periods stay a compact reference, leaving room for the working form. */
#rosterAvailability .availability-quick-top,#rosterAvailability .availability-quick-top:not(:has(.availability-copy-box)){grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr) minmax(220px,290px)}
#rosterAvailability .availability-quick-top:not(:has(.availability-copy-box)) .availability-bulk-box{grid-column:auto}
.availability-period-overview{padding:10px}.availability-period-heading{gap:4px}.availability-period-heading h3{font-size:14px}.availability-period-item{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;padding:7px 0 0;margin-top:7px}.availability-period-item strong{font-size:13px}.availability-period-item p{grid-column:1/-1;font-size:12px;margin:2px 0}.availability-period-item button{grid-column:2;grid-row:1;align-self:start}.availability-period-heading button{font-weight:400}
@media(max-width:1200px){#rosterAvailability .availability-quick-top,#rosterAvailability .availability-quick-top:not(:has(.availability-copy-box)){grid-template-columns:minmax(0,1fr) minmax(220px,290px)}#rosterAvailability .availability-quick-top:not(:has(.availability-copy-box)) .availability-bulk-box,#rosterAvailability .availability-bulk-box,#rosterAvailability .availability-copy-box{grid-column:1/-1}}
@media(max-width:650px){#rosterAvailability .availability-quick-top,#rosterAvailability .availability-quick-top:not(:has(.availability-copy-box)){grid-template-columns:minmax(0,1fr)}.availability-period-overview{max-width:none}}

/* Choose the period before entering days and times. */
.availability-period-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,290px);gap:12px;align-items:start;margin-bottom:12px}.availability-period-summary>.availability-rule-card{max-width:520px}
#rosterAvailability .availability-quick-top,#rosterAvailability .availability-quick-top:not(:has(.availability-copy-box)){display:flex;flex-wrap:wrap;align-items:start}
#rosterAvailability .availability-bulk-box{flex:1 1 500px;min-width:0}#rosterAvailability .availability-copy-box{flex:0 1 280px;min-width:0}
@media(max-width:650px){.availability-period-summary{grid-template-columns:minmax(0,1fr)}.availability-period-summary>.availability-rule-card{max-width:none}#rosterAvailability .availability-copy-box{flex:1 1 280px}}

.availability-more>summary{font-size:13px;color:var(--muted);cursor:pointer}.availability-more[open]>button{display:block;margin-top:8px}.availability-period-popup{width:min(1080px,94vw)}.availability-period-popup:has([data-period-type] option[value=whole]:checked){width:min(740px,94vw)}.availability-popup-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.availability-popup-dates label{min-width:0}.availability-popup-dates input,.availability-popup-dates select{max-width:100%;box-sizing:border-box}.availability-period-popup .availability-day{grid-template-columns:100px minmax(0,1fr) 120px 120px}.availability-popup-status{font-size:13px;margin-top:10px}.availability-period-popup .availability-more{margin-left:auto}@media(max-width:650px){.availability-popup-dates{grid-template-columns:minmax(0,1fr)}.availability-period-popup .availability-day{grid-template-columns:minmax(0,1fr)}}

.availability-person{display:flex;flex-direction:column;gap:3px;margin:4px 0 8px}.availability-person strong{font-size:17px}.availability-period-popup .availability-bulk-box{width:100%;box-sizing:border-box}.availability-period-popup .availability-quick-top{display:block}

/* The page heading identifies the selected person; keep identity fields fixed. */
.availability-editor-shell #rosterAvailability .availability-person{display:contents}.availability-editor-shell #rosterAvailability .availability-person>span,.availability-editor-shell #rosterAvailability .availability-person>strong{display:none}

/* Saved periods lead the employee workflow; new records open separately. */
.availability-editor-shell .availability-period-overview{max-width:520px;margin:0 0 12px}.availability-new-unavailable{display:block;margin-top:12px;font-size:13px}.availability-period-popup [hidden]{display:none!important}

/* Compact period registration and saved periods share the top row. */
.availability-top-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,1fr);gap:18px;align-items:start;margin-bottom:16px}
.availability-registration-card,.availability-top-grid>.availability-period-overview{min-width:0;background:#eef1ee;border:1px solid #d8dfd9;border-radius:10px;padding:12px}
.availability-registration-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.availability-registration-heading h3,.availability-top-grid .availability-period-heading h3{margin:0;font-size:16px}
.availability-registration-heading button{padding:7px 10px;font-size:13px;white-space:nowrap}
#rosterAvailability .availability-top-grid .availability-period-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
.availability-registration-card label{min-width:0;font-size:13px;gap:4px}
.availability-registration-card input,.availability-registration-card select{width:100%;min-width:0;box-sizing:border-box;padding:7px 8px;min-height:34px;font-size:13px;font-weight:400}
.availability-editor-shell .availability-top-grid>.availability-period-overview{max-width:none;margin:0}
.availability-top-grid .availability-period-item{margin-top:10px;padding-top:10px}
.availability-top-grid .availability-period-item strong{font-size:15px}
.availability-top-grid .availability-period-item p{font-size:13px}
#rosterAvailability [hidden]{display:none!important}
.availability-period-popup .availability-top-grid{display:block;margin-bottom:12px}
.availability-period-popup .availability-registration-card{padding:12px}
.availability-period-popup .availability-popup-dates{margin:0;gap:9px}
@media(max-width:800px){.availability-top-grid{grid-template-columns:minmax(0,1fr)}.availability-registration-card input,.availability-registration-card select{font-size:16px}}
@media(pointer:coarse){.availability-registration-card input,.availability-registration-card select{font-size:16px}}

/* Dense day editor: reduce row and bulk-panel height without scaling text. */
#rosterAvailability #availability-day-fields .availability-day-details{margin:4.8px 0 7.2px}
#rosterAvailability #availability-day-fields .availability-quick{padding:4.8px;margin:4.8px 0}
#rosterAvailability #availability-day-fields .availability-quick-top{gap:7.2px}
#rosterAvailability #availability-day-fields .availability-bulk-box{padding:6px}
#rosterAvailability #availability-day-fields .availability-bulk-box>strong{font-size:16px;line-height:19.2px}
#rosterAvailability #availability-day-fields .availability-quick .actions{gap:4.8px;margin:3.6px 0}
#rosterAvailability #availability-day-fields .availability-quick .row{gap:7.2px}
#rosterAvailability #availability-day-fields .availability-quick label{font-size:13px;line-height:16.8px;gap:2.4px}
#rosterAvailability #availability-day-fields .availability-quick button{font-size:14px;line-height:19.2px;padding:3.6px 7.2px;min-height:28.8px}
#rosterAvailability #availability-day-fields .availability-quick input,#rosterAvailability #availability-day-fields .availability-quick select{font-size:14px;line-height:21.6px;padding:2.4px 7.2px;min-height:28.8px;height:28.8px;box-sizing:border-box}
#rosterAvailability #availability-day-fields .availability-quick p{font-size:13px;line-height:16.8px;margin:3.6px 0!important}
#rosterAvailability #availability-day-fields .availability-days{gap:0;margin:4.8px 0}
#rosterAvailability #availability-day-fields .availability-day{gap:7.2px;padding:2.4px 0;min-height:0;grid-template-columns:108px minmax(336px,1fr) 120px 120px}
#rosterAvailability #availability-day-fields .availability-day .availability-options{gap:6px 12px;padding:0}
#rosterAvailability #availability-day-fields .availability-day .check{font-size:14px!important;line-height:19.2px;gap:4.8px;white-space:nowrap}
#rosterAvailability #availability-day-fields .availability-day strong{font-size:14px;line-height:19.2px}
#rosterAvailability #availability-day-fields .availability-day label{gap:1.2px;line-height:16.8px}
#rosterAvailability #availability-day-fields .availability-day:first-child label:not(.check){font-size:13px;white-space:nowrap}
#rosterAvailability #availability-day-fields .availability-day input:not([type=checkbox]):not([type=hidden]),#rosterAvailability #availability-day-fields .availability-day select{font-size:14px;line-height:21.6px;padding:2.4px 6px;min-height:28.8px;height:28.8px;box-sizing:border-box}
#rosterAvailability #availability-day-fields .availability-day input[type=checkbox]{width:15.6px;height:15.6px;min-height:15.6px;margin:0}
#rosterAvailability #availability-day-fields .availability-status-label select{min-width:150px}
#rosterAvailability #availability-day-fields .availability-day-details>p{font-size:13px;line-height:16.8px;margin:4.8px 0}
@media(max-width:760px){#rosterAvailability #availability-day-fields .availability-day{grid-template-columns:84px minmax(0,1fr) 102px 102px}#rosterAvailability #availability-day-fields .availability-options{grid-column:2/-1}}
@media(max-width:540px){#rosterAvailability #availability-day-fields .availability-day{grid-template-columns:1fr 1fr}#rosterAvailability #availability-day-fields .availability-day-name,#rosterAvailability #availability-day-fields .availability-options{grid-column:1/-1}#rosterAvailability #availability-day-fields .availability-day label{font-size:13px}}

/* Period entry and daily availability are separate forms and drafts. */
.availability-registration-card .availability-period-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
.availability-registration-card .actions{margin:10px 0 0;gap:6px}
.availability-registration-card .actions button{padding:6px 10px;min-height:28px;font-size:13px}
.availability-registration-card [data-independent-status]{font-size:12px;margin:6px 0 0}
.availability-registration-card [hidden]{display:none!important}
#rosterAvailability>.availability-layout>div>h3{font-size:18px;margin:0 0 9.6px}
#rosterAvailability #availability-day-fields .availability-day:not(:first-child)>.availability-options .availability-status-label,#rosterAvailability #availability-day-fields .availability-day:not(:first-child)>label[data-availability-base-time]{line-height:0;gap:0}
#rosterAvailability #availability-day-fields .availability-bulk-box{display:grid;grid-template-columns:auto 1fr;gap:4.8px 9.6px;align-items:center}
#rosterAvailability #availability-day-fields .availability-bulk-box>.actions{margin:0;justify-content:flex-start}
#rosterAvailability #availability-day-fields .availability-bulk-box>.row{grid-column:1/-1;align-items:center}
#rosterAvailability #availability-day-fields .availability-bulk-box>.row>label{display:flex;flex-direction:row;align-items:center;gap:4.8px;white-space:nowrap}
#rosterAvailability #availability-day-fields .availability-bulk-box>.row select{width:auto;min-width:144px}
#rosterAvailability #availability-day-fields .availability-bulk-box>.row input{width:90px}
@media(max-width:540px){#rosterAvailability #availability-day-fields .availability-bulk-box{grid-template-columns:1fr}#rosterAvailability #availability-day-fields .availability-bulk-box>.row{grid-column:auto}}

/* Increase the compact daily editor by 20%; leave hours and other limits unchanged. */
#rosterAvailability .availability-period-buttons{gap:12px}
#rosterAvailability .availability-period-buttons label{font-size:14px;gap:3.6px}
#rosterAvailability .availability-period-buttons input,#rosterAvailability .availability-period-buttons select{font-size:16px;padding:7.2px 9.6px}

/* Employee status has its own hierarchy; department remains a compact filter. */
.employee-overview-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 10px}
.employee-overview-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.09em;color:var(--muted);font-weight:600}
.employee-status-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.employee-status-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;text-align:left;white-space:normal;border:1px solid #dce3de;border-radius:12px;padding:20px;background:#fff;color:#24382b;min-width:0}
.employee-status-title{font-size:18px;font-weight:650;align-self:center}
.employee-status-number{font-size:34px;font-weight:650;line-height:1.2;grid-column:2;grid-row:1/3;font-variant-numeric:tabular-nums}
.employee-status-description{font-size:13px;font-weight:400;color:#617168}
.employee-status-action{grid-column:1/-1;font-size:12px;font-weight:400;margin-top:12px;color:#586d60}
.employee-status-current{background:#e7f0e9;border-color:#c3d7c9}
.employee-status-leave{background:#fbf3dc;border-color:#e7dbb3;color:#5c4a15}
.employee-status-leave .employee-status-description,.employee-status-leave .employee-status-action{color:#796633}
.employee-status-former{background:#ecefed;border-color:#d5dcd7;color:#58635c}
.employee-status-card[aria-pressed=true]{box-shadow:inset 0 4px 0 currentColor}
.employee-status-current[aria-pressed=true]{background:#1d4934;color:#fff;border-color:#1d4934}
.employee-status-current[aria-pressed=true] .employee-status-description,.employee-status-current[aria-pressed=true] .employee-status-action{color:#d7e7dc}
.employee-overview-filters{display:flex;align-items:end;gap:18px;flex-wrap:wrap;padding:22px 0 20px;margin-top:6px;border-bottom:1px solid var(--line)}
.employee-overview-filters label{font-size:13px;gap:6px}
.employee-overview-filters select,.employee-overview-filters input{width:265px;max-width:100%;height:41px;box-sizing:border-box;border-color:#bcc8c0;border-radius:7px;font-size:14px;padding:9px 11px}
.employee-overview-result{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 12px}
.employee-overview-result h2{font-size:19px;margin:0}
.employee-overview-result p{font-size:13px;color:var(--muted);margin:5px 0 0}
.employee-overview-result>span{font-size:13px;color:var(--muted)}
.employee-overview-help{margin:10px 0;font-size:13px}
.employee-overview-help>summary{font-weight:400;color:var(--muted)}
.employee-overview-help .banner{margin:10px 0}
@media(max-width:730px){.employee-status-cards{gap:8px}.employee-status-card{padding:12px;display:flex;flex-direction:column}.employee-status-title{font-size:14px;align-self:start}.employee-status-number{font-size:28px}.employee-status-description{font-size:12px}.employee-overview-filters label{flex:1;min-width:180px}.employee-overview-filters input,.employee-overview-filters select{width:100%}}
@media(max-width:440px){.employee-status-cards{grid-template-columns:1fr}.employee-status-card{display:grid;grid-template-columns:minmax(0,1fr) auto}.employee-status-action{margin-top:4px}}

/* 1.60.1 – smale handlinger samlet rett over Munu i begge verksteder. */
.manual-calendar-toolbar>.workshop-roster-actions{margin:0 0 12px;padding:0 0 12px;border:0;border-bottom:1px solid #dce4dc;border-radius:0;background:transparent}
.workshop-roster-actions .compact-distribution-status{margin:0 0 9px;font-size:12px;color:var(--muted,#65756c)}
.workshop-roster-actions .workshop-distribution-workflow{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;justify-items:normal}
.workshop-roster-actions :is(.workshop-roster-agreed,.workshop-roster-distribute,.workshop-roster-options,.workshop-roster-period){flex:0 1 auto;min-width:0}
.workshop-roster-actions :is(button,.workshop-roster-options summary){display:inline-flex;align-items:center;justify-content:center;gap:5px;width:auto;max-width:100%;min-width:0;min-height:34px;margin:0;padding:6px 13px;border:1px solid #bdcfc2;border-radius:22px;background:#edf4ed;color:#214b39;font-size:13px;font-weight:650;line-height:1.4;white-space:normal;text-align:center;cursor:pointer}
.workshop-roster-actions .workshop-roster-distribute>button{background:#eaf1f7;border-color:#c1d3df;color:#315c77}
.workshop-roster-actions .workshop-roster-period>button{background:#f7f0df;border-color:#e0d2ad;color:#75602c}
.workshop-roster-actions .workshop-roster-options details{margin:0;padding:0;border:0;background:transparent}
.workshop-roster-actions .workshop-roster-options summary{background:#fff;list-style:none}
.workshop-roster-actions .workshop-roster-options summary::-webkit-details-marker{display:none}
.workshop-roster-actions .workshop-roster-finish{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-left:auto;min-width:0}
.workshop-roster-actions .workshop-roster-save,.workshop-roster-actions .workshop-save-delete{display:flex;flex-wrap:wrap;align-items:center;gap:5px;min-width:0}
.workshop-roster-actions button.primary{background:var(--brand,#193b2d);border-color:var(--brand,#193b2d);color:white}
.workshop-roster-actions button.roster-permanent-delete{background:#e00020!important;border-color:#e00020!important;color:#fff!important;margin-left:0}.workshop-roster-actions button.roster-permanent-delete:hover{background:#ba001b!important;border-color:#ba001b!important}
.workshop-roster-actions .workshop-action-step{opacity:.65;font-weight:700}
.workshop-roster-actions :is(button,summary):focus-visible{outline:3px solid #bb883b;outline-offset:3px}
.workshop-roster-actions .roster-save-preview{flex-basis:100%;max-width:320px}
@media(max-width:700px){.workshop-roster-actions .workshop-roster-finish{margin-left:0;flex-basis:100%}.workshop-roster-actions :is(button,.workshop-roster-options summary){min-height:40px;padding:8px 12px}}

.workshop-roster-actions .workshop-roster-options summary::before,.workshop-roster-actions .workshop-roster-options summary::after{display:none!important}

/* 1.63.0 – fordelingsvalg som en diskret lenke ved hovedhandlingene. */
.workshop-roster-actions .workshop-roster-options summary{min-height:34px;padding:6px 4px;border:0;border-radius:0;background:transparent;color:#506f5d;text-decoration:underline;text-underline-offset:3px;box-shadow:none}
.period-clear-follow-up{margin:0 0 14px;padding:0 0 12px;border-bottom:1px solid #dce4dc}
.period-clear-follow-up h3{margin:8px 0;font-size:17px}
.workshop-roster-options .workshop-options-hint{display:block;margin:0 4px;font-size:11px;line-height:1.3;color:#65776b}
.workshop-roster-period{display:none}

/* Varsler og neste steg vises samlet rett over kalenderen. */
.workshop-calendar-feedback> :not(:empty){margin:12px 0 0}
.workshop-calendar-feedback .period-clear-follow-up{padding:12px 0 0;border-top:1px solid #dce4dc;border-bottom:0}

/* Lagrede månedsmaler ved sesongens datovalg. */
.season-saved-templates{margin:16px 0;padding:12px 14px;background:#f5f8f4;border:1px solid #dce4dc;border-radius:10px}
.season-saved-templates h3{margin:0 0 8px}
.season-template-months{display:flex;flex-wrap:wrap;gap:8px;padding:0;list-style:none}
.season-template-months>li{flex:1 1 145px;max-width:280px;padding:8px 10px;background:white;border:1px solid #dce4dc;border-radius:8px}
.season-template-months>li>a{font-weight:650}.season-template-months span{display:block;font-size:12px;margin-top:4px}.season-template-months details{font-size:12px;margin-top:5px}
[data-season-date-error]:empty{display:none}

/* Åpne arbeidsperioder i sesongplanen, uavhengig av beregningsperioden. */
.season-year-panel{margin:18px 0;padding-top:16px;border-top:1px solid #dce4dc}
.season-year-heading{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:10px}.season-year-heading>div:first-child{margin-right:auto}.season-year-heading h3{margin:0 0 4px}.season-year-heading p{margin:0}.season-year-heading form{margin:0}.season-year-heading label{display:flex;align-items:center;gap:8px;margin:0}.season-year-heading input{width:100px;min-height:36px}.season-year-heading button{min-height:36px;padding:7px 12px}
.season-year-wrap{max-height:640px;overflow:auto}.season-year-table{width:100%;min-width:1050px;table-layout:fixed;border-collapse:separate;border-spacing:0}.season-year-table thead th{padding:9px 2px;text-align:center;font-size:12px;background:#f0f4ef}.season-year-table thead th:first-child{left:0;z-index:7;text-align:left;padding-left:12px}.season-year-table tbody th[scope=row]{position:sticky;left:0;z-index:3;padding:7px 12px;background:#fff;border-right:1px solid #dce4dc;text-align:left;font-size:13px;line-height:1.25}.season-year-table tbody th small{display:block;font-size:11px;font-weight:400;color:#64756a;margin-top:3px}.season-year-table td{padding:0;height:46px;vertical-align:middle;border-bottom:1px solid #e2e8e1}.season-year-table .season-year-group th{position:static;padding:8px 12px;background:#e8efe7;font-size:13px}.season-year-group span{font-weight:400;font-size:11px;margin-left:12px;color:#64756a}.season-year-track{height:45px;position:relative;display:grid;overflow:clip}.season-year-boundary{position:absolute;top:0;bottom:0;width:1px;background:#e2e8e1;pointer-events:none}.season-year-table button.season-year-bar{position:relative;grid-row:1;align-self:center;min-width:0;width:auto;min-height:0;height:27px;padding:0 6px;margin:0;border:0;border-radius:4px;background:#39715b;color:white;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;box-shadow:none}.season-year-table button.season-year-bar:hover{background:#28573f}.season-year-empty{text-align:center;color:#64756a;padding:18px!important}
.season-year-table button.season-year-bar.is-expected{background:#f4e4b6;color:#65501f;border:1px dashed #b89747}
.season-year-person-choices{display:flex;flex-wrap:wrap;gap:8px 20px;max-height:240px;overflow:auto}.season-year-person-choices .check{min-width:220px}.season-year-person-choices small{display:block;font-size:11px;color:#64756a}.season-year-person-choices input{flex-shrink:0}

/* Månedsbolker uten inline-stiler: fungerer med appens strenge stilpolicy. */
.season-year-name-column{width:20%}.season-year-table td.season-year-month-cell{padding:3px;border-left:1px solid #e2e8e1;vertical-align:middle}
.season-year-table button.season-year-month-button{display:block;width:100%;height:38px;min-width:0;min-height:0;padding:0;margin:0;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none}
.season-year-month-fill{display:grid;align-items:center;height:38px;min-width:0}.season-year-month-fill .season-year-bar{grid-row:1;height:27px;min-width:3px;line-height:27px;overflow:hidden;text-overflow:clip;white-space:nowrap;border:0;border-radius:4px;background:#39715b;color:#fff;font-size:11px;text-align:center}
.season-year-month-fill .season-year-bar.is-expected{height:27px;line-height:25px;background:#f4e4b6;color:#65501f;border:1px dashed #b89747}.season-year-month-button:hover .season-year-bar{filter:brightness(.94)}
.season-year-days-28{grid-template-columns:repeat(28,minmax(0,1fr))}
.season-year-days-29{grid-template-columns:repeat(29,minmax(0,1fr))}
.season-year-days-30{grid-template-columns:repeat(30,minmax(0,1fr))}
.season-year-days-31{grid-template-columns:repeat(31,minmax(0,1fr))}
.season-year-from-1{grid-column-start:1}.season-year-length-1{grid-column-end:span 1}
.season-year-from-2{grid-column-start:2}.season-year-length-2{grid-column-end:span 2}
.season-year-from-3{grid-column-start:3}.season-year-length-3{grid-column-end:span 3}
.season-year-from-4{grid-column-start:4}.season-year-length-4{grid-column-end:span 4}
.season-year-from-5{grid-column-start:5}.season-year-length-5{grid-column-end:span 5}
.season-year-from-6{grid-column-start:6}.season-year-length-6{grid-column-end:span 6}
.season-year-from-7{grid-column-start:7}.season-year-length-7{grid-column-end:span 7}
.season-year-from-8{grid-column-start:8}.season-year-length-8{grid-column-end:span 8}
.season-year-from-9{grid-column-start:9}.season-year-length-9{grid-column-end:span 9}
.season-year-from-10{grid-column-start:10}.season-year-length-10{grid-column-end:span 10}
.season-year-from-11{grid-column-start:11}.season-year-length-11{grid-column-end:span 11}
.season-year-from-12{grid-column-start:12}.season-year-length-12{grid-column-end:span 12}
.season-year-from-13{grid-column-start:13}.season-year-length-13{grid-column-end:span 13}
.season-year-from-14{grid-column-start:14}.season-year-length-14{grid-column-end:span 14}
.season-year-from-15{grid-column-start:15}.season-year-length-15{grid-column-end:span 15}
.season-year-from-16{grid-column-start:16}.season-year-length-16{grid-column-end:span 16}
.season-year-from-17{grid-column-start:17}.season-year-length-17{grid-column-end:span 17}
.season-year-from-18{grid-column-start:18}.season-year-length-18{grid-column-end:span 18}
.season-year-from-19{grid-column-start:19}.season-year-length-19{grid-column-end:span 19}
.season-year-from-20{grid-column-start:20}.season-year-length-20{grid-column-end:span 20}
.season-year-from-21{grid-column-start:21}.season-year-length-21{grid-column-end:span 21}
.season-year-from-22{grid-column-start:22}.season-year-length-22{grid-column-end:span 22}
.season-year-from-23{grid-column-start:23}.season-year-length-23{grid-column-end:span 23}
.season-year-from-24{grid-column-start:24}.season-year-length-24{grid-column-end:span 24}
.season-year-from-25{grid-column-start:25}.season-year-length-25{grid-column-end:span 25}
.season-year-from-26{grid-column-start:26}.season-year-length-26{grid-column-end:span 26}
.season-year-from-27{grid-column-start:27}.season-year-length-27{grid-column-end:span 27}
.season-year-from-28{grid-column-start:28}.season-year-length-28{grid-column-end:span 28}
.season-year-from-29{grid-column-start:29}.season-year-length-29{grid-column-end:span 29}
.season-year-from-30{grid-column-start:30}.season-year-length-30{grid-column-end:span 30}
.season-year-from-31{grid-column-start:31}.season-year-length-31{grid-column-end:span 31}

.season-year-table button.season-year-month-button{height:auto;min-height:38px}.season-year-month-stack{display:grid;gap:2px}.season-year-month-empty{display:block;line-height:38px;color:#79867e}.season-year-month-fill .season-year-event-holiday,.season-year-month-fill .season-year-event-absence{background:#efd6dc;color:#783848}.season-year-month-fill .season-year-event-pending{background:#fff4ce;color:#7c6424;border:1px dashed #bca66a}.season-year-month-fill .season-year-event-availability{background:#dceaf5;color:#355b76}.season-month-details>section{padding:10px 0;margin-bottom:12px;border-bottom:1px solid #dce4dc}.season-month-details h3{margin-top:14px}.season-month-details p{margin:6px 0}.season-month-details ul{margin:6px 0;padding-left:22px}

.season-results .season-capacity-note, .season-result-month .season-capacity-note { display:block; margin-top:0.3rem; line-height:1.4; }

.season-result-month { margin:1.2rem 0; padding:1rem; border:1px solid var(--border,#dce4df); border-radius:12px; }
.season-result-month h3 { text-transform:capitalize; margin-top:0; }
.season-result-month details { margin-top:1rem; }
.season-month-people { margin:1rem 0; }
.season-month-people h4 { margin:0 0 .5rem; }
.season-month-people li { margin:.45rem 0; }

.season-month-people .season-month-person-details { margin:.3rem 0 .7rem; font-size:.9em; line-height:1.4; }
.season-month-person-details li { margin:.2rem 0; }

.po-document-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 24rem; overflow: auto; }
[data-poweroffice-documents] { margin-top: 1.5rem; }
[data-poweroffice-documents] textarea { display: block; width: 100%; box-sizing: border-box; }

.season-result-cards { display:grid; gap:.65rem; margin:1rem 0; }
details.season-result-card { margin:0; border:1px solid #b8cdbf; border-radius:14px; background:#f1f6f2; }
details.season-result-card > summary.season-result-card-summary { display:flex; align-items:center; gap:1.5rem; padding:1rem 1.25rem; margin:0; border:0; border-radius:14px; color:#183c2d; cursor:pointer; list-style:none; font:inherit; }
details.season-result-card > summary.season-result-card-summary::-webkit-details-marker { display:none; }
details.season-result-card > summary.season-result-card-summary:hover { background:#e5efe8; }
details.season-result-card > summary.season-result-card-summary:focus-visible { outline:3px solid #357559; outline-offset:3px; }
.season-result-card-title { flex:1; font-size:1.15em; font-weight:700; text-transform:capitalize; }
.season-result-card-values { display:flex; gap:1.5rem; font-size:.9em; }
.season-result-card-values > span { display:grid; gap:.1rem; color:#59685f; }
.season-result-card-values strong { color:#193d2c; font-size:1.1em; }
.season-result-card-open { display:flex; gap:.7rem; align-items:center; }
.season-result-card-open small { font-weight:400; color:#76602e; }
.season-result-card-open > span { white-space:nowrap; border:1px solid #9ebbaa; border-radius:20px; padding:.4rem .85rem; font-weight:600; }
@media(max-width:650px) { details.season-result-card > summary.season-result-card-summary { gap:.7rem; flex-wrap:wrap; padding:.8rem; } .season-result-card-title { flex-basis:100%; } .season-result-card-values { flex:1; gap:1rem; } .season-result-card-open { flex-direction:column; gap:.2rem; } }

.stored-template-cards { display:grid; gap:.65rem; margin:1rem 0; }
.stored-template-card { display:flex; align-items:center; gap:.6rem; padding:.4rem .9rem; border:1px solid #b8cdbf; border-radius:14px; background:#f1f6f2; }
.stored-template-card-report { flex:1; min-width:0; }
.stored-template-card-report details.season-result-card { border:0; background:transparent; }
.stored-template-card-report details.season-result-card > summary.season-result-card-summary { gap:1rem; padding:.65rem; }
.stored-template-card-actions { display:flex; gap:.5rem; flex-shrink:0; }
.stored-template-card-actions button { padding:.45rem .8rem; font-size:.9em; }
.stored-template-card-actions [data-delete-single-month] { border-color:#c6787a; color:#ae2231; }
@media(max-width:850px) { .stored-template-card { flex-wrap:wrap; } .stored-template-card-actions { width:100%; justify-content:flex-end; padding-bottom:.4rem; } }

details.season-result-card > summary.season-result-card-summary::before { display:none; }
.season-result-card-arrow { font-size:1.35em; font-weight:400; line-height:1; }
.stored-template-card-actions { width:auto; padding:0; }
@media(max-width:650px) { .season-result-card-title { flex-basis:auto; } .stored-template-card { flex-wrap:nowrap; } .stored-template-card-actions { width:auto; padding:0; } }

.season-result-card-arrow svg { display:block; width:36px; height:28px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

/* Tidsrom for én person beholdes på samme rad, også med tre eller flere bolker. */
.season-template-editor [data-season-level]{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px;align-items:center}
.season-template-editor.panel .season-template-interval{flex:0 0 auto;max-width:none}
.season-template-editor .season-template-interval>.row{max-width:none;flex-wrap:nowrap}
.season-template-editor.panel .season-template-level>strong{white-space:nowrap}

/* Tettere tidsrom uten å slå sammen tidslinjene. */
.season-template-editor .season-template-interval .season-interval-active-caption{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.season-template-editor.panel .season-template-interval input[type=time]{width:76px;min-width:76px;padding:3px 4px;min-height:26px;font-size:12px}
.season-template-editor.panel .season-template-interval select{padding:3px 4px;min-height:26px;font-size:12px;max-width:94px}
.season-template-editor.panel .season-template-interval>.row{gap:3px}
.season-template-editor .season-template-interval .staffing-timeline-range{height:20px;margin:0 4px!important;width:calc(100% - 8px)}

/* Flere synlige tidsrom: behold klokkeslettene, komprimer velgere og radhandlinger. */
.season-template-editor.panel .season-template-level{grid-template-columns:48px minmax(0,1fr) 80px;gap:5px}
.season-template-editor [data-season-level]{gap:4px}
.season-template-editor.panel .season-template-interval input[type=time]{width:50px;min-width:50px;padding:3px 2px;font-size:11px;min-height:25px}
.season-template-editor.panel .season-template-interval input[type=time]::-webkit-calendar-picker-indicator{display:none}
.season-template-editor.panel .season-template-interval select{width:76px;max-width:76px;padding:3px 1px;font-size:11px;min-height:25px}
.season-template-editor.panel select[name=intervalMode]:has(option[value=time]:checked){width:20px;min-width:20px;max-width:20px;font-size:0}
.season-template-editor.panel select[name=intervalMode] option{font-size:12px}
.season-template-editor.panel .season-template-interval>.row{gap:2px}
.season-template-editor.panel .season-template-interval .check{gap:0}
.season-template-editor.panel .season-template-interval input[type=checkbox]{width:13px;height:13px;min-width:13px;margin:0}
.season-template-editor .season-template-interval+.season-template-interval{padding-left:4px}
.season-template-editor.panel .season-level-actions button{font-size:11px;padding:3px 4px;min-height:25px}
@media(max-width:540px){.season-template-editor.panel .season-template-level{grid-template-columns:minmax(0,1fr)}}

/* Sesongmåned: nøkkeltall først, detaljer ved behov. */
.season-month-conclusion{padding:12px 14px;background:#edf4ef;border-left:4px solid #386b56;border-radius:6px}
.season-month-conclusion span{display:block;font-size:12px;margin-top:5px}
.season-month-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:16px 0}
.season-month-metrics>div{padding:12px;border:1px solid #dce4df;border-radius:9px;background:#fafcfb}
.season-month-metrics dt{font-size:12px;color:#53645a}
.season-month-metrics dd{margin:6px 0 0;font-size:22px;font-weight:650;line-height:1.3}
.season-month-metrics small{display:block;font-size:11px;font-weight:400;margin-top:5px}
.season-month-expected{padding:8px 12px;background:#fff8e3;border-radius:6px;font-size:13px}
.season-month-people h5{font-size:13px;margin:15px 0 5px}
.season-month-people li{margin:5px 0}.season-month-person-details{margin-top:4px}

/* Compact roster: stable names/dates, full clock values and small coloured slots. */
.roster-colour-legend{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;margin:8px 0 6px;font-size:11px;color:#52665a}
.roster-colour-legend>span{display:inline-flex;align-items:center;gap:5px}.roster-colour-legend i{display:inline-block;width:10px;height:10px;border:1px solid #9ebba6;border-radius:2px}.roster-key-assigned{background:#dceedd}.roster-colour-legend .roster-key-open{background:#ffe8a1;border-color:#c5a147}.roster-colour-legend .roster-key-task{background:#dce7f6;border-color:#a4b9d4}.roster-colour-legend b{color:#995b10}
.roster-compact-calendar{--roster-day-width:44px;border:1px solid #c5d1c9;border-radius:5px;background:#fff;max-height:72vh;scrollbar-gutter:stable;overscroll-behavior:contain}
.roster-compact-calendar table{border-collapse:separate;border-spacing:0;table-layout:fixed;min-width:100%;font-size:12px;font-variant-numeric:tabular-nums}
.roster-compact-calendar.manual-month-calendar :is(th,td),.roster-compact-calendar.kitchen-month-calendar :is(th,td){width:var(--roster-day-width);min-width:var(--roster-day-width)!important;max-width:var(--roster-day-width)!important;padding:2px;border-right:1px solid #dfe5df;border-bottom:1px solid #dfe5df;vertical-align:middle;line-height:1.15}
.roster-compact-calendar.manual-month-calendar tr>th:first-child,.roster-compact-calendar.kitchen-month-calendar tr>th:first-child{position:sticky;left:0;z-index:2;width:180px;min-width:180px!important;max-width:180px!important;background:#fff;text-align:left;padding:5px 8px;white-space:normal;box-shadow:1px 0 #c5d1c9}
.roster-compact-calendar .roster-person-name{display:block;font-size:13px;font-weight:750;line-height:1.2;color:#1b3024;overflow-wrap:normal;word-break:normal}
.roster-compact-calendar .manual-month-name small,.roster-compact-calendar .manual-month-name .manual-month-name-hours{font-size:11px;font-weight:400;line-height:1.2;color:#627267;max-width:none;white-space:normal;margin:2px 0 0;padding:0;background:none;border:0;display:block}
.roster-compact-calendar .manual-month-name .manual-month-agreement-hours{margin-top:1px;font-size:11px}
.roster-compact-calendar.manual-month-calendar thead th,.roster-compact-calendar.kitchen-month-calendar thead th{position:sticky;top:0;z-index:4;height:45px;background:#f0f4ef;color:#53675a;text-align:center;box-shadow:0 1px #c5d1c9}
.roster-compact-calendar.manual-month-calendar thead th:first-child,.roster-compact-calendar.kitchen-month-calendar thead th:first-child{z-index:6;background:#edf3ed;font-size:11px;text-align:left}
.roster-compact-calendar.manual-month-calendar th button,.roster-compact-calendar.kitchen-month-calendar thead th button{min-height:29px;padding:2px 1px;border:0;border-radius:3px;background:transparent;color:inherit;box-shadow:none;font-size:12px;font-weight:700;line-height:1.2}
.roster-compact-calendar.manual-month-calendar th button[aria-pressed=true]{background:#25503b;color:#fff}
.roster-compact-calendar .manual-day-opening-check{right:1px;top:1px}.roster-compact-calendar .manual-day-opening-check input{width:10px;height:10px;margin:0}
.roster-compact-calendar.manual-month-calendar td .month-open-shift,.roster-compact-calendar.kitchen-month-calendar td .month-open-shift{display:block;width:100%;min-height:33px;margin:0;padding:3px 1px;border:1px solid #a8c8ae;border-radius:3px;background:#dceedd;color:#214832;font-size:12px;font-weight:700;line-height:1.1;white-space:normal;overflow:visible;opacity:1;text-align:center}
.roster-compact-calendar td .month-open-shift+.month-open-shift{margin-top:3px}
.roster-compact-calendar .roster-clock{position:relative;display:inline-grid;grid-template-columns:1fr;gap:1px;max-width:100%;font-size:12px;line-height:1.05;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap;word-break:normal;overflow:visible}
.roster-compact-calendar .roster-clock>span:not(.roster-clock-separator){display:block;white-space:nowrap;overflow:visible;max-width:none}
.roster-clock-separator{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.roster-compact-calendar td .month-open-shift>small{font-size:11px;font-weight:500;line-height:1.1;margin-top:2px;max-width:100%;white-space:normal}
.roster-compact-calendar td .month-open-shift.workshop-open-shift,.roster-compact-calendar td .month-open-shift.workshop-open-shift.booking-approved-shift{background:#ffe8a1!important;border-color:#c9a94f;color:#684b0c}
.roster-compact-calendar td .month-open-shift.booking-need-shift{border-style:dashed}
.roster-compact-calendar .workday-cell{gap:3px;min-height:33px;padding:0;border:0;background:transparent;border-radius:3px;text-align:center}
.roster-compact-calendar .workday-task{padding:3px 1px;border:1px solid #a8c8ae;border-radius:3px;background:#dceedd;color:#214832}
.roster-compact-calendar .workday-task-baking,.roster-compact-calendar .workday-task-office{background:#dce7f6;border-color:#a4b9d4;color:#2f4f76}
.roster-compact-calendar .workday-task small{font-size:11px;line-height:1.1;max-width:100%;margin-top:2px}.roster-compact-calendar .workday-task-restaurant>small{display:none}
.roster-compact-calendar .workday-cell-empty,.roster-compact-calendar .manual-month-employee-empty{min-height:35px;border:0;color:#9ca99f;font-size:12px;background:transparent}
.roster-compact-calendar .manual-month-add-cell,.roster-compact-calendar.kitchen-month-calendar .manual-month-add{min-height:25px;padding:1px;font-size:17px;color:#50755e}
.roster-compact-calendar.manual-month-calendar .manual-month-total-column,.roster-compact-calendar.kitchen-month-calendar .manual-month-total-column{width:70px;min-width:70px!important;max-width:70px!important;background:#f0f5f0;border-left:1px solid #c5d1c9;text-align:center;font-size:12px;font-weight:750}
.roster-compact-calendar.manual-month-calendar .manual-month-department th,.roster-compact-calendar.kitchen-month-calendar .kitchen-responsibility-heading th{position:static;width:auto;min-width:0!important;max-width:none!important;height:28px;padding:5px 9px;border-top:3px solid #698eb2;background:#d9e5f1;color:#254867;font-size:13px;font-weight:750;text-align:left;box-shadow:none}
.roster-compact-calendar.manual-month-calendar .roster-department-waiters th{border-top-color:#52815f;background:#d9e9dc;color:#244e37}
.roster-compact-calendar.manual-month-calendar .roster-department-wash th{border-top-color:#9680b1;background:#e7dff0;color:#54416f}
.roster-compact-calendar .kitchen-responsibility-heading span{margin-left:12px;font-size:11px;font-weight:400}
.roster-compact-calendar.manual-month-calendar .roster-saturday:not(.manual-day-marked):not(.manual-month-selected-day):not(.manual-month-red-day){background:#f1f3ef}
.roster-compact-calendar.manual-month-calendar .manual-month-sunday:not(.manual-day-marked):not(.manual-month-selected-day){background:#fbebeb}
.roster-compact-calendar.manual-month-calendar :is(th,td).manual-month-red-day{background:#fae4e5!important;color:#993743}
.roster-compact-calendar .manual-holiday-name,.roster-compact-calendar .manual-red-day-status{color:#a32e36;font-size:11px;line-height:1.1;overflow-wrap:normal;word-break:normal}
.roster-compact-calendar.manual-month-calendar :is(th,td).roster-day-closed{background:#f1eeee!important;color:#8a7375}
.roster-compact-calendar .manual-day-opening-status{font-size:11px;line-height:1.1}
.roster-compact-calendar button.opening-deviation{border:1px solid #ad6500!important;background:#fff0d5!important}
.roster-compact-calendar td .month-open-shift>small.opening-deviation-label{font-size:0!important;line-height:1}.roster-compact-calendar .opening-deviation-label::before{content:'⚠';font-size:11px}
.roster-compact-calendar :is(button,a):focus-visible{outline:2px solid #255b3d;outline-offset:1px}
/* The combined publication overview uses the same clocks and compact columns. */
.combined-roster-view .roster-compact-calendar.combined-roster tr>th:first-child{width:180px;min-width:180px;max-width:180px;padding:5px 8px;font-size:13px;line-height:1.2}
.combined-roster-view .roster-compact-calendar.combined-roster tr:not(.combined-group-heading)>td,.combined-roster-view .roster-compact-calendar.combined-roster thead th:not(:first-child){width:auto;min-width:0;max-width:none;padding:2px;vertical-align:middle}
.combined-roster-view .roster-compact-calendar.combined-roster .combined-shift{padding:3px 1px;margin:1px 0 3px;background:#dceedd;border:1px solid #a8c8ae;border-radius:3px;text-align:center;line-height:1.1;font-size:11px;overflow:hidden}
.combined-roster-view .roster-compact-calendar.combined-roster .combined-shift-open{background:#ffe8a1;border-color:#c9a94f;color:#684b0c}
.combined-roster-view .roster-compact-calendar.combined-roster .combined-shift>small{font-size:11px;line-height:1.15;margin-top:2px;white-space:normal;overflow-wrap:anywhere}
.combined-roster-view .roster-compact-calendar.combined-roster .combined-group-heading th,.combined-roster-view .roster-compact-calendar.combined-roster .combined-group-heading td{height:28px;padding:5px 8px;border-top-width:3px;font-size:12px}
@media(max-width:760px){.roster-compact-calendar{max-height:70dvh}.roster-colour-legend{gap:5px 12px;font-size:11px}.roster-compact-calendar .roster-person-name{font-size:13px}}

.roster-compact-calendar.manual-month-calendar tr.roster-department-waiters>th:first-child{background:#d9e9dc;color:#244e37}
.roster-compact-calendar.manual-month-calendar tr.roster-department-wash>th:first-child{background:#e7dff0;color:#54416f}
.roster-compact-calendar.kitchen-month-calendar tr.kitchen-responsibility-heading>th:first-child{background:#d9e5f1;color:#254867}

/* Lunch/evening identity stays visible when a shift has a warning. */
.roster-colour-legend .roster-key-lunch{background:#dbeafa;border-color:#92b5d8}.roster-colour-legend .roster-key-task{background:#ece0f5;border-color:#b49acb}.roster-colour-legend .roster-key-both{background:linear-gradient(90deg,#dbeafa 50%,#dceedd 50%)}
.roster-compact-calendar :is(.month-open-shift,.workday-task,.combined-shift):has([data-roster-daypart="lunch"]):not(.workshop-open-shift):not(.combined-shift-open):not(.workday-task-baking):not(.workday-task-office){background:#dbeafa!important;border-color:#92b5d8;color:#254d73}
.roster-compact-calendar :is(.month-open-shift,.workday-task,.combined-shift):has([data-roster-daypart="evening"]):not(.workshop-open-shift):not(.combined-shift-open):not(.workday-task-baking):not(.workday-task-office){background:#dceedd!important;border-color:#a8c8ae;color:#214832}
.roster-compact-calendar :is(.month-open-shift,.workday-task,.combined-shift):has([data-roster-daypart="both"]):not(.workshop-open-shift):not(.combined-shift-open):not(.workday-task-baking):not(.workday-task-office){background:linear-gradient(90deg,#dbeafa 50%,#dceedd 50%)!important;border-color:#94b6ad;color:#24493e}
.roster-compact-calendar .workday-task.workday-task-baking,.roster-compact-calendar .workday-task.workday-task-office{background:#ece0f5!important;border-color:#b49acb;color:#60457c}
.roster-compact-calendar button.opening-deviation{outline:1px solid #ad6500;outline-offset:-1px}
.roster-daypart-counts{display:flex;justify-content:center;gap:3px;white-space:nowrap;font-size:11px;font-weight:700;line-height:1.2;margin:3px 0 1px;letter-spacing:0;text-transform:none}
.roster-daypart-counts>span:first-child{color:#254d73}.roster-daypart-counts>span:last-child{color:#214832}

.roster-compact-calendar.manual-month-calendar button.opening-deviation:not(.workshop-open-shift):has([data-roster-daypart="lunch"]),.roster-compact-calendar.kitchen-month-calendar button.opening-deviation:not(.workshop-open-shift):has([data-roster-daypart="lunch"]){background:#dbeafa!important}
.roster-compact-calendar.manual-month-calendar button.opening-deviation:not(.workshop-open-shift):has([data-roster-daypart="evening"]),.roster-compact-calendar.kitchen-month-calendar button.opening-deviation:not(.workshop-open-shift):has([data-roster-daypart="evening"]){background:#dceedd!important}
.roster-compact-calendar.manual-month-calendar button.opening-deviation:not(.workshop-open-shift):has([data-roster-daypart="both"]),.roster-compact-calendar.kitchen-month-calendar button.opening-deviation:not(.workshop-open-shift):has([data-roster-daypart="both"]){background:linear-gradient(90deg,#dbeafa 50%,#dceedd 50%)!important}

/* Public holidays remain red through every employee row, including closed days. */
.roster-compact-calendar.manual-month-calendar :is(th,td).manual-month-red-day,.roster-compact-calendar.kitchen-month-calendar :is(th,td).manual-month-red-day,.combined-roster-view .roster-compact-calendar.combined-roster :is(th,td).manual-month-red-day{background:#dc4545!important;color:#fff}
.roster-compact-calendar .manual-month-red-day :is(.manual-holiday-name,.manual-red-day-status,.manual-day-opening-status){color:#fff}
.roster-compact-calendar thead th.manual-month-red-day button,.roster-compact-calendar .manual-month-red-day :is(.manual-month-add-cell,.manual-month-add){color:#fff}

/* Keep short periods as compact as full months instead of stretching names/days. */
.roster-compact-calendar.manual-month-calendar table,.roster-compact-calendar.kitchen-month-calendar table{width:var(--roster-table-width);min-width:0}
.roster-compact-calendar.kitchen-month-calendar thead th:last-child{width:70px;min-width:70px!important;max-width:70px!important}

/* Compact row height, allowing stacked tasks to grow naturally. */
.roster-compact-calendar.manual-month-calendar tbody tr:not(.manual-month-department)>th:first-child,.roster-compact-calendar.kitchen-month-calendar tbody tr:not(.kitchen-responsibility-heading)>th:first-child{padding:2px 8px}
.roster-compact-calendar.manual-month-calendar tbody td,.roster-compact-calendar.kitchen-month-calendar tbody td{padding:1px 2px}
.roster-compact-calendar .workday-cell.workday-cell-empty,.roster-compact-calendar .manual-month-employee-empty{min-height:24px;padding:0}
.roster-compact-calendar.manual-month-calendar td .month-open-shift,.roster-compact-calendar.kitchen-month-calendar td .month-open-shift{min-height:30px;padding:1px}
.roster-compact-calendar .workday-cell{min-height:30px;gap:2px}
.roster-compact-calendar .workday-task{padding:1px}
.roster-compact-calendar td .month-open-shift+.month-open-shift{margin-top:2px}

/* Dedicated full-width editing room for both workshops. */
html.planning-room .sidebar,html.planning-room .topbar,html.planning-room .mobile-workshop-nav{display:none!important}
html.planning-room main{margin-left:0!important}
html.planning-room .view{max-width:none!important;width:100%;padding:8px 10px 20px!important}
html.planning-room .view>.heading,html.planning-room .view>.banner{display:none}
html.planning-room .manual-month-planner,html.planning-room .kitchen-month-planner{margin:0;padding:8px;border:0}
html.planning-room .manual-calendar-toolbar{padding:8px;margin-top:8px}
html.planning-room .roster-compact-calendar{max-height:calc(100dvh - 170px)}
html.planning-room .manual-calendar-primary{gap:8px}
.planning-room-open{white-space:nowrap}
.planning-room-hold{position:fixed;inset:0;z-index:2000;background:#f6f7f5ed;display:grid;place-items:center;padding:20px}
.planning-room-hold>section{max-width:540px;background:white;border:1px solid #c5d1c9;border-radius:12px;padding:28px}

/* Distribution stays directly against the dates in the full-width room. */
.planning-room-distribution{position:sticky;top:0;z-index:12;margin:2px 0!important;padding:4px 6px!important;border:1px solid #c5d1c9;border-radius:4px;background:#f8faf7}
.planning-room-distribution .compact-distribution-status:empty{display:none}
.planning-room-distribution .workshop-distribution-workflow{gap:5px;align-items:center}
.planning-room-distribution :is(button,summary){min-height:30px!important;padding:4px 9px!important;font-size:12px!important}
.planning-room-distribution .workshop-roster-finish{margin-left:auto}
.roster-compact-calendar .roster-person-name{font-size:12px;line-height:1.05}
.roster-compact-calendar .manual-month-name .manual-month-agreement-hours{margin-top:1px;font-size:11px;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.planning-room-distribution{display:flex;align-items:center;flex-wrap:wrap;gap:3px 10px}
.planning-room-distribution.workshop-roster-actions .compact-distribution-status{margin:0;font-size:11px;line-height:1.1}
.planning-room-distribution.workshop-roster-actions .workshop-distribution-workflow{flex:1;min-width:0;width:auto;gap:5px}
.planning-room-distribution .workshop-roster-options{display:flex;align-items:center;gap:5px}
.planning-room-distribution .workshop-options-hint{margin:0;font-size:11px;line-height:1}

.planning-room-munu{display:flex;align-items:center;gap:5px 12px;margin:3px 0;padding:3px 6px;background:#f8faf7;border:1px solid #dce4dc;border-radius:4px}
.planning-room-munu .booking-update-compact{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:0;padding:0;border:0;background:transparent}
.planning-room-munu .booking-update-summary{display:contents}
.planning-room-munu :is(button,.button){min-height:29px!important;padding:4px 9px!important;font-size:12px!important}
.planning-room-munu .workshop-calendar-view-controls{margin-left:auto}
.planning-room-munu{justify-content:flex-start}
.planning-room-munu .booking-update-summary{display:flex;align-items:center;gap:10px;margin:0;padding:0;border:0;background:transparent}
.planning-room-munu .workshop-calendar-view-controls{position:static!important;inset:auto!important;gap:4px;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.roster-compact-calendar :is(.month-open-shift,.workday-task)>.roster-clock{display:grid}
.roster-compact-calendar td .month-open-shift>small{display:block;margin-top:0;line-height:1}

/* Availability workspace: requested 40 percent reduction on large screens. */
@media(min-width:761px){main>.view:has(#rosterAvailability){zoom:.6;max-width:1600px}dialog.availability-period-popup{zoom:.6}}

/* Compact employee selection; Fullscreen retains the common popup behavior. */
.report-popup.report-popup-compact:not(.report-popup-full){width:min(36rem,calc(100vw - 2rem))}
.report-popup-compact .report-popup-head{gap:8px;padding:12px}
.report-popup-compact .report-popup-head h2{font-size:1.05rem}
.report-popup-compact .report-popup-head button{padding:6px 10px}
.agreed-person-selection p{margin:8px 0}
.agreed-person-selection input[type="checkbox"]{flex-shrink:0}

/* Compact distribution rows: percentage, people, status and action together. */
.distribution-person-overview>p{margin:0 0 10px}
.distribution-person-row{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.distribution-person-label small,.distribution-person-action small{display:block;font-size:12px;color:var(--muted)}
.distribution-person-names{display:flex;flex-wrap:wrap;gap:3px 12px;font-size:13px;line-height:1.5}
.distribution-person-action{text-align:right}.distribution-person-action button{padding:5px 10px;font-size:13px;white-space:nowrap;margin-top:3px}
.distribution-person-next{border-left:3px solid #305e4b;padding-left:8px;background:#f2f7f3}
.distribution-person-action .distribution-processed{color:#305e4b}
@media(max-width:480px){.distribution-person-row{grid-template-columns:65px minmax(0,1fr);gap:6px}.distribution-person-action{grid-column:2;text-align:left;display:flex;align-items:center;gap:10px}.distribution-person-action button{margin:0}}

.distribution-person-choice{display:inline-flex;align-items:center;gap:5px;margin:0;font-size:13px;line-height:1.4;cursor:pointer}
.distribution-person-choice input[type="checkbox"]{width:15px;height:15px;flex:0 0 15px;margin:0;accent-color:#305e4b}
.distribution-person-choice.is-assigned .distribution-person-name{color:#506a5b;text-decoration:line-through}.distribution-assigned-count{font-size:11px;color:#506a5b;font-weight:400;white-space:nowrap}

.manual-base-week-cards{display:grid;gap:8px}
.manual-base-week-card>details>summary.report-info-trigger{display:flex;flex-wrap:wrap;justify-content:space-between;width:100%;padding:12px 15px;background:#f3f8f4;border:1px solid #cfdfd3;border-radius:8px;font-size:15px}
.manual-base-week-caption{flex-basis:100%;font-size:12px;font-weight:400;color:var(--muted);margin-top:3px}
.manual-base-week-days{gap:7px;margin-bottom:12px}
.manual-base-week-days button{font-size:13px;padding:7px 12px}
[data-week-base-editor]>.season-template-editor{margin:0}
.manual-base-week-generate{margin-top:14px;border-top:1px solid var(--line);padding-top:10px}
.manual-base-week-generate summary{font-size:13px;font-weight:600}
.report-popup:has(.manual-base-week-picker):not(:has([data-week-base-editor])):not(.report-popup-full){width:min(40rem,96vw)}

.workshop-roster-actions .workshop-roster-base{order:-2;flex:0 0 auto;align-self:center}
.workshop-roster-actions .manual-base-small-button{font-size:11px;font-weight:600;min-height:26px;padding:4px 9px;border:1px solid #9bb8a5;border-radius:6px;background:#f7faf7;white-space:nowrap}

.workshop-roster-actions:has(>.workshop-roster-base){display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px}
.workshop-roster-actions:has(>.workshop-roster-base)>.compact-distribution-status{margin:0}
.workshop-roster-actions:has(>.workshop-roster-base)>.workshop-distribution-workflow{flex:1;min-width:0;width:auto}

.season-result-month>.season-month-base-button{font-size:12px;min-height:28px;padding:5px 10px;margin:0 0 10px}

.manual-base-week-action{padding:0 12px 10px}.manual-base-week-action p{margin:6px 0;font-size:12px}.manual-base-week-action button{padding:6px 11px;font-size:13px}

.workshop-roster-base{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.manual-base-pending{display:inline-flex;align-items:center;gap:8px;padding:4px 8px;border:1px solid #d8be77;background:#fff7de;border-radius:7px;font-size:12px}.manual-base-pending button{font-size:12px;padding:4px 8px}

.staffing-base-only{font-size:11px;gap:4px!important;color:#215b3c}.staffing-base-only input{accent-color:#287345}.season-template-interval .row{flex-wrap:wrap}

/* Arbeidsrom for hele sesongkartet. */
.season-year-room .season-year-panel{margin:0;padding:0;border:0}.season-year-room [data-season-year-room]{display:none}
.season-year-room .report-popup-body{padding:10px 14px;min-height:0}.season-year-room .season-year-heading{gap:8px;margin-bottom:6px}.season-year-room .season-year-heading h3{font-size:16px}.season-year-room .season-year-heading p{font-size:12px}
.season-year-room .season-year-table tbody th[scope=row]{padding:3px 7px;font-size:12px;line-height:1.1}.season-year-room .season-year-table tbody th small{font-size:11px;margin-top:1px}.season-year-room .season-year-table td{height:30px}.season-year-room .season-year-month-fill{height:26px}.season-year-room .season-year-month-fill .season-year-bar{height:22px;line-height:22px;font-size:11px}.season-year-room .season-year-month-empty{line-height:26px}.season-year-room .season-year-month-button{min-height:26px!important}.season-year-room [data-season-year-grid]>p{font-size:11px;margin:4px 0}.season-year-room .season-year-table .season-year-group th{padding:4px 8px}.season-year-room .season-year-wrap{max-height:none}

.waiter-roster-cards h2{margin:0 0 14px;font-size:21px}.waiter-roster-year{font-size:13px;letter-spacing:.08em;color:#67776c;margin:18px 0 9px}.waiter-roster-card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,200px));gap:14px}.waiter-roster-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;min-height:220px;padding:19px;border:1px solid #b8d0bf;border-radius:12px;background:#f8fbf7;color:#1c4030}.waiter-roster-card:hover{background:#eaf3e7;border-color:#528266}.waiter-roster-card strong{font-size:20px}.waiter-roster-card small{font-weight:400;color:#68776d}.waiter-roster-card .badge{font-size:12px}.waiter-roster-card b{width:100%;border-top:1px solid #d9e4dc;margin-top:auto;padding-top:12px;font-size:14px}

.waiter-fixed-month .combined-period-options,.waiter-fixed-month .combined-roster-filters,.waiter-fixed-month .combined-period-navigation,.waiter-fixed-month .combined-group-summaries,.waiter-fixed-month .combined-roster-status .small.muted{display:none}.waiter-month-room-view>.manual-calendar-primary{display:flex;align-items:center;gap:14px;margin-bottom:12px}.waiter-roster-card{height:200px;min-height:200px;width:200px;max-width:100%;padding:12px;gap:4px}

.waiter-fixed-month .combined-closed-day{background:#fbe8e8!important}.waiter-fixed-month thead small{display:block;font-size:11px;line-height:1.2;white-space:normal;color:#9d3035}

.waiter-roster-gap{align-self:center;display:flex;flex-direction:column;gap:10px;padding:14px;background:#fff0ef;border:1px solid #d68f89;border-radius:9px;color:#9e3033;font-size:13px}.waiter-roster-gap button,.waiter-roster-gap a{background:white;color:#9e3033;border:1px solid #d68f89;border-radius:6px;padding:8px;font-size:12px;white-space:normal}.waiter-roster-card-grid{align-items:center}

.combined-room-toolbar{margin:0 0 10px}.combined-roster-toolbar{padding:12px 14px}.combined-roster-status{font-size:13px}.combined-roster-status .small{font-size:11px}

.waiter-roster-cards{padding:16px}.waiter-roster-card strong{font-size:17px;line-height:1.2}.waiter-roster-card>span:not(.badge){font-size:13px}.waiter-roster-card small{font-size:11px}.waiter-roster-card .badge{font-size:11px;padding:3px 7px}.waiter-roster-card b{font-size:12px;padding-top:9px}.waiter-roster-card-grid{gap:10px}.waiter-roster-year{margin:12px 0 7px}

.waiter-roster-card-open{display:flex;flex-direction:column;align-items:flex-start;gap:4px;flex:1;min-height:0;width:100%;padding:0;border:0;background:transparent;color:inherit;text-align:left;box-shadow:none;font:inherit}.waiter-roster-card-open b{margin-top:auto}.waiter-card-toggle{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650;margin:0;border-bottom:1px solid #dce6dc;padding-bottom:6px;width:100%;cursor:pointer}.waiter-card-toggle input{accent-color:#2d7747;width:17px;height:17px;margin:0}.waiter-card-toggle input:disabled{cursor:not-allowed}.waiter-card-readiness{font-size:11px!important;color:#946329!important}.waiter-roster-card.is-waiting{background:#fffaf0;border-color:#d1b477}.waiter-roster-card.is-waiting input{accent-color:#a77b2a}

.waiter-roster-card-shell{width:200px;max-width:100%}.waiter-roster-card-shell>.waiter-card-toggle{margin:0 0 6px;padding:0 3px;border:0;min-height:20px}.waiter-roster-card-shell.is-waiting>.waiter-card-toggle input{accent-color:#a77b2a}

.manual-saved-roster-line{display:flex;align-items:center;gap:8px;min-height:32px;margin:0 0 6px;padding:0 0 6px;border-bottom:1px solid #dce4dc}.manual-saved-roster-line .badge{font-size:12px;padding:3px 8px}.manual-saved-roster-line-actions{display:flex;align-items:center;gap:6px;margin-left:auto}.manual-saved-roster-line-actions>button{font-size:12px;padding:4px 10px;min-height:28px}.manual-month-planner .workshop-calendar-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}.manual-month-planner .workshop-calendar-feedback p{margin:4px 0}

/* Samlet vaktplan: kompakte kontroller rett over kalenderen. */
.combined-roster-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:8px 10px;margin-bottom:6px}.combined-roster-toolbar .combined-room-toolbar{margin:0}.combined-room-toolbar:empty{display:none}.combined-roster-toolbar .combined-period-options,.combined-roster-toolbar .combined-period-navigation{display:flex;align-items:center;gap:5px;margin:0}.combined-roster-toolbar .combined-roster-filters{display:contents}.combined-roster-toolbar .combined-roster-filters label{display:flex;align-items:center;gap:5px;min-width:0;font-size:11px;margin:0}.combined-roster-toolbar .combined-roster-filters input,.combined-roster-toolbar .combined-roster-filters select{width:auto;min-width:0;max-width:185px;min-height:30px;padding:4px 7px;font-size:12px}.combined-roster-toolbar .combined-roster-filters input[type=search]{width:145px}.combined-roster-toolbar button{min-height:30px;padding:4px 8px;font-size:12px}.combined-roster-toolbar .combined-period-navigation strong{font-size:12px}.combined-roster-toolbar .combined-roster-status{flex-basis:100%;margin:2px 0 0;gap:5px 14px;font-size:12px}.combined-roster-toolbar .combined-roster-status>.muted{flex-basis:auto;font-size:11px}.combined-roster-toolbar .combined-roster-navigation{display:flex;align-items:center;gap:8px;margin:0;margin-left:auto}.combined-roster-toolbar .combined-roster-navigation>span{display:none}.combined-roster-toolbar .workshop-calendar-view-controls{gap:4px}.combined-roster-view>.roster-color-legend{margin-top:4px;margin-bottom:4px}@media(max-width:650px){.combined-roster-toolbar{gap:6px;padding:8px}.combined-roster-toolbar .combined-roster-filters label{flex:1 1 140px}.combined-roster-toolbar .combined-roster-filters input,.combined-roster-toolbar .combined-roster-filters select{flex:1;width:100%;max-width:100%}.combined-roster-toolbar .combined-period-navigation{flex-basis:100%;justify-content:space-between}.combined-roster-toolbar .combined-period-navigation strong{order:0;flex-basis:auto}.combined-roster-toolbar .combined-period-options button{min-height:34px}.combined-roster-toolbar .combined-roster-status>.muted{flex-basis:100%}}

.combined-roster-toolbar .workshop-calendar-view-controls:not([hidden]){margin:0}.waiter-fixed-month .combined-roster-toolbar .combined-period-options,.waiter-fixed-month .combined-roster-toolbar .combined-roster-filters,.waiter-fixed-month .combined-roster-toolbar .combined-period-navigation,.waiter-fixed-month .combined-roster-toolbar .combined-roster-status .small.muted{display:none}

/* Samme tette rutenett som vaktlisten. */
.combined-roster-view .combined-roster tr>th:first-child{width:180px;min-width:180px;max-width:180px;padding:4px 7px;font-size:12px}.combined-roster-view .combined-roster th,.combined-roster-view .combined-roster td{height:auto;padding:2px;vertical-align:middle}.combined-roster-view .combined-roster thead th{height:48px;font-size:11px;padding:3px 2px}.combined-roster-view .combined-roster thead th>strong{font-size:13px;line-height:1.2}.combined-roster-view .combined-roster tbody tr:not(.combined-group-heading)>th small{font-size:11px;margin-top:1px}.combined-roster-view .combined-roster .combined-group-heading th,.combined-roster-view .combined-roster .combined-group-heading td{padding:4px 7px;border-top-width:2px;font-size:11px}.combined-roster-view .combined-roster .combined-group-heading td span{margin-left:10px;font-size:11px}.combined-roster-view .combined-roster .combined-shift{padding:2px 1px;margin:1px 0;border-radius:2px;font-size:11px;line-height:1.05}.combined-shift>small{font-size:11px;line-height:1.1;margin-top:1px}.combined-roster-view .combined-roster .current-day{box-shadow:inset 0 2px #377a58}.combined-roster-view .combined-roster .combined-shift:is(.workday-task-baking,.workday-task-office){background:#eee2f5!important;color:#624680;border-color:#b999d0}

/* Tydelig toppstripe: åpningsansvar blått, stengeansvar rødt. */
.roster-duty-stripe{position:absolute;top:0;left:0;right:0;height:10%;min-height:4px;max-height:8px;display:block!important;margin:0!important;border-radius:1px 1px 0 0;pointer-events:none}.roster-duty-opening{background:#0075ff}.roster-duty-closing{background:#ed0024}.roster-duty-both{background:linear-gradient(90deg,#0075ff 50%,#ed0024 50%)}.roster-compact-calendar :is(.month-open-shift,.workday-task,.combined-shift):has(>.roster-duty-stripe){position:relative;padding-top:8px!important}

.roster-colour-legend .roster-key-opening{height:4px;background:#0075ff;border-color:#0075ff}.roster-colour-legend .roster-key-closing{height:4px;background:#ed0024;border-color:#ed0024}

.manual-base-coverage-status{display:inline-block;margin:0;max-width:100%}.manual-base-coverage-status>summary{min-height:30px;display:flex;align-items:center;padding:4px 9px;border:1px solid #c5d9ca;border-radius:6px;list-style:none;font-size:11px;font-weight:600;background:#edf5ee;color:#28623d;cursor:pointer}.manual-base-coverage-status>summary::-webkit-details-marker{display:none}.manual-base-coverage-status.has-gap>summary{background:#fff0f2;color:#a82037;border-color:#e8b8c0}.manual-base-coverage-status.is-unknown>summary{background:#fff8e8;color:#84621b;border-color:#e0cea5}.base-coverage-report{font-size:13px}.base-coverage-report table{font-size:12px}.base-coverage-report th,.base-coverage-report td{padding:7px 9px}.base-coverage-alert{padding:10px 12px;background:#fff0f2;border-left:3px solid #c5223d;color:#a82037}.base-coverage-note{padding:10px 12px;background:#f1f5f1}.report-popup[data-report-source-key^="manual-base-coverage-"]:not(.report-popup-full){width:min(630px,calc(100vw - 2rem))}.manual-saved-roster-line{flex-wrap:wrap}

.roster-duty-next{background:#ffcf00}.roster-colour-legend .roster-key-next{height:4px;background:#ffcf00;border-color:#caa500}

/* Varsler ligger over arbeidslinjen, uten å skyve fordelingsknappene bort. */
.manual-waiter-alerts{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:6px 10px;margin:0 0 6px;min-width:0}.manual-waiter-alerts .manual-month-top-warnings{margin:0}.manual-waiter-alerts .manual-base-coverage-status{margin:0;padding:0;border:0;background:transparent}.manual-waiter-alerts .manual-base-coverage-status>summary.report-info-trigger{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;font-size:11px;line-height:1.2;gap:0}.manual-waiter-alerts .manual-base-coverage-status>summary::before,.manual-waiter-alerts .manual-base-coverage-status>summary::after{display:none!important;content:none!important}.manual-waiter-alerts .manual-close-editing{display:inline-block;margin:0 0 0 auto;padding:0;border:0;background:transparent}.manual-waiter-alerts .manual-close-editing>summary.report-info-trigger.report-edit-trigger{display:inline-flex;min-height:28px;padding:4px 9px;font-size:11px;line-height:1.2;gap:0;border-radius:6px;box-shadow:none}.manual-waiter-alerts .manual-close-editing>summary::before,.manual-waiter-alerts .manual-close-editing>summary::after{content:none!important;display:none!important}

.planning-room-return-bar{position:sticky;top:0;z-index:20;display:flex;align-items:center;padding:6px 0;margin:0 0 8px;background:#f5f7f4;border-bottom:1px solid #d7e3d9}.planning-room-return-bar .planning-room-open{min-height:30px;padding:5px 10px;font-size:12px}

/* Same compact agreed-action shape as the kitchen toolbar, retaining the waiter popup. */
.manual-month-planner .workshop-roster-agreed details{margin:0;padding:0;border:0;background:transparent}
.manual-month-planner .workshop-roster-agreed summary.report-edit-trigger{display:inline-flex;align-items:center;justify-content:center;min-height:30px;margin:0;padding:4px 9px;border:1px solid #bdcfc2;border-radius:22px;background:#edf4ed;color:#214b39;font-size:12px;font-weight:650;line-height:1.4;box-shadow:none;gap:5px}
.manual-month-planner .workshop-roster-agreed summary.report-edit-trigger::before,.manual-month-planner .workshop-roster-agreed summary.report-edit-trigger::after{display:none!important;content:none!important}

/* Employee visibility uses the existing waiter calendar and central settings. */
[data-waiter-visibility] tbody .staff-visibility-cell{position:relative}
[data-waiter-visibility] .staff-visibility-hidden::after{content:'';position:absolute;inset:0;background:rgba(93,109,101,.17);pointer-events:none;z-index:2}
[data-waiter-visibility] .staff-visibility-limit{border-right:3px solid #647b69!important}
[data-waiter-visibility] thead th.staff-visibility-hidden{background:#dfe5df}
[data-waiter-visibility] .staff-visibility-group>td{height:30px;padding:0;background:#d9e7dc}
[data-waiter-visibility] .staff-visibility-group>th{white-space:nowrap}
[data-waiter-visibility] button.staff-visibility-handle{position:absolute!important;right:-9px;top:50%;transform:translateY(-50%);z-index:8;display:flex!important;align-items:center;justify-content:center;width:18px!important;height:26px!important;min-height:26px!important;min-width:18px!important;padding:0!important;margin:0!important;border:1px solid #6d8975!important;border-radius:5px!important;background:#f7faf6!important;color:#345b40!important;font-size:13px!important;line-height:1!important;cursor:ew-resize;touch-action:none;box-shadow:none!important}
[data-waiter-visibility] thead button.staff-visibility-handle{top:auto;bottom:0;transform:none}
[data-waiter-visibility] button.staff-visibility-handle:hover,[data-waiter-visibility] button.staff-visibility-handle:focus-visible{background:#dceadb!important;outline:2px solid #75947c;outline-offset:1px}
[data-waiter-visibility].staff-visibility-dragging{cursor:ew-resize;user-select:none}
[data-waiter-visibility].staff-visibility-saving .staff-visibility-handle{opacity:.55;cursor:wait}
.staff-visibility-status{display:inline-block;font-size:11px;color:#586f60;line-height:1.3}

.staff-visibility-drag-hint{position:fixed;z-index:10000;pointer-events:none;display:grid;gap:3px;min-width:158px;padding:10px 14px;border:1px solid #6e8975;border-radius:9px;background:#fff;color:#1d3d2c;box-shadow:0 5px 20px #1b372c30;font-family:var(--font);line-height:1.25}.staff-visibility-drag-hint[hidden]{display:none}.staff-visibility-drag-hint strong{display:block;font-size:25px;font-weight:750}.staff-visibility-drag-hint span{font-size:13px;font-weight:500}

/* Dine maler: kompakte kort, valg gjelder bare sletting av maler. */
.stored-template-cards{grid-template-columns:repeat(auto-fill,minmax(190px,200px));gap:10px}
.stored-template-card{display:flex;flex-direction:column;align-items:stretch;gap:6px;width:200px;max-width:100%;min-height:220px;padding:14px;border-radius:12px;background:#f8fbf7;color:#1c4030}
.stored-template-card h3{font-size:17px;line-height:1.25;margin:4px 0}
.stored-template-card small{font-size:11px;color:#68776d}
.stored-template-card p{font-size:13px;margin:0}
.stored-template-check{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;cursor:pointer}
.stored-template-check input{accent-color:#2d7747;width:17px;height:17px;margin:0}
.stored-template-card .stored-template-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;width:100%;margin-top:auto;padding:10px 0 0;border-top:1px solid #d9e4dc}
.stored-template-card-actions button{padding:0;border:0;background:transparent;font-size:12px;text-align:left;color:inherit}
.stored-template-card-actions details{font-size:11px}
.stored-template-selection button{font-size:12px;padding:6px 10px}

.stored-template-card{height:220px}
.stored-template-card .stored-template-card-actions{flex-direction:column;align-items:flex-start;margin-bottom:0;gap:6px}
.stored-template-card-actions details{margin:0;padding:0;border:0;background:transparent;width:100%}
.stored-template-card-actions summary.report-info-trigger{margin:0;padding:0;font-size:11px;line-height:1.4}

/* Administrasjon: samme rolige boks og tabell for brukere og roller. */
.administration-box{padding:0;border:1px solid #dfe5e2;border-radius:6px;overflow:hidden;background:white}
.administration-box-heading{min-height:58px;padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #dfe5e2;background:#f7faf8}
.administration-box-heading h2{font-size:18px;margin:0}
.administration-box-heading .actions{margin:0;gap:6px}
.administration-box-heading button{padding:6px 12px;font-size:13px;border-radius:4px}
.administration-box-heading [aria-pressed=true]{background:#e3eae6;font-weight:650}
.administration-table{margin:0;border:0;border-radius:0;max-height:65vh}
.administration-table table{width:100%;border-collapse:collapse;font-size:13px}
.administration-table th,.administration-table td{padding:10px 12px;border:1px solid #e5e8e6;text-align:left;vertical-align:middle}
.administration-table thead th{background:#f2f5f3;color:#163428;font-weight:650;white-space:nowrap}
.administration-table tbody tr:nth-child(even){background:#fafbfa}
.administration-table tbody th{font-weight:400}
.administration-table .administration-name{border:0;background:none;padding:0;color:#174f46;text-align:left;font-size:inherit;cursor:pointer;white-space:normal}
.administration-table .administration-name:hover{text-decoration:underline}
.administration-status{white-space:nowrap;display:inline-flex;align-items:center;gap:6px}
.administration-status.is-active:before{content:'';width:8px;height:8px;border-radius:50%;background:#2f9b66}
.administration-session{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:16px;font-size:13px;color:#5a6e60}
.administration-session button{padding:3px 9px;font-size:12px}
.administration-create-user,.administration-role-detail{padding:18px}
.administration-create-user select{min-width:min(360px,100%)}
.administration-role-user{padding:14px 0;border-top:1px solid #dfe5e2}
.administration-other{margin-top:18px}
.user-account-card .section-title>.actions{margin-top:0}
@media(max-width:650px){.administration-box-heading{align-items:flex-start;flex-direction:column}.administration-table th,.administration-table td{padding:8px}}

.administration-department{display:flex;align-items:center;gap:7px;margin:0;font-size:12px;white-space:nowrap}
.administration-department select{width:auto;min-width:145px;max-width:230px;padding:6px 10px;border-radius:4px;font-size:13px;background:white}

administration-access-map{display:block;min-width:0}

.access-map-toolbar{display:flex;align-items:center;gap:20px;margin-bottom:16px}.access-map-toolbar h1{margin:0;font-size:22px}
#app.access-map-workspace>.sidebar,#app.access-map-workspace>main>.topbar,#app.access-map-workspace>main>.view>.heading,#app.access-map-workspace>.mobile-workshop-navigation{display:none!important}
#app.access-map-workspace>main{margin-left:0!important;width:100%;padding:0!important}
#app.access-map-workspace>main>.view{max-width:none;width:100%;padding:16px 24px 28px}
#app.access-map-workspace .access-map-toolbar{position:sticky;top:0;z-index:10;background:var(--paper);padding:10px 0}
@media(max-width:700px){#app.access-map-workspace>main>.view{padding:12px}.access-map-toolbar{flex-wrap:wrap}}

/* Kitchen lists: one horizontal month row per responsibility group. */
.kitchen-roster-group + .kitchen-roster-group{margin-top:1.5rem;border-top:1px solid #d5e2da;padding-top:1rem}.kitchen-roster-card-row{display:flex;align-items:flex-start;gap:12px;overflow-x:auto;padding:4px 2px 12px}.kitchen-roster-card-row>.waiter-roster-card-shell,.kitchen-roster-card-row>.waiter-roster-gap{flex:0 0 200px;min-width:200px;max-width:200px}.kitchen-roster-card-row .waiter-roster-card{width:100%;box-sizing:border-box}.kitchen-roster-card-row>.waiter-roster-gap{box-sizing:border-box;margin-top:30px}.kitchen-card-room-actions{margin-bottom:8px}

/* Grunnbemanning: hele personstrenger med felles valg og én tidsakse. */
.season-template-editor[data-staffing-strings] .staffing-strings-choice{margin:14px 0 6px;padding:10px 12px;border:1px solid #d5e3d8;border-radius:9px;background:#f0f6f1}
.season-template-editor[data-staffing-strings] .staffing-strings-choice>.check{font-weight:650;gap:8px;font-size:14px}
.season-template-editor[data-staffing-strings] .staffing-strings-choice p{font-size:12px;margin:5px 0 0;line-height:1.4;color:#536a5a}
.staffing-string-person{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;padding:16px 0;border-bottom:1px solid #d9e3db}
.staffing-string-name{display:flex;flex-direction:column;align-items:flex-start;gap:9px;padding-top:7px;white-space:nowrap}
.staffing-string-name strong{font-size:14px}.staffing-string-name button{font-size:11px;padding:2px 4px;border-color:#c7d6ca;color:#64766a;min-height:22px}
.staffing-string-content{min-width:0}.staffing-string-fields{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.season-template-editor.panel .staffing-string-shift{display:flex;align-items:center;gap:4px;padding:4px 6px;border:1px solid #d1dfd4;border-radius:7px;background:#f7faf6;min-width:0}
.season-template-editor.panel .staffing-string-shift label{margin:0;display:block;min-width:0}
.season-template-editor.panel .staffing-string-shift input[type=time]{width:88px;min-width:0;font-size:13px;padding:4px;min-height:28px}
.season-template-editor.panel .staffing-string-shift select{font-size:11px;min-height:28px;padding:3px;max-width:110px}
.season-template-editor.panel .staffing-string-shift .staffing-string-remove{padding:1px 5px;border:0;background:transparent;font-size:20px;min-height:24px;color:#708174}
.staffing-string-fields>button{font-size:12px;padding:6px 8px;min-height:28px}
.staffing-string-track{position:relative;height:34px;margin:14px 9px 0;background:repeating-linear-gradient(90deg,#eef2ec 0,#eef2ec calc(14.2857% - 1px),#d7e1d8 calc(14.2857% - 1px),#d7e1d8 14.2857%);border-radius:5px}
.staffing-string-bar{position:absolute;top:7px;bottom:7px;border-radius:5px;background:#67223e;color:white;display:flex;align-items:center;justify-content:center;font-size:11px;white-space:nowrap;overflow:hidden;pointer-events:none}
.season-template-editor .staffing-string-track input[type=range]{position:absolute;inset:0;width:100%;height:34px;margin:0;padding:0;background:transparent;border:0;appearance:none;pointer-events:none;min-height:0}
.staffing-string-track input[type=range]::-webkit-slider-runnable-track{height:34px;background:transparent}
.staffing-string-track input[type=range]::-webkit-slider-thumb{appearance:none;width:16px;height:32px;border:3px solid #214637;border-radius:10px;background:white;pointer-events:auto;cursor:ew-resize;margin-top:1px}
.staffing-string-track input[type=range]::-moz-range-track{height:34px;background:transparent}
.staffing-string-track input[type=range]::-moz-range-thumb{width:12px;height:26px;border:3px solid #214637;border-radius:10px;background:white;pointer-events:auto;cursor:ew-resize}
.staffing-string-track input[type=range]:focus-visible::-webkit-slider-thumb{outline:3px solid #7bb89b;outline-offset:2px}
.staffing-string-axis{display:flex;justify-content:space-between;margin:4px 9px 0;font-size:11px;color:#627469}
.staffing-string-total{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;margin-top:16px;align-items:start}.staffing-string-total>strong{font-size:13px;padding-top:7px}
.staffing-strings-error{color:#a92c36;font-size:12px}.staffing-strings-error:empty{display:none}
.staffing-strings-bottom{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:14px 0}.staffing-strings-bottom small{color:#5a6c60;font-size:12px;max-width:500px}
@media(max-width:600px){.staffing-string-person{grid-template-columns:65px minmax(0,1fr);gap:7px}.staffing-string-name strong{font-size:12px}.staffing-string-total{grid-template-columns:65px minmax(0,1fr);gap:7px}.season-template-editor.panel .staffing-string-shift{flex-wrap:wrap}.season-template-editor.panel .staffing-string-shift input[type=time]{width:78px}.staffing-string-axis{font-size:11px}.staffing-string-bar{font-size:11px}}
.season-template-editor .staffing-string-shift .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.season-template-editor.panel .staffing-string-shift input[type=time]{width:100px}
.season-template-editor.panel .staffing-string-shift input[type=time]::-webkit-calendar-picker-indicator{display:none}
body.staffing-strings-control{display:block}body.staffing-strings-control main{margin:0 auto;padding:24px;width:auto;max-width:1450px;min-width:0}
.season-template-editor[data-staffing-strings]>.row input[type=time]{width:110px;min-width:110px}
.season-template-editor[data-staffing-strings]>.row input[type=time]::-webkit-calendar-picker-indicator{display:none}

/* Bemanning per tidsrom: tiden over en tydelig antallsbolk. */
.staffing-string-coverage{display:grid;grid-template-columns:repeat(auto-fit,minmax(124px,1fr));gap:8px;margin:0 9px}
.staffing-coverage-period{display:grid;grid-template-rows:auto 1fr;overflow:hidden;border:1px solid #c4d9c8;border-radius:8px;text-align:center;background:#fff}
.staffing-coverage-time{padding:6px 5px;font-size:12px;font-weight:650;color:#385545;white-space:nowrap;background:#f5f8f4}
.staffing-coverage-number{display:block;padding:10px 6px;font-size:25px;line-height:1.2;font-weight:750;background:#c6e0ce;color:#193e2c}
.staffing-coverage-number span{font-size:15px;font-weight:600}
.staffing-coverage-period.is-empty{border-color:#db9390}.staffing-coverage-period.is-empty .staffing-coverage-time{color:#922e2d;background:#fff2ee}.staffing-coverage-period.is-empty .staffing-coverage-number{background:#f5d6d0;color:#9b2429}
.staffing-coverage-closed{font-size:13px;color:#5b6f60;padding:8px}
@media(max-width:600px){.staffing-string-coverage{grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:6px}.staffing-coverage-number{font-size:23px}.staffing-coverage-time{font-size:11px}}
/* Tildelt bemanning rett over servitørverkstedets vaktliste. */
.waiter-roster-coverage{margin:6px 0;padding:10px 12px;border:1px solid #c5d9cb;border-radius:9px;background:#fff;color:#19392d}
.waiter-coverage-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.waiter-coverage-heading nav{display:flex;gap:5px;flex-wrap:wrap}
.waiter-coverage-heading button{padding:4px 10px;font-size:13px;min-height:30px}
.waiter-coverage-heading button[aria-pressed=true]{background:#19392d;color:#fff}
.waiter-roster-coverage .staffing-string-coverage{display:flex;gap:8px;overflow-x:auto;padding:3px 3px 5px}
.waiter-roster-coverage button.staffing-coverage-period{display:grid;flex:1 0 124px;padding:0;min-width:124px;max-width:240px;white-space:nowrap;font-family:inherit}
.waiter-roster-coverage button.staffing-coverage-period[aria-pressed=true]{outline:3px solid #276b4c;outline-offset:0}
.waiter-roster-coverage .staffing-coverage-time{padding:6px;font-size:13px}
.waiter-roster-coverage .staffing-coverage-number{padding:7px;font-size:27px}
.waiter-coverage-people{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:12px;margin-top:4px}
.waiter-coverage-people>span{padding:4px 7px;border:1px solid #c5d9cb;background:#eff6ef;border-radius:5px}
.waiter-coverage-people>button{font-size:12px;padding:3px 7px}
.manual-month-calendar .waiter-coverage-match>th{box-shadow:inset 4px 0 #2e8053}
.manual-month-calendar td.waiter-coverage-cell{box-shadow:inset 0 0 0 3px #2e8053}
.waiter-need-actions,[data-waiter-need-form]{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:6px 0;font-size:13px}
.waiter-need-actions label{display:flex;align-items:center;gap:5px}
.waiter-need-actions button,[data-waiter-need-form] button{font-size:13px;padding:5px 9px}
[data-waiter-need-form]{padding:8px 0;border-top:1px solid #d6e2d9}
[data-waiter-need-form] label{display:grid;gap:3px}
[data-waiter-need-form] input{width:110px;padding:5px;font-size:14px}
[data-waiter-need-form] input[name=staff]{width:75px}
[data-waiter-need-error]{color:#a62c2c}
.waiter-coverage-count{display:block;padding:6px;font-size:12px;background:#f7faf7;color:#234a33;white-space:normal}
/* Samlede hovedhandlinger; eksisterende kompakt høyde og scrolling beholdes. */
.workshop-actions-focused.workshop-roster-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;border-left:4px solid #315f45!important}
.workshop-actions-focused.workshop-roster-actions>.workshop-distribution-workflow{flex:0 1 auto;width:auto;gap:6px;flex-wrap:wrap}
.workshop-actions-focused .workshop-step-number{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:19px;height:19px;border-radius:50%;background:#dfeae1;color:#284d37;font-size:11px;line-height:1}
.workshop-actions-focused .workshop-step-next{font-size:11px;line-height:1;background:#d6ebda;color:#164128;border-radius:12px;padding:2px 5px}
.workshop-actions-focused .workshop-step-arrow{font-size:12px;color:#68816e}
.workshop-actions-focused .is-next-step :is(button,summary)[data-workshop-action-step]{background:#193f2d!important;border-color:#193f2d!important;color:#fff!important;box-shadow:0 0 0 2px #8eae97}
.workshop-actions-focused .workshop-roster-save:not(.is-next-step) button.primary{background:#edf4ed;color:#214b39;border-color:#bdcfc2}
.workshop-actions-focused .workshop-roster-secondary{margin-left:auto;display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.workshop-actions-focused .workshop-roster-meta{display:flex;flex-direction:column;align-items:flex-end;gap:1px}
.workshop-actions-focused.workshop-roster-actions .compact-distribution-status{margin:0;font-size:11px;line-height:1.2}
.workshop-actions-focused.workshop-roster-actions .workshop-roster-options summary{min-height:0!important;padding:0!important;border:0;border-bottom:1px solid #557c62;border-radius:0;background:transparent;font-size:11px!important;color:#486b55;line-height:1.2}
.workshop-actions-focused.workshop-roster-actions .workshop-roster-finish{margin-left:0}
@media(max-width:900px){.workshop-actions-focused .workshop-roster-secondary{margin-left:0}.workshop-actions-focused .workshop-roster-meta{align-items:flex-start}}
.waiter-time-review{max-width:min(1000px,96vw)}
.waiter-time-review .table-wrap{max-height:50vh}
.waiter-time-review th small,.waiter-time-review td small{display:block;font-size:12px;font-weight:400;color:#526b5c}
.waiter-time-review td{white-space:nowrap}
.waiter-time-review button{font-size:13px}
[data-time-review-error]{color:#a62c2c}

.waiter-coverage-heading nav{align-items:center}
.waiter-coverage-heading .waiter-coverage-date-picker{width:145px;min-height:30px;padding:4px 8px;font-size:13px;margin:0}
/* Behov og neste handling samlet under bemanningsbolkene. */
.waiter-need-workflow{margin-top:10px;border:1px solid #94b29d;border-radius:9px;overflow:hidden}
.waiter-need-step{display:flex;align-items:center;gap:9px;padding:12px 12px 0;font-size:14px}
.waiter-need-step>b{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:#e2eee5;flex-shrink:0;font-size:12px}
.waiter-need-step small{display:block;font-size:12px;font-weight:400;color:#587060;margin-top:2px}
.waiter-need-workflow [data-waiter-need-form]{margin:0;padding:12px;border:0;align-items:end}
.waiter-need-workflow [data-waiter-need-status]{align-self:center;color:#587060}
.waiter-need-workflow [data-waiter-need-remove]{margin-left:auto;background:transparent;border:0;color:#913d32}
.waiter-need-workflow [data-waiter-need-error]{flex-basis:100%}
.waiter-need-resolution{background:#f5f8f2;border-top:1px solid #d6e2d9;padding-bottom:12px}
.waiter-need-resolution>button{margin:12px 12px 0;font-size:13px;padding:8px 12px}
.waiter-need-resolution>p,.waiter-need-prompt{margin:7px 12px 12px}
.waiter-need-resolution>details{margin:12px 12px 0;padding-top:10px;border-top:1px solid #d6e2d9;font-size:12px}
.waiter-need-resolution summary{font-weight:600;cursor:pointer}
.waiter-need-resolution details button{font-size:13px;padding:6px 10px}
.waiter-coverage-card{display:flex;flex-direction:column;flex:1 0 124px;min-width:124px;max-width:240px}
.waiter-roster-coverage .waiter-coverage-card button.staffing-coverage-period{flex:initial;width:100%;max-width:none}
.waiter-card-need-inline{display:flex;align-items:center;justify-content:center;gap:8px;margin:6px 0 0;padding:6px;border:1px solid #aac7b2;border-radius:6px;background:#f0f7ef;font-size:12px;font-weight:600}
.waiter-card-need-inline input{width:60px!important;margin:0;padding:5px;font-size:16px;text-align:center;background:white}
.waiter-need-copy-dialog{max-width:min(1150px,96vw);width:96vw}
.waiter-copy-windows,.waiter-copy-quick{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0}
.waiter-copy-windows span{padding:7px;background:#e5f0e5;border-radius:5px;font-size:13px}
.waiter-copy-quick button{padding:5px 9px;font-size:12px}
.waiter-copy-date-strip{display:flex;overflow-x:auto;gap:0;padding:3px 2px 12px}
.waiter-copy-date{display:flex;flex:0 0 53px;align-items:center;flex-direction:column;gap:7px;padding:8px 2px;border:1px solid #d9e2db;background:#f8faf7;font-size:12px;cursor:pointer}
.waiter-copy-date.is-sunday{background:#fbe4e7}
.waiter-copy-date strong{font-size:18px}.waiter-copy-date small{font-size:11px;min-height:12px}
.waiter-copy-date input,.waiter-need-copy-dialog input[type=checkbox]{width:18px;height:18px;padding:0;margin:0;accent-color:#285f42}
.waiter-copy-date.is-blocked{opacity:.65;cursor:default}.waiter-copy-date.is-selected{box-shadow:inset 0 0 0 2px #347c50}
.waiter-need-copy-dialog td small{display:block;font-size:11px}.waiter-need-copy-dialog .table-wrap{max-height:48vh}
[data-copy-error]{color:#98362e}
/* Kompakt behovslinje; bare synlig ved valgt bolk eller nytt tidsrom. */
.waiter-need-compact{border:0;border-top:1px solid #d6e2d9;border-radius:0;overflow:visible;margin-top:6px}
.waiter-need-compact [data-waiter-need-form]{padding:8px 0 0;gap:8px;align-items:center}
.waiter-need-compact [data-waiter-need-form]>label{display:flex;align-items:center;gap:5px;font-size:12px}
.waiter-need-compact [data-waiter-need-form] input{width:96px;min-height:30px;padding:4px;font-size:13px;margin:0}
.waiter-need-compact [data-waiter-need-form] input[name=staff]{width:57px}
.waiter-need-compact .waiter-need-resolution{display:flex;align-items:center;gap:8px;background:none;border:0;padding:0}
.waiter-need-compact .waiter-need-resolution>button{margin:0;padding:5px 10px;min-height:30px;font-size:12px}
.waiter-need-compact .waiter-need-resolution>details{position:relative;margin:0;padding:0;border:0}
.waiter-need-compact summary{font-size:12px;padding:5px 7px;min-height:30px}
.waiter-need-more-body{position:absolute;top:100%;left:0;z-index:40;width:280px;max-width:80vw;border:1px solid #bdcebf;border-radius:7px;background:#fff;padding:12px;box-shadow:0 5px 18px #173d3026}
.waiter-need-more-body>button{display:block;margin-top:7px}
.waiter-need-more-body>p{margin:0 0 8px}
.waiter-need-compact [data-waiter-need-status]{font-size:11px}
.waiter-need-compact [data-waiter-need-error]:empty{display:none}
.waiter-need-prompt{margin:7px 0 0;font-size:12px;color:#587060}
.manual-roster-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px}
.manual-roster-heading>h2{margin:0}
.manual-roster-heading>[data-close-waiter-view]{font-size:13px;padding:6px 10px;white-space:nowrap}
/* En lagret, deaktivert servitørliste er gul; aktivert liste beholder grønt. */
.waiter-roster-cards .waiter-roster-card.is-inactive{background:#fff5d9;border-color:#d3ad56}
.waiter-roster-cards .waiter-roster-card.is-inactive:hover{background:#fff0c2;border-color:#b28b32}
.waiter-roster-cards .is-inactive>.waiter-card-toggle{color:#8a661d}
.waiter-card-activate{font-size:12px;min-height:28px;padding:4px 8px;background:#fff;border:1px solid #b58e39;color:#6e5013;width:100%}
/* Godkjent lagdelt trykkfølelse på servitørverkstedets fire hovedknapper. */
[data-manual-month-view] .workshop-actions-focused :is([data-edit-manual-base],[data-manual-month-agreed],[data-distribute-manual-month],[data-workshop-action-step="3"]),
[data-manual-month-view] .workshop-actions-focused .workshop-roster-options summary,
[data-manual-month-view] .manual-calendar-primary [data-update-roster-munu]{
 --raised-face:linear-gradient(180deg,#fffefb,#f0f7e9 40%,#dcebd3);
 --raised-ink:#173f2a;--raised-border:#315b43;
 --raised-layers:0 1px 0 #315b3b,0 2px 0 #a5bc95,0 3px 0 #234b31,0 4px 0 #88a379,0 5px 0 #2c5337,0 6px 0 #6f8c6530;
 background-image:var(--raised-face)!important;color:var(--raised-ink)!important;border-color:var(--raised-border)!important;
 box-shadow:inset 0 1px 0 #ffffff80,var(--raised-layers)!important;
 transition:transform 80ms ease,box-shadow 80ms ease;
}
[data-manual-month-view] .workshop-actions-focused [data-distribute-manual-month]{
 --raised-face:linear-gradient(#f9fdff,#edf6fb 40%,#d8eaf4);--raised-ink:#2a5b75;--raised-border:#56778a;
 --raised-layers:0 1px 0 #456b7e,0 2px 0 #b2cdd9,0 3px 0 #31576a,0 4px 0 #90b1c2,0 5px 0 #416779,0 6px 0 #7294a530;
}
[data-manual-month-view] .workshop-actions-focused .is-next-step :is([data-manual-month-agreed],[data-distribute-manual-month],[data-workshop-action-step="3"]),
[data-manual-month-view] .manual-calendar-primary [data-update-roster-munu]{
 --raised-face:linear-gradient(#315b43,#204b33 40%,#183c28);--raised-ink:#fff;--raised-border:#55785b;
 --raised-layers:0 1px 0 #193d27,0 2px 0 #7d9b7a,0 3px 0 #17351f,0 4px 0 #557a52,0 5px 0 #15331e,0 6px 0 #45694130;
 background-color:#193f2d!important;
}
[data-manual-month-view] .workshop-actions-focused :is([data-edit-manual-base],[data-manual-month-agreed],[data-distribute-manual-month],[data-workshop-action-step="3"]):active:not(:disabled),
[data-manual-month-view] .workshop-actions-focused .workshop-roster-options summary:active,
[data-manual-month-view] .manual-calendar-primary [data-update-roster-munu]:active:not(:disabled){transform:translateY(4px);box-shadow:inset 0 1px 2px #173d3026,0 1px 0 var(--raised-border)!important}
[data-manual-month-view] .workshop-actions-focused :is([data-edit-manual-base],[data-manual-month-agreed],[data-distribute-manual-month],[data-workshop-action-step="3"]):focus-visible,
[data-manual-month-view] .workshop-actions-focused .workshop-roster-options summary:focus-visible,
[data-manual-month-view] .manual-calendar-primary [data-update-roster-munu]:focus-visible{outline:2px solid #377e56;outline-offset:6px}
@media(prefers-reduced-motion:reduce){[data-manual-month-view] .workshop-actions-focused :is([data-edit-manual-base],[data-manual-month-agreed],[data-distribute-manual-month],[data-workshop-action-step="3"]),[data-manual-month-view] .manual-calendar-primary [data-update-roster-munu]{transition:none}}
.manual-month-footer.manual-month-footer-compact{display:flex;align-items:center;flex-wrap:wrap;gap:6px 16px;padding-top:6px;margin-top:6px;font-size:12px}
.manual-month-footer-compact .manual-month-save-actions{display:flex;margin:0!important}
.manual-month-footer-compact>.manual-footer-period{color:#526b5b;font-size:12px}
.manual-month-footer-compact>label.check{display:flex;align-items:center;gap:5px;margin:0;font-size:12px}
.manual-month-footer-compact>label.check input{margin:0}
.manual-month-footer.manual-month-footer-follow.manual-month-footer-compact{padding:6px 9px}
.manual-month-footer-compact .manual-month-save-actions:empty{display:none}

/* Opening labels follow restaurant hours, independently of shift edges. */
.waiter-roster-coverage .staffing-coverage-time .staffing-coverage-opening{display:block;font-size:11px;font-weight:400;white-space:normal;line-height:1.3}

/* Whole-month needs share the same draft and coverage editor as the day view. */
.waiter-month-needs-dialog{width:min(1280px,96vw);height:92dvh;overflow:hidden;resize:both}
.waiter-month-needs-dialog.report-popup-full{width:98vw;height:98dvh}
.waiter-month-needs-dialog .report-popup-head p{margin:5px 0 0}
.waiter-month-groups{padding:9px 18px;background:#f5f8f4;display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-bottom:1px solid var(--line)}
.waiter-month-groups>span{margin-left:10px}
.waiter-month-days{padding:0;flex:1}
.waiter-month-day{display:grid;grid-template-columns:130px minmax(0,1fr);gap:14px;padding:12px 18px;border-bottom:1px solid #dce5df}
.waiter-month-day.is-sunday{background:#fff1f3}.waiter-month-day.is-monday{border-top:3px solid #bbd1c1}
.waiter-month-date{padding-top:5px}.waiter-month-date strong,.waiter-month-date small{display:block}.waiter-month-date small{font-size:11px;color:#64796c;margin-top:5px}
.waiter-month-day-content{min-width:0}
.waiter-month-day .waiter-roster-coverage{border:0;background:transparent;padding:0;margin:0}
.waiter-month-day .waiter-need-actions{margin:0 0 8px;gap:7px;flex-wrap:wrap}
.waiter-month-day .waiter-need-actions button,.waiter-month-day .waiter-need-actions label{font-size:11px}
.waiter-month-day .waiter-need-actions label{margin-right:auto}
.waiter-month-day .staffing-string-coverage{margin:0;padding:0;gap:8px}
.waiter-month-day .waiter-coverage-card{min-width:145px;max-width:235px}
.waiter-month-day .staffing-coverage-number{font-size:23px;padding:9px}
.waiter-month-day .waiter-need-prompt:empty{display:none}.waiter-month-day .waiter-need-prompt{font-size:11px;margin:6px 0 0}
.waiter-month-footer{border-top:1px solid var(--line);background:#f5f8f4;padding:10px 18px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px}.waiter-month-footer>span{margin-right:auto}
@media(max-width:700px){.waiter-month-day{grid-template-columns:88px minmax(0,1fr);padding:10px;gap:8px}.waiter-month-groups{padding:8px}.waiter-month-day .waiter-coverage-card{min-width:130px}.waiter-month-date strong{font-size:12px}}

/* Compact creation popup shared by daily and monthly waiter needs. */
.waiter-new-need-dialog:not(.report-popup-full){width:min(560px,94vw)}
.waiter-new-need-dialog .report-popup-head h2{font-size:22px}.waiter-new-need-dialog .report-popup-head p{margin:5px 0 0}
.waiter-new-need-fields{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}
.waiter-new-need-fields label{display:grid;gap:6px;font-size:13px;font-weight:650}
.waiter-new-need-fields input{width:145px;min-height:40px;padding:9px;font:inherit}
.waiter-new-need-fields input[type=number]{width:90px}
.waiter-new-need-dialog [data-new-need-error]{color:#a52c31;font-size:13px}
.waiter-new-need-dialog form>.actions{justify-content:flex-end;margin-top:18px}

/* Only the selected card grows, keeping fields and actions in one frame. */
.waiter-roster-coverage .staffing-string-coverage{align-items:flex-start}
.waiter-coverage-card.is-editing{outline:2px solid #276b4c;outline-offset:0;border-radius:8px;background:#f1f7f0}
.waiter-roster-coverage .waiter-coverage-card.is-editing>.staffing-coverage-period{outline:0;border-radius:7px 7px 0 0;border-bottom:0}
.waiter-coverage-card.is-editing .waiter-need-workflow{margin:0;border:0;border-radius:0 0 8px 8px;padding:0 8px 8px;background:#f1f7f0}
.waiter-coverage-card.is-editing [data-waiter-need-form]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;padding:8px 0 0;min-width:0}
.waiter-coverage-card.is-editing [data-waiter-need-form]>label{display:grid;gap:3px;font-size:11px;min-width:0}
.waiter-coverage-card.is-editing [data-waiter-need-form] input{width:100%;max-width:100%;min-width:0;box-sizing:border-box;font-size:12px;padding:4px 2px}
.waiter-coverage-card.is-editing [data-waiter-need-form]>label:nth-child(3){grid-column:1/-1;display:flex;justify-content:center;gap:8px}
.waiter-coverage-card.is-editing [data-waiter-need-form] input[name=staff]{width:62px;text-align:center}
.waiter-coverage-card.is-editing .waiter-need-resolution{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:3px}
.waiter-coverage-card.is-editing .waiter-need-resolution>button{flex:1;font-size:11px;padding:5px}
.waiter-coverage-card.is-editing .waiter-need-resolution>details{flex:1;min-width:0}.waiter-coverage-card.is-editing summary{font-size:11px;padding:5px 2px;white-space:nowrap;text-align:center}
.waiter-coverage-card.is-editing .waiter-need-more-body{position:static;width:100%;max-width:none;padding:7px;box-shadow:none;box-sizing:border-box;font-size:11px}
.waiter-coverage-card.is-editing .waiter-need-resolution:has(details[open]){display:block}.waiter-coverage-card.is-editing .waiter-need-resolution:has(details[open])>button{margin-bottom:5px;width:100%}
.waiter-coverage-card.is-editing .waiter-need-more-body>button{white-space:normal;width:100%;font-size:11px;padding:5px;margin-left:0}
.waiter-coverage-card.is-editing .waiter-coverage-people{font-size:11px}.waiter-coverage-card.is-editing .waiter-coverage-people>span{padding:3px;overflow-wrap:anywhere}
.waiter-coverage-card.is-editing [data-waiter-need-status],.waiter-coverage-card.is-editing [data-waiter-need-error]{grid-column:1/-1;font-size:11px;overflow-wrap:anywhere}
.waiter-coverage-card.is-editing [data-waiter-need-status]:empty{display:none}

/* Month overview: compact day rows, details only in the active card. */
.waiter-month-day{grid-template-columns:108px minmax(0,1fr);padding:7px 14px;gap:10px}
.waiter-month-date strong{font-size:12px}.waiter-month-date small{font-size:11px;margin-top:3px}
.waiter-month-day .waiter-roster-coverage{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:10px;align-items:start}
.waiter-month-day .waiter-need-actions{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:stretch;gap:3px;margin:0}
.waiter-month-day .waiter-need-actions label{margin:0;font-size:11px;display:flex;align-items:center;gap:4px;line-height:16px}
.waiter-month-day .waiter-need-actions label input{margin:0;width:13px;height:13px}
.waiter-month-day .waiter-need-actions button{font-size:11px;padding:3px 5px;min-height:23px;white-space:nowrap}
.waiter-month-day .staffing-string-coverage{grid-column:1;grid-row:1;align-items:flex-start;padding:2px;gap:6px}
.waiter-month-day .waiter-coverage-card{flex:1 0 105px;min-width:105px;max-width:none}
.waiter-month-day .staffing-coverage-time{font-size:11px;padding:3px 4px;line-height:15px}
.waiter-month-day .staffing-coverage-time .staffing-coverage-opening{display:none}
.waiter-month-day .staffing-coverage-number{font-size:20px;padding:3px 4px;line-height:25px}
.waiter-month-day .staffing-coverage-number>span{font-size:11px}
.waiter-month-day .waiter-coverage-count{font-size:11px;padding:3px 4px;line-height:13px}
.waiter-month-day .waiter-coverage-card.is-editing{min-width:210px;flex-grow:0;flex-basis:220px}
.waiter-month-day-content>p{margin:8px 0;font-size:12px}
@media(max-width:760px){.waiter-month-day{grid-template-columns:78px minmax(0,1fr);padding:7px 8px;gap:7px}.waiter-month-day .waiter-roster-coverage{grid-template-columns:minmax(0,1fr);gap:4px}.waiter-month-day .waiter-need-actions{grid-column:1;grid-row:2;flex-direction:row;flex-wrap:wrap}.waiter-month-day .waiter-need-actions label{margin-right:auto}.waiter-month-day .waiter-coverage-card{min-width:100px}}

.waiter-month-day .waiter-coverage-card{flex:0 0 132px;min-width:132px;max-width:132px}
.waiter-month-day .waiter-coverage-card.is-editing{flex-basis:220px;min-width:220px;max-width:220px}
.waiter-month-day .waiter-coverage-count{white-space:normal}

/* Dense month overview: short rows, full detail only on the selected card. */
.waiter-month-needs-dialog>.report-popup-head{padding:9px 14px;gap:8px}
.waiter-month-needs-dialog>.report-popup-head h2{font-size:18px}
.waiter-month-needs-dialog>.report-popup-head p{font-size:11px;margin-top:2px}
.waiter-month-needs-dialog>.report-popup-head button{font-size:11px;min-height:28px;padding:4px 8px}
.waiter-month-groups{padding:5px 14px;gap:6px}.waiter-month-groups>button{font-size:11px;min-height:28px;padding:4px 10px}.waiter-month-groups>span{font-size:11px;margin-left:5px}
.waiter-month-day{grid-template-columns:86px minmax(0,1fr);padding:3px 12px;gap:8px}
.waiter-month-date{padding-top:2px}.waiter-month-date strong{font-size:11px;line-height:15px}.waiter-month-date small{font-size:11px;line-height:12px;margin-top:0}
.waiter-month-day .waiter-roster-coverage{grid-template-columns:minmax(0,1fr) 208px;gap:8px;align-items:center}
.waiter-month-day .waiter-need-actions{flex-direction:row;align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:4px}
.waiter-month-day .waiter-need-actions label{font-size:11px;white-space:nowrap;gap:3px}.waiter-month-day .waiter-need-actions label input{width:12px;height:12px}
.waiter-month-day .waiter-need-actions button{font-size:11px;min-height:24px;padding:3px 6px}
.waiter-month-day .staffing-string-coverage{gap:4px;padding:2px}
.waiter-month-day .waiter-coverage-card{flex:0 0 104px;min-width:104px;max-width:104px}
.waiter-month-day .staffing-coverage-period{min-height:0;border-radius:5px}
.waiter-month-day .staffing-coverage-time{font-size:11px;line-height:12px;padding:2px 3px}
.waiter-month-day .staffing-coverage-number{font-size:17px;line-height:18px;padding:1px 3px}
.waiter-month-day .staffing-coverage-number>span{font-size:11px}
.waiter-month-day .waiter-coverage-count{display:none}
.waiter-month-need-target{font-size:11px;line-height:11px;padding:1px 3px;color:#345a43}
.waiter-month-day .is-empty .waiter-month-need-target{color:#a52c31}
.waiter-month-day .waiter-coverage-card.is-editing{min-width:220px;max-width:220px;flex-basis:220px}
.waiter-month-day .is-editing .waiter-coverage-count{display:block;font-size:11px;line-height:13px;padding:3px}
.waiter-month-day .is-editing .waiter-month-need-target{display:none}
.waiter-month-day:has(.is-editing) .waiter-roster-coverage{align-items:start}
.waiter-month-day-content>p{margin:2px 0;font-size:11px}
.waiter-month-footer{padding:5px 14px;font-size:11px;gap:8px}.waiter-month-footer>button{font-size:11px;min-height:28px;padding:4px 9px}
@media(max-width:900px){.waiter-month-day .waiter-roster-coverage{grid-template-columns:minmax(0,1fr)}.waiter-month-day .waiter-need-actions{grid-column:1;grid-row:2;justify-content:flex-start}.waiter-month-day .waiter-need-actions label{margin-right:auto}}
.waiter-month-day .waiter-coverage-card button.staffing-coverage-period{min-width:0;width:100%}

.waiter-month-day{grid-template-columns:100px minmax(0,1fr);padding-top:2px;padding-bottom:2px}
.waiter-month-date .waiter-month-opening{font-size:11px;line-height:13px;color:#28553f;font-weight:600;white-space:nowrap}
.waiter-month-date .waiter-month-opening.is-closed{color:#9c3039;font-weight:700}
.waiter-month-day{padding-top:1px;padding-bottom:1px}

/* Distribution options have the same compact raised shape as agreed shifts. */
[data-manual-month-view] .workshop-actions-focused.workshop-roster-actions .workshop-roster-options summary{display:inline-flex;align-items:center;justify-content:center;min-height:30px!important;padding:4px 9px!important;border:1px solid var(--raised-border)!important;border-radius:22px;line-height:1.4;font-size:12px!important;font-weight:650;text-decoration:none}
@media(prefers-reduced-motion:reduce){[data-manual-month-view] .workshop-actions-focused .workshop-roster-options summary{transition:none}}

/* Day and group navigation sits beside the needs actions, in the former copy slot. */
.waiter-coverage-navigation{display:flex;align-items:center;gap:5px;flex:0 0 auto;flex-wrap:wrap;max-width:100%}
.waiter-coverage-navigation>button{padding:4px 10px;font-size:13px;min-height:30px}
.waiter-coverage-navigation>button[aria-pressed=true]{background:#19392d;color:#fff}
.waiter-coverage-navigation .waiter-coverage-date-picker{width:145px;min-height:30px;padding:4px 8px;font-size:13px;margin:0}
/* Manual staffing adjustment: named shifts, hours and impact in one popup. */
.staffing-adjust-dialog{width:min(1150px,96vw);height:94dvh}.staffing-adjust-dialog .report-popup-head p{margin:4px 0 0}
.staffing-adjust-methods{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 16px;padding:10px;border:1px solid #c7d9cc;border-radius:8px;background:#f5f8f3}.staffing-adjust-methods label{display:flex;align-items:center;gap:6px;font-size:13px}.staffing-adjust-methods p{width:100%;margin:0}
.staffing-adjust-sort{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.staffing-adjust-sort label{display:flex;align-items:center;gap:7px;font-size:12px}.staffing-adjust-sort select{min-height:30px;margin:0;font-size:12px}
.staffing-adjust-table{max-height:310px;margin:10px 0}.staffing-adjust-table table{width:100%;font-size:12px}.staffing-adjust-table td,.staffing-adjust-table th{padding:8px}.staffing-adjust-table label{display:flex;gap:7px;align-items:center}.staffing-adjust-table small{display:block;font-size:11px;margin-top:3px}.staffing-adjust-table input[type=checkbox]{margin:0;width:16px;height:16px;flex:0 0 16px}
.staffing-adjust-reason,[data-adjust-error]{color:#9d3034;font-size:12px}.staffing-adjust-coverage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:9px;margin:10px 0 18px}
.staffing-adjust-block{border:1px solid #bad3c1;border-radius:9px;overflow:hidden;background:#f7f9f5}.staffing-adjust-block>header{display:flex;justify-content:space-between;gap:10px;padding:7px 10px;font-size:12px}.staffing-adjust-block>header small{font-size:11px}.staffing-adjust-numbers{padding:7px 10px;background:#d0e6d6;font-size:18px}.staffing-adjust-block>p{padding:0 10px}.staffing-adjust-block.is-selected{outline:1px solid #3d7f59}.staffing-adjust-block.has-warning{border-color:#cc7b77}.staffing-adjust-block.has-warning .staffing-adjust-numbers{background:#f3d4ce;color:#962c32}
.staffing-adjust-people{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:white;padding:9px 10px;border-top:1px solid #d9e4dc}.staffing-adjust-people h4{font-size:11px;margin:0 0 7px}.staffing-adjust-person{display:grid;grid-template-columns:1fr auto;gap:2px 6px;padding:4px 0;border-bottom:1px solid #e5ece7;font-size:11px}.staffing-adjust-person strong{overflow-wrap:anywhere}.staffing-adjust-person small{grid-column:1/-1;font-size:11px;color:#687e6f}
.staffing-adjust-changes{padding-top:8px;border-top:1px solid #d6e3d9}.staffing-adjust-changes p{font-size:12px}.staffing-adjust-ack{display:flex;align-items:center;gap:8px;background:#fff0eb;border:1px solid #e3b8a5;padding:9px;border-radius:7px;font-size:12px}
.staffing-adjust-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 18px;border-top:1px solid var(--line);background:#f4f8f2;font-size:12px}.staffing-adjust-footer .actions{margin:0}
@media(max-width:700px){.staffing-adjust-coverage{grid-template-columns:1fr}.staffing-adjust-footer{padding:9px 12px}.staffing-adjust-table{max-height:360px}}

.staffing-adjust-block>details>summary{padding:6px 9px;border-top:1px solid #d9e4dc;font-size:11px;cursor:pointer;color:#245640}.staffing-adjust-block:has(>details[open]){grid-column:1/-1}.staffing-adjust-block>p{margin:6px 0;font-size:11px}.staffing-adjust-block .staffing-adjust-numbers{padding:5px 9px;font-size:17px}.staffing-adjust-delta{padding:0 9px 7px;font-size:11px;color:#536d5c}.staffing-adjust-delta>div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:2px 8px;padding-top:3px}.staffing-adjust-delta strong{color:#183e2b}.staffing-adjust-delta span{overflow-wrap:anywhere}
@media(min-width:701px) and (max-width:950px){.staffing-adjust-coverage{grid-template-columns:repeat(2,minmax(0,1fr))}}

.staffing-adjust-block .staffing-adjust-changed-name{display:inline-flex;align-items:center;flex-wrap:wrap;gap:3px 6px;padding:2px 5px;border-radius:4px;background:#fff0b3;color:#473a12;box-decoration-break:clone}.staffing-adjust-change-label{font-size:11px;font-weight:600;white-space:nowrap;color:#685313}.staffing-adjust-person .staffing-adjust-changed-name{justify-self:start}

.staffing-adjust-duty-alert{border:1px solid #c66d56;border-left:5px solid #a43c28;border-radius:7px;background:#fff1df;padding:10px 12px;margin:0 0 14px;color:#74301e;font-size:13px}.staffing-adjust-duty-alert p{margin:5px 0 0}

.staffing-adjust-main-block{grid-column:1/-1;border:3px solid #111;border-radius:10px;padding:7px;background:#fffdf4;min-width:0}.staffing-adjust-main-block>header{display:flex;justify-content:space-between;gap:10px;padding:0 2px 7px;color:#111;font-size:13px}.staffing-adjust-main-block>header span{font-weight:700;font-size:11px}.staffing-adjust-main-parts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:8px}.staffing-adjust-block.is-selected{outline:none}.staffing-adjust-block.is-affected{background:#fff7d6;border-color:#d6bb60}.staffing-adjust-block.is-affected .staffing-adjust-numbers{background:#f7e7a6}.staffing-adjust-block.is-affected .staffing-adjust-people{background:#fffbed}.staffing-adjust-block.has-warning{background:#fff4ef;border-color:#cc7b77}.staffing-adjust-block.has-warning .staffing-adjust-numbers{background:#f3d4ce;color:#962c32}@media(max-width:700px){.staffing-adjust-main-parts{grid-template-columns:1fr}}

.staffing-adjust-table .staffing-adjust-new-time{font-size:11px;font-weight:700;color:#24543a}.staffing-adjust-table .staffing-adjust-advice{font-size:11px;line-height:1.4;max-width:330px;color:#576b60}.staffing-adjust-table .staffing-adjust-advice.has-alternative{padding:5px 6px;background:#fff4cf;border-radius:4px;color:#56461b}

.staffing-removal-advice{margin:8px 0;padding:9px 11px;border:1px solid #b7cdb9;border-radius:6px;background:#f0f7ec;font-size:12px;color:#244734}.staffing-removal-advice>p{margin:4px 0;line-height:1.4}.staffing-removal-advice details{font-size:11px;margin-top:4px}.staffing-removal-advice summary{cursor:pointer}.staffing-adjust-table .staffing-adjust-recommended{display:inline-block;padding:2px 5px;background:#e6f0dc;color:#294b28;font-size:11px;font-weight:700;border-radius:4px}

.waiter-coverage-wish{display:block;padding:4px 6px;font-size:12px;font-weight:700;color:#234a33;background:#f7faf7}.waiter-month-day .waiter-coverage-wish{font-size:11px;line-height:11px;padding:1px 3px}.waiter-need-compact [data-waiter-need-form]>label:has([name=staff]){flex-wrap:wrap;justify-content:space-between;line-height:1.25}.waiter-roster-coverage .is-empty .waiter-coverage-wish{color:#9b2429}

.waiter-fill-period-dialog{width:min(620px,96vw);height:fit-content;min-height:0;max-height:84dvh;inset:8dvh 0 auto;margin:0 auto}.waiter-fill-period-dialog>.report-popup-body{flex:0 1 auto}.waiter-fill-period-dialog.report-popup-full{width:98vw;height:98dvh;max-height:98dvh;inset:1dvh 0 auto}.waiter-fill-period-dialog .row{display:flex;gap:14px;flex-wrap:wrap}.waiter-fill-period-dialog label{flex:1;min-width:180px}.waiter-fill-period-dialog [data-fill-summary]{font-weight:700;color:#204e38}.waiter-fill-period-dialog [data-fill-error]{color:#a13030;font-size:13px}.waiter-fill-period-dialog .actions{justify-content:flex-end}

.personal-welcome-actions{justify-content:flex-end;flex-wrap:wrap;margin:0}.personal-welcome-actions #personal-unlock-leader{display:inline-flex;align-items:center;gap:8px}.personal-welcome-actions #personal-unlock-leader svg{flex-shrink:0}@media(max-width:600px){.personal-welcome{flex-wrap:wrap}.personal-welcome-actions{width:100%;justify-content:flex-start}}

.waiter-history-extra{outline:2px solid #2c817c;outline-offset:-2px}.waiter-history-badge{display:block;background:#ccece7;color:#164b46;border-radius:4px;padding:2px 3px;font-size:11px;font-weight:700;line-height:1.2}.waiter-history-extra .waiter-history-badge{margin-top:3px}

.waiter-history-extra .waiter-history-badge{white-space:nowrap;overflow-wrap:normal;word-break:normal;font-size:11px;padding:1px 2px}

.waiter-extras-actions th{background:#f4f7f4}.waiter-extras-actions .actions{margin:0;gap:10px;justify-content:space-between}.waiter-extras-actions button{font-size:12px;min-height:30px;padding:5px 9px}.waiter-extras-heading th{padding:6px 9px!important;text-align:left!important}.waiter-extras-heading .check{display:inline-flex;margin:0 0 0 16px;font-size:12px;gap:5px}.waiter-extras-history th{background:#dfefeb!important;color:#164b46}.waiter-extras-munu th{background:#ffead1!important;color:#70420b}
.waiter-extra-cell{position:relative;padding-top:4px}.waiter-extra-keep{position:absolute;z-index:2;top:-2px;right:-1px;display:flex;padding:1px;margin:0;background:#fff;border:1px solid #89958f;border-radius:3px}.waiter-extra-keep input[type=checkbox]{width:12px;height:12px;min-width:0;min-height:0;padding:0;margin:0;accent-color:#246c60}.waiter-extra-keep:focus-within{outline:2px solid #183c30;outline-offset:2px}.waiter-extra-not-kept .month-open-shift{opacity:.55}.waiter-extras-heading input[type=checkbox]{width:13px;height:13px;min-width:0;min-height:0}
.roster-compact-calendar.manual-month-calendar td .month-open-shift.waiter-source-extra{padding:1px;min-height:30px;font-size:12px;line-height:1.1}.waiter-source-extra .waiter-source-badge{display:block;font-size:11px;font-weight:600;line-height:1;white-space:nowrap;margin:0;padding:0;overflow-wrap:normal;word-break:normal}.waiter-source-history{outline:2px solid #2c817c;outline-offset:-2px}.waiter-source-history .waiter-source-badge{background:#ccece7;color:#164b46}.roster-compact-calendar.manual-month-calendar td .month-open-shift.waiter-source-munu{background:#ffe0b1!important;border:1px solid #cb8a36;border-style:dashed;color:#70420b}.waiter-source-munu .waiter-source-badge{color:#70420b;background:transparent}

.waiter-extra-cell{padding-top:15px}.waiter-extra-keep{top:-1px;right:0}.waiter-extras-actions th{padding:6px 9px!important}.waiter-extras-actions .actions{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0!important;font-size:12px;line-height:1.3}.waiter-extras-actions .actions>strong{font-size:12px}.manual-month-calendar th .waiter-remove-extras{display:inline-flex!important;width:auto!important;min-height:28px;align-items:center;padding:4px 8px;border:1px solid #8ba296;border-radius:6px;background:#fff;color:#214832;font-size:12px}

.roster-compact-calendar.manual-month-calendar td .month-open-shift.waiter-source-munu.booking-approved-shift{border-style:solid}

/* Separate combined preview: existing editable month cards remain in place. */
.combined-month-dialog{width:min(1420px,97vw);height:92dvh;overflow:hidden}
.combined-month-dialog.report-popup-full{width:98vw;height:98dvh}
.combined-month-dialog>.report-popup-body{min-height:0;overflow:hidden;display:flex;flex-direction:column}
.combined-month-dialog>.report-popup-body>div{min-height:0;display:flex;flex-direction:column;height:100%}
.combined-month-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 0 9px}
.combined-month-controls .check{font-size:13px;font-weight:650}
.combined-month-legend{display:flex;gap:7px;font-size:11px;margin-bottom:8px}
.combined-source-base{background:#fff1ba;color:#695417;border-radius:3px;padding:1px 4px}
.combined-source-history{background:#d6eeea;color:#21594e;border-radius:3px;padding:1px 4px}
.combined-source-munu{background:#ffe3bd;color:#7a4811;border-radius:3px;padding:1px 4px}
.combined-month-table{overflow:auto;flex:1;min-height:0}
.combined-month-table table{width:100%;font-size:12px}
.combined-month-table th,.combined-month-table td{padding:5px 7px}
.combined-month-table thead th{position:sticky;top:0;z-index:2;background:#edf3ed}
.combined-month-table tbody th{width:83px;white-space:nowrap}
.combined-month-table .combined-sunday{background:#fff0f2}
.combined-month-table .combined-monday>*{border-top:2px solid #bcd2c2}
.combined-month-periods{display:flex;gap:5px;flex-wrap:wrap}
.combined-month-period{border:1px solid #bbd1c1;border-radius:6px;background:#f5f9f5;min-width:108px;text-align:center;overflow:hidden;font-size:11px}
.combined-month-period>span{display:block;padding:2px 5px;font-weight:650}
.combined-month-period>strong{display:block;background:#cee4d4;padding:2px 4px;font-size:17px;line-height:1.15}
.combined-month-period small{font-size:11px;font-weight:500}
.combined-source-counts{display:flex;justify-content:center;gap:2px;padding:3px;font-size:11px;flex-wrap:wrap}
.combined-month-period:focus-visible{outline:2px solid #24583d;outline-offset:1px}

.workspace-language-control{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:13px;margin:0}
.workspace-language-control select{width:auto;min-width:94px;max-width:140px;min-height:32px;padding:4px 24px 4px 8px;border:1px solid #abc0b0;border-radius:8px;background:#fff;color:#173b2b;font-size:12px}
.workspace-language-control select:focus-visible{outline:2px solid #336c4d;outline-offset:2px}
.workspace-language-control .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.topbar-personal-links{flex-wrap:wrap}
.workspace-login-language{display:flex;justify-content:flex-end;margin-bottom:12px}

/* Compact team capacity check alongside the existing roster warnings. */
.waiter-team-capacity-button>summary{border:1px solid #91aa9b;border-radius:8px;padding:6px 10px;font-weight:700;cursor:pointer;background:#f2f7f3;color:#193c2d}
.waiter-team-capacity-button.has-shortfall>summary{background:#fff2cf;border-color:#bc8b25;color:#614408}
.waiter-team-capacity-table{max-height:55vh}
.waiter-team-capacity-table td small{display:block;margin-top:4px}
.waiter-team-capacity-table td p{margin:5px 0}
.waiter-team-capacity-table .team-capacity-shortfall{background:#fff5db}
.waiter-team-capacity-table .team-capacity-unknown{background:#f4f5f4}
.manual-month-top-warnings{gap:8px;flex-wrap:wrap;align-items:center}
.waiter-team-capacity-button{margin:0;padding:0;border:0;background:transparent}
.waiter-team-capacity-button>summary.report-info-trigger{min-height:28px;font-size:12px;padding:5px 9px}
.waiter-team-capacity-table>table{min-width:670px}
.waiter-team-capacity-button{display:inline-block}
