/* Palette pulled from the WashFlow mark: navy washer + bright blue "Flow" + a
   pale cyan water accent. Every color is a variable so dark mode (below) is
   just a second set of the same names. */
:root {
  --wf-primary: #1e88e5;
  --wf-primary-strong: #123a75;
  --wf-primary-light: #e8f3fd;
  --wf-accent: #5bc8f2;

  --wf-bg: #f3f6fb;
  --wf-bg-2: #eaf1fb;
  --wf-surface: #ffffff;
  --wf-surface-2: #fbfdff;
  --wf-ink: #16223a;
  --wf-muted: #64748b;
  --wf-border: #dde6f0;

  --wf-sheen: rgba(255, 255, 255, 0.6);
  --wf-glass: rgba(255, 255, 255, 0.72);

  --wf-radius: 18px;
  --wf-shadow-sm: 0 1px 2px rgba(18, 33, 66, 0.05);
  --wf-shadow: 0 1px 2px rgba(18, 33, 66, 0.04), 0 10px 28px rgba(18, 33, 66, 0.07);
  --wf-shadow-hover: 0 6px 14px rgba(18, 33, 66, 0.08), 0 20px 44px rgba(18, 33, 66, 0.12);

  color-scheme: light;
}

:root[data-theme="dark"] {
  --wf-primary: #4fa8f0;
  --wf-primary-strong: #8fd0fb;
  --wf-primary-light: rgba(79, 168, 240, 0.14);
  --wf-accent: #5bc8f2;

  --wf-bg: #0e1520;
  --wf-bg-2: #121b29;
  --wf-surface: #161f2c;
  --wf-surface-2: #1a2433;
  --wf-ink: #e7edf6;
  --wf-muted: #93a1b8;
  --wf-border: #263243;

  --wf-sheen: rgba(255, 255, 255, 0.06);
  --wf-glass: rgba(22, 31, 44, 0.72);

  --wf-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --wf-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 10px 28px rgba(0, 0, 0, 0.32);
  --wf-shadow-hover: 0 6px 14px rgba(0, 0, 0, 0.28), 0 24px 48px rgba(0, 0, 0, 0.4);

  color-scheme: dark;
}

* {
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 12% -10%, color-mix(in srgb, var(--wf-primary) 10%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--wf-accent) 12%, transparent) 0%, transparent 40%),
    linear-gradient(180deg, var(--wf-bg-2) 0%, var(--wf-bg) 320px, var(--wf-bg) 100%);
  background-attachment: fixed;
  color: var(--wf-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: var(--wf-primary);
}

::selection {
  background: var(--wf-primary);
  color: #fff;
}

/* ---------- Navbar (glass) ---------- */
.navbar-wf {
  background: var(--wf-glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--wf-border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, var(--wf-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1030;
}

:root[data-theme="dark"] .navbar-wf {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, var(--wf-shadow-sm);
}

.navbar-wf .navbar-brand {
  font-weight: 700;
  color: var(--wf-primary-strong) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
}

.navbar-wf .navbar-brand img {
  height: 30px;
  width: 30px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 2px;
  box-shadow: 0 0 0 1px var(--wf-border), 0 2px 6px rgba(18, 33, 66, 0.12);
}

.navbar-wf .nav-link {
  color: var(--wf-ink);
  font-weight: 500;
  border-radius: 8px;
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
}

.navbar-wf .nav-link.active,
.navbar-wf .nav-link:hover {
  color: var(--wf-primary);
  background: var(--wf-primary-light);
}

.theme-toggle {
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  color: var(--wf-ink);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--wf-shadow-sm);
}

.theme-toggle:hover {
  border-color: var(--wf-primary);
  color: var(--wf-primary);
  box-shadow: var(--wf-shadow);
  transform: translateY(-1px);
}

/* ---------- Cards & surfaces ---------- */
.wf-icon-primary {
  color: var(--wf-primary);
}

.wf-card {
  background: linear-gradient(180deg, var(--wf-surface-2) 0%, var(--wf-surface) 100%);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  box-shadow: var(--wf-shadow);
  position: relative;
  overflow: hidden;
}

.wf-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wf-sheen), transparent);
}

.wf-hero {
  background: linear-gradient(135deg, var(--wf-primary) 0%, var(--wf-primary-strong) 100%);
  color: #fff;
  border-radius: var(--wf-radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--wf-shadow-hover);
}

.wf-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, transparent 30%);
  pointer-events: none;
}

.wf-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
}

