:root {
  --primary-50: #fff3eb;
  --primary-100: #ffe0cc;
  --primary-500: #f97316;
  --primary-600: #ea580c;
  --primary-700: #c2410c;
  --neutral-0: #ffffff;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-300: #cbd5e1;
  --neutral-500: #64748b;
  --neutral-700: #334155;
  --neutral-900: #0f172a;
  --success-50: #ecfdf5;
  --success-600: #059669;
  --warning-50: #fffbeb;
  --warning-600: #d97706;
  --danger-50: #fef2f2;
  --danger-600: #dc2626;
  --info-50: #eff6ff;
  --info-600: #2563eb;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.08);
  --shadow-pop: 0 28px 70px rgba(15, 23, 42, 0.18);
  --font-ui: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at 12% 12%, rgba(249, 115, 22, 0.09), transparent 32rem),
    radial-gradient(circle at 92% 16%, rgba(37, 99, 235, 0.08), transparent 28rem),
    var(--neutral-50);
  color: var(--neutral-900);
  font-family: var(--font-ui);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  text-rendering: geometricPrecision;
}

strong,
.product-price,
.cart-bar-copy strong,
.summary-row strong,
.kpi-card strong,
.stat-card strong,
.receipt-line strong,
.align-right,
td.align-right,
.bar,
.rank-index {
  font-variant-numeric: tabular-nums;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

img {
  display: block;
  max-width: 100%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.prototype-shell {
  min-height: 100vh;
  padding: 18px;
}

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

.sidebar-brand strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.sidebar-brand span {
  display: block;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--neutral-900);
  color: var(--neutral-0);
  font-size: 13px;
  font-weight: 900;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 11px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 800;
  min-height: 34px;
  padding: 0 12px;
}

.filter-chip.active {
  background: var(--neutral-0);
  color: var(--neutral-900);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-period-control[hidden] {
  display: none;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-pill.success {
  background: var(--success-50);
  color: var(--success-600);
}

.status-pill.warning {
  background: var(--warning-50);
  color: var(--warning-600);
}

.status-pill.neutral {
  background: var(--neutral-100);
  color: var(--neutral-500);
}

.status-pill.danger {
  background: var(--danger-50);
  color: var(--danger-600);
}

.status-pill.info {
  background: var(--info-50);
  color: var(--info-600);
}

.status-pill svg {
  width: 14px;
  height: 14px;
}

.prototype-layout {
  display: grid;
  grid-template-columns: minmax(360px, 410px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  max-width: 1500px;
  margin: 0 auto;
}

.prototype-layout.view-mobile {
  grid-template-columns: minmax(340px, 430px);
  justify-content: center;
}

.prototype-layout.view-mobile .desktop-stage {
  display: none;
}

body.app-mode-mobile,
body.app-mode-tablet,
body.app-mode-desktop {
  width: 100%;
  min-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: var(--neutral-50);
  -webkit-tap-highlight-color: transparent;
}

body.app-mode-mobile .prototype-shell,
body.app-mode-tablet .prototype-shell,
body.app-mode-desktop .prototype-shell {
  min-height: 100dvh;
  padding: 0;
}

body.app-mode-mobile .prototype-layout.view-mobile,
body.app-mode-tablet .prototype-layout.view-tablet,
body.app-mode-desktop .prototype-layout.view-desktop {
  display: block;
  max-width: none;
  height: 100dvh;
  margin: 0;
}

body.app-mode-mobile .mobile-stage,
body.app-mode-tablet .tablet-stage,
body.app-mode-desktop .desktop-stage {
  display: block;
  height: 100dvh;
}

body.app-mode-mobile .phone-frame {
  position: relative;
  top: auto;
  width: 100%;
  max-width: none;
  height: 100dvh;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--neutral-50);
  box-shadow: none;
}

body.app-mode-mobile .phone-frame::before {
  display: none;
}

body.app-mode-mobile .phone-app {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  padding-top: 0;
}

body.app-mode-mobile .mobile-header {
  padding:
    calc(16px + env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    10px
    max(16px, env(safe-area-inset-left));
}

body.app-mode-mobile .mobile-content {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding:
    14px
    max(14px, env(safe-area-inset-right))
    calc(98px + env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}

body.app-mode-mobile .mobile-content.no-bottom-pad {
  padding-bottom: 20px;
}

body.app-mode-mobile .mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 18px 18px 0 0;
  padding: 6px max(12px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

body.app-mode-mobile .cart-bar {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: max(14px, env(safe-area-inset-right));
  bottom: calc(82px + env(safe-area-inset-bottom));
}

body.app-mode-mobile .drawer-backdrop,
body.app-mode-mobile .phone-drawer {
  position: fixed;
}

body.app-mode-mobile .phone-drawer {
  max-height: min(88dvh, calc(100dvh - env(safe-area-inset-top)));
}

body.app-mode-mobile .drawer-footer {
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}

body.app-mode-desktop .desktop-app {
  height: 100dvh;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.app-mode-desktop .desktop-sidebar,
body.app-mode-desktop .desktop-main {
  min-height: 0;
}

body.app-mode-desktop .desktop-main {
  display: flex;
  flex-direction: column;
}

body.app-mode-desktop .desktop-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.prototype-layout.view-desktop {
  grid-template-columns: minmax(0, 1fr);
}

.prototype-layout.view-desktop .mobile-stage {
  display: none;
}

.mobile-stage,
.desktop-stage {
  min-width: 0;
}

.eyebrow {
  display: block;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 900;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.primary-button {
  background: var(--primary-600);
  color: var(--neutral-0);
  box-shadow: 0 12px 24px rgba(234, 88, 12, 0.24);
}

.primary-button:hover {
  background: var(--primary-700);
}

.primary-button:disabled,
.checkout-submit:disabled {
  background: var(--neutral-300);
  color: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}

.primary-button:disabled:hover,
.checkout-submit:disabled:hover {
  background: var(--neutral-300);
}

.secondary-button {
  border-color: var(--neutral-200);
  background: var(--neutral-0);
  color: var(--neutral-700);
}

.app-switch-button {
  flex: 0 0 auto;
  min-width: 82px;
}

.sidebar-switch-button {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--neutral-0);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 900;
}

.sidebar-switch-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-switch-button svg {
  width: 17px;
  height: 17px;
}

.danger-button {
  background: var(--danger-50);
  color: var(--danger-600);
}

.ghost-button {
  background: transparent;
  color: var(--neutral-500);
}

.icon-button {
  width: 40px;
  padding: 0;
  border-color: var(--neutral-200);
  background: var(--neutral-0);
  color: var(--neutral-700);
}

.primary-button:active,
.secondary-button:active,
.danger-button:active,
.ghost-button:active,
.icon-button:active,
.product-card:active,
.nav-item:active {
  transform: translateY(1px);
}

.primary-button svg,
.secondary-button svg,
.danger-button svg,
.ghost-button svg,
.icon-button svg {
  width: 16px;
  height: 16px;
}

.phone-frame {
  position: sticky;
  top: 92px;
  height: 812px;
  overflow: hidden;
  border: 8px solid var(--neutral-900);
  border-radius: 38px;
  background: var(--neutral-0);
  box-shadow: var(--shadow-pop);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 5;
  width: 88px;
  height: 24px;
  border-radius: 999px;
  background: var(--neutral-900);
  transform: translateX(-50%);
}

.phone-app {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--neutral-50);
  padding-top: 42px;
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 10px;
  background: var(--neutral-0);
  border-bottom: 1px solid var(--neutral-200);
}

.mobile-header-copy strong {
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.mobile-header-copy span {
  display: block;
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.mobile-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 14px 92px;
}

.mobile-content.no-bottom-pad {
  padding-bottom: 20px;
}

.mobile-nav {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.mobile-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--neutral-500);
  font-size: 10px;
  font-weight: 900;
}

.mobile-nav button.active {
  background: var(--primary-50);
  color: var(--primary-700);
}

.mobile-nav svg {
  width: 17px;
  height: 17px;
}

.search-box {
  position: relative;
  margin-bottom: 12px;
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 17px;
  height: 17px;
  color: var(--neutral-500);
  transform: translateY(-50%);
}

.search-box input,
.field input,
.field textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-0);
  color: var(--neutral-900);
  outline: 0;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 700;
}

.dropdown-list {
  position: relative;
}

.dropdown-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-0);
  color: var(--neutral-900);
  padding: 0 13px 0 14px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.dropdown-list summary::-webkit-details-marker {
  display: none;
}

.dropdown-list summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--neutral-700);
  transition: transform 0.16s ease;
}

.dropdown-list summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-list input[type="hidden"] {
  display: none;
}

.dropdown-list[open] summary {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.dropdown-list[open] summary svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 5px;
  max-height: 236px;
  overflow-y: auto;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: var(--neutral-0);
  padding: 6px;
  box-shadow: var(--shadow-pop);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.dropdown-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.dropdown-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--neutral-700);
  padding: 10px;
  text-align: left;
}

.dropdown-menu button.active,
.dropdown-menu button:hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.dropdown-menu strong,
.dropdown-menu span {
  display: block;
}

.dropdown-menu strong {
  color: var(--neutral-900);
  font-size: 13px;
  font-weight: 900;
}

