/* Tech pay portal — large touch targets, simple layout */
:root {
  --tp-bg: #f0f4f8;
  --tp-card: #fff;
  --tp-text: #0f172a;
  --tp-muted: #64748b;
  --tp-primary: #2563eb;
  --tp-primary-dark: #1d4ed8;
  --tp-success: #059669;
  --tp-warn: #b45309;
  --tp-radius: 14px;
  --tp-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body.tp-body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--tp-bg);
  color: var(--tp-text);
  font-size: 17px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.tp-wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 32px;
  min-height: 100vh;
}

.tp-pwa-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.tp-pwa-install {
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: var(--tp-primary-dark);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
}

.tp-preview-notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}
.tp-preview-notice strong {
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tp-dev-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  line-height: 1.45;
}
.tp-dev-note strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 4px;
}
.tp-dev-note code {
  font-size: 0.85em;
  background: #e2e8f0;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.tp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.tp-header h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.tp-job-num-head {
  margin: 0;
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

.tp-page-label {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--tp-muted);
  font-weight: 600;
}

.tp-job-id-sub {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--tp-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.tp-header .tp-sub {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: var(--tp-muted);
  font-weight: 500;
}

.tp-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: var(--tp-card);
  color: var(--tp-text);
  text-decoration: none;
  box-shadow: var(--tp-shadow);
  font-size: 1.1rem;
}

.tp-card {
  background: var(--tp-card);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
  padding: 18px;
  margin-bottom: 14px;
}

.tp-flash {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-weight: 600;
  font-size: 0.95rem;
}
.tp-flash--ok { background: #d1fae5; color: #065f46; }
.tp-flash--warn { background: #fef3c7; color: #92400e; }
.tp-flash--err { background: #fee2e2; color: #991b1b; }

.tp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  background: var(--tp-primary);
  margin-top: 10px;
}
.tp-btn:hover { background: var(--tp-primary-dark); color: #fff; }
.tp-btn--secondary {
  background: #e2e8f0;
  color: var(--tp-text);
}
.tp-btn--secondary:hover { background: #cbd5e1; color: var(--tp-text); }
.tp-btn--ghost {
  background: transparent;
  color: var(--tp-primary);
  box-shadow: none;
  border: 2px solid var(--tp-primary);
}

.tp-stat-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.tp-dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.tp-timeoff {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 4px 0 12px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: var(--tp-radius);
  background: #f8fafc;
  font-size: 0.9rem;
  color: #334155;
}

.tp-timeoff__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.tp-timeoff__items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.tp-timeoff__item strong {
  color: #0f172a;
}

@media (min-width: 640px) {
  .tp-dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tp-dash-card--year {
    grid-column: 1 / -1;
  }
}

.tp-dash-card {
  background: var(--tp-card);
  border-radius: var(--tp-radius);
  box-shadow: var(--tp-shadow);
  padding: 16px 18px;
  border-left: 5px solid var(--tp-primary);
}

.tp-dash-card--week { border-left-color: #2563eb; }
.tp-dash-card--month { border-left-color: #059669; }
.tp-dash-card--year { border-left-color: #7c3aed; }

.tp-dash-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--tp-muted);
  margin-bottom: 6px;
}

.tp-dash-card__value {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--tp-text);
  margin-bottom: 10px;
}

.tp-dash-card__prior {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--tp-muted);
  padding-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.tp-dash-card__prior strong {
  color: var(--tp-text);
  font-size: 1rem;
}

.tp-dash-hint {
  margin: 0 0 16px 4px;
  font-size: 0.78rem;
}

.tp-week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}

.tp-week-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--tp-text);
  text-decoration: none;
  flex-shrink: 0;
}

.tp-week-nav__label {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.tp-week-nav__label strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.tp-week-nav__label span {
  display: block;
  font-size: 0.82rem;
  color: var(--tp-muted);
}

.tp-filter-form--week {
  margin-bottom: 0;
}

.tp-filter-form--week .tp-input {
  margin-bottom: 0;
}

.tp-stat {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #fff;
  border-radius: var(--tp-radius);
  padding: 18px;
  text-align: center;
}
.tp-stat--month { background: linear-gradient(135deg, #047857 0%, #059669 100%); }
.tp-stat--year { background: linear-gradient(135deg, #6d28d9 0%, #7c3aed 100%); }

.tp-stat__label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin-bottom: 6px;
}
.tp-stat__value {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}
.tp-stat__hint {
  font-size: 0.78rem;
  opacity: 0.85;
  margin-top: 6px;
}

.tp-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tp-nav-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 100px;
  padding: 16px;
  border-radius: var(--tp-radius);
  background: var(--tp-card);
  box-shadow: var(--tp-shadow);
  text-decoration: none;
  color: var(--tp-text);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
.tp-nav-tile i { font-size: 1.75rem; color: var(--tp-primary); }

.tp-label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.tp-input, .tp-select, .tp-textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  margin-bottom: 12px;
}
.tp-textarea { min-height: 120px; resize: vertical; }

.tp-job-row {
  display: block;
  padding: 16px;
  border-radius: var(--tp-radius);
  background: var(--tp-card);
  box-shadow: var(--tp-shadow);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
}
.tp-job-row__title { font-weight: 800; font-size: 1.05rem; margin: 0 0 4px; }
.tp-job-row__meta { color: var(--tp-muted); font-size: 0.88rem; margin: 0; }
.tp-job-row__pay {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--tp-success);
}

.tp-day {
  border-top: 1px solid #e2e8f0;
  padding-top: 14px;
  margin-top: 14px;
}
.tp-day:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.tp-day__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
}
.tp-day__title { font-weight: 800; margin: 0; font-size: 1rem; }
.tp-day__pay { font-weight: 800; color: var(--tp-success); font-size: 1.1rem; }

.tp-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  padding: 6px 0;
  color: var(--tp-muted);
}
.tp-line strong { color: var(--tp-text); }

.tp-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 16px 0;
}

