.court-sheet{position:fixed;top:0;left:-300vw;width:281mm;visibility:hidden;pointer-events:none}
.court-sheet-dialog form>p{margin:14px 0}
.court-sheet-range{display:grid;gap:8px;margin:0 0 14px;padding:12px 14px;border:1px solid #dfe5ee;border-radius:8px}
#court-sheet-dialog .court-sheet-range label{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0;min-height:36px;font-weight:600;text-align:left}
#court-sheet-dialog .court-sheet-range input[type="radio"]{flex:0 0 auto;width:18px;height:18px;min-height:0;margin:0;padding:0}
#court-sheet-dialog .court-sheet-range label:has(input:disabled){color:#98a2b3;cursor:not-allowed}
.court-sheet-dates{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.court-sheet-dates input{box-sizing:border-box;width:100%;min-width:0}
.court-sheet-dialog .actions{justify-content:flex-end;margin-top:8px}
.court-sheet-action{min-height:44px}
.print-courts-dialog form>p{margin:14px 0}
.print-courts-quick{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 10px}
.print-courts-quick button{min-height:38px;padding:6px 14px}
.print-courts-list{margin:0 0 8px;padding:12px 14px;border:1px solid #dfe5ee;border-radius:8px}
.print-courts-list>div{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:4px 16px}
:is(#court-sheet-dialog,#print-courts-dialog) .print-courts-list label{display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0;min-height:36px;font-weight:600;text-align:left}
:is(#court-sheet-dialog,#print-courts-dialog) .print-courts-list input[type="checkbox"]{flex:0 0 auto;width:18px;height:18px;min-height:0;margin:0;padding:0}
.print-courts-dialog .actions{justify-content:flex-end;margin-top:8px}
.court-sheet-dialog,.print-courts-dialog{max-height:calc(100dvh - 32px);overflow:auto}
@media(max-width:520px){.court-sheet-dates{grid-template-columns:1fr}}
#court-sheet{color:#000;font:8pt/1.2 Barlow,Arial,sans-serif}
.court-sheet-page{break-inside:avoid}
.court-sheet-page+.court-sheet-page{break-before:page}
.court-sheet-heading{display:flex;align-items:center;justify-content:space-between;gap:6mm;margin:0 0 2mm;padding-bottom:1.5mm;border-bottom:1.5pt solid #162d6e}
.court-sheet-heading h1{margin:0;color:#162d6e;font:800 15pt/1.1 "Barlow Condensed",Arial,sans-serif;text-transform:uppercase}
.court-sheet-heading p{margin:1mm 0 0;font-weight:700}
.court-sheet-brand{display:flex;align-items:center;gap:3mm;padding:2mm 3mm;border-radius:2mm;background:#162d6e!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.court-sheet-brand img{display:block;width:auto;object-fit:contain}
.court-sheet-brand img:first-child{height:9mm}
.court-sheet-brand img:last-child{height:6mm;max-width:36mm}
.court-sheet-table{width:100%;border-collapse:collapse;table-layout:fixed;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.court-sheet-table th,.court-sheet-table td{border:.6pt solid #8a94a6;padding:.2mm 1.2mm;vertical-align:middle;text-align:left;overflow:hidden}
.court-sheet-table thead th{background:#162d6e!important;color:#fff!important;font:700 9pt/1.1 "Barlow Condensed",Arial,sans-serif;text-align:center;padding:1.4mm}
.court-sheet-table thead .court-sheet-day{width:34mm;text-align:left;color:#f5c200!important}
.court-sheet-time{background:#f2f4f7!important;font-size:7pt;font-weight:700;line-height:1;white-space:nowrap;height:4.2mm}
.court-sheet-booking{background:var(--org-colour)!important;color:var(--org-text,#000)!important}
.court-sheet-booking{line-height:1.1}.court-sheet-booking strong,.court-sheet-booking span,.court-sheet-booking small{display:block;overflow:hidden;overflow-wrap:anywhere}
.court-sheet-booking[rowspan="1"]{white-space:nowrap;text-overflow:ellipsis}
.court-sheet-booking[rowspan="1"] strong,.court-sheet-booking[rowspan="1"] span{display:inline}
.court-sheet-booking[rowspan="1"] span::before{content:" · "}
.court-sheet-booking[rowspan="1"] small{display:none}
.court-sheet-booking strong{font-size:8pt}
.court-sheet-booking small{font-size:6.8pt;color:inherit;opacity:.85}
.court-sheet-booking.tentative{outline:1pt dashed var(--org-text,#000);outline-offset:-1.6pt}
.court-sheet-week-table thead .court-sheet-day{width:24mm}
.court-sheet-week-table tbody td{vertical-align:top;padding:.6mm}
.court-sheet-week-day{background:#f2f4f7!important;vertical-align:top!important;padding:1.2mm!important;font-size:7.5pt;line-height:1.2;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.court-sheet-week-day strong{display:block;color:#162d6e;font:800 10pt/1.1 "Barlow Condensed",Arial,sans-serif;text-transform:uppercase}
.court-sheet-chip{margin:0 0 .6mm;padding:.5mm 1mm;background:var(--org-colour);color:var(--org-text,#000);line-height:1.1;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}
.court-sheet-chip:last-child{margin-bottom:0}
.court-sheet-chip small,.court-sheet-chip strong,.court-sheet-chip span{display:block;overflow-wrap:anywhere}
.court-sheet-chip small{font-size:6.5pt;color:inherit;opacity:.85}
.court-sheet-chip strong{font-size:7.5pt}
.court-sheet-chip span{font-size:6.8pt}
.court-sheet-chip.tentative{outline:1pt dashed var(--org-text,#000);outline-offset:-1.6pt}
.court-sheet-portrait{page:court-sheet-portrait}
.court-sheet-portrait .court-sheet-table+.court-sheet-table{margin-top:1.6mm}
@media print{
@page{size:A4 landscape;margin:8mm}
@page court-sheet-portrait{size:A4 portrait;margin:6mm}
body.printing-court-sheet>:not(#court-sheet){display:none!important}
body.printing-court-sheet{background:#fff!important;margin:0}
body.printing-court-sheet #court-sheet{display:block!important;position:static!important;left:auto!important;width:auto!important;visibility:visible!important;color:#000;font:8pt/1.2 Barlow,Arial,sans-serif}
body.printing-court-sheet #court-sheet *{visibility:visible!important}
}