.dropdown-menu button.active strong,
.dropdown-menu button:hover strong {
  color: var(--primary-700);
}

.dropdown-menu span {
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.desktop-drawer .dropdown-menu,
.checkout-customer-dropdown .dropdown-menu {
  position: relative;
  top: auto;
  margin-top: 7px;
}

.search-box input {
  padding-left: 38px;
}

.field textarea {
  min-height: 76px;
  padding: 12px;
  resize: vertical;
}

.search-box input:focus,
.field input:focus,
.field textarea:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.chip-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  flex: 0 0 auto;
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  background: var(--neutral-0);
  color: var(--neutral-500);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.chip-button.active {
  border-color: var(--primary-500);
  background: var(--primary-50);
  color: var(--primary-700);
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  min-height: 196px;
  padding: 0;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: var(--neutral-0);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
  text-align: left;
}

.product-card.selected {
  border-color: rgba(249, 115, 22, 0.72);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.12);
}

.product-card.unavailable {
  border-color: var(--neutral-200);
  background: var(--neutral-50);
}

.product-card.unavailable .product-media img {
  filter: grayscale(0.2);
  opacity: 0.72;
}

.product-media {
  position: relative;
  height: 106px;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--neutral-100);
  border-radius: 13px 13px 0 0;
}

.product-media img {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  background: var(--neutral-100);
}

.product-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 10px;
}

.product-badge,
.product-qty-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.product-badge {
  left: 8px;
  top: 8px;
  gap: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary-700);
  padding: 0 8px;
}

.product-badge.danger {
  background: rgba(254, 242, 242, 0.94);
  color: var(--danger-600);
}

.product-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.product-qty-badge {
  right: 8px;
  top: 8px;
  min-width: 28px;
  padding: 0 8px;
  background: var(--neutral-900);
  color: var(--neutral-0);
}

.product-card h3 {
  display: -webkit-box;
  min-height: 34px;
  margin: 0;
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 900;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card p {
  margin: 6px 0 0;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.product-stock-state {
  display: inline-grid;
  grid-template-columns: 13px auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  min-width: 44px;
  max-width: 100%;
  min-height: 24px;
  margin-top: 8px;
  border-radius: 999px;
  background: var(--success-50);
  color: var(--success-600);
  padding: 0 8px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.product-stock-state.warning {
  background: var(--warning-50);
  color: var(--warning-600);
}

.product-stock-state.danger {
  background: var(--danger-50);
  color: var(--danger-600);
}

.product-stock-state svg {
  display: block;
  width: 13px;
  height: 13px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.product-price {
  color: var(--neutral-900);
  font-size: 13px;
  font-weight: 900;
}

.add-circle {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--primary-600);
  color: var(--neutral-0);
}

.add-circle.active {
  background: var(--neutral-900);
}

.add-circle.disabled {
  background: var(--neutral-300);
  color: var(--neutral-0);
}

.add-circle svg {
  width: 17px;
  height: 17px;
}

.cart-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 82px;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--neutral-900);
  color: var(--neutral-0);
  padding: 0 14px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.26);
}

.cart-bar-copy,
.cart-bar-copy span,
.cart-bar-copy strong {
  display: block;
}

.cart-bar-copy span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.cart-bar-copy strong {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 900;
}

.cart-bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  border-radius: 11px;
  background: var(--primary-600);
  color: var(--neutral-0);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
}

.cart-bar svg {
  width: 17px;
  height: 17px;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.34);
}

.phone-drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  max-height: 88%;
  overflow-y: auto;
  border-radius: 22px 22px 0 0;
  background: var(--neutral-0);
  box-shadow: 0 -24px 60px rgba(15, 23, 42, 0.24);
}

.drawer-header,
.drawer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--neutral-200);
}

.drawer-footer {
  position: sticky;
  bottom: 0;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 0;
  background: var(--neutral-0);
}

.drawer-header h2 {
  margin: 0;
  font-size: 16px;
}

.drawer-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.drawer-body {
  padding: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--neutral-100);
}

.cart-item h3,
.customer-card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
}

.cart-item p,
.customer-card p {
  margin: 4px 0 0;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

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

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 32px 32px 32px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
}

.qty-stepper button {
  height: 32px;
  border: 0;
  background: var(--neutral-100);
  color: var(--neutral-700);
  font-weight: 900;
}

.qty-stepper span {
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.summary-box {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--neutral-50), var(--neutral-0));
  border: 1px solid var(--neutral-200);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 800;
}

.summary-row.total {
  color: var(--neutral-900);
  font-size: 16px;
  font-weight: 900;
}

.checkout-grid {
  display: grid;
  gap: 14px;
}

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

.checkout-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 900;
}

.checkout-steps span.done {
  background: var(--success-50);
  color: var(--success-600);
}

.checkout-steps span.active {
  background: var(--primary-50);
  color: var(--primary-700);
}

.checkout-steps svg {
  width: 13px;
  height: 13px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--neutral-700);
  font-size: 12px;
  font-weight: 900;
}

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

.payment-option {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-0);
  color: var(--neutral-700);
  padding: 0 10px;
  text-align: left;
}

.payment-option.active {
  border-color: var(--primary-500);
  background: var(--primary-50);
  color: var(--primary-700);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.payment-option svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  padding: 6px;
  border-radius: 9px;
  background: var(--neutral-50);
  color: var(--neutral-500);
  box-sizing: border-box;
}

.payment-option.active svg {
  background: rgba(249, 115, 22, 0.12);
  color: var(--primary-600);
}

.payment-option strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.15;
}

.checkout-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-50);
  padding: 11px;
}

.checkout-alert.danger {
  border-color: rgba(220, 38, 38, 0.2);
  background: var(--danger-50);
  color: var(--danger-600);
}

.checkout-alert > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.checkout-alert strong,
.checkout-alert span {
  display: block;
}

.checkout-alert strong {
  color: var(--neutral-900);
  font-size: 12px;
  font-weight: 900;
}

.checkout-alert span {
  margin-top: 3px;
  color: var(--neutral-700);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.customer-card,
.action-card,
.checkout-summary-card,
.stat-card,
.receipt-paper {
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: var(--neutral-0);
}

.customer-card,
.action-card,
.checkout-summary-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px;
  text-align: left;
}

.customer-card,
.action-card {
  justify-content: space-between;
}

.action-card {
  border-style: dashed;
  color: var(--primary-700);
}

.checkout-summary-card {
  background: var(--info-50);
  border-color: rgba(37, 99, 235, 0.18);
}

.customer-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--primary-50), rgba(255,255,255,0.96) 62%),
    var(--neutral-0);
}

.customer-hero h2 {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 1.15;
}

.customer-hero p {
  margin: 5px 0 0;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 800;
}

.customer-add-card {
  justify-content: flex-start;
  border-style: solid;
  border-color: rgba(249, 115, 22, 0.24);
  background: var(--primary-50);
}

.customer-add-card > svg {
  margin-left: auto;
  width: 18px;
  height: 18px;
}

.customer-card-rich {
  align-items: flex-start;
  justify-content: flex-start;
  border-color: var(--neutral-200);
}

.customer-card-rich.selected {
  border-color: rgba(5, 150, 105, 0.4);
  background: var(--success-50);
}

.customer-card-rich > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--neutral-500);
}

.customer-card-rich.selected > svg {
  color: var(--success-600);
}

.customer-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--neutral-900);
  color: var(--neutral-0);
  font-size: 14px;
  font-weight: 900;
}

.customer-main {
  min-width: 0;
  flex: 1;
}

.customer-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.customer-title-row h3 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
}

.customer-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.customer-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  border-radius: 999px;
  background: var(--neutral-100);
  color: var(--neutral-500);
  padding: 0 7px;
  font-size: 10px;
  font-weight: 900;
}

.customer-metrics svg {
  width: 12px;
  height: 12px;
}

.shift-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(51, 65, 85, 0.94)),
    var(--neutral-900);
  color: var(--neutral-0);
}

.shift-hero .eyebrow {
  color: rgba(255, 255, 255, 0.68);
}

.shift-hero h2 {
  margin: 3px 0 0;
  font-size: 17px;
  line-height: 1.15;
}

.shift-hero p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.shift-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--success-50);
  color: var(--success-600);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.shift-status.closed {
  background: var(--warning-50);
  color: var(--warning-600);
}

.shift-stat-grid {
  gap: 8px;
  margin-bottom: 8px;
}

.shift-stat-card {
  min-height: 94px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,250,252,0.98)),
    var(--neutral-0);
}

.shift-stat-card.highlight {
  border-color: rgba(249, 115, 22, 0.26);
  background: var(--primary-50);
}

.shift-stat-card span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.shift-stat-card span svg {
  width: 13px;
  height: 13px;
}

.shift-stat-card small {
  display: block;
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.shift-settlement {
  display: grid;
  gap: 8px;
  margin: 8px 0;
  padding: 11px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: var(--info-50);
}

.shift-settlement strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
  font-weight: 900;
}

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

.settlement-mini span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 10px;
  background: var(--neutral-0);
  color: var(--neutral-700);
  font-size: 10px;
  font-weight: 900;
  text-align: center;
}