.tp-muted { color: var(--tp-muted); font-size: 0.88rem; }

.tp-link { color: var(--tp-primary); font-weight: 700; text-decoration: none; }
.tp-link:hover { text-decoration: underline; }

.tp-filter-card { padding: 14px; }
.tp-filter-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.tp-filter-row { flex: 1 1 120px; min-width: 100px; }
.tp-filter-row--grow { flex: 2 1 140px; }
.tp-filter-btn { flex: 0 0 auto; min-height: 48px; margin-top: 0; width: auto; padding-left: 16px; padding-right: 16px; }

.tp-list-total {
    text-align: right;
    margin: 0 4px 4px;
    font-size: 0.95rem;
    color: var(--tp-muted);
}
.tp-list-total strong { color: var(--tp-success); font-size: 1.2rem; margin-left: 6px; }
.tp-list-total-hint { text-align: right; margin: 0 4px 12px; font-size: 0.8rem; }
.tp-table .tp-amount { font-weight: 800; color: var(--tp-success); font-size: 1.05rem; }

.tp-table-wrap {
    background: var(--tp-card);
    border-radius: var(--tp-radius);
    box-shadow: var(--tp-shadow);
    overflow-x: auto;
}
.tp-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tp-table th, .tp-table td { padding: 12px 10px; border-bottom: 1px solid #e2e8f0; text-align: left; vertical-align: top; }
.tp-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--tp-muted); background: #f8fafc; }
.tp-table .tp-num { text-align: right; white-space: nowrap; }
.tp-table-job { display: block; font-weight: 700; }
.tp-table-sub { display: block; font-size: 0.8rem; margin-top: 2px; }
.tp-empty { text-align: center; color: var(--tp-muted); padding: 24px !important; }

.tp-status {
    display: inline-block; padding: 4px 8px; border-radius: 6px;
    font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
}
.tp-status--approved { background: #dcfce7; color: #166534; }
.tp-status--pending { background: #fee2e2; color: #991b1b; }
.tp-status--partial { background: #fef3c7; color: #92400e; }

.tp-pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.tp-pay-box { border-radius: 12px; padding: 14px; text-align: center; }
.tp-pay-box--ok { background: #ecfdf5; border: 2px solid #6ee7b7; }
.tp-pay-box--pending { background: #fffbeb; border: 2px solid #fcd34d; }
.tp-pay-box__label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; color: var(--tp-muted); }
.tp-pay-box__value { font-size: 1.35rem; font-weight: 800; margin-top: 4px; }
.tp-section-title { font-size: 1rem; margin: 20px 0 10px 4px; }
.tp-login-brand {
  text-align: center;
  margin-bottom: 24px;
}
.tp-login-brand i {
  font-size: 3rem;
  color: var(--tp-primary);
  margin-bottom: 8px;
}
.tp-login-brand h1 {
  margin: 0;
  font-size: 1.5rem;
}
.tp-login-alt {
  padding-top: 12px;
  padding-bottom: 12px;
}
.tp-login-alt > summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
}
.tp-login-alt > summary::-webkit-details-marker { display: none; }
.tp-login-alt[open] {
  padding-bottom: 16px;
}
.tp-sms-picks {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}
.tp-sms-pick {
  display: block;
  cursor: pointer;
}
.tp-sms-pick-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tp-sms-pick-face {
  display: block;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 14px 12px;
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  background: #f8fafc;
  color: var(--tp-text);
}
.tp-sms-pick-input:checked + .tp-sms-pick-face,
.tp-sms-pick-input:focus-visible + .tp-sms-pick-face {
  border-color: var(--tp-primary);
  background: #eff6ff;
  color: var(--tp-primary-dark);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