.wf-hero p {
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- Request confirmation page ---------- */
.wf-confirm-summary {
  font-size: 0.8rem;
}

.wf-confirm-summary dt {
  color: var(--wf-muted);
  font-weight: 500;
}

.wf-confirm-summary dd {
  color: var(--wf-ink);
  font-weight: 600;
  margin-bottom: 0;
  word-break: break-word;
}

.wf-confirm-summary .row + .row {
  border-top: 1px solid var(--wf-border);
}

/* Deliberately louder than the summary above it — this is the one thing on
   the page we want impossible to miss before someone taps Confirm. */
.wf-terms-card {
  border: 2px solid #f59e0b;
  border-radius: var(--wf-radius);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.14) 0%, var(--wf-surface) 65%);
  box-shadow: var(--wf-shadow);
  overflow: hidden;
}

.wf-terms-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  background: #f59e0b;
  color: #1a1200;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.85rem;
}

.wf-terms-header i {
  font-size: 1.2rem;
  animation: wf-terms-pulse 1.6s ease-in-out infinite;
}

@keyframes wf-terms-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.wf-terms-list {
  margin: 0;
  padding: 1.1rem 1.4rem 1.25rem 2.3rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.wf-terms-list li {
  margin-bottom: 0.65rem;
}

.wf-terms-list li:last-child {
  margin-bottom: 0;
}

.wf-terms-list strong {
  color: #b45309;
}

:root[data-theme="dark"] .wf-terms-list strong {
  color: #fbbf65;
}

.wf-agree-check .form-check-label {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- Buttons ---------- */
.btn-wf-primary {
  background: linear-gradient(180deg, color-mix(in srgb, var(--wf-primary) 100%, white 8%) 0%, var(--wf-primary) 100%);
  border-color: var(--wf-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 6px 16px color-mix(in srgb, var(--wf-primary) 35%, transparent);
}

.btn-wf-primary:hover {
  background: linear-gradient(180deg, var(--wf-primary) 0%, var(--wf-primary-strong) 100%);
  border-color: var(--wf-primary-strong);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 10px 22px color-mix(in srgb, var(--wf-primary) 42%, transparent);
}

.btn-wf-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 4px 10px color-mix(in srgb, var(--wf-primary) 35%, transparent);
}

.btn-outline-danger,
.btn-outline-secondary {
  border-radius: 12px;
}

.btn-outline-danger:hover,
.btn-outline-secondary:hover {
  transform: translateY(-1px);
}

/* ---------- Choice cards (service / tier) — fixed, equal footprint
   regardless of label length, so "Iron Only" and "Wash & Iron" render the
   same size card. ---------- */
.tier-choice,
.service-choice {
  border: 2px solid var(--wf-border);
  border-radius: 14px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
  background: var(--wf-surface);
  height: 100%;
  min-height: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  position: relative;
}

.tier-choice:hover,
.service-choice:hover {
  border-color: var(--wf-primary);
  box-shadow: var(--wf-shadow-hover);
  transform: translateY(-2px);
}

.tier-choice input,
.service-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tier-choice.active,
.service-choice.active {
  border-color: var(--wf-primary);
  background: linear-gradient(160deg, var(--wf-primary-light) 0%, var(--wf-surface) 100%);
  box-shadow: var(--wf-shadow);
}

.service-choice .label-text {
  font-size: 0.9rem;
  line-height: 1.2;
}

.tier-choice i,
.service-choice i {
  font-size: 1.75rem;
  color: var(--wf-primary);
  line-height: 1;
}

.tier-choice .label-text,
.service-choice .label-text {
  font-size: 0.85rem;
}

/* ---------- Status pills ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--wf-shadow-sm);
}

.status-submitted,
.status-received { background: #e8ecfd; color: #4338ca; }
.status-pending_approval { background: #fef3e2; color: #b45309; }
.status-approved { background: #e0f2fe; color: #0369a1; }
.status-in_progress { background: var(--wf-primary-light); color: var(--wf-primary-strong); }
.status-ready { background: #dcfce7; color: #15803d; }
.status-picked_up { background: #eef1f5; color: #475569; }
.status-issue_flagged { background: #fde2e2; color: #b91c1c; }

:root[data-theme="dark"] .status-submitted,
:root[data-theme="dark"] .status-received { background: rgba(99, 102, 241, 0.18); color: #a5b0fb; }
:root[data-theme="dark"] .status-pending_approval { background: rgba(217, 119, 6, 0.18); color: #fbbf65; }
:root[data-theme="dark"] .status-approved { background: rgba(3, 105, 161, 0.2); color: #7dd3fc; }
:root[data-theme="dark"] .status-ready { background: rgba(21, 128, 61, 0.2); color: #6ee7a3; }
:root[data-theme="dark"] .status-picked_up { background: rgba(148, 163, 184, 0.18); color: #cbd5e1; }
:root[data-theme="dark"] .status-issue_flagged { background: rgba(185, 28, 28, 0.2); color: #fca5a5; }

/* ---------- Special-item tags ---------- */
.special-tag {
  border: 2px solid var(--wf-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.15s ease;
  background: var(--wf-surface);
}

.special-tag:hover {
  border-color: var(--wf-primary);
  transform: translateY(-1px);
  box-shadow: var(--wf-shadow-sm);
}

.special-tag input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.special-tag.active {
  border-color: var(--wf-primary);
  background: linear-gradient(160deg, var(--wf-primary-light) 0%, var(--wf-surface) 100%);
  color: var(--wf-primary-strong);
  box-shadow: var(--wf-shadow-sm);
}

/* ---------- Special-item quantity steppers (attendant confirm-bag) ---------- */
.special-qty-card {
  border: 2px solid var(--wf-border);
  border-radius: 14px;
  padding: 0.6rem 0.5rem;
  text-align: center;
  background: var(--wf-surface);
  transition: all 0.15s ease;
}

.special-qty-card.active {
  border-color: var(--wf-primary);
  background: linear-gradient(160deg, var(--wf-primary-light) 0%, var(--wf-surface) 100%);
}

.special-qty-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}

.special-qty-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid var(--wf-border);
  background: var(--wf-surface);
  color: var(--wf-primary-strong);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.qty-btn:hover {
  border-color: var(--wf-primary);
  background: var(--wf-primary-light);
}

.qty-input {
  width: 2.75rem;
  text-align: center;
  border: 1px solid var(--wf-border);
  border-radius: 8px;
  padding: 0.25rem;
  font-weight: 600;
  background: var(--wf-surface);
  color: inherit;
}

/* ---------- Attendant queue ---------- */
.queue-column {
  background: var(--wf-surface);
  border-radius: var(--wf-radius);
  border: 1px solid var(--wf-border);
  padding: 1rem;
  min-height: 200px;
}

.queue-column h6 {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--wf-muted);
  font-weight: 700;
}

.order-card {
  border: 1px solid var(--wf-border);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 0.75rem;
  background: var(--wf-bg);
}

.order-card:hover {
  border-color: var(--wf-primary);
  box-shadow: var(--wf-shadow-sm);
  transform: translateY(-1px);
}

.order-card.stale {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

/* ---------- Dashboard stat tiles ---------- */
.stat-tile {
  display: block;
  background: linear-gradient(180deg, var(--wf-surface-2) 0%, var(--wf-surface) 100%);
  border: 1px solid var(--wf-border);
  border-radius: var(--wf-radius);
  padding: 1.25rem;
  box-shadow: var(--wf-shadow);
  height: 100%;
}

.stat-tile:hover {
  box-shadow: var(--wf-shadow-hover);
  transform: translateY(-2px);
}

/* A tile that's also a link (e.g. "Pending requests" -> the attendant
   queue) — reset anchor defaults and make the affordance more obvious than
   the plain hover lift every tile already gets. */
.stat-tile-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border-color: var(--wf-border);
  transition: border-color 0.15s ease;
}

.stat-tile-link:hover {
  border-color: var(--wf-primary);
}

.stat-tile-link .label {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.stat-tile-link .label i {
  font-size: 1rem;
  transition: transform 0.15s ease;
}

.stat-tile-link:hover .label i {
  transform: translateX(3px);
}

.stat-tile .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--wf-primary-light) 0%, color-mix(in srgb, var(--wf-primary) 18%, var(--wf-primary-light)) 100%);
  color: var(--wf-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  box-shadow: var(--wf-shadow-sm);
}

