/* Revision 05: daily staffing print views (public notice, internal as-worked worksheet). US Letter portrait.
   Ink-only: every rule and field is a border, so printing works with background graphics disabled. */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:#f5f2e9;color:#142b20;font-family:Manrope,Arial,sans-serif;line-height:1.45}
.print-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 20px;max-width:8.5in;margin:0 auto;padding:16px}
.print-toolbar a{color:#183b2a;font-weight:700}
.print-button{font:700 15px/1.4 Manrope,Arial,sans-serif;padding:10px 22px;border-radius:8px;border:1px solid #183b2a;background:#183b2a;color:#fff;cursor:pointer}
.print-toolbar a:focus-visible,.print-button:focus-visible{outline:3px solid #b27512;outline-offset:3px}
.print-hint{font-size:14px;color:#4a5a42}
main{padding:0 16px 40px}
.sheet{max-width:8.5in;margin:0 auto 24px;padding:.5in;background:#fff;border:1px solid #cdd8c2;border-radius:6px}
.sheet-head{border-bottom:2px solid #142b20;padding-bottom:8px;margin-bottom:12px}
.sheet-kicker{margin:0;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.sheet h1{margin:2px 0 0;font-size:26px;line-height:1.2;letter-spacing:-.02em}
.sheet-example{margin:4px 0 0;font-size:15px;font-weight:700}
.sheet-fields{display:flex;flex-wrap:wrap;gap:8px 22px;margin:10px 0}
.sheet-fields div{display:flex;align-items:flex-end;gap:8px;min-width:0}
.sheet-fields dt{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.sheet-fields dd{margin:0;font-size:16px;font-weight:700}
.sheet-fields .write-in{flex:1 1 2in}
.sheet-fields .write-in dd{flex:1}
.sheet-fields .write-in.wide{flex:1 1 3.4in}
.line{display:block;min-width:1.4in;height:9mm;border-bottom:1px solid #142b20}
.sheet-scope,.sheet-boundary{margin:8px 0;font-size:14px}
.sheet-example-line{margin:12px 0 0;font-size:11px}
.sheet-table{width:100%;border-collapse:collapse;font-size:13px}
.sheet-table th,.sheet-table td{border:1px solid #142b20;padding:3px 6px;text-align:left;vertical-align:middle}
.sheet-table thead th{font-size:11px;line-height:1.25;font-weight:700}
.sheet-table th small,.sheet-table th span{display:block;font-weight:500;font-size:10px}
.notice-table{font-size:15px;margin:6px 0}
.notice-table th,.notice-table td{height:14mm;padding:4px 8px}
.notice-table td{text-align:right;font-variant-numeric:tabular-nums;font-size:17px}
.notice-table tbody th strong{display:block;font-size:16px}
.notice-table tbody th span{display:block;font-weight:500}
.notice-table small{display:block;font-size:11px;font-weight:700}
.notice-table tfoot th,.notice-table tfoot td{font-weight:800;border-top:2px solid #142b20}
.ws-table td{height:7.4mm}
.ws-table td:first-child{white-space:nowrap;font-weight:700}
.ws-table td:nth-child(3){white-space:nowrap}
.ws-table th:nth-child(1){width:9%}.ws-table th:nth-child(2){width:20%}.ws-table th:nth-child(3){width:15%}
.ws-table th:nth-child(4),.ws-table th:nth-child(5){width:11%}.ws-table th:nth-child(6){width:9%}.ws-table th:nth-child(7){width:11%}.ws-table th:nth-child(8){width:14%}
.ws-table tr.extra td{border-top-style:dashed}
.ws-table tbody tr.extra:first-of-type td{border-top:2px solid #142b20}
.totals-table{width:auto;min-width:60%;margin:10px 0 0}
.totals-table caption{text-align:left;font-weight:700;font-size:13px;padding-bottom:4px}
.totals-table td,.totals-table th{height:8mm}
.totals-table .blank{min-width:1.1in}
/* Narrow screens: each row becomes a labelled stack so nothing scrolls sideways. Print keeps the table. */
@media screen and (max-width:720px){
 .sheet{padding:18px}
 .sheet-table thead{display:none}
 .sheet-table,.sheet-table tbody,.sheet-table tfoot,.sheet-table tr,.sheet-table th,.sheet-table td{display:block;width:auto}
 .sheet-table tr{border:1px solid #142b20;margin-bottom:8px}
 .sheet-table th,.sheet-table td{border:0;border-bottom:1px solid #cdd8c2;height:auto;min-height:9mm;text-align:left}
 .sheet-table td[data-label]::before{content:attr(data-label);display:block;font-size:11px;font-weight:700}
 .notice-table td:empty,.totals-table caption{display:block}
 .notice-table td:not([data-label]){display:none}
 .totals-table{min-width:0}
}
@page{size:letter portrait;margin:.45in}
.sheet-close{display:flex;flex-wrap:wrap;align-items:flex-end;gap:4px 24px}
.sheet-close .sheet-fields{flex:1 1 2.4in;flex-direction:column;align-items:stretch}
.sheet-close .sheet-fields .write-in{flex:none}
@media print{
 /* Letter portrait at .45in margins = 256.5 mm usable. Day page budget: header ~14 mm, fields ~8 mm,
    column heads ~8 mm, 24 rows x 6.4 mm = 153.6 mm, totals/review block ~31 mm, footer line ~4 mm => ~219 mm. */
 .sheet-head{padding-bottom:4px;margin-bottom:6px}
 .sheet h1{font-size:19px}
 .sheet-kicker{font-size:10px}
 .sheet-example{font-size:12px;margin-top:1px}
 .worksheet .sheet-fields{margin:4px 0 6px;gap:4px 18px}
 .worksheet .sheet-fields dd{font-size:13px}
 .worksheet .line{height:6.5mm}
 .ws-table{font-size:11px}
 .ws-table thead th{font-size:9.5px;padding:2px 4px}
 .ws-table th small{font-size:8.5px}
 .ws-table td{height:6.4mm;padding:0 4px}
 .totals-table{min-width:0;margin-top:6px;font-size:11px}
 .totals-table caption{font-size:11px;padding-bottom:2px}
 .totals-table td,.totals-table th{height:6.2mm;padding:0 5px}
 .totals-table .blank{min-width:.9in}
 .worksheet .sheet-example-line{margin-top:5px;font-size:9.5px}
 .sheet-close{break-inside:avoid;page-break-inside:avoid}
 .worksheet{break-inside:avoid}
 body{background:none;color:#000}
 .print-toolbar{display:none}
 main{padding:0}
 .sheet{max-width:none;margin:0;padding:0;border:0;border-radius:0;break-after:page;page-break-after:always}
 .sheet:last-child{break-after:auto;page-break-after:auto}
 .sheet-table tr{break-inside:avoid}
 .sheet-table thead{display:table-header-group}
 .sheet-table th,.sheet-table td,.line,.sheet-head{border-color:#000}
}
