/* Issues-ControlTower-001 — day board: Reef/Bay × Left/Right grid, print-first */
.ct-main { padding: 18px 22px 40px; max-width: 1400px; margin: 0 auto; }
.ct-title { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.ct-title h1 { margin: 0; }
.ct-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #475569; }
.ct-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 10px; }
.ct-head h2 { margin: 0; font-size: 20px; }
.ct-head .ct-meta { font-size: 12.5px; color: #64748b; }
.ct-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 14px; }
.ct-total { background: #fff; border: 1px solid var(--ik-line, #e2e8f0); border-radius: 12px; padding: 10px 12px; }
.ct-total .n { display: block; font-size: 24px; font-weight: 700; line-height: 1.1; }
.ct-total .l { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; margin-top: 2px; }
.ct-total .cap { font-size: 12px; color: #94a3b8; font-weight: 500; }
.ct-total.reef { border-left: 5px solid #0ea5e9; }
.ct-total.bay { border-left: 5px solid #22c55e; }
.ct-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--ik-line, #e2e8f0); border-radius: 12px; }
table.ct-grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ct-grid th, .ct-grid td { border: 1px solid #e2e8f0; padding: 8px 10px; vertical-align: top; text-align: left; }
.ct-grid thead th { background: #f1f5f9; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #334155; }
.ct-grid thead th.reef { background: #e0f2fe; }
.ct-grid thead th.bay { background: #dcfce7; }
.ct-grid td.time { white-space: nowrap; font-weight: 700; width: 92px; }
.ct-grid td.time small { display: block; font-weight: 400; color: #64748b; }
.ct-grid td.rowtotal, .ct-grid tfoot td { font-weight: 700; background: #f8fafc; }
.ct-grid td.empty { color: #cbd5e1; text-align: center; }
.ct-grid tr.past td { opacity: .55; }
.ct-grid tr.now td { background: #fffbeb; }
.ct-grid tr.now td.time { color: #b45309; }
.ct-cell { display: block; margin-bottom: 6px; }
.ct-cell:last-child { margin-bottom: 0; }
.ct-cell .name { display: block; font-weight: 600; }
.ct-cell .name .tag { font-weight: 500; font-size: 11px; color: #64748b; margin-left: 4px; }
.ct-cell .hc { display: block; font-size: 12.5px; color: #334155; }
.ct-cell .hc b { font-size: 15px; }
.ct-cell .hc .in { color: #15803d; }
.ct-cell .hc .cart { color: #b45309; }
.ct-cell.full .hc b { color: #b91c1c; }
.ct-unassigned { margin-top: 12px; font-size: 12.5px; color: #64748b; }

@media print {
    @page { size: landscape; margin: 10mm; }
    body { background: #fff !important; }
    .ct-noprint { display: none !important; }
    .ct-main { padding: 0; max-width: none; }
    .ct-totals { gap: 6px; }
    .ct-total { border-radius: 4px; padding: 5px 8px; }
    .ct-total .n { font-size: 18px; }
    .ct-wrap { border: 0; border-radius: 0; overflow: visible; }
    table.ct-grid { font-size: 11.5px; }
    .ct-grid th, .ct-grid td { border-color: #999; padding: 4px 6px; }
    .ct-grid thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .ct-grid tr.past td { opacity: 1; }
    .ct-grid tr.now td { background: #fff; }
    .ct-grid tr { break-inside: avoid; page-break-inside: avoid; }
}