.shift-panel {
  margin-top: 10px;
  padding: 12px;
}

.shift-panel .panel-title {
  margin-bottom: 8px;
}

.shift-transaction-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 8px 0;
}

.shift-row-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.shift-row-end strong {
  white-space: nowrap;
}

.payment-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
}

.payment-chip.cash {
  background: var(--success-50);
  color: var(--success-600);
}

.payment-chip.qris {
  background: var(--info-50);
  color: var(--info-600);
}

.shift-close-button {
  width: 100%;
  min-height: 38px;
  margin-top: 10px;
}

.profile-content {
  display: grid;
  align-content: start;
  gap: 10px;
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(135deg, var(--neutral-900), rgba(30, 41, 59, 0.96)),
    var(--neutral-900);
  color: var(--neutral-0);
}

.profile-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--primary-600);
  color: var(--neutral-0);
  font-size: 14px;
  font-weight: 900;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-copy .eyebrow {
  color: rgba(255, 255, 255, 0.64);
}

.profile-copy h2 {
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1.15;
}

.profile-copy p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.profile-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--neutral-0);
  padding: 0 9px;
  font-size: 10px;
  font-weight: 900;
}

.profile-role-pill svg {
  width: 13px;
  height: 13px;
}

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

.profile-metric-card,
.profile-quick-action {
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: var(--neutral-0);
}

.profile-metric-card {
  padding: 11px;
}

.profile-metric-card span,
.profile-quick-action span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--neutral-500);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-metric-card svg,
.profile-quick-action svg {
  width: 13px;
  height: 13px;
}

.profile-metric-card strong,
.profile-quick-action strong {
  display: block;
  margin-top: 5px;
  color: var(--neutral-900);
  font-size: 15px;
  font-weight: 900;
}

.profile-metric-card small {
  display: block;
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 10px;
  font-weight: 800;
}

.profile-section {
  padding: 13px;
}

.profile-section .panel-title {
  margin-bottom: 9px;
}

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

.permission-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
}

.permission-row > div {
  min-width: 0;
}

.permission-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 10px;
  background: var(--neutral-0);
  color: var(--primary-700);
}

.permission-icon svg {
  width: 16px;
  height: 16px;
}

.permission-row strong,
.permission-row small {
  display: block;
  min-width: 0;
}

.permission-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 900;
}

.permission-row small {
  margin-top: 3px;
  color: var(--neutral-500);
  line-height: 1.25;
  white-space: normal;
  font-size: 10px;
  font-weight: 800;
}

.permission-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  background: var(--success-50);
  color: var(--success-600);
  padding: 0 8px;
  font-size: 10px;
  font-weight: 900;
  align-self: center;
}

.profile-quick-action {
  display: grid;
  justify-items: start;
  min-height: 74px;
  padding: 11px;
  text-align: left;
}

.profile-quick-action svg {
  margin-bottom: 4px;
  color: var(--primary-700);
}

.profile-logout {
  width: 100%;
  margin-top: 2px;
}

.checkout-summary-card strong,
.checkout-summary-card small {
  display: block;
}

.checkout-summary-card strong {
  color: var(--neutral-900);
  font-size: 13px;
  font-weight: 900;
}

.checkout-summary-card small {
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.summary-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--neutral-0);
  color: var(--info-600);
}

.summary-icon svg {
  width: 18px;
  height: 18px;
}

.checkout-footer {
  align-items: stretch;
}

.checkout-submit {
  flex: 1;
  min-height: 48px;
}

.checkout-submit span,
.checkout-submit small,
.checkout-submit strong {
  display: block;
}

.checkout-submit small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
}

.checkout-submit strong {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 900;
}

.checkout-submit.loading svg {
  animation: spin 0.9s linear infinite;
}

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

.customer-list {
  margin-top: 10px;
}

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

.stat-card {
  padding: 12px;
}

.stat-card span {
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 900;
}

.receipt-paper {
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,1)),
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(15,23,42,0.03) 12px 13px);
}

.receipt-paper h3 {
  margin: 0;
  text-align: center;
  font-family: var(--font-ui);
  font-size: 14px;
}

.receipt-address,
.receipt-thanks {
  margin: 4px 0 0;
  color: var(--neutral-500);
  text-align: center;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.receipt-line strong {
  text-align: right;
}

.receipt-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--neutral-200);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 900;
}

.receipt-success-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.receipt-success-title > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--success-50);
  color: var(--success-600);
}

.receipt-success-title svg {
  width: 20px;
  height: 20px;
}

.receipt-success-title small {
  display: block;
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.receipt-separator {
  margin: 10px 0;
  border-top: 1px dashed var(--neutral-300);
}

.desktop-app {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 812px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: 18px;
  background: var(--neutral-0);
  box-shadow: var(--shadow-soft);
}

.desktop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  border-right: 1px solid var(--neutral-200);
  background: var(--neutral-900);
  padding: 18px;
  color: var(--neutral-0);
}

.desktop-sidebar .sidebar-brand span {
  color: rgba(255, 255, 255, 0.62);
}

.desktop-sidebar .brand-mark {
  background: var(--primary-600);
}

.desktop-nav {
  display: grid;
  gap: 6px;
}

.desktop-sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logout-button {
  color: #fca5a5;
}

.sidebar-logout-button:hover {
  background: rgba(220, 38, 38, 0.18);
}

.account-chip {
  position: relative;
}

.account-chip-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--neutral-0);
  padding: 6px 10px;
  text-align: left;
}

.account-chip-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
}

.account-avatar {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-500, #4f46e5);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.account-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  flex: 1 1 auto;
}

.account-meta strong {
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-meta small {
  font-size: 11px;
  opacity: 0.7;
}

.account-chip-trigger svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  opacity: 0.7;
}

.account-caret {
  display: inline-flex;
  flex: 0 0 auto;
}

.menu-photo-field .menu-photo-preview {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-100);
  margin-bottom: 8px;
}

