:root {
  --primary:#FF5A24;
  --primary-dark:#E04B1D;
  --food:#E63946;
  --market:#2A9D8F;
  --medical:#0077B6;
  --promo:#FFB703;
  --success:#10B981;
  --error:#EF4444;
  --bg:#FFFFFF;
  --soft:#F7F9FA;
  --text:#1C2024;
  --muted:#6B7280;
  --border:#E5E7EB;
  --shadow:0 18px 50px rgba(28,32,36,.08);
  --radius:22px;
}
*{box-sizing:border-box}
body{margin:0;font-family:"Cairo","Inter",Arial,sans-serif;background:var(--soft);color:var(--text);direction:rtl}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font-family:inherit}
.auth-body{min-height:100vh;background:radial-gradient(circle at top right,rgba(255,90,36,.18),transparent 34%),radial-gradient(circle at bottom left,rgba(42,157,143,.15),transparent 30%),var(--soft);display:grid;place-items:center;padding:24px}
.auth-card{width:100%;max-width:460px;background:#fff;border-radius:30px;box-shadow:var(--shadow);padding:32px;border:1px solid rgba(255,255,255,.7)}
.logo{display:flex;align-items:center;gap:12px;margin-bottom:24px}
.logo-mark{width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;display:grid;place-items:center;font-weight:900;font-size:22px;box-shadow:0 10px 24px rgba(255,90,36,.25)}
.logo-text strong{display:block;font-size:24px;line-height:1}.logo-text span{color:var(--muted);font-size:13px}
.auth-card h1{margin:0 0 8px;font-size:28px}.auth-card p{margin:0 0 24px;color:var(--muted)}
.form-grid{display:grid;gap:14px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.field label{display:block;font-weight:800;font-size:13px;margin-bottom:7px}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--border);background:#fff;border-radius:15px;padding:13px 14px;font-size:15px;outline:none}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(255,90,36,.12)}
.btn{border:0;background:var(--primary);color:#fff;border-radius:15px;padding:13px 18px;cursor:pointer;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn:hover{background:var(--primary-dark)}.btn.secondary{background:#fff;color:var(--text);border:1px solid var(--border)}.btn.green{background:var(--success)}.btn.blue{background:var(--medical)}.btn.small{padding:8px 10px;border-radius:10px;font-size:13px}
.auth-links{margin-top:18px;color:var(--muted);display:flex;justify-content:space-between;gap:12px;font-size:14px}.auth-links a{color:var(--primary);font-weight:800}
.flash{padding:12px 14px;border-radius:14px;margin-bottom:16px;font-weight:800}.flash.error{background:rgba(239,68,68,.1);color:var(--error)}.flash.success{background:rgba(16,185,129,.1);color:var(--success)}
.app-shell{min-height:100vh;display:grid;grid-template-columns:280px 1fr}.sidebar{background:#111827;color:#fff;padding:22px;position:sticky;top:0;height:100vh}.sidebar .logo-text span{color:rgba(255,255,255,.62)}
.nav{display:grid;gap:8px}.nav a,.nav button{width:100%;border:0;color:rgba(255,255,255,.82);background:transparent;padding:12px 14px;border-radius:14px;text-align:right;cursor:pointer;font-weight:800;font-size:15px}.nav a:hover,.nav button:hover{background:rgba(255,255,255,.08);color:#fff}
.main{padding:24px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.topbar h1{margin:0;font-size:28px}.topbar p{margin:4px 0 0;color:var(--muted)}
.user-pill{background:#fff;border:1px solid var(--border);padding:10px 14px;border-radius:999px;display:flex;gap:8px;align-items:center;box-shadow:0 6px 18px rgba(28,32,36,.04);font-weight:900}
.card,.stat-card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:20px;box-shadow:0 6px 22px rgba(28,32,36,.045)}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.stat-card span{color:var(--muted);font-weight:800}.stat-card strong{display:block;font-size:34px;margin-top:8px}
.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;min-width:850px}th,td{padding:12px;border-bottom:1px solid var(--border);text-align:right;vertical-align:top;font-size:14px}th{color:var(--muted);font-size:13px}
.badge{display:inline-flex;padding:5px 10px;border-radius:999px;background:var(--soft);font-weight:900;font-size:12px}.badge.new{background:rgba(255,90,36,.12);color:var(--primary-dark)}.badge.assigned{background:rgba(0,119,182,.12);color:var(--medical)}.badge.delivered{background:rgba(16,185,129,.12);color:var(--success)}.badge.cancelled{background:rgba(239,68,68,.12);color:var(--error)}
.mobile-container{min-height:100vh;background:var(--soft);padding:18px;max-width:560px;margin:0 auto}.mobile-header{background:linear-gradient(135deg,var(--primary),var(--primary-dark));color:#fff;padding:22px;border-radius:28px;margin-bottom:18px;box-shadow:0 18px 40px rgba(255,90,36,.24)}.mobile-header h1{margin:0;font-size:26px}.mobile-header p{margin:6px 0 0;opacity:.85}
.order-card,.store-card,.product-card{background:#fff;border-radius:22px;padding:16px;border:1px solid var(--border);margin-bottom:12px;box-shadow:0 6px 18px rgba(28,32,36,.04)}.order-card h3,.store-card h3,.product-card h3{margin:0 0 8px}.meta{color:var(--muted);font-size:13px;line-height:1.8}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
@media(max-width:980px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;border-radius:0 0 28px 28px}.nav{grid-template-columns:repeat(2,minmax(0,1fr))}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}}
@media(max-width:620px){.main{padding:16px}.topbar{align-items:flex-start;gap:12px;flex-direction:column}.cards{grid-template-columns:1fr}.form-grid.two{grid-template-columns:1fr}.auth-card{padding:24px;border-radius:24px}.nav{grid-template-columns:1fr}}


/* Tal2a updates */
.app-shell {
  direction: ltr;
  grid-template-columns: 280px 1fr;
}

.sidebar {
  direction: rtl;
  order: 0;
}

.main {
  direction: rtl;
}

body.lang-en {
  direction: ltr;
}

body.lang-en .main,
body.lang-en .sidebar,
body.lang-en .auth-card,
body.lang-en .mobile-container {
  direction: ltr;
  text-align: left;
}

body.lang-en .nav a,
body.lang-en .nav button,
body.lang-en th,
body.lang-en td {
  text-align: left;
}

.brand-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.brand-logo {
  max-width: 210px;
  width: 80%;
  height: auto;
  display: block;
}

.sidebar-logo {
  margin-bottom: 26px;
}

.sidebar-logo .brand-logo {
  max-width: 190px;
  width: 100%;
}

.customer-logo {
  max-width: 155px;
  display: block;
  margin: 0 auto 8px;
  filter: drop-shadow(0 12px 24px rgba(28,32,36,.16));
}

.customer-header {
  text-align: center;
  background: #fff;
  color: var(--text);
}

.global-lang-switch {
  position: fixed;
  z-index: 9999;
  top: 12px;
  right: 12px;
  background: #fff;
  color: var(--primary);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(28,32,36,.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 13px;
}

body.lang-en .global-lang-switch {
  right: auto;
  left: 12px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  min-height: 86px;
  box-shadow: 0 6px 18px rgba(28,32,36,.04);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.category-card span {
  font-size: 26px;
}

.category-card strong {
  font-size: 15px;
}

.category-card.active {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(255,90,36,.14);
  background: rgba(255,90,36,.06);
}

.store-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.empty-card {
  background: #fff;
  border: 1px dashed var(--border);
  color: var(--muted);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  font-weight: 800;
  margin-bottom: 12px;
}

@media (max-width: 620px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-logo {
    max-width: 190px;
  }

  .global-lang-switch {
    top: 8px;
    right: 8px;
  }
}


/* Advanced Tal2a Dashboard */
.dash-hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(255,90,36,.20), transparent 28%),
    linear-gradient(135deg, #111827, #1C2024 48%, #FF5A24);
  color: #fff;
  border-radius: 30px;
  padding: 28px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  box-shadow: 0 18px 55px rgba(28,32,36,.18);
  overflow: hidden;
  position: relative;
}

.dash-hero:after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  top: -70px;
  inset-inline-end: -45px;
}

.dash-eyebrow {
  color: rgba(255,255,255,.74);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.dash-hero h2 {
  margin: 8px 0 8px;
  font-size: 34px;
  line-height: 1.1;
}

.dash-hero p {
  margin: 0;
  color: rgba(255,255,255,.78);
  max-width: 650px;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 1;
}

.dash-action {
  background: rgba(255,255,255,.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  padding: 12px 15px;
  border-radius: 14px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.dash-action.primary {
  background: #fff;
  color: var(--primary);
}

.metric-grid.advanced {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric-card {
  color: #fff;
  border-radius: 24px;
  padding: 18px;
  min-height: 128px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 14px 32px rgba(28,32,36,.12);
  position: relative;
  overflow: hidden;
}

.metric-card:after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  bottom: -35px;
  inset-inline-end: -28px;
}

.metric-card span {
  display: block;
  opacity: .9;
  font-weight: 800;
  font-size: 13px;
}

.metric-card strong {
  display: block;
  font-size: 25px;
  margin-top: 8px;
  line-height: 1.15;
}

.metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(255,255,255,.17);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex: 0 0 auto;
}

.metric-card.blue { background: linear-gradient(135deg, #0077B6, #38BDF8); }
.metric-card.yellow { background: linear-gradient(135deg, #FFB703, #FB923C); }
.metric-card.red { background: linear-gradient(135deg, #E63946, #FF5A24); }
.metric-card.green { background: linear-gradient(135deg, #10B981, #2A9D8F); }
.metric-card.purple { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.metric-card.orange { background: linear-gradient(135deg, #FF5A24, #E04B1D); }

.dash-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.dash-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(28,32,36,.07);
}

.panel-head {
  padding: 16px 20px;
  color: #fff;
  font-weight: 900;
}

.panel-head h3 {
  margin: 0;
  font-size: 17px;
}

.panel-head.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.panel-head.split a {
  font-size: 13px;
  text-decoration: underline;
  color: #fff;
}

.gradient-purple { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.gradient-blue { background: linear-gradient(135deg, #0077B6, #38BDF8); }
.gradient-orange { background: linear-gradient(135deg, #FF5A24, #FFB703); }
.gradient-green { background: linear-gradient(135deg, #10B981, #2A9D8F); }
.gradient-red { background: linear-gradient(135deg, #E63946, #FF5A24); }

.chart-box {
  height: 310px;
  padding: 18px;
}

.chart-box.donut {
  height: 340px;
}

.chart-box.tiny {
  height: 240px;
  padding: 8px;
}

.table-wrap.clean {
  padding: 0;
}

.dash-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.dash-table th {
  background: #F8FAFC;
  color: #6B7280;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.dash-table th,
.dash-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.mini-badge {
  display: inline-flex;
  min-width: 38px;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.mini-badge.success { background: rgba(16,185,129,.12); color: #059669; }
.mini-badge.danger { background: rgba(239,68,68,.12); color: #DC2626; }
.mini-badge.warning { background: rgba(245,158,11,.14); color: #D97706; }

.activity-list,
.alerts-list {
  padding: 16px;
  display: grid;
  gap: 12px;
  max-height: 430px;
  overflow-y: auto;
}

.activity-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.avatar-bubble {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: rgba(255,90,36,.12);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: 0 0 auto;
}

.activity-content {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  flex: 1;
}

.activity-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.activity-top span,
.activity-content small {
  color: var(--muted);
  font-size: 12px;
}

.activity-content p {
  margin: 0 0 6px;
  color: #374151;
  font-size: 13px;
  line-height: 1.7;
}

.alert-row {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: .2s ease;
}

.alert-row:hover {
  background: #F8FAFC;
}

.alert-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.alert-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--primary);
  margin-top: 5px;
  flex: 0 0 auto;
}

.alert-dot.ok { background: var(--success); }
.alert-dot.orders { background: var(--primary); }
.alert-dot.riders { background: var(--promo); }
.alert-dot.stores { background: var(--medical); }
.alert-dot.products { background: var(--market); }

.mini-chart-row {
  border-top: 1px solid var(--border);
  padding: 16px;
}

.mini-chart-row h4 {
  margin: 0 0 8px;
}

body.lang-en .dash-table th,
body.lang-en .dash-table td {
  text-align: left;
}

@media (max-width: 1200px) {
  .metric-grid.advanced {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-grid-2 {
    grid-template-columns: 1fr;
  }

  .metric-grid.advanced {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .metric-grid.advanced {
    grid-template-columns: 1fr;
  }

  .dash-hero h2 {
    font-size: 27px;
  }

  .chart-box {
    height: 260px;
  }
}


/* Tal2a Realtime Processing Orders */
.processing-hero {
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 183, 3, .22), transparent 28%),
    linear-gradient(135deg, #111827, #1C2024 45%, #FF5A24);
  color: #fff;
  border-radius: 30px;
  padding: 26px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  box-shadow: 0 18px 55px rgba(28,32,36,.18);
}

.processing-hero h2 {
  margin: 8px 0;
  font-size: 33px;
  line-height: 1.1;
}

.processing-hero p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.processing-live-tools {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.live-pill {
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.live-pill span {
  width: 10px;
  height: 10px;
  background: #10B981;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(16,185,129,.16);
}

.processing-search-panel,
.processing-board {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(28,32,36,.06);
  margin-bottom: 18px;
  overflow: hidden;
}

.processing-search-form {
  padding: 20px;
}

.search-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.search-head h3 {
  margin: 0;
  font-size: 22px;
}

.quick-dates {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-dates button {
  border: 0;
  background: rgba(0,119,182,.08);
  color: #0077B6;
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
}

.processing-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.processing-filter-grid input,
.processing-filter-grid select,
.processing-search-form input,
.processing-search-form select {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
}

.processing-filter-grid input:focus,
.processing-filter-grid select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,90,36,.12);
}

.processing-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.btn.yellow {
  background: #FFB703;
  color: #1C2024;
}

.btn.red {
  background: #EF4444;
}

.processing-table-toolbar {
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.toolbar-stats {
  display: flex;
  gap: 10px;
  align-items: center;
}

.toolbar-stats span {
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 7px 11px;
  font-weight: 900;
}

.toolbar-note {
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
}

.processing-table-scroll {
  overflow: auto;
  max-height: 68vh;
}

.processing-table {
  width: 100%;
  min-width: 1650px;
  border-collapse: collapse;
}

.processing-table th,
.processing-table td {
  white-space: nowrap;
  padding: 13px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}

.processing-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F8FAFC;
  color: #6B7280;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .03em;
}

.processing-table tbody tr.delay-normal td {
  background: rgba(0,119,182,.07);
}

.processing-table tbody tr.delay-medium td {
  background: rgba(255,183,3,.17);
}

.processing-table tbody tr.delay-high td {
  background: rgba(239,68,68,.92);
  color: #fff;
  animation: orderPulse 1.4s ease-in-out infinite;
}

@keyframes orderPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

.service-chip,
.status-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 900;
  font-size: 11px;
  background: rgba(255,90,36,.12);
  color: var(--primary-dark);
}

.status-chip.delivered {
  background: rgba(16,185,129,.13);
  color: #059669;
}

.status-chip.cancelled,
.status-chip.declined_by_store,
.status-chip.payment_declined {
  background: rgba(239,68,68,.13);
  color: #DC2626;
}

.status-chip.accepted_by_driver,
.status-chip.accepted_by_store,
.status-chip.picked_up,
.status-chip.on_the_way {
  background: rgba(0,119,182,.13);
  color: #0077B6;
}

.inline-status {
  min-width: 175px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px;
  background: #fff;
  margin-bottom: 6px;
}

.mini-meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.delay-high .mini-meta {
  color: rgba(255,255,255,.78);
}

.action-buttons {
  display: flex;
  gap: 7px;
  align-items: center;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  background: #F3F4F6;
}

.icon-btn.assign { background: rgba(0,119,182,.12); }
.icon-btn.edit { background: rgba(255,183,3,.18); }
.icon-btn.cancel { background: rgba(239,68,68,.14); }

.empty-table {
  text-align: center;
  padding: 32px !important;
  color: var(--muted);
  font-weight: 900;
}

.live-toast {
  position: fixed;
  z-index: 10000;
  top: 70px;
  inset-inline-end: 18px;
  background: #111827;
  color: #fff;
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 18px 45px rgba(28,32,36,.25);
  min-width: 280px;
}

.live-toast strong {
  display: block;
  margin-bottom: 4px;
}

.live-toast span {
  color: rgba(255,255,255,.74);
}

.tal2a-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(17,24,39,.55);
  display: grid;
  place-items: center;
  padding: 20px;
}

.tal2a-modal[hidden] {
  display: none;
}

.tal2a-modal-card {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 25px 70px rgba(0,0,0,.25);
  position: relative;
}

.tal2a-modal-card.wide {
  width: min(920px, 100%);
}

.tal2a-modal-card h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.modal-x {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: #F3F4F6;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.radio-row {
  display: flex;
  gap: 8px;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  font-weight: 900;
}

.field.full {
  grid-column: 1 / -1;
}

body.lang-en .processing-table th,
body.lang-en .processing-table td {
  text-align: left;
}

@media (max-width: 980px) {
  .processing-hero,
  .search-head,
  .processing-actions-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .processing-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .processing-filter-grid {
    grid-template-columns: 1fr;
  }

  .processing-hero h2 {
    font-size: 27px;
  }
}


/* Tal2a final compact fixes */
.app-shell {
  grid-template-columns: 240px minmax(0, 1fr) !important;
}

.sidebar {
  width: 240px !important;
  padding: 18px !important;
}

.sidebar-logo .brand-logo {
  max-width: 165px !important;
}

.main {
  min-width: 0 !important;
  overflow-x: hidden !important;
  padding: 18px 20px !important;
}

.topbar {
  margin-bottom: 16px !important;
}

.topbar h1 {
  font-size: 24px !important;
}

.global-lang-switch {
  transform: scale(.9);
}

.metric-grid.advanced {
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)) !important;
  gap: 12px !important;
}

.metric-card {
  min-height: 100px !important;
  padding: 14px !important;
}

.metric-card strong {
  font-size: 20px !important;
}

.metric-icon {
  width: 38px !important;
  height: 38px !important;
  font-size: 19px !important;
}

.dash-hero {
  padding: 22px !important;
  border-radius: 24px !important;
}

.dash-hero h2 {
  font-size: 28px !important;
}

.chart-box {
  height: 250px !important;
}

.processing-hero.compact {
  padding: 18px 20px !important;
  border-radius: 24px !important;
  margin-bottom: 14px !important;
}

.processing-hero.compact h2 {
  font-size: 27px !important;
  margin: 5px 0 !important;
}

.processing-hero.compact p {
  font-size: 14px !important;
}

.processing-search-panel.compact {
  margin-bottom: 14px !important;
}

.processing-search-form {
  padding: 16px !important;
}

.search-head.compact {
  margin-bottom: 12px !important;
}

.search-head.compact h3 {
  font-size: 18px !important;
}

.quick-dates {
  gap: 6px !important;
}

.quick-dates button {
  padding: 6px 9px !important;
  font-size: 11px !important;
}

.processing-filter-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)) !important;
  gap: 10px !important;
}

.processing-filter-grid.compact input,
.processing-filter-grid.compact select {
  height: 42px !important;
  padding: 8px 11px !important;
  font-size: 13px !important;
}

.processing-actions-bar.compact {
  margin-top: 12px !important;
}

.processing-board.compact {
  border-radius: 22px !important;
}

.processing-table-toolbar {
  padding: 12px 16px !important;
}

.processing-table-scroll {
  max-height: 58vh !important;
  overflow: auto !important;
}

.processing-table.compact {
  min-width: 1320px !important;
}

.processing-table.compact th,
.processing-table.compact td {
  padding: 10px 9px !important;
  font-size: 12px !important;
  text-align: start !important;
}

.processing-table.compact th {
  font-size: 10px !important;
}

.processing-table tbody tr.delay-normal td {
  background: #fff !important;
}

.processing-table tbody tr.delay-medium td {
  background: rgba(255, 183, 3, .11) !important;
  color: var(--text) !important;
}

.processing-table tbody tr.delay-high td {
  background: rgba(239, 68, 68, .12) !important;
  color: var(--text) !important;
  animation: none !important;
  border-bottom-color: rgba(239,68,68,.24) !important;
}

.processing-table tbody tr.delay-high {
  box-shadow: inset 5px 0 0 #EF4444;
}

.processing-table tbody tr.delay-medium {
  box-shadow: inset 5px 0 0 #FFB703;
}

.processing-table tbody tr.delay-normal {
  box-shadow: inset 5px 0 0 #0077B6;
}

.inline-status {
  min-width: 145px !important;
  padding: 6px !important;
  font-size: 12px !important;
}

.service-chip,
.status-chip {
  padding: 4px 8px !important;
  font-size: 10px !important;
}

.action-buttons {
  gap: 5px !important;
}

.icon-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 9px !important;
}

.tal2a-modal-card {
  max-height: 86vh !important;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    width: 100% !important;
  }

  .main {
    padding: 14px !important;
  }

  .processing-filter-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  .processing-filter-grid.compact {
    grid-template-columns: 1fr !important;
  }

  .processing-hero.compact {
    align-items: stretch !important;
  }

  .processing-live-tools {
    width: 100% !important;
  }
}


/* Order details and items editor */
.icon-btn.details {
  background: rgba(16,185,129,.14);
}

.order-detail-box {
  display: grid;
  gap: 18px;
}

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

.detail-grid div {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.detail-grid strong {
  display: block;
  font-size: 14px;
}

.detail-items-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.detail-items-table th,
.detail-items-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: start;
}

.items-editor {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.item-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 90px 110px 110px 34px;
  gap: 8px;
  align-items: center;
}

.item-row input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
}

.item-row strong {
  background: #F8FAFC;
  border-radius: 12px;
  padding: 10px;
  text-align: center;
}

.item-row button {
  border: 0;
  background: rgba(239,68,68,.14);
  color: #DC2626;
  border-radius: 10px;
  height: 38px;
  cursor: pointer;
  font-weight: 900;
}

.processing-table.compact {
  min-width: 1450px !important;
}

@media (max-width: 760px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .item-row {
    grid-template-columns: 1fr;
  }
}


/* Tal2a emergency processing repair */
.settings-card {
  max-width: 720px;
}

.processing-table.compact {
  min-width: 1450px !important;
}

.processing-table.compact th,
.processing-table.compact td {
  padding: 10px 9px !important;
  font-size: 12px !important;
  text-align: start !important;
}

.processing-table tbody tr.delay-normal td {
  background: #fff !important;
}

.processing-table tbody tr.delay-medium td {
  background: rgba(255,183,3,.10) !important;
  color: var(--text) !important;
}

.processing-table tbody tr.delay-high td {
  background: rgba(239,68,68,.10) !important;
  color: var(--text) !important;
  animation: none !important;
}

.icon-btn.details {
  background: rgba(16,185,129,.14);
}

.order-detail-box {
  display: grid;
  gap: 18px;
}

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

.detail-grid div {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 5px;
}

.detail-grid strong {
  display: block;
  font-size: 14px;
}

.detail-items-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.detail-items-table th,
.detail-items-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: start;
}

.toolbar-note {
  display: none !important;
}

@media (max-width: 760px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Settings hotfix */
.settings-card {
  max-width: 720px;
}


/* Owner users management */
.users-hero {
  background:
    radial-gradient(circle at 10% 20%, rgba(255,183,3,.18), transparent 26%),
    linear-gradient(135deg, #111827, #1C2024 48%, #FF5A24);
  color: #fff;
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 18px 55px rgba(28,32,36,.16);
}

.users-hero h2 {
  margin: 8px 0;
  font-size: 30px;
}

.users-hero p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.users-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.field.full {
  grid-column: 1 / -1;
}

.users-table-card {
  overflow: hidden;
}

.users-table {
  min-width: 1250px;
}

.user-row-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr 1fr 1fr .8fr 1.2fr .75fr .75fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.user-row-grid input,
.user-row-grid select,
.password-inline input {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
  width: 100%;
  min-height: 38px;
}

.check-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  font-size: 12px;
}

.mini-date {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.user-actions-line {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.password-inline {
  display: flex;
  gap: 8px;
  min-width: 320px;
}

.btn.red {
  background: #EF4444;
}

@media (max-width: 1100px) {
  .users-grid {
    grid-template-columns: 1fr;
  }

  .user-row-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .password-inline {
    min-width: 100%;
  }
}

@media (max-width: 620px) {
  .user-row-grid {
    grid-template-columns: 1fr;
  }

  .users-hero h2 {
    font-size: 24px;
  }
}


/* Tal2a customer location picker */
.wide-auth {
  max-width: 680px !important;
}

.location-field {
  grid-column: 1 / -1;
}

.required-star {
  color: #EF4444;
}

.customer-location-map {
  height: 320px;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 10px;
  box-shadow: 0 8px 24px rgba(28,32,36,.06);
}

.location-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.location-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.selected-location {
  margin-top: 10px;
  background: rgba(16,185,129,.10);
  color: #047857;
  border: 1px solid rgba(16,185,129,.22);
  border-radius: 14px;
  padding: 10px 12px;
  font-weight: 900;
  font-size: 13px;
}

.leaflet-container {
  font-family: inherit;
}

@media (max-width: 620px) {
  .customer-location-map {
    height: 280px;
  }
}


/* Tal2a map search */
.map-search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}

.map-search-box input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 13px;
  outline: none;
  font-family: inherit;
}

.map-search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 90, 36, .12);
}

.map-search-results {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 10px 28px rgba(28,32,36,.08);
  max-height: 230px;
  overflow-y: auto;
}

.map-result-item {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 12px 14px;
  text-align: start;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 4px;
}

.map-result-item:hover {
  background: #F8FAFC;
}

.map-result-item strong {
  font-size: 13px;
  line-height: 1.5;
}

.map-result-item span {
  color: var(--muted);
  font-size: 12px;
}

.map-result-empty {
  padding: 13px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 620px) {
  .map-search-box {
    grid-template-columns: 1fr;
  }
}


/* Products Excel Import */
.products-import-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,183,3,.18), transparent 30%),
    linear-gradient(135deg, #111827, #1C2024 50%, #FF5A24);
  color: #fff;
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 18px 55px rgba(28,32,36,.16);
}

.products-import-hero h2 {
  margin: 8px 0;
  font-size: 30px;
}

.products-import-hero p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.import-upload-card,
.import-preview-card {
  margin-bottom: 18px;
}

.import-errors ul {
  margin: 8px 0 0;
}

.import-table-scroll {
  overflow: auto;
  max-height: 68vh;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.import-products-table {
  width: 100%;
  min-width: 1250px;
  border-collapse: collapse;
}

.import-products-table th,
.import-products-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: start;
  font-size: 13px;
}

.import-products-table th {
  position: sticky;
  top: 0;
  background: #F8FAFC;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
}

.import-products-table input,
.import-products-table select,
.import-products-table textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 9px;
  font-family: inherit;
  font-size: 13px;
}

.import-products-table textarea {
  min-width: 180px;
}

.import-products-table input[type="file"] {
  min-width: 190px;
  background: #fff;
}

.import-submit-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

@media (max-width: 620px) {
  .products-import-hero h2 {
    font-size: 24px;
  }
}


/* Store specific product flow */
.store-products-hero,
.products-import-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,183,3,.18), transparent 30%),
    linear-gradient(135deg, #111827, #1C2024 50%, #FF5A24);
  color: #fff;
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 18px 55px rgba(28,32,36,.16);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.store-products-hero h2,
.products-import-hero h2 {
  margin: 8px 0;
  font-size: 30px;
}

.store-products-hero p,
.products-import-hero p {
  margin: 0 0 6px;
  color: rgba(255,255,255,.78);
}

.store-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.store-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.import-upload-card,
.import-preview-card {
  margin-bottom: 18px;
}

.import-errors ul {
  margin: 8px 0 0;
}

.import-table-scroll {
  overflow: auto;
  max-height: 68vh;
  border: 1px solid var(--border);
  border-radius: 18px;
}

.import-products-table {
  width: 100%;
  min-width: 1150px;
  border-collapse: collapse;
}

.import-products-table th,
.import-products-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: start;
  font-size: 13px;
}

.import-products-table th {
  position: sticky;
  top: 0;
  background: #F8FAFC;
  z-index: 1;
  color: var(--muted);
  font-size: 12px;
}

.import-products-table input,
.import-products-table select,
.import-products-table textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 9px;
  font-family: inherit;
  font-size: 13px;
}

.import-products-table textarea {
  min-width: 180px;
}

.import-products-table input[type="file"] {
  min-width: 190px;
  background: #fff;
}

.import-submit-bar {
  display: flex;
  justify-content: flex-end;
  padding-top: 16px;
}

@media (max-width: 760px) {
  .store-products-hero,
  .products-import-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .store-products-hero h2,
  .products-import-hero h2 {
    font-size: 24px;
  }
}


/* Store edit, product management, customer menu */
.editable-store-card,
.product-edit-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
}

.store-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.field.full,
.store-actions.full {
  grid-column: 1 / -1;
}

.btn.red {
  background: #EF4444;
}

.product-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 8px;
  border: 1px solid var(--border);
}

.customer-products-grid {
  display: grid;
  gap: 14px;
}

.customer-product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(28,32,36,.04);
}

.customer-product-card img,
.product-placeholder {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255,90,36,.14), rgba(42,157,143,.14));
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--primary);
  font-size: 26px;
}

.customer-product-body {
  padding: 14px;
}

.customer-product-body h3 {
  margin: 0 0 6px;
}

.customer-product-body p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}

.product-price-row strong {
  color: var(--primary);
  font-size: 18px;
}

.product-price-row span {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 13px;
}

@media (min-width: 720px) {
  .customer-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Customer cart and checkout */
.floating-cart-btn {
  position: fixed;
  z-index: 9997;
  bottom: 18px;
  inset-inline-end: 18px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 999px;
  min-width: 72px;
  height: 54px;
  padding: 0 18px;
  font-size: 20px;
  box-shadow: 0 16px 38px rgba(255,90,36,.30);
  font-weight: 900;
}

.floating-cart-btn span {
  background: #fff;
  color: var(--primary);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 13px;
  margin-inline-start: 4px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(17,24,39,.55);
  display: flex;
  justify-content: flex-end;
}

.cart-drawer[hidden] {
  display: none;
}

.cart-panel {
  width: min(430px, 100%);
  background: #fff;
  height: 100vh;
  overflow-y: auto;
  padding: 20px;
  box-shadow: -18px 0 50px rgba(0,0,0,.20);
  position: relative;
}

body.lang-en .cart-panel {
  box-shadow: 18px 0 50px rgba(0,0,0,.20);
}

.cart-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #F3F4F6;
  font-size: 24px;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.cart-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-item-actions button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 9px;
  background: #F3F4F6;
  cursor: pointer;
  font-weight: 900;
}

.cart-summary {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.cart-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.cart-total {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  color: var(--primary);
  font-size: 18px;
}

.checkout-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
}

.checkout-form .field {
  display: grid;
  gap: 6px;
}

.checkout-form input,
.checkout-form select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  font-family: inherit;
}

.elevator-warning {
  background: rgba(255,183,3,.16);
  color: #92400E;
  border: 1px solid rgba(255,183,3,.30);
  border-radius: 16px;
  padding: 12px;
  font-weight: 900;
  line-height: 1.7;
}

@media (max-width: 520px) {
  .cart-panel {
    width: 100%;
  }
}


/* Instapay checkout and processing */
.registered-address-box {
  background: rgba(0,119,182,.08);
  border: 1px solid rgba(0,119,182,.18);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 5px;
  color: #075985;
}

.registered-address-box span {
  font-size: 13px;
  line-height: 1.7;
}

.instapay-box {
  background: rgba(42,157,143,.10);
  border: 1px solid rgba(42,157,143,.22);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  gap: 12px;
}

.instapay-box h3 {
  margin: 0;
}

.instapay-line,
.instapay-code-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 5px;
}

.instapay-line span,
.instapay-code-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.instapay-line strong {
  font-size: 22px;
  color: var(--primary);
  letter-spacing: .04em;
}

.instapay-code-box strong {
  font-size: 24px;
  color: #047857;
  letter-spacing: .06em;
  direction: ltr;
}

.instapay-box p {
  margin: 0;
  line-height: 1.7;
  color: #374151;
  font-weight: 800;
}

.instapay-box a {
  color: var(--primary);
  font-weight: 900;
}

.instapay-code-chip {
  direction: ltr;
  display: inline-flex;
  background: rgba(42,157,143,.12);
  color: #047857;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
}

.payment-confirm-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.payment-confirm-chip.confirmed {
  background: rgba(16,185,129,.13);
  color: #047857;
}

.payment-confirm-chip.waiting {
  background: rgba(255,183,3,.18);
  color: #92400E;
}

.payment-confirm-chip.cash {
  background: rgba(0,119,182,.12);
  color: #075985;
}


/* Cart flow fix and Instapay page */
.cart-toast {
  position: fixed;
  z-index: 9999;
  top: 14px;
  inset-inline: 16px;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(0,0,0,.20);
}

.instapay-payment-page {
  display: grid;
  gap: 14px;
}

.instapay-payment-page p {
  background: rgba(255,183,3,.14);
  border: 1px solid rgba(255,183,3,.28);
  border-radius: 18px;
  padding: 14px;
  line-height: 1.8;
  font-weight: 800;
  color: #92400E;
}

.instapay-big-line {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(28,32,36,.05);
}

.instapay-big-line span {
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.instapay-big-line strong {
  direction: ltr;
  color: var(--primary);
  font-size: 26px;
  letter-spacing: .04em;
}

.copy-code-card button {
  border: 2px dashed var(--primary);
  background: rgba(255,90,36,.08);
  color: var(--primary);
  border-radius: 16px;
  padding: 16px;
  font-size: 34px;
  font-weight: 1000;
  cursor: pointer;
  direction: ltr;
}

.copy-code-card small {
  color: var(--muted);
  font-weight: 800;
}


/* Cart address map fix */
.confirm-order-btn {
  width: 100%;
  margin-top: 10px;
  position: sticky;
  bottom: 0;
  z-index: 4;
  box-shadow: 0 -6px 18px rgba(255,90,36,.14);
}

.checkout-map-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  background: #fff;
}

.checkout-location-map {
  height: 300px;
}

.map-search-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.map-search-box input {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  font-family: inherit;
}

.map-search-results {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  max-height: 220px;
  overflow-y: auto;
}

.map-result-item {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 11px;
  display: grid;
  gap: 4px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.map-result-item:hover {
  background: #F8FAFC;
}

.map-result-item span,
.map-result-empty {
  color: var(--muted);
  font-size: 12px;
}

.map-result-empty {
  padding: 12px;
  font-weight: 800;
}

.cart-toast {
  position: fixed;
  z-index: 9999;
  top: 14px;
  inset-inline: 16px;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 14px 35px rgba(0,0,0,.20);
}

.registered-address-box {
  background: rgba(0,119,182,.08);
  border: 1px solid rgba(0,119,182,.18);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  gap: 5px;
  color: #075985;
}

.instapay-payment-page {
  display: grid;
  gap: 14px;
}

.instapay-payment-page p {
  background: rgba(255,183,3,.14);
  border: 1px solid rgba(255,183,3,.28);
  border-radius: 18px;
  padding: 14px;
  line-height: 1.8;
  font-weight: 800;
  color: #92400E;
}

.instapay-big-line {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(28,32,36,.05);
}

.instapay-big-line span {
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.instapay-big-line strong {
  direction: ltr;
  color: var(--primary);
  font-size: 26px;
  letter-spacing: .04em;
}

.copy-code-card button {
  border: 2px dashed var(--primary);
  background: rgba(255,90,36,.08);
  color: var(--primary);
  border-radius: 16px;
  padding: 16px;
  font-size: 34px;
  font-weight: 1000;
  cursor: pointer;
  direction: ltr;
}

.copy-code-card small {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 620px) {
  .map-search-box {
    grid-template-columns: 1fr;
  }

  .checkout-location-map {
    height: 260px;
  }
}


/* Checkout confirm button visibility fix */
.cart-panel {
  padding-bottom: 120px !important;
}

.confirm-order-btn {
  position: sticky !important;
  bottom: 12px !important;
  z-index: 99999 !important;
  width: 100% !important;
  min-height: 58px !important;
  border-radius: 18px !important;
  font-size: 18px !important;
  font-weight: 1000 !important;
  margin-top: 18px !important;
  box-shadow: 0 12px 30px rgba(255, 90, 36, .32) !important;
}

.checkout-form .field:last-of-type {
  margin-bottom: 16px !important;
}

@media (max-width: 620px) {
  .confirm-order-btn {
    position: fixed !important;
    left: 14px !important;
    right: 14px !important;
    bottom: 14px !important;
    width: auto !important;
  }

  .cart-panel {
    padding-bottom: 150px !important;
  }
}


/* Promo code checkout */
.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  background: #fff;
}

.promo-row .field {
  margin: 0;
}

.promo-message {
  grid-column: 1 / -1;
  font-weight: 900;
  font-size: 13px;
}

.promo-message.success {
  color: #047857;
}

.promo-message.error {
  color: #DC2626;
}

@media (max-width: 620px) {
  .promo-row {
    grid-template-columns: 1fr;
  }
}


/* Owner promo codes */
.promos-hero {
  background:
    radial-gradient(circle at 10% 20%, rgba(255,183,3,.18), transparent 30%),
    linear-gradient(135deg, #111827, #1C2024 50%, #FF5A24);
  color: #fff;
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: 0 18px 55px rgba(28,32,36,.16);
}

.promos-hero h2 {
  margin: 8px 0;
  font-size: 30px;
}

.promos-hero p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.promo-edit-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 14px;
  background: #fff;
}

.promo-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn.red {
  background: #EF4444;
}

/* Promo code inside cart calculation */
.cart-summary-promo-row {
  display: grid !important;
  gap: 8px !important;
  align-items: stretch !important;
}

.cart-promo-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  width: 100%;
}

.cart-promo-control input {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  font-family: inherit;
  min-width: 0;
}

.promo-message {
  font-weight: 900;
  font-size: 12px;
}

.promo-message.success {
  color: #047857;
}

.promo-message.error {
  color: #DC2626;
}

@media (max-width: 620px) {
  .cart-promo-control {
    grid-template-columns: 1fr;
  }

  .promos-hero h2 {
    font-size: 24px;
  }
}


/* Customer orders tracking page */
.customer-orders-page .orders-list {
  display: grid;
  gap: 16px;
}

.customer-order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(28,32,36,.06);
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.order-card-head h2 {
  margin: 6px 0 4px;
  font-size: 20px;
}

.order-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.order-number {
  color: var(--primary);
  font-weight: 1000;
  font-size: 13px;
}

.order-status {
  border-radius: 999px;
  padding: 7px 10px;
  font-weight: 1000;
  font-size: 12px;
  background: #F3F4F6;
  color: #374151;
  white-space: nowrap;
}

.order-status.status-delivered {
  background: rgba(16,185,129,.14);
  color: #047857;
}

.order-status.status-cancelled,
.order-status.status-canceled {
  background: rgba(239,68,68,.14);
  color: #DC2626;
}

.order-status.status-payment_pending_confirmation,
.order-status.status-payment_not_initiated {
  background: rgba(255,183,3,.18);
  color: #92400E;
}

.order-status.status-out_for_delivery,
.order-status.status-picked_up {
  background: rgba(0,119,182,.13);
  color: #075985;
}

.order-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 14px 0;
}

.order-progress-step {
  text-align: center;
  color: var(--muted);
  font-weight: 900;
  font-size: 11px;
  position: relative;
}

.order-progress-step span {
  width: 28px;
  height: 28px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: #E5E7EB;
  display: grid;
  place-items: center;
  color: #6B7280;
}

.order-progress-step.done span {
  background: var(--primary);
  color: #fff;
}

.order-progress-step.done small {
  color: var(--primary);
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0;
}

.order-info-grid > div,
.order-payment-box,
.order-items-box,
.order-address-box {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.order-info-grid strong,
.order-payment-box strong,
.order-items-box > strong,
.order-address-box strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.order-info-grid span,
.order-payment-box span {
  font-weight: 1000;
}

.remaining-time {
  display: block;
  margin-top: 4px;
  color: #047857;
  font-weight: 1000;
}

.remaining-time.late {
  color: #DC2626;
}

.order-payment-box {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.order-item-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

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

.order-address-box {
  margin-top: 12px;
}

.order-address-box p {
  margin: 0;
  color: #374151;
  line-height: 1.7;
}

@media (max-width: 420px) {
  .order-info-grid {
    grid-template-columns: 1fr;
  }

  .order-card-head {
    flex-direction: column;
  }
}


/* Processing realtime fix */
.processing-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,183,3,.18), transparent 30%),
    linear-gradient(135deg, #111827, #1C2024 52%, #FF3D00);
  color: #fff;
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  box-shadow: 0 18px 55px rgba(28,32,36,.16);
}

.processing-hero h1 {
  margin: 6px 0;
  font-size: 30px;
}

.processing-hero p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.processing-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.realtime-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  font-weight: 1000;
}

.realtime-pill span {
  width: 11px;
  height: 11px;
  background: #10B981;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(16,185,129,.18);
}

.processing-filter-head,
.processing-table-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.count-pill,
#ordersBadge {
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 1000;
}