.stat-tile .value {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--wf-ink);
}

.stat-tile .label {
  color: var(--wf-muted);
  font-size: 0.85rem;
}

/* ---------- Forms (Bootstrap overrides for both themes) ---------- */
.form-label {
  color: var(--wf-ink);
  margin-bottom: 0.4rem;
}

.form-control,
.form-select {
  background-color: var(--wf-surface);
  border-color: var(--wf-border);
  color: var(--wf-ink);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  box-shadow: inset 0 1px 2px rgba(18, 33, 66, 0.04);
}

.form-control-lg,
.form-select-lg {
  padding: 0.85rem 1.05rem;
  border-radius: 13px;
}

:root[data-theme="dark"] .form-control,
:root[data-theme="dark"] .form-select {
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.form-control:hover,
.form-select:hover {
  border-color: color-mix(in srgb, var(--wf-primary) 40%, var(--wf-border));
}

.form-control:focus,
.form-select:focus {
  background-color: var(--wf-surface);
  color: var(--wf-ink);
  border-color: var(--wf-primary);
  box-shadow: inset 0 1px 2px rgba(18, 33, 66, 0.04), 0 0 0 0.2rem var(--wf-primary-light);
}

.form-text {
  color: var(--wf-muted);
}

/* Icon-affixed inputs used on the login / lookup forms */
.form-icon-field {
  position: relative;
}

.form-icon-field > i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wf-muted);
  font-size: 1rem;
  pointer-events: none;
}

