/*
 * Aushang zum Drucken (weeks#print). Schwarz-weiß tauglich: Unsichere
 * Einträge sind kursiv mit „?“, nicht nur farbig. Immer hell, auch im
 * Dunkelmodus (Farben fest, nicht aus den Variablen). Seitengröße (A4 hoch /
 * quer) steht in der Seite selbst, weil sie je Plan verschieden ist.
 */
.printbody { background: #fff; }
.printbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--side); }
.printbar .segmented { align-self: center; }

.sheet { margin: 16px auto 32px; padding: 0 16px; color: #222; font: 9pt/1.25 var(--font-body); }
.sheet--portrait { max-width: calc(194mm + 32px); font-size: 10pt; }
.sheet--landscape { max-width: calc(281mm + 32px); }

.sheet__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 4mm; padding-bottom: 1.5mm; margin-bottom: 2mm; border-bottom: 2px solid #222; }
.sheet__title { font-family: var(--font-title); font-size: 14pt; font-weight: 400; letter-spacing: 0; color: #c0181d; }
.sheet__kw { margin: 0; font-size: 16pt; font-weight: 800; text-align: center; white-space: nowrap; }
.sheet__range { font-size: 9pt; font-weight: 500; }
.sheet__stand { margin: 0; font-size: 10pt; font-weight: 600; text-align: right; white-space: nowrap; }

.sheet__notes { margin-bottom: 2mm; padding: 1.2mm 2mm; border: 1px solid #222; font-size: 9pt; font-weight: 600; break-inside: avoid; }
.sheet__notes p { margin: 0; }
.sheet__notes p + p { margin-top: 1mm; }

.sheetgrid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheetgrid__rowhead { width: 27mm; }
.sheet--landscape .sheetgrid__rowhead { width: 30mm; }
.sheetgrid th, .sheetgrid td { padding: 0.8mm 1mm; border: 1px solid #222; vertical-align: top; text-align: center; overflow-wrap: break-word; }
.sheetgrid thead th { background: #e4e4e4; font-weight: 500; font-size: 8pt; }
.sheetgrid__day { display: block; font-size: 10pt; font-weight: 700; }
.sheetgrid tbody th { text-align: left; vertical-align: middle; background: #f2f2f2; hyphens: auto; }
.sheetgrid__dept { display: block; font-weight: 700; }
.sheetgrid__slot { display: block; font-size: 8pt; font-weight: 500; }
.sheetgrid tr { break-inside: avoid; }
.sheetgrid tr.is-first > * { border-top-width: 2px; }
.sheetgrid__empty { color: #555; }
.sheetgrid__absent td { font-weight: 600; }

.sheet__legend { margin: 1mm 0 0; font-size: 8pt; }

.sheetblock + .sheetblock { margin-top: 1mm; padding-top: 1mm; border-top: 1px dashed #222; }
.sheetblock__head strong { text-decoration: underline; }
.sheetblock__hint { font-size: 7.5pt; font-style: italic; }
.sheetblock__head strong + .sheetblock__hint::before, .sheetblock__hint + .sheetblock__hint::before { content: " "; }
.sheetblock__names { margin: 0; padding: 0; list-style: none; }
.sheetblock__names--cols { columns: 2; column-gap: 1.5mm; }
.sheetblock__names li { break-inside: avoid; }
.sheetblock__names .is-tentative { font-style: italic; color: #c0181d; }
.sheetblock__open { display: inline-block; margin-top: 0.5mm; padding: 0 1mm; border: 1px dashed #222; font-size: 7.5pt; }
.sheetblock__cancelled { font-style: italic; text-decoration: line-through; }

@media print {
  .printbar { display: none; }
  .sheet { max-width: none; margin: 0; padding: 0; }
  .sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
