/* Time & Activity - additions on top of the shared Time Champ product CSS (base.css). */
.skip { position: absolute; left: -999px; top: 8px; background: var(--tc); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 12px; }
.persona { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who-sel { display: flex; flex-direction: column; min-width: 0; }
.who-sel select { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); padding: 4px 0; min-height: 28px; max-width: 260px; cursor: pointer; }
.who-sel small { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.fresh-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--panel-2); border-radius: 999px; padding: 5px 11px; font: inherit; font-size: 12px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.fresh-chip i { width: 8px; height: 8px; border-radius: 50%; background: #12A150; box-shadow: 0 0 0 3px #E2F4EC; }
.gsearch { position: relative; margin-left: 14px; width: 260px; }
.gsearch .inp { width: 100%; }
.gsearch-res { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(14,22,48,.14); z-index: 40; max-height: 420px; overflow: auto; }
.gsearch-res button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 12px; font: inherit; cursor: pointer; }
.gsearch-res button:hover, .gsearch-res button:focus { background: var(--tc-bg); }
.gsearch-res b { display: block; font-size: 13px; }
.gsearch-res small { color: var(--ink-3); font-size: 11.5px; }
.scope[hidden] { display: none; }
.scope-meta { display: flex; gap: 10px; align-items: center; font-size: 12px; color: var(--ink-3); margin-left: auto; flex-wrap: wrap; }

/* deltas, definitions, tones */
.dl { font-size: 11.5px; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dl.good { color: var(--ok); } .dl.bad { color: var(--bad); } .dl.flat { color: var(--ink-3); }
.mi { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink-3); font: 600 9.5px/1 Inter, system-ui, sans-serif; cursor: pointer; vertical-align: 1px; padding: 0; }
.mi:hover { border-color: var(--tc); color: var(--tc); }
.tbl td.c-ok { color: var(--ok); font-weight: 600; } .tbl td.c-warn { color: var(--warn); font-weight: 600; } .tbl td.c-bad { color: var(--bad); font-weight: 600; }
.tbl tr.clickable { cursor: pointer; }
.tbl.compact td { padding: 5px 8px; font-size: 12.5px; }
.tbl tfoot td { font-weight: 650; border-top: 2px solid var(--line-2); background: var(--panel-2); }
i.sq { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }

/* tables */
.tblx { min-width: 0; }
.tbl-tools { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.tbl-tools .tsearch { width: 220px; }
.tbl-tools .muted { margin-left: auto; font-size: 12px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* stacked category bar */
.catbar { display: flex; height: 18px; border-radius: 6px; overflow: hidden; background: var(--line); margin: 6px 0 2px; }
.catbar i { display: block; height: 100%; min-width: 1px; }
.ch-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11.5px; color: var(--ink-2); margin: 6px 0; }
.ch-legend i.sq { margin-right: 5px; }

/* mini KPIs (drawers) */
.mini-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.mk { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.mk[role=button] { cursor: pointer; } .mk[role=button]:hover { border-color: var(--tc); }
.mk > span { display: block; font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk b { display: block; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mk small { display: block; font-size: 11.5px; color: var(--ink-3); }
.mk.ok b { color: var(--ok); } .mk.warn b { color: var(--warn); } .mk.bad b { color: var(--bad); }
.kvl { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 18px; margin: 4px 0 8px; }
.kvl div { display: flex; flex-direction: column; min-width: 0; }
.kvl dt { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 650; }
.kvl dd { margin: 0; font-size: 13px; }

/* day strip */
.daystrip { display: flex; flex-wrap: wrap; gap: 4px; }
.ds { width: 38px; height: 40px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 11.5px; font-weight: 650; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; font-variant-numeric: tabular-nums; padding: 0; }
.ds b { font-size: 9.5px; color: var(--ink-3); font-weight: 600; }
.ds.g { background: #E2F4EC; border-color: #BFE6D3; } .ds.a { background: #FDF0D9; border-color: #F7D9A0; } .ds.r { background: #FCE8E6; border-color: #F1A39B; }
.ds.abs { background: #F1F3F8; color: var(--ink-3); } .ds.wk { background: #ECEFFC; border-color: #C9D1F5; } .ds.off { background: transparent; border-style: dashed; cursor: default; }
.ds:hover:not(.off) { border-color: var(--tc); }

/* timeline */
.tlw { margin: 8px 0 2px; }
.tl-row { display: grid; grid-template-columns: 78px 1fr; align-items: center; gap: 8px; }
.tl-l { font-size: 11px; color: var(--ink-3); text-align: right; }
.tl { position: relative; height: 24px; background: #F3F5FA; border-radius: 6px; overflow: hidden; margin: 3px 0; }
.tl.exp { height: 12px; }
.tl i { position: absolute; top: 0; bottom: 0; display: block; }
.tl i.ot { box-shadow: inset 0 -3px 0 rgba(14,22,48,.35); }
.tl i.after { box-shadow: inset 0 3px 0 rgba(200,38,27,.6); }
.tl-axis { position: relative; height: 16px; font-size: 10.5px; color: var(--ink-3); }
.tl-axis span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.day-nav { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.seglist { margin-top: 12px; } .seglist summary { cursor: pointer; font-weight: 600; font-size: 13px; margin-bottom: 8px; }

/* exceptions */
.exc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.exc-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-3); }
.exc-form label.wide { grid-column: 1 / -1; }
.exc-form .btn { justify-self: start; }
.hist { padding-left: 18px; font-size: 13px; } .hist li + li { margin-top: 6px; }

/* layer links and ladder */
.layer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.layer-links .muted { font-size: 11.5px; flex: 1 1 260px; }
.ladder { list-style: none; padding: 0; margin: 6px 0; counter-reset: l; }
.ladder li { position: relative; padding: 6px 10px 6px 34px; border-left: 2px solid var(--line); font-size: 13px; color: var(--ink-2); }
.ladder li::before { counter-increment: l; content: counter(l); position: absolute; left: -11px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); font-size: 10.5px; font-weight: 700; display: grid; place-items: center; color: var(--ink-3); }
.ladder li.on { color: var(--ink); background: var(--tc-bg); border-left-color: var(--tc); }
.ladder li.on::before { border-color: var(--tc); color: var(--tc); }
.ladder li.next { color: var(--ink-3); }
.ladder b { display: inline-block; min-width: 150px; color: inherit; }

/* generic layout helpers */
.card-a { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row-flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.note { background: var(--info-bg); border: 1px solid #D6DCF6; color: var(--ink-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.note.warn { background: var(--warn-bg); border-color: #F3D9A8; }
.dr-back { margin-right: 4px; }
.dr-head { display: flex; gap: 8px; align-items: flex-start; }
.dr-head > div { flex: 1; min-width: 0; }
.dr-body h3 { margin: 16px 0 6px; font-size: 13px; }

@media (max-width: 1180px) { .gsearch { width: 200px; } #fresh { display: none; } }
@media (max-width: 860px) { .gsearch { display: none; } .who-sel small { display: none; } .exc-form { grid-template-columns: 1fr; } .tbl-tools .tsearch { width: 140px; } }
@media (max-width: 520px) { .who-sel select { max-width: 150px; } .tl-row { grid-template-columns: 54px 1fr; } }

/* mobile: dismissable nav, collapsible filter bar */
.nav-scrim { display: none; }
.scope-tg { display: none; }
@media (max-width: 860px) {
  body.nav-open .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(14,22,48,.35); z-index: 25; }
  .scope-tg { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 12px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
  .scope-tg small { font-weight: 500; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
  .scope:not(.open) > label, .scope:not(.open) > .scope-meta { display: none; }
}
