/* ============================================================
   Club Transactions — mobile-first stylesheet
   ============================================================ */

:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --brand-soft: #dbeafe;
  --green: #15803d;
  --green-soft: #dcfce7;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --red: #b91c1c;
  --red-soft: #fee2e2;
  --purple: #6d28d9;
  --purple-soft: #ede9fe;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05);
  --shadow-lg: 0 10px 40px rgba(15, 23, 42, .18);
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --surface: #131c2e;
    --surface-2: #1a2338;
    --border: #263248;
    --border-strong: #35425c;
    --text: #e8eefc;
    --text-muted: #94a3b8;
    --text-faint: #64748b;
    --brand: #3b82f6;
    --brand-hover: #60a5fa;
    --brand-soft: #1e3a8a;
    --green: #4ade80;
    --green-soft: #14532d;
    --amber: #fbbf24;
    --amber-soft: #78350f;
    --red: #f87171;
    --red-soft: #7f1d1d;
    --purple: #a78bfa;
    --purple-soft: #4c1d95;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 12px rgba(0, 0, 0, .25);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

body { overscroll-behavior-y: contain; }

/* ---------- Loading ---------- */
.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Layout ---------- */
.app-shell {
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 12px);
}

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 12px;
}
.topbar-title { font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.topbar-sub { font-size: .76rem; color: var(--text-muted); margin-top: 1px; }
.topbar-spacer { flex: 1; }

.container { padding: 16px; max-width: 780px; margin: 0 auto; }
.container.wide { max-width: 1100px; }

.section { margin-bottom: 22px; }
.section-title {
  font-size: .74rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-muted); margin: 0 0 10px 2px;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }
.card-tight { padding: 12px 14px; }

/* ---------- Field cards ---------- */
.field-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-grid { grid-template-columns: 1fr 1fr; } }

.field-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.field-card.busy { border-left-color: var(--green); background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.field-card.free { border-left-color: var(--border-strong); }
.field-card.inactive { opacity: .55; }

.field-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.field-name { font-size: 1.12rem; font-weight: 700; letter-spacing: -.01em; }
.field-meta { font-size: .82rem; color: var(--text-muted); margin-top: 3px; }

.timer {
  font-variant-numeric: tabular-nums;
  font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em;
  margin: 12px 0 4px; color: var(--green);
}
.timer-sub { font-size: .8rem; color: var(--text-muted); margin-bottom: 12px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .72rem; font-weight: 700; padding: 4px 9px;
  border-radius: 999px; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-grey { background: var(--surface-2); color: var(--text-muted); border: 1px solid var(--border); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--brand-soft); color: var(--brand); }
.badge-purple { background: var(--purple-soft); color: var(--purple); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot-pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 1rem; font-weight: 600;
  padding: 13px 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  background: var(--surface-2); color: var(--text);
  transition: filter .12s, transform .06s, background .12s;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}
.btn:active:not(:disabled) { transform: scale(.985); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--brand-hover); }
.btn-success { background: var(--green); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-success { color: #06240f; } }
.btn-danger { background: var(--red); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-danger { color: #2b0707; } }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn-sm { padding: 8px 13px; font-size: .86rem; }
.btn-lg { padding: 16px 20px; font-size: 1.06rem; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1; min-width: 130px; }

/* ---------- Forms ---------- */
.field { margin-bottom: 15px; }
.label {
  display: block; font-size: .82rem; font-weight: 600;
  color: var(--text-muted); margin-bottom: 6px;
}
.label .req { color: var(--red); }
.input, .select, .textarea {
  width: 100%; font-family: inherit; font-size: 1rem;
  padding: 12px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text);
  -webkit-appearance: none; appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent);
}
.textarea { min-height: 76px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px;
}
.input-lg { font-size: 1.6rem; font-weight: 700; padding: 15px 14px; text-align: center; font-variant-numeric: tabular-nums; }
.hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Segmented control */
.segment { display: grid; gap: 8px; grid-auto-flow: column; grid-auto-columns: 1fr; }
.segment-btn {
  font-family: inherit; font-size: .92rem; font-weight: 600;
  padding: 12px 8px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong); background: var(--surface);
  color: var(--text-muted); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.segment-btn[aria-pressed="true"] {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand);
}
@media (prefers-color-scheme: dark) {
  .segment-btn[aria-pressed="true"] { color: #fff; }
}

/* File input */
.file-drop {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm);
  padding: 14px; cursor: pointer; background: var(--surface-2);
}
.file-drop input { display: none; }
.file-preview { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* ---------- Stats ---------- */
.stat-grid { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
/* On narrow phones the hero takes the full width and the two smaller
   figures sit side by side underneath, instead of leaving an empty cell. */
@media (max-width: 520px) {
  .stat-grid-3 { grid-template-columns: 1fr 1fr; }
  .stat-grid-3 > .stat-hero { grid-column: 1 / -1; }
}

.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow);
}
.stat-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
}
.stat-value {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -.025em;
  margin-top: 5px; font-variant-numeric: tabular-nums;
}
.stat-value.sm { font-size: 1.2rem; }
.stat-sub { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }
.stat-hero { background: var(--brand); border-color: var(--brand); color: #fff; }
.stat-hero .stat-label, .stat-hero .stat-sub { color: rgba(255,255,255,.85); }

/* ---------- Lists / tables ---------- */
.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
}
.list-item-main { flex: 1; min-width: 0; }
.list-item-title { font-weight: 600; font-size: .95rem; }
.list-item-sub { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.list-item-amount { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

.breakdown-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--border);
}
.breakdown-row:last-child { border-bottom: none; }
.breakdown-label { font-weight: 600; }
.breakdown-sub { font-size: .78rem; color: var(--text-muted); font-weight: 400; }
.breakdown-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.breakdown-total {
  border-top: 2px solid var(--border-strong); margin-top: 6px; padding-top: 13px;
  font-size: 1.12rem;
}

