#shift-print-tools{border-top:1px solid #cbdad3;margin-top:22px;padding-top:18px}#shift-print-profiles .toolbar{border-bottom:1px solid #dce7e1;padding:8px 0}#shift-print-profiles strong{min-width:100px}#shift-print-message.error{color:#8d271f}#print-area.shift-print-area{max-width:100%;overflow:auto}.shift-roster{width:404mm;color:#111;background:#fff;font-family:'Yu Gothic','Meiryo',sans-serif}.roster-title{display:flex;align-items:center;justify-content:space-between;margin:0 0 2mm;gap:5mm}.roster-title h1{font-size:17pt;margin:0}.roster-status{font-size:10pt;font-weight:700}.roster-table{width:404mm;table-layout:fixed;border-collapse:collapse;margin:0}.roster-table th,.roster-table td{border:0.3mm solid #333;text-align:center;white-space:normal;overflow-wrap:anywhere;padding:0.3mm;color:#111;font-size:8pt;line-height:1.15}.roster-table thead th{font-size:9pt;height:4mm;background:#f3f3f3}.roster-table .job{width:24mm}.roster-table .arrangement{width:27mm}.roster-table .person{width:29mm}.roster-table .profile{font-size:9pt;font-weight:400}.roster-table .person-name{font-weight:700}.roster-table .mark{font-size:11pt;height:8.5mm}.roster-table .sun{background:#fce1df}.roster-table .sat{background:#dfeefa}.roster-table .paid{background:#fff3c6}.roster-caption,.roster-notes{font-size:8pt;line-height:1.35;margin:2mm 0}.roster-counts{margin-top:1mm}.roster-counts thead th{height:4mm;font-size:8pt}.roster-counts tbody th,.roster-counts td{height:5mm;font-size:8pt}.roster-legend{margin-top:2mm;font-size:8pt;line-height:1.5}.roster-notes{margin-bottom:0}
@page shift-roster{size:A3 landscape;margin:8mm}
@media print{
 #print-area.shift-print-area{page:shift-roster;width:404mm!important;max-width:none!important}
 .shift-roster{page:shift-roster;break-after:page;page-break-after:always;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 .shift-roster:last-child{break-after:auto;page-break-after:auto}
 .roster-table thead{display:table-header-group}.roster-table tr{break-inside:avoid;page-break-inside:avoid}
 .roster-title,.roster-legend,.roster-notes{break-inside:avoid}
}

.roster-table tfoot.roster-counts th,.roster-table tfoot.roster-counts td{height:5mm;font-size:8pt;font-weight:400}.roster-table tfoot.roster-counts tr:first-child th,.roster-table tfoot.roster-counts tr:first-child td{border-top-width:0.6mm}.roster-table tfoot{display:table-row-group}.roster-legend{border:0.3mm solid #555;padding:2mm;font-weight:600}

.roster-table .requested{background:#ffff00}.roster-table .night-floor-1,.roster-floor-key .night-floor-1{background:#f59d9d!important;color:#111!important}.roster-table .night-floor-2,.roster-floor-key .night-floor-2{background:#85b8f7!important;color:#111!important}.roster-floor-key{display:flex;gap:28mm;margin:3mm 0;font-size:16pt;color:#111}.roster-floor-key span{display:flex;gap:4mm;align-items:center}.roster-floor-key i{display:inline-block;width:15mm;height:8mm;border:0.2mm solid #888}

.roster-table .roster-spacer td{height:8.5mm;padding:0;border-top:0.3mm solid #333;border-bottom:0.3mm solid #333;background:#fff!important}

/* Single A3 sheet, including the existing blank staff rows. */
.roster-table .mark{height:var(--roster-row-height,8.5mm);font-size:var(--roster-mark-size,11pt);line-height:1;padding:0.2mm}
.roster-table .profile{font-size:var(--roster-profile-size,9pt);line-height:1.1;padding:0.2mm}
.roster-table .roster-spacer td{height:var(--roster-row-height,8.5mm);font-size:0;line-height:0;padding:0}
.roster-table tfoot.roster-counts th,.roster-table tfoot.roster-counts td{height:3.6mm;font-size:7pt;line-height:1.05;padding:0.15mm}
@media print{.shift-roster,.shift-roster:last-child{break-after:auto;page-break-after:auto;break-inside:avoid;page-break-inside:avoid}}
