/* FIX207: identity columns only; all date/input cells retain their original styling. */
.th185-sheet td.th207-training,.attendance-entry-screen .attendance-desktop-grid td.th207-training {
 background:#ffeb3b!important;color:#101010!important;
}
.th185-sheet td.th207-resigned,.attendance-entry-screen .attendance-desktop-grid td.th207-resigned {
 background:#b91c1c!important;color:#fff!important;
}
.th185-sheet td.th207-training strong,.th185-sheet td.th207-resigned strong,
.attendance-entry-screen .attendance-desktop-grid td.th207-training strong,
.attendance-entry-screen .attendance-desktop-grid td.th207-resigned strong {color:inherit}
.th185-sheet td.th207-late-orange:not(.th207-resigned) strong,
.attendance-entry-screen .attendance-desktop-grid td.th207-late-orange:not(.th207-resigned) strong {color:#d97706!important}
.th185-sheet td.th207-late-red:not(.th207-resigned) strong,
.attendance-entry-screen .attendance-desktop-grid td.th207-late-red:not(.th207-resigned) strong {color:#dc2626!important}
.th207-legend {display:flex;align-items:center;flex-wrap:wrap;gap:9px 18px;font:500 12px/1.5 system-ui,sans-serif;padding:11px 13px;margin:8px 0;background:#f8fafc;border:1px solid #d7e0ec;border-radius:10px;color:#233044}
.th207-legend>span {display:inline-flex;gap:6px;align-items:center}
.th207-swatch {width:16px;height:14px;border:1px solid #bbc6d4;border-radius:3px;display:inline-block;flex:none}
.th207-swatch.training {background:#ffeb3b}
.th207-swatch.resign {background:#b91c1c}
.th207-swatch.late3 {background:#fbbf24}
.th207-swatch.late4 {background:#dc2626}
.th207-swatch.sp {background:#7f1d1d}
.th207-late-badge,.th207-sp-note,.th207-sp-review {font:700 10px/1.3 system-ui,sans-serif;padding:2px 5px;border-radius:4px;display:inline-block;margin-left:4px;white-space:nowrap}
.th207-late-badge.th207-late-orange {background:#ffedd5;color:#9a3412}
.th207-late-badge.th207-late-red {background:#fee2e2;color:#991b1b}
.th207-sp-note {background:#14532d;color:#fff}
.th207-sp-review {background:#fef3c7;color:#92400e}
@media(max-width:700px){.th207-legend {font-size:11px;padding:9px}.th207-legend>span {flex-basis:auto}}

/* Final cascade protection over legacy zebra / sticky rules, without touching other cells */
html body.th-v35zz-brand-ui .attendance-entry-screen table.attendance-desktop-grid tbody tr > td.th207-training,
html body .attendance-entry-screen table.attendance-desktop-grid tbody tr > td.th207-training,
html body .th185-sheet tbody tr > td.th207-training {background:#ffeb3b!important;color:#111!important}
html body.th-v35zz-brand-ui .attendance-entry-screen table.attendance-desktop-grid tbody tr > td.th207-resigned,
html body .attendance-entry-screen table.attendance-desktop-grid tbody tr > td.th207-resigned,
html body .th185-sheet tbody tr > td.th207-resigned {background:#b91c1c!important;color:#fff!important}
html body .attendance-entry-screen table.attendance-desktop-grid tbody td.th207-training strong,
html body .th185-sheet tbody td.th207-training strong{color:#111!important}
html body .attendance-entry-screen table.attendance-desktop-grid tbody td.th207-resigned strong,
html body .th185-sheet tbody td.th207-resigned strong{color:#fff!important}
html body .attendance-entry-screen table.attendance-desktop-grid tbody td.th207-late-orange:not(.th207-training):not(.th207-resigned) strong,
html body .th185-sheet tbody td.th207-late-orange:not(.th207-training):not(.th207-resigned) strong{color:#e07800!important}
html body .attendance-entry-screen table.attendance-desktop-grid tbody td.th207-late-red:not(.th207-training):not(.th207-resigned) strong,
html body .th185-sheet tbody td.th207-late-red:not(.th207-training):not(.th207-resigned) strong{color:#dc2626!important}
.attendance-entry-screen table.attendance-desktop-grid tbody td[data-th207-late-label]:is(.th207-training,.th207-resigned)[data-th207-late-label]:after{content:attr(data-th207-late-label);display:inline-block;margin-left:5px;padding:2px 4px;border-radius:4px;background:#fef3c7;color:#9a3412;font:700 10px/1.2 system-ui,sans-serif}