.photo-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.photo-upload-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--neutral-300);
  border-radius: 10px;
  background: var(--neutral-0, #fff);
  color: var(--neutral-800);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.photo-upload-button:hover {
  background: var(--neutral-100);
  border-color: var(--neutral-400);
}

.photo-upload-button svg {
  width: 16px;
  height: 16px;
}

.photo-upload-input:focus-visible + .photo-upload-button {
  outline: 2px solid var(--brand-500, #4f46e5);
  outline-offset: 2px;
}

.customer-edit-save {
  margin-top: 14px;
}

.checkout-qris {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-0, #fff);
}

.checkout-qris img {
  border-radius: 8px;
}

.checkout-qris small {
  color: var(--neutral-600);
  font-size: 12px;
  text-align: center;
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav button { position: relative; }

.mobile-nav-badge {
  position: absolute;
  top: 2px;
  right: 50%;
  transform: translateX(18px);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tablet-orders-button { position: relative; }
.tablet-orders-button .mobile-nav-badge { position: static; transform: none; margin-left: 6px; }

.tablet-orders-view {
  padding: 18px;
  overflow-y: auto;
}

.incoming-page {
  display: grid;
  gap: 18px;
}

.incoming-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.incoming-card {
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 14px;
  background: var(--neutral-0, #fff);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.incoming-card.status-new {
  border-color: #fca5a5;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.12);
}

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

.incoming-card-head strong {
  font-size: 15px;
  font-weight: 900;
}

.incoming-time {
  display: block;
  font-size: 11px;
  color: var(--neutral-500);
}

.incoming-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.incoming-badge.new { background: #fee2e2; color: #b91c1c; }
.incoming-badge.preparing { background: #fef3c7; color: #b45309; }
.incoming-badge.ready { background: #dbeafe; color: #1d4ed8; }
.incoming-badge.delivering { background: #ede9fe; color: #6d28d9; }
.incoming-badge.done { background: #dcfce7; color: #15803d; }
.incoming-badge.cancelled { background: #f3f4f6; color: #6b7280; }

.incoming-cust {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--neutral-700);
}

.incoming-cust span { color: var(--neutral-400); }
.incoming-cust svg { width: 14px; height: 14px; vertical-align: -2px; }

.incoming-items {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200);
  padding: 10px 0;
}

.incoming-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.incoming-item em { color: var(--neutral-500); font-style: normal; }

.incoming-note {
  font-size: 12px;
  color: var(--neutral-600);
  background: var(--neutral-100);
  border-radius: 8px;
  padding: 8px 10px;
}

.incoming-note svg { width: 14px; height: 14px; vertical-align: -2px; }

.incoming-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

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

.incoming-actions .primary-button,
.incoming-actions .secondary-button {
  padding: 8px 12px;
  font-size: 13px;
}

.incoming-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #15803d;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #bbf7d0;
}

.incoming-wa svg { width: 15px; height: 15px; }

.incoming-empty {
  color: var(--neutral-500);
  font-size: 13px;
  padding: 16px 0;
}

.menu-photo-field small {
  color: var(--neutral-500);
  font-size: 11px;
}

.account-menu {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  background: var(--neutral-800, #1f2937);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 30;
}

.account-menu[hidden] {
  display: none;
}

.account-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--neutral-0);
  padding: 0 10px;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.account-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.account-menu button svg {
  width: 16px;
  height: 16px;
}

.account-menu-danger {
  color: #fca5a5;
}

.account-menu-danger:hover {
  background: rgba(220, 38, 38, 0.18) !important;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  padding: 0 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 800;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--neutral-0);
}

.nav-item svg {
  width: 17px;
  height: 17px;
}

.desktop-main {
  min-width: 0;
  background: var(--neutral-50);
}

.desktop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--neutral-200);
  background: rgba(255, 255, 255, 0.92);
}

.desktop-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.toolbar-pos-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: none;
  border-radius: 10px;
  background: var(--neutral-900, #111827);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.toolbar-pos-button:hover {
  background: var(--neutral-700, #374151);
}

.toolbar-pos-button svg {
  width: 16px;
  height: 16px;
}

.desktop-toolbar h2 {
  margin: 2px 0 0;
  font-size: 20px;
}

.desktop-content {
  position: relative;
  min-height: 738px;
  padding: 18px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.desktop-content::-webkit-scrollbar {
  width: 0;
  height: 0;
}

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

.kpi-card,
.panel {
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: var(--neutral-0);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.kpi-card {
  padding: 16px;
}

.kpi-card span,
.panel-title span {
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.kpi-card strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  line-height: 1;
  font-weight: 900;
}

.kpi-card p {
  margin: 8px 0 0;
  color: var(--success-600);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-command-grid,
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}

.dashboard-command-grid > .panel,
.dashboard-grid > .panel {
  min-width: 0;
}

.dashboard-grid {
  margin-top: 14px;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-kpi-card {
  padding: 14px;
}

.dashboard-kpi-card strong {
  font-size: 22px;
  white-space: nowrap;
}

.dashboard-kpi-card p {
  color: var(--neutral-500);
}

.dashboard-sales-panel {
  min-height: 326px;
}

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

.dashboard-sales-head > div {
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
  padding: 12px;
}

.dashboard-sales-head strong,
.dashboard-sales-head p {
  display: block;
}

.dashboard-sales-head strong {
  margin-top: 6px;
  color: var(--neutral-900);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.dashboard-sales-head p {
  margin: 6px 0 0;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 800;
}

.dashboard-hour-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 158px;
  padding: 10px 0 0;
}

.dashboard-hour-column {
  display: grid;
  align-items: end;
  gap: 8px;
  min-width: 0;
  height: 100%;
}

.dashboard-hour-track {
  display: flex;
  align-items: end;
  justify-content: center;
  min-width: 0;
  height: 116px;
}

.dashboard-hour-bar {
  display: flex;
  align-items: start;
  justify-content: center;
  width: min(62px, 100%);
  min-height: 36px;
  height: var(--h);
  border-radius: 12px 12px 5px 5px;
  background: linear-gradient(180deg, var(--primary-500), var(--primary-700));
  color: var(--neutral-0);
  padding-top: 8px;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.15);
}

.dashboard-hour-column.peak .dashboard-hour-bar {
  background: linear-gradient(180deg, #fb923c, var(--primary-700));
  box-shadow: 0 16px 28px rgba(249, 115, 22, 0.24);
}

.dashboard-hour-bar span {
  font-size: 10px;
  font-weight: 900;
}

.dashboard-hour-column small {
  overflow: hidden;
  color: var(--neutral-500);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 900;
}

.dashboard-hour-column.peak small {
  color: var(--neutral-900);
}

.dashboard-health-list,
.dashboard-top-menu-list,
.dashboard-crm-list,
.dashboard-transaction-list {
  display: grid;
  gap: 10px;
}

.dashboard-health-row,
.dashboard-menu-row,
.dashboard-crm-row,
.dashboard-transaction-row {
  min-width: 0;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
}

.dashboard-health-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px;
}

.dashboard-health-row > svg {
  width: 18px;
  height: 18px;
  color: var(--primary-700);
}

.dashboard-health-row.success {
  border-color: rgba(5, 150, 105, 0.18);
  background: var(--success-50);
}

.dashboard-health-row.success > svg {
  color: var(--success-600);
}

.dashboard-health-row.warning {
  border-color: rgba(217, 119, 6, 0.18);
  background: var(--warning-50);
}

.dashboard-health-row.warning > svg {
  color: var(--warning-600);
}

.dashboard-health-row strong,
.dashboard-health-row span,
.dashboard-health-row b {
  display: block;
}

.dashboard-health-row strong {
  color: var(--neutral-900);
  font-size: 13px;
  font-weight: 900;
}

.dashboard-health-row span {
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.dashboard-health-row b {
  color: var(--neutral-900);
  font-size: 11px;
  font-weight: 900;
}

.dashboard-top-menu-panel {
  min-height: 288px;
}

.dashboard-menu-row,
.dashboard-crm-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  text-align: left;
}

.dashboard-crm-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.dashboard-menu-row img {
  width: 44px;
  height: 38px;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  object-fit: cover;
  background: var(--neutral-100);
}

.dashboard-menu-row > strong,
.dashboard-crm-row > strong {
  color: var(--neutral-900);
  white-space: nowrap;
  font-weight: 900;
}

.dashboard-menu-row:hover,
.dashboard-crm-row:hover,
.dashboard-transaction-row:hover {
  border-color: rgba(249, 115, 22, 0.24);
  background: var(--primary-50);
}

.dashboard-transaction-panel {
  grid-column: 1 / -1;
}

.dashboard-transaction-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  border-bottom: 0;
  padding: 12px;
  text-align: left;
}

.dashboard-transaction-main,
.dashboard-transaction-meta {
  display: flex;
  align-items: center;
  min-width: 0;
}

.dashboard-transaction-main {
  gap: 10px;
}

.dashboard-transaction-meta {
  justify-content: flex-end;
  gap: 12px;
}

.dashboard-transaction-meta > strong {
  min-width: 92px;
  color: var(--neutral-900);
  text-align: right;
  white-space: nowrap;
  font-weight: 900;
}

.panel {
  min-width: 0;
  padding: 16px;
}

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

.panel-title h3 {
  margin: 0;
  font-size: 15px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 220px;
}

.bar {
  display: flex;
  align-items: end;
  justify-content: center;
  min-width: 0;
  height: var(--h);
  border-radius: 10px 10px 4px 4px;
  background: linear-gradient(180deg, var(--primary-500), var(--primary-700));
  color: var(--neutral-0);
  font-size: 10px;
  font-weight: 900;
  padding-bottom: 8px;
}

.split-row,
.rank-row,
.recent-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--neutral-100);
}

.split-row:last-child,
.rank-row:last-child,
.recent-row:last-child {
  border-bottom: 0;
}

.rank-index {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--primary-50);
  color: var(--primary-700);
  font-size: 12px;
  font-weight: 900;
}

.row-main strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
}

.row-main span {
  display: block;
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.reports-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 12px;
}

.report-chart-panel {
  min-height: 312px;
}

.report-side-panel {
  min-height: 150px;
}

.report-table-panel {
  grid-column: 1 / -1;
}

.report-bar-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  height: 198px;
  padding-top: 8px;
}

.report-bar-chart::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 38px;
  left: 0;
  height: 1px;
  background: var(--neutral-100);
}

.report-bar-column {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: end;
  gap: 8px;
  min-width: 0;
  height: 100%;
}

.report-bar-track {
  display: flex;
  align-items: end;
  justify-content: center;
  min-width: 0;
  height: 152px;
}

.report-bar {
  display: flex;
  align-items: start;
  justify-content: center;
  width: min(64px, 100%);
  min-height: 36px;
  height: var(--h);
  border-radius: 11px 11px 5px 5px;
  background: linear-gradient(180deg, var(--primary-500), var(--primary-700));
  color: var(--neutral-0);
  padding-top: 8px;
  box-shadow: 0 10px 18px rgba(249, 115, 22, 0.12);
}

.report-bar-column.peak .report-bar {
  background: linear-gradient(180deg, #fb923c, var(--primary-700));
  box-shadow: 0 12px 22px rgba(249, 115, 22, 0.18);
}

.report-bar span {
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.report-bar-column small {
  color: var(--neutral-500);
  text-align: center;
  font-size: 10px;
  font-weight: 900;
}

.report-bar-column.peak small {
  color: var(--neutral-900);
}

.report-payment-list,
.report-top-list {
  display: grid;
  gap: 9px;
}

.report-payment-row,
.report-top-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
}

.report-payment-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.report-payment-row strong,
.report-payment-row small {
  display: block;
}

.report-payment-row strong {
  color: var(--neutral-900);
  font-size: 13px;
  font-weight: 900;
}

.report-payment-row small {
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.report-top-row strong {
  color: var(--neutral-900);
  white-space: nowrap;
}

.report-top-count {
  color: var(--neutral-900);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
}

.reports-table tbody tr {
  cursor: pointer;
  transition: background 0.16s ease;
}

.report-action-cell {
  white-space: nowrap;
}

.report-actions {
  align-items: stretch;
}

.report-export-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: var(--info-50);
}

.report-export-band strong,
.report-export-band p {
  display: block;
}

.report-export-band strong {
  margin-top: 4px;
  color: var(--neutral-900);
  font-size: 15px;
  font-weight: 900;
}

.report-export-band p {
  margin: 5px 0 0;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 800;
}

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

.filter-pills {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 4px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-100);
}

.filter-pills button {
  min-height: 32px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--neutral-500);
  padding: 0 11px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.filter-pills button.active {
  background: var(--neutral-0);
  color: var(--neutral-900);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
}

.orders-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.customers-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.menu-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.staff-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.settings-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.order-kpi-card {
  padding: 14px;
}

.customer-kpi-card {
  padding: 14px;
}

.menu-kpi-card {
  padding: 14px;
}

.report-kpi-card {
  padding: 14px;
}

.staff-kpi-card {
  padding: 14px;
}

.settings-kpi-card {
  padding: 14px;
}

.order-kpi-card strong {
  font-size: 22px;
}

.customer-kpi-card strong {
  font-size: 22px;
}

.menu-kpi-card strong {
  font-size: 22px;
}

.report-kpi-card strong {
  font-size: 22px;
}

.staff-kpi-card strong {
  font-size: 22px;
}

.settings-kpi-card strong {
  font-size: 22px;
}

.order-kpi-card p {
  color: var(--neutral-500);
}

.customer-kpi-card p {
  color: var(--neutral-500);
}

.menu-kpi-card p {
  color: var(--neutral-500);
}

.report-kpi-card p {
  color: var(--neutral-500);
}

.staff-kpi-card p {
  color: var(--neutral-500);
}

.settings-kpi-card p {
  color: var(--neutral-500);
}

.orders-actions {
  align-items: stretch;
}

.customers-actions {
  align-items: stretch;
}

.menu-actions {
  align-items: stretch;
}

.settings-actions {
  align-items: stretch;
  flex-wrap: wrap;
}

.data-filter-row {
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.staff-actions {
  align-items: stretch;
  flex-wrap: wrap;
}

.staff-actions .data-filter-row {
  flex-wrap: wrap;
}

.settings-actions .data-filter-row {
  flex-wrap: wrap;
}

.customers-actions .primary-button {
  flex: 0 0 auto;
  min-width: 148px;
  white-space: nowrap;
}

.menu-actions .primary-button {
  flex: 0 0 auto;
  min-width: 124px;
  white-space: nowrap;
}

.data-result-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  margin: -4px 0 10px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-0);
  padding: 0 12px;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 800;
}