.processing-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 10px;
}

.processing-filter-grid input,
.processing-filter-grid select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  font-family: inherit;
  background: #fff;
}

.processing-filter-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.processing-table-scroll {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  max-height: 72vh;
}

.processing-live-table {
  width: 100%;
  min-width: 2300px;
  border-collapse: collapse;
}

.processing-live-table th,
.processing-live-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
  font-size: 12px;
}

.processing-live-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F8FAFC;
  color: var(--muted);
  font-weight: 1000;
}

.processing-live-table tr.status-payment_pending_confirmation {
  background: rgba(255,183,3,.10);
}

.processing-live-table tr.status-order_placed {
  background: rgba(16,185,129,.08);
}

.processing-live-table tr.status-payment_not_initiated {
  background: rgba(239,68,68,.08);
}

.items-cell,
.address-cell {
  max-width: 250px;
  line-height: 1.6;
}

.discount-cell {
  color: #DC2626;
  font-weight: 900;
}

.promo-discount {
  color: #047857;
}

.instapay-chip {
  direction: ltr;
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(42,157,143,.13);
  color: #047857;
}

.pay-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 1000;
}

.pay-chip.ok {
  background: rgba(16,185,129,.13);
  color: #047857;
}

.pay-chip.wait {
  background: rgba(255,183,3,.18);
  color: #92400E;
}

