/* =====================================================================
   BURJO MANG KUSNADI - CAVOSH-INSPIRED LAYOUT & WORKSPACE SYSTEM
   Dark Slate Navy Curved Header + Overlapping Search + Crisp Cool Canvas
   ===================================================================== */

/* ==================== WARM HONEY-GOLD YELLOW TOPBAR (MATCHING BURJO LOGO #FEC22C + WARM ESPRESSO #2B1B0E) ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background-color: #F7BE34;
  color: #2B1B0E;
  border-bottom: 1px solid rgba(43, 27, 14, 0.08);
  background-image:
    url('/assets/header-doodles.svg?v=6'),
    radial-gradient(circle at 12% 20%, rgba(255, 248, 224, 0.22) 0 42px, transparent 43px),
    radial-gradient(circle at 88% 82%, rgba(255, 248, 224, 0.18) 0 58px, transparent 59px),
    linear-gradient(180deg, #F8C23A 0%, #F4BA2F 100%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 320px 180px, auto, auto, 100% 100%;
  background-position: 0 0, center, center, center;
}

.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: transparent;
  border: none;
  padding: 4px 6px 4px 0;
  border-radius: var(--radius-sm);
  text-align: left;
  color: #2B1B0E;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #FEC22C;
  border: 1px solid rgba(43, 27, 14, 0.1);
  box-shadow: 0 2px 6px rgba(43, 27, 14, 0.14);
  overflow: hidden;
  display: block;
  flex-shrink: 0;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand > div { min-width: 0; }
.brand h1 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #2B1B0E;
  letter-spacing: -0.02em;
  line-height: 1.32;
  padding: 1px 0 2px;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #4A2F15;
  margin-top: 2px;
  letter-spacing: 0.01em;
}

/* ==================== 2-MODE SEGMENTED SWITCHER ==================== */
.mode-slider {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: rgba(255, 251, 240, 0.38);
  border: 1px solid rgba(43, 27, 14, 0.11);
  border-radius: var(--radius-pill);
  padding: 4px;
  width: 100%;
  max-width: 300px;
  justify-self: center;
  user-select: none;
}

.mode-slider-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  bottom: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: var(--radius-pill);
  background: #FFFDF7;
  box-shadow: 0 1px 3px rgba(43, 27, 14, 0.1);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease, background-color 0.22s ease;
  z-index: 1;
}

.mode-slider[data-mode="qr"] .mode-slider-thumb { transform: translateX(0%); opacity: 1; }
.mode-slider[data-mode="preorder"] .mode-slider-thumb { transform: translateX(100%); opacity: 1; }
.mode-slider[data-mode="admin"] .mode-slider-thumb { opacity: 0; pointer-events: none; }

.admin-mode-slider[data-admin-view="staff"] .mode-slider-thumb { transform: translateX(0%); opacity: 1; }
.admin-mode-slider[data-admin-view="owner"] .mode-slider-thumb { transform: translateX(100%); opacity: 1; }
.admin-mode-slider.is-single {
  grid-template-columns: 1fr;
  max-width: 170px;
}
.admin-mode-slider.is-single .mode-slider-thumb {
  width: calc(100% - 8px);
  transform: translateX(0%);
}

.mode-slider-btn {
  position: relative;
  z-index: 2;
  border: none;
  background: transparent;
  padding: 8px 10px;
  min-height: 36px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: #4A2F15;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.mode-slider-btn:hover { color: #2B1B0E; }
.mode-slider-btn.active { color: #2B1B0E; }
.mode-slider-btn svg { flex-shrink: 0; }

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.table-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  min-height: 38px;
  border-radius: var(--radius-pill);
  background: #FFFDF7;
  color: #2B1B0E;
  border: 1px solid rgba(43, 27, 14, 0.11);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.16s, border-color 0.16s;
}
.table-picker-btn:hover {
  background: #FFFFFF;
  border-color: rgba(43, 27, 14, 0.26);
}
.table-locked-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 6px;
  min-height: 36px;
  color: #2B1B0E;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.table-locked-tag svg {
  flex-shrink: 0;
  color: #2B1B0E;
}

.nav-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 251, 240, 0.38);
  padding: 3px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(43, 27, 14, 0.11);
}

