:root {
  --bs-border-radius:          10px;
  --bs-border-radius-sm:        6px;
  --bs-border-radius-lg:       12px;
  --bs-border-radius-xl:       16px;
  --bs-card-border-radius:     10px;
  --bs-btn-border-radius:      10px;
  --bs-input-border-radius:    10px;
  --bs-nav-pills-border-radius:10px;
  --bs-alert-border-radius:    10px;
  --bs-badge-border-radius:     6px;
  --bs-dropdown-border-radius: 10px;
}

body { background-color: #f8f9fa; }

/* ── Navbar & Footer ──────────────────────────────────────────────────── */
.site-navbar {
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}
.site-footer {
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  color: #6c757d;
}

/* ── Utility ──────────────────────────────────────────────────────────── */
.step-badge {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: #0d6efd; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.status-badge { font-size: .78rem; padding: .3em .65em; }
.card { box-shadow: 0 1px 6px rgba(0,0,0,.07); }
.table td, .table th { vertical-align: middle; }

/* ── Orders table ─────────────────────────────────────────────────────── */
.orders-table {
  border-collapse: separate;
  border-spacing: 0;
  background: transparent;
}
.orders-table thead th { background: transparent; }
.order-group > tr > td {
  background: #fff;
  border-top: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
}
.order-group > tr + tr > td { border-top: none; }
.order-group > tr > td:last-child { border-right: 1px solid #d8d8d8; }
.order-group > tr > td:first-child { border-left: 1px solid #d8d8d8; }
.order-id-cell {
  border-top-left-radius: 10px;
}
.order-group > tr:first-child > td:last-child { border-right: 1px solid #d8d8d8; border-top-right-radius: 10px; }
.order-group > tr:nth-last-child(2) > td:first-child { border-bottom-left-radius: 10px; }
.order-br-cell { border-right: 1px solid #d8d8d8; border-bottom-right-radius: 10px; }
@media (max-width: 767px) {
  .order-group > tr > td:first-child + td { border-left: 1px solid #d8d8d8; }
  .order-group > tr:nth-last-child(2) > td:first-child + td { border-bottom-left-radius: 10px; }
}
.order-group-done { opacity: 0.55; }
.order-group:not(.order-group-done) > tr:not(.order-spacer) > td:first-child { box-shadow: inset 3px 0 0 #0d6efd; }
.order-group-done > tr:not(.order-spacer) > td:first-child { box-shadow: inset 3px 0 0 #198754; }
@media (max-width: 767px) {
  .order-group:not(.order-group-done) > tr:not(.order-spacer) > td:first-child:not(:only-child) { box-shadow: none; }
  .order-group:not(.order-group-done) > tr:not(.order-spacer) > td:first-child + td { box-shadow: inset 3px 0 0 #0d6efd; }
  .order-group-done > tr:not(.order-spacer) > td:first-child:not(:only-child) { box-shadow: none; }
  .order-group-done > tr:not(.order-spacer) > td:first-child + td { box-shadow: inset 3px 0 0 #198754; }
}
.order-spacer > td {
  height: 12px;
  padding: 0 !important;
  border: none !important;
  background: #f8f9fa !important;
}

/* ── Bottom Tab Bar ───────────────────────────────────────────────────── */
.bottom-nav {
  display: none;
}
@media (max-width: 767px) {
  body {
    padding-bottom: 64px;
  }
  footer {
    margin-bottom: 64px;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1040;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    height: 64px;
  }
  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(0,0,0,.45);
    text-decoration: none;
    font-size: 10px;
    line-height: 1;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav a i { font-size: 1.35rem; }
  .bottom-nav a.active,
  .bottom-nav a:hover { color: #0d6efd; }
  .bottom-nav a.active i { position: relative; }
  .bottom-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    width: 20px;
    height: 2px;
    background: #0d6efd;
    border-radius: 1px;
  }
  .bottom-nav .flex-1 { flex: 1; }
  .bottom-nav-btn {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(0,0,0,.45);
    background: none;
    border: none;
    font-size: 10px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .bottom-nav-btn i { font-size: 1.35rem; }
  .bottom-nav-btn:hover { color: #0d6efd; }
  .bottom-nav .btn-center { flex: 1; }
}