.data-result-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.data-result-strip svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.data-result-strip strong {
  color: var(--neutral-900);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.staff-actions .primary-button {
  flex: 0 0 auto;
  min-width: 118px;
  white-space: nowrap;
}

.desktop-search {
  position: relative;
  width: min(360px, 100%);
}

.desktop-search.orders-search {
  width: min(420px, 100%);
}

.desktop-search.customers-search {
  width: min(430px, 100%);
}

.desktop-search.menu-search {
  width: min(430px, 100%);
}

.desktop-search.reports-search {
  width: min(430px, 100%);
}

.desktop-search.staff-search {
  width: min(430px, 100%);
}

.desktop-search.settings-search {
  width: min(430px, 100%);
}

.desktop-search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 16px;
  height: 16px;
  color: var(--neutral-500);
  transform: translateY(-50%);
}

.desktop-search input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  background: var(--neutral-0);
  outline: 0;
  padding: 0 12px 0 36px;
  font-size: 13px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(100, 116, 139, 0.34) transparent;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: var(--neutral-0);
}

.table-wrap::-webkit-scrollbar {
  height: 8px;
}

.table-wrap::-webkit-scrollbar-track {
  background: var(--neutral-50);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border: 2px solid var(--neutral-50);
  border-radius: 999px;
}