.pay-chip.cash {
  background: rgba(0,119,182,.12);
  color: #075985;
}

.status-select {
  min-width: 170px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  font-family: inherit;
}

.status-select.changed {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,90,36,.12);
}

.empty-row {
  text-align: center !important;
  padding: 26px !important;
  font-weight: 900;
  color: var(--muted);
}

@media (max-width: 900px) {
  .processing-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .processing-filter-grid {
    grid-template-columns: 1fr;
  }

  .processing-live-table {
    min-width: 2100px;
  }
}


/* Customer discount total display */
.cart-before-discount {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  color: var(--muted);
}

.cart-before-discount strong {
  text-decoration: line-through;
  color: #9CA3AF;
  font-size: 15px;
}

.cart-payable-total {
  background: rgba(16,185,129,.10);
  border: 1px solid rgba(16,185,129,.20);
  border-radius: 14px;
  padding: 12px;
}

.cart-payable-total strong {
  color: #047857;
  font-size: 22px;
}

/* Live ETA decreasing bar */
.eta-live-bar {
  width: 100%;
  height: 10px;
  background: #E5E7EB;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
}

.eta-live-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #10B981, #22C55E);
  border-radius: 999px;
  transition: width .8s linear;
}

.eta-live-fill.warning {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.eta-live-fill.late {
  background: linear-gradient(90deg, #EF4444, #DC2626);
}

.remaining-time {
  font-weight: 1000;
}

.remaining-time.late {
  color: #DC2626;
}


/* Processing actions/details/assign/settings fix */
.status-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 1000;
  background: #F3F4F6;
  color: #374151;
  white-space: nowrap;
}

.status-badge.status-order_placed,
.status-badge.status-captain_assigned,
.status-badge.status-assigned {
  background: rgba(16,185,129,.13);
  color: #047857;
}

.status-badge.status-payment_pending_confirmation,
.status-badge.status-payment_not_initiated {
  background: rgba(255,183,3,.18);
  color: #92400E;
}

.status-badge.status-payment_failed,
.status-badge.status-cancelled,
.status-badge.status-canceled {
  background: rgba(239,68,68,.14);
  color: #DC2626;
}

.processing-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 260px;
}

