/* ============================================================
   Werkklok — app.css
   Mobile-first PWA, lichte kleuren, Plus Jakarta Sans
   Accent: #2560E8
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

/* ── Reset & tokens ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --accent:       #2560E8;
  --accent-lt:    #EEF3FD;
  --accent-dark:  #1a47c0;
  --green:        #16a34a;
  --green-lt:     #dcfce7;
  --red:          #dc2626;
  --red-lt:       #fee2e2;
  --orange:       #ea580c;
  --orange-lt:    #fff0e8;

  --bg:           #F5F6FA;
  --surface:      #FFFFFF;
  --surface2:     #F0F2F8;
  --border:       #E4E7EF;
  --border2:      #CDD2E0;

  --txt:          #111827;
  --txt-2:        #4B5563;
  --txt-3:        #9CA3AF;

  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;

  --shadow:       0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-sm:    0 1px 3px rgba(0,0,0,.06);

  --nav-h:        64px;
  --safe-bottom:  env(safe-area-inset-bottom, 0px);
  --safe-top:     env(safe-area-inset-top, 0px);

  font-size: 16px;
}

html {
  height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

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

img { max-width: 100%; display: block; }

/* ── Auth pages ──────────────────────────────────────────── */
.auth-body {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(24px + var(--safe-bottom));
  background: var(--bg);
}

.auth-wrap {
  width: 100%;
  max-width: 400px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.brand-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: #fff;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -.3px;
}

.auth-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 15px;
  color: var(--txt-2);
  margin-bottom: 28px;
}

.auth-form { display: flex; flex-direction: column; gap: 16px; }

.auth-switch {
  margin-top: 24px;
  font-size: 14px;
  color: var(--txt-2);
  text-align: center;
}

/* ── Form fields ─────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 6px; }

.field-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--txt-2);
  letter-spacing: .1px;
}

.field-inp,
.field-sel,
.field-ta {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  color: var(--txt);
  outline: none;
  transition: border-color .15s;
  -webkit-appearance: none;
}

.field-inp:focus,
.field-sel:focus,
.field-ta:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,96,232,.12);
}

.field-ta { resize: vertical; min-height: 80px; }

.field-sel {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%234B5563' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
  cursor: pointer;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-main {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}

.btn-main:active { background: var(--accent-dark); transform: scale(.98); }

.btn-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px;
  background: var(--surface);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-outline:active { background: var(--accent-lt); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--txt-2);
  cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-ghost:active { background: var(--surface2); }

.btn-danger {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--red);
  cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}

.btn-danger:active { background: var(--red-lt); }

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

/* ── Alerts ──────────────────────────────────────────────── */
.alert-error {
  padding: 12px 14px;
  background: var(--red-lt);
  color: var(--red);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

.alert-success {
  padding: 12px 14px;
  background: var(--green-lt);
  color: var(--green);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 16px;
}

/* ── App shell ───────────────────────────────────────────── */
.app-body {
  min-height: 100svh;
  padding-top: var(--safe-top);
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 24px);
  background: var(--bg);
}

/* ── Top bar ─────────────────────────────────────────────── */
.top-bar {
  position: sticky;
  top: var(--safe-top);
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -.2px;
}

.top-bar-brand .brand-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 16px;
}

.top-bar-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -.2px;
}

.top-bar-actions { display: flex; gap: 4px; }

/* ── Bottom nav ──────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--surface);
  border-top: 1px solid var(--border);
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: flex;
  align-items: flex-start;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 0 0;
  color: var(--txt-3);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.nav-item svg { width: 24px; height: 24px; stroke-width: 1.8; }

.nav-item.active { color: var(--accent); }

.nav-item:hover { color: var(--accent); }

/* ── Page content ────────────────────────────────────────── */
.page { padding: 16px; max-width: 600px; margin: 0 auto; }

.page-section { margin-bottom: 24px; }

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--txt-3);
  margin-bottom: 10px;
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-body { padding: 16px; }