.empty {
  text-align: center; padding: 34px 18px; color: var(--text-muted);
  border: 1.5px dashed var(--border); border-radius: var(--radius); background: var(--surface-2);
}
.empty-icon { font-size: 2rem; margin-bottom: 8px; opacity: .7; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex; background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -1px 12px rgba(15, 23, 42, .07);
}
.nav-btn {
  flex: 1; border: none; background: none; cursor: pointer;
  font-family: inherit; font-size: .68rem; font-weight: 600;
  color: var(--text-faint); padding: 9px 2px 8px;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  height: var(--nav-h); -webkit-tap-highlight-color: transparent;
}
.nav-btn svg { width: 22px; height: 22px; stroke-width: 1.9; }
.nav-btn[aria-current="page"] { color: var(--brand); }
.nav-badge {
  position: absolute; transform: translate(15px, -6px);
  background: var(--red); color: #fff; font-size: .58rem; font-weight: 800;
  min-width: 16px; height: 16px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, .55);
  display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(2px);
  animation: fade .15s ease;
}
@media (min-width: 620px) { .modal-backdrop { align-items: center; } }
@keyframes fade { from { opacity: 0; } }

.modal {
  background: var(--surface); width: 100%; max-width: 560px;
  border-radius: 20px 20px 0 0;
  max-height: 92vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideup .22s cubic-bezier(.2, .8, .3, 1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 620px) { .modal { border-radius: var(--radius); animation: fade .15s ease; } }
@keyframes slideup { from { transform: translateY(28px); opacity: .6; } }

.modal-head {
  position: sticky; top: 0; background: var(--surface); z-index: 2;
  padding: 18px 18px 12px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 12px;
}
.modal-title { font-size: 1.16rem; font-weight: 700; letter-spacing: -.015em; }
.modal-sub { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.modal-body { padding: 18px; }
.modal-foot {
  padding: 14px 18px 18px; border-top: 1px solid var(--border);
  display: flex; gap: 10px; position: sticky; bottom: 0; background: var(--surface);
}
.modal-foot .btn { flex: 1; }
.icon-btn {
  border: none; background: var(--surface-2); color: var(--text-muted);
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ---------- Toasts ---------- */
.toast-host {
  position: fixed; z-index: 200; left: 12px; right: 12px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.toast {
  max-width: 520px; width: 100%;
  background: var(--text); color: var(--bg);
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: toastin .2s cubic-bezier(.2,.8,.3,1);
  display: flex; align-items: flex-start; gap: 9px;
}
@keyframes toastin { from { transform: translateY(-14px); opacity: 0; } }
.toast-error { background: var(--red); color: #fff; }
.toast-success { background: var(--green); color: #052e13; }
@media (prefers-color-scheme: dark) { .toast-success { color: #04240e; } }

/* ---------- Login ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 18px;
}
.login-card { width: 100%; max-width: 400px; }
.login-logo { font-size: 2.6rem; text-align: center; margin-bottom: 6px; }
.login-title { font-size: 1.5rem; font-weight: 800; text-align: center; letter-spacing: -.02em; }
.login-sub { text-align: center; color: var(--text-muted); font-size: .88rem; margin: 4px 0 22px; }

/* ---------- Misc ---------- */
.alert {
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: .88rem; margin-bottom: 14px; border: 1px solid;
}
.alert-warn { background: var(--amber-soft); border-color: var(--amber); color: var(--amber); }
.alert-error { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.alert-info { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
@media (prefers-color-scheme: dark) {
  .alert-warn, .alert-error, .alert-info { color: var(--text); }
}

.divider { height: 1px; background: var(--border); margin: 18px 0; border: none; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: .85rem; }
.text-xs { font-size: .76rem; }
.mono { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 10px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gap-2 { gap: 10px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
table.data { width: 100%; border-collapse: collapse; font-size: .87rem; }
table.data th {
  text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td { padding: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data tr:last-child td { border-bottom: none; }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

.link-btn {
  background: none; border: none; color: var(--brand); font-family: inherit;
  font-size: .85rem; font-weight: 600; cursor: pointer; padding: 4px; text-decoration: underline;
}

.photo-thumb {
  width: 100%; max-width: 260px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); display: block; margin-top: 8px;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.3s infinite;
  border-radius: var(--radius-sm); height: 74px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Camera capture ---------- */
.camera-stage {
  position: relative;
  background: #000;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  /* Keep the shutter button on screen without scrolling. */
  max-height: 46vh;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.camera-stage video,
.camera-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.camera-status {
  color: #cbd5e1;
  font-size: .9rem;
  text-align: center;
  padding: 24px 18px;
}
.camera-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(15,23,42,.72); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: 5px 9px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 5px;
}
.shutter {
  width: 66px; height: 66px; border-radius: 50%;
  border: 4px solid var(--border-strong); background: var(--brand);
  cursor: pointer; margin: 14px auto 0; display: block;
  -webkit-tap-highlight-color: transparent;
}
.shutter:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Cleaning ---------- */
.slot-grid { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.slot-chip {
  font-size: .74rem; font-weight: 700; padding: 5px 9px;
  border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-muted);
  font-variant-numeric: tabular-nums; cursor: default;
}
.slot-chip.done    { background: var(--green-soft);  color: var(--green);  border-color: transparent; }
.slot-chip.late    { background: var(--amber-soft);  color: var(--amber);  border-color: transparent; }
.slot-chip.missed  { background: var(--red-soft);    color: var(--red);    border-color: transparent; }
.slot-chip.due     { background: var(--brand);       color: #fff;          border-color: transparent; }
.slot-chip.tappable { cursor: pointer; }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-cell {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface-2); aspect-ratio: 1;
  cursor: pointer;
}
.photo-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-cell .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(15,23,42,.85));
  color: #fff; font-size: .68rem; font-weight: 700; padding: 12px 6px 5px;
  font-variant-numeric: tabular-nums;
}
.photo-cell.empty {
  display: flex; align-items: center; justify-content: center;
  border-style: dashed; color: var(--text-faint);
  font-size: .7rem; font-weight: 700; text-align: center; cursor: default;
}
.lightbox {
  position: fixed; inset: 0; z-index: 150; background: rgba(15,23,42,.92);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--radius-sm); }
.lightbox-cap { color: #e2e8f0; text-align: center; font-size: .85rem; margin-top: 12px; }

/* ---------- Padelfinder call list ---------- */
.booking-card { margin-top: 10px; }
.booking-card + .booking-card { margin-top: 10px; }
.booking-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}
.booking-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
}
.booking-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The dial link is the biggest target on the card — it is what admins tap most. */
.booking-call {
  margin-top: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  text-decoration: none;
}
@media (max-width: 400px) {
  .booking-head { grid-template-columns: auto 1fr; }
  .booking-head > .badge { grid-column: 2; justify-self: start; }
}
.input-sm { padding: 8px 11px; font-size: .84rem; }
.call-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px;
  line-height: 1.1;
}
.call-btn-icon { font-size: 1.05rem; }
.call-btn-label { font-size: .72rem; font-weight: 600; }
.call-btn-icon { font-weight: 800; }
.call-btn-icon.tone-green { color: var(--green); }
.call-btn-icon.tone-red { color: var(--red); }
.call-btn-icon.tone-grey { color: var(--text-muted); }
.call-btn-icon.tone-amber { color: var(--amber); }

/* Round header buttons size their own icon; without this the SVG falls back
   to its 300x150 default and disappears. */
.icon-btn svg { width: 19px; height: 19px; stroke-width: 1.9; }
.icon-btn[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }

/* ---------- Working hours ---------- */
.sched-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 10px;
}
.sched-card > summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.sched-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.sched-day { font-weight: 600; font-size: .82rem; color: var(--text-muted); }
.sched-times {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
}
/* A bare <input type="time"> sizes itself to its widest possible content and
   will happily shove the rest of the row off a phone screen. */
.sched-times .input {
  min-width: 0;
  width: 100%;
  font-size: .78rem;
  padding: 7px 4px;
  text-align: center;
}
.sched-dash { color: var(--text-muted); font-size: .75rem; }
.sched-row > .btn { padding: 7px 9px; font-size: .78rem; white-space: nowrap; }

/* Owner supplies row: four controls will not sit beside the name on a phone. */
@media (max-width: 560px) {
  .supply-row { flex-wrap: wrap; }
  .supply-row .list-item-main { flex: 1 0 100%; }
  .supply-row > .flex { width: 100%; margin-top: 8px; }
  .supply-row > .flex > .btn { flex: 1; }
}

/* ---------- Full-screen list ---------- */
.fulllist {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.fulllist-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.fulllist-title { font-weight: 700; font-size: 1.02rem; }
.fulllist-sub { font-size: .8rem; color: var(--text-muted); }
.fulllist-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px calc(24px + env(safe-area-inset-bottom, 0px));
}
.fulllist-status {
  text-align: center;
  padding: 16px 0 8px;
  font-size: .82rem;
  color: var(--text-muted);
}
body.no-scroll { overflow: hidden; }