.orders-table-wrap {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.customers-table-wrap {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.menu-table-wrap {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.reports-table-wrap {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--neutral-100);
  padding: 13px 14px;
  text-align: left;
  font-size: 13px;
  vertical-align: middle;
}

th {
  background: var(--neutral-50);
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

td {
  color: var(--neutral-700);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr {
  transition: background 0.16s ease;
}

tbody tr:hover {
  background: var(--primary-50);
}

.orders-table tbody tr {
  cursor: pointer;
}

.customers-table tbody tr {
  cursor: pointer;
}

.menu-table tbody tr {
  cursor: pointer;
}

.table-empty-row {
  cursor: default;
}

tbody tr.table-empty-row:hover {
  background: transparent;
}

.table-empty-row td {
  padding: 18px;
}

.staff-table tbody tr {
  cursor: pointer;
}

.invoice-cell strong,
.invoice-cell span {
  display: block;
}

.invoice-cell strong {
  color: var(--neutral-900);
  font-weight: 900;
}

.invoice-cell span {
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.payment-method-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.payment-method-chip svg {
  width: 14px;
  height: 14px;
}

.payment-method-chip.cash {
  background: var(--success-50);
  color: var(--success-600);
}

.payment-method-chip.qris {
  background: var(--info-50);
  color: var(--info-600);
}

.order-total-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.order-total-cell strong {
  color: var(--neutral-900);
  white-space: nowrap;
}

.order-detail-button {
  min-height: 28px;
  border: 1px solid var(--neutral-200);
  border-radius: 999px;
  background: var(--neutral-0);
  color: var(--neutral-700);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.order-detail-button:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
}

.customer-identity-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.customer-table-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  place-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 900;
  line-height: 0;
}

.customer-table-avatar svg {
  display: block;
  width: 17px;
  height: 17px;
}

.customer-identity-cell strong,
.customer-identity-cell span {
  display: block;
  min-width: 0;
}

.customer-identity-cell strong {
  overflow: hidden;
  color: var(--neutral-900);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.customer-identity-cell span {
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.customer-tier-chip,
.points-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.customer-tier-chip.gold {
  background: var(--warning-50);
  color: var(--warning-600);
}

.customer-tier-chip.silver {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.customer-tier-chip.regular {
  background: var(--info-50);
  color: var(--info-600);
}

.points-chip {
  background: var(--primary-50);
  color: var(--primary-700);
}

.points-chip svg {
  width: 13px;
  height: 13px;
}

.customer-spend-cell {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.customer-spend-cell strong {
  color: var(--neutral-900);
  white-space: nowrap;
}

.menu-identity-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.menu-identity-cell img {
  width: 46px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid var(--neutral-200);
  object-fit: cover;
  background: var(--neutral-100);
}

.menu-identity-cell strong,
.menu-identity-cell span {
  display: block;
  min-width: 0;
}

.menu-identity-cell strong {
  overflow: hidden;
  color: var(--neutral-900);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.menu-identity-cell span {
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.menu-category-chip,
.sold-chip,
.stock-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.menu-category-chip {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.sold-chip {
  background: var(--primary-50);
  color: var(--primary-700);
}

.stock-chip {
  display: inline-grid;
  grid-template-columns: 14px auto;
  justify-content: center;
  min-width: 48px;
  background: var(--success-50);
  color: var(--success-600);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stock-chip.warning {
  background: var(--warning-50);
  color: var(--warning-600);
}

.stock-chip.danger {
  background: var(--danger-50);
  color: var(--danger-600);
}

.sold-chip svg,
.stock-chip svg {
  display: block;
  width: 13px;
  height: 13px;
}

.stock-chip svg {
  width: 14px;
  height: 14px;
}

.staff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 12px;
  margin-bottom: 12px;
}

.staff-role-panel,
.staff-access-panel {
  min-height: 226px;
}

.staff-role-grid,
.staff-access-list,
.staff-permission-list {
  display: grid;
  gap: 10px;
}

.staff-role-card,
.staff-access-card,
.staff-permission-card {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
}

.staff-role-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 11px;
}

.staff-role-card > span:last-child {
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 900;
}

.staff-role-card strong,
.staff-role-card small {
  display: block;
}

.staff-role-card strong {
  color: var(--neutral-900);
  font-weight: 900;
}

.staff-role-card small {
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.staff-role-icon,
.staff-avatar,
.staff-drawer-avatar {
  display: grid;
  place-items: center;
  place-content: center;
  flex: 0 0 auto;
  line-height: 0;
}

.staff-role-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--neutral-0);
  color: var(--primary-700);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.staff-role-icon svg,
.staff-avatar svg,
.staff-drawer-avatar svg {
  display: block;
}

.staff-role-icon svg {
  width: 17px;
  height: 17px;
}

.staff-access-card {
  grid-template-columns: auto minmax(0, 1fr);
  padding: 11px;
}

.staff-access-card > svg {
  width: 18px;
  height: 18px;
  color: var(--primary-700);
}

.staff-access-card strong,
.staff-access-card span {
  display: block;
}

.staff-access-card strong {
  color: var(--neutral-900);
  font-weight: 900;
}

.staff-access-card span {
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.staff-table-wrap {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.staff-identity-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.staff-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  background: var(--neutral-50);
  color: var(--neutral-500);
}

.staff-avatar svg {
  width: 17px;
  height: 17px;
}

.staff-identity-cell strong,
.staff-identity-cell span {
  display: block;
  min-width: 0;
}

.staff-identity-cell strong {
  overflow: hidden;
  color: var(--neutral-900);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 900;
}

.staff-identity-cell span {
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.staff-role-chip,
.staff-shift-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.staff-role-chip.cashier {
  background: var(--primary-50);
  color: var(--primary-700);
}

.staff-role-chip.manager {
  background: var(--info-50);
  color: var(--info-600);
}

.staff-role-chip.admin {
  background: var(--neutral-900);
  color: var(--neutral-0);
}

.staff-shift-pill {
  background: var(--neutral-100);
  color: var(--neutral-700);
}

.staff-shift-pill svg {
  width: 13px;
  height: 13px;
}

.align-right {
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 900;
}

.badge.paid,
.badge.active {
  background: var(--success-50);
  color: var(--success-600);
}

.badge.pending {
  background: var(--warning-50);
  color: var(--warning-600);
}

.badge.inactive {
  background: var(--neutral-100);
  color: var(--neutral-500);
}

.badge.danger,
.badge.void {
  background: var(--danger-50);
  color: var(--danger-600);
}

.customer-note-list {
  margin-top: 10px;
}

.customer-note-empty {
  margin: 4px 0 0;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 600;
}

.desktop-drawer {
  position: absolute;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  width: min(430px, calc(100% - 36px));
  overflow-y: auto;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  background: var(--neutral-0);
  box-shadow: var(--shadow-pop);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.desktop-drawer::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.desktop-drawer .drawer-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.order-drawer-header h2 {
  margin: 4px 0 0;
}

.customer-drawer-header h2 {
  margin: 4px 0 0;
}

.menu-drawer-header h2 {
  margin: 4px 0 0;
}

.order-drawer-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background:
    linear-gradient(135deg, var(--neutral-900), rgba(30, 41, 59, 0.96)),
    var(--neutral-900);
  color: var(--neutral-0);
}

.order-drawer-hero h3 {
  margin: 10px 0 0;
  font-size: 26px;
  line-height: 1;
}

.order-drawer-hero p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.customer-drawer-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(135deg, var(--neutral-900), rgba(30, 41, 59, 0.96)),
    var(--neutral-900);
  color: var(--neutral-0);
}

.customer-drawer-avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  place-content: center;
  flex: 0 0 auto;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--neutral-0);
  font-size: 16px;
  font-weight: 900;
  line-height: 0;
}

.customer-drawer-avatar svg {
  display: block;
  width: 24px;
  height: 24px;
}

.customer-drawer-hero h3 {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1;
}

.customer-drawer-hero p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.customer-insight-card {
  border: 1px solid rgba(249, 115, 22, 0.18);
  border-radius: 14px;
  background: var(--primary-50);
  padding: 12px;
}

.customer-insight-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-700);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-insight-card span svg {
  width: 14px;
  height: 14px;
}

.customer-insight-card strong {
  display: block;
  margin-top: 8px;
  color: var(--neutral-900);
  font-size: 14px;
  font-weight: 900;
}

.customer-insight-card p {
  margin: 6px 0 0;
  color: var(--neutral-700);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

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

.drawer-mini-actions button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
  padding: 10px;
  color: var(--neutral-900);
  text-align: left;
}

.drawer-mini-actions svg {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  color: var(--primary-600);
}

.drawer-mini-actions span,
.drawer-mini-actions strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-mini-actions span {
  color: var(--neutral-500);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-mini-actions strong {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 900;
}

.menu-drawer-hero {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  background:
    linear-gradient(135deg, var(--neutral-900), rgba(30, 41, 59, 0.96)),
    var(--neutral-900);
  color: var(--neutral-0);
}

.menu-drawer-hero img {
  width: 118px;
  height: 92px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  object-fit: cover;
  background: rgba(255, 255, 255, 0.1);
}

.menu-drawer-hero h3 {
  margin: 10px 0 0;
  font-size: 24px;
  line-height: 1;
}

.menu-drawer-hero p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.menu-performance-card {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: var(--info-50);
  padding: 12px;
}

.menu-performance-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--info-600);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-performance-card span svg {
  width: 14px;
  height: 14px;
}

.menu-performance-card strong {
  display: block;
  margin-top: 8px;
  color: var(--neutral-900);
  font-size: 14px;
  font-weight: 900;
}

.menu-progress {
  height: 8px;
  overflow: hidden;
  margin-top: 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
}

.menu-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--info-600);
}

.menu-performance-card p {
  margin: 8px 0 0;
  color: var(--neutral-700);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.drawer-checklist {
  display: grid;
  gap: 8px;
}

.drawer-checklist div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
  padding: 10px;
}

.drawer-checklist div.ready {
  border-color: rgba(5, 150, 105, 0.16);
  background: var(--success-50);
}

.drawer-checklist div.blocked {
  border-color: rgba(220, 38, 38, 0.16);
  background: var(--danger-50);
}

.drawer-checklist span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  grid-row: span 2;
  border-radius: 10px;
  background: var(--neutral-0);
  color: var(--neutral-500);
  line-height: 0;
}

.drawer-checklist .ready span {
  color: var(--success-600);
}

.drawer-checklist .blocked span {
  color: var(--danger-600);
}

.drawer-checklist svg {
  width: 16px;
  height: 16px;
}

.drawer-checklist strong,
.drawer-checklist small {
  display: block;
}

.drawer-checklist strong {
  color: var(--neutral-900);
  font-size: 12px;
  font-weight: 900;
}

.drawer-checklist small {
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.staff-drawer-header h2 {
  margin: 4px 0 0;
}

.staff-drawer-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background:
    linear-gradient(135deg, var(--neutral-900), rgba(30, 41, 59, 0.96)),
    var(--neutral-900);
  color: var(--neutral-0);
}

.staff-drawer-avatar {
  display: grid;
  place-items: center;
  place-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--neutral-0);
  line-height: 0;
}

.staff-drawer-avatar svg {
  width: 24px;
  height: 24px;
}

.staff-drawer-hero h3 {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1;
}

.staff-drawer-hero p {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.staff-performance-card {
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: var(--info-50);
  padding: 12px;
}

.staff-performance-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--info-600);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-performance-card span svg {
  width: 14px;
  height: 14px;
}

.staff-performance-card strong {
  display: block;
  margin-top: 8px;
  color: var(--neutral-900);
  font-size: 14px;
  font-weight: 900;
}

.staff-performance-card p {
  margin: 6px 0 0;
  color: var(--neutral-700);
  font-size: 12px;
  font-weight: 800;
}

.staff-permission-card {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 10px;
}

.staff-permission-card > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--neutral-0);
  color: var(--neutral-500);
}

.staff-permission-card.checked {
  border-color: rgba(5, 150, 105, 0.2);
  background: var(--success-50);
}

.staff-permission-card.checked > span {
  color: var(--success-600);
}

.staff-permission-card svg {
  width: 14px;
  height: 14px;
}

.staff-permission-card strong,
.staff-permission-card small {
  display: block;
}

.staff-permission-card strong {
  color: var(--neutral-900);
  font-size: 13px;
  font-weight: 900;
}

.staff-permission-card small {
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.staff-permission-card input {
  width: 16px;
  height: 16px;
  accent-color: var(--success-600);
}

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

.drawer-meta-grid div {
  min-width: 0;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
  padding: 10px;
}

.drawer-meta-grid span,
.drawer-meta-grid strong {
  display: block;
}

.drawer-meta-grid span {
  color: var(--neutral-500);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.drawer-meta-grid strong {
  margin-top: 5px;
  overflow: hidden;
  color: var(--neutral-900);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.drawer-alert {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
  padding: 10px;
}

.drawer-alert > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  background: var(--neutral-0);
  color: var(--neutral-500);
  line-height: 0;
}

.drawer-alert.success {
  border-color: rgba(5, 150, 105, 0.16);
  background: var(--success-50);
}

.drawer-alert.success > span {
  color: var(--success-600);
}

.drawer-alert.info {
  border-color: rgba(37, 99, 235, 0.16);
  background: var(--info-50);
}

.drawer-alert.info > span {
  color: var(--info-600);
}

.drawer-alert.warning {
  border-color: rgba(245, 158, 11, 0.22);
  background: var(--warning-50);
}

.drawer-alert.warning > span {
  color: var(--warning-600);
}

.drawer-alert svg {
  width: 17px;
  height: 17px;
}

.drawer-alert strong,
.drawer-alert p {
  display: block;
}

.drawer-alert strong {
  color: var(--neutral-900);
  font-size: 13px;
  font-weight: 900;
}

.drawer-alert p {
  margin: 4px 0 0;
  color: var(--neutral-600);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.drawer-timeline {
  display: grid;
  gap: 8px;
}

.drawer-timeline div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.drawer-timeline span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  grid-row: span 2;
  border-radius: 10px;
  background: var(--neutral-100);
  color: var(--neutral-600);
  line-height: 0;
}

.drawer-timeline svg {
  width: 15px;
  height: 15px;
}

.drawer-timeline strong,
.drawer-timeline small {
  display: block;
  min-width: 0;
}

.drawer-timeline strong {
  color: var(--neutral-900);
  font-size: 12px;
  font-weight: 900;
}

.drawer-timeline small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--neutral-500);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
}

.drawer-item-list {
  display: grid;
  gap: 8px;
}

.drawer-item-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
}

.drawer-item-button {
  width: 100%;
  color: inherit;
  text-align: left;
}

.drawer-item-button:hover {
  border-color: var(--neutral-200);
  background: var(--neutral-100);
}

.drawer-item-card strong,
.drawer-item-card span {
  display: block;
}

.drawer-item-card strong {
  color: var(--neutral-900);
  font-size: 12px;
  font-weight: 900;
}

.drawer-item-card span {
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 10px;
  font-weight: 800;
}

.drawer-item-card > strong {
  flex: 0 0 auto;
  white-space: nowrap;
}

.order-drawer-total {
  margin-top: 12px;
  border-top: 1px solid var(--neutral-200);
  padding-top: 12px;
  color: var(--neutral-900);
  font-size: 15px;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.drawer-actions > button {
  flex: 1 1 0;
}

.drawer-action-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1 0 100%;
  margin: 0;
  border: 1px solid var(--neutral-100);
  border-radius: 10px;
  background: var(--neutral-50);
  padding: 8px 10px;
  color: var(--neutral-600);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.drawer-action-note svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.drawer-section {
  padding: 14px 16px;
  border-bottom: 1px solid var(--neutral-100);
}

.drawer-section:last-child {
  border-bottom: 0;
}

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

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

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

.settings-grid .panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.settings-grid.single-result .panel,
.settings-empty-state {
  grid-column: 1 / -1;
}

.settings-grid.single-result .settings-profile-panel {
  grid-row: auto;
}

.settings-empty-state {
  min-height: 176px;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: var(--neutral-0);
}

.settings-profile-panel {
  grid-row: span 2;
}

.settings-profile-panel .form-grid {
  grid-template-columns: 1fr;
}

.settings-brand-card,
.settings-policy-card,
.settings-toggle-row,
.settings-health-card {
  display: grid;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--neutral-100);
  border-radius: 14px;
  background: var(--neutral-50);
  padding: 12px;
}

.settings-brand-card {
  grid-template-columns: auto minmax(0, 1fr);
}

.settings-brand-card strong,
.settings-brand-card p {
  display: block;
}

.settings-brand-card strong {
  color: var(--neutral-900);
  font-size: 15px;
  font-weight: 900;
}

.settings-brand-card p {
  margin: 4px 0 0;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 800;
}

.settings-policy-card {
  grid-template-columns: auto minmax(0, 1fr);
  border-color: rgba(217, 119, 6, 0.16);
  background: var(--warning-50);
}

.settings-policy-card > svg {
  width: 19px;
  height: 19px;
  color: var(--warning-600);
}

.settings-policy-card strong,
.settings-policy-card span {
  display: block;
}

.settings-policy-card strong {
  color: var(--neutral-900);
  font-weight: 900;
}

.settings-policy-card span {
  margin-top: 3px;
  color: var(--neutral-700);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.settings-toggle-list,
.settings-audit-list {
  display: grid;
  gap: 10px;
}

.settings-toggle-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.settings-toggle-row.active {
  border-color: rgba(5, 150, 105, 0.2);
  background: var(--success-50);
}

.settings-toggle-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: var(--neutral-0);
  color: var(--primary-700);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.settings-toggle-icon svg {
  width: 17px;
  height: 17px;
}

.settings-toggle-row strong,
.settings-toggle-row small {
  display: block;
}

.settings-toggle-row strong {
  color: var(--neutral-900);
  font-weight: 900;
}

.settings-toggle-row small {
  margin-top: 3px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.settings-toggle-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--success-600);
}

.settings-save-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 14px;
  background: var(--info-50);
}

