/* ============================================================
   Partner CSS — Gofudo Partner Panel
   Theme tokens sourced from partner-web/src/theme/theme.ts
   ============================================================ */

:root {
  --bs-primary: #1A73E8;
  --bs-primary-rgb: 26, 115, 232;
  --bs-success: #4CAF50;
  --bs-success-rgb: 76, 175, 80;
  --bs-body-bg: #F8FAFE;
  --bs-body-color: #1A1A2E;
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --bs-border-color: rgba(26, 115, 232, 0.12);
  --theme-primary: #1A73E8;
  --theme-secondary: #0D47A1;
  --theme-accent: #4CAF50;
  --theme-background: #F8FAFE;
  --theme-card: #FFFFFF;
  --theme-text-primary: #1A1A2E;
  --theme-text-secondary: #6B7280;
  --theme-border: rgba(26, 115, 232, 0.12);
  --theme-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  --theme-radius-lg: 20px;
  --theme-radius-md: 16px;
  --theme-radius-sm: 12px;
  --theme-sidebar-width: 84px;
  --theme-content-max-width: 1440px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--theme-background);
  color: var(--theme-text-primary);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }
p { margin-top: 0; margin-bottom: 0; }

/* ---- Bootstrap theme bridge ---- */
.btn {
  --bs-btn-border-radius: var(--theme-radius-md);
  --bs-btn-font-weight: 600;
  --bs-btn-padding-x: 20px;
  --bs-btn-padding-y: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
}
.btn-primary {
  --bs-btn-bg: var(--theme-primary);
  --bs-btn-border-color: var(--theme-primary);
  --bs-btn-hover-bg: #155fc1;
  --bs-btn-hover-border-color: #155fc1;
  --bs-btn-active-bg: var(--theme-secondary);
  --bs-btn-active-border-color: var(--theme-secondary);
  --bs-btn-disabled-bg: var(--theme-primary);
  --bs-btn-disabled-border-color: var(--theme-primary);
}
.btn-outline-secondary,
.btn-secondary {
  --bs-btn-bg: var(--theme-background);
  --bs-btn-border-color: var(--theme-border);
  --bs-btn-color: var(--theme-text-primary);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: var(--theme-primary);
  --bs-btn-hover-color: var(--theme-primary);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: var(--theme-primary);
  --bs-btn-active-color: var(--theme-primary);
}
.btn-sm {
  --bs-btn-padding-x: 12px;
  --bs-btn-padding-y: 6px;
  --bs-btn-font-size: 12px;
}
.card {
  --bs-card-bg: var(--theme-card);
  --bs-card-border-color: var(--theme-border);
  --bs-card-border-radius: var(--theme-radius-lg);
  --bs-card-box-shadow: var(--theme-shadow);
  box-shadow: var(--theme-shadow);
}
.form-control,
.form-select {
  border-radius: var(--theme-radius-md);
  border: 1.5px solid var(--theme-border);
  color: var(--theme-text-primary);
  font-size: 14px;
  padding: 10px 16px;
}
.form-control:focus,
.form-select:focus {
  border-color: var(--theme-primary);
  box-shadow: 0 0 0 .2rem rgba(26,115,232,.12);
}
.form-control:disabled,
.form-select:disabled {
  background-color: #f5f5f5;
  color: var(--theme-text-secondary);
}
.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--theme-text-primary);
  margin-bottom: 6px;
}
.form-text,
.invalid-feedback,
.text-secondary-color {
  color: var(--theme-text-secondary) !important;
}
.table {
  --bs-table-color: var(--theme-text-primary);
  --bs-table-border-color: var(--theme-border);
  margin-bottom: 0;
}
.table thead th {
  color: var(--theme-text-secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.text-bg-primary-subtle {
  background: rgba(26,115,232,.1) !important;
  color: var(--theme-primary) !important;
}
.text-bg-success-subtle {
  background: rgba(76,175,80,.12) !important;
  color: #2e7d32 !important;
}

/* ---- Gradient background (landing / auth pages) ---- */
.p-gradient-bg {
  background: var(--theme-background);
}

/* ---- Eyebrow / helper text ---- */
.p-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .22em;
  color: var(--theme-text-secondary);
}

/* ============================================================
   Auth Shell (login / signup layout)
   ============================================================ */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 24px;
}
.auth-inner {
  display: block;
  width: 100%;
  max-width: var(--theme-content-max-width);
  margin: 0 auto;
}

.auth-feature-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--theme-secondary), var(--theme-primary));
  padding: 32px;
  color: #fff;
  box-shadow: var(--theme-shadow);
}
@media (min-width: 1024px) { .auth-feature-panel { padding: 40px; } }