.nav-tab {
  border: none;
  background: transparent;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: #2B1B0E;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.16s, color 0.16s;
}
.nav-tab:hover { color: #1A0F07; }
.nav-tab.active {
  background: #FFFDF7;
  color: #2B1B0E;
  box-shadow: 0 1px 3px rgba(43, 27, 14, 0.1);
}

.dot-count {
  background: var(--coral);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
}

/* Account Avatar Circle & Popover Dropdown (Admin Mode) */
.user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.user-avatar-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(43, 27, 14, 0.14);
  background: #FFFDF7;
  color: #2B1B0E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: 0 1px 4px rgba(43, 27, 14, 0.1);
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}
.user-avatar-btn:hover {
  background: #FFFFFF;
  border-color: rgba(43, 27, 14, 0.3);
}
.user-menu-wrap.open .user-avatar-btn {
  background: #FFFFFF;
  border-color: var(--coral);
}
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 205px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  padding: 6px;
  z-index: 120;
}
.user-menu-wrap.open .user-dropdown {
  display: block;
  animation: uiFadeUp 0.15s ease both;
}
.user-dropdown-head {
  padding: 8px 10px 9px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 5px;
}
.user-dropdown-head strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}
.user-dropdown-head span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}
.user-dropdown-logout {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 10px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  transition: background 0.14s;
}
.user-dropdown-logout:hover {
  background: var(--canvas);
}

/* ==================== BUTTONS (CAVOSH DARK SLATE + CORAL) ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: var(--radius-pill);
  min-height: 42px;
  padding: 10px 18px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.12s;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.45; }
.btn-forest { background: var(--coral); color: #FFFFFF; }
.btn-forest:hover:not(:disabled) { background: var(--coral-hover); }
.btn-gold { background: var(--coral); color: #FFFFFF; }
.btn-gold:hover:not(:disabled) { background: var(--coral-hover); }
.btn-outline { background: var(--surface); color: var(--slate-dark); border-color: var(--border-strong); }
.btn-outline:hover:not(:disabled) { border-color: var(--slate); background: var(--slate-soft); }
.btn-danger { background: var(--danger); color: #FFFFFF; }
.btn-danger:hover:not(:disabled) { background: #931B22; }
.btn-danger-outline { background: var(--surface); color: var(--danger); border-color: var(--border-strong); }
.btn-danger-outline:hover:not(:disabled) { background: var(--danger); color: #FFFFFF; border-color: var(--danger); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 12.5px; }
.btn-xs { min-height: 32px; padding: 5px 11px; font-size: 11.5px; }

.context-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--muted);
}
.context-badge.qr { color: var(--slate); }
.context-badge.po { color: var(--coral-dark); }
.context-badge.adm { color: var(--slate); }

/* ==================== WARM HONEY-GOLD YELLOW CURVED HERO BAND (BUYER MENU) ==================== */
.buyer-hero-band {
  background-color: #F4BA2F;
  color: #2B1B0E;
  border-radius: 0 0 28px 28px;
  padding: 20px 24px 44px;
  margin: -24px -24px 0;
  position: relative;
  overflow: hidden;
  background-image:
    url('/assets/header-doodles.svg?v=6'),
    radial-gradient(circle at 90% 72%, rgba(255, 248, 224, 0.22) 0 110px, transparent 111px),
    radial-gradient(circle at 6% 88%, rgba(255, 248, 224, 0.18) 0 70px, transparent 71px),
    linear-gradient(180deg, #F4BA2F 0%, #EEB024 100%);
  background-repeat: repeat, no-repeat, no-repeat, no-repeat;
  background-size: 320px 180px, auto, auto, 100% 100%;
  background-position: 0 -68px, center, center, center;
}

.buyer-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.buyer-hero-band h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  color: #2B1B0E;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.buyer-hero-chip {
  color: #4A2F15;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==================== MAIN CONTAINER ==================== */
.app-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.view-section { display: none; }
.view-section.active { display: block; }

/* ==================== BUYER MENU & STICKY CART ==================== */
.customer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 368px;
  gap: 28px;
  align-items: start;
}
.customer-grid > * { min-width: 0; }

/* Overlapping Floating Search Bar (Signature Cavosh Detail) */
.menu-search-overlap {
  margin-top: -26px;
  margin-bottom: 20px;
  position: relative;
  z-index: 5;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 6px 6px 18px;
  box-shadow: var(--shadow-float);
  transition: border-color 0.16s, box-shadow 0.16s;
}
.search-box:focus-within {
  border-color: var(--slate);
  box-shadow: 0 10px 28px rgba(24, 36, 48, 0.14);
}
.search-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  background: transparent;
  color: var(--ink);
  min-height: 36px;
}
.search-box input::placeholder { color: var(--muted); }