.settings-save-band strong,
.settings-save-band p {
  display: block;
}

.settings-save-band strong {
  margin-top: 4px;
  color: var(--neutral-900);
  font-size: 15px;
  font-weight: 900;
}

.settings-save-band p {
  margin: 5px 0 0;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 800;
}

.settings-save-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.settings-audit-list div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
  padding: 10px;
}

.settings-audit-list span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  grid-row: span 2;
  border-radius: 9px;
  background: var(--neutral-0);
  color: var(--primary-700);
}

.settings-audit-list span svg {
  width: 15px;
  height: 15px;
}

.settings-audit-list strong,
.settings-audit-list small {
  display: block;
}

.settings-audit-list strong {
  color: var(--neutral-900);
  font-size: 13px;
  font-weight: 900;
}

.settings-audit-list small {
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.settings-health-card {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 128px;
  border-color: rgba(5, 150, 105, 0.18);
  background: var(--success-50);
}

.settings-health-card > svg {
  width: 28px;
  height: 28px;
  color: var(--success-600);
}

.settings-health-card strong {
  display: block;
  color: var(--neutral-900);
  font-size: 15px;
  font-weight: 900;
}

.settings-health-card p {
  margin: 6px 0 0;
  color: var(--neutral-700);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.empty-state {
  display: grid;
  gap: 6px;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--neutral-300);
  border-radius: 14px;
  background: var(--neutral-0);
  color: var(--neutral-500);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.empty-state strong {
  color: var(--neutral-900);
  font-size: 14px;
  font-weight: 900;
}

.empty-state span {
  max-width: 360px;
  color: var(--neutral-500);
  font-size: 12px;
  line-height: 1.45;
}

.table-empty-state {
  min-height: 156px;
}

.toast-stack {
  position: fixed;
  right: 18px;
  top: 96px;
  z-index: 100;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-0);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 800;
}

.toast.success {
  border-color: rgba(5, 150, 105, 0.24);
}

.toast.danger {
  border-color: rgba(220, 38, 38, 0.24);
}

.toast svg {
  width: 18px;
  height: 18px;
}

.toast.success svg {
  color: var(--success-600);
}

.toast.danger svg {
  color: var(--danger-600);
}

@media (max-width: 1180px) {
  .prototype-layout {
    grid-template-columns: minmax(340px, 390px) minmax(0, 1fr);
  }

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

  .dashboard-command-grid,
  .dashboard-grid,
  .staff-layout,
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .prototype-layout {
    grid-template-columns: 1fr;
  }

  .desktop-stage {
    display: none;
  }

  .phone-frame {
    position: relative;
    top: auto;
    max-width: 410px;
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .prototype-shell {
    padding: 10px;
  }

  .phone-frame {
    height: calc(100vh - 152px);
    min-height: 680px;
    border-width: 5px;
    border-radius: 30px;
  }

  .product-card {
    min-height: 184px;
  }

  .product-media {
    height: 96px;
  }
}

/* --- Keyboard focus visibility (audit fix) --- */
:where(button, [tabindex]):focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Text fields signal focus with a border + ring instead of an outline.
   This restores a visible focus state to the desktop search box, which
   previously set outline:0 with no replacement. */
.desktop-search input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16);
}

.field input:focus-visible,
.field textarea:focus-visible,
.search-box input:focus-visible,
.desktop-search input:focus-visible {
  outline: none;
}

/* --- Respect reduced motion preference (audit fix) --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Tablet POS view (landscape split: catalog + persistent order panel) --- */
.tablet-stage {
  display: none;
  min-width: 0;
}

.prototype-layout.view-tablet {
  grid-template-columns: minmax(0, 1fr);
}

.prototype-layout.view-tablet .mobile-stage,
.prototype-layout.view-tablet .desktop-stage {
  display: none;
}

.prototype-layout.view-tablet .tablet-stage {
  display: block;
}

.tablet-frame {
  width: 100%;
  max-width: 1180px;
  height: 760px;
  margin: 0 auto;
  padding: 14px;
  border: 10px solid var(--neutral-900);
  border-radius: 30px;
  background: var(--neutral-900);
  box-shadow: var(--shadow-pop);
}

.tablet-app {
  height: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: var(--neutral-50);
}

body.app-mode-tablet .tablet-frame {
  width: 100%;
  max-width: none;
  height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--neutral-50);
  box-shadow: none;
}

body.app-mode-tablet .tablet-app {
  border-radius: 0;
}

.tablet-pos {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tablet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--neutral-200);
  background: var(--neutral-0);
}

.tablet-topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.tablet-topbar-copy strong,
.tablet-topbar-copy span {
  display: block;
}

.tablet-topbar-copy strong {
  color: var(--neutral-900);
  font-size: 15px;
  font-weight: 900;
}

.tablet-topbar-copy span {
  margin-top: 2px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.tablet-topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Status icon (passive): bare icon, no border/padding/background */
.topbar-indicator {
  display: inline-flex;
  align-items: center;
}

.topbar-indicator svg { width: 18px; height: 18px; }
.topbar-indicator.online { color: var(--success-600); }

/* Action buttons (Pesanan / Shift / CRM): uniform bordered pills */
.topbar-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--neutral-200);
  border-radius: 10px;
  background: var(--neutral-0);
  color: var(--neutral-800);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
}

.topbar-action:hover { background: var(--neutral-100); }
.topbar-action svg { width: 16px; height: 16px; }
.topbar-action:focus-visible { outline: 2px solid var(--primary-500); outline-offset: 2px; }