.btn.red,
.processing-actions .red {
  background: #EF4444 !important;
  color: #fff !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(17,24,39,.58);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none;
}

.processing-modal {
  background: #fff;
  border-radius: 24px;
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 22px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #F3F4F6;
  font-size: 26px;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 16px 0;
}

.modal-grid > div,
.modal-section {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.modal-grid strong,
.modal-section strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.modal-grid span,
.modal-section p {
  font-weight: 900;
  line-height: 1.7;
}

.order-item-line,
.history-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.modal-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.modal-form select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  font-family: inherit;
}

.checkbox-line {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
}

.status-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.status-action-btn {
  border: 1px solid var(--border);
  background: #F8FAFC;
  border-radius: 16px;
  padding: 14px;
  font-weight: 1000;
  cursor: pointer;
  font-family: inherit;
}

.status-action-btn:hover {
  background: rgba(255,90,36,.10);
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 700px) {
  .modal-grid,
  .status-button-grid {
    grid-template-columns: 1fr;
  }

  .processing-actions {
    min-width: 220px;
  }
}


/* Processing clean final */
.processing-error-box {
  background: rgba(239,68,68,.12);
  color: #B91C1C;
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  font-weight: 900;
}

.status-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 1000;
  background: #F3F4F6;
  color: #374151;
  white-space: nowrap;
}