.search-box-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--coral);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* Category Pills (Cavosh Row 2 Col 1) */
.cat-section-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.cat-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }

.cat-pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  min-height: 40px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.cat-pill:hover { border-color: var(--coral); color: var(--coral-dark); }
.cat-pill.active {
  background: var(--coral);
  color: #FFFFFF;
  border-color: var(--coral);
}

/* Section Headings inside Catalog */
.catalog-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}
.catalog-section-head h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.catalog-section-head span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

/* Featured Strip ("Menu Andalan" - Cavosh "New in" horizontal showcase) */
.featured-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s, transform 0.18s;
}
.feat-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }

.feat-media {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--thumb-bg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.feat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feat-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--coral);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}
.feat-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  min-height: 35px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feat-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 36px;
}
.feat-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-dark);
  font-variant-numeric: tabular-nums;
}

/* Main Dish Grid (Cavosh Row 2 Col 1 - Crisp white cards + studio photo + Coral + button) */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dish-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.dish-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.dish-card.unavailable { opacity: 0.62; }
.dish-card.unavailable:hover { transform: none; border-color: var(--border); }

.dish-media {
  position: relative;
  border-radius: var(--radius-md);
  background: var(--thumb-bg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.dish-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.dish-card:hover .dish-media img { transform: scale(1.03); }
.dish-card.unavailable .dish-media img { filter: grayscale(0.75); }

.dish-tag {
  position: absolute;
  top: 9px;
  left: 9px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}
.dish-tag.fav { background: var(--coral); color: #FFFFFF; }
.dish-tag.off { background: var(--danger); color: #FFFFFF; }

.dish-body {
  padding: 2px 3px 2px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
  gap: 10px;
}
.dish-cat {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 2px;
}
.dish-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.dish-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
}
.dish-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--slate-dark);
  font-variant-numeric: tabular-nums;
}

/* Signature Cavosh Coral Rounded-Square "+" Button */
.add-btn {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  border: none;
  background: var(--coral);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.12s;
}
.add-btn:hover { background: var(--coral-hover); }
.add-btn:active { transform: scale(0.95); }
.add-btn svg { display: block; }

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  background: var(--coral);
  border-radius: 11px;
  padding: 3px;
  color: #FFFFFF;
}
.qty-stepper button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.14s;
}
.qty-stepper button:hover { background: rgba(255, 255, 255, 0.34); }
.qty-stepper button svg { display: block; }
.qty-stepper span {
  min-width: 22px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.soldout-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--input-bg);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

/* ==================== STICKY CART (CAVOSH "MY CART") ==================== */
.sticky-sidebar {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.panel-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}

.cart-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 14px;
}

.cart-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border-radius: var(--radius-md);
  background: var(--canvas);
  border: 1px solid var(--border);
}
.cart-row.no-thumb,
.cart-row:not(:has(.cart-thumb)) {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px 12px;
}
.cart-row .qty-stepper {
  justify-self: end;
  width: fit-content;
  height: 31px;
}

.cart-thumb {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--thumb-bg);
  flex-shrink: 0;
}
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-row strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.cart-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-row .qty-stepper button { width: 25px; height: 25px; }
.cart-row .qty-stepper span { min-width: 18px; font-size: 12px; }

.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  min-height: 42px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: var(--input-bg);
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s, background 0.16s;
}
.form-control:focus {
  border-color: var(--coral);
  background: var(--surface);
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4px;
  background: var(--input-bg);
  padding: 4px;
  border-radius: var(--radius-pill);
}
.mode-switch button {
  border: none;
  background: transparent;
  min-height: 38px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background 0.16s, color 0.16s;
}
.mode-switch button.active {
  background: var(--coral);
  color: #FFFFFF;
}
.pay-cash-svg {
  width: 20px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}
.pay-qris-svg {
  height: 15px;
  width: auto;
  display: block;
}
.pay-ledger-row .pay-qris-svg {
  height: 14px;
  color: var(--slate-dark);
}

.pay-helper-note {
  font-size: 12px;
  color: var(--muted);
  margin: -4px 0 12px;
  line-height: 1.4;
}
.pay-ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  padding: 4px 0 10px;
}
.pay-ledger-row strong {
  color: var(--slate-dark);
  font-weight: 800;
}

.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  padding: 12px 0;
  border-top: 1px dashed var(--border-strong);
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.empty-box {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
  font-size: 13px;
  background: var(--canvas);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
}