.auth-feature-badge {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3em;
  color: rgba(255,255,255,.85);
  margin-bottom: 24px;
}
.auth-feature-title { font-size: 32px; font-weight: 700; line-height: 1.2; margin: 0 0 16px; }
@media (min-width: 1024px) { .auth-feature-title { font-size: 48px; } }
.auth-feature-desc { font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.8); max-width: 520px; }

.auth-feature-cards { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 640px) { .auth-feature-cards { grid-template-columns: 1fr 1fr 1fr; } }
.auth-feature-card {
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.1);
  border-radius: var(--theme-radius-md);
  padding: 16px;
  backdrop-filter: blur(4px);
}
.auth-feature-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: .2em; color: rgba(255,255,255,.7); }
.auth-feature-card-value { font-size: 14px; font-weight: 600; color: #fff; margin-top: 8px; }

.auth-form-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
@media (min-width: 1024px) { .auth-form-card { padding: 40px; } }
.auth-form-inner { width: 100%; max-width: 448px; }

/* OTP form */
.otp-title { font-size: 22px; font-weight: 700; color: var(--theme-text-primary); margin: 0 0 6px; }
.otp-desc  { font-size: 13px; line-height: 1.7; color: var(--theme-text-secondary); margin: 0 0 24px; }
.otp-info-box {
  border: 1px solid var(--theme-border);
  background: rgba(0,0,0,.02);
  border-radius: var(--theme-radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--theme-text-secondary);
  margin-bottom: 16px;
}
.otp-info-box .dev-otp { color: var(--theme-primary); font-weight: 600; margin-top: 6px; }
.otp-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.otp-link { font-weight: 600; color: var(--theme-primary); background: none; border: none; padding: 0; }
.otp-switch-row { text-align: center; font-size: 13px; color: var(--theme-text-secondary); margin-top: 16px; }
.otp-switch-row a { font-weight: 600; color: var(--theme-primary); }

/* ============================================================
   App Shell (dashboard layout)
   ============================================================ */
.app-shell {
  min-height: 100vh;
  background: var(--theme-background);
  color: var(--theme-text-primary);
}
.app-inner {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar */
.app-sidebar {
  display: none;
  width: var(--theme-sidebar-width);
  flex-shrink: 0;
  border-right: 1px solid var(--theme-border);
  background: rgba(255,255,255,.8);
  padding: 20px 16px;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 40;
}
@media (min-width: 768px) { .app-sidebar { display: flex; } }
@media (min-width: 768px) {
  .app-sidebar {
    align-items: center;
    padding: 20px 12px;
  }
  .app-sidebar .app-brand {
    justify-content: center;
  }
  .app-sidebar .app-logo {
    width: 46px;
    height: 46px;
  }
  .app-sidebar .app-brand-text,
  .app-sidebar .nav-label,
  .app-sidebar .app-restaurant-mini-text {
    display: none;
  }
  .app-sidebar .app-nav {
    align-items: center;
    width: 100%;
  }
  .app-sidebar .app-nav-item {
    justify-content: center;
    width: 48px;
    padding: 0;
    gap: 0;
  }
  .app-sidebar .app-restaurant-mini {
    justify-content: center;
    width: 48px;
    padding: 7px;
  }
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--theme-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--theme-shadow);
  flex-shrink: 0;
}

.app-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.app-brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--theme-text-primary);
  line-height: 1.2;
}
.app-brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--theme-text-secondary);
  letter-spacing: .16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.app-nav { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-nav-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  text-decoration: none;
  transition: all .15s;
  gap: 12px;
  padding: 0 14px;
}
.app-nav-item .nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(26,115,232,.08);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}
.app-nav-item .nav-label { font-size: 14px; font-weight: 700; }
.app-nav-item.active {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
  box-shadow: var(--theme-shadow);
}
.app-nav-item.active .nav-icon {
  background: rgba(255,255,255,.18);
}
.app-nav-item:not(.active) {
  background: #fff;
  color: var(--theme-text-secondary);
}
.app-nav-item:not(.active):hover {
  border-color: var(--theme-border);
  color: var(--theme-primary);
}

