:root {
  --bg: #FBF7F7;
  --panel: #FFFFFF;
  --panel-2: #FFF6F8;
  --accent: #116644;
  --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;
}

.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;
}

.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(30, 122, 90, 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(17,102,68,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(30, 122, 90, 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(30, 122, 90, 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 {
  position: relative;
  height: 315px;
  z-index: 1;
}

.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;
}

.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);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.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(17,102,68,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;
}

.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;
  }

  .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(30,122,90,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(17,102,68,0.18), rgba(17,102,68,0.12)); box-shadow: inset 0 0 0 1px rgba(17,102,68,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(17,102,68,0.08), rgba(17,102,68,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(17,102,68,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(17,102,68,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(17,102,68,0.18); box-shadow: 0 20px 40px rgba(17,102,68,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,#116644); }
.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) 180px 160px;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #e5e9f0;
}

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

.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: #157347;
}

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

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

.store-table-head,
.store-table-row {
  display: grid;
  grid-template-columns: 130px 150px minmax(220px, 1fr) 110px 150px 130px 110px;
  gap: 10px;
  min-width: 1050px;
  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-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: #157347; background: #def8ea; }
.store-status.cancelled { color: #4b5563; background: #edf0f3; }

.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: #0aa45f;
  color: #ffffff;
  border-color: #0aa45f;
}

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

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

.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: 8px;
  padding: 16px;
}

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

.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;
}

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

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

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

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

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

.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;
}

.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;
}

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

.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: #159464;
  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: #0aa45f;
}

.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; }
.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 small {
  color: #15803d;
}

.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;
  }

  .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;
  }
}

/* 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-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: #0aa45f;
  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;
}

@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-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: #0aa45f;
  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;
}

.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: #159464;
  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: #159464;
  font-style: normal;
  font-weight: 900;
}

.driver-status {
  display: inline-flex;
  border-radius: 8px;
  padding: 6px 10px;
  background: #def8ea;
  color: #157347;
  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;
  }

  .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 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;
  }
}
