/* ============================================================
   SABASU NOODLE BAR — POS  |  style.css (Minimalist Light Mode)
   ============================================================ */

:root {
  --bg-main: #F9F4EB;       /* Main site linen canvas */
  --bg-panel: #F0E2CB;      /* Soft warm almond wrappers */
  --bg-surface: #FFFFFF;    /* Crisp card surfaces */
  --primary: #C58F3B;       /* Premium accent ochre gold */
  --secondary: #F3E9E0;     /* Soft alternate cream links */
  --ink: #1A1A1A;           /* Deep charcoal primary text */
  --ink-muted: #6B6255;     /* Warm grey subheaders */
  --line: rgba(26, 26, 26, 0.08);
  --line-strong: rgba(26, 26, 26, 0.16);
  --shadow: 0 12px 30px -8px rgba(197, 143, 59, 0.08), 0 4px 12px -3px rgba(26, 26, 26, 0.04);
  --radius: 16px;
  --green: #2C7A4B;         /* Clean organic green success tone */
  --red: #C0392B;           /* Warning modifier crimson red */
}

/* ---------- Global Overrides ---------- */
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  background-color: var(--bg-main);
  color: var(--ink);
  overflow: hidden;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

input, select {
  font-family: inherit;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(26, 26, 26, 0.15);
  border-radius: 20px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ---------- App Shell Layout ---------- */
#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
}

header.topbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-surface);
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.02);
}

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

.logo {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  flex: none;
  background: var(--primary);
  display: grid;
  place-items: center;
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--bg-surface);
  box-shadow: 0 4px 12px rgba(197, 143, 59, 0.3);
}

.brand h1 {
  font-family: "Shippori Mincho B1", serif;
  font-size: 20px;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand .sub {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* Cashier Component */
.cashier {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 12px;
  margin-left: 8px;
}

.cashier .ic {
  font-size: 16px;
}

.cashier .lab {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.cashier input {
  background: transparent;
  border: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  width: 120px;
  border-bottom: 1px dashed var(--line-strong);
  padding: 2px 2px;
}

.cashier input:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

.topnav {
  margin-left: auto;
  display: flex;
  gap: 6px;
  background: var(--secondary);
  padding: 5px;
  border-radius: 13px;
  border: 1px solid var(--line);
}

.topnav button {
  padding: 9px 16px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 7px;
  transition: 0.15s;
}

.topnav button.active {
  background: var(--primary);
  color: var(--bg-surface);
  box-shadow: 0 4px 12px rgba(197, 143, 59, 0.25);
}

/* Centered Header System Clock */
.clock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  background: var(--secondary);
  padding: 6px 20px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  line-height: 1.1;
  pointer-events: none;
  z-index: 10;
}

.clock-time {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.clock-date {
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 1px;
}

/* ---------- Workspace Routing ---------- */
main {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.view {
  height: 100%;
  display: none;
}

.view.active {
  display: flex;
}

/* ---------- POS Kiosk Main Layout ---------- */
.pos {
  width: 100%;
  height: 100%;
  display: flex;
  min-height: 0;
}

.sidebar-panel {
  width: 230px;
  background: var(--bg-panel);
  border-right: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  flex-shrink: 0;
  height: 100%;
}

.sidebar-header {
  font-family: "Shippori Mincho B1", serif;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink);
  margin-bottom: 14px;
  padding-left: 4px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px dashed var(--line-strong);
}

.btn-signout {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--red);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-align: center;
  transition: background-color 0.15s, color 0.15s;
}

.btn-signout:hover {
  background-color: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
}

.menu-area {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
}

.cats {
  display: flex;
  flex-direction: column; 
  gap: 10px;
  flex: 1;
  overflow-y: auto;
  padding-right: 2px;
  align-content: start;
}

.cat {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  transition: 0.15s;
  white-space: nowrap;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat.active {
  background: var(--ink);
  color: var(--bg-surface);
  border-color: var(--ink);
}

.grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 18px;
  padding-right: 4px;
  align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: left;
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}

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

.card:active {
  transform: translateY(0) scale(0.985);
}

.card .thumb {
  height: 185px;
  display: grid;
  place-items: center;
  font-size: 76px;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-panel);
}

.card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.3s;
}