.app-nav-group { position: relative; }
.app-nav-item .nav-chevron {
  margin-left: auto;
  font-size: 10px;
  flex-shrink: 0;
  transition: transform .15s;
}
.app-nav-item .nav-chevron.open { transform: rotate(180deg); }
.app-nav-children {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.app-nav-item.app-nav-item-child {
  min-height: 40px;
}
.app-nav-item.app-nav-item-child .nav-icon {
  width: 24px;
  height: 24px;
}
.app-nav-flyout {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 8px;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  z-index: 250;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.app-nav-flyout-item {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-text-secondary);
  text-decoration: none;
  white-space: nowrap;
}
.app-nav-flyout-item:hover {
  background: rgba(26,115,232,.08);
  color: var(--theme-primary);
}
.app-nav-flyout-item.active {
  background: var(--theme-primary);
  color: #fff;
}
.app-restaurant-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: #fff;
  box-shadow: var(--theme-shadow);
}
.app-restaurant-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--theme-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}
.app-restaurant-mini-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-text-primary);
}

/* Main content area */
.app-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.app-header {
  border-bottom: 1px solid var(--theme-border);
  background: rgba(255,255,255,.7);
  padding: 16px 20px;
  backdrop-filter: blur(4px);
  position: sticky;
  top: 0;
  z-index: 10;
}
@media (min-width: 1024px) { .app-header { padding: 18px 32px; } }
.app-header-inner {
  display: flex;
  gap: 12px;
  min-width: 0;
}
.app-title-block { min-width: 0; }
.app-mobile-menu-btn { display: inline-flex !important; }
.app-desktop-menu-btn { display: none !important; }
@media (min-width: 768px) {
  .app-mobile-menu-btn { display: none !important; }
  .app-desktop-menu-btn { display: inline-flex !important; }
  .app-mobile-nav { display: none !important; }
  .app-shell.sidebar-expanded {
    --theme-sidebar-width: 248px;
  }
  .app-shell.sidebar-expanded .app-sidebar {
    align-items: stretch;
    padding: 20px 16px;
  }
  .app-shell.sidebar-expanded .app-sidebar .app-brand {
    justify-content: flex-start;
  }
  .app-shell.sidebar-expanded .app-sidebar .app-brand-text,
  .app-shell.sidebar-expanded .app-sidebar .nav-label,
  .app-shell.sidebar-expanded .app-sidebar .app-restaurant-mini-text {
    display: flex;
  }
  .app-shell.sidebar-expanded .app-sidebar .app-nav {
    align-items: stretch;
  }
  .app-shell.sidebar-expanded .app-sidebar .app-nav-item {
    justify-content: flex-start;
    width: 100%;
    padding: 0 14px;
    gap: 12px;
  }
  .app-shell.sidebar-expanded .app-sidebar .app-restaurant-mini {
    justify-content: flex-start;
    width: 100%;
    padding: 12px;
  }
}
.app-restaurant-title {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.18;
  color: var(--theme-text-primary);
  margin: 0;
}
.app-header-title { font-size: 14px; font-weight: 700; margin: 4px 0 0; color: var(--theme-text-secondary); }
.app-header-sub   { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .26em; color: var(--theme-text-secondary); margin-bottom: 2px; }
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.app-outlet-toggle {
  min-width: 0;
  max-width: min(360px, 42vw);
}
.app-outlet-name {
  min-width: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
  color: var(--theme-text-primary);
}

.app-user-card { display: flex; align-items: center; gap: 12px; }
.app-user-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--theme-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.app-user-name  { font-size: 14px; font-weight: 600; }
.app-user-phone { font-size: 12px; color: var(--theme-text-secondary); }

.app-main { flex: 1; padding: 24px 20px; }
@media (min-width: 1024px) { .app-main { padding: 28px 32px; } }
.app-content { width: 100%; }
.app-mobile-nav {
  --bs-offcanvas-width: min(320px, 88vw);
  background: var(--theme-background);
}
.app-mobile-nav .offcanvas-header {
  border-bottom: 1px solid var(--theme-border);
  padding: 18px 16px;
}
.app-mobile-nav .offcanvas-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
}

@media (max-width: 767px) {
  .app-header {
    position: sticky;
    padding: 12px 16px;
  }
  .app-header-inner {
    flex-direction: row !important;
  }
  .app-header-title {
    margin: 0;
  }
  .app-header-actions {
    width: auto;
    align-items: center;
    flex-direction: row;
    margin-left: auto;
    min-width: 0;
  }
  .app-outlet-toggle {
    max-width: 42vw;
  }
  .app-outlet-name {
    max-width: 22vw;
  }
  .app-header-actions .btn {
    width: auto;
    padding: 7px 12px;
    font-size: 13px;
  }
  .app-main {
    padding: 16px;
  }
}

/* ============================================================
   Onboarding Shell
   ============================================================ */