.card-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
}

/* ── Timer card ──────────────────────────────────────────── */
.timer-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
}

.timer-state-idle .timer-status-label { color: var(--txt-3); }
.timer-state-running .timer-status-label { color: var(--green); }

.timer-status-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  margin-bottom: 6px;
}

.timer-client-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -.3px;
  margin-bottom: 4px;
}

.timer-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px;
  color: var(--txt-2);
  margin-bottom: 20px;
}

.timer-display {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -2px;
  color: var(--txt);
  font-variant-numeric: tabular-nums;
  margin-bottom: 24px;
  line-height: 1;
}

.timer-display.running { color: var(--accent); }

.timer-controls { display: flex; flex-direction: column; gap: 12px; }

.timer-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-timer-start {
  width: 100%;
  padding: 16px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}

.btn-timer-start:active { background: var(--accent-dark); transform: scale(.98); }

.btn-timer-stop {
  width: 100%;
  padding: 16px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}

.btn-timer-stop:active { background: #b91c1c; transform: scale(.98); }

/* ── Entry list ──────────────────────────────────────────── */
.entry-list { display: flex; flex-direction: column; gap: 1px; }

.entry-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  transition: background .1s;
}

.entry-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.entry-item:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.entry-item:only-child  { border-radius: var(--radius); }

.entry-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--accent-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.entry-icon.reizen  { background: var(--orange-lt); }
.entry-icon.overig  { background: var(--surface2); }

.entry-meta { flex: 1; min-width: 0; }

.entry-client {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-desc {
  font-size: 12px;
  color: var(--txt-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.entry-right { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }

.entry-duration {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
  font-variant-numeric: tabular-nums;
}

.entry-time {
  font-size: 11px;
  color: var(--txt-3);
}

.entry-delete-btn {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--txt-3);
  border-radius: 6px;
  transition: background .1s, color .1s;
  -webkit-tap-highlight-color: transparent;
}

.entry-delete-btn:hover, .entry-delete-btn:active { background: var(--red-lt); color: var(--red); }

/* ── Stat row ────────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 12px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--txt-3);
}

.stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--txt);
  letter-spacing: -.5px;
  line-height: 1;
}

.stat-value.accent { color: var(--accent); }
.stat-value.green  { color: var(--green); }
.stat-value.orange { color: var(--orange); }

/* ── Client list ─────────────────────────────────────────── */
.client-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .1s;
  -webkit-tap-highlight-color: transparent;
}

.client-item:last-child { border-bottom: none; }
.client-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.client-item:last-child  { border-radius: 0 0 var(--radius) var(--radius); }
.client-item:only-child  { border-radius: var(--radius); }
.client-item:active { background: var(--surface2); }

.client-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--accent-lt);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.client-info { flex: 1; min-width: 0; }

.client-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
}

.client-sub {
  font-size: 13px;
  color: var(--txt-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-arrow { color: var(--border2); }

/* ── Week overview ───────────────────────────────────────── */
.week-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.week-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--txt);
}

.week-day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 20px;
}

.week-day {
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.week-day.today {
  background: var(--accent-lt);
  border: 1.5px solid var(--accent);
}

.week-day-name {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--txt-3);
  letter-spacing: .4px;
  margin-bottom: 4px;
}

.week-day-hours {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
}

.week-day-hours.zero { color: var(--txt-3); }

.week-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.week-row:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.week-row:last-child  { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.week-row:only-child  { border-radius: var(--radius); border-bottom: none; }

.week-row-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.week-row-dot.reizen { background: var(--orange); }
.week-row-dot.overig { background: var(--txt-3); }

.week-row-info { flex: 1; }

.week-row-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
}

.week-row-sub {
  font-size: 12px;
  color: var(--txt-3);
}

.week-row-dur {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
}