.status-badge.status-order_placed,
.status-badge.status-captain_assigned,
.status-badge.status-assigned,
.status-badge.status-processing,
.status-badge.status-accepted_by_driver {
  background: rgba(16,185,129,.13);
  color: #047857;
}

.status-badge.status-payment_pending_confirmation,
.status-badge.status-payment_not_initiated,
.status-badge.status-new,
.status-badge.status-pending {
  background: rgba(255,183,3,.18);
  color: #92400E;
}

.status-badge.status-payment_failed,
.status-badge.status-cancelled,
.status-badge.status-canceled {
  background: rgba(239,68,68,.14);
  color: #DC2626;
}

.processing-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 260px;
}

.btn.red,
.processing-actions .red {
  background: #EF4444 !important;
  color: #fff !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(17,24,39,.58);
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none;
}

.processing-modal {
  background: #fff;
  border-radius: 24px;
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 22px;
  position: relative;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}

.modal-close {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #F3F4F6;
  font-size: 26px;
  cursor: pointer;
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 10px;
  margin: 16px 0;
}

.modal-grid > div,
.modal-section {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.modal-grid strong,
.modal-section strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.modal-grid span,
.modal-section p {
  font-weight: 900;
  line-height: 1.7;
}

.order-item-line,
.history-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.modal-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.modal-form select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  font-family: inherit;
}

.checkbox-line {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 900;
}

.status-button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.status-action-btn {
  border: 1px solid var(--border);
  background: #F8FAFC;
  border-radius: 16px;
  padding: 14px;
  font-weight: 1000;
  cursor: pointer;
  font-family: inherit;
}

.status-action-btn:hover {
  background: rgba(255,90,36,.10);
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 700px) {
  .modal-grid,
  .status-button-grid {
    grid-template-columns: 1fr;
  }

  .processing-actions {
    min-width: 220px;
  }
}


/* All Orders reports page */
.all-orders-hero {
  background:
    radial-gradient(circle at 12% 18%, rgba(255,183,3,.18), transparent 30%),
    linear-gradient(135deg, #111827, #1C2024 52%, #FF5A24);
  color: #fff;
  border-radius: 28px;
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  box-shadow: 0 18px 55px rgba(28,32,36,.16);
}

.all-orders-hero h1 {
  margin: 6px 0;
  font-size: 30px;
}

.all-orders-hero p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.all-orders-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.all-orders-filter-grid .field {
  display: grid;
  gap: 6px;
}

.all-orders-filter-grid input,
.all-orders-filter-grid select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px;
  font-family: inherit;
  background: #fff;
}

.filter-actions {
  align-content: end;
  grid-template-columns: 1fr 1fr;
  display: grid !important;
  gap: 8px !important;
}

.all-orders-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.all-orders-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  max-height: 72vh;
}

.all-orders-table {
  width: 100%;
  min-width: 1700px;
  border-collapse: collapse;
}

.all-orders-table th,
.all-orders-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: start;
  vertical-align: top;
  font-size: 12px;
}

.all-orders-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #F8FAFC;
  color: var(--muted);
  font-weight: 1000;
}

.all-order-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 1000;
  background: #F3F4F6;
  color: #374151;
  white-space: nowrap;
}

.all-order-status.status-delivered {
  background: rgba(16,185,129,.13);
  color: #047857;
}

.all-order-status.status-cancelled,
.all-order-status.status-canceled,
.all-order-status.status-payment_failed {
  background: rgba(239,68,68,.14);
  color: #DC2626;
}

.all-order-status.status-payment_pending_confirmation,
.all-order-status.status-payment_not_initiated {
  background: rgba(255,183,3,.18);
  color: #92400E;
}

.all-order-status.status-order_placed,
.all-order-status.status-captain_assigned,
.all-order-status.status-out_for_delivery {
  background: rgba(0,119,182,.12);
  color: #075985;
}

@media (max-width: 900px) {
  .all-orders-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .all-orders-filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    grid-template-columns: 1fr;
  }
}


/* Processing edit and cancel actions */
.edit-order-btn {
  background: #2563EB !important;
  color: #fff !important;
}

.cancel-order-btn {
  background: #DC2626 !important;
  color: #fff !important;
}

.edit-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0;
}

.edit-order-summary > div,
.edit-order-totals {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.edit-order-summary strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.edit-items-head,
.edit-item-row {
  display: grid;
  grid-template-columns: 2fr .8fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.edit-items-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  margin: 12px 0 8px;
}

.edit-item-row {
  margin-bottom: 8px;
}

.edit-item-row input,
.edit-order-totals input,
.edit-order-form textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  font-family: inherit;
  width: 100%;
}