/* Top nav bar (shared by onboarding) */
.ob-topnav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 0 24px; min-height: 60px;
  background: rgba(255,255,255,.95);
  border-bottom: 1px solid var(--theme-border);
  backdrop-filter: blur(8px);
}
.ob-topnav-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ob-topnav-logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--theme-primary); color: #fff;
  font-size: 12px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; flex-shrink: 0;
}
.ob-topnav-name {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: var(--theme-text-primary);
}
.ob-topnav-sub  { font-size: 11px; color: var(--theme-text-secondary); }
.ob-topnav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ob-user-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--theme-border);
  background: #fff;
}
.ob-user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--theme-accent);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ob-user-phone { font-size: 12px; font-weight: 600; color: var(--theme-text-primary); }

@media (max-width: 640px) {
  .ob-topnav {
    align-items: stretch;
    flex-direction: column;
    padding: 12px 16px;
  }
  .ob-topnav-right {
    width: 100%;
    justify-content: space-between;
  }
  .ob-user-pill {
    min-width: 0;
  }
  .ob-user-phone {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* Onboarding page body */
.onboarding-shell { background: var(--theme-background); min-height: 100vh; }
.onboarding-body {
  display: block;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* Sidebar */
.ob-sidebar {
  position: sticky;
  top: 76px; /* 60px nav + 16px gap */
}
.ob-sidebar-card {
  background: #fff;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  overflow: hidden;
  box-shadow: var(--theme-shadow);
}
.ob-sidebar-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--theme-border);
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-secondary));
  color: #fff;
}
.ob-sidebar-head-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; opacity: .75; }
.ob-sidebar-head-step  { font-size: 22px; font-weight: 800; margin-top: 2px; }

/* Progress bar */
.ob-progress-bar-track { height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; margin-top: 10px; }
.ob-progress-bar-fill  { height: 4px; background: #fff; border-radius: 2px; transition: width .3s; }

/* Step list */
.ob-steps { padding: 12px 0; }
.ob-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 20px;
  position: relative;
  cursor: default;
}
/* Connector line between steps */
.ob-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 30px; /* center of the 20px dot = 20px padding + half of 20px dot */
  top: 38px; /* start below the dot */
  bottom: -10px;
  width: 2px;
  background: var(--theme-border);
}
.ob-step.done::after { background: var(--theme-accent); }
.ob-step.active::after { background: linear-gradient(to bottom, var(--theme-primary), var(--theme-border)); }

.ob-step-dot {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
  margin-top: 2px; position: relative; z-index: 1;
}
.ob-step-dot.done     { background: var(--theme-accent); color: #fff; }
.ob-step-dot.active   { background: var(--theme-primary); color: #fff; box-shadow: 0 0 0 4px rgba(26,115,232,.15); }
.ob-step-dot.upcoming { background: #fff; color: var(--theme-text-secondary); border: 1.5px solid var(--theme-border); }

.ob-step-info {}
.ob-step-name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.ob-step-name.done     { color: var(--theme-text-primary); }
.ob-step-name.active   { color: var(--theme-primary); }
.ob-step-name.upcoming { color: var(--theme-text-secondary); }
.ob-step-sub  { font-size: 11px; color: var(--theme-text-secondary); margin-top: 1px; }

/* Form sections inside onboarding pages */
.form-section {
  background: #fff;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: var(--theme-shadow);
}
.form-section-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--theme-border);
  background: var(--theme-background);
}
.form-section-icon {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--theme-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; flex-shrink: 0;
}
.form-section-title { font-size: 14px; font-weight: 700; color: var(--theme-text-primary); }
.form-section-desc  { font-size: 12px; color: var(--theme-text-secondary); margin-top: 1px; }
.form-section-body  { padding: 20px; }

/* Page heading strip */
.ob-page-head {
  margin-bottom: 20px;
}
.ob-page-step-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--theme-primary); margin-bottom: 4px; }
.ob-page-title      { font-size: 24px; font-weight: 800; color: var(--theme-text-primary); margin: 0; }
.ob-page-desc       { font-size: 13px; color: var(--theme-text-secondary); margin-top: 6px; line-height: 1.6; }

/* Form action bar */
.ob-form-actions {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 8px; margin-top: 4px;
}

/* Deprecated names kept for other pages */
.onboarding-steps-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--theme-text-secondary); margin-bottom: 20px; }
.step-label { font-size: 14px; font-weight: 600; color: var(--theme-text-primary); margin-bottom: 2px; }
.step-sublabel { font-size: 11px; color: var(--theme-text-secondary); }

/* ============================================================
   Upload box
   ============================================================ */