.card:hover .thumb img {
  transform: scale(1.04);
}

.card .body {
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.card .nm {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
  color: var(--ink);
}

.card .note {
  font-size: 12px;
  color: var(--ink-muted);
}

.card .pr {
  margin-top: auto;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  padding-top: 6px;
}

.card .plus {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--ink);
  backdrop-filter: blur(4px);
  z-index: 1;
}

/* ---------- Checkout Cart Sidebar ---------- */
.cart {
  width: 380px;
  flex: none;
  background: var(--bg-panel);
  border-left: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
}

.cart-head {
  padding: 16px 18px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-head h2 {
  margin: 0;
  font-family: "Shippori Mincho B1", serif;
  font-size: 18px;
}

.cart-head .ordno {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink);
  background: var(--secondary);
  border: 1px solid var(--line-strong);
  padding: 5px 9px;
  border-radius: 8px;
}

.ordertype {
  display: flex;
  gap: 8px;
  padding: 0 18px 8px;
}

.ordertype button {
  flex: 1;
  padding: 11px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--bg-surface);
  font-weight: 700;
  font-size: 13px;
  color: var(--ink-muted);
  transition: 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.ordertype button.active {
  background: var(--primary);
  color: var(--bg-surface);
  border-color: var(--primary);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 6px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ink-muted);
  gap: 8px;
  text-align: center;
  padding: 30px;
}

.empty .big {
  font-size: 46px;
  opacity: 0.4;
}

/* Item Entry Lines */
.line {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 9px 11px;
  animation: pop 0.18s ease;
}

@keyframes pop {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.line .info {
  flex: 1;
  min-width: 0;
}

.line .info .ln {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
}

.line .info .lp {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--ink-muted);
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-main);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 3px;
}

.qty button {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.qty button:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.line .sub {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13.5px;
  min-width: 58px;
  text-align: right;
}

/* Ledger Adjustments Footers */
.cart-foot {
  border-top: 1px solid var(--line-strong);
  padding: 14px 18px 16px;
  background: rgba(255, 255, 255, 0.3);
}

.disc-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.disc-row select, .disc-row input {
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 13px;
}

.disc-row select {
  flex: 1;
}

.disc-row input {
  width: 78px;
  text-align: right;
  font-family: "JetBrains Mono", monospace;
}

.totals {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  font-size: 13.5px;
}

.totals .t {
  display: flex;
  justify-content: space-between;
  color: var(--ink-muted);
  font-family: "JetBrains Mono", monospace;
}

.totals .t.disc {
  color: var(--green);
}

.totals .grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px dashed var(--line-strong);
  padding-top: 9px;
  margin-top: 3px;
}

.totals .grand .lbl {
  font-weight: 700;
  font-size: 15px;
}

.totals .grand .amt {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 24px;
  color: var(--primary);
}

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

.btn {
  padding: 14px;
  border-radius: 13px;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.15s;
}

.btn-clear {
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  flex: none;
  width: 54px;
}

.btn-clear:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn-pay {
  flex: 1;
  background: var(--green);
  color: #fff;
}

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

/* ---------- History Records Workspace ---------- */
.hist {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  gap: 14px;
  overflow: hidden;
}

.hist-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hist-top h2 {
  font-family: "Shippori Mincho B1", serif;
  margin: 0;
  font-size: 22px;
}

