:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif;color:#172f2c;background:#f3f5f5;font-size:16px;--green:#123c36;--accent:#12695a;--line:#dce4e1;--muted:#637771}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button{border:1px solid var(--line);border-radius:8px;padding:10px 16px;background:#fff;color:var(--green);font-weight:600}button:hover{background:#edf5f1;border-color:#9eb8b0}button.primary{background:var(--green);border-color:var(--green);color:#fff}button.primary:hover{background:#205a50}button.danger{color:#a03731;border-color:#e5bbb8}.quiet{background:transparent;border-color:transparent}.small{padding:7px 10px;font-size:.875rem}input,select,textarea{background:white;border:1px solid #bccdc7;border-radius:7px;padding:10px 12px;color:#172f2c;min-height:44px;max-width:100%}textarea{resize:vertical;width:100%;min-height:76px}label{display:flex;flex-direction:column;gap:7px;font-size:.875rem;font-weight:600}h1,h2,h3,p{margin:0}h1{font-size:1.75rem;letter-spacing:.015em}h2{font-size:1.2rem}h3{font-size:1rem}.muted{color:var(--muted)}.eyebrow{font-size:.75rem;letter-spacing:.16em;color:var(--muted);font-weight:700}.shell{min-height:100vh;display:grid;grid-template-columns:224px minmax(0,1fr)}.sidebar{background:var(--green);color:#fff;padding:32px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 32px}.brand img{width:35px;height:35px;border:1px solid #76978b;border-radius:8px}.brand strong{font-size:1.1rem;letter-spacing:.09em}.brand small{display:block;font-size:.7rem;letter-spacing:.1em;color:#a4beb6;margin-top:5px}.nav-label{font-size:.75rem;color:#a4beb6;margin:12px 12px}.sidebar nav{display:grid;gap:7px}.sidebar nav button{color:#d4e2dc;background:transparent;border:0;text-align:left;display:flex;gap:12px;align-items:center;padding:14px}.sidebar nav button.active{background:#2c5149;color:#fff}.nav-icon{width:20px;font-size:1.1rem}.sidebar-foot{margin-top:auto;padding:20px 10px 0;font-size:.875rem;color:#adc3bc;line-height:1.8}.workspace{min-width:0}.topbar{min-height:76px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 36px}.breadcrumb{font-size:.875rem;color:var(--muted)}.user{display:flex;align-items:center;gap:12px;font-size:.875rem}.avatar{background:#e5efea;color:var(--green);border-radius:50%;width:34px;height:34px;display:grid;place-items:center}.main{padding:32px 36px 50px;max-width:1900px;margin:auto}.demo-banner{background:#e8effa;color:#3d547b;font-size:.875rem;padding:9px 36px;border-bottom:1px solid #d5e0f1}.heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}.heading p{margin-top:9px;font-size:.875rem;color:var(--muted)}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}.stat{background:#fff;border:1px solid var(--line);border-radius:11px;padding:18px 21px}.stat .label{font-size:.875rem;color:var(--muted)}.stat strong{display:block;font-size:1.8rem;font-weight:600;margin-top:10px;letter-spacing:-.04em}.stat strong small{font-size:.875rem;font-weight:400;letter-spacing:0;margin-left:6px}.stat.alert{border-top:3px solid #b37529}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 22px;border-bottom:1px solid var(--line);flex-wrap:wrap}.week-nav{display:flex;gap:7px;align-items:center}.week-nav strong{min-width:200px;text-align:center}.legend{font-size:.875rem;color:var(--muted);display:flex;gap:16px}.badge{display:inline-flex;align-items:center;border-radius:5px;padding:4px 7px;font-size:.75rem;line-height:1.4;font-weight:600;white-space:nowrap}.badge.published,.badge.approved{color:#246852;background:#e7f3ec}.badge.draft{color:#68766f;background:#edf0ed}.badge.submitted{color:#836018;background:#fbf0d8}.badge.returned{color:#9c4136;background:#fbe9e5}.badge.night{color:#536591;background:#edf0fa}.board-scroll{overflow:auto}.board{border-collapse:collapse;width:100%;min-width:1060px;table-layout:fixed}.board th{font-size:.875rem;font-weight:500;background:#fafcfb;border-bottom:1px solid var(--line);padding:14px 6px;text-align:center}.board th:first-child{width:180px;text-align:left;padding-left:20px}.board td{vertical-align:top;border-right:1px solid var(--line);border-bottom:1px solid var(--line);height:196px;padding:10px 7px}.board td:first-child{background:#fafcfb;padding:20px 17px}.board td:last-child{border-right:0}.board tr:last-child td{border-bottom:0}.board th.today{color:var(--accent);background:#e9f2ed}.day-number{font-size:1.3rem;font-weight:650;margin-right:5px}.site-title{font-weight:650;line-height:1.8;font-size:.9rem}.site-meta{font-size:.75rem;color:var(--muted);margin-top:8px;line-height:1.7}.assignment{display:block;width:100%;background:#fff;border:1px solid var(--line);padding:11px 9px;text-align:left;line-height:1.6;font-weight:400;margin-bottom:7px;box-shadow:0 2px 3px #15332b04}.assignment .task{font-size:.8rem;color:#536d64;margin:8px 0}.names{display:flex;gap:4px;flex-wrap:wrap}.name-chip{background:#edf3f0;border-radius:4px;padding:3px 6px;font-size:.8rem;color:#254d42}.vendor-count{font-size:.8rem;color:var(--muted);border-top:1px solid #edf0ee;margin-top:9px;padding-top:7px}.add-cell{font-size:.875rem;border:1px dashed #d2dfd9;color:#81958d;width:100%;margin-top:7px;background:transparent;padding:9px}.panel-foot{padding:14px 22px;font-size:.875rem;color:var(--muted);border-top:1px solid var(--line)}.list{display:grid;gap:14px}.report-card{padding:21px;display:flex;align-items:center;justify-content:space-between;gap:20px;background:white;border:1px solid var(--line);border-radius:10px}.report-card h3{margin:7px 0}.report-card p{font-size:.875rem;color:var(--muted);line-height:1.8}.card-meta{display:flex;gap:9px;align-items:center;font-size:.875rem;color:var(--muted)}.empty{padding:56px 22px;text-align:center;color:var(--muted);line-height:2}.filters{display:flex;gap:14px;align-items:end;flex-wrap:wrap;margin-bottom:20px}.hint{padding:13px 16px;background:#f0f5f2;border-radius:8px;font-size:.875rem;line-height:1.8;color:#4b695d;margin-bottom:20px}.warning{background:#fff4dc;color:#815b1c}.error{color:#a3322b;background:#fff0ee;padding:12px 14px;border-radius:7px;font-size:.875rem;line-height:1.7}.table{border-collapse:collapse;width:100%;min-width:650px}.table th,.table td{padding:14px 18px;border-bottom:1px solid var(--line);text-align:left;font-size:.875rem}.table th{color:var(--muted);background:#fafcfb;font-weight:500}.table .num{text-align:right;font-variant-numeric:tabular-nums}.table tr:last-child td{border-bottom:0}.login{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.login-story{background:var(--green);padding:70px;color:#fff;display:flex;flex-direction:column;justify-content:center}.login-story .eyebrow{color:#a8c7b9}.login-story h1{font-size:clamp(1.6rem,3.4vw,2.8rem);line-height:1.6;margin-top:28px}.login-story p{line-height:2;color:#bfd1c8;margin-top:28px}.login-story .line{width:54px;height:4px;background:#d5b76d;margin-top:32px}.login-form{max-width:450px;width:100%;margin:auto;padding:40px}.login-form h2{font-size:1.6rem;margin-bottom:12px}.login-form form{display:grid;gap:18px;margin:28px 0}.demo-roles{border-top:1px solid var(--line);padding-top:24px}.demo-roles p{font-size:.875rem;line-height:1.8;color:var(--muted);margin-bottom:15px}.demo-roles .actions button{flex:1;min-width:100px}.loading{padding:60px;color:var(--muted)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);padding:13px 22px;max-width:90vw;background:var(--green);color:#fff;box-shadow:0 8px 32px #15332b30;border-radius:8px;z-index:20;display:none;font-size:.9rem}#toast.visible{display:block}dialog{border:0;border-radius:16px;padding:0;max-width:1000px;width:calc(100% - 40px);max-height:92vh;color:#172f2c;box-shadow:0 24px 100px #132c2540}dialog::backdrop{background:#0c241e70;backdrop-filter:blur(3px)}.dialog-head{padding:22px 26px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center}.dialog-body{padding:24px 26px}.dialog-footer{display:flex;justify-content:flex-end;gap:10px;padding:18px 26px;background:#fafcfb;border-top:1px solid var(--line);position:sticky;bottom:0;z-index:2}.form-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:14px;margin-bottom:20px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}.employee-row{display:grid;grid-template-columns:minmax(110px,1.2fr) minmax(105px,1fr) 96px 96px minmax(100px,1fr) 36px;gap:8px;align-items:end;background:#f6f8f6;border:1px solid #e3eae5;border-radius:8px;padding:12px;margin-bottom:9px}.employee-row.plan-row{grid-template-columns:1fr 36px}.employee-row input,.employee-row select{width:100%;padding:9px 7px}.employee-row label{font-size:.75rem}.vendor-row{display:grid;grid-template-columns:minmax(130px,2fr) repeat(5,minmax(50px,1fr)) 36px;gap:8px;align-items:end;background:#f6f8f6;border:1px solid #e3eae5;border-radius:8px;padding:12px;margin-bottom:9px}.vendor-row input,.vendor-row select{width:100%;padding:9px 7px}.vendor-row label{font-size:.75rem}.remove{min-width:32px;padding:8px;border-color:transparent;color:#83625c}.detail-line{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);font-size:.9rem}.detail-line small{color:var(--muted)}.history{border-left:2px solid var(--line);margin:15px 5px;padding:3px 0 3px 17px;display:grid;gap:16px;font-size:.875rem;line-height:1.8}.history small{display:block;color:var(--muted)}.preline{white-space:pre-wrap;overflow-wrap:anywhere}.tabs{display:flex;gap:7px;margin-bottom:20px;flex-wrap:wrap}.tabs button.active{background:#e1ede6;border-color:#a8c6b8}.master-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.master-grid ul{padding:0 20px;list-style:none;max-height:400px;overflow:auto}.master-grid li{padding:12px 0;border-bottom:1px solid var(--line);font-size:.9rem}.master-grid form{display:flex;gap:8px;padding:18px;border-top:1px solid var(--line)}.master-grid input{min-width:0;width:100%}.mobile-bottom{display:none}
@media(min-width:1600px){.board th:first-child{width:220px}.board td{padding:12px}.assignment{padding:14px}}
@media(max-width:1100px){.shell{grid-template-columns:186px minmax(0,1fr)}.sidebar{padding:26px 12px}.main{padding:25px 22px}.topbar{padding:16px 22px}.demo-banner{padding:9px 22px}.stats{gap:10px}.stat{padding:16px}.master-grid{grid-template-columns:1fr}.login-story{padding:45px}}
@media(max-width:760px){.shell{display:block}.sidebar{position:static;height:auto;padding:15px 18px;display:block}.brand{padding:0}.brand small{display:none}.sidebar nav,.sidebar-foot,.nav-label{display:none}.topbar{min-height:54px;padding:10px 18px}.breadcrumb{display:none}.user{width:100%;justify-content:flex-end}.main{padding:22px 16px 96px}.demo-banner{padding:8px 16px;font-size:.75rem}.heading{align-items:flex-start;margin-bottom:20px;flex-wrap:wrap}.heading h1{font-size:1.45rem}.heading p{line-height:1.7}.stats{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:20px}.stat{padding:14px}.stat strong{font-size:1.5rem;margin-top:6px}.stat .label{font-size:.8rem}.report-card{padding:17px;display:block}.report-card .actions{margin-top:15px}.report-card .actions button{flex:1}.panel-head{padding:16px}.week-nav strong{min-width:130px;font-size:.875rem}.week-nav button{padding:9px}.legend{display:none}.mobile-bottom{display:flex;position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);padding:8px 5px max(8px,env(safe-area-inset-bottom));z-index:5;justify-content:space-around}.mobile-bottom button{display:grid;gap:4px;text-align:center;justify-items:center;border:0;font-size:.75rem;padding:5px 10px;color:var(--muted)}.mobile-bottom button.active{color:var(--green);background:#edf4ef}.login{display:block}.login-story{padding:26px}.login-story h1{font-size:1.7rem;margin-top:10px}.login-story p,.login-story .line{display:none}.login-form{padding:28px}.login-form h2{font-size:1.3rem}dialog{width:calc(100% - 16px);max-height:95dvh;border-radius:12px}.dialog-head{padding:17px}.dialog-body{padding:18px 15px}.dialog-footer{padding:14px 15px;flex-wrap:wrap}.dialog-footer button{flex:1;white-space:nowrap}.form-grid{grid-template-columns:1fr 1fr;gap:12px}.form-grid label:first-child{grid-column:1/-1}.employee-row{grid-template-columns:1fr 1fr;position:relative;padding:14px}.employee-row>label:first-child{grid-column:1/-1;margin-right:38px}.employee-row>label:nth-child(5){grid-column:1/-1}.employee-row .remove{position:absolute;top:14px;right:10px}.employee-row.plan-row{grid-template-columns:1fr}.employee-row label{font-size:.875rem}.vendor-row{grid-template-columns:repeat(3,1fr);position:relative}.vendor-row label:first-child{grid-column:1/-1;margin-right:38px}.vendor-row .remove{position:absolute;top:14px;right:10px}.vendor-row label{font-size:.875rem}.filters label{flex:1;min-width:120px}.filters input,.filters select{width:100%}.board th:first-child,.board td:first-child{position:sticky;left:0;z-index:1;width:145px}.master-grid{grid-template-columns:1fr}}
@media print{.sidebar,.topbar,.demo-banner,.heading .actions,.panel-head button,.mobile-bottom,.filters button,.add-cell,#toast{display:none!important}.shell{display:block}.main{padding:0}.stats{display:none}.panel{border:0}.board-scroll{overflow:visible}.board{min-width:0}.board th:first-child{width:120px}.board td{height:auto;padding:5px}.assignment{box-shadow:none;break-inside:avoid}.board .name-chip{font-size:10px}.board .task,.board .vendor-count{font-size:10px}.table{min-width:0}.heading{margin-bottom:15px}@page{size:A3 landscape;margin:10mm}}

.employee-picker-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:12px;font-size:.875rem;color:var(--muted)}
.employee-picker-summary strong{color:var(--green);white-space:nowrap}
.employee-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:8px}
.employee-choice{flex-direction:row;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding:12px;background:#fff;cursor:pointer;min-height:50px;font-size:1rem;font-weight:500;overflow-wrap:anywhere}
.employee-choice:hover{background:#f2f7f4;border-color:#9eb8b0}
.employee-choice:has(input:checked){background:#e5f1ea;border-color:var(--accent);color:var(--green);font-weight:650}
.employee-choice:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.employee-choice input{appearance:auto;accent-color:var(--accent);width:18px;height:18px;min-height:18px;margin:0;padding:0;flex:0 0 18px;cursor:pointer}
@media(max-width:760px){.employee-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-choice{padding:10px 8px;gap:7px;font-size:.875rem}.employee-picker-summary{font-size:.875rem}}

.board-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.board td{height:120px;padding:7px 5px}
.board .assignment{border:0;box-shadow:none;padding:0;background:transparent;border-radius:4px;margin-bottom:8px;font-weight:400}
.board .assignment:hover{background:#f3f7f5}
.board .assignment:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.placement-list{display:grid;gap:4px}
.placement-person,.placement-vendor{border-left:4px solid #71839b;border-radius:5px;background:#fff;padding:5px 7px;font-size:.875rem;line-height:1.5;text-align:left;overflow-wrap:anywhere}
.placement-person.duplicate{background:#ffebe9;border-left-color:#d13e35;color:#a02520;font-weight:650}
.placement-vendor{display:flex;align-items:flex-start;gap:5px;border-left-color:#c18a2a;background:#fbf7ef}
.placement-vendor-name{flex:1;min-width:0}
.placement-vendor-count{flex-shrink:0;min-width:24px;padding:0 4px;border:1px solid #ded7cc;border-radius:4px;background:#fff;text-align:center;font-weight:700;line-height:1.4}
.board .assignment>.badge{margin:0 0 5px}
.placement-legend{display:flex;gap:8px 16px;flex-wrap:wrap;font-size:.875rem;color:var(--muted)}
.duplicate-legend{color:#a02520}
@media(max-width:760px){.board-stats .stat{padding:12px 9px}.board-stats .stat strong{font-size:1.3rem}.placement-legend{line-height:1.7}}
@media print{.placement-person,.placement-vendor{font-size:10px;padding:3px 4px}.placement-person.duplicate{print-color-adjust:exact;-webkit-print-color-adjust:exact}.board td{height:auto}}

.report-plan-choice{display:grid;gap:9px;width:100%;text-align:left;padding:18px;line-height:1.7;font-weight:400}
.report-plan-choice strong{font-size:1.05rem}
.report-picker-help{margin:16px 0;color:var(--muted);font-size:.875rem;line-height:1.8}
.report-picker-cta{color:var(--accent);font-weight:650}
.report-plan-source{border-left:4px solid var(--accent)}
.report-from-board{width:100%;font-size:.8rem;margin-bottom:8px;color:var(--accent);background:#edf5f1;padding:6px}
@media print{.report-from-board{display:none!important}}

.employee-time-total{grid-column:1/-1;text-align:right;font-size:.875rem;color:var(--muted);padding-top:3px}
.employee-row input[aria-invalid="true"]{border-color:#b33e32}
.sidebar button.brand{width:100%;border:0;border-radius:9px;background:transparent;color:#fff;text-align:left;cursor:pointer}.sidebar button.brand:hover,.sidebar button.brand:focus-visible{background:#204a43}.sidebar button.brand>span{display:block}.sidebar button.brand strong,.sidebar button.brand small{display:block}
.account-table{overflow:auto}.account-sites{max-height:260px;overflow:auto;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.account-sites label,.account-password-toggle{display:flex;flex-direction:row;align-items:center;gap:10px;padding:8px}.account-sites input,.account-password-toggle input{width:20px;min-height:20px;height:20px;flex-shrink:0}#account-sites[hidden]{display:none}@media(max-width:600px){.account-sites{grid-template-columns:1fr}}
.employee-confirm{border:1px solid var(--line);border-radius:8px;margin-bottom:10px;overflow:hidden}.employee-confirm summary{display:flex;align-items:center;gap:14px;padding:16px;cursor:pointer;background:#f7faf8}.employee-confirm summary span{color:var(--muted);font-size:.875rem}.employee-confirm summary small{margin-left:auto;color:var(--accent);white-space:nowrap}.employee-confirm[open] summary{border-bottom:1px solid var(--line)}.employee-confirm .employee-row{margin:0;border:0;border-radius:0;grid-template-columns:repeat(3,minmax(0,1fr))}.employee-confirm .employee-row .remove{position:static;justify-self:end}.employee-confirm .employee-row>label{grid-column:auto;margin:0}@media(max-width:760px){.employee-confirm summary{flex-wrap:wrap;gap:8px}.employee-confirm .employee-row{grid-template-columns:1fr 1fr}.employee-confirm .employee-row>label:first-child,.employee-confirm .employee-row>label:last-of-type{grid-column:1/-1}}
.master-list li{display:flex;align-items:center;justify-content:space-between;gap:10px}.master-list li>span{min-width:0}.master-hidden>span{color:var(--muted);text-decoration:line-through}.status-master-list button{flex-shrink:0}.employee-choice.inactive-selected{opacity:.62;border-style:dashed}.employee-choice.inactive-selected small{display:block;font-size:.75rem;color:var(--muted);margin-top:3px}
/* Vehicle schedule: fixed vehicle labels and horizontally scrollable dates. */
.fleet-scroll{overflow:auto;max-height:72vh;border-radius:0 0 10px 10px}.fleet-table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:.875rem}.fleet-table th,.fleet-table td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);padding:3px;min-width:86px;max-width:86px;height:64px;background:#fff}.fleet-table thead th{position:sticky;top:0;z-index:2;text-align:center;background:#f2f6f4;height:56px}.fleet-table th:first-child{position:sticky;left:0;z-index:1;min-width:250px;max-width:250px;text-align:left;padding:10px 14px;background:#fff}.fleet-table thead th:first-child{z-index:3;background:#f2f6f4}.fleet-table th span,.fleet-table th small{display:block;font-weight:400;margin-top:3px}.fleet-table small{font-size:.8rem;color:var(--muted)}.fleet-table .fleet-sat{background:#edf4ff}.fleet-table .fleet-sun{background:#fff0f1}.fleet-table .fleet-today{box-shadow:inset 0 -3px var(--accent)}.fleet-cell{display:flex;flex-direction:column;justify-content:center;width:100%;min-height:54px;height:100%;padding:6px;border:0;border-radius:5px;font-size:.875rem;font-weight:500;text-align:left;overflow:hidden}.fleet-cell span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.fleet-cell small{color:inherit}.fleet-cell:disabled{opacity:1;cursor:default}.fleet-empty{background:transparent;color:#82968d;text-align:center;align-items:center}.site-color-0{background:#cce9de}.site-color-1{background:#d8e6fa}.site-color-2{background:#f4dbb9}.site-color-3{background:#e3d9f5}.site-color-4{background:#f3d8e4}.site-color-5{background:#daf0cb}.site-color-6{background:#cae9eb}.site-color-7{background:#f4edb9}.vehicle-unavailable{background:repeating-linear-gradient(135deg,#e6e7e7 0,#e6e7e7 7px,#f2f2f2 7px,#f2f2f2 14px);color:#454e4a}.vehicle-chips{display:flex;flex-direction:column;gap:5px;margin:8px 0}.vehicle-chip{display:block;padding:7px 9px;background:#e6eff8;border-left:3px solid #577fa5;border-radius:4px;color:#294862;font-size:.875rem}.vehicle-chip strong{white-space:nowrap}.fleet-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.fleet-check{display:flex;flex-direction:row;align-items:center;gap:10px}.fleet-check input{width:20px;height:20px;min-height:20px}.fleet-master-item{text-align:left;display:flex;flex-direction:column;gap:6px}.fleet-master-item small{font-weight:400}.mobile-bottom{overflow-x:auto}.mobile-bottom button{flex-shrink:0}
@media(max-width:600px){.fleet-table th:first-child{min-width:165px;max-width:165px;padding:8px}.fleet-table th,.fleet-table td{min-width:80px;max-width:80px}.fleet-form{grid-template-columns:1fr}.fleet-scroll{max-height:65vh}}

/* Weekly plan date selection */
.plan-dates{border:1px solid var(--border,#ddd);border-radius:12px;padding:16px;margin:16px 0}
.plan-dates .section-head{margin-top:0}.plan-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;text-align:center;margin:12px 0}
.plan-date{position:relative;margin:0;cursor:pointer}.plan-date input{position:absolute;opacity:0;width:1px;height:1px}.plan-date span{display:block;padding:10px 0;border:1px solid #d6dedb;border-radius:6px}.plan-date input:checked+span{background:#176b54;color:white;border-color:#176b54}.plan-date input:focus-visible+span{outline:3px solid #e3a63f;outline-offset:2px}.plan-date.other-month span{color:#75857f}.plan-date.other-month input:checked+span{color:white}.plan-range{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.plan-range label{flex:1;min-width:125px}.plan-range input{min-width:0;width:100%}.plan-selected{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.plan-dates .hint{margin:8px 0}

.batch-choices{max-height:360px;overflow:auto;margin:12px 0}.batch-choice{display:flex;align-items:start;gap:12px;padding:12px;border-bottom:1px solid #ddd}.batch-choice input{width:20px;flex-shrink:0}.batch-choice small{display:block;overflow-wrap:anywhere}.plan-history-entry{border-bottom:1px solid #ddd;padding:16px 0;overflow-wrap:anywhere}.plan-history-entry details{padding:12px;background:#f3f7f5}.plan-history-entry h4{margin:16px 0 8px}[data-batch-field][hidden]{display:none!important}.status-master-list li{flex-wrap:wrap}.status-master-list li>span{flex:1;min-width:110px}

/* Keep modal dismissal visible while long forms scroll. */
.dialog-head{position:sticky;top:0;z-index:4;background:#fff}
.dialog-head [data-action="close"][aria-label="閉じる"]{display:inline-flex;align-items:center;justify-content:center;min-width:104px;min-height:44px;padding:9px 14px;background:#f4f7f6;border:1px solid #a9bcb6;color:var(--green);font-size:0;box-shadow:0 2px 7px #15332b12}
.dialog-head [data-action="close"][aria-label="閉じる"]::after{content:"×  閉じる";font-size:.9rem;font-weight:700;letter-spacing:.03em}
.dialog-head [data-action="close"][aria-label="閉じる"]:hover{background:#e5efeb;border-color:#6f9187}

/* Monthly raw attendance matrix. */
.monthly-legend{display:flex;gap:18px;flex-wrap:wrap;align-items:center;margin:-8px 0 16px;color:var(--muted);font-size:.875rem}.monthly-reference-key{font-style:italic;color:#98a39f}.monthly-pending-key{color:#8a6420}.monthly-scroll{overflow:auto;max-height:calc(100vh - 245px)}.monthly-grid{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;font-size:.8rem}.monthly-grid th,.monthly-grid td{height:34px;min-width:78px;max-width:120px;padding:6px 8px;border-right:1px solid #cbd4d1;border-bottom:1px solid #cbd4d1;text-align:center;background:#fff;white-space:nowrap}.monthly-grid thead th{position:sticky;top:0;z-index:3;background:#edf2f4;font-weight:700}.monthly-grid thead th small{display:block;font-size:.7rem;margin-top:2px}.monthly-grid .monthly-name{position:sticky;left:0;z-index:2;min-width:145px;max-width:145px;background:#f8faf9;text-align:left;white-space:normal}.monthly-grid thead .monthly-name{z-index:5;background:#edf2f4}.monthly-grid .monthly-kind{position:sticky;left:145px;z-index:2;min-width:58px;max-width:58px;background:#f8faf9;text-align:left;font-weight:700}.monthly-grid thead .monthly-kind{z-index:5;background:#edf2f4}.monthly-grid .monthly-sat{color:#2771b8;background:#edf5ff}.monthly-grid .monthly-sun{color:#c24747;background:#fff0f1}.monthly-grid td.monthly-reference{color:#9aa4a0;font-style:italic}.monthly-grid td.monthly-pending{background:#fff4d8;color:#765719}.monthly-grid td.monthly-linked{cursor:pointer}.monthly-grid td.monthly-linked:hover{box-shadow:inset 0 0 0 2px var(--accent);background:#eaf4f0}

.previous-day-copy{display:block;width:100%;margin:6px 0 0;padding:6px 8px;font-size:12px;white-space:nowrap;font-weight:600;background:white}.copy-date-arrow{line-height:1.8}@media print{.previous-day-copy{display:none}}

/* Approval inbox: stage, owner and next action stay visible together. */
.review-flow{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#eaf2ee;border-radius:10px;padding:16px 20px;margin-bottom:20px;font-size:.9rem}.review-flow b{display:inline-grid;place-items:center;background:var(--green);color:white;border-radius:50%;width:24px;height:24px;margin-right:5px}
.review-search{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:18px;margin-bottom:12px}.review-search label{min-width:150px;flex:1}.review-search label:nth-child(3){flex:2}.review-search input,.review-search select{width:100%;min-width:0}.review-scope{color:var(--muted);font-size:.85rem;line-height:1.8;margin:12px 0 20px}.review-backlog{display:flex;align-items:center;justify-content:space-between;gap:16px}.review-backlog button{flex-shrink:0}
.review-counters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.review-counter{text-align:left;border:1px solid var(--line);border-top:4px solid #94a59e;border-radius:10px;padding:20px;display:flex;flex-direction:column;gap:10px;box-shadow:none;background:white}.review-counter strong{font-size:2rem;line-height:1.2}.review-counter strong small{font-size:.85rem;margin-left:6px}.review-counter>small{color:var(--muted);font-size:.8rem;font-weight:400}.review-counter.selected{outline:2px solid var(--green);outline-offset:2px}.review-counter.stage-submitted{border-top-color:#b2771e}.review-counter.stage-missing{border-top-color:#617caa}.review-counter.stage-returned{border-top-color:#bd4b48}.review-counter.stage-approved{border-top-color:#26795f}
.review-tabs{gap:8px}.review-tabs button{font-size:.85rem;padding:10px 13px}.review-tabs b{margin-left:5px}.review-result{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px;flex-wrap:wrap}.review-result h2{font-size:1.15rem}.review-result span{font-size:.8rem;color:var(--muted)}.review-card{border-left:4px solid #94a59e;align-items:center}.review-card.stage-submitted{border-left-color:#b2771e}.review-card.stage-missing,.review-card.stage-draft{border-left-color:#617caa}.review-card.stage-returned{border-left-color:#bd4b48}.review-card.stage-approved{border-left-color:#26795f}.review-card .card-meta{flex-wrap:wrap}.review-card .card-meta>strong{color:var(--green);font-variant-numeric:tabular-nums}.review-card-main{min-width:0;flex:1;overflow-wrap:anywhere}.review-card h3{font-size:1.2rem;margin:12px 0}.review-card p.review-next{color:var(--green);margin:7px 0}.review-card-action{display:grid;gap:8px;min-width:150px;max-width:240px}.review-card-action small{font-size:.8rem;color:var(--muted)}.review-status{display:inline-flex;padding:5px 9px;border-radius:6px;font-size:.8rem;font-weight:700;background:#eff2f1;color:#52675f}.review-status.stage-submitted{background:#fff0ce;color:#805314}.review-status.stage-missing,.review-status.stage-draft{background:#eaf0fa;color:#3e5f8a}.review-status.stage-returned{background:#fde8e5;color:#a52f30}.review-status.stage-approved{background:#e0f1e9;color:#21684f}.review-status.stage-future{background:#eef0f1;color:#626c71}.review-card .review-correction{color:#815b1c;background:#fff4dc;padding:9px;border-radius:6px}
@media(max-width:760px){.review-flow{gap:8px;padding:12px;font-size:.8rem}.review-counters{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.review-counter{padding:13px 10px;font-size:.85rem}.review-counter strong{font-size:1.7rem}.review-counter>small{font-size:.7rem}.review-search{gap:10px;padding:14px}.review-search label{min-width:120px}.review-search label:nth-child(3){flex-basis:100%}.review-search button{flex:1}.review-backlog{align-items:stretch;flex-direction:column}.review-card-action{max-width:none;margin-top:16px}.review-card-action button{width:100%}.review-card .card-meta{gap:7px}.review-tabs button{flex:1 0 auto}.review-result span{line-height:1.7}}
.review-search-panel{margin-bottom:12px}.review-search-panel>summary{cursor:pointer;min-height:48px;padding:14px 18px;font-size:.9rem;font-weight:650}.review-search-panel[open]>summary{border-bottom:1px solid var(--line)}.review-search-panel .review-search{margin:0}
/* Personal access views */
.my-plan-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px}.personal-day{padding:20px}.personal-day article+article{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}#account-form [hidden]{display:none!important}#account-form .account-sites{max-height:240px;overflow:auto}#account-form section{margin:20px 0}#account-dual input,#account-delegation input[type=checkbox]{width:22px;height:22px;vertical-align:middle}
/* Employee/day attendance ledger */
.attendance-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:20px 0}.attendance-toolbar p{margin:8px 0;color:var(--muted)}.attendance-caution{display:block;color:#98630d;margin-top:6px}.attendance-table td{vertical-align:top}.attendance-table small{display:block}.attendance-confirm{display:flex;align-items:center;gap:12px;margin:24px 0}.attendance-confirm input[type=checkbox]{width:24px;height:24px;flex:none}.attendance-closed{display:flex;align-items:center;gap:16px;flex-wrap:wrap}#attendance-form fieldset{border:0;padding:20px 0;margin:0;min-width:0}#attendance-form fieldset>label{margin:16px 0}#attendance-search{align-items:end}#attendance-search label{min-width:150px}#attendance-search select{max-width:240px}#attendance-form .account-table{margin-bottom:20px}

.attendance-totals{min-width:1000px}.attendance-totals th,.attendance-totals td{white-space:nowrap}.attendance-totals th:first-child,.attendance-totals td:first-child{min-width:140px}
/* Individual wage statements: separate print surface and named A4 page. */
.payroll-money-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:15px 0 24px}.payroll-money-grid input{width:100%;min-width:0}.payroll-live-totals{display:flex;gap:24px;flex-wrap:wrap;padding:18px;background:#e7f0eb;margin:18px 0}.payroll-live-totals strong{display:block;font-size:1.15rem}.payroll-daily-editor{margin:24px 0}.payroll-daily-editor summary{cursor:pointer;font-weight:700;padding:14px 0}.payroll-daily-editor td{padding:8px}.payroll-daily-editor input{width:100px;padding:8px}.payroll-daily-editor td:first-child{min-width:180px}.payroll-daily-editor td:nth-child(2){white-space:nowrap}#payroll-form>.dialog-body>label{margin:18px 0}.payroll-preview-scroll{overflow:auto;background:#e4e8e6;padding:18px}.payroll-sheet{background:#fff;color:#111;width:281mm;padding:0;margin:auto;font-family:'Hiragino Kaku Gothic ProN',Meiryo,sans-serif;font-size:8pt;line-height:1.15}.payroll-sheet h1{font-size:14pt;letter-spacing:.03em;margin:0 0 2mm}.payroll-sheet p{margin:0}.payroll-sheet-head{display:flex;justify-content:space-between;align-items:center;gap:4mm;padding:3mm 0}.payroll-sheet-head>div:nth-child(2){text-align:center}.payroll-person{min-width:52mm;max-width:70mm}.payroll-person strong{font-size:12pt}.payroll-sheet table{border-collapse:collapse;table-layout:fixed;width:100%;color:#111}.payroll-sheet td,.payroll-sheet th{border:0.25mm solid #666;padding:.2mm .6mm;font-weight:400;text-align:center;overflow-wrap:anywhere}.payroll-sheet th{background:#eee;font-size:7.5pt}.payroll-days tbody tr{height:3.5mm}.payroll-days tbody tr:nth-child(even){background:#f1f1f1}.payroll-days .pdate{width:6%}.payroll-days .psite{width:23%}.payroll-days .ptime{width:4%}.payroll-days .pmoney{width:5%}.payroll-days .ptotal{width:12%}.payroll-days td.payroll-site{text-align:left;font-size:7pt;line-height:1.1}.payroll-days td.money{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:7.5pt}.payroll-days td:first-child{white-space:nowrap}.payroll-summary{margin-top:1.5mm}.payroll-summary td{height:4.3mm}.payroll-bottom{display:grid;grid-template-columns:2fr 1fr;gap:2mm}.payroll-payment td:last-child{font-size:10pt;border:0.5mm solid #111}.payroll-sheet-foot{display:flex;justify-content:space-between;align-items:end;gap:5mm;padding-top:2mm;min-height:8mm}.payroll-sheet-foot>div{flex:1;white-space:pre-wrap;overflow-wrap:anywhere}.payroll-sheet-foot small{font-size:6.5pt}.payroll-sheet-foot>strong{font-size:12pt;white-space:nowrap}.payroll-sum{font-weight:700}#payroll-print-layer{display:none}
@media(max-width:760px){.payroll-money-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payroll-preview-scroll{padding:12px}.payroll-live-totals{gap:16px}}
@page payroll{size:A4 landscape;margin:8mm}
@media print{body.printing-payroll{background:white}body.printing-payroll>*:not(#payroll-print-layer){display:none!important}body.printing-payroll #payroll-print-layer{display:block!important;page:payroll}body.printing-payroll .payroll-sheet{width:100%;margin:0;page:payroll;break-inside:avoid}body.printing-payroll .payroll-sheet *{print-color-adjust:exact;-webkit-print-color-adjust:exact}body.printing-payroll dialog{display:none!important}}

#payroll-edit .dialog-head>button,#payroll-preview .dialog-head>button{flex-shrink:0;white-space:nowrap;min-width:90px}

@media print{html:has(body.printing-payroll){background:#fff}}
.salary-company{padding:22px;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:20px 0}.salary-company p{margin:10px 0;line-height:1.6}.salary-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 26px}.salary-fields input,.salary-fields select{width:100%;min-width:0}#salary-form .dialog-body>label{margin:18px 0}#salary-form h3{margin:28px 0 14px}.salary-history{margin:24px 0}.salary-history summary{cursor:pointer;font-weight:700}.salary-history button{display:block;width:100%;margin:8px 0;text-align:left}.salary-calculation-tools{display:flex;align-items:center;gap:18px;margin:20px 0;flex-wrap:wrap}.salary-calculation-tools p{font-size:.85rem;color:var(--muted)}.sidebar nav{overflow-y:auto;min-height:0;flex-shrink:1}.sidebar-foot{flex-shrink:0}
@media(max-width:760px){.salary-fields{grid-template-columns:1fr}.salary-company{align-items:start;flex-direction:column}#salary-form .dialog-head button{white-space:nowrap;flex-shrink:0}}

.salary-calculation-details{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:8px}.salary-calculation-details summary{cursor:pointer;font-weight:700}.salary-calculation-details p{margin:10px 0;font-size:.85rem;line-height:1.6}

[data-salary-split][hidden],#salary-form label[hidden]{display:none!important}.attendance-clock{margin:20px 0;padding:16px;border:1px solid #bacfc7;border-radius:10px}.attendance-clock summary{cursor:pointer;font-weight:700}.attendance-clock textarea{min-height:80px}

.payroll-days td:not(.payroll-site){white-space:nowrap}.payroll-days td.money{font-size:6.5pt}.payroll-sheet .payroll-counts th{font-size:6.8pt}

[data-salary-manual-note][hidden]{display:none!important}

/* Weekly board employee drag and drop. */
.member-draggable{cursor:grab;position:relative;display:flex;align-items:center;gap:5px}
.member-drag-handle{flex:none;color:#789087;font-size:20px;line-height:1;touch-action:none;padding:5px 2px;cursor:grab}
.member-dragging{opacity:.35;cursor:grabbing}
.board .member-drop-target{background:#e1f1e9;outline:3px solid #258570;outline-offset:-3px}
.member-insert-before{box-shadow:0 -3px 0 #167460}
.member-drag-ghost{position:fixed;z-index:10000;pointer-events:none;background:#123e35;color:white;padding:10px 15px;border-radius:8px;box-shadow:0 4px 15px #0003}
.member-move-saving .member-draggable{cursor:wait;pointer-events:none}
@media print{.member-drag-handle{display:none}}

.withholding-settings,.employment-settings{margin:24px 0;padding:20px;border:1px solid var(--border,#dbe4e0);border-radius:12px;background:#f7faf8}
.withholding-settings h3,.employment-settings h3{margin-top:0}
.withholding-result{overflow-wrap:anywhere}
.tax-automatic::after{content:'自動計算';font-size:.8rem;color:#246b5a}
.tax-automatic input{background:#edf5f1}

/* Keep dates in view while scrolling the weekly allocation table. */
/* Let vertical scrolling continue to the page at the table boundaries. */
.board-scroll{max-height:calc(100dvh - 160px);overflow:auto;scrollbar-gutter:stable;overscroll-behavior:contain auto}
.board thead th{position:sticky;top:0;z-index:3;box-shadow:0 1px 0 var(--line)}
.board th:first-child,.board td:first-child{position:sticky;left:0;z-index:2}
.board thead th:first-child{z-index:4}
.site-order-controls{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}
.site-order-controls button{padding:6px 9px;min-height:36px;font-size:.8rem}
.site-order-controls button:disabled{opacity:.35;cursor:default}
@media(max-width:760px){.board-scroll{max-height:calc(100dvh - 180px)}}
@media print{.board-scroll{max-height:none;overflow:visible;scrollbar-gutter:auto}.board thead th,.board th:first-child,.board td:first-child{position:static}.site-order-controls{display:none}}

/* Wage statement arranged to match the supplied paper form. */
.payroll-photo{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;font-size:8pt;line-height:1.1}
.payroll-photo .payroll-sheet-head{padding:2mm 0 1mm;gap:7mm;height:14mm}
.payroll-photo .payroll-person{display:flex;border:.3mm solid #222;min-width:67mm;align-items:center;min-height:7mm;font-size:10pt}
.payroll-photo .payroll-person span{border-right:.2mm solid #222;padding:1.5mm 2mm}
.payroll-photo .payroll-person strong{padding:1mm 4mm;font-size:10pt;font-weight:400}
.payroll-photo .payroll-title{flex:1;border-bottom:.8mm double #222;white-space:nowrap}
.payroll-photo h1{font-size:13pt;font-weight:700;margin:0 0 1mm}
.payroll-photo .payroll-paydate{border:.3mm solid #222;padding:1.6mm 2mm;white-space:nowrap;font-size:9pt}
.payroll-period{font-size:6.5pt;text-align:right;margin-bottom:1mm}
.payroll-photo th{background:white;font-size:7pt;white-space:nowrap}
.payroll-photo td,.payroll-photo th{border-color:#444;padding:.15mm .45mm}
.payroll-photo .payroll-days tbody tr{height:4.2mm}
.payroll-photo .payroll-days tbody tr:nth-child(even){background:#dedede}
.payroll-photo .payroll-days td{font-size:8pt}
.payroll-photo .payroll-days td.payroll-site{font-size:7pt;line-height:1;white-space:normal}
.payroll-photo .payroll-days thead tr{height:3.3mm}
.payroll-photo-bottom{display:grid;grid-template-columns:1fr 24mm;margin-top:2mm}
.payroll-photo .payroll-summary{margin:0}
.payroll-photo .payroll-summary td{height:3.5mm}
.payroll-photo .payroll-summary th{height:3.5mm;font-size:7pt}
.payroll-deductions-line{display:grid;grid-template-columns:1fr 19mm}
.payroll-photo .payroll-payment td{font-size:9pt;height:3.5mm;border:.3mm solid #222}
.payroll-photo .payroll-payment th{height:3.5mm}
.payroll-photo .payroll-payment .payroll-net-label{background:#111;color:#fff}
.payroll-photo .payroll-counts{margin-top:0}
.payroll-photo .payroll-sheet-foot{padding-top:2mm;min-height:8mm}
.payroll-photo .payroll-sheet-foot strong{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;letter-spacing:1mm;font-size:13pt}
.payroll-photo .payroll-sheet-foot small{font-size:6pt}

.payroll-photo .photo-date{width:5%}.payroll-photo .photo-site{width:25%}.payroll-photo .photo-time{width:5%}.payroll-photo .photo-money{width:6%}.payroll-photo .photo-total{width:14%}

.daily-allocation h3{margin:8px 0 0}.daily-people{overflow:auto}.daily-people .table{min-width:640px}.daily-people select{padding:9px;font-size:16px;min-width:100px}.daily-field-label{display:none}.daily-employee-name{min-width:120px;word-break:normal}.daily-save-actions{max-width:100%;min-width:0}.daily-save-actions [data-daily-error]{margin-top:9px}.daily-vendors,.daily-source-note{padding:12px 22px;margin:0}.daily-vendors{background:#f5f8f6}.daily-allocation .panel-foot{display:flex;gap:15px;flex-wrap:wrap;align-items:center}.daily-allocation .panel-head{background:#f9fbfa}

[data-daily-error]:empty{display:none}.daily-submit-help{width:100%;margin:4px 0 0;color:var(--muted);font-size:.85rem}.daily-allocation button[aria-busy="true"]{cursor:wait}

.monthly-approval-link{border:0;background:transparent;color:inherit;padding:5px 3px;width:100%;font:inherit;border-radius:3px;text-decoration:underline;text-underline-offset:3px}.monthly-approval-link:hover{background:#e4efea}.monthly-approval-link:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}@media print{.monthly-approval-link{text-decoration:none;padding:0}}
.monthly-days-28{--monthly-days:28}.monthly-days-29{--monthly-days:29}.monthly-days-30{--monthly-days:30}.monthly-days-31{--monthly-days:31}
.monthly-shell .monthly-scroll{flex:1;min-height:0;max-height:none;overscroll-behavior:contain;margin-bottom:0}.monthly-shell .monthly-legend{flex-shrink:0;gap:8px 14px;margin:0 0 10px;font-size:11px}.monthly-legend button{font-size:11px;padding:6px 8px}
.monthly-grid{table-layout:fixed;width:calc(214px + var(--monthly-days)*64px);min-width:0}.monthly-grid col.monthly-name-col{width:160px}.monthly-grid col.monthly-kind-col{width:54px}.monthly-grid col.monthly-date-col{width:64px}.monthly-grid th,.monthly-grid td{min-width:0;max-width:none;padding:4px 3px;overflow-wrap:anywhere}.monthly-grid .monthly-name{min-width:160px;max-width:160px;vertical-align:top}.monthly-grid .monthly-kind{left:160px;min-width:54px;max-width:54px;padding-left:5px;font-size:11px}.monthly-grid .monthly-summary{height:42px}.monthly-expand{display:flex;align-items:start;gap:5px;width:100%;min-height:34px;border:0;background:transparent;padding:5px 4px;text-align:left;font-size:12px;line-height:1.5;white-space:normal}.monthly-expand span{flex-shrink:0}.monthly-grid .monthly-compact-cell{height:42px;padding:3px 2px}.monthly-value{display:block;font-size:12px;line-height:17px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monthly-stage,.monthly-compact-cell .monthly-approval-link{display:block;font-size:10px;line-height:16px;padding:0;white-space:nowrap}.monthly-detail td{white-space:normal;font-size:11px;line-height:1.5}.monthly-detail .monthly-approval-link{font-size:10px;padding:0}.monthly-grid .monthly-today{box-shadow:inset 1px 0 #74a99a,inset -1px 0 #74a99a}.monthly-grid thead th.monthly-today{background:#dceee6;color:#125345;box-shadow:inset 0 0 0 2px #398a70}.monthly-grid tbody:last-child tr:last-child td{border-bottom:0}
@media(max-width:760px){.monthly-shell .monthly-legend{gap:5px 8px;font-size:10px}.monthly-shell .monthly-legend>span:first-of-type{flex-basis:100%}.monthly-shell .heading .actions{flex-wrap:wrap}}
@media print{.monthly-shell .monthly-scroll{flex:none;overflow:visible;max-height:none}.monthly-shell .monthly-legend button{display:none}.monthly-grid{width:100%;min-width:0;font-size:8px}.monthly-grid col.monthly-name-col{width:100px}.monthly-grid col.monthly-kind-col{width:34px}.monthly-grid col.monthly-date-col{width:auto}.monthly-grid th,.monthly-grid td{height:auto;min-width:0;padding:2px 1px;position:static!important}.monthly-grid .monthly-name{min-width:0;max-width:none}.monthly-grid .monthly-kind{min-width:0;max-width:none;font-size:8px}.monthly-expand{font-size:9px;min-height:0;padding:2px}.monthly-value{font-size:9px}.monthly-stage,.monthly-compact-cell .monthly-approval-link,.monthly-detail td{font-size:8px;white-space:normal}.monthly-employee-group{break-inside:avoid}.monthly-grid .monthly-pending,.monthly-grid .monthly-reference,.monthly-grid .monthly-today{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.payroll-period-nav{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;margin:24px 0}.payroll-period-nav label{flex:1;min-width:180px}.payroll-period-nav input{width:100%}.payroll-period-nav button{white-space:nowrap}@media(max-width:600px){.payroll-period-nav label{order:-1;flex-basis:100%}.payroll-period-nav{gap:8px}.payroll-period-nav button{flex:1;padding:10px 8px}}

.manual-link{color:var(--ink,#183b35);font-size:14px;white-space:nowrap;text-underline-offset:4px}.sidebar-foot a{color:inherit;display:inline-block;margin-bottom:10px}

/* The weekly board uses one viewport and one table scroll area. */
.board-shell .workspace{height:100dvh;display:flex;flex-direction:column;min-height:0}
.board-shell .topbar,.board-shell .demo-banner{flex-shrink:0}
.board-shell .main{width:100%;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;padding:18px 24px 16px}
.board-shell .heading{margin-bottom:12px;flex-shrink:0}.board-shell .heading h1{font-size:1.5rem}.board-shell .heading p{font-size:12px;margin-top:5px}
.board-summary{display:flex;align-items:center;gap:22px;flex-shrink:0;padding:8px 12px;margin-bottom:12px;background:#e9f0ed;border-radius:7px;color:var(--muted);font-size:12px;line-height:1.4}
.board-summary strong{color:var(--green);font-size:16px;margin:0 3px}
.board-panel{flex:1;min-height:0;display:flex;flex-direction:column}.board-panel>.panel-head{padding:10px 14px;flex-shrink:0;gap:8px}.board-panel .week-nav strong{min-width:185px;font-size:13px}.board-panel .week-nav button{padding:6px 10px}.board-panel .placement-legend{font-size:11px;gap:6px 12px}
.board-panel>.board-scroll{flex:1;min-height:0;max-height:none;overflow:auto;overscroll-behavior:contain}.board-panel>.panel-foot{flex-shrink:0;padding:8px 12px;font-size:11px;line-height:1.5}
.board{min-width:1160px}.board th:first-child{width:150px}.board thead th{padding:9px 4px;position:sticky;top:0;z-index:5}.board thead th:first-child{left:0;z-index:6}.board .day-number{font-size:18px}
.board tbody th.board-site{position:sticky;left:0;z-index:3;background:#f7faf8;border-right:1px solid var(--line);text-align:left;vertical-align:top;padding:8px 7px}
.board .site-title{display:block;background:transparent;border:0;padding:2px 0;width:100%;text-align:left;font-size:12px;line-height:1.5;white-space:normal}
.board .site-order-controls{display:none;margin-top:4px;gap:3px}.board tr.site-selected .site-order-controls{display:flex}.board .site-order-controls button{font-size:10px;padding:3px 5px}
.board td.board-cell{position:relative;height:48px;padding:4px;cursor:pointer}.board-cell:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.board-cell.selected{background:#eaf5ef;box-shadow:inset 0 0 0 2px #31806a}
.board .assignment{padding:0;margin:0;line-height:1.3;cursor:pointer}.board .assignment+.assignment{margin-top:4px}.board .assignment:hover{background:transparent}
.placement-status{display:flex;align-items:center;gap:4px;margin-bottom:3px}.plan-publication{font-size:10px;line-height:1.3;padding:1px 4px;border-radius:3px}.plan-publication.is-published{color:#356951;background:#e7f2e9}.plan-publication.is-unpublished{color:#774600;background:#ffe4ad;font-weight:700}.board .assignment-unpublished{border-left:3px solid #d59428;padding-left:4px;background:#fff9ed}.board-unpublished-alert{color:#774600;font-weight:600}.placement-status .badge{font-size:10px;padding:1px 4px;margin:0}
.placement-task,.placement-note{font-size:11px;line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;margin:2px 0}.placement-task{font-weight:600;color:#26423b}.placement-note{color:#60716a}.placement-note>span{font-weight:600}
.plan-employee-controls{display:flex;gap:12px;margin-bottom:10px}.plan-employee-controls>label:first-child{flex:1}.plan-employee-controls input{width:100%}.employee-picker-summary{flex-wrap:wrap}.employee-picker-summary [data-plan-summary]{flex:1;min-width:170px;font-size:12px}.employee-choice>span{min-width:0}.employee-choice small[data-plan-status]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:11px;line-height:1.4;color:#5a7066;font-weight:400;margin-top:3px}.employee-choice.placement-busy{border-color:#d3a169;background:#fff9ed}.employee-choice.placement-busy small{color:#864b08}.employee-choice[hidden]{display:none!important}#plan-dates-container{margin:15px 0}.unallocated-people{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
@media(max-width:760px){.plan-employee-controls{gap:8px}.plan-employee-controls input,.plan-employee-controls select,#edit-date,#edit-site,#edit-shift,#unallocated-date,#unallocated-shift{font-size:16px}.plan-employee-controls>label:last-child{max-width:120px}.employee-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-choice{padding:9px;min-width:0}}
.board .placement-list{display:flex;flex-wrap:wrap;align-items:flex-start;gap:2px}.board .placement-person,.board .placement-vendor{display:inline-flex;align-items:center;border-left-width:2px;border-radius:3px;padding:2px 4px;font-size:12px;line-height:1.2;white-space:nowrap;max-width:100%;overflow-wrap:normal;background:#edf2f8}
.board .placement-person.duplicate{background:#ffebe9}.board .placement-vendor{gap:3px;background:#fbf3e3}.board .placement-vendor-name{overflow:hidden;text-overflow:ellipsis}.board .placement-vendor-count{min-width:16px;padding:0 2px;font-size:10px}
.board .member-drag-handle{display:none}.board-cell.selected .member-drag-handle{display:inline-flex;position:absolute;left:-3px;top:0;width:8px;height:18px;min-height:0;padding:0;font-size:10px;line-height:18px;margin:0;align-items:center;justify-content:center}.board .assignment>.badge{font-size:10px;padding:1px 4px;margin:0 0 3px}
.board .vehicle-chips{margin-top:3px;gap:3px}.board .vehicle-chip{font-size:10px;padding:2px 4px}.board-vacant{display:block;color:#cad5cf;text-align:center;font-size:14px;line-height:30px}
.board-cell-actions{position:absolute;top:100%;left:0;z-index:8;width:204px;padding:9px;background:white;border:1px solid #7ea797;border-radius:7px;box-shadow:0 5px 20px #123c3630;cursor:default;max-height:300px;overflow:auto}
.board-cell:has(.board-cell-actions){z-index:7}.board-cell-actions.above{top:auto;bottom:100%}.board-cell-actions.align-right{left:auto;right:0}.board-cell-actions>strong{display:block;font-size:12px;line-height:1.5;padding:2px 2px 6px}.board-cell-actions>strong small{display:block;font-size:11px;font-weight:400;color:var(--muted)}
.board-cell-actions button{display:block;width:100%;font-size:12px;padding:7px 8px;line-height:1.3;text-align:left;margin:3px 0 0}.board-cell-actions .add-cell{color:var(--green);border-style:solid;background:#f4f8f5}.board-cell-actions .quiet{font-size:11px;text-align:center}
.board tr.board-empty-summary td{height:auto;padding:0;background:#f4f7f5;border:0}.board-empty-summary button{width:100%;border:0;border-radius:0;text-align:left;padding:11px 14px;font-size:12px}.board-empty-summary small{margin-left:12px;color:var(--muted);font-weight:400}
@media(max-width:760px){
 .board-shell{height:100dvh;min-height:0;display:flex;flex-direction:column}.board-shell>.sidebar{flex-shrink:0}.board-shell .workspace{height:auto;flex:1;min-height:0}.board-shell .main{padding:10px 10px 78px}.board-shell .heading{gap:6px;margin-bottom:8px}.board-shell .heading h1{font-size:20px}.board-shell .heading p{display:none}.board-shell .heading .actions{gap:5px}.board-shell .heading button{font-size:11px;padding:6px 8px}
 .board-shell .user{font-size:12px;gap:8px}.board-shell .user>button,.board-shell .manual-link{font-size:12px;white-space:nowrap;flex-shrink:0}.board-shell .user>button{padding:7px 8px}.board-shell .user>span:not(.avatar){min-width:0}
 .board-summary{gap:9px;padding:6px 8px;margin-bottom:8px;font-size:10px;white-space:nowrap}.board-summary strong{font-size:13px;margin:0 2px}.board-panel>.panel-head{padding:8px}.board-panel .week-nav{gap:3px}.board-panel .week-nav strong{min-width:170px;font-size:12px}.board-panel .week-nav button{padding:6px 8px}.board-panel .placement-legend{display:none}.board-panel>.panel-foot{font-size:10px;padding:6px 8px}
 .board{min-width:1220px}.board th:first-child{width:150px}.board .placement-person,.board .placement-vendor{font-size:11px;padding:3px}.board-cell.selected .member-drag-handle{left:-4px;width:10px;height:20px;min-height:0;font-size:12px;line-height:20px}.board-cell-actions button{min-height:40px}.board-cell-actions{max-height:250px}
}
@media print{
 .placement-task,.placement-note{white-space:pre-wrap;overflow:visible;font-size:9px;overflow-wrap:anywhere}.plan-publication{font-size:8px}.plan-publication.is-unpublished{print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .board-shell,.board-shell .workspace,.board-shell .main,.board-panel{display:block;height:auto;min-height:0;overflow:visible}.board-shell .main{padding:0}.board-panel>.board-scroll{overflow:visible;max-height:none!important}.board{min-width:0}.board thead th,.board tbody th.board-site{position:static}.board .site-title{display:block!important;font-size:10px;color:#172f2c}.board-cell-actions,.board-empty-summary,.board .site-order-controls,.board .member-drag-handle{display:none!important}.board td.board-cell{height:auto;box-shadow:none;background:white}.board .placement-person,.board .placement-vendor{font-size:9px;padding:2px}.board-summary{margin-bottom:6px}
}

@media(max-width:760px){
 #work-date,.employee-confirm input,.employee-confirm select{font-size:16px}
 .daily-allocation .panel-head{padding:16px;gap:12px}.daily-save-actions{width:100%}.daily-save-actions .actions{display:grid;grid-template-columns:1fr;gap:8px}.daily-save-actions button{width:100%;min-height:44px}.daily-submit-help{line-height:1.7}
 .daily-people{overflow:visible}.daily-people .table{display:block;min-width:0}.daily-people thead{display:none}.daily-people tbody{display:block;padding:12px 16px}
 .daily-people tr{display:block;border:1px solid var(--line);border-radius:8px;padding:12px;margin-bottom:12px;background:#f9fbfa}.daily-people tr:last-child{margin-bottom:0}
 .daily-people .table td{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border:0;font-size:16px;min-width:0}.daily-people .table .daily-employee-name{display:block;padding:0 0 10px;font-weight:600;white-space:normal;overflow-wrap:break-word}
 .daily-field-label{display:block;flex:1;font-size:14px;line-height:1.6}.daily-people select{width:135px;flex-shrink:0;min-width:0;min-height:44px;font-size:16px}
 .daily-vendors,.daily-source-note,.daily-allocation .panel-foot{padding:12px 16px}
}

.review-bulk{padding:16px 20px;margin:14px 0}.review-bulk-actions{display:flex;gap:16px;justify-content:space-between;align-items:center;flex-wrap:wrap}.review-bulk label,.review-select{display:flex;flex-direction:row;align-items:center;gap:8px}.review-bulk input,.review-select input{width:22px;height:22px;min-height:22px;flex-shrink:0;accent-color:var(--accent)}.review-bulk p{color:var(--muted);font-size:14px;line-height:1.8;margin-top:10px}.review-select{padding:10px 0;flex-direction:column;flex-shrink:0;cursor:pointer;color:var(--accent);font-size:12px}.review-select input{width:26px;height:26px;min-height:26px}.review-individual{color:#8b5f1c}.review-bulk-error{margin:12px 0}.review-bulk-error[hidden]{display:none}
.report-diff-summary{padding:10px 0;font-weight:600}.report-person{padding:12px;border-bottom:1px solid var(--line)}.report-person-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.report-person-heading>span:not(.badge){font-size:14px;color:var(--muted)}.report-person-times{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:8px;font-size:14px;font-variant-numeric:tabular-nums}.report-person-diff{background:#fff7e8;border-left:3px solid #b37529;margin-bottom:8px}.report-value-diff{color:#884b0c}.report-person p{margin-top:8px;font-size:14px}.report-unchanged{margin-top:12px;border:1px solid var(--line);border-radius:8px}.report-unchanged summary{padding:14px;cursor:pointer;font-size:14px;color:var(--muted)}.report-unchanged[open] summary{border-bottom:1px solid var(--line)}
@media(max-width:760px){.review-bulk{padding:14px}.review-bulk-actions{display:block}.review-bulk-actions label{min-height:44px}.review-bulk-actions button{width:100%;margin-top:8px}.review-card:has(.review-select){position:relative;padding-left:64px}.review-select{position:absolute;top:15px;left:12px;width:44px;min-height:44px;font-size:10px}.report-person-times{gap:8px 12px}.report-person-times>span{min-width:110px}.review-bulk-error{scroll-margin:12px}}

.attendance-error-summary{border:2px solid #b83232;background:#fff4f2;color:#802020;padding:18px;border-radius:10px;margin-bottom:20px;scroll-margin-top:110px}.attendance-error-summary p{margin:8px 0}.attendance-error-summary ul{padding-left:18px;margin:8px 0}.attendance-error-summary button{border:0;background:none;padding:4px 0;color:inherit;text-align:left;text-decoration:underline;text-underline-offset:3px}.attendance-field-error{display:block;color:#a12525;font-size:13px;line-height:1.6;font-weight:600;margin-top:5px}#attendance-form [aria-invalid="true"]{border:2px solid #b83232;background:#fff6f4}#attendance-form input[type="checkbox"][aria-invalid="true"]{outline:2px solid #b83232;outline-offset:3px}

.special-allowance-fields{display:grid;gap:8px;min-width:0;margin:8px 0}.special-allowance-fields .special-allowance-check{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:14px;white-space:normal}.special-allowance-fields input[type="checkbox"]{width:18px;min-height:18px;height:18px;padding:0;margin:0;flex:0 0 18px;accent-color:var(--accent)}.special-allowance-fields input[type="number"]{width:100%;min-width:0;font-size:16px}.special-allowance-fields [data-special-amount][hidden]{display:none!important}.employee-row>.special-allowance-fields{grid-column:1/-1}.daily-special-allowance{min-width:150px}.daily-special-allowance .special-allowance-fields{margin:0}.daily-special-allowance input[type="number"]{max-width:160px}
@media(max-width:760px){.daily-people .table .daily-special-allowance{display:block;padding-top:12px;border-top:1px solid var(--line);min-width:0}.daily-special-allowance .special-allowance-fields{width:100%}.daily-special-allowance input[type="number"]{max-width:none}.special-allowance-check{min-height:36px}}

/* Weekly board paper layout; other reports retain their own page settings. */
@page weekly-board{size:A4 landscape;margin:7mm}
@media print{
 html:has(.board-panel):not(:has(body.printing-payroll)){background:#fff}
 body:has(.board-panel):not(.printing-payroll){background:#fff}
 .board-shell:has(.board-panel){page:weekly-board;width:100%;min-height:0}
 .board-shell:has(.board-panel) .main{padding:0;max-width:none}
 .board-shell:has(.board-panel) .heading{margin:0 0 2mm;display:block}
 .board-shell:has(.board-panel) .heading h1{font-size:14pt;line-height:1.2}
 .board-shell:has(.board-panel) .heading p,.board-summary,.board-panel .placement-legend,.board-panel>.panel-foot,.board-empty-site,.board-empty-summary,.board-vacant{display:none!important}
 .board-panel{border:0;border-radius:0;overflow:visible}
 .board-panel>.panel-head{padding:0 0 2mm;border:0;display:block}
 .board-panel .week-nav{display:block}
 .board-panel .week-nav strong{display:block;min-width:0;text-align:left;font-size:10pt;line-height:1.3}
 .board-panel>.board-scroll{width:100%;overflow:visible;scrollbar-gutter:auto}
 .board{width:100%;min-width:0!important;border-collapse:collapse;table-layout:fixed;border:0.25mm solid #999}
 .board thead{display:table-header-group}
 .board tbody{break-inside:auto}
 .board tr{break-inside:avoid;page-break-inside:avoid}
 .board thead th,.board tbody th.board-site,.board td.board-cell{position:static!important;padding:1mm;border:0.2mm solid #bbb;height:auto;font-size:8pt;line-height:1.2;box-shadow:none}
 .board thead th:first-child{width:32mm}
 .board .day-number{font-size:10pt;margin-right:1mm}
 .board .site-title{font-size:8pt!important;line-height:1.25;padding:0;min-height:0;color:#111}
 .board .assignment{margin:0;padding:0;line-height:1.2;break-inside:avoid;background:transparent}
 .board .assignment+.assignment{margin-top:1mm;padding-top:1mm;border-top:0.2mm dashed #bbb}
 .board .placement-list{gap:0.5mm;display:flex;flex-wrap:wrap}
 .board .placement-person,.board .placement-vendor{font-size:8pt;line-height:1.2;padding:0.3mm 0.7mm;border-left-width:0.4mm;white-space:normal;overflow-wrap:anywhere}
 .board .placement-vendor-name{overflow:visible;text-overflow:clip}
 .board .placement-vendor-count{font-size:7pt;min-width:0;padding:0 0.4mm}
 .board .placement-task,.board .placement-note{font-size:7.5pt;line-height:1.25;max-height:none;margin:0.5mm 0;white-space:pre-wrap;overflow:visible}
 .board .placement-status{margin-bottom:0.5mm;gap:0.5mm}
 .board .plan-publication.is-published,.board .placement-status:has(.is-published):not(:has(.badge)){display:none}
 .board .plan-publication,.board .placement-status .badge{font-size:7pt;padding:0.2mm 0.5mm;line-height:1.2}
 .board .vehicle-chips{gap:0.5mm;margin-top:0.5mm}
 .board .vehicle-chip{font-size:7pt;line-height:1.2;padding:0.3mm 0.5mm}
 .board .placement-person.duplicate,.board .assignment-unpublished,.board .plan-publication.is-unpublished{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}
/* One-day board preview and A4 paper. */
.board-today-print{border:2px solid var(--accent);color:var(--accent);font-weight:700}.board-today-print span{display:block;font-size:13px}.board-day-print-button{display:block;margin:6px auto 0;white-space:nowrap;font-size:12px;padding:5px 8px;min-height:32px}.board-day-sheet header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.board-day-sheet h1{font-size:22px;margin:0}.board-day-sheet h1 span{display:block;font-size:18px;margin-top:4px}.board-day-sheet header p{font-size:13px}.day-print-summary{margin:0 0 12px;font-size:14px}.board-day-sheet table{border-collapse:collapse;width:100%;table-layout:fixed}.board-day-sheet th,.board-day-sheet td{padding:8px;border:1px solid var(--line);vertical-align:top;overflow-wrap:anywhere;text-align:left}.board-day-sheet thead th{background:#eef4f1}.day-print-site{width:19%}.day-print-shift{width:9%}.day-print-staff{width:23%}.day-print-vendor{width:19%}.day-print-person{display:block}.day-print-note,.day-print-vehicles{margin-top:6px}.day-print-note,.board-day-sheet td div{white-space:pre-wrap}.day-print-duplicate,.day-print-unpublished{color:#a02520;font-weight:700}.day-print-unpublished{display:block}.board-day-sheet footer{margin-top:12px;font-size:12px;color:var(--muted)}#board-day-print-layer{display:none}@media(max-width:760px){.board-day-preview{overflow-x:auto}.board-day-preview .board-day-sheet{min-width:760px}}
@page board-day{size:A4 landscape;margin:9mm}
@media print{body.printing-board-day{background:#fff}body.printing-board-day>*:not(#board-day-print-layer){display:none!important}body.printing-board-day #board-day-print-layer{display:block!important;page:board-day}body.printing-board-day .board-day-sheet{page:board-day;font-size:9pt}body.printing-board-day .board-day-sheet header{margin-bottom:3mm}body.printing-board-day .board-day-sheet h1{font-size:15pt}body.printing-board-day .board-day-sheet h1 span{display:inline;font-size:13pt;margin-left:4mm}body.printing-board-day .board-day-sheet th,body.printing-board-day .board-day-sheet td{padding:2mm;border:0.2mm solid #999}body.printing-board-day .board-day-sheet thead{display:table-header-group}body.printing-board-day .board-day-sheet tr{break-inside:avoid}body.printing-board-day .board-day-sheet *{print-color-adjust:exact;-webkit-print-color-adjust:exact}.board-day-print-button{display:none!important}}
.board-headcount{display:grid;gap:3px;margin:4px 0 7px;padding:6px 7px;background:#edf4f1;border-radius:5px;font-size:12px;line-height:1.4;text-align:left}.board-headcount strong{color:var(--accent);font-size:14px}.board-headcount span,.board-headcount small{font-weight:400;font-size:11px;white-space:normal;overflow-wrap:anywhere}.day-print-site-total{border-top:1px solid var(--line);margin-top:7px;padding-top:5px;font-size:12px;font-weight:600}.board-day-sheet .board-headcount{margin-top:8px}.board-day-sheet .board-headcount strong{font-size:15px}@media print{.board .board-headcount{padding:0.6mm;margin:0.6mm 0;font-size:7.5pt}.board .board-headcount strong{font-size:8pt}.board .board-headcount span,.board .board-headcount small{font-size:7pt}.board-day-sheet .board-headcount{padding:1mm;margin-top:1mm}.board-day-sheet .board-headcount strong{font-size:10pt}.board-day-sheet .board-headcount span,.board-day-sheet .board-headcount small,.day-print-site-total{font-size:8pt}}
@media print{.board .board-headcount{display:block;padding:0;margin:0.5mm 0;line-height:1.2;background:transparent}.board .board-headcount strong{display:inline}.board .board-headcount span{display:none}.board .board-headcount small{display:block;font-size:6.5pt;line-height:1.2}}
.plan-foreman-field{margin:14px 0 20px}.plan-foreman-field small{font-weight:400;color:var(--muted);line-height:1.6}.plan-foreman-field input{max-width:320px}@media(min-width:761px){.vendor-row{grid-template-columns:minmax(130px,2fr) repeat(6,minmax(50px,1fr)) 36px}}
/* Accounting submission state is separate from plan publication and duplicate staff. */
.board-submission-legend{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:8px 14px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.board-submission-legend strong{font-weight:600}.board-submission-legend span:before{content:'';display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;background:#a4adb2}.board-submission-legend .submission-submitted:before{background:#397eb2}.board-submission-legend .submission-approved:before{background:#358565}.board-submission-legend .submission-returned:before{background:#c28325}.board-submission-legend button{margin-left:auto;font-size:12px;padding:5px 8px;min-height:32px}
.board .assignment[data-report-state]{--board-report-color:#a4adb2;border-left:0;box-shadow:inset 3px 0 0 var(--board-report-color);padding:4px 0 4px 4px;border-radius:5px;background:#f5f7f8}.board .board-report-submitted[data-report-state]{--board-report-color:#397eb2;background:#edf5fc}.board .board-report-approved[data-report-state]{--board-report-color:#358565;background:#edf6ef}.board .board-report-returned[data-report-state]{--board-report-color:#c28325;background:#fff5e5}.board .placement-status{flex-wrap:wrap}.board .board-report-status{font-size:11px;font-weight:700;padding:3px 5px;color:#52616a;background:#e3e8eb;white-space:normal}.board .board-report-submitted .board-report-status{background:#d4e9fb;color:#175b8c}.board .board-report-approved .board-report-status{background:#d6ecdf;color:#246548}.board .board-report-returned .board-report-status{background:#ffe3ac;color:#805100}.board .assignment[data-report-state] .board-headcount{background:transparent;padding:2px 0;margin:3px 0 5px}.board .board-report-submitted .board-headcount strong{color:#175b8c}.board .board-report-returned .board-headcount strong{color:#805100}.board-report-updated{display:block;color:#805100;font-size:11px;margin:3px 0}
@media print{.board-submission-legend{display:none}.board .assignment[data-report-state]{padding:0 0.5mm 0 1mm;border-left:0.5mm solid var(--board-report-color);box-shadow:none;background:transparent;print-color-adjust:exact;-webkit-print-color-adjust:exact}.board .board-report-status{font-size:7pt;padding:0.3mm 0.5mm;print-color-adjust:exact;-webkit-print-color-adjust:exact}.board-report-updated{font-size:7pt}}
/* Site categories use the site-name column; reporting states remain on allocation cards. */
.site-color-none{--site-color-bg:#f7faf8;--site-color-edge:#c1ccc7}.site-color-blue{--site-color-bg:#e3eefb;--site-color-edge:#6f96c3}.site-color-green{--site-color-bg:#e5f2df;--site-color-edge:#82a86b}.site-color-yellow{--site-color-bg:#fff5ce;--site-color-edge:#c5aa4d}.site-color-orange{--site-color-bg:#ffead5;--site-color-edge:#c39462}.site-color-pink{--site-color-bg:#fbe4ed;--site-color-edge:#c58ba2}.site-color-purple{--site-color-bg:#eee6fa;--site-color-edge:#a38bc5}.site-color-teal{--site-color-bg:#dcf3f0;--site-color-edge:#6eaaa2}.site-color-gray{--site-color-bg:#e9edf0;--site-color-edge:#929fa8}
.board tbody th.board-site:not(.site-color-none){background:var(--site-color-bg);box-shadow:inset 4px 0 0 var(--site-color-edge)}.board .site-order-controls{flex-wrap:wrap}.board .site-color-edit{flex-basis:100%;text-align:center}.board-day-sheet tbody th[class*="site-color-"]:not(.site-color-none){background:var(--site-color-bg);box-shadow:inset 4px 0 0 var(--site-color-edge)}.site-color-dot{display:inline-block;width:14px;height:14px;margin-right:7px;border:1px solid var(--site-color-edge);border-radius:3px;background:var(--site-color-bg);vertical-align:middle}.site-color-picker{border:0;padding:0;margin:16px 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.site-color-picker legend{font-weight:600;padding:0 0 12px;font-size:14px}.site-color-choice{display:flex;flex-direction:row;align-items:center;gap:10px;padding:16px 12px;border:2px solid var(--site-color-edge);border-radius:8px;background:var(--site-color-bg);min-height:54px;cursor:pointer}.site-color-choice:has(input:checked){outline:2px solid var(--green);outline-offset:2px}.site-color-choice input{width:20px;height:20px;min-height:20px;margin:0;accent-color:var(--green)}.site-color-choice span{font-size:16px}.site-color-choice:focus-within{outline:2px solid var(--green);outline-offset:3px}@media(max-width:760px){.site-color-picker{grid-template-columns:repeat(2,minmax(0,1fr))}.site-color-choice{padding:14px 10px}}@media print{.board tbody th.board-site:not(.site-color-none),.board-day-sheet tbody th[class*="site-color-"]:not(.site-color-none){print-color-adjust:exact;-webkit-print-color-adjust:exact}}
/* Fit the complete day or week into a single landscape A4 print frame. */
#board-week-print-layer{display:none}
@page board-one-page{size:A4 landscape;margin:4mm}
@media print{
 body.printing-board-week>*:not(#board-week-print-layer){display:none!important}
 body.printing-board-week #board-week-print-layer{display:block!important}
 body.printing-board-day #board-day-print-layer.board-one-page-frame,body.printing-board-week #board-week-print-layer.board-one-page-frame{page:board-one-page!important;width:288mm;height:201mm;max-height:201mm;overflow:hidden;box-sizing:border-box;position:relative;margin:0 auto;padding:0;break-inside:avoid}
 .board-one-page-frame>.board-one-page-content{page:auto!important;min-width:0!important;min-height:0!important;height:auto;margin:0;padding:0;max-width:none}
 .board-one-page-frame .board-shell,.board-one-page-frame .board-panel,.board-one-page-frame .main,.board-one-page-frame .board-day-sheet{page:auto!important;min-height:0;height:auto}
 .board-one-page-frame .main{width:100%;display:block;margin:0;padding:0;max-width:none;overflow:visible}
 .board-one-page-frame .board-day-sheet{font-size:8pt!important}
 .board-one-page-frame .board-day-sheet header{margin-bottom:2mm!important}
 .board-one-page-frame .board-day-sheet h1{font-size:13pt!important}
 .board-one-page-frame .day-print-summary{font-size:8pt;margin-bottom:2mm}
 .board-one-page-frame .board-day-sheet th,.board-one-page-frame .board-day-sheet td{padding:1mm!important}
 .board-one-page-frame .day-print-person{display:inline-block;margin-right:1.5mm}
 .board-one-page-frame .board-day-sheet .board-headcount{padding:0.5mm;margin-top:0.5mm;gap:1px}
 .board-one-page-frame .board-day-sheet .board-headcount strong{font-size:9pt}
 .board-one-page-frame .board-day-sheet footer{font-size:7pt;margin-top:2mm}
 .board-one-page-frame *{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

/* Company headcount details remain visible on screen and on one-page printouts. */
.vendor-breakdown{display:block;font-size:12px;font-weight:400;line-height:1.4;white-space:normal;overflow-wrap:anywhere;color:#425b55}
.placement-vendor{flex-wrap:wrap}.placement-vendor>.vendor-breakdown{flex-basis:100%;min-width:0}
.daily-vendor-entry{display:inline-block;vertical-align:top;margin:0 10px 6px 0}
.day-print-vendor-entry+.day-print-vendor-entry{margin-top:5px}
@media print{.board .vendor-breakdown,.board-day-sheet .vendor-breakdown{font-size:7pt;line-height:1.2;color:#172f2c}.day-print-vendor-entry+.day-print-vendor-entry{margin-top:1mm}}

.work-clock{background:#eef5f1;border:1px solid #c6dace;border-radius:9px;padding:12px;min-width:230px;grid-column:1 / -1}.work-clock-times{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.work-clock-times label{flex:1;min-width:95px}.work-clock-times input[type=time]{width:100%;min-width:90px}.work-clock-next{display:flex!important;align-items:center;gap:6px;flex:0!important;min-width:65px!important}.work-clock-help{font-size:12px;color:#536c62;line-height:1.7;margin:9px 0}.work-clock-result{font-size:13px;line-height:1.7;font-weight:600;margin:8px 0}.work-clock textarea{width:100%;min-height:90px}.daily-people td:has(.work-clock){min-width:260px}.daily-people td .work-clock{min-width:220px}#attendance-form>.dialog-body>.work-clock{margin-bottom:15px}@media(max-width:600px){.employee-row .work-clock{width:100%;min-width:0}.daily-people td .work-clock{min-width:0}}
.work-clock [hidden]{display:none!important}.work-clock-next{flex-direction:row!important;white-space:nowrap}.work-clock-next input[type=checkbox]{width:18px;min-width:18px;margin:0;padding:0}.work-clock select{width:100%!important;min-width:0!important;max-width:100%}.work-clock label{min-width:0}.work-clock input[type=time]{font-size:16px}@media(max-width:760px){.daily-people .table td:has(.work-clock){display:block;min-width:0}.daily-people td .work-clock{width:100%;min-width:0}.work-clock-times{gap:8px}.work-clock-times label{min-width:85px}.work-clock-next{min-width:65px!important}}
.work-clock-times label:not(.work-clock-next){min-width:120px}.work-clock-times input[type=time]{padding:10px 8px;min-width:0}@media(max-width:760px){.work-clock-next{flex:1 0 100%!important;min-height:28px}.work-clock-times{gap:8px}}

/* Daily paper form: match the client's portrait site / staff / subcontractor sheet. */
.board-day-sheet{width:100%;color:#111;font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;font-size:12px;line-height:1.45}
.board-day-sheet header{display:block;text-align:center;margin-bottom:8px}
.board-day-sheet h1{font-size:16px;font-weight:600}.board-day-sheet h1 span{display:inline;font-size:15px;margin-left:10px}
.board-day-sheet header p{font-size:10px;text-align:right;margin:3px 0 0}
.board-day-sheet .day-print-summary{font-size:10px;margin:0 0 4px;color:#444}
.board-day-sheet table{height:244mm;border:1.5px solid #555}
.board-day-sheet .day-print-site{width:22%}.board-day-sheet .day-print-staff{width:43%}.board-day-sheet .day-print-vendor{width:35%}
.board-day-sheet th,.board-day-sheet td{padding:6px;border:1px solid #888;font-weight:400}
.board-day-sheet thead th{text-align:center;font-weight:600;background:#fff;padding:4px}
.board-day-sheet tbody th:not([class*="site-color-"]),.board-day-sheet tbody th.site-color-none{background:#fff;box-shadow:none}
.day-print-site-name{font-weight:600}.day-print-shift-label{display:inline-block;font-size:10px;border:1px solid #aaa;padding:0 4px;margin:4px 0}
.day-print-task,.day-print-note{font-size:10px;white-space:pre-wrap;margin-top:5px}
.day-print-staff-content{display:flex;flex-direction:column;min-height:55px;height:100%}
.day-print-names{display:flex;flex-wrap:wrap;gap:5px 12px;align-content:flex-start}
.board-day-sheet .day-print-person{display:inline-block;white-space:nowrap;margin:0}
.board-day-sheet .day-print-vehicles{display:flex;flex-wrap:wrap;align-items:center;gap:3px;margin:7px 0 0}
.day-print-vehicle-box{border:1px solid #666;padding:1px 4px;font-size:10px;white-space:nowrap}
.day-print-vehicle-note{font-size:9px}.day-print-subtotal{text-align:right;margin-top:auto;padding-top:12px;white-space:nowrap;font-size:11px}
.board-day-sheet .day-print-vendor-entry{margin:0 0 5px;break-inside:avoid}
.day-print-vendor-main{display:flex;justify-content:space-between;gap:5px}.day-print-vendor-main strong{font-weight:400}
.board-day-sheet .vendor-breakdown{display:flex;flex-wrap:wrap;gap:0 8px;color:#333;font-size:10px;line-height:1.45;margin-top:1px}
.day-print-foreman{font-size:9px}.board-day-sheet tfoot tr{height:16mm}.board-day-sheet tfoot th,.board-day-sheet tfoot td{vertical-align:middle;border-top:1.5px solid #555}
.day-print-self-total{text-align:center!important}.day-print-self-total small{display:block;font-size:9px}
.day-print-external-total>div:first-child{text-align:center}.day-print-job-totals{display:flex;flex-wrap:wrap;justify-content:center;gap:1px 8px;font-size:10px;margin-top:3px}
.day-print-grand-total{text-align:right;font-size:13px;padding:5px 0 0}.day-print-grand-total strong{display:inline-block;min-width:65px;font-size:16px}
.board-day-sheet footer{font-size:9px;margin-top:5px;color:#444}
@page board-day-portrait{size:A4 portrait;margin:4mm}
@media print{
 body.printing-board-day #board-day-print-layer.board-one-page-frame{page:board-day-portrait!important;width:201mm;height:288mm;max-height:288mm}
 body.printing-board-day .board-day-sheet.board-one-page-content{font-size:9pt!important}
 body.printing-board-day .board-day-sheet header{margin-bottom:2mm!important}
 body.printing-board-day .board-day-sheet h1{font-size:11pt!important}
 body.printing-board-day .board-day-sheet h1 span{font-size:11pt!important;margin-left:2mm}
 body.printing-board-day .board-day-sheet th,body.printing-board-day .board-day-sheet td{padding:1.5mm!important}
 body.printing-board-day .board-day-sheet thead th{padding:1mm!important}
 body.printing-board-day .board-day-sheet footer{font-size:6.5pt!important;margin-top:1mm!important}
 body.printing-board-day .day-print-site-total{font-size:7pt}
 body.printing-board-day .day-print-subtotal{font-size:8pt}
 body.printing-board-day .day-print-vendor-entry+.day-print-vendor-entry{margin-top:0}
}

.day-print-vehicle-options{padding:12px;border:1px solid var(--line);border-radius:8px;margin-bottom:18px;background:#f7faf8;font-size:13px}
.day-print-vehicle-options summary{cursor:pointer;font-weight:600}.day-print-vehicle-options p{font-size:12px;margin:8px 0}
.day-print-vehicle-sites{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.day-print-vehicle-sites>details{border:1px solid var(--line);padding:8px;background:#fff}
.day-print-vehicle-sites fieldset{display:grid;gap:8px;border:0;padding:10px 0 0;margin:0}.day-print-vehicle-sites label{display:flex;flex-direction:row;gap:8px;align-items:center;font-size:13px;margin:0}
.day-print-vehicle-sites input{width:18px;height:18px;min-height:18px;margin:0}.day-print-vehicle-sites label:has(input:disabled){color:#89948f}
.day-print-self-foreman{font-size:9px;display:block;margin-top:5px}
@media(max-width:760px){.day-print-vehicle-sites{grid-template-columns:1fr}}
@media print{.day-print-vehicle-options{display:none!important}}
/* Keep each vendor's job counts beside its company where space permits. */
.board-day-sheet .day-print-vendor-entry{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 6px}
.board-day-sheet .day-print-vendor-main{display:inline-flex;justify-content:flex-start;gap:6px}
.board-day-sheet .vendor-breakdown{display:inline-flex;margin-top:0}

.board-day-dialog-head>div{min-width:0;flex:1}.board-day-dialog-head>button{flex:none;white-space:nowrap}

/* A smaller daily form for about eight sites; date sits immediately above the grid. */
.board-day-sheet{font-size:8pt;line-height:1.4}
.board-day-sheet header{display:grid;grid-template-columns:1fr auto 1fr;gap:4px;align-items:end;margin:0 0 2px}
.board-day-sheet h1,.board-day-sheet h1 span{font-size:10pt;line-height:1.25;margin:0}
.board-day-sheet h1{white-space:nowrap}.board-day-sheet h1 span{margin-left:4px}
.board-day-sheet header p{font-size:6.5pt;line-height:1.3;margin:0;text-align:right}
.board-day-sheet .day-print-summary{font-size:6.5pt;line-height:1.3;margin:0;text-align:left}
.board-day-sheet .day-print-summary small{display:block;font-size:6pt}
.board-day-sheet .day-print-shift-label,.board-day-sheet .day-print-task,.board-day-sheet .day-print-note,.board-day-sheet .day-print-vehicle-box,.board-day-sheet .vendor-breakdown,.board-day-sheet .day-print-job-totals{font-size:7pt}
.board-day-sheet .day-print-vehicle-note,.board-day-sheet .day-print-foreman,.board-day-sheet .day-print-self-foreman,.board-day-sheet .day-print-self-total small{font-size:6.5pt}
.board-day-sheet .day-print-subtotal{font-size:7.5pt}.board-day-sheet .day-print-grand-total{font-size:9pt}.board-day-sheet .day-print-grand-total strong{font-size:10.5pt}
.board-day-sheet footer{font-size:6pt}
@media print{
 body.printing-board-day .board-day-sheet.board-one-page-content{font-size:8pt!important}
 body.printing-board-day .board-day-sheet header{margin-bottom:0.6mm!important}
 body.printing-board-day .board-day-sheet h1,body.printing-board-day .board-day-sheet h1 span{font-size:10pt!important;line-height:1.25;margin:0!important}
 body.printing-board-day .board-day-sheet h1 span{margin-left:1mm!important}
 body.printing-board-day .board-day-sheet .day-print-summary{font-size:6.5pt;margin:0!important}
 body.printing-board-day .day-print-site-total{font-size:6.5pt}
 body.printing-board-day .day-print-subtotal{font-size:7.5pt}
 body.printing-board-day .board-day-sheet footer{font-size:6pt!important}
}
/* Lower the paper contents slightly while keeping the date close to the table. */
.board-day-sheet{padding-top:16mm}
.board-day-sheet .day-print-site-row>th,.board-day-sheet .day-print-site-row>td{padding-top:3.5mm}
@media print{
 body.printing-board-day .board-day-sheet.board-one-page-content{padding-top:16mm!important}
 body.printing-board-day .board-day-sheet .day-print-site-row>th,body.printing-board-day .board-day-sheet .day-print-site-row>td{padding-top:3.5mm!important}
}

/* Planned/requested external headcounts versus actual report values. */
.vendor-diff-row{background:#fff4db!important;border:1px solid #c78422!important;border-left:4px solid #b56b12!important;border-radius:8px;padding:12px}.vendor-row .vendor-diff-field{background:#fff0c7;border:2px solid #ab6010}.vendor-diff-note{grid-column:1/-1;font-size:.85rem;font-weight:600;color:#794500;line-height:1.6}.vendor-diff-note small{display:block}.vendor-diff-badge{display:inline-block;padding:2px 7px;background:#8a4b00;color:#fff;border-radius:5px;font-size:.75rem}.vendor-diff-text{color:#794500;font-weight:600}.vendor-diff-summary{margin:0 0 14px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;font-size:.875rem;line-height:1.7}.vendor-diff-summary.has-diff{background:#fff4db;border-color:#c78422;color:#794500}.vendor-diff-summary p{margin-top:5px}.vendor-diff-row.detail-line{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:8px}.vendor-diff-summary small{display:block}

.vendor-time-section{grid-column:1/-1;min-width:0;border-top:1px solid #ccd9d3;padding-top:12px;margin-top:4px}.vendor-time-section .section-head{margin:4px 0 10px}.vendor-time-section .muted{font-size:.85rem;line-height:1.6}.vendor-person-detail{background:white;border:1px solid #bccdc7;border-radius:8px;margin-top:10px;overflow:hidden}.vendor-person-detail>summary{padding:12px;display:flex;gap:10px;flex-wrap:wrap;cursor:pointer;font-size:.875rem}.vendor-person-detail [data-vendor-person]{padding:14px;border-top:1px solid #dce4e1}.vendor-person-detail label{font-size:.875rem}.vendor-person-detail .work-clock{margin-top:12px}.vendor-time-total{font-weight:700;font-size:.875rem;margin-top:12px}.vendor-time-readonly{flex-basis:100%;width:100%;margin-top:10px;background:#fff;border:1px solid var(--line);border-radius:8px}.vendor-time-readonly>summary{cursor:pointer;padding:12px;font-size:.875rem;font-weight:600}.vendor-person-readonly{padding:12px;border-top:1px solid var(--line);font-size:.875rem;line-height:1.7}.vendor-person-readonly small{color:var(--muted)}

.vendor-time-section [data-vendor-time-error]:empty{display:none}.vendor-person-detail>summary::before{content:'▸';color:var(--green)}.vendor-person-detail[open]>summary::before{content:'▾'}

.vendor-time-bulk{padding:12px;border:1px solid #a9c5b9;border-radius:8px;background:#edf5f0;margin:12px 0}.vendor-time-bulk>summary{font-weight:700;cursor:pointer}.vendor-bulk-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.vendor-bulk-choices{display:flex;flex-wrap:wrap;gap:8px}.vendor-row .vendor-bulk-choices>label{display:flex;flex-direction:row;align-items:center;gap:6px;padding:8px 10px;background:white;border:1px solid #bdcec6;border-radius:6px;max-width:100%;overflow-wrap:anywhere;cursor:pointer}.vendor-bulk-choices input{width:18px;height:18px;flex-shrink:0}.vendor-time-bulk [data-vendor-bulk-status]{font-size:.875rem;line-height:1.6}.vendor-time-bulk .work-clock{margin:12px 0}


/* Allocation tables use all available space; expansion is confined to these two screens. */
@media screen{
 .allocation-shell .main{max-width:none;padding:12px 14px 10px}
 .allocation-shell .heading{gap:10px;margin-bottom:8px}
 .allocation-shell .heading .actions{gap:6px}
 .allocation-shell .heading .actions button{font-size:13px;padding:8px 10px;min-height:38px}
 .allocation-shell .heading h1{font-size:22px}
 .allocation-shell .heading p{font-size:12px}
 .allocation-shell .table-view-toggle{border-color:var(--accent);color:var(--accent);white-space:nowrap}
 .allocation-shell .board-summary{margin-bottom:8px;padding:6px 10px}
 .fleet-shell .filters{flex-shrink:0;gap:8px;margin-bottom:10px;align-items:center}
 .fleet-shell .filters label{flex-direction:row;align-items:center;gap:6px;font-size:12px;min-width:0}
 .fleet-shell .filters input,.fleet-shell .filters select{min-height:38px;padding:7px 8px;font-size:14px}
 .fleet-shell .filters button{font-size:13px;min-height:38px;padding:8px 10px}
 .fleet-panel{flex:1;min-height:0;display:flex;flex-direction:column}
 .fleet-panel>.panel-head{flex-shrink:0;padding:10px 12px;font-size:13px;gap:6px 12px}
 .fleet-panel>.panel-head .muted{font-size:12px}
 .fleet-panel>.fleet-scroll{flex:1;min-height:0;max-height:none;overscroll-behavior:contain;scrollbar-gutter:stable}
 .fleet-shell .fleet-table th:first-child{min-width:210px;max-width:210px}
 .allocation-shell.table-expanded{display:block;height:100dvh;min-height:0}
 .allocation-shell.table-expanded>.sidebar,.allocation-shell.table-expanded .topbar,.allocation-shell.table-expanded .demo-banner,.allocation-shell.table-expanded>.mobile-bottom{display:none}
 .allocation-shell.table-expanded .workspace{height:100dvh}
 .allocation-shell.table-expanded .main{padding:8px}
 .allocation-shell.table-expanded .heading{flex-wrap:nowrap;margin-bottom:6px}
 .allocation-shell.table-expanded .heading p,.allocation-shell.table-expanded .board-summary,.allocation-shell.table-expanded .board-panel>.panel-foot{display:none}
 .allocation-shell.table-expanded .heading h1{font-size:20px;white-space:nowrap}
 .allocation-shell.table-expanded .table-view-toggle{background:var(--accent);color:#fff}
}
@media screen and (max-width:760px){
 .allocation-shell .main{padding:8px 8px 76px}
 .allocation-shell .heading{gap:6px;flex-shrink:0}
 .allocation-shell .heading h1{font-size:20px}
 .allocation-shell .heading .actions button{font-size:11px;padding:6px 8px;min-height:34px}
 .allocation-shell .board-summary{flex-wrap:wrap;white-space:normal;gap:4px 10px;font-size:10px}
 .fleet-shell .filters{gap:6px;margin-bottom:8px}
 .fleet-shell .filters label{font-size:11px;gap:4px}
 .fleet-shell .filters input,.fleet-shell .filters select{font-size:16px;min-height:38px;padding:5px;min-width:0}
 .fleet-shell .filters button{font-size:12px;padding:6px 8px;min-height:34px}
 .fleet-shell .fleet-table th:first-child{min-width:145px;max-width:145px;padding:8px}
 .fleet-panel>.panel-head{font-size:12px;padding:8px}
 .fleet-panel>.panel-head .muted{font-size:11px}
 .allocation-shell.table-expanded .heading{flex-wrap:wrap}
 .allocation-shell.table-expanded .main{padding:6px}
}
@media print{.table-view-toggle{display:none!important}}
@media screen and (max-height:600px){
 .allocation-shell .topbar{min-height:44px;padding:5px 12px}
 .allocation-shell .demo-banner{padding:4px 12px;font-size:10px}
 .allocation-shell .heading p,.allocation-shell .board-summary,.allocation-shell .board-panel>.panel-foot{display:none}
 .allocation-shell .heading h1{font-size:18px}
 .allocation-shell .heading .actions button{font-size:11px;padding:5px 7px;min-height:30px}
 .allocation-shell .heading{margin-bottom:5px}
 .allocation-shell .board-panel>.panel-head{padding:5px 8px}
 .allocation-shell .board-panel .placement-legend{display:none}
 .allocation-shell .board-submission-legend{padding:4px 8px;gap:4px 8px;font-size:10px}
 .allocation-shell .board-submission-legend button{font-size:10px;min-height:26px;padding:4px 6px}
 .fleet-shell .filters{margin-bottom:6px;gap:5px}
 .fleet-shell .filters input,.fleet-shell .filters select,.fleet-shell .filters button{min-height:30px;padding:4px 6px;font-size:12px}
}
@media screen and (max-width:760px){
 .fleet-shell .filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
 .fleet-shell .filters label{grid-column:span 2;display:flex;flex-direction:column;align-items:stretch;white-space:nowrap}
 .fleet-shell .filters input,.fleet-shell .filters select{width:100%}
 .fleet-shell .filters button{min-width:0;padding:6px 4px;font-size:11px;white-space:nowrap}
}


/* Strong boundaries span each site; day/night rows inside a site stay together. */
.board tbody tr[data-board-row]>th.board-site,.board tbody tr[data-board-row]>td.board-cell{border-bottom:3px solid #71867e}
.board tbody tr[data-board-row]:first-child>th.board-site,.board tbody tr[data-board-row]:first-child>td.board-cell{border-top:3px solid #71867e}
.board-day-sheet .day-print-site-start>th,.board-day-sheet .day-print-site-start>td{border-top:3px solid #71867e}
.board-day-sheet .day-print-site-end>th,.board-day-sheet .day-print-site-end>td{border-bottom:3px solid #71867e}
.board-day-sheet .day-print-site-row:not(.day-print-site-start)>th,.board-day-sheet .day-print-site-row:not(.day-print-site-start)>td{border-top-style:dashed}
@media print{
 .board tbody tr[data-board-row]>th.board-site,.board tbody tr[data-board-row]>td.board-cell{border-bottom:0.8mm solid #333}
 .board tbody tr[data-board-row]:first-child>th.board-site,.board tbody tr[data-board-row]:first-child>td.board-cell{border-top:0.8mm solid #333}
 body.printing-board-day .board-day-sheet .day-print-site-start>th,body.printing-board-day .board-day-sheet .day-print-site-start>td{border-top:0.8mm solid #333}
 body.printing-board-day .board-day-sheet .day-print-site-end>th,body.printing-board-day .board-day-sheet .day-print-site-end>td{border-bottom:0.8mm solid #333}
}