.upload-box {
  border: 2px dashed var(--theme-border);
  border-radius: var(--theme-radius-lg);
  padding: 24px;
  text-align: center;
  transition: border-color .15s;
  position: relative;
}
.upload-box:hover { border-color: var(--theme-primary); }
.upload-box.has-file { border-style: solid; border-color: var(--theme-accent); }
.upload-box-label { font-size: 14px; font-weight: 600; color: var(--theme-text-primary); margin-bottom: 4px; }
.upload-box-desc  { font-size: 12px; color: var(--theme-text-secondary); margin-bottom: 12px; }
.upload-box-file  { font-size: 13px; color: var(--theme-accent); font-weight: 600; }
.upload-box input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }

/* ============================================================
   Dashboard page
   ============================================================ */
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  background: #fff;
  box-shadow: var(--theme-shadow);
}
.dashboard-hero h2 {
  margin: 4px 0 6px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--theme-text-primary);
  overflow-wrap: anywhere;
}
.dashboard-hero p:not(.p-eyebrow) {
  margin: 0;
  color: var(--theme-text-secondary);
  font-size: 14px;
}
.dashboard-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 1024px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr); }
}
.dashboard-panel { min-width: 0; }
.status-list {
  display: grid;
  gap: 18px;
}
.settings-panel {
  width: min(100%, 560px);
}
.stat-grid { display: grid; gap: 16px; }
@media (min-width: 640px)  { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.stat-card { padding: 20px; }
.stat-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .22em; color: var(--theme-text-secondary); }
.stat-value { font-size: 28px; font-weight: 800; color: var(--theme-text-primary); margin-top: 8px; }
.stat-sub   { font-size: 12px; color: var(--theme-text-secondary); margin-top: 4px; }

.section-title { font-size: 18px; font-weight: 700; color: var(--theme-text-primary); margin: 0 0 16px; }

@media (max-width: 767px) {
  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }
  .dashboard-hero .btn {
    width: 100%;
  }
}

/* ============================================================
   Hour editor row
   ============================================================ */
.hour-row {
  display: grid;
  gap: 10px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  padding: 12px 16px;
  align-items: center;
  transition: background .1s;
}
@media (min-width: 640px) {
  .hour-row { grid-template-columns: 130px 1fr 1fr auto; }
}
.hour-day  { font-size: 13px; font-weight: 700; color: var(--theme-text-primary); }
.hour-closed-label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--theme-text-secondary); white-space: nowrap; cursor: pointer; }

/* ============================================================
   Cuisine multi-select
   ============================================================ */
.cuisine-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cuisine-chip {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--theme-border);
  background: #fff;
  color: var(--theme-text-primary);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.cuisine-chip.selected {
  background: var(--theme-primary);
  border-color: var(--theme-primary);
  color: #fff;
}
.cuisine-chip input { display: none; }

/* ============================================================
   Map picker
   ============================================================ */
#partner-map {
  height: 320px;
  border-radius: var(--theme-radius-lg);
  border: 1px solid var(--theme-border);
  overflow: hidden;
  z-index: 0;
}

/* ============================================================
   Misc utility
   ============================================================ */