.form-icon-field > .form-control {
  padding-left: 2.7rem;
}

.form-icon-field:focus-within > i {
  color: var(--wf-primary);
}

/* ---------- Sectioned intake form (icon-boxed inputs + rule-style section
   headers, mimicking the reference "Create your account" layout) ---------- */
.wf-hero-icon {
  width: 3.25rem;
  height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 1rem;
}

.wf-form-section + .wf-form-section {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--wf-border);
}

.wf-form-section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--wf-primary-strong);
  font-size: 1rem;
  margin-bottom: 1.15rem;
}

.wf-form-section-title i {
  color: var(--wf-primary);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.wf-form-section-rule {
  flex: 1;
  height: 1px;
  background: var(--wf-border);
}

.wf-icon-field {
  position: relative;
  display: flex;
  align-items: stretch;
}

.wf-icon-field > .wf-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  flex-shrink: 0;
  background: var(--wf-primary-light);
  border: 1px solid var(--wf-border);
  border-right: none;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  color: var(--wf-primary);
  font-size: 1rem;
}

.wf-icon-field > .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.wf-icon-field:focus-within > .wf-icon-box {
  border-color: var(--wf-primary);
  color: var(--wf-primary-strong);
}

.table {
  color: var(--wf-ink);
}

footer {
  color: var(--wf-muted);
  font-size: 0.8rem;
  padding: 1.5rem 0;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wf-border), transparent);
}

@media (max-width: 576px) {
  .wf-hero {
    padding: 1.25rem;
  }
}

/* =====================================================
   Mobile UX pass — most customers, attendants and owners
   open WashFlow on a phone, so touch targets, tap zoom
   behavior, table layout and safe-area insets are tuned
   specifically for that context.
   ===================================================== */

/* Snappier taps, no gray flash on tap, no accidental
   text selection on repeatedly-tapped controls. */
a, button, .btn, .tier-choice, .service-choice, .special-tag, .qty-btn, .status-pill {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Respect notches / home-indicator areas (iOS Safari, Android gesture nav). */
.navbar-wf {
  padding-top: env(safe-area-inset-top);
}

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

footer {
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
}

@media (max-width: 576px) {
  /* Comfortable >=44px tap targets everywhere, including the
     btn-sm actions attendants tap all day in the queue. */
  .btn {
    min-height: 44px;
  }

  .btn-sm {
    min-height: 40px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .theme-toggle,
  .navbar-toggler,
  .admin-icon-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .btn-close {
    padding: 0.75rem;
  }

  /* Reclaim horizontal space on narrow phones without losing
     the card's identity as a distinct surface. */
  .wf-card.p-4,
  .wf-card.p-3 {
    padding: 1.1rem !important;
  }

  .stat-tile {
    padding: 1rem;
  }

  /* Prevent iOS Safari's auto-zoom-on-focus, which otherwise
     fires on any input/select rendered below 16px. */
  .form-control,
  .form-select,
  .form-control-sm,
  .form-select-sm {
    font-size: 16px;
  }
}

/* Order-code / status-pill headers: wrap gracefully instead of
   forcing a long code and pill onto one cramped line. */
.order-header {
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Compact "back" links used on secondary owner
   screens — a bare text link is a poor, hard-to-hit tap target
   on a phone, so give it a real button footprint. ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  color: var(--wf-ink) !important;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--wf-shadow-sm);
  text-decoration: none !important;
  min-height: 40px;
}

.back-link:hover {
  border-color: var(--wf-primary);
  color: var(--wf-primary) !important;
}

/* ---------- Responsive data tables: below 576px, stop forcing
   a horizontal scrollbar on 4-6 column tables and instead stack
   each row as a labeled card, which is far easier to read and
   edit one-handed on a phone. Opt in per-table via
   .table-mobile-cards, with each <td> carrying data-label. ---------- */
@media (max-width: 576px) {
  .table-mobile-cards thead {
    display: none;
  }

  .table-mobile-cards,
  .table-mobile-cards tbody,
  .table-mobile-cards tr,
  .table-mobile-cards td {
    display: block;
    width: 100%;
  }

  .table-mobile-cards tr {
    border: 1px solid var(--wf-border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--wf-surface);
  }

  .table-mobile-cards tr:last-child {
    margin-bottom: 0;
  }

  .table-mobile-cards td {
    border: none !important;
    padding: 0.3rem 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    text-align: right;
  }

  .table-mobile-cards td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--wf-muted);
    text-align: left;
  }

  .table-mobile-cards td:not([data-label]) {
    justify-content: center;
    text-align: center;
  }

  .table-mobile-cards input.form-control,
  .table-mobile-cards select.form-select {
    text-align: right;
  }
}