/* ── Invoice ─────────────────────────────────────────────── */
.invoice-list { display: flex; flex-direction: column; gap: 1px; }

.invoice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background .1s;
  -webkit-tap-highlight-color: transparent;
}

.invoice-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.invoice-item:last-child  { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.invoice-item:only-child  { border-radius: var(--radius); border-bottom: none; }
.invoice-item:active { background: var(--surface2); }

.invoice-nr {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.invoice-meta { flex: 1; }

.invoice-client {
  font-size: 14px;
  font-weight: 600;
  color: var(--txt);
}

.invoice-date { font-size: 12px; color: var(--txt-3); }

.invoice-amount {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
}

.badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.badge-sent    { background: var(--accent-lt); color: var(--accent); }
.badge-paid    { background: var(--green-lt);  color: var(--green); }
.badge-concept { background: var(--surface2);  color: var(--txt-3); }

/* ── Receipt items ───────────────────────────────────────── */
.receipt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.receipt-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.receipt-item:last-child  { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.receipt-item:only-child  { border-radius: var(--radius); border-bottom: none; }

.receipt-name { flex: 1; font-size: 14px; font-weight: 500; color: var(--txt); }
.receipt-client-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-lt);
  padding: 2px 8px;
  border-radius: 20px;
}

.receipt-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
  min-width: 56px;
  text-align: right;
}

/* ── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--txt-3);
}

.empty-state .empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty-state .empty-title { font-size: 16px; font-weight: 600; color: var(--txt-2); margin-bottom: 6px; }
.empty-state .empty-sub { font-size: 14px; }

/* ── Modal / Sheet ───────────────────────────────────────── */
.sheet-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

.sheet-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 0 0 calc(16px + var(--safe-bottom));
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(.32,0,.67,0);
  max-height: 90svh;
  overflow-y: auto;
}

.sheet-overlay.open .sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 36px; height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 12px auto 20px;
}

.sheet-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--txt);
  padding: 0 20px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.sheet-body { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

/* ── FAB (floating action button) ───────────────────────── */
.fab {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  right: 20px;
  z-index: 150;
  width: 56px; height: 56px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,96,232,.35);
  transition: transform .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}

.fab:active { transform: scale(.93); background: var(--accent-dark); }

/* ── Print (invoice) ─────────────────────────────────────── */
@media print {
  .no-print { display: none !important; }
  .bottom-nav, .top-bar, .fab { display: none !important; }

  body { background: #fff; font-size: 12pt; }

  .print-invoice { max-width: 100%; padding: 0; }

  .invoice-print-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    border-bottom: 2px solid #111827;
    padding-bottom: 20px;
  }

  .invoice-print-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
  }

  .invoice-print-table th {
    background: #f5f6fa;
    padding: 8px 12px;
    text-align: left;
    font-size: 11pt;
    border-bottom: 1px solid #ddd;
  }

  .invoice-print-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    font-size: 11pt;
  }

  .invoice-print-total {
    text-align: right;
    font-size: 16pt;
    font-weight: 700;
  }
}

/* ── Utilities ───────────────────────────────────────────── */
.mt-4  { margin-top:  4px; }
.mt-8  { margin-top:  8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-4  { margin-bottom:  4px; }
.mb-8  { margin-bottom:  8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-sm     { font-size: 13px; }
.text-xs     { font-size: 12px; }
.text-muted  { color: var(--txt-3); }
.text-accent { color: var(--accent); }
.fw-600      { font-weight: 600; }
.fw-700      { font-weight: 700; }

.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8       { gap: 8px; }
.gap-12      { gap: 12px; }
.flex-1      { flex: 1; }

.hidden { display: none !important; }

/* ── Loading spinner ─────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast notification ──────────────────────────────────── */
#toast {
  position: fixed;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--txt);
  color: #fff;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 999;
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── No clients notice ───────────────────────────────────── */
.notice {
  padding: 14px 16px;
  background: var(--accent-lt);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}