.edit-line-total {
  white-space: nowrap;
}

.edit-order-totals {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.edit-order-totals small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .edit-order-summary {
    grid-template-columns: 1fr;
  }

  .edit-items-head {
    display: none;
  }

  .edit-item-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
  }
}


/* Forced processing edit/cancel buttons */
.force-edit-order-btn,
.edit-order-btn {
  background: #2563EB !important;
  color: #fff !important;
}

.force-cancel-order-btn,
.cancel-order-btn {
  background: #DC2626 !important;
  color: #fff !important;
}

.edit-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
  margin: 14px 0;
}

.edit-order-summary > div,
.edit-order-totals {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.edit-order-summary strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 5px;
}

.edit-items-head,
.edit-item-row {
  display: grid;
  grid-template-columns: 2fr .8fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.edit-items-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
  margin: 12px 0 8px;
}

.edit-item-row {
  margin-bottom: 8px;
}

.edit-item-row input,
.edit-order-totals input,
.edit-order-form textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  font-family: inherit;
  width: 100%;
}

.edit-line-total {
  white-space: nowrap;
}

.edit-order-totals {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.edit-order-totals small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .edit-order-summary {
    grid-template-columns: 1fr;
  }

  .edit-items-head {
    display: none;
  }

  .edit-item-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px;
  }
}


/* Force product autocomplete final */
.edit-item-row {
  position: relative;
}

.product-suggestions-box {
  position: absolute;
  z-index: 1000000;
  top: 44px;
  inset-inline-start: 0;
  width: min(460px, 100%);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .18);
  max-height: 280px;
  overflow-y: auto;
}

.product-suggestion-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: start;
}

.product-suggestion-option:hover {
  background: rgba(255,90,36,.10);
}

.product-suggestion-option span {
  font-weight: 1000;
}

.product-suggestion-option strong {
  color: var(--primary);
  white-space: nowrap;
}

.product-suggestion-loading,
.product-suggestion-empty {
  padding: 12px;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 760px) {
  .product-suggestions-box {
    position: static;
    width: 100%;
    margin-top: 6px;
  }
}


/* All Orders final audit */
.audit-table {
  min-width: 2400px;
}

.audit-table td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.5;
}

.edit-count-pill {
  display: inline-flex;
  min-width: 30px;
  height: 30px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: rgba(37,99,235,.12);
  color: #1D4ED8;
  font-weight: 1000;
}

.all-orders-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 180px;
}

.all-order-audit-modal {
  width: min(1100px, 100%);
}

.edit-history-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  margin: 12px 0;
}

.edit-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.edit-history-head h3 {
  margin: 0;
  font-size: 16px;
}

.edit-history-head span {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.audit-old-new-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.audit-item-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}

.audit-item-line:last-child {
  border-bottom: 0;
}

@media (max-width: 800px) {
  .audit-old-new-grid {
    grid-template-columns: 1fr;
  }

  .edit-history-head {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* All Orders status permissions */
.all-order-status-btn {
  background: #7C3AED !important;
  color: #fff !important;
}

.status-change-note {
  margin-top: 12px;
  background: rgba(255,183,3,.14);
  color: #92400E;
  border: 1px solid rgba(255,183,3,.26);
  border-radius: 14px;
  padding: 12px;
  font-weight: 900;
  line-height: 1.7;
}

.status-permission-card {
  margin-bottom: 16px;
}

.status-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr)) auto;
  gap: 12px;
  align-items: center;
}

.permission-tile,
.permission-user-row {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}

.permission-tile {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-weight: 1000;
  text-transform: capitalize;
}

.permission-users-list {
  display: grid;
  gap: 10px;
}

.permission-user-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
}

.permission-user-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

@media (max-width: 900px) {
  .status-permission-grid,
  .permission-user-row {
    grid-template-columns: 1fr;
  }
}


/* Settings embedded permissions */
.settings-permissions-card {
  margin-top: 16px;
}

.settings-permissions-head,
.permissions-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.settings-permissions-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.owner-only-pill,
.role-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(124,58,237,.12);
  color: #6D28D9;
  font-weight: 1000;
  font-size: 12px;
}

.permission-mini-section {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-top: 12px;
  background: #fff;
}

.role-permission-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr)) auto;
  gap: 10px;
  align-items: center;
}

.role-permission-row label,
.permission-checkbox-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #F8FAFC;
  font-weight: 900;
}

.permissions-table-head input {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  font-family: inherit;
  min-width: 260px;
}

.settings-permissions-table-wrap {
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.settings-permissions-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.settings-permissions-table th,
.settings-permissions-table td {
  border-bottom: 1px solid var(--border);
  padding: 10px;
  text-align: start;
  font-size: 13px;
}

.settings-permissions-table th {
  background: #F8FAFC;
  color: var(--muted);
  font-weight: 1000;
}

@media (max-width: 900px) {
  .settings-permissions-head,
  .permissions-table-head {
    flex-direction: column;
    align-items: stretch;
  }

  .role-permission-row {
    grid-template-columns: 1fr;
  }

  .permissions-table-head input {
    min-width: 0;
    width: 100%;
  }
}


/* All Orders fixed layout */
.fixed-all-orders-hero,
.all-orders-hero.fixed-all-orders-hero {
  position: relative !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 20px !important;
  align-items: center !important;
  min-height: 210px !important;
  padding: 28px 34px !important;
  margin-bottom: 16px !important;
  overflow: hidden !important;
}

.all-orders-hero-text {
  position: relative !important;
  z-index: 2 !important;
  max-width: 560px !important;
}

.all-orders-hero-actions {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: flex-end !important;
  align-items: center !important;
}

.fixed-all-orders-filters,
.all-orders-filters.fixed-all-orders-filters {
  position: relative !important;
  z-index: 3 !important;
  margin: 0 0 16px 0 !important;
  padding: 18px !important;
  overflow: visible !important;
}

.fixed-filter-grid,
.all-orders-filter-grid.fixed-filter-grid {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(180px, 1fr)) !important;
  gap: 12px !important;
  align-items: end !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}

.fixed-filter-grid .field {
  position: static !important;
  display: grid !important;
  gap: 6px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.fixed-filter-grid label {
  font-weight: 900 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
}

.fixed-filter-grid input,
.fixed-filter-grid select {
  width: 100% !important;
  min-height: 46px !important;
  border: 1px solid var(--border) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  background: #fff !important;
  font-family: inherit !important;
  box-sizing: border-box !important;
}

.fixed-filter-actions {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  align-items: end !important;
}

.fixed-filter-actions .btn {
  min-height: 46px !important;
}

/* Sidebar toggle and scroll */
.admin-sidebar-toggle {
  position: fixed !important;
  top: 14px !important;
  left: 14px !important;
  z-index: 100002 !important;
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #FF5A24 !important;
  color: #fff !important;
  font-size: 24px !important;
  font-weight: 1000 !important;
  cursor: pointer !important;
  box-shadow: 0 12px 28px rgba(255, 90, 36, .28) !important;
}

.tal2a-sidebar-target {
  max-height: 100vh !important;
  height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin !important;
  transition: transform .25s ease, opacity .25s ease !important;
}

.tal2a-sidebar-target::-webkit-scrollbar {
  width: 7px !important;
}

.tal2a-sidebar-target::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.25) !important;
  border-radius: 999px !important;
}

body.tal2a-sidebar-collapsed .tal2a-sidebar-target {
  transform: translateX(-110%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.tal2a-sidebar-collapsed .tal2a-main-target,
body.tal2a-sidebar-collapsed main,
body.tal2a-sidebar-collapsed .admin-main,
body.tal2a-sidebar-collapsed .admin-content,
body.tal2a-sidebar-collapsed .dashboard-main {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 1100px) {
  .fixed-filter-grid,
  .all-orders-filter-grid.fixed-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 700px) {
  .fixed-all-orders-hero,
  .all-orders-hero.fixed-all-orders-hero {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
    padding: 22px !important;
  }

  .all-orders-hero-actions {
    justify-content: flex-start !important;
  }

  .fixed-filter-grid,
  .all-orders-filter-grid.fixed-filter-grid {
    grid-template-columns: 1fr !important;
  }

  .fixed-filter-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }
}


/* Cart before discount display fix */
.tal2a-before-discount-fixed {
  text-decoration: line-through !important;
  opacity: .55 !important;
  color: #6B7280 !important;
}

.tal2a-paid-total-fixed {
  color: #0F8B6F !important;
  font-weight: 1000 !important;
}

.tal2a-hidden-duplicate-discount {
  display: none !important;
}








/* Customer native timer only - no extra bars */
.tal2a-live-timer-box,
.tal2a-live-timer-row,
.tal2a-single-live-timer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tal2a-native-order-timer-only {
  position: relative;
}

.tal2a-native-time-seconds {
  color: #0F8B6F !important;
  font-weight: 1000 !important;
}

.tal2a-native-time-seconds strong {
  color: #FF5A24 !important;
  font-weight: 1000 !important;
}

.tal2a-native-order-timer-only.timer-warning .tal2a-native-time-seconds strong {
  color: #D97706 !important;
}

.tal2a-native-order-timer-only.timer-late .tal2a-native-time-seconds strong {
  color: #DC2626 !important;
}


/* Customer seconds timer text */
.tal2a-live-timer-box,
.tal2a-live-timer-row,
.tal2a-single-live-timer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tal2a-seconds-remaining-text {
  color: #0F8B6F !important;
  font-weight: 1000 !important;
}

.tal2a-seconds-remaining-text strong {
  color: #FF5A24 !important;
  font-weight: 1000 !important;
}


/* Tal2a countdown seconds hard fix */
.tal2a-live-timer-box,
.tal2a-live-timer-row,
.tal2a-single-live-timer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tal2a-countdown-seconds-active {
  color: #0F8B6F !important;
  font-weight: 1000 !important;
}

.tal2a-countdown-seconds-active strong {
  color: #FF5A24 !important;
  font-weight: 1000 !important;
}


/* Final countdown text fix */
.tal2a-live-timer-box,
.tal2a-live-timer-row,
.tal2a-single-live-timer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.tal2a-final-countdown-text {
  color: #0F8B6F !important;
  font-weight: 1000 !important;
}

.tal2a-final-countdown-text strong {
  color: #FF5A24 !important;
  font-weight: 1000 !important;
}


/* Customer profile and wallet */
.customer-account-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px;
  direction: rtl;
}