/* Mobile Floating Bottom Cart Bar (Sleek Coral Pill + Ellipsis Preview + SVG Cart Icon) */
.mobile-cart-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 80;
  width: calc(100% - 24px);
  background: var(--coral);
  color: #FFFFFF;
  padding: 9px 10px 9px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 28px rgba(43, 27, 14, 0.22);
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: none;
  text-align: left;
  transition: background 0.15s, transform 0.12s;
}
.mobile-cart-bar:hover { background: var(--coral-hover); }
.mobile-cart-bar:active { transform: scale(0.99); }
.mob-cart-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mob-cart-qty {
  font-size: 13.5px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
}
.mob-cart-preview {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: #FFEAE2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.mob-cart-total {
  font-size: 15px;
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mob-cart-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(43, 27, 14, 0.14);
}
.mob-cart-icon img {
  width: 21px;
  height: 21px;
  display: block;
}

/* ==================== ADMIN LOGIN (CLEAN WARM SURFACE) ==================== */
.admin-login-wrap {
  max-width: 820px;
  margin: 18px auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 20px;
  align-items: stretch;
}

.login-hero-card {
  padding: 0;
  overflow: hidden;
}
.login-hero-top {
  background: var(--canvas);
  color: var(--ink);
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--border);
}
.login-hero-top h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.login-hero-top p {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}
.login-hero-body { padding: 22px 24px 24px; }

.quick-account-btn {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  transition: border-color 0.16s, background 0.16s;
}
.quick-account-btn:hover {
  border-color: var(--slate);
  background: var(--slate-soft);
}

/* ==================== STAFF & OWNER WORKSPACE SHELL ==================== */
.workspace-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.workspace-shell > *,
.analytics-row > *,
.kpi-grid > *,
.pos-grid > *,
.kanban-grid > *,
.admin-login-wrap > * {
  min-width: 0;
}

.workspace-sidebar {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px 14px;
  position: sticky;
  top: 84px;
  box-shadow: var(--shadow-card);
}

.ws-brand {
  padding: 4px 10px 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.ws-brand h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.ws-brand span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-top: 2px;
}

.ws-menu { display: flex; flex-direction: column; gap: 5px; }

.ws-menu-btn {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 13px;
  min-height: 42px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}
.ws-menu-btn:hover { background: var(--canvas); color: var(--ink); }
.ws-menu-btn.active {
  background: var(--coral);
  color: #FFFFFF;
}

.ws-badge {
  background: var(--input-bg);
  color: var(--ink);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.ws-menu-btn.active .ws-badge {
  background: rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
}

.ws-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ws-footer-btn {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--muted);
  padding: 8px 12px;
  min-height: 38px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ws-footer-btn:hover { border-color: var(--danger); color: var(--danger); background: var(--surface); }

/* ==================== STAFF KANBAN KDS ==================== */
.kanban-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.kanban-col {
  background: var(--canvas-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-height: 440px;
}

.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-strong);
}
.kanban-col-head h4 {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
}
.order-card:last-child { margin-bottom: 0; }
.order-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.order-code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-dark);
}
.channel-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  display: inline-block;
}
.order-items-mini {
  list-style: none;
  font-size: 12.5px;
  margin: 8px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
  padding: 7px 0;
}
.order-items-mini li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
  font-variant-numeric: tabular-nums;
}
.order-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }

/* Status Labels (Tipografi langsung tanpa kapsul pil & tanpa titik dekoratif agar tidak tertukar tombol) */
.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.status-DITERIMA { color: var(--slate); }
.status-MENUNGGU_BAYAR { color: var(--coral); }
.status-DIPROSES { color: var(--warning); }
.status-SIAP { color: var(--slate-dark); }
.status-SELESAI { color: var(--success); }
.status-DITOLAK { color: var(--danger); }

.paid-pill {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--success);
}
.pay-method-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  margin-left: 6px;
}
.pay-method-pill.qris { color: var(--coral-dark); }
.pay-method-pill.cash { color: var(--muted); }

.staff-wait-qris {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  color: var(--slate-dark);
  font-size: 12px;
  font-weight: 700;
}
.staff-wait-qris svg { color: var(--coral); flex-shrink: 0; }

/* ==================== OWNER MIS DASHBOARD ==================== */
.kpi-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 0.95fr;
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.kpi-card.highlight {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}
.kpi-card small {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: block;
}
.kpi-card.highlight small { color: var(--coral-dark); }
.kpi-value {
  font-size: 27px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}
.kpi-card.highlight .kpi-value { color: var(--ink); font-size: 30px; }
.kpi-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi-card.highlight .kpi-sub { color: var(--muted); font-weight: 500; }

