:root {
  --bg: #FBF7F7;
  --panel: #FFFFFF;
  --panel-2: #FFF6F8;
  --accent: #db2777;
  --accent-2: #F6C6CF;
  --accent-3: #D8A84D;
  --text: #222222;
  --muted: #5f6a6a;
  --good: #1E7A5A;
  --warn: #D8A84D;
  --shadow: 0 10px 40px rgba(18, 38, 30, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

header {
  padding: 20px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Store dashboard 2026: Partner Advantage overview */
.store-shell.overview-mode.with-sidebar {
  --sidebar-width: 286px;
  background:
    radial-gradient(circle at 68% 0%, rgba(30, 167, 108, 0.055), transparent 32%),
    #f7faf9;
}

.store-shell.overview-mode .store-side-nav {
  padding: 24px 22px;
  background:
    radial-gradient(circle at 20% 12%, rgba(0, 183, 117, 0.18), transparent 28%),
    linear-gradient(165deg, #003d37 0%, #002b2d 54%, #00453b 100%);
}

.store-shell.overview-mode .store-side-brand {
  font-size: 1.7rem;
  letter-spacing: -0.045em;
}

.store-shell.overview-mode .store-side-brand::before {
  width: 42px;
  height: 48px;
  flex-basis: 42px;
  border-radius: 50% 50% 50% 10px;
  background: linear-gradient(145deg, #17c978, #05a862);
  transform: rotate(-6deg);
}

.store-shell.overview-mode .store-side-nav nav {
  gap: 10px;
}

.store-shell.overview-mode .store-side-nav nav button,
.store-shell.overview-mode .store-side-nav nav a {
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 1rem;
}

.store-shell.overview-mode .store-side-nav nav button.active,
.store-shell.overview-mode .store-side-nav nav button:hover,
.store-shell.overview-mode .store-side-nav nav a:hover {
  background: linear-gradient(135deg, #079b58, #00b467);
  box-shadow: 0 12px 28px rgba(0, 159, 91, 0.2);
}

.store-shell.overview-mode .store-support-card {
  align-self: end;
  padding: 20px;
  gap: 14px;
  border: 1px solid rgba(64, 230, 157, 0.2);
  background: linear-gradient(155deg, rgba(0, 137, 89, 0.72), rgba(0, 91, 76, 0.78));
}

.store-saving-title {
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.35;
}

.store-support-card p {
  margin: 0;
  color: rgba(255,255,255,0.83);
  line-height: 1.55;
  font-size: 0.9rem;
}

.store-rewards-cta {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  background: #0fc76f;
  color: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
}

.store-shell.overview-mode .store-support-link {
  display: none;
}

.store-overview-main {
  width: min(1540px, calc(100% - 52px));
  padding-top: 22px;
}

.overview-mode .store-topbar {
  position: relative;
  align-items: end;
  padding-bottom: 18px;
}

.overview-mode .store-topbar h1 {
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  letter-spacing: -0.045em;
  color: #101828;
}

.overview-mode .store-topbar-actions {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: flex-start;
  margin-top: 18px;
  padding-right: 310px;
}

.overview-mode .store-topbar-actions input,
.overview-mode .store-topbar-actions .btn {
  min-height: 50px;
  border-radius: 13px;
}

.overview-mode .store-topbar-actions .primary {
  min-width: 210px;
  background: linear-gradient(135deg, #078846, #00a85d);
}

.store-account-chip {
  position: absolute;
  top: 0;
  right: 0;
  width: 290px;
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid #e1e8e5;
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 22px rgba(15, 53, 42, 0.06);
}

.store-account-chip > span { color: #078846; font-size: 1.2rem; }
.store-account-chip strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.store-account-chip i { margin-left: auto; font-style: normal; }

.partner-advantage {
  display: grid;
  grid-template-columns: 86px minmax(230px, 1.1fr) minmax(300px, 1.2fr) minmax(240px, 0.9fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 178px;
  margin: 2px 0 18px;
  padding: 22px 24px;
  border: 1px solid #bde8d3;
  border-radius: 15px;
  background:
    radial-gradient(circle at 45% 0%, rgba(15, 190, 105, 0.09), transparent 35%),
    linear-gradient(115deg, #f5fffa, #fbfffd);
  box-shadow: 0 12px 28px rgba(8, 83, 57, 0.045);
}

.partner-advantage.hidden { display: none !important; }

.partner-advantage-medal {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 12px solid #d9f6e7;
  border-radius: 50%;
  background: linear-gradient(145deg, #008c4f, #00b666);
  color: #fff;
  font-size: 2rem;
  box-shadow: 0 11px 22px rgba(0, 142, 80, 0.18);
}

.partner-advantage-title,
.partner-advantage-count {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.partner-advantage-title h2 { margin: 0; font-size: 1.25rem; }
.partner-advantage-title span { color: #667085; }
.partner-advantage-count { margin-top: 18px; }
.partner-advantage-count strong { font-size: 2.1rem; color: #101828; }
.partner-advantage-count span { color: #475467; font-weight: 700; }
.partner-advantage-intro p { margin: 12px 0 0; color: #344054; font-size: 0.88rem; line-height: 1.4; }

.partner-advantage-progress { text-align: center; }
.advantage-progress-dots { display: flex; align-items: center; justify-content: center; }
.advantage-progress-dots span {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 3px solid #c9cfcc;
  border-radius: 50%;
  background: #fff;
  color: #fff;
  font-weight: 900;
}
.advantage-progress-dots span + span { margin-left: 38px; }
.advantage-progress-dots span + span::before {
  content: '';
  position: absolute;
  right: 31px;
  width: 41px;
  height: 3px;
  background: #c9cfcc;
}
.advantage-progress-dots span.complete { border-color: #049654; background: #049654; }
.advantage-progress-dots span.complete::before { background: #049654; }
.partner-advantage-progress p { margin: 14px 0 2px; font-size: 0.85rem; }
.partner-advantage-progress > span { color: #008b4e; font-size: 0.85rem; font-weight: 900; }

.partner-advantage-tier {
  display: grid;
  gap: 6px;
  padding-left: 24px;
  border-left: 1px solid #dbe9e2;
}
.partner-advantage-tier > span { color: #667085; font-size: 0.78rem; }
.partner-advantage-tier small { margin-top: 2px; color: #344054; }
.advantage-tier-pill { width: fit-content; padding: 5px 14px; border-radius: 99px; font-size: 0.8rem; }
.advantage-tier-pill.normal { background: #dcf5e7; color: #087743; }
.advantage-tier-pill.partner { background: #fff0cf; color: #ad6100; }
.advantage-tier-pill.plus { background: #e8edff; color: #344bc0; }
.advantage-tier-pill.elite { background: #e5f8f1; color: #007a54; }
.advantage-tier-pill.next { background: #fff0cf; color: #ad6100; }

.advantage-rewards-link {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #15915c;
  border-radius: 10px;
  background: #fff;
  color: #087744;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}
.advantage-rewards-link span { margin-left: 10px; font-size: 1.2rem; }

.overview-mode .store-stats {
  gap: 16px;
  margin: 0 0 18px;
}

.overview-mode .store-stat-card {
  min-height: 126px;
  grid-template-columns: 58px 1fr;
  grid-template-rows: auto auto auto;
  justify-items: start;
  align-content: center;
  column-gap: 14px;
  text-align: left;
}
.overview-mode .store-stat-card .stat-icon { grid-row: 1 / 4; width: 52px; height: 52px; margin: 0; }
.overview-mode .store-stat-card strong { font-size: 1.9rem; line-height: 1; }

.overview-mode .store-board {
  border: 1px solid #e2e9e6;
  box-shadow: 0 14px 36px rgba(17, 56, 44, 0.055);
}

.overview-mode .store-toolbar {
  grid-template-columns: minmax(320px, 1.5fr) minmax(270px, 1fr) 130px 190px;
}

@media (max-width: 1320px) {
  .partner-advantage {
    grid-template-columns: 70px 1fr 1.25fr 1fr;
  }
  .advantage-rewards-link { grid-column: 2 / -1; justify-self: end; }
}

@media (max-width: 980px) {
  .store-shell.overview-mode.with-sidebar { display: block; }
  .store-overview-main { width: min(100% - 28px, 760px); padding-top: 18px; }
  .partner-advantage { grid-template-columns: 64px 1fr; gap: 18px; }
  .partner-advantage-progress,
  .partner-advantage-tier { grid-column: 1 / -1; }
  .partner-advantage-tier { padding: 16px 0 0; border-left: 0; border-top: 1px solid #dbe9e2; }
  .advantage-rewards-link { grid-column: 1 / -1; width: 100%; }
  .overview-mode .store-topbar-actions { padding-right: 0; }
  .store-account-chip { position: static; width: 100%; order: -1; }
  .overview-mode .store-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-mode .store-toolbar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .overview-mode .store-topbar { display: block; }
  .overview-mode .store-topbar h1 { font-size: 1.65rem; }
  .overview-mode .store-topbar-actions > * { width: 100%; }
  .partner-advantage { padding: 18px; grid-template-columns: 52px 1fr; }
  .partner-advantage-medal { width: 52px; height: 52px; border-width: 7px; font-size: 1.25rem; }
  .partner-advantage-count { align-items: center; }
  .partner-advantage-count strong { font-size: 1.75rem; }
  .advantage-progress-dots span { width: 28px; height: 28px; }
  .advantage-progress-dots span + span { margin-left: 22px; }
  .advantage-progress-dots span + span::before { right: 25px; width: 27px; }
  .overview-mode .store-stats { grid-template-columns: 1fr; }
  .overview-mode .store-stat-card { min-height: 112px; }
  .overview-mode .store-toolbar { grid-template-columns: 1fr; }
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1f8fff, #20c997 72%);
  color: #ffffff;
  font-size: 1.65rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(25, 140, 122, 0.22);
}

.logo {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  align-items: center;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  text-decoration: none;
  padding-inline: 16px;
}

.brand .logo {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(25, 140, 122, 0.18);
}

.hero {
  padding: 42px 0;
}

.hero-simple-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.card,
.soft-card {
  background: var(--panel);
  border: 1px solid rgba(18, 38, 30, 0.04);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(16,24,30,0.06);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  display: inline-flex;
  padding: 6px 10px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(219, 39, 119, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  margin: 0 0 16px;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--text);
}

.hero p {
  color: var(--muted);
  line-height: 1.75;
  max-width: 680px;
}

/* Admin list modern rows */
.admin-list {
  display: grid;
  gap: 12px;
}

.admin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfbfc);
  border: 1px solid rgba(34,34,34,0.06);
}

.admin-row-main {
  display: grid;
  gap: 6px;
}

.admin-row-title {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.admin-row-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-row-side {
  display: flex;
  gap: 10px;
  align-items: center;
}

.badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.badge.created { background: rgba(227, 242, 253, 0.6); color: #0b63a8; }
.badge.picked { background: rgba(255, 243, 205, 0.6); color: #a65b00; }
.badge.delivered { background: rgba(220, 247, 237, 0.6); color: #087f5b; }

.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.96rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(219, 39, 119,0.18);
  padding: 16px 28px;
  font-size: 1.05rem;
}

.login-submit {
  position: relative;
  width: 100%;
  margin-top: 4px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #0f8d5f 0%, #18b985 48%, #1f8fff 100%);
  box-shadow:
    0 18px 34px rgba(15, 141, 95, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  letter-spacing: -0.01em;
  overflow: hidden;
}

.login-submit::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.login-submit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 42px rgba(15, 141, 95, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.login-submit:hover::after {
  transform: translateX(120%);
}

.login-submit:focus-visible {
  outline: 3px solid rgba(31, 143, 255, 0.22);
  outline-offset: 4px;
}

.btn.secondary {
  background: var(--accent-2);
  color: #111;
  border: none;
  padding: 12px 20px;
  box-shadow: 0 8px 20px rgba(246,198,207,0.12);
}

.trust-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.trust-bar span {
  background: rgba(219, 39, 119, 0.08);
  color: var(--accent);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-image-card {
  display: none;
}

.landing-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 8%, rgba(31, 143, 255, 0.13), transparent 30%),
    radial-gradient(circle at 88% 16%, rgba(32, 201, 151, 0.14), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, #fff7fb 100%);
}

.landing-page header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(18px);
}

.landing-hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
}

.landing-hero .hero-simple-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
}

.landing-hero .hero-copy {
  max-width: 720px;
}

.landing-hero h1 {
  color: #0f172a;
}

.landing-hero p {
  font-size: 1.08rem;
}

.landing-visual {
  position: relative;
  border: 1px solid rgba(219, 39, 119, 0.12);
  border-radius: 38px;
  padding: 24px;
  min-height: 430px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.95), rgba(237, 255, 249, 0.82)),
    radial-gradient(circle at 24% 24%, rgba(31, 143, 255, 0.14), transparent 32%);
  box-shadow: 0 34px 80px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.landing-visual::before {
  content: "";
  position: absolute;
  inset: 20px;
  border: 8px solid rgba(32, 201, 151, 0.24);
  border-right-color: rgba(31, 143, 255, 0.28);
  border-radius: 32px;
}

.delivery-illustration,
.landing-logo-panel {
  position: relative;
  height: 315px;
  z-index: 1;
}

.landing-logo-panel {
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  text-align: center;
  padding: 28px 22px;
}

.landing-logo-panel img {
  width: min(280px, 72%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14);
}

.landing-logo-copy {
  display: grid;
  gap: 6px;
  max-width: 360px;
}

.landing-logo-copy strong {
  font-size: 1.15rem;
  color: #0f172a;
}

.landing-logo-copy span {
  color: var(--muted);
  line-height: 1.6;
}

.door-panel {
  position: absolute;
  right: 34px;
  top: 54px;
  width: 138px;
  height: 210px;
  border-radius: 18px 18px 14px 14px;
  background: linear-gradient(145deg, #1f8fff, #67d9c4);
  box-shadow: -18px 18px 34px rgba(31, 143, 255, 0.22);
  transform: perspective(500px) rotateY(-14deg);
}

.door-panel::before,
.door-panel::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  height: 64px;
  border: 3px solid rgba(255, 255, 255, 0.42);
  border-radius: 10px;
}

.door-panel::before {
  top: 34px;
}

.door-panel::after {
  bottom: 34px;
}

.medicine-bag {
  position: absolute;
  left: 46px;
  bottom: 8px;
  width: 265px;
  height: 185px;
  display: grid;
  place-items: center;
  gap: 12px;
  align-content: center;
  border-radius: 14px 14px 24px 24px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 26px 44px rgba(15, 23, 42, 0.13);
}

.medicine-bag::before {
  content: "";
  position: absolute;
  top: -34px;
  width: 100px;
  height: 48px;
  border: 14px solid #ffffff;
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06);
}

.bag-plus {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 20px;
  color: #ffffff;
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #1f8fff, #27c86f);
}

.medicine-bag strong {
  font-size: 1.65rem;
  letter-spacing: -0.05em;
  color: #1f8fff;
}

.pill-card {
  position: absolute;
  top: 92px;
  width: 82px;
  height: 132px;
  border-radius: 18px;
  background:
    repeating-linear-gradient(180deg, transparent 0 22px, rgba(15, 23, 42, 0.06) 22px 24px),
    linear-gradient(145deg, #ffffff, #dcfce7);
  border: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.1);
}

.pill-card-one {
  left: 92px;
  transform: rotate(-13deg);
}

.pill-card-two {
  left: 188px;
  top: 80px;
  transform: rotate(13deg);
}

.spark {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #20c997;
  transform: rotate(45deg);
  border-radius: 6px;
  box-shadow: 0 0 0 8px rgba(32, 201, 151, 0.12);
}

.spark-one {
  left: 60px;
  top: 78px;
}

.spark-two {
  right: 205px;
  top: 32px;
  width: 14px;
  height: 14px;
  background: #1f8fff;
}

.visual-caption {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.visual-caption strong {
  color: #0f172a;
}

.visual-caption span {
  color: var(--muted);
  line-height: 1.5;
}

.section {
  padding: 36px 0;
}

.simple-section h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 18px;
}

.feature-grid.one-column,
.feature-grid.two-column {
  display: grid;
  gap: 18px;
}

.feature-grid.one-column {
  grid-template-columns: 1fr;
}

.feature-grid.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.steps-grid.simple-steps {
  display: grid;
  grid-template-columns: auto 40px auto 40px auto;
  align-items: center;
  gap: 12px;
  justify-items: center;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  background: transparent;
  box-shadow: none;
}

.step-card {
  border-radius: 24px;
  padding: 24px;
  background: var(--panel);
}

.step-card h3,
.feature-card h3 {
  margin: 0 0 8px;
}

.step-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
}

.final-cta .cta-card {
  text-align: center;
  border-radius: 28px;
}

.final-cta h2 {
  margin-bottom: 12px;
}

form {
  display: grid;
  gap: 14px;
}

.panel-form {
  display: grid;
  gap: 14px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 20, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 20;
}

.delete-modal-backdrop {
  background: rgba(10, 12, 18, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

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

.modal-card {
  width: min(680px, 100%);
  background: #0d1833;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.delete-modal-card {
  width: min(520px, 100%);
  background: #ffffff;
  border: 1px solid #e5e9f0;
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.24);
}

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

.delete-modal-copy {
  margin: 0;
  color: #526072;
  line-height: 1.55;
  font-size: 0.98rem;
}

.delete-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.btn.danger {
  border: 1px solid #ef9aa4;
  background: #d92d20;
  color: #ffffff;
}

.btn.danger:hover {
  background: #b42318;
  border-color: #b42318;
}

.status-banner {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(79, 209, 197, 0.12);
  color: var(--accent);
  font-weight: 700;
}


label {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(18,38,30,0.06);
  background: #ffffff;
  color: var(--text);
  border-radius: 14px;
  padding: 14px;
  font: inherit;
}

textarea {
  resize: vertical;
}

.inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.delivery-options {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.delivery-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  padding: 10px 12px;
  border-radius: 12px;
}

.section {
  padding: 34px 0;
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.7rem);
}

.section-copy {
  max-width: 780px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.02rem;
}

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

.step-card,
.quote-card,
.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 18px;
}

.step-card {
  display: grid;
  gap: 8px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(79, 209, 197, 0.18);
  color: var(--accent);
  font-weight: 800;
}

.step-card p,
.quote-card p,
.faq-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.cta-card {
  text-align: center;
  padding: 28px;
}

.cta-card p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

/* Login form color adjustments */
.card .panel-form input,
.card .panel-form select,
.card .panel-form textarea {
  background: #ffffff;
  border: 1px solid rgba(18,38,30,0.06);
  color: var(--text);
}

.card .panel-form input:focus,
.card .panel-form select:focus,
.card .panel-form textarea:focus {
  outline: none;
  box-shadow: 0 10px 30px rgba(219, 39, 119,0.12);
  border-color: var(--accent);
}

/* Make login-like card centered for smaller viewports */
.container.login-center {
  max-width: 540px;
  margin-top: 36px;
}

.contact-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Removed old dashboard styles to simplify the page */

.dashboard {
  padding: 18px 0 36px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.dashboard-grid .panel-main {
  grid-row: span 3;
  min-width: 0;
}

.panel-side {
  display: grid;
  gap: 14px;
}

.panel-header {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.35rem;
}

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

.order-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(18, 38, 30, 0.08);
  border-radius: 14px;
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.order-item strong,
.order-item .order-meta {
  overflow-wrap: anywhere;
}

.order-item .cta-row {
  justify-content: flex-end;
  margin-top: 10px;
}

.order-item .btn {
  padding: 9px 12px;
  font-size: 0.85rem;
}

.order-details .detail-card {
  background: #ffffff;
  border: 1px solid rgba(18, 38, 30, 0.06);
  box-shadow: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.stats-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.stat-pill {
  display: grid;
  gap: 4px;
  min-width: 90px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(12, 24, 40, 0.05);
}

.stat-pill span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-pill strong {
  font-size: 1.1rem;
}

.filter-box {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.search-box input {
  min-width: 240px;
}

.filter-box select {
  min-width: 140px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.detail-page-card {
  padding: 28px;
}

.detail-page-view {
  display: grid;
  gap: 16px;
}

.details-page-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(188, 240, 214, 0.4), transparent 28%),
    linear-gradient(180deg, #f4f8fc 0%, #edf3f9 100%);
}

.details-page-main {
  min-height: 100vh;
  padding: 28px;
}

.details-page-wrap {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  gap: 20px;
}

.details-page-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.details-page-brand img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  background: #ffffff;
}

.details-page-brand strong {
  display: block;
  font-size: 1.2rem;
  color: #162033;
}

.details-page-brand span {
  color: #66748b;
}

.details-page-shell {
  display: grid;
  gap: 22px;
}

.details-page-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px;
  border: 1px solid #dfe8f2;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
}

.details-topbar-card {
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.details-topbar-brand {
  flex: 0 0 auto;
}

.details-topbar-brand img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.details-topbar-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, #d9e2ee 18%, #d9e2ee 82%, transparent);
}

.details-topbar-title h1 {
  margin: 6px 0 0;
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  color: #162033;
  line-height: 1;
}

.details-topbar-order {
  display: grid;
  gap: 4px;
}

.details-topbar-order span {
  color: #63708a;
  font-size: 0.9rem;
  font-weight: 800;
}

.details-topbar-order strong {
  color: #5b34d6;
  font-size: 1.15rem;
  font-weight: 900;
}

.details-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 900;
  white-space: nowrap;
}

.details-status-chip.created,
.details-status-chip.scheduled {
  background: #eef2ff;
  color: #4f46e5;
}

.details-status-chip.active {
  background: #fce7f3;
  color: #be185d;
}

.details-status-chip.delivered {
  background: #e0f7ee;
  color: #0f8b54;
}

.details-status-chip.cancelled {
  background: #fde2e2;
  color: #b42318;
}

.details-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fbe2ea, #f6d5de);
  color: #1f2937;
  text-decoration: none;
  font-weight: 900;
}

.details-back-pill:hover {
  filter: brightness(0.98);
}

.details-page-topbar h1 {
  margin: 6px 0 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: #162033;
}

.details-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.detail-copy-feedback {
  min-height: 24px;
  color: #0a8f55;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.detail-copy-feedback.show {
  opacity: 1;
}

.detail-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.feature-card {
  background: var(--panel-2);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.feature-card span {
  color: var(--muted);
  font-size: 0.95rem;
}

.customer-summary-card {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.summary-chip {
  display: grid;
  gap: 4px;
  min-width: 90px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
}

.summary-chip span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.summary-chip strong {
  font-size: 1.1rem;
}

/* Removed old order list styles */

.order-item:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 209, 197, 0.5);
}

.order-item.active {
  border-color: rgba(79, 209, 197, 0.85);
}

.order-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.order-details {
  display: grid;
  gap: 14px;
}

.proof-image {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Admin page tweaks */
.admin-small {
  font-size: 0.95rem;
}

#admin-list .feature-card {
  margin-bottom: 12px;
}

.detail-card {
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 8px;
}

.detail-card strong {
  color: var(--text);
}

.empty-state {
  display: grid;
  gap: 6px;
  color: var(--muted);
  padding: 18px 0;
}

.badge {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 700;
}

.status-pill,
.proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-pending {
  background: rgba(251, 191, 36, 0.18);
  color: var(--warn);
}

.status-picked {
  background: rgba(79, 209, 197, 0.18);
  color: var(--accent);
}

.status-delivered {
  background: rgba(52, 211, 153, 0.18);
  color: var(--good);
}

.proof-pill {
  background: rgba(139, 92, 246, 0.18);
  color: #d9c8ff;
}

.badge.same-day {
  background: rgba(52, 211, 153, 0.18);
  color: var(--good);
}

.badge.scheduled {
  background: rgba(251, 191, 36, 0.18);
  color: var(--warn);
}

.order-item a {
  color: var(--accent);
  text-decoration: none;
}

.order-item a:hover {
  text-decoration: underline;
}

.cta-row.compact {
  margin-top: 10px;
}

@media (max-width: 850px) {
  .landing-hero {
    min-height: auto;
    padding-top: 28px;
  }

  .landing-hero .hero-simple-grid {
    grid-template-columns: 1fr;
  }

  .landing-visual {
    min-height: 340px;
    border-radius: 28px;
    padding: 18px;
  }

  .delivery-illustration {
    height: 238px;
  }

  .medicine-bag {
    left: 22px;
    width: min(230px, 68vw);
    height: 152px;
  }

  .door-panel {
    right: 18px;
    width: 108px;
    height: 172px;
  }

  .pill-card {
    width: 62px;
    height: 102px;
  }

  .pill-card-one {
    left: 68px;
    top: 78px;
  }

  .pill-card-two {
    left: 142px;
    top: 68px;
  }

  .spark-two {
    right: 158px;
  }

  .inline,
  .feature-grid,
  .detail-grid,
  .dashboard-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid .panel-main {
    grid-row: auto;
  }

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

  .order-item .cta-row {
    justify-content: flex-start;
  }

  .panel-main {
    grid-row: auto;
  }

  .detail-page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .details-page-main {
    padding: 18px;
  }

  .details-page-topbar {
    padding: 22px 18px;
    border-radius: 22px;
    flex-direction: column;
  }

  .details-topbar-card {
    align-items: flex-start;
  }

  .details-topbar-divider {
    display: none;
  }

  .details-layout {
    grid-template-columns: 1fr;
  }

  .details-layout-board > .details-info-card,
  .details-layout-board > .details-timeline-card,
  .details-layout-board > .details-side-stack {
    grid-column: auto;
    grid-row: auto;
  }

  .details-side-stack {
    grid-template-columns: 1fr;
  }

  .details-page-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nav-links {
    display: none;
  }
}

/* App layout grid and admin table/styles added */
.app-grid {
  display: grid;
  grid-template-columns: 220px 1fr 360px;
  gap: 18px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 18px;
}

.sidebar-top { display:flex; align-items:center; gap:10px; padding:12px 6px; }
.brand-name { font-weight:800; }
.side-nav { list-style:none; padding:12px 6px; margin:12px 0; display:grid; gap:6px; }
.side-nav li a { text-decoration:none; color:var(--muted); padding:10px 12px; display:block; border-radius:8px; }
.side-nav li.active a, .side-nav li a:hover { background: rgba(219, 39, 119,0.08); color:var(--accent); }
.sidebar-footer { padding:12px 6px; font-size:0.9rem; }

/* Dark left navigation chrome */
.sidebar {
  background: linear-gradient(180deg, #0f2a2a 0%, #0b2323 100%);
  color: #dfeff0;
  padding: 18px 12px;
  border-radius: 16px;
  height: calc(100vh - 36px);
}
.sidebar .logo { height:40px; filter: drop-shadow(0 6px 14px rgba(0,0,0,0.5)); }
.brand-name { color: #e8fff5; font-size:1.05rem }
.side-nav li a { color: rgba(255,255,255,0.85); padding:12px 14px; border-radius:10px; }
.side-nav li.active a { background: linear-gradient(90deg, rgba(219, 39, 119,0.18), rgba(219, 39, 119,0.12)); box-shadow: inset 0 0 0 1px rgba(219, 39, 119,0.06); color: #ffffff }
.side-nav li a:hover { transform: translateX(4px); }

/* Panel main layout adjustments */
.panel-main { background: transparent; padding: 8px 0; }
.panel-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.panel-header h1 { margin:0; font-size:1.6rem; }
.panel-sub { color:var(--muted); }

/* Stats cards like screenshot */
.stats-row { gap: 14px; }
.stat-card { display:flex; align-items:center; gap:12px; padding:14px; border-radius:12px; background: linear-gradient(180deg,#ffffff,#fbfcfc); box-shadow: 0 6px 18px rgba(16,24,30,0.06); border: 1px solid rgba(18,38,30,0.04); }
.stat-card .icon { width:44px; height:44px; border-radius:10px; display:grid; place-items:center; background: linear-gradient(180deg, rgba(219, 39, 119,0.08), rgba(219, 39, 119,0.03)); }
.stat-title { font-size:0.85rem; color:var(--muted); }
.stat-value { font-size:1.15rem; font-weight:800; }

/* Table visuals */
.table-style .table-row { background: #fff; }
.table-style .table-row:hover { box-shadow: 0 8px 24px rgba(12,24,40,0.06); transform: translateY(-2px); }
.table-style .col { padding:6px 8px; }
.table-style .col-actions button { padding:8px 10px; font-size:0.9rem; }

/* Right detail panel styling */
.detail-panel { position: sticky; top: 18px; }
.detail-panel .detail-panel-inner { width: 360px; max-width: 360px; }
.detail-panel .detail-panel-inner h3 { margin-top:0; }
.detail-panel .detail-card { background: #fff; border-radius:12px; padding:14px; box-shadow: 0 8px 30px rgba(12,24,40,0.06); }

/* Floating create modal matching screenshot */
.create-modal {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  width: min(1100px, 96%);
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 30px 60px rgba(12,24,40,0.12);
  z-index: 60;
}
.create-modal .panel-form { grid-template-columns: repeat(3, 1fr); gap:12px; }
.create-modal .panel-form label { font-size:0.95rem }

/* Timeline dots */
.timeline-row { display:flex; align-items:center; gap:8px; color:var(--muted); }
.timeline-row .dot { width:10px; height:10px; border-radius:999px; background:#e6eef1; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(12,24,40,0.06); }
.timeline-row .dot.active { background: var(--accent); box-shadow: 0 6px 18px rgba(219, 39, 119,0.12); }

.stat-card { background: var(--panel); border-radius:12px; padding:12px 14px; min-width:150px; box-shadow:var(--shadow); }
.stat-title { font-size:0.85rem; color:var(--muted); }
.stat-value { font-size:1.2rem; font-weight:800; }

/* Table style rows */
.table-style .table-row { display: grid; grid-template-columns: 140px 1fr 160px 90px 120px 110px; gap: 10px; align-items: center; padding: 10px; border-radius: 10px; border: 1px solid rgba(34,34,34,0.06); background: #fff; }
.table-style .header-row { background: transparent; border: none; font-weight:800; color:var(--muted); }
.table-style .table-row .muted.small { color:var(--muted); font-size:0.9rem; }

/* Search / filter inputs in header card */
.admin-filters { display:flex; gap:10px; align-items:center; }
.admin-filters .search-box { flex:1; }
.admin-filters .search-box input { padding:12px 16px; border-radius: 12px; box-shadow: none; border: 1px solid rgba(18,38,30,0.06); }

/* Pagination */
.table-pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-top:6px; }
.pagination-info { color:var(--muted); font-size:0.92rem; }
.pagination-controls { display:flex; gap:8px; align-items:center; }
.page-btn { border:none; background:#f3f4f6; padding:8px 10px; border-radius:8px; cursor:pointer; }
.page-btn:disabled { opacity:0.5; cursor:default; }
.pages-wrap { display:flex; gap:6px; }
.page-num { border:none; background:transparent; padding:6px 8px; border-radius:6px; cursor:pointer; color:var(--muted); }
.page-num.active { background:var(--accent); color:#fff; box-shadow: 0 8px 24px rgba(219, 39, 119,0.14); }

/* Row hover/selection */
.table-style .table-row:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(12,24,40,0.08); }
.table-style .table-row.selected { border-color: rgba(219, 39, 119,0.18); box-shadow: 0 20px 40px rgba(219, 39, 119,0.06); }

/* Status pill colors matching screenshot */
.status-pill { padding:6px 10px; border-radius:999px; font-weight:700; font-size:0.85rem; }
.status-in_transit, .status-in\ transit, .status-in-transit { background: rgba(59,130,246,0.12); color:#1E40AF; }
.status-delivered { background: rgba(16,185,129,0.12); color:#059669; }
.status-scheduled { background: rgba(168,85,247,0.12); color:#7C3AED; }
.status-pending { background: rgba(250,204,21,0.12); color:#B45309; }
.status-cancelled { background: rgba(156,163,175,0.12); color:#4B5563; }

/* Proof gallery thumbnails */
.proof-image, .proof-thumb { border-radius:8px; object-fit:cover; cursor:pointer; border: 1px solid rgba(18,38,30,0.06); }
.proof-thumb { width:120px; height:90px; box-shadow: 0 8px 20px rgba(12,24,40,0.06); }
.proof-thumb:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(12,24,40,0.1); }
.proof-gallery { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }

/* Driver card */
.driver-card { display:flex; gap:10px; align-items:center; padding:10px; border-radius:10px; background: #fff; box-shadow: 0 8px 24px rgba(12,24,40,0.06); }
.driver-avatar { width:48px; height:48px; border-radius:999px; display:grid; place-items:center; font-weight:800; color:#fff; background:linear-gradient(180deg,#1E7A5A,#db2777); }
.driver-details { display:grid; gap:4px; }
.driver-details .name { font-weight:800; }
.driver-details .phone { color:var(--muted); font-size:0.95rem; }
.driver-actions { margin-left:auto; display:flex; gap:8px; }

/* Timeline small timestamps */
.timeline-row { gap:10px; }
.timeline-row span.time { display:block; font-size:0.85rem; color:var(--muted); margin-left:24px; }

/* Lightbox styles */
.lightbox { position:fixed; inset:0; background: rgba(0,0,0,0.7); display:grid; place-items:center; z-index:200; }
.lightbox-inner { max-width:90vw; max-height:90vh; background:transparent; display:flex; flex-direction:column; gap:12px; align-items:flex-end; }
.lightbox img { max-width:100%; max-height:80vh; border-radius:8px; box-shadow: 0 20px 50px rgba(0,0,0,0.6); }
.lightbox #lightbox-close { align-self:flex-end; }

.detail-panel { background: transparent; position: sticky; top: 18px; }
.detail-panel .detail-panel-inner { background: var(--panel); padding: 18px; border-radius: 16px; box-shadow: var(--shadow); }
.detail-panel.open { display:block; }
.detail-panel { display: block; }

@media (max-width: 1100px) {
  .app-grid { grid-template-columns: 1fr; }
  .detail-panel { order: 3; }
}

/* Store website dashboard */
.store-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 420px;
  background: #f4f7fb;
  color: #101827;
}

.store-sidebar {
  min-height: 100vh;
  padding: 22px 16px;
  background: linear-gradient(180deg, #0d2b45 0%, #071d33 100%);
  color: #ffffff;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 24px;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
}

.store-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.store-nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.store-nav a,
.store-nav button,
.store-logout {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 13px 14px;
  text-align: left;
  color: rgba(255,255,255,0.86);
  background: transparent;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.store-nav a.active,
.store-nav a:hover,
.store-nav button:hover {
  background: rgba(28, 185, 133, 0.18);
  color: #ffffff;
}

.store-account {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

.store-account span {
  display: block;
  margin-top: 2px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.72);
}

.store-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2f8ee8;
  font-weight: 900;
}

.store-logout {
  border: 1px solid rgba(255,255,255,0.12);
}

.store-main {
  min-width: 0;
  padding: 24px 28px;
}

.store-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #dfe5ee;
}

.store-topbar h1 {
  margin: 0;
  font-size: 1.7rem;
}

.store-topbar p {
  margin: 4px 0 0;
  color: #667085;
}

.store-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 12px;
  margin: 20px 0 14px;
}

.store-stat-card {
  min-width: 0;
  border: 1px solid #dce3ec;
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: #101827;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(16, 24, 39, 0.05);
}

.store-stat-card::before {
  content: "";
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: #e7f0ff;
}

.store-stat-card.blue::before { background: #e9f2ff; }
.store-stat-card.green::before { background: #e5f8ee; }
.store-stat-card.amber::before { background: #fff1d9; }
.store-stat-card.gray::before { background: #eef1f5; }

.store-stat-card span,
.store-stat-card small {
  display: block;
  color: #58657a;
  font-size: 0.82rem;
}

.store-stat-card strong {
  display: block;
  margin: 4px 0 2px;
  font-size: 1.55rem;
}

.store-board {
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(16, 24, 39, 0.06);
}

.store-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(360px, 1.2fr) 160px 120px;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e5e9f0;
  align-items: start;
}

.store-toolbar label,
.store-create-form label {
  color: #4b5870;
  font-weight: 800;
}

.date-range-control {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}

.date-range-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: #4b5870;
  font-weight: 800;
}

.date-range-label-row strong {
  color: #162033;
  font-size: 0.88rem;
}

.date-range-trigger {
  border: 1px solid #d9e0ea;
  background: #ffffff;
  color: #24324a;
  border-radius: 14px;
  min-height: 52px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
  width: 100%;
}

.date-range-trigger:hover {
  transform: translateY(-1px);
  border-color: #8db6ff;
  background: #f7fbff;
}

.date-range-trigger-main {
  display: grid;
  gap: 2px;
  text-align: left;
  min-width: 0;
}

.date-range-trigger-title {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
}

.date-range-trigger strong {
  color: #162033;
  font-size: 0.92rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.date-range-trigger-caret {
  color: #667085;
  font-size: 1rem;
  font-weight: 900;
}

.date-range-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(620px, 92vw);
  border: 1px solid #dbe4ef;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.18);
  padding: 16px;
}

.date-range-popover.hidden {
  display: none;
}

.date-range-popover-grid {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.date-range-side {
  display: grid;
  gap: 8px;
}

.date-range-side-btn {
  border: 1px solid #e5ebf3;
  border-radius: 12px;
  background: #ffffff;
  color: #344054;
  text-align: left;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.date-range-side-btn:hover {
  border-color: #b7cdf0;
  background: #edf5ff;
}

.date-range-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.date-range-panel-head {
  display: grid;
  gap: 6px;
}

.date-range-panel-head strong {
  color: #162033;
  font-size: 1.05rem;
}

.date-range-panel-head span {
  color: #5d6b80;
  font-weight: 700;
  font-size: 0.95rem;
}

.date-range-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.date-range-inputs label {
  display: grid;
  gap: 8px;
}

.date-range-inputs label span {
  color: #4b5870;
  font-size: 0.82rem;
  font-weight: 900;
}

.date-range-inputs input {
  min-height: 48px;
  font-size: 0.98rem;
  font-weight: 800;
}

.date-range-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.store-toolbar input,
.store-toolbar select,
.store-create-form input,
.store-create-form select,
.store-create-form textarea {
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  padding: 11px 12px;
}

.address-suggestions {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.address-suggestions.hidden {
  display: none;
}

.address-suggestions button {
  border: 0;
  border-radius: 6px;
  padding: 10px;
  background: #f8fafc;
  text-align: left;
  cursor: pointer;
}

.address-suggestions button:hover {
  background: #eef6ff;
}

.address-suggestions strong,
.address-suggestions span,
.address-helper {
  display: block;
}

.address-suggestions strong {
  color: #101827;
  font-size: 0.9rem;
}

.address-suggestions span,
.address-helper {
  color: #667085;
  font-size: 0.8rem;
}

.address-helper[data-type="success"] {
  color: #be185d;
}

.address-helper[data-type="warning"] {
  color: #a15c00;
}

.recipient-history {
  position: relative;
  display: grid;
  gap: 8px;
}

.history-icon::before {
  content: "↻";
  background: #ede9fe;
  color: #6d3ce5;
}

.recipient-history-suggestions {
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  max-height: 310px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #d8d0f5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 44px rgba(35, 24, 75, 0.18);
}

.recipient-history-suggestions.hidden {
  display: none;
}

.recipient-history-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.recipient-history-row .recipient-history-option {
  flex: 1 1 auto;
}

.recipient-history-edit {
  flex: 0 0 auto;
  align-self: center;
  padding: 6px 10px;
  border: 1px solid #d8d0f5;
  border-radius: 9px;
  background: #ffffff;
  color: #4f2aad;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.recipient-history-edit:hover,
.recipient-history-edit:focus-visible {
  border-color: #a78bfa;
  background: #f3efff;
  outline: none;
}

.recipient-history-option {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #faf9ff;
  color: #172033;
  text-align: left;
  cursor: pointer;
}

.recipient-history-option:hover,
.recipient-history-option:focus-visible {
  border-color: #a78bfa;
  background: #f3efff;
  outline: none;
}

.recipient-history-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #6d3ce5, #4f2aad);
  color: #ffffff;
  font-weight: 900;
}

.recipient-history-copy,
.recipient-history-copy strong,
.recipient-history-copy span,
.recipient-history-copy small {
  display: block;
  min-width: 0;
}

.recipient-history-copy strong {
  overflow: hidden;
  color: #111827;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-history-copy span,
.recipient-history-copy small {
  overflow: hidden;
  color: #667085;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recipient-history-use {
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9f9f1;
  color: #087443;
  font-size: 0.72rem;
  font-weight: 900;
}

.recipient-history-empty {
  padding: 14px;
  color: #667085;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.recipient-verification-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 9px;
  padding: 10px 12px;
  border: 1px solid #f4d48a;
  border-radius: 10px;
  background: #fffaf0;
  color: #7a4b00;
  font-size: 0.76rem;
  line-height: 1.45;
}

.recipient-verification-warning::before {
  content: "!";
  grid-row: 1 / span 2;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #f5b942;
  color: #ffffff;
  font-weight: 900;
}

.recipient-verification-warning strong,
.recipient-verification-warning span {
  display: block;
}

.store-table {
  overflow-x: auto;
}

.store-table-head,
.store-table-row {
  display: grid;
  grid-template-columns: minmax(110px, 1.1fr) minmax(120px, 1fr) minmax(180px, 1.8fr) minmax(110px, 1fr) minmax(110px, 0.9fr) minmax(80px, 0.7fr) minmax(90px, 0.7fr) minmax(300px, 1.8fr);
  gap: 10px;
  min-width: 0;
  align-items: center;
}

.store-table-head {
  padding: 12px 16px;
  color: #5b667a;
  font-size: 0.82rem;
  font-weight: 900;
  background: #f8fafc;
  border-bottom: 1px solid #e5e9f0;
}

.store-table-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  padding: 14px 16px;
  background: #ffffff;
  color: #162033;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.store-table-row:hover,
.store-table-row.selected {
  background: #f6fbff;
}

.store-table-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.store-table-row em {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid #d8e0ea;
  border-radius: 6px;
  color: #162033;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 900;
}

.store-row-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  overflow: visible;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.store-table-row .store-row-actions {
  min-width: 0;
  overflow: visible;
}

.store-delete-btn {
  border: 1px solid #f5c2c7;
  background: #fff1f2;
  color: #b42318;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.store-delete-btn:hover {
  transform: translateY(-1px);
  background: #ffe4e8;
  border-color: #f0a8b0;
}

.store-ready-btn {
  flex: 0 0 auto;
  border: 1px solid #a8dfc3;
  background: #eaf9f1;
  color: #137a49;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.16s ease;
}

.store-ready-btn:hover {
  transform: translateY(-1px);
  background: #dff5e9;
}

.store-status {
  display: inline-flex;
  border-radius: 8px;
  padding: 6px 10px;
  color: #1d4f91;
  background: #e7f1ff;
  font-weight: 900;
  font-size: 0.78rem;
}

.store-status.created { color: #a15c00; background: #fff1d7; }
.store-status.active { color: #1d4f91; background: #e7f1ff; }
.store-status.delivered { color: #be185d; background: #fce7f3; }
.store-status.cancelled { color: #4b5563; background: #edf0f3; }
.store-status.returned { color: #b91c1c; background: #fee2e2; }

.store-detail-backdrop {
  display: none;
}

.store-detail-panel {
  min-height: 100vh;
  border-left: 1px solid #dfe5ee;
  background: #ffffff;
  padding: 24px;
  overflow-y: auto;
}

.detail-panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e9f0;
}

.detail-panel-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

.detail-panel-heading button {
  width: 38px;
  height: 38px;
  border: 1px solid #dfe5ee;
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.detail-panel-heading button:hover {
  transform: translateY(-1px);
  background: #ec4899;
  color: #ffffff;
  border-color: #ec4899;
}

.store-details {
  display: grid;
  gap: 16px;
  padding-top: 18px;
}

.status-summary {
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 14px;
  align-items: center;
}

.details-hero {
  display: grid;
  grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.details-status-card,
.details-hero-item {
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  background: #ffffff;
  padding: 18px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.06);
}

.details-status-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: linear-gradient(180deg, #effbf4, #f8fffb);
}

.details-status-card.active {
  background: linear-gradient(180deg, #edf5ff, #f8fbff);
}

.details-status-card.created {
  background: linear-gradient(180deg, #fff8e8, #fffdf7);
}

.details-status-card.cancelled {
  background: linear-gradient(180deg, #f3f4f6, #fafafa);
}

.details-status-icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 2px solid #db2777;
  color: #db2777;
}

.details-status-icon svg,
.details-copy-btn svg,
.details-section-icon svg,
.details-hero-badge svg,
.details-placeholder-icon svg,
.details-note-label-icon svg,
.details-action-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.details-status-card strong,
.details-hero-item strong {
  display: block;
  color: #162033;
}

.details-status-card strong {
  font-size: 1.12rem;
  margin-bottom: 4px;
}

.details-status-card small,
.details-hero-item small,
.details-grid dt {
  display: block;
  color: #68758b;
  font-size: 0.82rem;
  font-weight: 800;
}

.details-hero-item {
  display: grid;
  align-content: center;
  gap: 8px;
}

.details-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.details-hero-badge,
.details-section-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #6d3ce5;
  background: linear-gradient(180deg, rgba(109, 60, 229, 0.12), rgba(109, 60, 229, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.details-hero-item strong {
  font-size: 1rem;
  font-weight: 900;
}

.details-inline-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-inline-copy strong {
  overflow-wrap: anywhere;
}

.details-copy-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #dfe5ee;
  border-radius: 12px;
  background: #ffffff;
  color: #6d3ce5;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
}

.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 18px;
  align-items: start;
}

.details-layout-board > .details-info-card {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.details-layout-board > .details-timeline-card {
  grid-column: 2;
  grid-row: 1;
}

.details-layout-board > .details-side-stack {
  grid-column: 2;
  grid-row: 2;
}

.details-side-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.details-hero-minor {
  display: none;
}

.status-summary small,
.details-grid dt {
  display: block;
  margin-bottom: 3px;
  color: #68758b;
  font-size: 0.78rem;
  font-weight: 800;
}

.details-section {
  border: 1px solid #e4e9f0;
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
}

.details-section h3 {
  margin: 0 0 14px;
  font-size: 1.02rem;
}

.details-section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0;
}

.details-grid .wide {
  grid-column: 1 / -1;
}

.details-grid dd {
  margin: 0;
  color: #101827;
  font-weight: 800;
}

.details-grid-rich {
  gap: 20px 16px;
}

.details-info-grid {
  gap: 18px 18px;
}

.details-info-field {
  display: grid;
  gap: 8px;
  padding: 2px 0;
}

.details-info-field strong {
  color: #101827;
  font-size: 1.03rem;
  line-height: 1.5;
  font-weight: 900;
}

.details-field-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #68758b;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.details-field-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(109, 60, 229, 0.14), rgba(109, 60, 229, 0.06));
  color: #6d3ce5;
  flex: 0 0 auto;
}

.details-note-card {
  min-height: 110px;
}

.details-note-box {
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f3eeff, #faf8ff);
}

.details-note-card strong {
  font-size: 0.98rem;
  font-weight: 800;
}

.details-special-handling {
  display: grid;
  gap: 10px;
}

.details-special-handling-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.details-special-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3eeff, #fbf8ff);
  color: #5b34d6;
  font-weight: 900;
  border: 1px solid rgba(109, 60, 229, 0.12);
}

.details-note-label-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  vertical-align: middle;
  border-radius: 10px;
  color: #6d3ce5;
  background: rgba(109, 60, 229, 0.08);
}

.store-timeline {
  display: grid;
  gap: 14px;
}

.timeline-step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  color: #7b8798;
}

.timeline-step-copy {
  display: grid;
  gap: 4px;
}

.timeline-step > span {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  border: 2px solid #bdc6d4;
}

.timeline-step.active > span {
  border-color: #db2777;
  background: #db2777;
}

.timeline-step.current strong {
  color: #101827;
}

.timeline-current-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e0f7ee;
  color: #be185d;
  font-size: 0.82rem;
  font-weight: 900;
}

.timeline-step small {
  display: block;
  margin-top: 3px;
}

.timeline-badge {
  display: inline-flex;
  margin-top: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fce7f3;
  color: #be185d;
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 900;
}

.driver-panel {
  display: flex;
  gap: 12px;
  align-items: center;
}

.driver-panel span {
  display: block;
  margin-top: 4px;
  color: #5d6b80;
}

.driver-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.driver-actions .btn {
  text-align: center;
  text-decoration: none;
}

.details-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.details-action-icon {
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.driver-actions .btn.disabled {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

.driver-panel-rich {
  margin-bottom: 16px;
}

.driver-panel-compact {
  align-items: flex-start;
  gap: 16px;
}

.driver-panel-copy {
  display: grid;
  gap: 8px;
}

.driver-panel-copy strong {
  font-size: 1.02rem;
}

.driver-panel-copy span {
  color: #5d6b80;
  font-weight: 700;
}

.driver-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0d8a50, #086c3f);
  color: #ffffff;
  font-size: 1.75rem;
  font-weight: 900;
}

.driver-avatar-photo {
  position: relative;
  overflow: hidden;
}

.driver-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.driver-avatar-photo span {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
}

.driver-avatar-photo-fallback span {
  display: grid;
}

.driver-avatar-photo-fallback img {
  display: none;
}

.driver-actions-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.driver-action-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  border: 1px solid transparent;
}

.driver-action-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
}

.driver-action-btn-call {
  background: #fbe2ea;
  color: #1f2937;
}

.driver-action-btn-wa {
  background: #ede8ff;
  color: #6d3ce5;
}

.driver-action-btn-disabled {
  background: #f4f6fb;
  color: #a7b0be;
}

.driver-action-btn-disabled svg {
  opacity: 0.8;
}

.details-footer-bar-note {
  justify-content: flex-start;
}

.details-footer-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.details-footer-note-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #1d4ed8;
  background: #e8f1ff;
  flex: 0 0 auto;
}

.details-footer-note div {
  display: grid;
  gap: 4px;
}

.details-footer-note strong {
  font-size: 0.98rem;
  font-weight: 900;
  color: #2450aa;
}

.details-footer-note span {
  color: #4b5f86;
  font-weight: 700;
  line-height: 1.55;
  max-width: 720px;
}

.details-proof-card .proof-empty {
  min-height: 180px;
}

.details-proof-card .store-proof-grid {
  grid-template-columns: 1fr;
}

.details-proof-card .proof-card > span {
  text-align: left;
}

.details-proof-card .proof-download {
  justify-content: flex-start;
}

.details-placeholder-card {
  min-height: 188px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  border: 1px solid #e7ebf2;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(99, 102, 241, 0.08), transparent 42%),
    linear-gradient(180deg, #ffffff, #f9fbff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.details-placeholder-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #6d3ce5;
  background: linear-gradient(135deg, rgba(109, 60, 229, 0.14), rgba(109, 60, 229, 0.06));
}

.details-placeholder-card strong {
  color: #162033;
  font-size: 1rem;
}

.details-placeholder-card span {
  color: #667085;
  line-height: 1.6;
  max-width: 260px;
}

.driver-placeholder .details-placeholder-icon {
  color: #0f766e;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(15, 118, 110, 0.06));
}

.proof-placeholder .details-placeholder-icon {
  color: #7c3aed;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.06));
}

.proof-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  border: 1px dashed #ccd5e1;
  border-radius: 8px;
  color: #667085;
  text-align: center;
  padding: 16px;
}

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

.proof-card {
  display: grid;
  gap: 8px;
}

.proof-card > span {
  color: #555366;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.store-proof-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e3e8ef;
}

.proof-download {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(219, 39, 119, 0.08);
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.proof-download:hover {
  background: rgba(219, 39, 119, 0.14);
}

.details-footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  border-radius: 24px;
  background:
    radial-gradient(circle at left center, rgba(59, 130, 246, 0.08), transparent 24%),
    linear-gradient(180deg, #edf5ff, #f7fbff);
  border: 1px solid #dfe8f3;
}

.details-footer-note {
  display: grid;
  gap: 4px;
  color: #2450aa;
}

.details-footer-note strong {
  font-size: 0.98rem;
  font-weight: 900;
}

.details-footer-note span {
  color: #4b5f86;
  font-weight: 700;
  line-height: 1.55;
  max-width: 520px;
}

.details-footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.login-brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(31, 143, 255, 0.08), rgba(32, 201, 151, 0.08));
  border: 1px solid rgba(31, 143, 255, 0.12);
}

.login-brand-lockup img {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  object-fit: cover;
}

.login-brand-lockup strong,
.login-brand-lockup span {
  display: block;
}

.login-brand-lockup span {
  color: var(--muted);
  margin-top: 2px;
}

.store-empty-row {
  display: grid;
  gap: 6px;
  padding: 32px 16px;
  color: #667085;
  text-align: center;
}

.store-create-modal {
  width: min(1100px, 96vw);
  max-height: 92vh;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(240, 253, 244, 0.82), transparent 210px),
    #ffffff;
  border: 1px solid rgba(21, 148, 100, 0.12);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.store-create-modal .modal-header {
  border-bottom: 1px solid #e5e9f0;
  padding-bottom: 16px;
}

.modal-eyebrow {
  display: inline-flex;
  margin-bottom: 5px;
  color: #db2777;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.store-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.store-create-form section {
  display: grid;
  align-content: start;
  gap: 12px;
  padding-right: 18px;
  border-right: 1px solid #e5e9f0;
}

.store-create-form section:last-of-type {
  border-right: 0;
  padding-right: 0;
}

.delivery-details-form {
  gap: 26px;
}

.delivery-details-form section {
  gap: 16px;
  padding: 18px;
  border: 1px solid #e5e9f0;
  border-radius: 12px;
  background: rgba(255,255,255,0.78);
}

.delivery-details-form h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.delivery-details-form h3::before {
  content: "";
  width: 10px;
  height: 28px;
  border-radius: 999px;
  background: #ec4899;
}

.delivery-details-form small {
  color: #7b8798;
  font-weight: 700;
}

.icon-field {
  position: relative;
}

.icon-field > span {
  color: #25324a;
}

.icon-field input,
.icon-field select,
.icon-field textarea {
  padding-left: 46px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(16, 24, 39, 0.035);
}

.icon-field::before {
  position: absolute;
  left: 12px;
  top: 34px;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #eef6ff;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 900;
  z-index: 1;
}

.order-icon::before { content: "#"; background: #f1f5f9; color: #475569; }
.delivery-id-input {
  position: relative;
}

.delivery-id-input input {
  width: 100%;
}

.delivery-id-input.rx-prefix-enabled input {
  padding-left: 92px;
}

#delivery-id-prefix {
  position: absolute;
  left: 46px;
  top: 50%;
  z-index: 2;
  color: #5b32cf;
  font-weight: 900;
  transform: translateY(-50%);
  pointer-events: none;
}

#delivery-id-helper {
  display: block;
  margin-top: 6px;
}
.type-icon::before { content: "↗"; background: #e0f2fe; color: #2563eb; }
.date-icon::before { content: "□"; background: #e0f2fe; color: #2563eb; }
.store-icon::before { content: "⌂"; background: #dcfce7; color: #16a34a; }
.person-icon::before { content: "○"; background: #f1f5f9; color: #64748b; }
.phone-icon::before { content: "☎"; background: #f1f5f9; color: #64748b; }
.address-icon::before { content: "⌖"; background: #dcfce7; color: #16a34a; }
.note-icon::before { content: "≡"; background: #fff7ed; color: #d97706; }
.unit-icon::before { content: "▣"; background: #f1f5f9; color: #64748b; }
.buzz-icon::before { content: "⌁"; background: #fef3c7; color: #d97706; }

.form-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.special-handling {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #e5e9f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #4b5870;
  font-weight: 800;
}

.special-handling > span {
  color: #111827;
}

.special-handling label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.special-handling input {
  width: 18px;
  height: 18px;
}

.route-preview {
  display: grid;
  gap: 6px;
  position: relative;
  padding: 16px 16px 16px 56px;
  border: 1px solid #b7e4cc;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(220, 252, 231, 0.95), rgba(239, 246, 255, 0.9));
  box-shadow: 0 14px 28px rgba(21, 148, 100, 0.08);
}

.route-preview::before {
  content: "↝";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #16a34a;
  color: #ffffff;
  font-weight: 900;
}

.route-preview.hidden {
  display: none;
}

.route-preview strong {
  color: #14532d;
}

.route-preview span {
  color: #166534;
  font-size: 1.05rem;
  font-weight: 900;
}

.route-preview-map {
  height: 180px;
  margin: 4px 0 6px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.route-preview small {
  color: #15803d;
}

.delivery-reward-checkout {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #c7dfcb;
  border-radius: 16px;
  background:
    radial-gradient(circle at 5% 0%, rgba(30, 174, 69, 0.12), transparent 34%),
    linear-gradient(120deg, #f0faf2, #fff);
  box-shadow: 0 12px 28px rgba(21, 155, 55, 0.08);
}

.delivery-reward-checkout.hidden {
  display: none;
}

.delivery-reward-checkout.ineligible {
  border-color: #efc5a3;
  background: linear-gradient(120deg, #fff7ed, #fff);
}

.delivery-reward-heading {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.delivery-reward-symbol {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #159b37;
  color: #fff;
  font-size: 1.25rem;
}

.delivery-reward-heading span,
.delivery-reward-heading small {
  display: block;
  color: #587066;
  font-size: 0.72rem;
  font-weight: 750;
}

.delivery-reward-heading span {
  color: #15803d;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.delivery-reward-heading strong {
  display: block;
  margin: 2px 0;
  color: #0d3420;
  font-size: 1rem;
}

.delivery-reward-heading button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #d8a7a7;
  border-radius: 10px;
  background: #fff;
  color: #a63434;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 850;
}

.delivery-reward-checkout > p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  color: #4c6359;
  font-size: 0.82rem;
  font-weight: 750;
}

.delivery-reward-checkout.eligible > p {
  color: #11742b;
}

.delivery-reward-checkout.ineligible > p {
  color: #a85418;
}

.delivery-reward-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.delivery-reward-pricing span {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #dbe8dd;
  border-radius: 11px;
  background: #fff;
  color: #62716a;
  font-size: 0.72rem;
}

.delivery-reward-pricing strong {
  color: #173a26;
  font-size: 1rem;
}

.delivery-reward-pricing .total {
  border-color: #a8d7b1;
  background: #eaf8ed;
}

.delivery-reward-pricing .total strong {
  color: #08712a;
  font-size: 1.12rem;
}

.store-create-form h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.store-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-toggle input {
  width: auto;
}

.store-create-actions,
.store-create-form .status-banner {
  grid-column: 1 / -1;
}

.store-create-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #e5e9f0;
}

@media (max-width: 1180px) {
  .store-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .store-detail-panel {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(430px, 100vw);
    transform: translateX(100%);
    transition: transform 0.2s ease;
    z-index: 30;
    box-shadow: -24px 0 60px rgba(15, 23, 42, 0.16);
  }

  .store-detail-panel.open {
    transform: translateX(0);
  }
}

@media (max-width: 760px) {
  .store-shell {
    display: block;
  }

  .store-sidebar {
    min-height: auto;
    grid-template-rows: auto;
    gap: 12px;
  }

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

  .store-main {
    padding: 18px 14px;
  }

  .store-topbar,
  .status-summary {
    align-items: flex-start;
    grid-template-columns: 1fr;
    display: grid;
  }

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

  .store-toolbar,
  .store-create-form,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .overview-mode .store-board-title,
  .drivers-header {
    padding: 18px 16px 14px;
    display: grid;
    gap: 12px;
    align-items: start;
  }

  .store-board-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .store-board-actions .btn {
    flex: 1 1 calc(50% - 6px);
    justify-content: center;
  }

  .overview-mode .store-table,
  .drivers-table {
    overflow: visible;
  }

  .overview-mode .store-table-head,
  .drivers-table-head {
    display: none;
  }

  .overview-mode .store-table-row,
  .drivers-table-row {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #edf1f6;
  }

  .overview-mode .store-table-row > span,
  .drivers-table-row > span {
    min-width: 0;
  }

  .overview-mode .store-table-row > span,
  .drivers-table-row > span {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .overview-mode .store-table-row > span::before,
  .drivers-table-row > span::before {
    color: #667085;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .overview-mode .store-table-row > span:nth-child(1) { grid-column: 1 / -1; }
  .overview-mode .store-table-row > span:nth-child(1)::before { content: "Order ID"; }
  .overview-mode .store-table-row > span:nth-child(2)::before { content: "Customer"; }
  .overview-mode .store-table-row > span:nth-child(3) { grid-column: 1 / -1; }
  .overview-mode .store-table-row > span:nth-child(3)::before { content: "Address"; }
  .overview-mode .store-table-row > span:nth-child(4)::before { content: "Driver"; }
  .overview-mode .store-table-row > span:nth-child(5)::before { content: "Status"; }
  .overview-mode .store-table-row > span:nth-child(6)::before { content: "KM"; }
  .overview-mode .store-table-row > span:nth-child(7)::before { content: "Price"; }
  .overview-mode .store-table-row > span:nth-child(8) {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .overview-mode .store-table-row > span:nth-child(8)::before { content: "Actions"; }

  .drivers-table-row > span:nth-child(1) {
    grid-column: 1 / -1;
  }
  .drivers-table-row > span:nth-child(1)::before { content: "Driver"; }
  .drivers-table-row > span:nth-child(2)::before { content: "Contact"; }
  .drivers-table-row > span:nth-child(3)::before { content: "Vehicle"; }
  .drivers-table-row > span:nth-child(4)::before { content: "Zone"; }
  .drivers-table-row > span:nth-child(5)::before { content: "Status"; }
  .drivers-table-row > span:nth-child(6)::before { content: "Current"; }
  .drivers-table-row > span:nth-child(7)::before { content: "Rating"; }
  .drivers-table-row > span:nth-child(8) {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .drivers-table-row > span:nth-child(8)::before { content: "Actions"; }

  .drivers-table-row .driver-profile {
    align-items: flex-start;
  }

  .date-range-popover {
    left: 0;
    right: auto;
    width: min(100%, 94vw);
  }

  .date-range-popover-grid,
  .date-range-inputs {
    grid-template-columns: 1fr;
  }

  .store-create-form section {
    border-right: 0;
    padding-right: 0;
    border-bottom: 1px solid #e5e9f0;
    padding-bottom: 16px;
  }

  .store-create-actions {
    justify-content: stretch;
  }

  .store-create-actions .btn {
    flex: 1;
  }

  .overview-mode .store-detail-panel {
    width: 100vw;
  }
}

/* Store overview dashboard variant */
.store-shell.overview-mode {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(46, 144, 250, 0.08), transparent 32%),
    #f7f9fc;
}

.store-shell.overview-mode.with-sidebar {
  --sidebar-width: 248px;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  transition: grid-template-columns 0.36s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-x: hidden;
}

.store-shell.overview-mode.with-sidebar.sidebar-collapsed {
  --sidebar-width: 76px;
}

.store-side-nav {
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 22px 18px;
  background: linear-gradient(180deg, #071d33 0%, #041426 100%);
  color: #ffffff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  overflow: hidden;
  transition:
    padding 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.36s ease;
  z-index: 3;
}

.store-side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 900;
  min-width: 0;
  height: 38px;
}

.store-side-brand::before {
  content: "+";
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #20c997, #0f8d5f);
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(12, 122, 78, 0.35);
}

.store-side-brand span,
.store-side-account,
.store-side-nav nav button span,
.store-side-nav nav a span {
  transition:
    opacity 0.2s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.store-side-brand span {
  white-space: nowrap;
  overflow: hidden;
}

#sidebar-toggle {
  margin-left: auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 9px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.store-side-nav nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.store-support-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.store-support-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.store-support-brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 42px;
  background: rgba(255,255,255,0.14);
}

.store-support-brand strong,
.store-support-link strong {
  display: block;
  color: #ffffff;
}

.store-support-brand span,
.store-support-link span {
  display: block;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
}

.store-support-link {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: inherit;
  text-decoration: none;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.store-support-link:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

.store-side-nav nav button,
.store-side-nav nav a {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 13px 14px;
  background: transparent;
  color: rgba(255,255,255,0.82);
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    padding 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    justify-content 0.36s ease;
}

.store-side-nav nav button::before,
.store-side-nav nav a::before {
  content: attr(data-short);
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  background: rgba(255,255,255,0.08);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 900;
}

.store-side-nav nav button.active,
.store-side-nav nav button:hover,
.store-side-nav nav a:hover {
  background: #ec4899;
  color: #ffffff;
}

.store-side-account {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
}

.store-side-account span {
  color: rgba(255,255,255,0.7);
  font-size: 0.86rem;
}

.sidebar-collapsed .store-side-nav {
  padding-inline: 13px;
}

.sidebar-collapsed .store-side-brand {
  justify-content: center;
}

.sidebar-collapsed .store-side-brand span {
  opacity: 0;
  width: 0;
  transform: translateX(-8px);
  overflow: hidden;
}

.sidebar-collapsed #sidebar-toggle {
  margin-left: 0;
}

.sidebar-collapsed .store-side-nav nav button,
.sidebar-collapsed .store-side-nav nav a {
  justify-content: center;
  padding-inline: 0;
}

.sidebar-collapsed .store-side-nav nav button span,
.sidebar-collapsed .store-side-nav nav a span {
  opacity: 0;
  width: 0;
  transform: translateX(-8px);
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-collapsed .store-side-account {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}

.sidebar-collapsed .store-support-card {
  opacity: 0;
  transform: translateX(-10px);
  pointer-events: none;
}

@media (hover: hover) and (min-width: 981px) {
  .store-shell.overview-mode.with-sidebar.sidebar-collapsed:has(.store-side-nav:hover) {
    --sidebar-width: 248px;
  }

  .sidebar-collapsed .store-side-nav:hover {
    padding-inline: 18px;
    box-shadow: 18px 0 45px rgba(4, 20, 38, 0.18);
  }

  .sidebar-collapsed .store-side-nav:hover .store-side-brand {
    justify-content: flex-start;
  }

  .sidebar-collapsed .store-side-nav:hover .store-side-brand span,
  .sidebar-collapsed .store-side-nav:hover nav button span,
  .sidebar-collapsed .store-side-nav:hover nav a span {
    opacity: 1;
    width: auto;
    transform: none;
    overflow: visible;
  }

  .sidebar-collapsed .store-side-nav:hover #sidebar-toggle {
    margin-left: auto;
  }

  .sidebar-collapsed .store-side-nav:hover nav button,
  .sidebar-collapsed .store-side-nav:hover nav a {
    justify-content: flex-start;
    padding-inline: 14px;
  }

  .sidebar-collapsed .store-side-nav:hover .store-support-card {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }

  .sidebar-collapsed .store-side-nav:hover .store-side-account {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

.store-overview-main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 42px;
  min-width: 0;
}

.overview-mode .store-topbar {
  border: 0;
  padding-bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.overview-mode .store-topbar h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  letter-spacing: 0;
}

.overview-mode .store-topbar p {
  font-size: 1.05rem;
}

.store-topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
  max-width: 100%;
}

.store-topbar-actions input {
  min-height: 46px;
  width: 210px;
  max-width: 100%;
  border: 1px solid #dde5ef;
  border-radius: 10px;
  padding: 0 14px;
  background: #ffffff;
  font: inherit;
  font-weight: 800;
}

.store-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  margin: 0 0 18px;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(24, 39, 75, 0.04);
}

.store-tabs button {
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: transparent;
  color: #667085;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.store-tabs button.active {
  background: #ec4899;
  color: #ffffff;
}

.store-view-section.hidden {
  display: none;
}

.delivery-details-form .hidden {
  display: none;
}

.overview-mode .store-stats {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 18px;
  margin: 8px 0 28px;
}

.overview-mode .store-topbar .btn {
  white-space: nowrap;
}

.overview-mode .store-stat-card {
  min-height: 158px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(24, 39, 75, 0.07);
}

.overview-mode .store-stat-card::before {
  display: none;
}

.overview-mode .store-stat-card .stat-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}

.overview-mode .store-stat-card strong {
  font-size: 2rem;
}

.store-stat-card.purple::before {
  background: #f0e7ff;
}

.store-board-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 0;
}

.store-board-title h2 {
  margin: 0;
  font-size: 1.35rem;
}

.overview-mode .store-board {
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(24, 39, 75, 0.08);
}

.overview-mode .store-toolbar {
  grid-template-columns: minmax(240px, 1fr) 150px 150px auto;
  padding: 18px 22px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-btn img {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.store-search {
  position: relative;
}

.store-search > img {
  position: absolute;
  left: 13px;
  bottom: 12px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.store-search input {
  padding-left: 42px;
}

.overview-mode .store-table-head,
.overview-mode .store-table-row {
  grid-template-columns: 120px 170px minmax(230px, 1fr) 150px 140px 150px 34px;
  min-width: 1080px;
}

.overview-mode .store-table-head {
  padding: 14px 22px;
}

.overview-mode .store-table-row {
  padding: 16px 22px;
}

.store-table-row small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.82rem;
}

.driver-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-table-row .driver-avatar {
  width: 28px;
  height: 28px;
  font-size: 0.78rem;
  flex: 0 0 28px;
}

.store-table-row .driver-avatar-photo span {
  font-size: 0.72rem;
}

.driver-cell i {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #eef6ff;
  color: #1d4f91;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.store-board-footer {
  display: grid;
  place-items: center;
  padding: 18px 22px;
}

.store-board-footer button {
  border: 0;
  background: transparent;
  color: #db2777;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.drivers-view {
  display: grid;
  gap: 18px;
}

.drivers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.drivers-header h2 {
  margin: 0;
  font-size: 1.65rem;
}

.drivers-header p {
  margin: 4px 0 0;
  color: #667085;
}

.driver-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 18px;
}

.driver-stat-card {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px solid #dce3ec;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(24, 39, 75, 0.07);
}

.driver-stat-card span,
.driver-stat-card small {
  color: #58657a;
  font-size: 0.84rem;
}

.driver-stat-card strong {
  font-size: 2rem;
}

.drivers-board {
  overflow: hidden;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(24, 39, 75, 0.08);
}

.drivers-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 160px 160px;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid #e5e9f0;
}

.drivers-toolbar select {
  border: 1px solid #d9e0ea;
  border-radius: 6px;
  padding: 11px 12px;
  background: #ffffff;
  font: inherit;
}

.drivers-table {
  overflow-x: auto;
}

.drivers-table-head,
.drivers-table-row {
  display: grid;
  grid-template-columns: 210px 180px 170px 150px 110px 170px 90px 120px;
  gap: 14px;
  min-width: 1210px;
  align-items: center;
}

.drivers-table-head {
  padding: 14px 22px;
  color: #5b667a;
  font-size: 0.82rem;
  font-weight: 900;
  background: #f8fafc;
  border-bottom: 1px solid #e5e9f0;
}

.drivers-table-row {
  padding: 16px 22px;
  border-bottom: 1px solid #edf1f6;
}

.drivers-table-row small {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.82rem;
}

.driver-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.driver-profile i {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #e6f7ef;
  color: #db2777;
  font-style: normal;
  font-weight: 900;
}

.driver-status {
  display: inline-flex;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fce7f3;
  color: #be185d;
  font-weight: 900;
  font-size: 0.78rem;
}

.driver-status.on-route {
  background: #e7f1ff;
  color: #1d4f91;
}

.driver-status.offline {
  background: #edf0f3;
  color: #4b5563;
}

.driver-status.unavailable {
  background: #fee2e2;
  color: #dc2626;
}

.driver-row-actions {
  display: flex;
  gap: 8px;
}

.driver-row-actions button {
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  padding: 8px 12px;
  background: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.drivers-empty {
  display: grid;
  gap: 6px;
  padding: 32px 16px;
  color: #667085;
  text-align: center;
}

.overview-mode .store-detail-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(430px, 100vw);
  transform: translateX(100%);
  transition: transform 0.2s ease;
  z-index: 30;
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.16);
}

.overview-mode .store-detail-backdrop {
  position: fixed;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(1px);
  transition: opacity 0.2s ease;
  z-index: 29;
}

.overview-mode .store-detail-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.overview-mode .store-detail-panel.open {
  transform: translateX(0);
}

@media (max-width: 980px) {
  .store-shell.overview-mode.with-sidebar {
    display: block;
  }

  .store-shell.overview-mode.with-sidebar.sidebar-collapsed {
    display: block;
  }

  .store-side-nav {
    min-height: auto;
    position: sticky;
    top: 0;
    grid-template-rows: auto auto;
    gap: 12px;
    padding: 12px clamp(12px, 3vw, 20px);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 18px 40px rgba(4, 20, 38, 0.18);
  }

  .sidebar-collapsed .store-side-brand span,
  .sidebar-collapsed .store-side-nav nav button span,
  .sidebar-collapsed .store-side-nav nav a span {
    opacity: 1;
    width: auto;
    transform: none;
    pointer-events: auto;
  }

  .store-side-brand {
    height: auto;
  }

  #sidebar-toggle {
    display: none;
  }

  .store-side-account {
    display: none;
  }

  .store-support-card {
    display: none;
  }

  .sidebar-collapsed .store-side-nav nav button,
  .sidebar-collapsed .store-side-nav nav a {
    padding: 13px 14px;
    text-align: left;
    justify-content: flex-start;
  }

  .store-side-nav nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .overview-mode .store-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-mode .store-toolbar {
    grid-template-columns: 1fr;
  }

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

  .drivers-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .store-side-brand {
    font-size: 1.05rem;
  }

  .store-side-brand::before {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    border-radius: 10px;
    font-size: 1.25rem;
  }

  .store-side-nav nav button,
  .store-side-nav nav a {
    min-height: 44px;
    padding: 10px 8px;
    justify-content: center;
    text-align: center;
    gap: 6px;
    font-size: 0.82rem;
  }

  .store-side-nav nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-side-nav nav button::before,
  .store-side-nav nav a::before {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 0.72rem;
  }

  .store-overview-main {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }
}

@media (max-width: 1250px) {
  .overview-mode .store-topbar {
    grid-template-columns: 1fr;
  }

  .store-topbar-actions {
    justify-content: flex-start;
  }

  .overview-mode .store-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .store-overview-main {
    width: min(100% - 24px, 1180px);
    padding-top: 18px;
  }

  .overview-mode .store-topbar {
    display: grid;
    align-items: start;
  }

  .store-topbar-actions {
    justify-content: stretch;
  }

  .store-topbar-actions > * {
    flex: 1;
  }

  .overview-mode .store-stats {
    grid-template-columns: 1fr;
  }

  .drivers-header {
    display: grid;
    align-items: start;
  }

  .driver-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1100px);
  }

  header {
    padding: 12px 0;
  }

  nav {
    align-items: flex-start;
    gap: 10px;
  }

  .brand {
    font-size: 1.08rem;
    gap: 8px;
  }

  .brand .logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .hero {
    padding: 20px 0 28px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 2.8rem);
    line-height: 1.08;
    margin-bottom: 12px;
  }

  .hero p {
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: none;
  }

  .card,
  .soft-card {
    padding: 18px;
    border-radius: 18px;
  }

  .cta-row,
  .nav-links {
    width: 100%;
  }

  .cta-row .btn,
  .login-submit {
    width: 100%;
  }

  .landing-visual {
    min-height: auto;
    padding: 14px;
    border-radius: 22px;
  }

  .landing-visual::before {
    inset: 12px;
    border-width: 5px;
    border-radius: 18px;
  }

  .landing-logo-panel {
    height: auto;
    min-height: 220px;
    padding: 18px 14px;
  }

  .landing-logo-panel img {
    width: min(220px, 78%);
    border-radius: 24px;
  }

  .landing-logo-copy strong {
    font-size: 1rem;
  }

  .landing-logo-copy span {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .login-brand-lockup {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .login-brand-lockup img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .hero-grid {
    gap: 14px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-card {
    padding: 14px;
  }

  .panel-form {
    gap: 12px;
  }

  .panel-form label {
    gap: 4px;
    font-size: 0.92rem;
  }

  input,
  select,
  textarea {
    padding: 12px 14px;
    border-radius: 12px;
  }

  .login-submit {
    padding: 14px 18px;
  }

  .contact-note {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .nav-links a {
    font-size: 0.92rem;
  }
}

/* Recent deliveries board */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.overview-mode .store-board {
  border-color: #e8e5f0;
  border-radius: 14px;
  box-shadow: 0 10px 34px rgba(38, 28, 74, 0.07);
}

.store-board-title {
  padding: 24px 22px 16px;
}

.store-board-title h2 {
  color: #171724;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
}

.store-board-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.store-board-actions .btn {
  min-height: 42px;
  border-radius: 7px;
  padding: 10px 16px;
  font-weight: 800;
}

.store-board-actions .btn.primary {
  border-color: #6829d9;
  background: linear-gradient(135deg, #7430e8, #5422bd);
  box-shadow: 0 8px 18px rgba(99, 41, 209, 0.2);
}

.store-board-actions .export-btn {
  border: 1px solid #f8dadd;
  background: #fff0f1;
  color: #9e303c;
}

.store-board-actions .export-btn img {
  filter: sepia(1) saturate(4) hue-rotate(305deg);
}

.delivery-status-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 0 22px 16px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.delivery-status-tabs button {
  min-height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #ece9f1;
  border-radius: 0;
  background: #ffffff;
  color: #4f5565;
  padding: 9px 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

.delivery-status-tabs button:first-child {
  border-radius: 8px 0 0 8px;
}

.delivery-status-tabs button:last-child {
  border-radius: 0 8px 8px 0;
}

.delivery-status-tabs button + button {
  margin-left: -3px;
}

.delivery-status-tabs button.active {
  position: relative;
  z-index: 1;
  border-color: #8b5cf6;
  border-radius: 8px;
  background: #fbf9ff;
  color: #6535cb;
}

.delivery-tab-icon {
  color: #687386;
  font-size: 1rem;
}

.delivery-status-tabs button.active .delivery-tab-icon {
  color: #7041da;
}

.delivery-status-tabs strong {
  min-width: 26px;
  border-radius: 999px;
  background: #f3f1f7;
  color: #656476;
  padding: 3px 8px;
  font-size: 0.76rem;
  text-align: center;
}

.delivery-status-tabs button.active strong {
  background: #eee8ff;
  color: #6a37d5;
}

.overview-mode .store-toolbar {
  grid-template-columns: minmax(260px, 1.5fr) minmax(210px, 0.8fr) auto minmax(145px, 0.55fr);
  align-items: end;
  gap: 12px;
  margin: 0 22px 18px;
  padding: 15px;
  border: 1px solid #e8e5ef;
  border-radius: 10px;
  background: #ffffff;
}

.store-toolbar .store-search input,
.store-toolbar .status-filter-field select {
  width: 100%;
  min-height: 44px;
  border-color: #e2dfea;
  border-radius: 7px;
  background: #ffffff;
}

.store-search > img {
  bottom: 13px;
  width: 17px;
  height: 17px;
}

.date-range-control {
  gap: 5px;
}

.date-range-field-label {
  color: #30303e;
  font-size: 0.72rem;
  font-weight: 800;
}

.date-range-trigger {
  min-height: 44px;
  border-color: #e2dfea;
  border-radius: 7px;
  padding: 8px 12px;
  gap: 9px;
}

.date-range-trigger:hover {
  border-color: #9a74e8;
  background: #fcfbff;
  transform: none;
}

.date-range-calendar {
  width: 17px;
  height: 17px;
  display: inline-grid;
  place-items: center;
  border: 2px solid #55596a;
  border-radius: 3px;
  color: transparent;
  position: relative;
  flex: 0 0 auto;
}

.date-range-calendar::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 4px;
  border-top: 2px solid #55596a;
}

.date-range-trigger strong {
  color: #30303e;
  font-size: 0.82rem;
  font-weight: 750;
}

.date-range-trigger-caret {
  margin-left: auto;
}

.status-filter-field {
  display: block;
}

.overview-mode .store-table-head,
.overview-mode .store-table-row {
  grid-template-columns:
    minmax(105px, 0.8fr)
    minmax(125px, 0.9fr)
    minmax(210px, 1.55fr)
    minmax(135px, 0.95fr)
    minmax(110px, 0.8fr)
    minmax(72px, 0.5fr)
    minmax(180px, 1.05fr)
    minmax(285px, 1.45fr);
  min-width: 1270px;
}

.overview-mode .store-table-head {
  padding: 14px 22px;
  border-top: 1px solid #ebe7f1;
  border-bottom-color: #e7e2ee;
  background: linear-gradient(90deg, #faf8ff, #f6f3fb);
  color: #626177;
  font-size: 0.75rem;
}

.overview-mode .store-table-row {
  min-height: 64px;
  padding: 13px 22px;
  border-bottom-color: #edeaf2;
  color: #252535;
  font-size: 0.88rem;
}

.store-table-row:hover,
.store-table-row.selected {
  background: #fcfbff;
}

.order-id-cell,
.address-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.order-id-cell strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-copy-btn {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #747386;
  padding: 3px;
  cursor: pointer;
}

.address-cell i {
  color: #7b4de0;
  font-size: 1rem;
  font-style: normal;
}

.driver-cell i {
  width: 29px;
  height: 29px;
  background: #f0eef4;
  color: #686779;
}

.store-status {
  border-radius: 7px;
  padding: 6px 9px;
  font-size: 0.72rem;
}

.store-status.created {
  color: #a96300;
  background: #fff1d3;
}

.store-status.active {
  color: #236d52;
  background: #ddf5e9;
}

.store-status.scheduled {
  color: #6a42bd;
  background: #eee7ff;
}

.store-status.delivered {
  color: #19704d;
  background: #dcf5e7;
}

.store-status.returned {
  color: #b91c1c;
  background: #fee2e2;
}

.distance-cell,
.price-cell {
  color: #343244;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.price-cell {
  color: #6030c9;
}

.store-view-btn {
  flex: 0 0 auto;
  border: 1px solid #a77cf4;
  border-radius: 7px;
  background: #ffffff;
  color: #6732d1;
  padding: 7px 13px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

.store-view-btn:hover {
  background: #f8f4ff;
}

.store-print-label-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  border: 1px solid #bfd0f6;
  border-radius: 7px;
  background: #f5f8ff;
  color: #3157a6;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(49, 87, 166, 0.08);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.store-print-label-btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.store-table-row .store-print-label-btn {
  width: 38px;
  min-width: 38px;
  padding: 7px;
}

.store-table-row .store-print-label-btn span {
  display: none;
}

.store-print-label-btn:hover {
  transform: translateY(-1px);
  background: #eaf0ff;
  border-color: #7ea1e8;
  box-shadow: 0 6px 14px rgba(49, 87, 166, 0.14);
}

.store-print-label-btn:focus-visible {
  outline: 3px solid rgba(74, 111, 224, 0.24);
  outline-offset: 2px;
}

.details-print-btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
}

.overview-mode .store-delete-btn {
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 0.78rem;
}

.store-board-footer {
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 64px;
  padding: 12px 22px;
  border-top: 1px solid #ebe7f0;
}

.store-board-footer p {
  margin: 0;
  color: #777588;
  font-size: 0.78rem;
}

.delivery-pagination,
.delivery-page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.delivery-pagination button,
.delivery-page-numbers span {
  min-width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #e6e2eb;
  border-radius: 7px;
  background: #ffffff;
  color: #686679;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
}

.delivery-pagination button {
  cursor: pointer;
}

.delivery-pagination button.active {
  border-color: #8b5cf6;
  color: #6732d1;
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.08);
}

.delivery-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.delivery-page-size {
  justify-self: end;
}

.delivery-page-size select {
  min-height: 36px;
  border: 1px solid #e6e2eb;
  border-radius: 7px;
  background: #ffffff;
  color: #5d5b6d;
  padding: 7px 30px 7px 10px;
  font: inherit;
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .overview-mode .store-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(200px, 1fr);
  }

  .store-board-footer {
    grid-template-columns: 1fr auto;
  }

  .delivery-page-size {
    display: none;
  }
}

@media (max-width: 640px) {
  .store-board-title {
    align-items: flex-start;
    padding: 18px 16px 14px;
  }

  .store-board-actions {
    gap: 7px;
  }

  .store-board-actions .btn {
    padding: 9px 10px;
  }

  .delivery-status-tabs {
    padding: 0 16px 14px;
  }

  .overview-mode .store-toolbar {
    grid-template-columns: 1fr;
    margin: 0 16px 16px;
  }

  .store-board-footer {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}
/* Partner Rewards */
.partner-rewards-view {
  --reward-navy: #071d48;
  --reward-green: #159b37;
  --reward-blue: #1d63db;
  --reward-purple: #6e38d5;
  --reward-gold: #d99a00;
  --reward-line: #dfe6f1;
  --reward-muted: #60708c;
  display: grid;
  gap: 18px;
  padding-bottom: 24px;
}

.partner-rewards-view.hidden {
  display: none;
}

.rewards-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.rewards-eyebrow,
.rewards-panel-title span {
  color: var(--reward-green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rewards-page-header h2 {
  margin: 5px 0 3px;
  color: var(--reward-navy);
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
  line-height: 1.05;
}

.rewards-page-header p,
.rewards-panel-title p {
  margin: 0;
  color: var(--reward-muted);
}

.rewards-store-chip {
  min-width: 220px;
  padding: 12px 16px;
  border: 1px solid #d8e4ee;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4fbf5, #fff);
  box-shadow: 0 8px 24px rgba(7, 29, 72, 0.06);
}

.rewards-store-chip span,
.rewards-store-chip small {
  display: block;
  color: var(--reward-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.rewards-store-chip strong {
  display: block;
  margin: 3px 0;
  color: var(--reward-navy);
}

.rewards-status {
  padding: 14px 16px;
  border: 1px solid #d8e5fb;
  border-radius: 14px;
  background: #f3f7ff;
  color: #254b84;
  font-weight: 800;
}

.rewards-status.success {
  border-color: #bfe6c8;
  background: #f0fbf2;
  color: #167832;
}

.rewards-status.error {
  border-color: #f2c6c6;
  background: #fff3f3;
  color: #a62828;
}

.rewards-progress-board {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 0.9fr;
  border: 1px solid var(--reward-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 12% 0%, rgba(23, 160, 64, 0.08), transparent 25%),
    #fff;
  box-shadow: 0 10px 32px rgba(7, 29, 72, 0.07);
  overflow: hidden;
}

.rewards-progress-cell {
  min-width: 0;
  padding: 22px 24px;
}

.rewards-progress-cell + .rewards-progress-cell {
  border-left: 1px solid var(--reward-line);
}

.rewards-progress-cell > span {
  display: block;
  margin-bottom: 10px;
  color: #405271;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rewards-progress-cell > strong {
  display: block;
  color: var(--reward-navy);
  font-size: 1.7rem;
}

.rewards-progress-cell > strong b {
  color: var(--reward-green);
  font: inherit;
}

.rewards-progress-cell > p {
  margin: 3px 0 14px;
  color: var(--reward-muted);
  font-size: 0.86rem;
}

.rewards-progress-track {
  height: 9px;
  border-radius: 99px;
  background: #e5eaf2;
  overflow: hidden;
}

.rewards-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f902e, #32c358);
  transition: width 500ms ease;
}

.rewards-progress-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--reward-muted);
}

.rewards-tier-summary {
  display: flex;
  align-items: center;
  gap: 15px;
}

.rewards-tier-summary strong {
  color: var(--reward-navy);
  font-size: 1.45rem;
}

.rewards-tier-summary p {
  margin: 3px 0 6px;
  color: var(--reward-muted);
  font-size: 0.82rem;
}

.rewards-tier-summary mark {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 8px;
  background: #fff4d9;
  color: #7c5600;
  font-size: 0.73rem;
  font-weight: 900;
}

.rewards-tier-summary mark.hidden {
  display: none;
}

.rewards-tier-medal {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border: 5px double rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: #9ba5b5;
  box-shadow: 0 7px 15px rgba(7, 29, 72, 0.16);
  color: #fff;
  font-size: 1.45rem;
}

.rewards-tier-medal.silver { background: linear-gradient(145deg, #c6cfdd, #7f8b9f); }
.rewards-tier-medal.gold { background: linear-gradient(145deg, #ffc83d, #c98700); }
.rewards-tier-medal.premium { background: linear-gradient(145deg, #a65cff, #5c1bb9); }
.rewards-tier-medal.elite { background: linear-gradient(145deg, #36adf1, #1249aa); }

.rewards-calendar-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.rewards-calendar-count div {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e9f7ec;
  color: var(--reward-green);
  font-size: 1.45rem;
  font-weight: 900;
}

.rewards-calendar-count strong {
  color: var(--reward-navy);
  font-size: 2.15rem;
}

.week-window {
  text-align: center;
}

.week-window > small {
  color: var(--reward-muted);
  font-weight: 700;
}

.rewards-unlocked-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid #bde4c5;
  border-radius: 18px;
  background: linear-gradient(110deg, #eefaf0, #fff 70%);
  box-shadow: 0 8px 25px rgba(21, 155, 55, 0.08);
}

.rewards-unlocked-banner.hidden {
  display: none;
}

.rewards-unlocked-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--reward-green);
  color: #fff;
  font-size: 1.35rem;
}

.rewards-unlocked-banner span {
  color: var(--reward-green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.rewards-unlocked-banner strong {
  display: block;
  margin-top: 2px;
  color: var(--reward-navy);
  font-size: 1.05rem;
}

.rewards-unlocked-banner p {
  margin: 3px 0 0;
  color: var(--reward-muted);
  font-size: 0.82rem;
}

.rewards-unlocked-banner mark {
  padding: 8px 12px;
  border-radius: 10px;
  background: #dff5e4;
  color: #11742b;
  font-weight: 900;
}

.rewards-unlocked-action {
  display: grid;
  min-width: 178px;
  gap: 7px;
  justify-items: stretch;
  text-align: center;
}

.rewards-unlocked-action button {
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, #118a30, #20ae44);
  box-shadow: 0 8px 18px rgba(21, 155, 55, 0.2);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.rewards-unlocked-action button:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.rewards-unlocked-action button:disabled {
  background: #d7dfda;
  box-shadow: none;
  color: #66736a;
  cursor: not-allowed;
}

.rewards-unlocked-action small {
  max-width: 190px;
  color: var(--reward-muted);
  font-size: 0.67rem;
  line-height: 1.35;
}

.rewards-unlocked-banner.redeemed {
  border-color: #cfd8e5;
  background: linear-gradient(110deg, #f2f5f9, #fff 70%);
}

.rewards-unlocked-banner.redeemed .rewards-unlocked-icon {
  background: #52637d;
}

.rewards-unlocked-banner.redeemed > div:nth-child(2) > span {
  color: #52637d;
}

.rewards-information-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.9fr) minmax(260px, 0.86fr);
  gap: 16px;
  align-items: stretch;
}

.rewards-panel {
  min-width: 0;
  border: 1px solid var(--reward-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(7, 29, 72, 0.055);
}

.rewards-panel-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px 14px;
}

.rewards-panel-title h3 {
  margin: 3px 0 0;
  color: var(--reward-navy);
  font-size: 1.03rem;
}

.rewards-panel-title small {
  max-width: 220px;
  color: var(--reward-muted);
  text-align: right;
}

.rewards-tier-table {
  padding: 0 14px 14px;
}

.rewards-tier-table-head,
.rewards-tier-row {
  display: grid;
  grid-template-columns: minmax(115px, 0.78fr) minmax(150px, 1fr) minmax(240px, 1.45fr);
  gap: 12px;
  align-items: center;
}

.rewards-tier-table-head {
  padding: 10px 12px;
  background: #f4f7fb;
  color: #4c5f7e;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.rewards-tier-row {
  min-height: 57px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--reward-line);
  color: #293a57;
  font-size: 0.82rem;
}

.rewards-tier-row:last-child {
  border-bottom: 0;
}

.rewards-tier-row.active {
  margin: 3px 0;
  border: 1px solid #bce4c5;
  border-radius: 12px;
  background: #f2fbf4;
}

.rewards-tier-name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--reward-navy);
  font-weight: 900;
}

.rewards-tier-name i {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #a5afbe;
  color: #fff;
  font-style: normal;
}

.rewards-tier-name i.silver { background: #8d98a9; }
.rewards-tier-name i.gold { background: #dda000; }
.rewards-tier-name i.premium { background: #7433cc; }
.rewards-tier-name i.elite { background: #1764c9; }

.rewards-tier-benefit strong {
  color: var(--reward-navy);
}

.rewards-tier-benefit mark {
  display: inline-flex;
  margin-left: 7px;
  padding: 4px 8px;
  border-radius: 7px;
  background: #eef2f8;
  color: #3f506c;
  font-size: 0.7rem;
  font-weight: 900;
}

.rewards-tier-benefit small {
  display: block;
  margin-top: 4px;
  color: var(--reward-muted);
  font-size: 0.68rem;
}

.rewards-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 4px 20px 18px;
  list-style: none;
}

.rewards-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  min-height: 67px;
}

.rewards-steps li:not(:last-child)::after {
  position: absolute;
  top: 34px;
  bottom: 2px;
  left: 16px;
  width: 2px;
  background: #68c57c;
  content: "";
}

.rewards-steps b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--reward-green);
  color: #fff;
}

.rewards-steps strong {
  color: var(--reward-navy);
  font-size: 0.84rem;
}

.rewards-steps p {
  margin: 4px 0 0;
  color: var(--reward-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.rewards-rules {
  margin: 0;
  padding: 0 18px 16px;
  list-style: none;
}

.rewards-rules li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--reward-line);
  color: #3e506d;
  font-size: 0.76rem;
  line-height: 1.35;
}

.rewards-rules li:last-child {
  border-bottom: 0;
}

.rewards-rules i {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 2px solid #2676ec;
  border-radius: 8px;
  color: #2676ec;
  font-style: normal;
  font-weight: 900;
}

.rewards-lower-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.35fr);
  gap: 16px;
}

.rewards-month-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
  padding: 0 16px 16px;
}

.rewards-month-stats article {
  display: flex;
  min-height: 142px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border: 1px solid #dce6ee;
  border-radius: 14px;
  background: #f8fbff;
  text-align: center;
}

.rewards-month-stats i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: #e7f7eb;
  color: var(--reward-green);
  font-style: normal;
  font-weight: 900;
}

.rewards-month-stats i.blue { background: #eaf2ff; color: var(--reward-blue); }
.rewards-month-stats i.purple { background: #f2eaff; color: var(--reward-purple); }
.rewards-month-stats i.gold { background: #fff5dc; color: var(--reward-gold); }

.rewards-month-stats span,
.rewards-month-stats small {
  color: var(--reward-muted);
  font-size: 0.72rem;
}

.rewards-month-stats strong {
  margin: 6px 0 3px;
  color: var(--reward-navy);
  font-size: 1.35rem;
}

.rewards-history-table {
  padding: 0 14px 14px;
  overflow-x: auto;
}

.rewards-history-head,
.rewards-history-row {
  display: grid;
  grid-template-columns: minmax(135px, 1fr) minmax(110px, 0.8fr) 80px minmax(190px, 1.35fr) 72px;
  gap: 10px;
  align-items: center;
  min-width: 690px;
}

.rewards-history-head {
  padding: 9px 11px;
  background: #f4f7fb;
  color: #4c5f7e;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.rewards-history-row {
  padding: 11px;
  border-bottom: 1px solid var(--reward-line);
  color: #344662;
  font-size: 0.76rem;
}

.rewards-history-row.current {
  background: #f5fbf6;
}

.rewards-history-row strong {
  color: var(--reward-navy);
}

.rewards-history-row span:first-child small {
  display: block;
  margin-top: 3px;
  color: var(--reward-green);
  font-size: 0.65rem;
  font-weight: 800;
}

.rewards-history-used,
.rewards-history-available {
  display: block;
  margin-top: 3px;
  color: var(--reward-green);
  font-size: 0.65rem;
  font-weight: 850;
}

.rewards-history-available {
  color: #8a6a16;
}

.rewards-history-row mark.used {
  background: #dff5e4;
  color: #11742b;
}

.rewards-history-row mark {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 7px;
  background: #e4f6e8;
  color: #147a2d;
  font-weight: 900;
}

.rewards-tier-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #9da8b7;
}

.rewards-tier-dot.silver { background: #919cad; }
.rewards-tier-dot.gold { background: #d99a00; }
.rewards-tier-dot.premium { background: #7234cb; }
.rewards-tier-dot.elite { background: #1766c9; }

.rewards-history-empty {
  min-width: 100%;
  padding: 28px 12px;
  color: var(--reward-muted);
  text-align: center;
}

.rewards-footer-note {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #d7e5fa;
  border-radius: 13px;
  background: #f4f8ff;
  color: #2764bd;
  font-size: 0.72rem;
}

.rewards-footer-note span {
  padding: 13px 16px;
  text-align: center;
}

.rewards-footer-note span + span {
  border-left: 1px solid #d7e5fa;
}

@media (max-width: 1320px) {
  .rewards-progress-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rewards-progress-cell:nth-child(3) {
    border-top: 1px solid var(--reward-line);
    border-left: 0;
  }

  .rewards-progress-cell:nth-child(4) {
    border-top: 1px solid var(--reward-line);
  }

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

  .rewards-tier-panel {
    grid-column: 1 / -1;
  }

  .rewards-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .rewards-page-header {
    align-items: stretch;
    flex-direction: column;
  }

  .rewards-store-chip {
    min-width: 0;
  }

  .rewards-progress-board,
  .rewards-information-grid {
    grid-template-columns: 1fr;
  }

  .rewards-progress-cell + .rewards-progress-cell,
  .rewards-progress-cell:nth-child(3),
  .rewards-progress-cell:nth-child(4) {
    border-top: 1px solid var(--reward-line);
    border-left: 0;
  }

  .rewards-tier-panel {
    grid-column: auto;
  }

  .rewards-tier-table {
    overflow-x: auto;
  }

  .rewards-tier-table-head,
  .rewards-tier-row {
    min-width: 650px;
  }

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

  .rewards-footer-note {
    grid-template-columns: 1fr;
  }

  .rewards-footer-note span + span {
    border-top: 1px solid #d7e5fa;
    border-left: 0;
  }
}

@media (max-width: 520px) {
  .partner-rewards-view {
    gap: 13px;
  }

  .rewards-progress-cell {
    padding: 18px;
  }

  .rewards-panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .rewards-panel-title small {
    text-align: left;
  }

  .rewards-unlocked-banner {
    grid-template-columns: auto 1fr;
  }

  .rewards-unlocked-action {
    grid-column: 1 / -1;
    width: 100%;
  }

  .rewards-unlocked-action small {
    max-width: none;
  }

  .rewards-month-stats {
    grid-template-columns: 1fr;
  }

  .delivery-reward-heading {
    grid-template-columns: auto 1fr;
  }

  .delivery-reward-heading button {
    grid-column: 1 / -1;
  }

.delivery-reward-pricing {
    grid-template-columns: 1fr;
  }
}

/* Keep the redesigned overview above legacy dashboard declarations. */
@media (min-width: 981px) {
  body.store-shell.overview-mode.with-sidebar {
    --sidebar-width: 286px;
  }

  body.store-shell.overview-mode .store-overview-main {
    width: min(1540px, calc(100% - 52px));
    padding-top: 22px;
  }

  body.store-shell.overview-mode .store-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding-bottom: 18px;
  }

  body.store-shell.overview-mode .store-stats {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 16px;
    margin: 0 0 18px;
  }

  body.store-shell.overview-mode .store-stat-card {
    min-height: 126px;
    grid-template-columns: 58px 1fr;
    grid-template-rows: auto auto auto;
    justify-items: start;
    align-content: center;
    column-gap: 14px;
    text-align: left;
  }

  body.store-shell.overview-mode .store-stat-card .stat-icon {
    grid-row: 1 / 4;
    width: 52px;
    height: 52px;
    margin: 0;
  }

  body.store-shell.overview-mode .store-toolbar {
    grid-template-columns: minmax(320px, 1.5fr) minmax(270px, 1fr) 130px 190px;
  }
}

/* Daily pricing comparison inside Partner Rewards */
.daily-pricing-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.daily-pricing-board.hidden { display: none !important; }

.daily-pricing-main,
.scheduled-pricing-card {
  border: 1px solid #dce6e2;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 56, 44, 0.055);
}

.daily-pricing-main { padding: 18px; }

.daily-pricing-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.daily-pricing-heading span {
  color: #078848;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.daily-pricing-heading h3,
.scheduled-pricing-card h3 {
  margin: 3px 0 0;
  color: #10231c;
  font-size: 1rem;
}

.daily-pricing-heading p {
  margin: 0;
  color: #697a73;
  font-size: 0.75rem;
}

.daily-pricing-tiers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.daily-pricing-tier {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e1e8e5;
  border-radius: 12px;
  background: #fcfefd;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.daily-pricing-tier.active {
  border-color: #0aaa60;
  box-shadow: 0 0 0 2px rgba(10, 170, 96, 0.13), 0 10px 22px rgba(6, 119, 66, 0.09);
  transform: translateY(-2px);
}

.daily-pricing-tier header {
  display: grid;
  gap: 3px;
  min-height: 64px;
  padding: 11px 12px;
  border-bottom: 1px solid #e7eeeb;
}

.daily-pricing-tier header i {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 99px;
  background: #e8f7ef;
  color: #087844;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.daily-pricing-tier.partner header i { background: #fff2d4; color: #a66100; }
.daily-pricing-tier.plus header i { background: #eaf0ff; color: #315dcc; }
.daily-pricing-tier.elite header i { background: #f0e9ff; color: #7136cf; }
.daily-pricing-tier header strong { color: #182b24; font-size: 0.76rem; }

.daily-pricing-tier dl,
.scheduled-pricing-card dl { margin: 0; }

.daily-pricing-tier dl div,
.scheduled-pricing-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 35px;
  padding: 7px 11px;
  border-bottom: 1px solid #edf1ef;
}

.daily-pricing-tier dl div:last-child,
.scheduled-pricing-card dl div:last-child { border-bottom: 0; }
.daily-pricing-tier dt,
.scheduled-pricing-card dt { color: #52645d; font-size: 0.68rem; }
.daily-pricing-tier dd,
.scheduled-pricing-card dd { margin: 0; color: #172a23; font-size: 0.68rem; font-weight: 900; text-align: right; }

.daily-pricing-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 13px 0 0;
  color: #53665e;
  font-size: 0.72rem;
}
.daily-pricing-note span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1px solid #82b99e;
  border-radius: 50%;
  color: #078848;
  font-size: 0.65rem;
  font-weight: 900;
}

.scheduled-pricing-card { overflow: hidden; }
.scheduled-pricing-card header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 56px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5ece9;
  background: #f8fcfa;
}
.scheduled-pricing-card header span { color: #078848; }
.scheduled-pickup-window {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px;
  padding: 12px;
  border-radius: 11px;
  background: #eaf6ef;
  color: #153a2c;
}
.scheduled-pickup-window > span { font-size: 1.25rem; color: #078848; }
.scheduled-pickup-window strong,
.scheduled-pickup-window small { display: block; }
.scheduled-pickup-window strong { font-size: 0.75rem; }
.scheduled-pickup-window small { margin-top: 2px; color: #5c7067; font-size: 0.68rem; }

.weekly-rewards-divider {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 8px;
  padding: 0 2px;
}
.weekly-rewards-divider span { color: #071d48; font-size: 1.05rem; font-weight: 900; }
.weekly-rewards-divider p { margin: 0; color: #687892; font-size: 0.78rem; }

@media (max-width: 1180px) {
  .daily-pricing-board { grid-template-columns: 1fr; }
  .scheduled-pricing-card { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: stretch; }
  .scheduled-pricing-card header { border-bottom: 0; border-right: 1px solid #e5ece9; }
  .scheduled-pricing-card dl { display: grid; grid-template-columns: repeat(2, 1fr); }
  .scheduled-pickup-window { align-self: center; }
}

@media (max-width: 760px) {
  .daily-pricing-heading,
  .weekly-rewards-divider { display: grid; gap: 5px; }
  .daily-pricing-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scheduled-pricing-card { display: block; }
  .scheduled-pricing-card header { border-right: 0; border-bottom: 1px solid #e5ece9; }
  .scheduled-pricing-card dl { display: block; }
}

@media (max-width: 460px) {
  .daily-pricing-tiers { grid-template-columns: 1fr; }
}

/* Delivery list tier-price presentation */
.overview-mode .store-table-row:has(.tier-price-card) {
  min-height: 104px;
}

.price-cell {
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

.price-simple {
  color: #087744;
  font-size: 0.95rem;
  font-weight: 900;
}

.tier-price-card {
  width: 176px;
  min-width: 176px;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
  padding: 9px 11px;
  border: 1px solid #e8e3f5;
  border-radius: 12px;
  background: linear-gradient(145deg, #fbf9ff, #fff);
  box-shadow: 0 6px 15px rgba(54, 36, 99, 0.045);
  overflow: visible;
}

.tier-price-label {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 99px;
  background: #ece5ff;
  color: #5c2fd0;
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1.1;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

.tier-price-card.partner .tier-price-label { background: #e9f8ef; color: #087744; }
.tier-price-card.plus .tier-price-label { background: #e8eeff; color: #315dcc; }
.tier-price-card.elite .tier-price-label { background: #f0e8ff; color: #7136cf; }
.tier-price-card.normal .tier-price-label { background: #fff0d8; color: #9a5a00; }
.tier-price-card.welcome .tier-price-label { background: #e1f6ff; color: #08708f; }
.tier-price-card.reward .tier-price-label { background: #fff0d8; color: #9a5a00; }

.tier-price-card > strong {
  color: #087744;
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.2;
}

.tier-price-card > del {
  align-self: center;
  color: #7e817f;
  font-size: 0.72rem;
}

.tier-price-card > small {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #06944f;
  font-size: 0.65rem;
  font-weight: 850;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.tier-price-card > small i {
  color: #08a65a;
  font-size: 0.58rem;
  font-style: normal;
}

@media (max-width: 760px) {
  .tier-price-card { max-width: none; }
}

.note-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 10px;
}

.note-preset-chip {
  border: 1px solid rgba(219, 39, 119, 0.25);
  background: #fff;
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.note-preset-chip:hover {
  background: rgba(219, 39, 119, 0.08);
}

.note-preset-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.zone-pooling-banner.hidden { display: none !important; }

.zone-pooling-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 16px;
  color: #1e3a8a;
}

.zone-pooling-banner-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}

.zone-pooling-banner strong {
  color: #1d4ed8;
}

.zone-pooling-map {
  height: 320px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #bfdbfe;
  background: #dbeafe;
}
