/* Timesheet screen: mobile-first, big tap targets, same palette as the chat. */
.ts-screen { position: fixed; inset: 0; z-index: 15; background: var(--navy); display: flex; flex-direction: column; overflow: hidden; }
.ts-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--navy-2); min-height: 58px; }
.ts-back { font-size: 28px; }
.ts-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); background: var(--navy-2); padding: 0 8px; flex: none; }
.ts-tabs .tab { white-space: nowrap; padding: 12px 14px; min-height: 44px; }
.ts-body { flex: 1; overflow-y: auto; padding: 14px; padding-bottom: max(24px, env(safe-area-inset-bottom)); max-width: 720px; width: 100%; margin: 0 auto; }
.ts-error { background: #4a1719; border: 1px solid #7a2326; color: #ffd6d7; padding: 10px 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.ts-error[hidden] { display: none; }
.ts-banner { background: rgba(255,107,31,.15); border: 1px solid var(--orange); color: #ffc9a8; border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; }
.ts-card { background: var(--navy-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.ts-clock { text-align: center; }
.ts-clock.on { border-color: var(--ok); box-shadow: 0 0 0 1px rgba(60,207,142,.25) inset; }
.ts-job { font-size: 20px; font-weight: 700; margin: 4px 0 10px; }
.ts-timer { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ts-select { font-size: 16px; min-height: 48px; margin: 6px 0; }
.btn.ts-big { display: block; width: 100%; min-height: 64px; font-size: 20px; font-weight: 700; border-radius: 14px; margin: 10px 0 4px; }
.btn.ts-in { background: var(--ok); border-color: var(--ok); color: #05231a; }
.btn.ts-out { background: var(--danger); border-color: var(--danger); color: #fff; }
.ts-switch { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); text-align: left; }
.ts-switch .btn.ts-big { min-height: 48px; font-size: 16px; margin: 0; }
.ts-job-label { display: block; text-align: left; font-weight: 600; margin: 4px 0 2px; }
.ts-jobfield { text-align: left; }
.ts-job-input { width: 100%; font-size: 17px; min-height: 50px; margin: 6px 0 4px; }
.ts-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.ts-suggest[hidden] { display: none; }
.ts-suggest-h { width: 100%; }
.ts-chip { font: inherit; font-size: 14.5px; min-height: 40px; max-width: 100%; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--navy-3); color: var(--text); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ts-chip:active, .ts-chip:focus-visible { border-color: var(--orange); outline: none; }
.btn.ts-wide { display: block; width: 100%; min-height: 50px; font-size: 16px; margin: 10px 0; }
.ts-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 6px 0; }
.ts-entries li { min-height: 56px; }
.ts-entry { min-width: 0; }
.ts-entry-r { display: flex; align-items: center; gap: 8px; flex: none; }
.ts-entry-r .btn.small { min-height: 40px; min-width: 52px; }
.ts-tag { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 10px; background: var(--navy-3); color: var(--muted); margin: 3px 4px 0 0; }
.ts-tag.on { background: rgba(60,207,142,.2); color: var(--ok); }
.ts-tag.warn { background: rgba(255,107,31,.2); color: #ffb48a; }
.ts-flag { color: #ffb48a; }
.ts-done { color: var(--ok); margin: 10px 0; }
.ts-over { color: #ffb48a; }
.ts-week.over { border-color: #7a4a2a; }
.ts-days td { padding: 7px 4px; }
.ts-days td:first-child { white-space: nowrap; }
.ts-days td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ts-days tr.over td { color: #ffb48a; }
.ts-weeknav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ts-weeknav .btn { min-height: 40px; }
.ts-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ts-form textarea { width: 100%; }
.ts-inline { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ts-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.ts-actions select { width: auto; }
.ts-days-pick { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ts-daybox { margin: 4px 0; }
.list li.inactive { opacity: .55; }
.ts-nav-btn { margin: 6px 12px 0; width: calc(100% - 24px); text-align: left; min-height: 44px; font-weight: 600; }
@media (min-width: 761px) { .ts-inline { grid-template-columns: 1fr 200px auto; } }
.ts-mail-log .ts-mail-item { display: block; }
.ts-mail-log .ts-mail-item .btn { margin-top: 6px; }
/* Payroll (payroll.js) */
.pay-badge { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 10px; background: var(--navy-3); color: var(--muted); white-space: nowrap; }
.pay-badge.submitted { background: rgba(255,196,0,.16); color: #ffd56b; }
.pay-badge.verified { background: rgba(60,207,142,.2); color: var(--ok); }
.pay-badge.rejected { background: rgba(255,80,80,.2); color: #ff9c9c; }
.pay-badge.locked { background: rgba(120,160,255,.2); color: #aac4ff; }
.pay-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 10px; }
.pay-sum > div { display: flex; flex-direction: column; min-width: 56px; font-variant-numeric: tabular-nums; }
.pay-three { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pay-certify { font-weight: 600; margin: 10px 0; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--navy-3); }
.pay-flags { list-style: none; margin: 4px 0; padding: 0; font-size: 13px; }
.pay-flags li { padding: 1px 0; }
.pay-flags li.warn { color: #ffb48a; }
.pay-flags li.warn::before { content: '⚠ '; }
.pay-flags li.info { color: var(--muted); }
.pay-flags li.info::before { content: 'ⓘ '; }
.pay-days .pay-day { align-items: flex-start; }
.pay-verify.warn { border-color: #7a4a2a; }
.pay-table-wrap { overflow-x: auto; margin: 0 -4px 10px; }
.pay-table { min-width: 640px; font-size: 13.5px; }
.pay-table th, .pay-table td { padding: 6px 5px; vertical-align: top; }
.pay-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-table tr.notready td:first-child { border-left: 3px solid #ffd56b; }
.pay-table tr.pay-flagrow td { padding-top: 0; border-top: 0; }
.pay-table tfoot th { border-top: 1px solid var(--line); }
.pay-dl { flex-wrap: wrap; gap: 6px; }
.pay-period-h { text-align: center; }
.pay-disclaimer { margin-top: 16px; }
.pay-mealpolicy { margin: -2px 0 6px 26px; padding: 6px 10px; border-left: 3px solid #ffd56b; background: rgba(255,196,0,.08); border-radius: 4px; }
.pay-missed > li.repeat { border-left: 3px solid #ff9c9c; padding-left: 8px; }
.pay-missed-days { margin: 4px 0 0 0; padding-left: 18px; }

/* ---- time card home (accounts without the message board) ---- */
.tc-shell { display: flex; flex-direction: column; height: 100%; height: 100dvh; }
.tc-top { display: flex; align-items: center; gap: 10px; padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--teal) -60%, var(--navy-2) 100%); }
.tc-top .sb-title { flex: 1; min-width: 0; }
.tc-top .tc-admin { margin: 0; padding: 6px 10px; font-size: 13px; }
.tc-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ts-screen.ts-embedded { position: relative; inset: auto; z-index: auto; flex: 1; min-height: 0; }
.ts-embedded .ts-head { padding-top: 10px; min-height: 50px; }
.tc-nav { display: flex; border-top: 1px solid var(--line); background: var(--navy-2); padding-bottom: env(safe-area-inset-bottom); }
.tc-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; background: none; border: 0; color: var(--muted); cursor: pointer; position: relative; font-size: 12px; min-height: 56px; }
.tc-tab .tc-ico { font-size: 20px; line-height: 1.2; }
.tc-tab.active { color: var(--text); box-shadow: inset 0 2px 0 var(--orange); }
.tc-tab:hover { color: var(--text); background: var(--navy-3); }
.tc-tab .badge { position: absolute; top: 4px; left: calc(50% + 6px); }
@media (min-width: 761px) { .tc-shell .tc-main, .tc-shell .tc-nav { width: 100%; max-width: 760px; margin: 0 auto; } .tc-nav { border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; } }
/* admin: message board access */
.chat-cell .switch { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.chat-cell .switch input { width: auto; margin: 0; }
.pending-actions .chat-check { font-size: 13px; }
.chat-hint { flex-basis: 100%; }