.space-y-4 > * + * { margin-top: 16px; }
.space-y-6 > * + * { margin-top: 24px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3  { gap: 12px; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.text-sm  { font-size: 13px; }
.text-xs  { font-size: 11px; }
.text-2xl { font-size: 24px; }
.text-3xl { font-size: 30px; }
.text-primary { color: var(--theme-primary); }
.text-secondary-color { color: var(--theme-text-secondary); }
.hidden { display: none; }

/* ---- Bootstrap-first responsive cleanups ---- */
.ob-form-actions {
  gap: 12px;
}
@media (max-width: 575px) {
  .ob-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
  .ob-form-actions .btn {
    width: 100%;
  }
  .form-section-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 767px) {
  .menu-tab-bar {
    overflow-x: auto;
    padding: 0 12px;
  }
  .menu-shell {
    height: auto !important;
    min-height: calc(100vh - 120px);
    overflow: visible !important;
    flex-direction: column;
  }
  .menu-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: 44vh;
    border-right: 0 !important;
    border-bottom: 1px solid #e5e7eb;
  }
  .menu-main {
    width: 100%;
    min-height: 420px;
  }
  .menu-main-header {
    align-items: stretch !important;
    flex-direction: column;
  }
  .menu-main-header-right {
    align-items: stretch !important;
    flex-wrap: wrap;
  }
  .menu-main-header-right .btn {
    width: 100%;
  }
  .item-row {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }
  .item-row-name {
    flex-basis: calc(100% - 32px);
    white-space: normal !important;
  }
  .item-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .item-actions .ia-btn {
    flex: 1 1 auto;
  }
  .item-drawer,
  .nested-panel {
    width: 100% !important;
    max-width: 100vw !important;
  }
  .drawer-footer,
  .nested-panel-footer {
    flex-direction: column;
  }
  .drawer-footer .btn,
  .nested-panel-footer .btn {
    width: 100%;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }
  .image-slots,
  .radio-pills {
    flex-wrap: wrap;
  }
  .ag-header {
    flex-direction: column;
  }
  .ag-card-header,
  .ag-item-row {
    align-items: flex-start !important;
    flex-wrap: wrap;
  }
  .ag-card-actions,
  .ag-item-actions {
    flex-wrap: wrap;
  }
  .ag-drawer-item-row {
    grid-template-columns: 1fr !important;
  }
}


/* ── Toggle Switch ─────────────────────────────────────────── */
.toggle-sw {
  display: inline-block;
  position: relative;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s;
  vertical-align: middle;
}
.toggle-sw.active { background: #1d4ed8; }
.toggle-sw:disabled { opacity: 0.55; cursor: not-allowed; }
.toggle-sw-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: left 0.2s;
  display: block;
  pointer-events: none;
}
.toggle-sw.active .toggle-sw-thumb { left: 22px; }

/* Small variant — for tight sidebar rows */
.toggle-sw-sm {
  width: 30px;
  height: 17px;
  border-radius: 9px;
}
.toggle-sw-sm .toggle-sw-thumb {
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
}
.toggle-sw-sm.active .toggle-sw-thumb { left: 15px; }

/* ============================================================
   Partner Orders Kitchen Board
   ============================================================ */
[x-cloak] { display: none !important; }

.orders-workspace {
  display: grid;
  gap: 18px;
}

.orders-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  background: #fff;
  box-shadow: var(--theme-shadow);
}

.orders-command-title {
  min-width: 0;
}

.orders-command-title h2,
.orders-history-header h3 {
  margin: 0;
  color: var(--theme-text-primary);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.orders-command-title span {
  display: block;
  margin-top: 5px;
  color: var(--theme-text-secondary);
  font-size: 12px;
}

.orders-command-stats {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.orders-stat {
  display: grid;
  min-width: 112px;
  padding: 8px 12px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-background);
}

.orders-stat span {
  color: var(--theme-text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.orders-stat strong {
  color: var(--theme-text-primary);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.1;
}

.orders-stat-danger.active {
  border-color: rgba(220,38,38,.32);
  background: #fef2f2;
}

.orders-stat-danger.active strong {
  color: #dc2626;
}

.orders-mobile-switcher {
  display: none;
}

.orders-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
  min-height: 560px;
}

.orders-lane {
  min-width: 0;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  background: rgba(255,255,255,.72);
  box-shadow: var(--theme-shadow);
  overflow: hidden;
}

.orders-lane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 78px;
  padding: 14px;
  border-bottom: 1px solid var(--theme-border);
  background: #fff;
}

.orders-lane-header p {
  margin: 0 0 3px;
  color: var(--theme-text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.orders-lane-header h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--theme-text-primary);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

.orders-lane-header h3 strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--theme-background);
  color: var(--theme-text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.orders-lane-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--theme-primary);
  box-shadow: 0 0 0 5px rgba(26,115,232,.1);
  flex-shrink: 0;
}

