:root {
  --bg-app: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --border-default: #cbd5e1;
  --border-light: #e2e8f0;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --brand-primary: #0f4c81;
  --brand-primary-hover: #0b3b66;
  --brand-soft: #ebf3fa;

  --kitchen-accent: #d95d1e;
  --kitchen-accent-hover: #b84b14;
  --kitchen-soft: #fff3ec;

  --cash-success: #15803d;
  --cash-success-hover: #166534;
  --cash-soft: #dcfce7;

  --warn-amber: #b45309;
  --warn-soft: #fef3c7;

  --danger-red: #b91c1c;
  --danger-soft: #fee2e2;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --font-sans: "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  --font-mono: Consolas, "Cascadia Mono", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-app);
  -webkit-font-smoothing: antialiased;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

/* LOGIN SCREEN */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(145deg, #0b3559 0%, #0f4c81 55%, #166088 100%);
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--brand-primary);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.login-brand h1 {
  margin: 0;
  font-size: 20px;
  color: var(--brand-primary);
}

.login-brand p {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.role-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chip-btn {
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  color: var(--text-main);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 34px;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.chip-btn:hover {
  background: var(--brand-soft);
  border-color: var(--brand-primary);
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.input-box {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-main);
  background: #fff;
}

.input-box:focus {
  outline: 2px solid var(--brand-primary);
  outline-offset: 1px;
  border-color: var(--brand-primary);
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 16px;
}

.pin-key {
  min-height: 48px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.pin-key:hover {
  background: var(--brand-soft);
  border-color: var(--brand-primary);
}

/* TOP HEADER (CUKCUK POS STYLE) */
.app-shell {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.topbar {
  height: 56px;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 10px;
  flex-shrink: 0;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.app-subtitle {
  font-size: 11.5px;
  opacity: 0.85;
  display: block;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}

.nav-tab {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 13px;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background-color 140ms ease;
}

.nav-tab:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-tab.active {
  background: #ffffff;
  color: var(--brand-primary);
  font-weight: 700;
}

.kbd-hint {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.16);
}

.nav-tab.active .kbd-hint {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.status-pill {
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.status-online {
  background: #dcfce7;
  color: #166534;
}

.status-offline {
  background: #fee2e2;
  color: #991b1b;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

/* MAIN WORKSPACE */
.workspace-body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.view-panel {
  flex: 1;
  overflow: auto;
  padding: 14px;
}

/* TABLE MAP (SAPO / CUKCUK FLOOR VIEW) */
.floor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  background: var(--bg-surface);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.area-pill {
  min-height: 38px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  font-weight: 600;
  cursor: pointer;
}

.area-pill.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-left: 5px solid #94a3b8;
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 128px;
  box-shadow: var(--shadow-sm);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.table-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.table-card.occupied {
  border-left-color: var(--brand-primary);
  background: #f5f9ff;
}

.table-card.locked-bill {
  border-left-color: var(--warn-amber);
  background: #fffbeb;
}

.table-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.table-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.table-area-tag {
  font-size: 11.5px;
  color: var(--text-muted);
}

.table-state-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
}

.table-card.occupied .table-state-badge {
  background: var(--brand-primary);
  color: #fff;
}

.table-total {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-primary);
  margin-top: 10px;
}

.table-meta-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* CUKCUK 3-ZONE POS ORDER & CASHIER SCREEN */
.pos-split-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 12px;
  height: 100%;
  overflow: hidden;
  padding: 12px;
}

.menu-pane {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.menu-search-bar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  align-items: center;
}

.category-strip {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
  background: var(--bg-subtle);
}

.product-grid {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 10px;
  align-content: start;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 108px;
  text-align: left;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.product-card:hover {
  border-color: var(--brand-primary);
  background: #f8fbff;
}

.product-card:active {
  background: var(--brand-soft);
}

.product-top {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.product-code {
  font-weight: 700;
  color: var(--brand-primary);
}

.product-name {
  font-weight: 700;
  font-size: 13.8px;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 8px;
}

.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.product-price {
  font-weight: 800;
  font-size: 15px;
  color: var(--kitchen-accent);
}

/* RIGHT STICKY ORDER / BILL PANEL */
.order-pane {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.order-header {
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.order-session-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--brand-primary);
}

.order-sub-actions {
  display: flex;
  gap: 5px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.order-lines-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
}

.section-banner {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 5px 8px;
  border-radius: 5px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner-draft {
  background: var(--warn-soft);
  color: var(--warn-amber);
  border: 1px dashed #f59e0b;
}

.banner-committed {
  background: var(--brand-soft);
  color: var(--brand-primary);
}

.line-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 7px;
  background: #fff;
}

.line-item.cancelled {
  opacity: 0.58;
  background: #fef2f2;
  text-decoration: line-through;
}

.line-row-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.line-title {
  font-weight: 700;
  font-size: 13.5px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-default);
  background: var(--bg-subtle);
  border-radius: 5px;
  font-weight: 800;
  cursor: pointer;
}

.order-summary-dock {
  border-top: 2px solid var(--border-light);
  padding: 10px 14px;
  background: #fcfdff;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.summary-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
  margin: 6px 0 10px;
}

.summary-total-row .amount {
  font-size: 22px;
  color: var(--brand-primary);
}

.primary-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* BUTTONS */
.btn {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.btn-sm {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
}

.btn-primary {
  background: var(--brand-primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-primary-hover);
}

.btn-kitchen {
  background: var(--kitchen-accent);
  color: #fff;
}

.btn-kitchen:hover:not(:disabled) {
  background: var(--kitchen-accent-hover);
}

.btn-success {
  background: var(--cash-success);
  color: #fff;
}

.btn-success:hover:not(:disabled) {
  background: var(--cash-success-hover);
}

.btn-secondary {
  background: var(--bg-subtle);
  border-color: var(--border-default);
  color: var(--text-main);
}

.btn-secondary:hover:not(:disabled) {
  background: #e2e8f0;
}

.btn-danger-ghost {
  background: #fff;
  border-color: #fca5a5;
  color: var(--danger-red);
}

/* KDS & PRINT PREVIEW */
.kds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}

.kds-card {
  background: #fff;
  border: 1px solid var(--border-default);
  border-top: 5px solid var(--kitchen-accent);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.kds-card.preparing { border-top-color: #0284c7; }
.kds-card.ready { border-top-color: var(--cash-success); }
.kds-card.cancelled { border-top-color: var(--danger-red); background: #fff5f5; }

.thermal-paper {
  background: #fffef9;
  border: 1px solid #d6d3d1;
  border-radius: 4px;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: pre-wrap;
  line-height: 1.4;
  max-width: 390px;
  box-shadow: inset 0 0 0 1px #f5f5f4, var(--shadow-sm);
}

/* MODAL & TOAST */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.25);
}

.toast-stack {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-msg {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  max-width: 380px;
}

.toast-msg.error { background: var(--danger-red); }
.toast-msg.success { background: var(--cash-success); }

@media (max-width: 960px) {
  .pos-split-layout {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .order-pane {
    min-height: 460px;
  }
}

.chip-btn.active {
  background: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.actor-name-label {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

.printer-split-grid {
  display: grid;
  grid-template-columns: 1fr 410px;
  gap: 14px;
  align-items: start;
}

.modal-box.wide {
  max-width: 780px;
}

/* ================= MOBILE WAITER ORDER MODE (/order) ================= */
.mobile-order-shell {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg-app);
}

.mobile-top-context {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border-default);
  flex-shrink: 0;
}

.mob-step-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px 16px;
}

.mob-table-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}

.mob-table-tile {
  background: #fff;
  border: 1px solid var(--border-default);
  border-left: 4px solid #94a3b8;
  border-radius: var(--radius-sm);
  padding: 10px;
  min-height: 76px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mob-table-tile.occupied {
  border-left-color: var(--brand-primary);
  background: #f0f7ff;
}

.mob-table-tile.selected-now {
  outline: 2px solid var(--kitchen-accent);
}

.mob-product-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mob-product-row {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.mob-bottom-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-top: 2px solid var(--border-default);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  flex-shrink: 0;
}

.mob-nav-btn {
  min-height: 52px;
  border: none;
  border-right: 1px solid var(--border-light);
  background: #fff;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}

.mob-nav-btn:last-child {
  border-right: none;
}

.mob-nav-btn.active {
  background: var(--brand-primary);
  color: #fff;
}

/* ================= CUKCUK BACK-OFFICE PORTAL (kinggrill.cukcuk.vn) ================= */
.admin-portal-layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  height: 100%;
  overflow: hidden;
}

.admin-sidebar {
  background: #0b3559;
  color: #e2e8f0;
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  gap: 4px;
  overflow-y: auto;
}

.admin-sidebar-title {
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  padding: 6px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 6px;
}

.admin-sidebar-title small {
  font-weight: 500;
  color: #93c5fd;
}

.admin-nav-item {
  min-height: 42px;
  padding: 9px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: #e2e8f0;
  text-align: left;
  font-family: inherit;
  font-size: 13.2px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.admin-nav-item.active {
  background: #ffffff;
  color: #0b3559;
  font-weight: 800;
}

.admin-main-pane {
  overflow-y: auto;
  padding: 16px 20px 32px;
  background: var(--bg-app);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--brand-primary);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.kpi-card .kpi-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.kpi-card .kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.data-table-wrap {
  overflow-x: auto;
  max-height: 540px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #fff;
}

.data-table th {
  position: sticky;
  top: 0;
  background: #f1f5f9;
  color: var(--text-secondary);
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--border-default);
  font-weight: 700;
  white-space: nowrap;
  z-index: 1;
}

.data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #f8fbff;
}

.tag-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

.tag-badge.green { background: #dcfce7; color: #166534; }
.tag-badge.amber { background: #fef3c7; color: #92400e; }
.tag-badge.red { background: #fee2e2; color: #991b1b; }
.tag-badge.blue { background: #dbeafe; color: #1e40af; }
.tag-badge.purple { background: #ede9fe; color: #5b21b6; }

/* ================= CUKCUK EXTENDED STATES (RESERVED, CLEANING, VIETQR, ANALYTICS) ================= */
.table-card.reserved {
  border-left-color: #7c3aed;
  background: #f5f3ff;
}

.table-card.reserved .table-state-badge {
  background: #7c3aed;
  color: #fff;
}

.table-card.cleaning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.table-card.cleaning .table-state-badge {
  background: #d97706;
  color: #fff;
}

.mob-table-tile.reserved {
  border-left-color: #7c3aed;
  background: #f5f3ff;
}

.mob-table-tile.cleaning {
  border-left-color: #d97706;
  background: #fffbeb;
}

.status-filter-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.status-chip {
  min-height: 34px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.status-chip.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.vietqr-box {
  background: #f8fafc;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 156px 1fr;
  gap: 14px;
  align-items: center;
}

.vietqr-img-wrap {
  width: 156px;
  height: 156px;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
}

.vietqr-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bar-chart-row {
  display: grid;
  grid-template-columns: 86px 1fr 125px;
  gap: 10px;
  align-items: center;
  margin-bottom: 7px;
  font-size: 12.5px;
}

.bar-chart-track {
  height: 12px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.bar-chart-fill {
  height: 100%;
  background: var(--brand-primary);
  border-radius: 999px;
  transition: width 180ms ease;
}

.subtab-strip {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--border-light);
  padding-bottom: 8px;
}

.btn-danger {
  background: var(--danger-red);
  color: #fff;
}

.btn-danger:hover:not(:disabled) {
  background: #b91c1c;
}

/* Cloud Portal Layout Aliases */
.admin-layout {
  display: grid;
  grid-template-columns: 255px 1fr;
  height: calc(100vh - 58px);
  overflow: hidden;
}

.admin-main {
  overflow-y: auto;
  padding: 16px 20px 32px;
  background: var(--bg-app);
}

.admin-sidebar-header {
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  padding: 6px 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 6px;
}

.toast {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #fff;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  max-width: 380px;
}
.toast.error { background: var(--danger-red); }
.toast.success { background: var(--cash-success); }

@media (max-width: 860px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 10px;
  }
  .actor-name-label, .kbd-hint {
    display: none;
  }
  .printer-split-grid, .admin-portal-layout, .admin-layout, .vietqr-box {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    height: auto;
  }
  .admin-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
  }
  .admin-sidebar-title, .admin-sidebar-header {
    display: none;
  }
  .admin-nav-item {
    white-space: nowrap;
  }
}