.stats {
  display: flex;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.stat {
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 11px 18px;
  min-width: 120px;
}

.stat .k {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.stat .v {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 22px;
  color: var(--primary);
  margin-top: 2px;
}

.hist-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-right: 4px;
}

.hrow {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 13px 16px;
  transition: border-color 0.15s;
}

.hrow:hover {
  border-color: var(--primary);
}

.hrow .ono {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
}

.hrow .meta {
  flex: 1;
  min-width: 0;
}

.hrow .meta .tt {
  font-weight: 700;
  font-size: 13.5px;
}

.hrow .meta .dd {
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: "JetBrains Mono", monospace;
}

.tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag.dine {
  background: var(--secondary);
  color: var(--primary);
}

.tag.take {
  background: rgba(44, 122, 75, 0.1);
  color: var(--green);
}

.hrow .amt {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 16px;
}

.hrow .view-btn {
  background: var(--secondary);
  border: 1px solid var(--line-strong);
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.hrow .view-btn:hover {
  background: var(--ink);
  color: var(--bg-surface);
}

/* ---------- Item Manager Workspace ---------- */
.mgr {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px 22px;
  gap: 14px;
  overflow: hidden;
}

.mgr-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mgr-top h2 {
  font-family: "Shippori Mincho B1", serif;
  margin: 0;
  font-size: 22px;
}

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

.mcard {
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 13px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.mcard .mthumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 32px;
  overflow: hidden;
  position: relative;
  background: var(--bg-main);
}

.mcard .mthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.mcard .mi {
  flex: 1;
  min-width: 0;
}

.mcard .mi .mn {
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.2;
}

.mcard .mi .mc {
  font-size: 11px;
  color: var(--ink-muted);
}

.mcard .mi .mp {
  font-family: "JetBrains Mono", monospace;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  margin-top: 2px;
}

/* ---------- Menu Item Sorting Controls & Actions ---------- */
.mcard-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.btn-sort {
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  opacity: 0.35;
  padding: 6px;
  color: var(--ink);
  transition: opacity 0.15s, color 0.15s;
}

.btn-sort:hover {
  opacity: 1;
  color: var(--primary);
}

.btn-sort:disabled {
  opacity: 0.05 !important;
  cursor: not-allowed;
}

.mcard .medit {
  font-size: 16px;
  opacity: 0.5;
  padding: 6px;
  color: var(--ink);
  margin-left: 0 !important;
  cursor: pointer;
  transition: opacity 0.15s, color 0.15s;
}

.mcard .medit:hover {
  opacity: 1;
  color: var(--primary);
}

.btn-add {
  background: var(--primary);
  color: var(--bg-surface);
  padding: 11px 18px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.btn-ghost {
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  color: var(--ink-muted);
  padding: 11px 16px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 13px;
}

.btn-ghost:hover {
  background: var(--secondary);
  color: var(--ink);
}

/* ---------- Overlay Forms / Modals ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(4px);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  animation: fade 0.2s;
}

.overlay.show {
  display: flex;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal {
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  width: 100%;
  max-width: 440px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(26, 26, 26, 0.15);
  animation: rise 0.25s cubic-bezier(0.2, 0.9, 0.3, 1);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.modal-head {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
}

.modal-head h3 {
  margin: 0;
  font-family: "Shippori Mincho B1", serif;
  font-size: 19px;
  color: var(--ink);
}

.modal-head .x {
  margin-left: auto;
  font-size: 24px;
  color: var(--ink-muted);
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.modal-head .x:hover {
  background: var(--bg-main);
  color: var(--ink);
}

.modal-body {
  padding: 20px 22px;
}

.fld {
  margin-bottom: 15px;
}

.fld label {
  display: block;
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
  font-weight: 700;
}

.fld input, .fld select {
  width: 100%;
  background: var(--bg-main);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  border-radius: 11px;
  padding: 12px;
  font-size: 15px;
}

.fld input:focus, .fld select:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-surface);
}

.fld.bignum input {
  font-family: "JetBrains Mono", monospace;
  font-size: 28px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

.pay-summary {
  background: var(--bg-main);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  padding: 15px 17px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pay-summary .r {
  display: flex;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--ink-muted);
}

.pay-summary .r.total {
  border-top: 1px dashed var(--line-strong);
  padding-top: 9px;
  margin-top: 3px;
  color: var(--ink);
  font-weight: 700;
  font-size: 18px;
}

.pay-summary .r.change {
  color: var(--green);
  font-weight: 700;
  font-size: 18px;
}

.pay-methods {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-bottom: 15px;
  width: 100%;
}

.pay-methods button {
  flex: 1 1 calc(33.33% - 8px);
  min-width: 85px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 6px;
  font-size: 13px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--bg-main);
  font-weight: 700;
  color: var(--ink-muted);
  box-sizing: border-box;
}

.pay-methods button.active {
  background: var(--primary);
  color: var(--bg-surface);
  border-color: var(--primary);
}

/* Dynamic Interactive QR Drawer Display */
.qr-display {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 15px 0;
  padding: 16px;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  background: var(--bg-main);
}

.qr-display.show {
  display: flex;
}

.qr-label {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.qr-img img {
  max-width: 160px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 6px;
}

.qr-text {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 10px;
  font-weight: 500;
}

.pay-icon {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
  border-radius: 4px;
  display: inline-block;
}

.quick-cash {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.quick-cash button {
  flex: 1;
  min-width: 64px;
  padding: 10px;
  border-radius: 10px;
  background: var(--bg-main);
  border: 1px solid var(--line-strong);
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.quick-cash button:hover {
  background: var(--secondary);
}

.img-pick {
  display: flex;
  gap: 10px;
  align-items: center;
}

.img-pick .prev {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--bg-main);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 28px;
  overflow: hidden;
  flex: none;
  position: relative;
}

.img-pick .prev img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ---------- Thermal Printing Receipts ---------- */
#receipt {
  background: #FDFBF7;
  color: #1A1A1A;
  border-radius: 12px;
  padding: 0;
  width: 100%;
  max-width: 340px;
  font-family: "JetBrains Mono", monospace;
  border: 1px solid var(--line-strong);
}

.rc-inner {
  padding: 22px 22px 26px;
}

.rc-brand {
  text-align: center;
  border-bottom: 2px dashed #BCB3A4;
  padding-bottom: 13px;
  margin-bottom: 13px;
}

.rc-brand .rn {
  font-family: "Shippori Mincho B1", serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.rc-brand .rs {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6E6557;
  margin-top: 2px;
}

.rc-brand .ra {
  font-size: 10.5px;
  color: #554F45;
  margin-top: 7px;
  line-height: 1.5;
}

.rc-meta {
  font-size: 11px;
  color: #443F36;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 12px;
}

.rc-meta .rm {
  display: flex;
  justify-content: space-between;
}

.rc-type {
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 6px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  margin-bottom: 13px;
  text-transform: uppercase;
}

.rc-items {
  border-top: 1px dashed #BCB3A4;
  border-bottom: 1px dashed #BCB3A4;
  padding: 11px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 11px;
}

.rc-it {
  font-size: 12px;
}

.rc-it .l1 {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

.rc-it .l2 {
  color: #6E6557;
  font-size: 10.5px;
}

.rc-tot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  margin-bottom: 11px;
}

.rc-tot .r {
  display: flex;
  justify-content: space-between;
}

.rc-tot .r.disc {
  color: var(--green);
}

.rc-tot .r.grand {
  border-top: 2px solid var(--ink);
  padding-top: 7px;
  margin-top: 4px;
  font-weight: 800;
  font-size: 16px;
}

.rc-foot {
  text-align: center;
  font-size: 10.5px;
  color: #554F45;
  margin-top: 14px;
  line-height: 1.7;
}

.rc-foot .ty {
  font-family: "Shippori Mincho B1", serif;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 5px;
}

.rc-actions {
  padding: 14px 22px 20px;
  display: flex;
  gap: 9px;
}

.rc-actions button {
  flex: 1;
  padding: 13px;
  border-radius: 11px;
  font-weight: 800;
  font-size: 14px;
}

.rc-print {
  background: var(--ink);
  color: var(--bg-surface);
}

.rc-new {
  background: var(--primary);
  color: var(--bg-surface);
}

/* ---------- Notification Toasts ---------- */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--ink);
  color: var(--bg-surface);
  padding: 13px 22px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 14px;
  z-index: 90;
  box-shadow: 0 10px 30px rgba(26,26,26,0.2);
  transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 9px;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ---------- Mobile Layout Responsive Breakpoints ---------- */
.mobile-cart-btn {
  display: none;
}

.closecart {
  display: none;
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  place-items: center;
  font-size: 22px;
  background: var(--bg-main);
  color: var(--ink-muted);
}

@media(max-width: 920px) {
  .pos {
    flex-direction: column;
  }

  .sidebar-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--line-strong);
    padding: 12px 14px;
    height: auto;
  }

  .sidebar-header {
    display: none;
  }

  .menu-area {
    padding-bottom: 84px;
  }
  
  .cats {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }
  
  .cat {
    width: auto;
    padding: 9px 16px;
    text-align: center;
  }
  
  .cart {
    position: fixed;
    inset: 0;
    top: 0;
    width: 100%;
    z-index: 40;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
  }
  
  .cart.open {
    transform: translateY(0);
  }
  
  .cart-head .closecart {
    display: grid !important;
  }
  
  .mobile-cart-btn {
    display: flex;
    position: fixed;
    bottom: 18px;
    left: 18px;
    right: 18px;
    z-index: 35;
    background: var(--green);
    color: #fff;
    padding: 16px 20px;
    border-radius: 15px;
    font-weight: 800;
    font-size: 16px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 24px rgba(44, 122, 75, 0.3);
  }
  
  .mobile-cart-btn .badge {
    background: rgba(0, 0, 0, 0.15);
    padding: 4px 11px;
    border-radius: 9px;
    font-family: "JetBrains Mono", monospace;
  }
  
  .brand .sub {
    display: none;
  }
  
  .cashier {
    margin-left: 0;
    padding: 6px 9px;
  }
  
  .cashier .lab {
    display: none;
  }
  
  .cashier input {
    width: 88px;
    font-size: 13px;
  }
  
  .topnav button span.lbl {
    display: none;
  }
  
  .topnav button {
    padding: 9px 13px;
  }
  
  .clock {
    display: none !important;
  }
  
  .stats {
    width: 100%;
    margin-left: 0;
  }
  
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: 14px;
  }
  
  .card .thumb {
    height: 140px;
    font-size: 60px;
  }
}

/* ---------- Global Fixed Authentication Layout Screens ---------- */
.auth-container {
  position: fixed;
  inset: 0;
  background-color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}

.auth-card {
  background: var(--bg-surface);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 35px 30px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
}

.auth-header {
  text-align: center;
  margin-bottom: 25px;
}

.auth-header h2 {
  font-family: "Shippori Mincho B1", serif;
  font-weight: 800;
  font-size: 26px;
  margin: 0 0 4px 0;
  letter-spacing: 1px;
  color: var(--primary);
}

.auth-header p {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin: 0;
}

/* ---------- Native Physical Thermal Printing Override ---------- */
@media print {
  body * {
    visibility: hidden;
  }
  
  #receipt, #receipt * {
    visibility: visible;
  }
  
  #receipt {
    position: fixed;
    inset: 0;
    margin: 0;
    max-width: 100%;
    box-shadow: none;
    border-radius: 0;
    background: #fff;
  }
  
  .rc-actions {
    display: none !important;
  }
}

