/* =========================================================
   Cashier Dashboard (Laptop)
   ========================================================= */
body.c-app {
  display: flex;
  height: 100vh;
  overflow: hidden;
  background: var(--paper-2);
}

/* ---------- Sidebar ---------- */
.c-sidebar {
  width: 260px;
  flex: none;
  background: var(--paper);
  border-inline-end: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 24px 0 16px;
}

.c-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px 30px;
}

.c-brand .brand-mark svg {
  display: block;
}

.c-brand-text {
  min-width: 0;
}

.c-brand-text .brand-name {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.c-role {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
}

.c-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  flex: 1;
}

.c-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-2);
  transition: background-color 0.15s, color 0.15s;
}

.c-nav-item:hover {
  background: var(--paper-2);
}

.c-nav-item.is-active {
  background: linear-gradient(135deg, rgba(224, 164, 88, 0.22), rgba(199, 125, 58, 0.12));
  color: var(--accent);
  border: 1px solid rgba(224, 164, 88, 0.35);
  box-shadow: 0 4px 18px -4px rgba(224, 164, 88, 0.25);
  font-weight: 700;
}

.c-sidebar-foot {
  padding: 0 24px;
}

.c-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}

.c-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.c-status[data-s='live'] {
  color: var(--olive);
}

.c-status[data-s='reconnecting'] {
  color: var(--gold);
}

.c-foot-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.c-btn-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  color: var(--ink-2);
  transition: background-color 0.15s;
}

.c-btn-icon:hover {
  background: var(--paper-2);
}

.c-btn-icon.is-active {
  color: var(--ink);
  background: var(--paper-2);
}

/* ---------- Main ---------- */
.c-main {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow-y: auto;
}

.c-view {
  display: none;
  height: 100%;
  animation: fadeIn 0.3s var(--ease);
}

.c-view.is-active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
}

.c-view-head {
  padding: 32px 40px 24px;
  max-width: 900px;
}