.orders-lane-new .orders-lane-dot { background: #dc2626; box-shadow: 0 0 0 5px rgba(220,38,38,.1); }
.orders-lane-preparing .orders-lane-dot { background: #d97706; box-shadow: 0 0 0 5px rgba(217,119,6,.12); }
.orders-lane-ready .orders-lane-dot { background: #16a34a; box-shadow: 0 0 0 5px rgba(22,163,74,.12); }
.orders-lane-pickup .orders-lane-dot { background: #2563eb; box-shadow: 0 0 0 5px rgba(37,99,235,.12); }

.orders-lane-body {
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 260px);
  min-height: 460px;
  overflow: auto;
  padding: 12px;
}

.order-board-card {
  position: relative;
  display: grid;
  gap: 11px;
  width: 100%;
  min-height: 248px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: #fff;
  color: var(--theme-text-primary);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
  transition: transform .12s, box-shadow .12s, border-color .12s;
}

.order-board-card:hover,
.order-board-card:focus-visible,
.order-board-card.selected {
  border-color: rgba(26,115,232,.34);
  outline: none;
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
  transform: translateY(-1px);
}

.order-board-card.urgent {
  border-color: rgba(217,119,6,.38);
}

.order-board-card.overdue {
  border-color: rgba(220,38,38,.42);
  background: #fffafa;
}

.order-card-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--theme-primary);
}

.order-board-card.urgent .order-card-accent { background: #d97706; }
.order-board-card.overdue .order-card-accent { background: #dc2626; }

.order-card-top,
.order-card-bottom,
.order-card-timer,
.order-card-customer,
.order-driver-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.order-card-top strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.order-card-top small,
.order-card-customer small,
.order-card-bottom small {
  display: block;
  color: var(--theme-text-secondary);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.order-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--theme-background);
  color: var(--theme-text-secondary);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.order-status-pill.status-new { background: #fef2f2; color: #dc2626; }
.order-status-pill.status-preparing { background: #fff7ed; color: #c2410c; }
.order-status-pill.status-ready { background: #f0fdf4; color: #15803d; }
.order-status-pill.status-pickup { background: #eff6ff; color: #1d4ed8; }
.order-status-pill.status-past { background: var(--theme-background); color: var(--theme-text-primary); }

.order-card-timer {
  padding: 9px 10px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-background);
}

.order-card-timer span,
.order-detail-timer span {
  color: var(--theme-text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.order-card-timer strong,
.order-detail-timer strong {
  color: var(--theme-text-primary);
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.order-card-timer.warning,
.order-detail-timer.warning {
  border-color: rgba(217,119,6,.28);
  background: #fff7ed;
}

.order-card-timer.warning strong,
.order-detail-timer.warning strong {
  color: #c2410c;
}

.order-card-timer.danger,
.order-detail-timer.danger {
  border-color: rgba(220,38,38,.28);
  background: #fef2f2;
}

.order-card-timer.danger strong,
.order-detail-timer.danger strong {
  color: #dc2626;
}

.order-card-customer {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.order-card-customer strong,
.order-driver-chip strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--theme-text-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-items {
  display: grid;
  gap: 5px;
  min-height: 58px;
}

.order-card-items span {
  display: flex;
  gap: 6px;
  min-width: 0;
  color: var(--theme-text-primary);
  font-size: 12px;
  line-height: 1.3;
}

.order-card-items span span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-card-items small {
  color: var(--theme-text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.order-driver-chip {
  padding: 8px 10px;
  border: 1px solid rgba(22,163,74,.2);
  border-radius: var(--theme-radius-sm);
  background: #f0fdf4;
}

.order-driver-chip small {
  color: #15803d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.order-card-pin {
  padding: 8px 10px;
  border: 1px solid rgba(217,119,6,.25);
  border-radius: var(--theme-radius-sm);
  background: #fffbeb;
}

.order-card-pin small {
  color: #b45309;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.order-card-bottom {
  align-items: flex-end;
}

.order-card-bottom strong {
  font-size: 17px;
  font-weight: 900;
}

.order-next-action {
  color: var(--theme-primary);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.order-card-actions {
  display: block;
  padding-top: 10px;
  border-top: 1px solid var(--theme-border);
}

.order-inline-actions,
.order-detail-actions,
.order-extend-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.order-inline-actions .form-select {
  width: auto;
  min-width: 92px;
  padding: 6px 9px;
  font-size: 12px;
}

.orders-empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 180px;
  padding: 18px;
  border: 1px dashed var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: rgba(255,255,255,.72);
  color: var(--theme-text-secondary);
  text-align: center;
}

.orders-empty-state strong {
  color: var(--theme-text-primary);
  font-size: 14px;
  font-weight: 800;
}

.orders-empty-state span {
  max-width: 240px;
  font-size: 12px;
}

.orders-loading,
.orders-history-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 160px;
  color: var(--theme-text-secondary);
  font-size: 13px;
  font-weight: 700;
}

.orders-history {
  display: grid;
  gap: 14px;
}

.orders-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-lg);
  background: #fff;
  box-shadow: var(--theme-shadow);
}

.orders-history-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.orders-history-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: #fff;
  box-shadow: var(--theme-shadow);
}

.orders-history-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.orders-history-card div strong,
.orders-history-card > strong {
  font-weight: 900;
}

.orders-history-card div span,
.orders-history-card p {
  margin: 0;
  color: var(--theme-text-secondary);
  font-size: 12px;
}

.orders-empty-history {
  min-height: 220px;
}

.order-detail-drawer {
  --bs-offcanvas-width: min(520px, 100vw);
}

.order-detail-drawer .offcanvas-header {
  border-bottom: 1px solid var(--theme-border);
  justify-content: space-between;
}

.order-detail-drawer .offcanvas-title {
  font-size: 20px;
  font-weight: 900;
}

.order-detail-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-detail-header-actions .btn-close {
  margin: 0;
  flex-shrink: 0;
}

.btn-print-kot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--theme-primary);
  border-radius: var(--theme-radius-md);
  background: rgba(26,115,232,.08);
  color: var(--theme-primary);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}

.btn-print-kot:hover {
  background: var(--theme-primary);
  color: #fff;
}

.btn-print-kot svg {
  flex-shrink: 0;
}

.order-detail-section {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--theme-border);
}

.order-detail-section:first-child {
  padding-top: 0;
}

.order-detail-section h6 {
  margin: 0;
  color: var(--theme-text-primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.order-detail-hero {
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.order-detail-hero div,
.order-detail-timer {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-md);
  background: var(--theme-background);
}

.order-detail-hero span {
  color: var(--theme-text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.order-detail-hero strong {
  color: var(--theme-text-primary);
  font-size: 16px;
  font-weight: 900;
}

.order-detail-timer {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.order-detail-item,
.order-detail-driver,
.order-totals span {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.order-detail-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(26,115,232,.08);
}

.order-detail-item:last-child {
  border-bottom: 0;
}

.order-detail-item div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.order-detail-item strong,
.order-detail-driver strong,
.order-totals strong {
  color: var(--theme-text-primary);
  font-size: 13px;
  font-weight: 900;
}

.order-detail-item span,
.order-detail-driver span,
.order-totals span {
  color: var(--theme-text-secondary);
  font-size: 12px;
}

.order-detail-driver {
  padding: 12px;
  border: 1px solid rgba(22,163,74,.18);
  border-radius: var(--theme-radius-md);
  background: #f0fdf4;
}

.order-detail-driver div {
  display: grid;
  gap: 2px;
}

.order-totals {
  display: grid;
  gap: 8px;
}

.order-totals span {
  width: 100%;
}

.order-total-row {
  padding-top: 10px;
  border-top: 1px solid var(--theme-border);
  color: var(--theme-text-primary) !important;
  font-weight: 900;
}

.order-earnings-informational {
  opacity: .65;
  font-style: italic;
}

.order-earnings-informational strong {
  color: var(--theme-text-secondary) !important;
  font-weight: 700 !important;
}

.order-detail-instructions {
  background: #fff7ed;
  border: 1px solid rgba(217,119,6,.25);
  border-radius: var(--theme-radius-md);
  padding: 12px;
}

.order-detail-instructions h6 {
  color: #b45309;
}

.order-detail-instructions p {
  margin: 0;
  font-weight: 700;
  color: var(--theme-text-primary);
}

.order-extend-panel {
  padding: 10px;
  border: 1px solid var(--theme-border);
  border-radius: var(--theme-radius-sm);
  background: var(--theme-background);
}

.order-extend-panel span {
  color: var(--theme-text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.order-help-list .list-group-item {
  font-size: 13px;
  font-weight: 700;
}

.order-track-map {
  display: block;
  width: 100%;
  border: 0;
}

.order-track-footer {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
}

@media (max-width: 1199px) {
  .orders-board {
    grid-template-columns: repeat(2, minmax(280px, 1fr));
  }
  .orders-lane-body {
    max-height: none;
    min-height: 360px;
  }
  .orders-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .orders-command-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .orders-command-stats {
    justify-content: flex-start;
  }
  .orders-mobile-switcher {
    position: sticky;
    top: 68px;
    z-index: 8;
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    border: 1px solid var(--theme-border);
    border-radius: var(--theme-radius-md);
    background: rgba(255,255,255,.92);
    box-shadow: var(--theme-shadow);
  }
  .orders-mobile-switcher button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--theme-border);
    border-radius: 999px;
    background: #fff;
    color: var(--theme-text-secondary);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
  }
  .orders-mobile-switcher button.active {
    border-color: var(--theme-primary);
    background: var(--theme-primary);
    color: #fff;
  }
  .orders-mobile-switcher strong {
    font-size: 12px;
  }
  .orders-board {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .orders-lane-body {
    min-height: 360px;
  }
  .order-board-card {
    min-height: 232px;
  }
}

@media (max-width: 640px) {
  .orders-command-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .orders-command-stats .btn {
    width: 100%;
  }
  .orders-stat {
    min-width: 0;
  }
  .orders-history-header,
  .order-detail-hero {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .orders-history-header {
    flex-direction: column;
  }
  .orders-history-header .btn {
    width: 100%;
  }
  .orders-history-grid {
    grid-template-columns: 1fr;
  }
  .order-inline-actions,
  .order-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .order-inline-actions .btn,
  .order-inline-actions .form-select,
  .order-detail-actions .btn,
  .order-detail-actions .form-select {
    width: 100%;
  }
}