/* ============================================================
   ADDITIONAL TARGETS: KIOSK CUSTOMIZATION COMPONENT UI
   ============================================================ */
.addons-manager-section {
  margin: 16px 0;
  border-top: 1px dashed var(--line-strong);
  padding-top: 14px;
}

.addons-label {
  font-size: 11.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
  font-weight: 700;
}

.addons-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-add-addon {
  background: var(--ink);
  color: var(--bg-surface);
  border: none;
  padding: 0 16px;
  border-radius: 11px;
  font-weight: 700;
  cursor: pointer;
}

.addons-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 110px;
  overflow-y: auto;
}

.addon-tag {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  border: 1px solid var(--line);
}

.addon-tag .remove-btn {
  background: none;
  border: none;
  color: var(--red);
  margin-left: 6px;
  cursor: pointer;
  font-weight: 900;
  padding: 2px;
}

.kiosk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0;
  max-height: 250px;
  overflow-y: auto;
  padding-right: 2px;
}

.kiosk-addon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-main);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.kiosk-addon-row:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
}

.kiosk-addon-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  cursor: pointer;
}

.kiosk-addon-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kiosk-addon-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 14.5px;
}

.kiosk-addon-price {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  font-family: "JetBrains Mono", monospace;
}

.cart-addon-inline {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 3px;
  font-weight: 500;
  display: block;
}