.customer-account-hero,
.wallet-balance-big {
  background:
    radial-gradient(circle at 10% 10%, rgba(255,183,3,.18), transparent 30%),
    linear-gradient(135deg, #111827, #1C2024 52%, #FF5A24);
  color: #fff;
  border-radius: 30px;
  padding: 26px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.customer-account-hero h1,
.wallet-balance-big strong {
  margin: 0;
  font-size: 34px;
}

.customer-account-hero p {
  color: rgba(255,255,255,.75);
  margin: 6px 0 0;
}

.customer-account-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-balance-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.account-balance-card strong {
  color: #0F8B6F;
  font-size: 24px;
}

.account-form h2,
.saved-addresses-card h2,
.wallet-transactions-card h2 {
  margin-top: 0;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.account-grid label,
.modal-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
  color: #6B7280;
}

.account-grid label.full {
  grid-column: 1 / -1;
}

.account-grid input,
.account-grid select,
.wallet-filter-form input,
.modal-form input,
.modal-form textarea {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px;
  font-family: inherit;
  background: #fff;
  color: #111827;
}

.account-submit {
  width: 100%;
  min-height: 54px;
}

.saved-address-row,
.wallet-tx-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 10px;
  background: #F8FAFC;
}

.saved-address-row p {
  margin: 6px 0;
}

.saved-address-row small,
.wallet-tx-row small {
  display: block;
  color: #6B7280;
  margin-top: 4px;
}

.saved-address-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.wallet-balance-big {
  display: grid;
  gap: 8px;
  text-align: center;
}

.wallet-balance-big strong {
  color: #fff;
  font-size: 46px;
}

.wallet-tx-row.credit strong {
  color: #0F8B6F;
}

.wallet-tx-row.debit strong {
  color: #DC2626;
}

/* Wallet admin */
.wallet-admin-filter {
  margin-bottom: 16px;
}

.wallet-filter-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
}

.wallet-admin-table {
  min-width: 1100px;
}

.wallet-admin-hero {
  min-height: 180px !important;
}

@media (max-width: 760px) {
  .customer-account-shell {
    padding: 14px;
  }

  .customer-account-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-grid,
  .wallet-filter-form {
    grid-template-columns: 1fr;
  }

  .saved-address-row,
  .wallet-tx-row {
    flex-direction: column;
  }
}


/* Customer profile/wallet nav links */
.tal2a-customer-nav-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  text-decoration: none !important;
  font-weight: 1000 !important;
  box-shadow: 0 8px 24px rgba(15,23,42,.06) !important;
  margin: 4px !important;
}

.tal2a-customer-nav-link:hover {
  color: #FF5A24 !important;
}

.tal2a-wallet-balance-chip {
  display: inline-flex !important;
  border-radius: 999px !important;
  padding: 4px 8px !important;
  background: rgba(15,139,111,.12) !important;
  color: #0F8B6F !important;
  font-size: 12px !important;
  font-weight: 1000 !important;
}

.tal2a-customer-wallet-link.wallet-disabled .tal2a-wallet-balance-chip {
  background: rgba(220,38,38,.10) !important;
  color: #DC2626 !important;
}

/* fallback floating account buttons */
.tal2a-customer-floating-account {
  position: fixed !important;
  right: 12px !important;
  bottom: 86px !important;
  z-index: 99999 !important;
  display: grid !important;
  gap: 8px !important;
  direction: rtl !important;
}

.tal2a-customer-floating-account a {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #111827 !important;
  border: 1px solid rgba(15, 23, 42, .08) !important;
  box-shadow: 0 14px 34px rgba(15,23,42,.18) !important;
  padding: 11px 14px !important;
  text-decoration: none !important;
  font-weight: 1000 !important;
}

.tal2a-customer-floating-account b {
  color: #0F8B6F !important;
}


/* Wallet checkout */
.tal2a-wallet-checkout-box {
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  padding: 16px;
  margin: 14px 0;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
  direction: rtl;
}

.wallet-checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.wallet-checkout-head strong {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 1000;
}

.wallet-checkout-head small {
  display: block;
  color: #6B7280;
  margin-top: 4px;
  font-weight: 900;
}

.wallet-checkout-head b {
  color: #0F8B6F;
}

.wallet-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 1000;
  color: #111827;
}

.wallet-switch input {
  width: 18px;
  height: 18px;
}

.wallet-checkout-result {
  margin-top: 12px;
  background: rgba(15, 139, 111, .10);
  border: 1px solid rgba(15, 139, 111, .18);
  color: #0F8B6F;
  border-radius: 16px;
  padding: 12px;
  line-height: 1.8;
  font-weight: 1000;
}

.wallet-checkout-result strong {
  color: #FF5A24;
}

.wallet-paid-full {
  opacity: .55;
}

@media (max-width: 700px) {
  .wallet-checkout-head {
    flex-direction: column;
    align-items: stretch;
  }

  .wallet-switch {
    justify-content: center;
  }
}


/* Wallet columns in admin orders */
.wallet-used-cell {
  color: #0F8B6F !important;
  font-weight: 1000 !important;
}

.wallet-status-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(16,185,129,.14);
  color: #0F8B6F;
  font-weight: 1000;
  white-space: nowrap;
}


/* Processing Board UI */
.processing-old-table-hidden {
  display: none !important;
}

.processing-board-shell {
  margin: 16px 0;
  display: grid;
  gap: 14px;
}

.processing-board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background:
    radial-gradient(circle at 0 0, rgba(255,183,3,.14), transparent 30%),
    linear-gradient(135deg, #111827, #1F2937);
  color: #fff;
  border-radius: 26px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
}

.processing-board-head h2 {
  margin: 0;
  font-size: 28px;
}

.processing-board-head p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.72);
}

.processing-board-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.board-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 1000;
}

.board-live-dot i {
  width: 9px;
  height: 9px;
  background: #22C55E;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(34,197,94,.18);
}

.processing-board-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.processing-board-stats > div {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}

.processing-board-stats span {
  display: block;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 5px;
}

.processing-board-stats strong {
  font-size: 24px;
}

.processing-board-list {
  display: grid;
  gap: 12px;
}

.processing-order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(15,23,42,.07);
  overflow: hidden;
}

.board-card-main {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1.1fr 1.15fr 1fr .95fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
}

.board-card-main > div {
  min-width: 0;
}

.board-card-main span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-top: 4px;
}

.board-card-main strong {
  display: block;
  font-weight: 1000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-card-id strong {
  color: #FF5A24;
  font-size: 18px;
}

.board-card-total strong {
  color: #0F8B6F;
  font-size: 18px;
}

.board-status-pill,
.board-payment-chip {
  display: inline-flex !important;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px !important;
  font-weight: 1000;
  margin: 0 0 5px 0 !important;
  background: rgba(37,99,235,.12);
  color: #1D4ED8 !important;
}

.board-payment-chip.cash {
  background: rgba(16,185,129,.12);
  color: #0F8B6F !important;
}

.board-payment-chip.instapay {
  background: rgba(124,58,237,.12);
  color: #6D28D9 !important;
}

.board-payment-chip.wallet {
  background: rgba(245,158,11,.16);
  color: #B45309 !important;
}

.board-status-pill.status-cancelled,
.board-status-pill.status-canceled,
.board-status-pill.status-payment_failed {
  background: rgba(220,38,38,.12);
  color: #DC2626 !important;
}

.board-status-pill.status-delivered {
  background: rgba(16,185,129,.12);
  color: #0F8B6F !important;
}

.board-expand-btn {
  border: 0;
  background: #111827;
  color: #fff;
  border-radius: 16px;
  padding: 11px 13px;
  font-family: inherit;
  font-weight: 1000;
  cursor: pointer;
  white-space: nowrap;
}

.board-expand-btn.open,
.board-expand-btn:hover {
  background: #FF5A24;
}

.board-card-details {
  border-top: 1px solid var(--border);
  background: #F8FAFC;
  padding: 16px;
}

.board-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.2fr;
  gap: 14px;
}

.board-detail-grid section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
}

.board-detail-grid h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.board-info-line,
.board-item-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.board-info-line:last-child,
.board-item-line:last-child {
  border-bottom: 0;
}

.board-info-line span,
.board-item-line span {
  color: var(--muted);
  font-weight: 900;
}

.board-info-line strong,
.board-item-line strong {
  text-align: end;
}

.board-info-line.full {
  display: grid;
  gap: 4px;
}

.board-info-line.full strong {
  text-align: start;
  white-space: normal;
}

.board-finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 8px;
}

.board-finance-grid > div {
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
}

.board-finance-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 4px;
}

.board-finance-grid strong {
  font-size: 15px;
}

.board-finance-grid .discount strong {
  color: #DC2626;
}

.board-finance-grid .wallet strong {
  color: #B45309;
}

.board-finance-grid .net {
  grid-column: 1 / -1;
  background: #ECFDF5;
  border-color: rgba(16,185,129,.25);
}

.board-finance-grid .net strong {
  color: #0F8B6F;
  font-size: 20px;
}

.board-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.board-card-actions .blue {
  background: #2563EB !important;
  color: #fff !important;
}

.board-card-actions .pay-ok {
  background: #0F8B6F !important;
  color: #fff !important;
}

.board-empty,
.board-error {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  font-weight: 1000;
}

.board-error {
  color: #DC2626;
}

.board-muted {
  color: var(--muted);
  margin: 0;
}

@media (max-width: 1200px) {
  .board-card-main {
    grid-template-columns: repeat(3, minmax(0,1fr));
  }

  .board-expand-btn {
    grid-column: 1 / -1;
  }

  .board-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .processing-board-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .processing-board-stats {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .board-card-main {
    grid-template-columns: 1fr;
  }

  .board-finance-grid {
    grid-template-columns: 1fr;
  }
}


/* Processing board keep-open and finance flow */
.board-items-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: #ECFDF5;
  border: 1px solid rgba(16,185,129,.22);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 10px;
}

.board-items-total span {
  color: #0F766E;
  font-weight: 1000;
}

.board-items-total strong {
  color: #0F8B6F;
  font-size: 18px;
}

.board-finance-flow {
  display: grid;
  gap: 8px;
}

.finance-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #F8FAFC;
}

