/* DSRT Dine POS — redesign layer (Figma FPCbU6k9…, node 2:10 layout pattern) 2026-07-10.
   Loaded AFTER dine-pos.css. Restyles palette toward the design's navy-blue and adds the
   5-zone layout: top buttons · left steps · center menu · right cart/pay · bottom controls.
   All element IDs + .order-type-btn/.tender-tab/.category-tab/.menu-tile hooks are unchanged,
   so dine-pos.js (order/settle logic) is untouched. */

:root {
  --bg: #0e1a33;
  --surface: #16243f;
  --surface-2: #101d38;
  --line: #24344f;
  --line-soft: rgba(255,255,255,.07);
  --accent: #2f7bf6;
  --accent-dark: #1d5fd6;
  --text: #e8eef7;
  --text-dim: #93a2bd;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
body, .pos-shell { font-family: 'Inter', system-ui, -apple-system, sans-serif; }

/* ── shell = vertical: header / main / footer ── */
.pos-shell { display: flex !important; flex-direction: column; height: 100vh; overflow: hidden; }

/* ── TOP bar ── */
.pos-header {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); flex: 0 0 auto;
}
.pos-header .brand { display: flex; align-items: center; gap: 10px; }
.pos-header .brand-logo { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #4aa3ff, #1a73e8 70%); flex: 0 0 auto; }
.pos-header .brand h1 { font-size: 15px; font-weight: 700; letter-spacing: .5px; margin: 0; color: #fff; }
.pos-header .brand-sub { font-size: 9px; letter-spacing: 1px; color: var(--text-dim); text-transform: uppercase; }
.pos-header .scan-wrap { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; max-width: 620px; }
.pos-header .scan-wrap input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 14px; font-family: inherit; }
.pos-header .scan-icon { color: var(--accent); font-size: 16px; }
.pos-header .order-type-row { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex: 0 0 auto; }
.pos-header .order-type-btn { background: transparent; border: 0; color: var(--text-dim); font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 8px; cursor: pointer; }
.pos-header .order-type-btn.active { background: var(--accent); color: #fff; }
.pos-header .header-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.pos-header .server-badge { font-size: 12px; color: var(--text-dim); } .pos-header .server-badge strong { color: var(--text); }

/* ── MIDDLE = 3-zone grid ── */
.pos-main {
  display: grid !important; grid-template-columns: 190px minmax(0,1fr) 372px; gap: 0;
  flex: 1 1 auto; min-height: 0; overflow: hidden;
}

/* LEFT — steps guide */
.pos-steps { background: var(--surface-2); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.pos-step { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 10px; color: var(--text-dim); }
.pos-step .s-num { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.pos-step .s-lbl { font-size: 13px; font-weight: 500; }
.pos-step:first-child { color: var(--text); }
.pos-step:first-child .s-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.pos-steps-hint { margin-top: auto; font-size: 11px; color: var(--text-dim); line-height: 1.5; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }

/* CENTER — menu (internal scroll) */
.pos-main .menu-pane { min-height: 0; overflow: hidden; display: flex; flex-direction: column; padding: 16px 20px; }
.pos-main .menu-pane .category-tabs { flex: 0 0 auto; }
.pos-main .menu-pane .menu-grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; }

/* RIGHT — cart/pay (internal scroll) */
.pos-main .order-rail { min-height: 0; overflow-y: auto; background: var(--surface-2); border-left: 1px solid var(--line); padding: 16px 18px; display: flex; flex-direction: column; }
.order-rail-head { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px; }

/* ── BOTTOM bar ── */
.pos-bottom {
  flex: 0 0 auto; display: flex; align-items: center; gap: 14px;
  padding: 10px 20px; background: var(--surface-2); border-top: 1px solid var(--line); min-height: 46px;
}
.pos-bottom .fired-banner { margin: 0; background: rgba(47,123,246,.14); border: 1px solid rgba(47,123,246,.4); color: var(--text); border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.pos-bottom .fired-banner .fired-status { color: var(--text-dim); margin-left: 8px; }
.pos-bottom-spacer { flex: 1 1 auto; }
.pos-bottom-actions { display: flex; align-items: center; gap: 16px; }
.pos-bottom-link { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 500; }
.pos-bottom-link:hover { color: #5b9bff; }
.pos-bottom-stat { font-size: 12px; color: var(--text-dim); } .pos-bottom-stat strong { color: var(--text); }

/* accent-following bits from the base sheet */
.btn-primary { background: var(--accent); }
.category-tab.active, .tender-tab.active { border-color: var(--accent) !important; color: var(--accent) !important; }

@media (max-width: 1100px) {
  .pos-main { grid-template-columns: minmax(0,1fr) 340px; }
  .pos-steps { display: none; }
}
@media (max-width: 780px) {
  .pos-main { grid-template-columns: 1fr; }
  .pos-main .order-rail { border-left: 0; border-top: 1px solid var(--line); }
}