.analytics-row {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 184px;
  padding-top: 18px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.bar-fill {
  width: 100%;
  max-width: 34px;
  border-radius: 10px 10px 4px 4px;
  background: #CBD5E1;
  min-height: 6px;
}
.bar-fill.peak { background: var(--coral); }
.bar-val { font-size: 11.5px; font-weight: 800; color: var(--slate-dark); font-variant-numeric: tabular-nums; }
.bar-label { font-size: 10.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Tables */
.table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th {
  text-align: left;
  padding: 12px 14px;
  background: var(--canvas);
  color: var(--slate-dark);
  font-size: 11.5px;
  font-weight: 800;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}
tr:last-child td { border-bottom: none; }
tr.total-row td { background: var(--slate-soft); font-weight: 800; color: var(--slate-dark); }

.toggle-btn {
  min-height: 34px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  font-size: 12px;
  font-weight: 700;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.toggle-btn.on { background: var(--coral); color: #FFFFFF; border-color: var(--coral); }
.toggle-btn.on:hover { background: var(--coral-hover); border-color: var(--coral-hover); }
.toggle-btn.off { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.toggle-btn.off:hover { border-color: var(--danger); color: var(--danger); }

/* Toggle Switch Asli (Owner Kelola Menu - kontrol interaktif nyata, bukan pil palsu) */
.avail-switch {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: none;
  background: transparent;
  padding: 4px 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.avail-switch-track {
  width: 36px;
  height: 20px;
  border-radius: var(--radius-pill);
  background: #CBD5E1;
  position: relative;
  transition: background 0.16s ease;
  flex-shrink: 0;
}
.avail-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.16s ease;
}
.avail-switch.is-on .avail-switch-track { background: var(--success); }
.avail-switch.is-on .avail-switch-track::after { transform: translateX(16px); }
.avail-switch.is-off { color: var(--muted); }

/* POS Cashier */
.pos-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.pos-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-height: 540px; overflow-y: auto; }
.pos-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  text-align: left;
  min-height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
}
.pos-item:hover:not(.unavailable) { border-color: var(--border-strong); background: var(--canvas); }
.pos-item.is-selected { border-color: var(--coral); }
.pos-item.unavailable { opacity: 0.5; cursor: not-allowed; }
.pos-item-title {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
  color: var(--ink);
}
.pos-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 32px;
}
.pos-item-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--slate-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pos-item-off {
  font-size: 12px;
  font-weight: 700;
  color: var(--danger);
}
.pos-item .add-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}
.pos-item .qty-stepper {
  height: 32px;
  padding: 2px;
  gap: 2px;
  border-radius: 10px;
}
.pos-item .qty-stepper button {
  width: 26px;
  height: 28px;
}
.pos-item .qty-stepper span {
  min-width: 17px;
  font-size: 12px;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.filter-toolbar h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.modal-box.qr-picker-modal-box {
  max-width: 780px;
  max-height: 92dvh;
}
.qr-picker-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}
.qr-sim-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 4px;
}
.qr-sim-card {
  border: 1.5px solid var(--border);
  background: var(--canvas);
  border-radius: var(--radius-md);
  padding: 10px 10px 11px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  transition: border-color 0.16s, background 0.16s, transform 0.14s;
}
.qr-sim-card:hover {
  border-color: var(--coral);
  background: var(--surface);
  transform: translateY(-1px);
}
.qr-sim-card.active {
  background: var(--surface);
  border-color: var(--coral);
  box-shadow: 0 0 0 2px rgba(200, 67, 31, 0.15);
}
.qr-sim-card.active strong { color: var(--coral-dark); }
.qr-code-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.qr-code-box svg {
  width: 100%;
  height: 100%;
  display: block;
}
.qr-sim-card strong { font-size: 13.5px; font-weight: 800; }

.qr-zoom-panel {
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 8px 0 4px;
}
.qr-zoom-frame {
  width: 100%;
  max-width: 310px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.qr-zoom-code {
  width: 244px;
  height: 244px;
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow-card);
}
.qr-zoom-code svg {
  width: 100%;
  height: 100%;
  display: block;
}
.qr-zoom-label {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.qr-zoom-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  line-height: 1.4;
}
.qr-zoom-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.timeline-list {
  list-style: none;
  border-left: 2px solid var(--border-strong);
  margin-left: 7px;
  padding-left: 14px;
  font-size: 12.5px;
}
.timeline-list li { position: relative; margin-bottom: 7px; }
.timeline-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  position: absolute;
  left: -19px;
  top: 5px;
}