.c-view-title {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

html[lang='ar'] .c-view-title {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0;
}

.c-view-desc {
  margin-top: 8px;
  font-size: 15px;
  color: var(--ink-2);
}

/* ---------- Board (Orders) ---------- */
.c-board {
  display: flex;
  height: 100%;
  padding: 24px;
  gap: 24px;
  overflow-x: auto;
}

.c-col {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.c-col-head {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 16px;
  padding: 0 8px;
}

.c-col-body {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.c-empty-col {
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.c-empty-col .ic {
  margin: 0 auto 12px;
  opacity: 0.5;
}

/* ---------- Order Card ---------- */
.o-card {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  animation: slideIn 0.4s var(--ease-spring);
}

@keyframes slideIn {
  from { transform: translateY(16px); opacity: 0; }
}

.o-card.flash {
  animation: flash 2s var(--ease) !important;
}

@keyframes flash {
  0% { box-shadow: var(--sh-2), inset 0 0 0 2px var(--gold); transform: translateY(-4px); }
  100% { box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); transform: none; }
}

.o-head {
  padding: 16px 16px 12px;
  border-bottom: 1px dashed var(--line-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.o-table {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 600;
}

.o-time {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

.o-time.is-late {
  color: var(--danger);
}

.o-body {
  padding: 12px 16px;
}

.o-line {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}

.o-qty {
  font-weight: 700;
  color: var(--ink);
  flex: none;
}

.o-name {
  font-weight: 600;
}

.o-opts {
  font-size: 12.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.o-note {
  margin: 12px 16px;
  padding: 10px 12px;
  background: var(--paper-2);
  border-radius: 6px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-2);
  border-inline-start: 3px solid var(--gold);
}

.o-foot {
  padding: 12px 16px 16px;
  display: flex;
  gap: 8px;
}

.o-foot .btn {
  flex: 1;
  min-height: 40px;
  font-size: 14px;
}

.btn-reject {
  flex: none !important;
  width: 40px;
  padding: 0 !important;
  color: var(--danger);
  background: var(--danger-soft);
}

.btn-reject:hover {
  background: #f1cbc5;
}

/* ---------- Tables View ---------- */
.c-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 0 40px 40px;
  max-width: 1200px;
}

.t-card {
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.t-name {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
}

.t-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-3);
}

.t-status[data-s='active'] {
  background: var(--olive-soft);
  color: var(--olive);
}

.t-status[data-s='paused'] {
  background: var(--danger-soft);
  color: var(--danger);
}

.t-body {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.t-tab-label {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 2px;
}

.t-tab-val {
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.t-actions {
  display: flex;
  gap: 8px;
}

.t-actions .btn {
  flex: 1;
  min-height: 36px;
  font-size: 13px;
}

/* requests */
.c-reqs {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.c-req {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--sh-2);
}

.c-req-table {
  font-weight: 700;
}

.c-req .btn {
  min-height: 30px;
  height: 30px;
  padding: 0 12px;
  font-size: 12px;
  background: rgba(255,255,255,0.2);
  color: #fff;
}

/* ---------- Menu View ---------- */
.c-search {
  margin: 0 40px 24px;
  max-width: 400px;
  position: relative;
}

.c-search input {
  width: 100%;
  height: 44px;
  padding: 0 16px 0 44px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 15px;
}

html[dir='rtl'] .c-search input {
  padding: 0 44px 0 16px;
}

.c-search-ic {
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--ink-3);
}

html[dir='rtl'] .c-search-ic {
  left: auto;
  right: 14px;
}

.c-menu-list {
  padding: 0 40px 40px;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.c-m-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}

.c-m-name {
  font-weight: 600;
  font-size: 15px;
}

.c-m-cat {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 2px;
}

/* switch */
.c-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
}

.c-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.c-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--paper-3);
  border-radius: 999px;
  transition: .2s;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.c-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

html[dir='rtl'] .c-slider:before {
  left: auto;
  right: 3px;
}

input:checked + .c-slider {
  background-color: var(--olive);
}

input:checked + .c-slider:before {
  transform: translateX(20px);
}

html[dir='rtl'] input:checked + .c-slider:before {
  transform: translateX(-20px);
}

/* ---------- Today View ---------- */
.c-stats {
  padding: 0 40px 40px;
  max-width: 900px;
}

.s-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.s-card {
  background: var(--card);
  padding: 24px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}

.s-label {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.s-val {
  font-family: var(--f-display);
  font-size: 36px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

html[lang='ar'] .s-val { font-weight: 600; font-size: 32px; }

.s-top {
  background: var(--card);
  padding: 24px;
  border-radius: var(--r-md);
  box-shadow: var(--sh-1), inset 0 0 0 1px var(--line);
}

.s-top h3 {
  margin-bottom: 16px;
  font-size: 18px;
}

.s-top-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.s-top-item {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.s-top-item:last-child {
  border: 0;
  padding-bottom: 0;
}

/* ---------- Modals ---------- */
.c-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(36,26,21,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.c-modal-box {
  background: var(--card);
  width: 100%;
  max-width: 400px;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-3);
  animation: popIn 0.3s var(--ease-spring);
}

@keyframes popIn {
  from { transform: scale(0.95); opacity: 0; }
}

.c-modal-box h2 {
  font-size: 20px;
  margin-bottom: 8px;
}

.c-modal-sub {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 20px;
}

.c-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 0;
  background: var(--paper-2);
  font-size: 16px;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}

.c-input:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}

.c-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.c-reasons {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.c-reason {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.c-reason input { margin: 0; }
.c-reason:hover { background: var(--paper-2); }
.c-reason:has(input:checked) {
  background: var(--danger-soft);
  box-shadow: inset 0 0 0 1px var(--danger);
  color: var(--danger);
}

/* Pulsing attention effect for unconfirmed orders */
@keyframes pulseAttention {
  0% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(230, 126, 34, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 126, 34, 0); }
}

.o-card.pulse-attention {
  animation: pulseAttention 1.8s infinite ease-in-out;
  border-inline-start: 4px solid var(--accent) !important;
}

/* Manual POS styles */
.pos-item-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  transition: all 0.15s ease;
  user-select: none;
}
.pos-item-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--sh-1);
}
.pos-item-card:active {
  transform: translateY(0);
}
.pos-item-card.is-out {
  opacity: 0.45;
  pointer-events: none;
}
.pos-item-name {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.3;
}
.pos-item-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.pos-cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  background: var(--card);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  font-size: 13px;
}
.pos-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pos-stepper-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: bold;
  cursor: pointer;
}

