/* page-specific styles: client list colours, the year timeline and milestones */
tr.red-client > td { background: #fee2e2 !important; }
tr.red-client > td:first-child { box-shadow: inset 4px 0 0 #dc2626; }
tr.amber > td:first-child { box-shadow: inset 4px 0 0 #f59e0b; }
.red-banner { background: #dc2626; color: #fff; border-radius: .75rem; padding: .75rem 1rem; }
.dl-grid { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; gap: .35rem 1rem; font-size: .9rem; }
.dl-grid dt { color: #6b7280; font-weight: 500; }
.dl-grid dd { margin: 0; }
.table-sm td, .table-sm th { vertical-align: middle; }
.text-bg-orange { background: #fd7e14 !important; color: #fff !important; }
.milestones-wrap { overflow-x: auto; border: 1px solid #eef0f3; border-radius: .5rem; background: #fcfcfd; }
.milestones { display: block; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.milestones .ms-title { font-size: 11px; font-weight: 600; fill: #1f2937; }
.milestones .ms-sub { font-size: 10px; }
.milestones .ms-month { font-size: 12px; fill: #6b7280; }
.milestones .ms-year { font-size: 13px; font-weight: 700; fill: #495057; }
.milestones .ms-icon { font-size: 10px; font-weight: 700; fill: #fff; pointer-events: none; }
.milestones .ms-flag { font-size: 12px; font-weight: 700; fill: #212529; }
.milestones .ms-flag-small { font-size: 11px; fill: #6b7280; }
.milestones .ms-today { font-size: 11px; font-weight: 600; fill: #6f42c1; }
.milestones a:hover rect { filter: brightness(.96); }
.milestones a { cursor: pointer; text-decoration: none; }
.milestones .ms-today { paint-order: stroke; stroke: #fcfcfd; stroke-width: 4px; }
.timeline-wrap { overflow-x: auto; }
table.timeline { width: 100%; min-width: 1100px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
table.timeline th, table.timeline td { border-left: 1px solid #eef0f3; padding: .25rem; vertical-align: top; }
table.timeline thead th { text-align: center; font-size: .78rem; color: #6b7280; border-bottom: 1px solid #e5e7eb; }
table.timeline th.lane { width: 9rem; font-size: .78rem; color: #374151; border-left: 0; }
table.timeline tbody tr + tr td, table.timeline tbody tr + tr th { border-top: 1px dashed #e5e7eb; }
table.timeline .now { background: #f0f5ff; }
.tl-item { display: block; font-size: .68rem; line-height: 1.15; padding: .15rem .3rem; margin-bottom: .2rem;
           border-radius: .3rem; border-left: 3px solid; text-decoration: none; color: #1f2937; overflow: hidden;
           white-space: nowrap; text-overflow: ellipsis; }
a.tl-item:hover { filter: brightness(.95); }
.tl-done { background: #d1e7dd; border-color: #198754; }
.tl-late { background: #ffe5cc; border-color: #fd7e14; }
.tl-overdue { background: #f8d7da; border-color: #dc3545; font-weight: 600; }
.tl-soon { background: #fff3cd; border-color: #ffc107; }
.tl-upcoming { background: #e7f0ff; border-color: #0d6efd; }
.tl-expected { background: #fff; border: 1px dashed #adb5bd; border-left: 3px dashed #adb5bd; color: #6b7280; }
.tl-na { background: #f8f9fa; border-color: #ced4da; color: #6b7280; text-decoration: line-through; }
.tl-key { background: #e0f2fe; border-color: #0891b2; }
.strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2px; min-width: 15rem; }
.strip span { height: 1.1rem; border-radius: 2px; background: #f1f3f5; }
.strip .s-overdue { background: #dc3545; } .strip .s-late { background: #fd7e14; }
.strip .s-soon { background: #ffc107; } .strip .s-upcoming { background: #0d6efd; }
.strip .s-expected { background: #ced4da; } .strip .s-done { background: #198754; }
@media print { .app-nav, .no-print { display: none !important; } body { background: #fff; }
               .nav-tabs, .alert, .red-banner { display: none !important; } table.timeline { min-width: 0; }
               .tl-item { white-space: normal; } @page { size: landscape; } }
