/* Time clock station (POS #252). Standalone: this page loads no app.css. */
:root {
  --tcs-bg: #f3f4f6;
  --tcs-card: #ffffff;
  --tcs-text: #111827;
  --tcs-muted: #6b7280;
  --tcs-border: #e5e7eb;
  --tcs-key: #f9fafb;
  --tcs-in: #16a34a;
  --tcs-out: #dc2626;
  --tcs-break: #d97706;
  --tcs-primary: #2563eb;
  --tcs-warn-bg: #fef3c7;
  --tcs-warn-text: #92400e;
  --tcs-info-bg: #e0f2fe;
  --tcs-info-text: #075985;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tcs-bg: #0f172a;
    --tcs-card: #1e293b;
    --tcs-text: #f1f5f9;
    --tcs-muted: #94a3b8;
    --tcs-border: #334155;
    --tcs-key: #273449;
    --tcs-warn-bg: #422006;
    --tcs-warn-text: #fde68a;
    --tcs-info-bg: #082f49;
    --tcs-info-text: #bae6fd;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.tcs {
  background: var(--tcs-bg);
  color: var(--tcs-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.tcs-wrap {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) calc(env(safe-area-inset-right, 0px) + 16px)
           calc(env(safe-area-inset-bottom, 0px) + 16px) calc(env(safe-area-inset-left, 0px) + 16px);
  gap: 12px;
}
.tcs-head {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tcs-store { font-weight: 600; font-size: 16px; }
.tcs-station { font-size: 13px; color: var(--tcs-muted); }
.tcs-clock { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tcs-close {
  border: 0; background: transparent; color: var(--tcs-muted);
  font-size: 32px; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.tcs-banner {
  width: 100%; max-width: 520px; padding: 10px 14px; border-radius: 10px;
  background: var(--tcs-warn-bg); color: var(--tcs-warn-text); font-size: 14px;
}
.tcs-banner-info { background: var(--tcs-info-bg); color: var(--tcs-info-text); }
.tcs-card {
  width: 100%; max-width: 520px;
  background: var(--tcs-card);
  border: 1px solid var(--tcs-border);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
}
.tcs-card h1 { margin: 0 0 12px; font-size: 26px; }
.tcs-muted { color: var(--tcs-muted); font-size: 14px; }
.tcs-notice p { font-size: 17px; }
.tcs-dots { display: flex; justify-content: center; gap: 16px; margin: 8px 0 12px; }
.tcs-dots span {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--tcs-muted);
}
.tcs-dots span.on { background: var(--tcs-text); border-color: var(--tcs-text); }
.tcs-msg { min-height: 22px; color: var(--tcs-out); font-size: 15px; margin-bottom: 8px; }
.tcs-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tcs-key {
  height: 72px; border-radius: 14px; border: 1px solid var(--tcs-border);
  background: var(--tcs-key); color: var(--tcs-text);
  font-size: 30px; font-weight: 500; cursor: pointer;
  touch-action: manipulation;
}
.tcs-key:active { transform: scale(0.97); }
.tcs-key-fn { font-size: 18px; color: var(--tcs-muted); }
.tcs-status { font-size: 18px; margin: 0 0 18px; }
.tcs-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.tcs-btn {
  border: 1px solid var(--tcs-border); border-radius: 12px; padding: 14px 18px;
  font-size: 17px; font-weight: 600; cursor: pointer; background: var(--tcs-key); color: var(--tcs-text);
  touch-action: manipulation;
}
.tcs-btn-big { padding: 22px 18px; font-size: 22px; color: #fff; border: 0; }
.tcs-btn-in { background: var(--tcs-in); }
.tcs-btn-out { background: var(--tcs-out); }
.tcs-btn-break { background: var(--tcs-break); }
.tcs-btn-primary { background: var(--tcs-primary); color: #fff; border: 0; }
.tcs-btn-ghost { background: transparent; }
.tcs-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tcs-row .tcs-btn { flex: 1 1 140px; }
.tcs-label { display: block; font-size: 16px; margin: 4px 0 8px; text-align: left; }
.tcs-input {
  display: block; width: 100%; margin-top: 6px; font-size: 24px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--tcs-border); background: var(--tcs-key); color: var(--tcs-text);
}
.tcs-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tcs-totals div { background: var(--tcs-key); border-radius: 12px; padding: 12px; }
.tcs-totals span { display: block; font-size: 13px; color: var(--tcs-muted); }
.tcs-totals strong { font-size: 26px; font-variant-numeric: tabular-nums; }
.tcs-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; margin-bottom: 8px; }
.tcs-table td { padding: 8px 4px; border-bottom: 1px solid var(--tcs-border); }
.tcs-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.tcs-flag { font-size: 12px; color: var(--tcs-break); text-align: right; }
.tcs-done .tcs-check {
  width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%;
  background: var(--tcs-in); color: #fff; font-size: 48px; line-height: 84px;
}
.tcs-embed .tcs-wrap { min-height: 0; }
@media (max-height: 640px) {
  .tcs-key { height: 56px; font-size: 24px; }
  .tcs-card { padding: 16px; }
}
