/* v29 Time Card */
.timecard .page-head .btn-row { flex-wrap: wrap; }
.tc-clock { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .5rem; padding: 1.4rem 1rem 1.2rem; margin-bottom: 1rem; }
.tc-clock.on { background: linear-gradient(180deg, color-mix(in srgb, var(--ok) 10%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.tc-status { display: inline-flex; align-items: center; gap: .45rem; font-weight: 750; color: var(--ok); text-transform: uppercase; letter-spacing: .06em; font-size: .82rem; }
.tc-status.off { color: var(--muted); }
.tc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); animation: tc-pulse 1.6s infinite; flex: none; }
@keyframes tc-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .tc-dot { animation: none; } }
.tc-timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.tc-timer.big { font-size: clamp(2.8rem, 14vw, 4rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); font-family: var(--font-display); }
.tc-since { margin: 0; color: var(--ink-2); }
.tc-big { width: 100%; max-width: 420px; min-height: 76px; font-size: 1.35rem; font-weight: 800; border-radius: 22px; gap: .6rem; justify-content: center; margin-top: .35rem; border: 0; }
.tc-big.in { background: var(--ok); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--ok) 35%, transparent); }
.tc-big.out { background: var(--bad); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--bad) 35%, transparent); }
.tc-big:active { transform: scale(.98); }
.tc-gps { margin: .2rem 0 0; font-size: .85rem; }
.tc-warn { margin: 0; color: var(--warn); background: var(--warn-bg); border-radius: 12px; padding: .45rem .7rem; font-size: .9rem; }
.tc-locs { display: flex; flex-wrap: wrap; gap: .4rem; }
.tc-clock .tc-locs { justify-content: center; }
.tc-loc { display: inline-flex; align-items: center; gap: .25rem; font-size: .82rem; font-weight: 650; border-radius: 99px; padding: .2rem .6rem; text-decoration: none; min-height: 30px; }
.tc-loc.ok { background: var(--info-bg); color: var(--info); }
.tc-loc.none { background: var(--surface-3); color: var(--muted); }
.tc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
.tc-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: .7rem .5rem; text-align: center; }
.tc-stats b { display: block; font-size: 1.45rem; font-variant-numeric: tabular-nums; font-family: var(--font-display); }
.tc-stats small { color: var(--muted); font-size: .78rem; }
.tc-now { margin-bottom: 1rem; } .tc-now h3 { margin: 0 0 .4rem; font-size: 1rem; }
.tc-now ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.tc-tm { margin-bottom: 1rem; }
.tc-tm-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.tc-tm-head h3 { margin: 0; font-size: 1.05rem; }
.tc-tm-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.tc-tm-table th { text-align: left; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; padding: .3rem .2rem; }
.tc-tm-table td { padding: .42rem .2rem; border-top: 1px solid var(--line); }
.tc-tm-table th:not(:first-child), .tc-tm-table td:not(:first-child) { text-align: right; }
.tc-tm-table td[colspan] { text-align: left !important; }
.tc-tm-table tr td[colspan] + td { text-align: right; }
.tc-tm-table tr.sub td { font-weight: 700; }
.tc-tm-table tr.total td { font-weight: 800; font-size: 1.08rem; border-top: 2px solid var(--ink); }
.tc-days { display: grid; gap: 1.1rem; }
.tc-day-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 .45rem; font-size: 1rem; color: var(--ink-2); }
.tc-day-hours { font-variant-numeric: tabular-nums; color: var(--ink); }
.tc-person { padding: .7rem .85rem; margin-bottom: .5rem; }
.tc-person-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tc-person-head span { font-weight: 700; font-variant-numeric: tabular-nums; }
.tc-entries { list-style: none; margin: .3rem 0 0; padding: 0; }
.tc-entry { display: flex; gap: .5rem; align-items: flex-start; padding: .5rem 0; border-top: 1px solid var(--line); }
.tc-entry:first-child { border-top: 0; }
.tc-entry.open .tc-e-time b { color: var(--ok); }
.tc-e-main { flex: 1; min-width: 0; display: grid; gap: .3rem; }
.tc-e-time { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .5rem; }
.tc-e-dur { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tc-edited { background: var(--warn-bg); color: var(--warn); font-size: .7rem; }
.tc-notes { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); font-size: .95rem; }
.tc-edit { flex: none; }
.tc-e-actions { flex: none; display: flex; flex-direction: column; gap: .4rem; }
.tc-e-actions .btn { min-height: 40px; min-width: 88px; justify-content: center; }
.tc-job { font-weight: 700; color: var(--ink); text-decoration: none; }
.tc-banner { display: flex; align-items: center; gap: .7rem; padding: .75rem 1rem; margin: 0 0 1rem; border-radius: var(--radius-md); text-decoration: none; color: var(--ink);
  background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); }
.tc-banner-txt { flex: 1; min-width: 0; display: grid; } .tc-banner-txt small { color: var(--ok); font-weight: 750; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; }
.tc-banner-txt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-banner .tc-timer { font-size: 1.15rem; }
.tc-week-nav { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .8rem; }
.tc-week-label { text-align: center; display: grid; } .tc-week-label small { color: var(--muted); }
.tc-week-total { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: .8rem; flex-wrap: wrap; }
.tc-week-total b { font-size: 2rem; font-family: var(--font-display); font-variant-numeric: tabular-nums; display: block; line-height: 1.1; }
.tc-week-total small { color: var(--muted); }
.tc-jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; min-width: 160px; flex: 1; }
.tc-jobs li { display: flex; justify-content: space-between; gap: .6rem; } .tc-jobs a { color: var(--ink); font-weight: 650; }
.tc-week { display: grid; gap: .5rem; margin-bottom: 1rem; }
.tc-wday { padding: .65rem .85rem; } .tc-wday.empty { opacity: .7; }
.tc-wday.today { border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent-soft); }
@media (min-width: 900px) { .tc-clock { flex-direction: column; } .tc-days, .tc-week { max-width: 860px; } }
.tc-manual { background: var(--info-bg); color: var(--info); font-size: .7rem; }