.finance-line span {
  color: #6B7280;
  font-weight: 1000;
}

.finance-line strong {
  font-weight: 1000;
}

.finance-line.main {
  background: #EEF2FF;
  border-color: rgba(37,99,235,.18);
}

.finance-line.main strong {
  color: #1D4ED8;
}

.finance-line.plus strong {
  color: #111827;
}

.finance-line.minus {
  background: #FEF2F2;
  border-color: rgba(220,38,38,.16);
}

.finance-line.minus span,
.finance-line.minus strong {
  color: #DC2626;
}

.finance-line.subtotal {
  background: #FFF7ED;
  border-color: rgba(249,115,22,.18);
}

.finance-line.subtotal strong {
  color: #EA580C;
}

.finance-line.payable {
  background: #ECFDF5;
  border-color: rgba(16,185,129,.25);
  padding: 14px 12px;
}

.finance-line.payable span {
  color: #0F766E;
  font-size: 15px;
}

.finance-line.payable strong {
  color: #0F8B6F;
  font-size: 22px;
}

.finance-line.wallet {
  background: #FFFBEB;
  border-color: rgba(245,158,11,.24);
}

.finance-line.wallet strong {
  color: #B45309;
}

.finance-line.remaining {
  background: #F1F5F9;
}

.finance-line.remaining strong {
  color: #334155;
}

.board-expand-btn.open {
  background: #FF5A24 !important;
}


/* Agent shifts and distribution */
.agent-shifts-hero {
  min-height: 190px !important;
}

.agent-upload-card {
  margin-bottom: 16px;
}

.agent-upload-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.agent-upload-form input[type="file"],
.agent-dist-form input[type="number"] {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  font-family: inherit;
}

.agent-upload-result {
  margin-bottom: 14px;
  font-weight: 1000;
}

.agent-upload-result.ok {
  background: #ECFDF5;
  color: #0F766E;
}

.agent-upload-result.bad {
  background: #FEF2F2;
  color: #DC2626;
}

.agent-active-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.agent-active-tile {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: #F8FAFC;
}

.agent-active-tile strong,
.agent-active-tile span,
.agent-active-tile small {
  display: block;
}

.agent-active-tile strong {
  font-size: 16px;
}

.agent-active-tile span {
  color: #FF5A24;
  font-weight: 1000;
  margin-top: 4px;
}

.agent-active-tile small {
  color: var(--muted);
  margin-top: 4px;
}

.agent-shifts-table {
  min-width: 900px;
}

.agent-dist-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  align-items: end;
}

.agent-dist-form label {
  display: grid;
  gap: 6px;
  font-weight: 1000;
  color: var(--muted);
}

.agent-broadcast-line {
  grid-template-columns: auto 1fr !important;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px;
}

.agent-active-loads {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.agent-active-loads h3 {
  margin: 0 0 6px;
}

.agent-load-row {
  display: grid;
  grid-template-columns: 1fr repeat(3, auto);
  gap: 10px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  align-items: center;
}

.agent-load-row span {
  color: #6B7280;
  font-weight: 900;
}

@media (max-width: 900px) {
  .agent-upload-form,
  .agent-dist-form,
  .agent-active-grid,
  .agent-load-row {
    grid-template-columns: 1fr;
  }
}


/* Stores multi merchant, location and preparation time */
.merchant-multi-select {
  min-height: 128px;
  border-radius: 18px !important;
}

.field-help {
  display: block;
  color: #6B7280;
  font-size: 12px;
  font-weight: 800;
  margin-top: 6px;
}

.store-form-enhanced .store-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.store-form-enhanced input[name="latitude"],
.store-form-enhanced input[name="longitude"],
.store-form-enhanced input[name="preparation_minutes"] {
  font-weight: 900;
}

.editable-store-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15,23,42,.06);
}


/* Store merchant searchable picker */
.merchant-native-hidden {
  display: none !important;
}

.merchant-search-box {
  display: grid;
  gap: 10px;
}

.merchant-search-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 0 12px;
}

.merchant-search-input-wrap input {
  border: 0 !important;
  outline: 0 !important;
  padding: 14px 6px !important;
  background: transparent !important;
  font-family: inherit;
  font-weight: 900;
}

.merchant-search-input-wrap span {
  color: #FF5A24;
}

.merchant-search-results {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15,23,42,.12);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}

.merchant-result-item {
  width: 100%;
  border: 0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  text-align: start;
  border-bottom: 1px solid var(--border);
}

.merchant-result-item:last-child {
  border-bottom: 0;
}

.merchant-result-item:hover {
  background: #FFF7ED;
}

.merchant-result-item span {
  font-weight: 1000;
  color: #111827;
}

.merchant-result-item b {
  color: #FF5A24;
  white-space: nowrap;
}

.merchant-result-empty,
.merchant-empty-chip {
  padding: 12px;
  border-radius: 14px;
  background: #F8FAFC;
  color: #6B7280;
  font-weight: 900;
}

.merchant-selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.merchant-chip {
  border: 1px solid rgba(255,90,36,.22);
  background: #FFF7ED;
  color: #C2410C;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  font-family: inherit;
  cursor: pointer;
}

.merchant-chip strong {
  font-size: 13px;
}

.merchant-chip span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255,90,36,.16);
  font-weight: 1000;
}

.merchant-chip:hover {
  background: #FFEDD5;
}




















/* TAL2A_STORE_CARDS_V4_START */
.stores-v4-page {
  display: grid;
  gap: 16px;
}

.stores-v4-header {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  box-shadow: 0 8px 22px rgba(28,32,36,.04);
}

.stores-v4-kicker {
  color: var(--primary);
  font-weight: 900;
  font-size: 12px;
}

.stores-v4-header h2 {
  margin: 4px 0 6px;
  font-size: 28px;
}

.stores-v4-header p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.stores-v4-header > strong {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255,90,36,.12);
  color: var(--primary-dark);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 900;
}

.stores-v4-searchbar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.stores-v4-searchbar input {
  flex: 1;
  border: 1px solid var(--border);
  background: var(--soft);
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}

.stores-v4-searchbar input:focus {
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,90,36,.10);
}

.stores-v4-searchbar span {
  white-space: nowrap;
  background: rgba(255,90,36,.10);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 900;
  font-size: 13px;
}

.stores-v4-addbox {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 8px 22px rgba(28,32,36,.035);
}

.stores-v4-addbox summary {
  list-style: none;
  cursor: pointer;
}

.stores-v4-addbox summary::-webkit-details-marker {
  display: none;
}

.stores-v4-addbox summary strong {
  display: block;
  font-size: 18px;
}

.stores-v4-addbox summary small {
  color: var(--muted);
}

.store-v4-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.store-v4-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.store-v4-grid .wide {
  grid-column: 1 / -1;
}

.store-v4-grid .field label {
  font-size: 12px;
}

.store-v4-grid .field input,
.store-v4-grid .field select,
.store-v4-grid .field textarea {
  padding: 10px 11px;
  border-radius: 12px;
  font-size: 14px;
}

.store-v4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.store-v4-actions .btn {
  padding: 10px 13px;
  border-radius: 12px;
}

.stores-v4-gridcards {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 16px !important;
  align-items: start !important;
}

.store-card-v4 {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(28,32,36,.05);
  min-width: 0;
}

.store-card-v4.is-open {
  grid-column: 1 / -1;
  background: #fffdfb;
}

.store-card-v4-top {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
}

.store-card-v4-logo {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, #1ddad0, #15c6be);
  box-shadow: 0 10px 18px rgba(29,218,208,.18);
  display: grid;
  place-items: center;
  color: #fff;
}

.store-card-v4-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-v4-logo span {
  font-size: 24px;
  font-weight: 900;
}

.store-card-v4-text {
  min-width: 0;
}

.store-card-v4-badge {
  display: inline-flex;
  background: rgba(29,218,208,.12);
  color: #0f766e;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 900;
}

.store-card-v4-text h3 {
  margin: 8px 0 5px;
  font-size: 20px;
  line-height: 1.3;
}

.store-card-v4-text p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  min-height: 36px;
}

.store-card-v4-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.store-card-v4-stats div {
  background: #f8fbfb;
  border: 1px solid #e6eeee;
  border-radius: 16px;
  padding: 10px 8px;
  text-align: center;
}

.store-card-v4-stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.store-card-v4-stats strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.store-card-v4-open {
  width: 100%;
  margin-top: 14px;
  border: 0;
  border-radius: 14px;
  padding: 11px 12px;
  background: #111827;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.store-card-v4-details {
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.store-card-v4.is-open .store-card-v4-details {
  display: block;
}

.merchant-picker-v4 {
  position: relative;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
}

.merchant-search-v4 {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  outline: none;
}

.merchant-search-v4:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,90,36,.1);
}

.merchant-results-v4 {
  display: none;
  position: absolute;
  left: 10px;
  right: 10px;
  top: 54px;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(28,32,36,.12);
  overflow: hidden;
  max-height: 250px;
  overflow-y: auto;
}

.merchant-results-v4.show {
  display: block;
}

.merchant-result-v4 {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 11px 12px;
  text-align: right;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.merchant-result-v4:hover {
  background: rgba(29,218,208,.08);
}

.merchant-result-v4 strong,
.merchant-result-v4 small {
  display: block;
}

.merchant-result-v4 small {
  margin-top: 4px;
  color: var(--muted);
}

.merchant-result-empty-v4 {
  padding: 12px;
  color: var(--muted);
  font-weight: 800;
}

.selected-title-v4 {
  margin-top: 10px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.selected-merchants-v4 {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.selected-empty-v4 {
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--border);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
}

.merchant-chip-v4 {
  border: 0;
  background: rgba(42,157,143,.1);
  color: #0f766e;
  border-radius: 999px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 900;
  max-width: 100%;
}

.merchant-chip-v4 span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.merchant-chip-v4 b {
  background: rgba(15,118,110,.15);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.stores-v4-empty {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 18px;
  padding: 16px;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 1100px) {
  .store-v4-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .stores-v4-header,
  .stores-v4-searchbar {
    flex-direction: column;
    align-items: stretch;
  }

  .stores-v4-gridcards,
  .store-v4-grid {
    grid-template-columns: 1fr !important;
  }

  .store-v4-actions .btn {
    width: 100%;
  }
}
/* TAL2A_STORE_CARDS_V4_END */