/* Category Filter Tabs in POS */
.pos-cat-tab {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pos-cat-tab:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.pos-cat-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* POS Item Customizer Modal Styles */
.pos-opt-group {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: var(--card);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pos-opt-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pos-opt-badge {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--paper-2);
  color: var(--ink-3);
  font-weight: 600;
}
.pos-choices-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pos-choice-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.pos-choice-chip input {
  display: none;
}
.pos-choice-chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.pos-choice-chip.is-selected {
  background: rgba(230, 126, 34, 0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.pos-choice-price {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.85;
}

/* =========================================================
   Thermal Receipt Print Engine (80mm ESC/POS Standard)
   ========================================================= */
#receiptPrintArea {
  display: none;
}

@media screen {
  .rcpt-preview-box {
    background: #fff;
    color: #111;
    font-family: 'Courier New', Courier, monospace, 'Cairo', sans-serif;
    padding: 18px;
    border-radius: 8px;
    border: 1px dashed #ccc;
    font-size: 12.5px;
    line-height: 1.4;
    max-width: 320px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  }
  .rcpt-preview-box .rcpt-header { text-align: center; margin-bottom: 8px; }
  .rcpt-preview-box .rcpt-logo { max-width: 120px; max-height: 50px; object-fit: contain; margin: 0 auto 6px; display: block; }
  .rcpt-preview-box .rcpt-cafe-name { font-size: 17px; font-weight: 800; margin: 0 0 2px; }
  .rcpt-preview-box .rcpt-sub { font-size: 11px; color: #555; margin: 2px 0; }
  .rcpt-preview-box .rcpt-divider-dashed { border: none; border-top: 1px dashed #888; margin: 6px 0; }
  .rcpt-preview-box .rcpt-divider-double { border: none; border-top: 2px solid #222; margin: 6px 0; }
  .rcpt-preview-box .rcpt-row { display: flex; justify-content: space-between; font-size: 11.5px; margin: 2px 0; }
  .rcpt-preview-box .rcpt-item-title { font-weight: 700; font-size: 12px; margin-top: 4px; display: flex; justify-content: space-between; }
  .rcpt-preview-box .rcpt-item-opt { font-size: 11px; padding-inline-start: 10px; color: #555; display: flex; justify-content: space-between; }
  .rcpt-preview-box .rcpt-item-note { font-size: 11px; padding-inline-start: 10px; font-style: italic; color: #666; }
  .rcpt-preview-box .rcpt-total-title { font-size: 15px; font-weight: 800; }
  .rcpt-preview-box .rcpt-total-val { font-size: 16px; font-weight: 800; }
  .rcpt-preview-box .rcpt-footer { text-align: center; margin-top: 8px; font-size: 11px; color: #555; }
}

@media print {
  @page {
    size: 80mm auto;
    margin: 0mm;
  }
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
    color: #000 !important;
    width: 80mm !important;
  }
  body * {
    visibility: hidden !important;
  }
  #receiptPrintArea, #receiptPrintArea * {
    visibility: visible !important;
  }
  #receiptPrintArea {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 72mm !important;
    max-width: 72mm !important;
    margin: 0 !important;
    padding: 2mm 3mm 14mm 3mm !important;
    box-sizing: border-box !important;
    font-family: 'Courier New', Courier, monospace, 'Cairo', 'Segoe UI', sans-serif !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: #000 !important;
    background: #fff !important;
  }
  .rcpt-header {
    text-align: center;
    margin-bottom: 6px;
  }
  .rcpt-logo {
    max-width: 44mm;
    max-height: 22mm;
    object-fit: contain;
    margin: 0 auto 5px auto;
    display: block;
    filter: grayscale(100%) contrast(160%);
  }
  .rcpt-cafe-name {
    font-size: 17px;
    font-weight: 900;
    margin: 0 0 2px 0;
  }
  .rcpt-tagline {
    font-size: 10.5px;
    margin: 1px 0;
    opacity: 0.9;
  }
  .rcpt-contact {
    font-size: 10.5px;
    margin: 1px 0;
  }
  .rcpt-divider-dashed {
    border: none;
    border-top: 1px dashed #000;
    margin: 5px 0;
  }
  .rcpt-divider-double {
    border: none;
    border-top: 2px solid #000;
    margin: 5px 0;
  }
  .rcpt-order-title {
    font-size: 16px;
    font-weight: 900;
    text-align: center;
    margin: 3px 0 2px 0;
  }
  .rcpt-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 11.5px;
    margin: 2px 0;
  }
  .rcpt-table-header {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    font-size: 11px;
    border-bottom: 1px solid #000;
    padding-bottom: 2px;
    margin-bottom: 3px;
  }
  .rcpt-item-title {
    font-weight: 800;
    font-size: 12px;
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
  }
  .rcpt-item-opt {
    font-size: 10.5px;
    padding-inline-start: 10px;
    margin: 1px 0;
    opacity: 0.88;
    display: flex;
    justify-content: space-between;
  }
  .rcpt-item-note {
    font-size: 10.5px;
    padding-inline-start: 10px;
    font-style: italic;
    margin: 1px 0;
  }
  .rcpt-total-title {
    font-size: 16px;
    font-weight: 900;
  }
  .rcpt-total-val {
    font-size: 17px;
    font-weight: 900;
  }
  .rcpt-footer {
    text-align: center;
    margin-top: 8px;
    font-size: 11px;
  }
  .rcpt-cutter-space {
    height: 14mm;
  }
}

/* =========================================================
   Table QR Studio View in Cashier (Premium Redesign)
   ========================================================= */
#v-qrs {
  padding: 32px 40px 60px;
  max-width: 1300px;
  margin: 0 auto;
}
.qr-studio-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 32px;
  margin-bottom: 30px;
  box-shadow: var(--sh-1);
}
.qr-studio-head .c-view-title {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.qr-studio-head .c-view-desc {
  font-size: 13.5px;
  color: var(--ink-2);
  margin-top: 4px;
}
.qr-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.qr-select {
  height: 42px;
  padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--paper-2);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s;
}
.qr-select:focus {
  border-color: var(--accent);
}
.qr-grid-cashier {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  padding-bottom: 40px;
}
.qr-card-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qr-badge-card {
  position: relative;
  border-radius: 22px;
  padding: 26px 20px 24px;
  text-align: center;
  box-shadow: var(--sh-1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.qr-badge-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
}
.qr-badge-card.style-wood {
  background: #fbf8f3;
  border: 3px solid #2e261f;
  color: #1a140f;
}
.qr-badge-card.style-wood .tb-number-box {
  border-bottom: 2px dashed #2e261f;
}
.qr-badge-card.style-dark {
  background: #171310;
  border: 2px solid #e0a458;
  color: #f7f2ea;
  box-shadow: 0 14px 34px rgba(0,0,0,0.5);
}
.qr-badge-card.style-dark .tb-number-box {
  border-bottom: 1.5px solid rgba(224,164,88,0.4);
}
.qr-badge-card.style-dark .tb-digits {
  color: #e0a458;
}
.qr-badge-card.style-light {
  background: #ffffff;
  border: 1.5px solid rgba(0,0,0,0.15);
  color: #1c1815;
}
.qr-badge-card.style-light .tb-number-box {
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.tb-number-box {
  width: 100%;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.tb-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.8;
  display: block;
}
.tb-digits {
  font-family: var(--f-display);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  margin-top: 2px;
}
.tb-cafe-name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
}
.tb-cafe-logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.qr-img-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  display: inline-block;
}
.qr-img-box img {
  width: 180px;
  height: 180px;
  display: block;
  image-rendering: pixelated;
}
.card-bottom-info {
  margin-top: 14px;
}
.scan-title {
  font-size: 13.5px;
  font-weight: 700;
}
.scan-sub {
  font-size: 11.5px;
  opacity: 0.75;
  margin-top: 2px;
}
.btn-dl-badge {
  width: 100%;
  height: 42px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--r-md);
  font-weight: 700;
}