/* =====================================================
   Admin shell — sidebar + topbar layout used by every
   owner/manager page (dashboard, rate card, attendants,
   manager accounts). See owner/base_admin.html.
   ===================================================== */
.admin-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.admin-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--wf-primary-strong) 0%, color-mix(in srgb, var(--wf-primary-strong) 78%, #000 14%) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1040;
  transition: width 0.2s ease, transform 0.25s ease;
}

.admin-sidebar-brand {
  padding: 1.15rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  white-space: nowrap;
}

.admin-brand-link img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  background: #fff;
  padding: 3px;
  flex-shrink: 0;
}

.admin-nav {
  flex: 1;
  padding: 0.75rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.admin-nav-heading {
  margin: 0.9rem 0.6rem 0.3rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  white-space: nowrap;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  white-space: nowrap;
  min-height: 44px;
}

.admin-nav-link i {
  font-size: 1.05rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-nav-link.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 3px 0 0 #fff;
}

.admin-sidebar-collapse-btn {
  margin: 0.5rem auto 1rem;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-sidebar-collapse-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.admin-sidebar-collapse-btn i {
  transition: transform 0.2s ease;
}

/* Collapsed (desktop icon-rail) state */
.admin-shell.sidebar-collapsed .admin-sidebar {
  width: 76px;
}

.admin-shell.sidebar-collapsed .nav-label {
  display: none;
}

.admin-shell.sidebar-collapsed .admin-nav-link {
  justify-content: center;
}

.admin-shell.sidebar-collapsed .admin-nav-link i {
  width: auto;
}

.admin-shell.sidebar-collapsed .admin-sidebar-collapse-btn i {
  transform: rotate(180deg);
}

.admin-sidebar-backdrop {
  display: none;
}

.admin-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  padding-top: calc(0.75rem + env(safe-area-inset-top));
  background: var(--wf-glass);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--wf-border);
}

.admin-burger {
  flex-shrink: 0;
}

.admin-search {
  flex: 1;
  max-width: 360px;
  min-width: 0;
  position: relative;
}

.admin-search i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wf-muted);
  pointer-events: none;
}

.admin-search input {
  width: 100%;
  border: 1px solid var(--wf-border);
  background: var(--wf-surface);
  border-radius: 999px;
  padding: 0.55rem 0.9rem 0.55rem 2.4rem;
  color: var(--wf-ink);
  font-size: 0.9rem;
}

.admin-search input:focus {
  outline: none;
  border-color: var(--wf-primary);
  box-shadow: 0 0 0 0.2rem var(--wf-primary-light);
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.admin-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--wf-border);
  background: var(--wf-surface);
  color: var(--wf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.admin-icon-btn:hover {
  border-color: var(--wf-primary);
  color: var(--wf-primary);
}

.admin-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--wf-surface);
}

.admin-user-dropdown .admin-user-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: 999px;
  padding: 0.3rem 0.9rem 0.3rem 0.3rem;
}

.admin-user-toggle::after {
  display: none;
}

.admin-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--wf-primary), var(--wf-primary-strong));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.admin-user-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--wf-ink);
}

.admin-content {
  padding: 1.25rem;
  flex: 1;
}