.shift-toggle.is-open { border-color: var(--success-200, #bbf7d0); color: var(--success-600); }
.shift-toggle.is-closed { color: var(--neutral-500); }

.topbar-badge {
  margin-left: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Bell button: bare icon, no border/padding/background */
.topbar-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: none;
  background: none;
  padding: 0;
  color: var(--neutral-600);
  cursor: pointer;
}

.topbar-bell:hover { color: var(--neutral-900); }
.topbar-bell svg { width: 20px; height: 20px; }
.topbar-bell.is-ringing { color: #dc2626; }
.bell-badge { position: absolute; top: -8px; right: -9px; margin: 0; }

.bell-icon { display: inline-flex; transform-origin: 50% 2px; }

@keyframes bell-ring {
  0% { transform: rotate(0); }
  15% { transform: rotate(15deg); }
  30% { transform: rotate(-13deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
  100% { transform: rotate(0); }
}

.is-ringing .bell-icon { animation: bell-ring 1s ease-in-out infinite; }

/* Tablet orders slide-over */
.tablet-pos { position: relative; }

.tablet-orders-overlay { position: absolute; inset: 0; z-index: 40; }

.tablet-orders-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
}

.tablet-orders-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 348px;
  max-width: 88%;
  background: var(--neutral-50, #f8fafc);
  box-shadow: -12px 0 30px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  animation: slide-in-right 0.2s ease;
}

@keyframes slide-in-right {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.tablet-orders-panel-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 10px;
}

.tablet-orders-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.tablet-orders-panel-body .incoming-list { grid-template-columns: 1fr; }

.tablet-topbar .app-switch-button {
  min-height: 38px;
}

.tablet-shift-pill {
  cursor: pointer;
  white-space: nowrap;
}

.tablet-shift-pill:hover {
  filter: brightness(0.97);
}

.tablet-shift-pill:focus-visible {
  outline: 2px solid var(--primary-500);
  outline-offset: 2px;
}

.tablet-pos-main {
  display: flex;
  flex: 1;
  min-height: 0;
}

.tablet-order-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 348px;
  min-height: 0;
  flex-shrink: 0;
  border-left: 1px solid var(--neutral-200);
  background: var(--neutral-0);
  padding: 16px;
}

.tablet-catalog {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.tablet-catalog-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tablet-command-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tablet-command-row .search-box {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.tablet-product-grid {
  flex: 1;
  min-height: 0;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-content: start;
  overflow-y: auto;
  gap: 14px;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tablet-product-grid::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.tablet-order {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  height: 100%;
  min-height: 0;
  flex: 1;
  padding: 0;
  background: transparent;
}

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

.tablet-order-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.tablet-order-items {
  flex: 1;
  min-height: 80px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tablet-order-items::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.tablet-order .cart-item {
  align-items: center;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-50);
  padding: 10px 11px;
}

.tablet-order .cart-item h3 {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tablet-order .cart-item p {
  margin-top: 5px;
}

.tablet-order .cart-item .icon-button {
  width: 34px;
  min-height: 34px;
  border-radius: 9px;
}

.tablet-order .qty-stepper {
  grid-template-columns: 30px 30px 30px;
  border-radius: 9px;
}

.tablet-order .qty-stepper button {
  height: 30px;
}

.tablet-order .payment-grid {
  gap: 8px;
}

.tablet-order .payment-option {
  grid-template-columns: 24px auto;
  justify-content: center;
  min-height: 52px;
  padding: 0 12px;
  text-align: center;
}

.tablet-order .payment-option svg {
  width: 24px;
  height: 24px;
  padding: 5px;
}

.tablet-order .payment-option strong {
  font-size: 12px;
}

.tablet-payment-context {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: var(--neutral-50);
  padding: 9px 10px;
}

.tablet-payment-context div {
  display: block;
  min-width: 0;
}

.tablet-payment-context span {
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 900;
}

.tablet-payment-context strong {
  display: block;
  margin-top: 3px;
  min-width: 0;
  color: var(--neutral-900);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tablet-payment-panel .tablet-payment-methods {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tablet-payment-panel .payment-option {
  justify-content: center;
  min-height: 56px;
  border-radius: 14px;
  padding: 0 12px;
  text-align: center;
}

.tablet-payment-panel .payment-option strong {
  font-size: 13px;
}

.tablet-order.tablet-payment-panel .summary-box {
  margin-top: auto;
}

.tablet-order-type-field {
  padding-top: 13px;
  border-top: 1px solid var(--neutral-200);
}

.tablet-order-type-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-height: 44px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--neutral-100);
  padding: 4px;
}

.tablet-order-type-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--neutral-500);
  font-size: 12px;
  font-weight: 900;
}

.tablet-order-type-toggle button.active {
  background: var(--neutral-0);
  color: var(--neutral-900);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.08);
}

.tablet-order-type-toggle svg {
  width: 16px;
  height: 16px;
}

.tablet-customer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: end;
  gap: 8px;
}

.tablet-customer-add {
  width: 48px;
  min-height: 50px;
  border-radius: 12px;
}

.tablet-customer-add svg {
  width: 18px;
  height: 18px;
}

.tablet-note-field textarea {
  min-height: 58px;
  max-height: 82px;
  resize: none;
}

.tablet-order .summary-box {
  margin-top: 0;
  border-radius: 13px;
}

.tablet-order-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  text-align: center;
  color: var(--neutral-500);
}

.tablet-order-empty svg {
  width: 28px;
  height: 28px;
}

.tablet-checkout {
  width: 100%;
  min-height: 52px;
}

.tablet-receipt-panel {
  background: var(--neutral-0);
}

.tablet-success-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 16px;
  background: var(--success-50);
  padding: 12px;
}

.tablet-success-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--neutral-0);
  color: var(--success-600);
}

.tablet-success-icon svg {
  width: 21px;
  height: 21px;
}

.tablet-success-card h2,
.tablet-success-card p {
  margin: 0;
}

.tablet-success-card h2 {
  margin-top: 2px;
  font-size: 21px;
  line-height: 1.1;
}

.tablet-success-card p {
  margin-top: 5px;
  color: var(--neutral-700);
  font-size: 12px;
  font-weight: 900;
}

.tablet-receipt-meta,
.tablet-receipt-total-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  background: var(--neutral-50);
  padding: 12px;
}

.tablet-receipt-meta {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 9px 10px;
}

.tablet-receipt-meta div {
  display: block;
  min-width: 0;
}

.tablet-receipt-total-card div,
.tablet-receipt-section-title,
.tablet-receipt-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tablet-receipt-total-card {
  margin-top: auto;
}

.tablet-receipt-meta span,
.tablet-receipt-total-card span,
.tablet-receipt-section-title span,
.tablet-receipt-note span {
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 900;
}

.tablet-receipt-meta strong,
.tablet-receipt-total-card strong,
.tablet-receipt-section-title strong,
.tablet-receipt-note strong {
  min-width: 0;
  color: var(--neutral-900);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tablet-receipt-meta strong {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  text-align: left;
}

.tablet-receipt-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.tablet-receipt-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.tablet-receipt-section-title {
  margin-bottom: 8px;
}

.tablet-receipt-total-card .tablet-receipt-section-title {
  margin-bottom: 2px;
}

.tablet-receipt-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--neutral-100);
  border-radius: 12px;
  background: var(--neutral-50);
  padding: 10px;
}

.tablet-receipt-item strong,
.tablet-receipt-item span {
  display: block;
  min-width: 0;
}

.tablet-receipt-item strong {
  overflow: hidden;
  color: var(--neutral-900);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tablet-receipt-item span {
  margin-top: 4px;
  color: var(--neutral-500);
  font-size: 11px;
  font-weight: 800;
}

.tablet-receipt-item b {
  color: var(--neutral-900);
  font-size: 12px;
  font-weight: 900;
}

.tablet-receipt-note {
  margin-top: 8px;
  border: 1px solid var(--warning-50);
  border-radius: 12px;
  background: var(--warning-50);
  padding: 10px;
}

.tablet-receipt-grand-total {
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid var(--neutral-200);
}

.tablet-receipt-grand-total strong {
  font-size: 18px;
}

.tablet-receipt-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.tablet-receipt-actions button {
  flex: 1;
  min-height: 50px;
}

.tablet-receipt-actions .primary-button {
  flex: 1.18;
}

.tablet-receipt-actions .primary-button,
.tablet-receipt-actions .secondary-button {
  min-height: 50px;
}

/* ===== Login screen ===== */
body.app-locked .prototype-shell {
  display: none;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(249, 115, 22, 0.10), transparent),
    var(--neutral-50);
}

.login-card {
  width: 100%;
  max-width: 360px;
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--neutral-200);
  border-radius: 18px;
  background: var(--neutral-0);
  box-shadow: var(--shadow-soft);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-brand strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: var(--neutral-900);
}

.login-brand div span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 800;
  color: var(--neutral-500);
}

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

.login-card .primary-button {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
}

.login-error {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--danger-50);
  border-radius: 10px;
  background: var(--danger-50);
  color: var(--danger-600);
  font-size: 12px;
  font-weight: 800;
}

.login-hint {
  font-size: 11px;
  font-weight: 700;
  color: var(--neutral-500);
  text-align: center;
}

/* ===== Modal (change password, etc.) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
}

.modal-card {
  width: 100%;
  max-width: 360px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  background: var(--neutral-0);
  box-shadow: var(--shadow-pop);
}

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

.modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: var(--neutral-900);
}

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

.modal-card .primary-button {
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
}
