/* TattooNOW Register — mockup styles (v1) */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;600;700&family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --action: #fa9101;
  --action-2: #f73810;
  --action-gradient: linear-gradient(139deg, #faa101 1%, #f73810 100%);
  --teal: #81e6d9;
  --green: #5dd39e;
  --red: #f87171;
  --amber: #fbbf24;
  --bg-deep: #0a0a0a;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --bg-elev: #1f1f1f;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --text-primary: #fafafa;
  --text-secondary: #999;
  --text-tertiary: #6b6b6b;
  --shadow-card: 0 1px 0 rgba(255,255,255,.02), 0 8px 24px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Roboto', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.4em;
  color: var(--text-primary);
}
h1 { font-size: 28px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); font-weight: 500; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ── Top nav ─────────────────────────────── */
.tn-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 16px;
  height: 48px;
  font-size: 13px;
}
.tn-nav__brand {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  margin-right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tn-nav__brand .dot {
  width: 8px; height: 8px;
  background: var(--action-gradient);
  border-radius: 50%;
}
.tn-nav a {
  color: var(--text-secondary);
  padding: 0 12px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
  font-weight: 500;
}
.tn-nav a:hover { color: var(--text-primary); }
.tn-nav a.active {
  color: var(--action);
  border-bottom-color: var(--action);
}
.tn-nav__spacer { flex: 1; }
.tn-nav__loc {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  border-left: 1px solid var(--border);
  height: 48px;
  font-size: 12px;
  color: var(--text-secondary);
}
.tn-nav__loc strong { color: var(--text-primary); font-weight: 500; }

/* ── Layout ─────────────────────────────── */
.tn-shell { max-width: 1280px; margin: 0 auto; padding: 24px; }
.tn-shell--wide { max-width: 1440px; }
.page-head {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 24px; gap: 16px; flex-wrap: wrap;
}
.page-head__title { display: flex; flex-direction: column; gap: 4px; }
.page-head__sub { color: var(--text-secondary); font-size: 13px; }

.row { display: flex; gap: 16px; }
.row--wrap { flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 16px; flex: 1 1 0; min-width: 0; }

/* ── Cards ─────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.card--accent { border-color: rgba(250,145,1,.35); }
.card--good { border-color: rgba(93,211,158,.35); }
.card--bad { border-color: rgba(248,113,113,.4); }
.card__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px; gap: 12px;
}
.card__head h2, .card__head h3 { margin: 0; }
.card__sub { color: var(--text-secondary); font-size: 12px; }

/* Stat tile */
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 0;
}
.stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); font-weight: 500; }
.stat__value { font-family: 'Roboto Slab', serif; font-size: 22px; font-weight: 600; color: var(--text-primary); letter-spacing: -.02em; }
.stat__trend { font-size: 12px; color: var(--text-tertiary); }
.stat--accent .stat__value { color: var(--action); }
.stat--good .stat__value { color: var(--green); }
.stat--bad .stat__value { color: var(--red); }

/* Grid */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); } }

/* ── Source badges ─────────────────────────────── */
.src {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .06em;
  border: 1px solid;
  white-space: nowrap;
}
.src--ghl { color: #a78bfa; border-color: rgba(167,139,250,.35); background: rgba(167,139,250,.08); }
.src--db { color: var(--teal); border-color: rgba(129,230,217,.35); background: rgba(129,230,217,.08); }
.src--hw { color: var(--amber); border-color: rgba(251,191,36,.35); background: rgba(251,191,36,.08); }
.src--legacy { color: var(--text-secondary); border-color: var(--border-strong); background: rgba(255,255,255,.03); }
.src--live { color: var(--green); border-color: rgba(93,211,158,.35); background: rgba(93,211,158,.08); }

.legacy-flag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--amber);
  border: 1px dashed rgba(251,191,36,.4);
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text-primary);
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { background: var(--bg-card-hover); }
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--action-gradient);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(247,56,16,.22);
}
.btn--primary:hover { filter: brightness(1.06); }
.btn--ghost { background: transparent; }
.btn--sm { padding: 5px 10px; font-size: 12px; border-radius: 6px; }
.btn--lg { padding: 13px 22px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--danger { color: var(--red); border-color: rgba(248,113,113,.35); }

/* ── Forms ─────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-secondary); font-weight: 500; }
.input, select, textarea {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 6px;
  padding: 8px 10px;
  font: inherit;
  width: 100%;
  outline: none;
  transition: border-color .12s;
}
.input:focus, select:focus, textarea:focus { border-color: var(--action); }
.input--lg { padding: 12px 14px; font-size: 16px; }
.input--mono { font-family: 'JetBrains Mono', monospace; }

/* ── Tables ─────────────────────────────── */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.tbl th {
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky; top: 48px; z-index: 1;
}
.tbl td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.tbl tr:hover td { background: var(--bg-card-hover); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .muted { color: var(--text-secondary); }
/* Wrapper for tables that scroll INSIDE their own container (e.g. the
   tickets drilldown on reports-daily). The default `.tbl th` rule sticks
   headers at top:48px to clear the global tn-nav for page-scrolled
   tables; inside an overflow container the sticky reference is the
   container itself, so headers must stick at top:0 — otherwise data
   rows scroll up into a 48px gap above the header and the header
   visually "covers" the row that's just slid under it. */
.tbl-scroll { max-height: 480px; overflow-y: auto; }
.tbl-scroll .tbl th { top: 0; }

/* ── Pills + status ─────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text-secondary);
}
.pill--good { color: var(--green); border-color: rgba(93,211,158,.4); background: rgba(93,211,158,.08); }
.pill--bad { color: var(--red); border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); }
.pill--warn { color: var(--amber); border-color: rgba(251,191,36,.4); background: rgba(251,191,36,.08); }
.pill--accent { color: var(--action); border-color: rgba(250,145,1,.4); background: rgba(250,145,1,.08); }

/* ── Footer legend ─────────────────────────────── */
.tn-legend {
  margin: 48px auto 0;
  max-width: 1280px;
  padding: 16px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-secondary);
}
.tn-legend h4 { color: var(--text-secondary); margin: 0 0 8px; font-size: 11px; }
.tn-legend ul { margin: 0; padding: 0 0 0 16px; }
.tn-legend li { margin-bottom: 3px; }
.tn-legend strong { color: var(--text-primary); font-weight: 500; }

/* ── Misc ─────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 12px 0; border: none; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 13px; }
.kv .k { color: var(--text-secondary); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; align-self: center; }
.kv .v { color: var(--text-primary); }

.scrollbox { max-height: 360px; overflow: auto; }

/* number pad */
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.numpad button {
  padding: 14px 0;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  border-radius: 8px;
  font-family: 'Roboto Slab', serif;
  font-size: 18px;
  cursor: pointer;
}
.numpad button:hover { background: var(--bg-card-hover); }

.tag { display: inline-block; padding: 1px 7px; font-size: 11px; border-radius: 4px; background: var(--bg-elev); color: var(--text-secondary); margin-right: 4px; }