/* Stat tile left-accent bars for the dashboard's four top cards */
.stat-tile.accent-blue { border-left: 4px solid var(--wf-primary); }
.stat-tile.accent-green { border-left: 4px solid #16a34a; }
.stat-tile.accent-teal { border-left: 4px solid #0d9488; }
.stat-tile.accent-orange { border-left: 4px solid #f59e0b; }

.shift-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.shift-dot.on { background: #16a34a; box-shadow: 0 0 0 3px color-mix(in srgb, #16a34a 20%, transparent); }
.shift-dot.off { background: var(--wf-muted); }

@media (max-width: 767.98px) {
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-100%);
  }

  .admin-shell.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1035;
  }

  .admin-shell.sidebar-open .admin-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .admin-sidebar-collapse-btn {
    display: none;
  }

  .admin-user-name {
    display: none;
  }

  .admin-content {
    padding: 1rem;
  }

  .admin-topbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 575.98px) {
  /* Bell/chat are shortcuts to info already on the dashboard —
     drop them so the search box keeps a usable width instead of
     every icon squeezing down to nothing. */
  .admin-topbar-actions a.admin-icon-btn {
    display: none;
  }
}

/* =====================================================
   Homepage splash — full-bleed washing-machine photo behind
   the sign-in menu, replacing the plain hero card. Text and
   controls sit on a fixed dark overlay so contrast holds in
   both themes regardless of the photo underneath.
   ===================================================== */
.wf-splash {
  position: relative;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
}

.wf-splash-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 28, 0.78) 0%, rgba(10, 16, 28, 0.62) 45%, rgba(10, 16, 28, 0.86) 100%),
    url("/static/img/homepage-bg.jpg") center center / cover no-repeat;
  z-index: 0;
}

.wf-splash-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
}

.wf-splash-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
}

.wf-splash-brand img {
  height: 32px;
  width: 32px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.wf-splash-nav .theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.wf-splash-nav .theme-toggle:hover {
  border-color: #fff;
  color: #fff;
}

.wf-splash-content {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  max-width: 780px;
  margin: 0 auto;
}

.wf-splash-alerts {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 1.5rem;
  text-align: left;
}

.wf-splash-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.75rem;
}

.wf-splash-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.wf-splash-subtitle {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.25rem;
  font-size: 1.05rem;
}

.wf-splash-cta {
  padding: 0.9rem 2.75rem;
  font-size: 1.05rem;
}

.wf-splash-policy {
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Frosted-glass login form card on the same splash background as the
   homepage — used by /manage (attendant login) and /admin (owner login). */
.wf-splash-login-card {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--wf-radius);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  color: #fff;
}

.wf-splash-login-card h1 {
  color: #fff;
}

.wf-splash-login-card .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

.wf-splash-login-card .form-label {
  color: rgba(255, 255, 255, 0.92);
}

.wf-splash-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
}

.wf-log-viewer {
  max-height: 70vh;
  overflow: auto;
  margin: 0;
  background: var(--wf-ink);
  color: var(--wf-bg);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  border-radius: var(--wf-radius);
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---- Location auto-suggest (pickup / drop-off) ---- */
.wf-suggest { position: relative; }
.wf-suggest-list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 20;
  margin-top: 4px;
  max-height: 260px;
  overflow-y: auto;
  background: var(--wf-surface);
  border: 1px solid var(--wf-border);
  border-radius: 12px;
  box-shadow: var(--wf-shadow);
  padding: 4px;
}
.wf-suggest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wf-ink);
  text-align: left;
  font-size: .95rem;
}
.wf-suggest-item:hover,
.wf-suggest-item.active { background: var(--wf-primary-light); }
.wf-suggest-item mark { padding: 0; background: transparent; color: var(--wf-primary); font-weight: 700; }
.wf-suggest-zone { color: var(--wf-muted); font-size: .8rem; white-space: nowrap; }

/* ---- Inline rename (admin account tables) ---- */
.wf-rename summary { cursor: pointer; list-style: none; }
.wf-rename summary::-webkit-details-marker { display: none; }
.wf-rename summary:hover .bi-pencil { color: var(--wf-primary) !important; }
.wf-rename[open] summary .bi-pencil { display: none; }

/* Bike fee shown inside the pickup/drop-off location field, beside the suburb */
.wf-price-tag {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--wf-primary-light);
  color: var(--wf-primary-strong);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
}
.wf-icon-field > .form-control.has-price-tag { padding-right: 6.5rem; }
.wf-price-pill {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--wf-primary-light);
  color: var(--wf-primary-strong);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
