/* Employee Checklists (#/checklist) */
.ck-mnote { display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; }
.ck-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 14px; }
.ck-metrics > .card { margin: 0; }
.ck-metric { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; text-align: left; cursor: pointer; color: var(--text); border-left: 4px solid var(--teal); }
.ck-metric b { font-family: var(--font-display); font-size: 28px; line-height: 1; color: var(--ink); }
.ck-metric small { font-size: var(--fs-xs); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ck-m-overdue { border-left-color: var(--coral); } .ck-m-overdue b { color: var(--coral); }
.ck-m-month { border-left-color: var(--amber, #E9B140); } .ck-m-month b { color: #B7791F; }
.ck-m-d60 { border-left-color: var(--teal-strong); } .ck-m-d90 { border-left-color: var(--line-strong, #C9CCDA); }
.ck-metric.is-on { box-shadow: inset 0 0 0 2px var(--ink); }
.ck-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.ck-ftoggle { position: relative; }
.ck-fcount { min-width: 18px; height: 18px; border-radius: 9px; background: var(--coral); color: #fff; font-size: 11px; display: inline-grid; place-items: center; padding: 0 5px; margin-left: 2px; }
.ck-fcount[hidden] { display: none; }
.ck-fcard { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 10px; align-items: end; padding: 12px; margin-bottom: 10px; }
.ck-fcard .field { margin: 0; }
.ck-hiddenbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; font-size: var(--fs-sm); color: var(--text-2); font-weight: 600; }
.ck-hiddenbar .chip { display: inline-flex; align-items: center; gap: 4px; }
.ck-wrap { padding: 0; overflow: auto; max-height: calc(100vh - 220px); }
.ck-grid { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: var(--fs-sm); }
.ck-grid th, .ck-grid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; background: var(--surface); }
.ck-grid thead th { position: sticky; top: 0; z-index: 2; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.ck-grid th.ck-name, .ck-grid td.ck-name { position: sticky; left: 0; z-index: 1; min-width: 170px; text-align: left; padding: 8px 12px; }
.ck-grid thead th.ck-name { z-index: 3; }
.ck-grid th.ck-usag, .ck-grid td.ck-usag { padding: 8px 10px; text-align: left; min-width: 86px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ck-grid td.ck-name b { display: block; font-weight: 700; }
.ck-grid td.ck-name small { display: block; font-size: 10px; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.ck-colh button { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-width: 108px; max-width: 160px; padding: 9px 8px; cursor: pointer; text-align: center; line-height: 1.2; }
.ck-colh button:hover { background: rgba(255,255,255,.12); }
.ck-cell { text-align: center; cursor: pointer; padding: 6px !important; min-width: 108px; transition: background .2s; }
.ck-cell:hover { background: var(--surface-2); }
.ck-cell.is-saved { background: var(--teal-soft) !important; }
.ck-empty { color: var(--faint, #b5b9c8); }
.ck-val { display: inline-block; padding: 3px 8px; border-radius: 8px; font-weight: 700; font-size: 11.5px; white-space: nowrap; }
.ck-status.is-done { background: #1B2159; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ck-status.is-needs { background: #FDE8E5; color: #B91C1C; box-shadow: inset 0 0 0 1px rgba(185,28,28,.3); }
.ck-status.is-na { background: var(--surface-2); color: var(--muted); }
.ck-date { background: #EEF3FF; color: #1E40AF; box-shadow: inset 0 0 0 1px rgba(30,64,175,.25); font-variant-numeric: tabular-nums; }
.ck-date.is-overdue { background: var(--coral); color: #fff; box-shadow: none; animation: ck-blink 1.1s ease-in-out infinite; }
@keyframes ck-blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .ck-date.is-overdue { animation: none; } }
.ck-grid tr.is-inactive td { background: var(--surface-2); color: var(--muted); }
.ck-grid tr.is-inactive td.ck-name b { text-decoration: line-through; font-weight: 600; }
.ck-grid tr.is-inactive .ck-val { opacity: .6; }
.ck-grid.is-filtered td.is-dim .ck-val, .ck-grid.is-filtered td.is-dim .ck-empty { opacity: .2; }
.ck-grid.is-filtered td.is-match { box-shadow: inset 0 0 0 2px var(--teal); }
.ck-count { margin: 8px 4px 0; }
.ck-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 4px 0; font-size: var(--fs-xs); font-weight: 600; color: var(--text-2); }
.ck-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ck-dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.ck-dot.is-done { background: #1B2159; }
.ck-dot.is-needs { background: #FDE8E5; box-shadow: inset 0 0 0 1px #B91C1C; }
.ck-dot.is-na { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.ck-dot.is-date { background: #EEF3FF; box-shadow: inset 0 0 0 1px #1E40AF; }
.ck-dot.is-overdue { background: var(--coral); }
.ck-emptyacts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ck-drill .row-sub .pill { font-size: 10px; padding: 1px 6px; }
.ck-ddate { font-weight: 800; font-variant-numeric: tabular-nums; color: #1E40AF; flex: none; }
.ck-ddate.is-overdue { color: var(--coral); }
@media (max-width: 900px) { .ck-fcard { grid-template-columns: 1fr 1fr; } .ck-fclear { grid-column: 1 / -1; } }
@media (max-width: 600px) {
  .ck-metrics { display: flex; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  .ck-metrics > .card { flex: 0 0 auto; min-width: 104px; padding: 10px 12px; }
  .ck-metric b { font-size: 24px; } .ck-metric small { font-size: 10px; }
  .ck-grid th.ck-name, .ck-grid td.ck-name { min-width: 118px; max-width: 132px; padding: 8px; }
  .ck-grid th.ck-usag, .ck-grid td.ck-usag { display: none; }
  .ck-wrap { max-height: calc(100vh - 260px); }
}
/* Print / Save as PDF (inside #rp-print, see schedule.css) */
#rp-print .ck-print h1 { font-size: 16pt; text-align: center; margin: 0 0 2px; font-family: Arial, sans-serif; }
#rp-print .ck-print p { text-align: center; font-size: 9pt; color: #555; margin: 0 0 10px; }
#rp-print .ck-print table { width: 100%; border-collapse: collapse; font: 8.5pt Arial, sans-serif; }
#rp-print .ck-print th, #rp-print .ck-print td { border: 1px solid #999; padding: 3px 5px; text-align: center; }
#rp-print .ck-print th { background: #1B2159; color: #fff; font-size: 7.5pt; text-transform: uppercase; }
#rp-print .ck-print .l { text-align: left; } #rp-print .ck-print .name { font-weight: bold; white-space: nowrap; }
#rp-print .ck-print tr.inactive td { background: #eaeaea; color: #888; } #rp-print .ck-print tr.inactive .name { text-decoration: line-through; }
#rp-print .ck-print .done { color: #1B2159; font-weight: bold; } #rp-print .ck-print .na { color: #64748b; }
#rp-print .ck-print .needs { color: #b91c1c; font-weight: bold; } #rp-print .ck-print .date { color: #1e40af; font-weight: bold; }
#rp-print .ck-print .overdue { color: #fff; background: #dc2626; font-weight: bold; }
.ck-grid thead th.ck-usag { color: rgba(255,255,255,.85); }
@media (max-width: 600px) {
  .ck-cell { min-width: 84px; padding: 5px !important; }
  .ck-colh button { min-width: 84px; max-width: 110px; padding: 8px 6px; font-size: 10px; }
  .ck-val { font-size: 10px; padding: 3px 6px; white-space: normal; line-height: 1.15; max-width: 84px; }
}