/* Staff time clock + timesheets (shared by the offline and online Ticket Desk) */
.tc-btn { font: inherit; font-size: 14px; font-weight: 700; border: 1px solid #334155; background: #1e293b; color: #e2e8f0; padding: 7px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; }
.tc-btn:hover { background: #334155; }
.tc-btn.tc-on { background: #065f46; border-color: #10b981; color: #fff; }
.tc-btn.tc-break { background: #78350f; border-color: #f59e0b; color: #fff; }

.tc-overlay { position: fixed; inset: 0; z-index: 56; background: rgba(15,23,42,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.tc-overlay[hidden] { display: none; }
.tc-modal { background: #fff; color: var(--text); border-radius: 14px; width: 100%; max-width: 440px; max-height: 94vh; display: flex; flex-direction: column; overflow: hidden; }
.tc-hd { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tc-hd h3 { margin: 0; flex: 1; font-size: 17px; }
.tc-x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.tc-bd { padding: 18px; overflow-y: auto; }
.tc-bd h4 { margin: 18px 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tc-now { padding: 14px 16px; border-radius: 10px; font-size: 15px; line-height: 1.5; }
.tc-now.out { background: #f1f5f9; }
.tc-now.in { background: #ecfdf5; color: #065f46; }
.tc-now.brk { background: #fffbeb; color: #92400e; }
.tc-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 14px; }
.tc-big { font: inherit; font-size: 18px; font-weight: 800; padding: 18px 10px; border-radius: 12px; border: 0; cursor: pointer; color: #fff; }
.tc-big:disabled { opacity: .6; cursor: wait; }
.tc-big.in { background: #059669; }
.tc-big.out { background: #dc2626; }
.tc-big.brk { background: #d97706; }
.tc-big:hover { filter: brightness(1.07); }
.tc-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.tc-totals div { background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.tc-totals span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.tc-totals b { font-size: 20px; }
.tc-today { list-style: none; margin: 0; padding: 0; }
.tc-today li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.tc-today small { color: var(--muted); }
.tc-empty { color: var(--muted); }

/* timesheets */
.tc-sheet { padding: 16px; }
.tc-sheet[hidden] { display: none !important; }
.tc-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tc-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tc-nav h2 { margin: 0 0 0 8px; font-size: 20px; }
.tc-live { margin-bottom: 14px; }
.tc-live h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tc-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.tc-chip { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: 14px; }
.tc-chip.brk { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.tc-muted { color: var(--muted); }
.tc-table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.tc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tc-table th, .tc-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.tc-table thead th { font-size: 12px; text-transform: uppercase; color: var(--muted); background: #fafafa; }
.tc-table thead th small { font-size: 13px; color: var(--text); text-transform: none; }
.tc-table tbody th, .tc-table tfoot th { text-align: left; font-weight: 700; }
.tc-table .today { background: #fffbeb; }
.tc-table .tot { font-weight: 800; background: #f8fafc; }
.tc-row { cursor: pointer; }
.tc-row:hover td, .tc-row:hover th { background: #f8fafc; }
.tc-caret { display: inline-block; width: 16px; color: var(--muted); }
.tc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #10b981; vertical-align: middle; }
.tc-detail > td { background: #f8fafc; padding: 8px 12px 14px; text-align: left; }
.tc-entries { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.tc-entries th, .tc-entries td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.tc-entries th { font-size: 11px; text-transform: uppercase; color: var(--muted); }
.tc-edcell { text-align: right !important; }
.tc-edited { color: #9a3412; }
.tc-open { color: #059669; }
.tc-sm { padding: 4px 10px; font-size: 13px; }
.tc-note { color: var(--muted); font-size: 13px; margin: 10px 2px 0; }
.tc-loading { padding: 20px; color: var(--muted); }
.tc-form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.tc-form label[hidden] { display: none; }
.tc-form small { font-weight: 500; }
.tc-form input, .tc-form select { font: inherit; font-size: 15px; color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.tc-calc { font-weight: 700; margin: 4px 0 0; }
.tc-ft { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); background: #fafafa; flex-wrap: wrap; }
.tc-ft .grow { flex: 1; }
.tc-ft [hidden] { display: none; }

/* sign-in, first-time setup and staff screens for the offline version */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: #0f172a; }
.auth-wrap[hidden] { display: none; }
.auth-card { background: #fff; border-radius: 14px; padding: 28px; width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 12px; }
.auth-card[hidden] { display: none; }
.auth-card h1 { margin: 0; font-size: 20px; }
.auth-card p { margin: 0; color: var(--muted); font-size: 14px; }
.auth-card label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.auth-card input { font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.auth-error { color: #dc2626; font-size: 14px; min-height: 18px; }

@media (max-width: 700px) {
  .tc-sheet { padding: 10px; }
  .tc-nav h2 { width: 100%; margin: 4px 0 0; font-size: 16px; order: 5; }
  .tc-table th, .tc-table td { padding: 8px 6px; font-size: 13px; }
  .tc-big { font-size: 16px; padding: 16px 8px; }
}
