/* pos-skin.css — the OpenPandora POS skin (v1.7, Phase 2).
   Locked product identity: deep navy #0A1128 + electric cyan
   #00D2FF, Robot Cook mascot. Shared by the POS home screen and the
   Settings page. Built to Manuel's design law: one job per tile,
   huge touch targets, plain words, nothing a chef mid-rush has to
   figure out.
   v1.9: also the skin for the full-design pages — the 9-tile home,
   the order front, the Day page and the Printer page (components
   below, geometry carried over from the approved design set). */
:root {
  --pos-navy: #0a1128;
  --pos-navy-2: #0d1c38;
  --pos-panel: #101f3d;
  --pos-edge: #1d3a6b;
  --pos-cyan: #00d2ff;
  --pos-ink: #f4f7ff;
  --pos-muted: #93a5c4;
  --pos-off: #3a4f7d;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body.pos-skin {
  margin: 0; background: var(--pos-navy); color: var(--pos-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

/* ---------- header + status ---------- */
.pos-head {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px 4px; max-width: 1180px; margin: 0 auto; width: 100%;
}
.pos-brand {
  margin: 0; font-size: 14px; font-weight: 800; letter-spacing: 0.22em; color: var(--pos-cyan);
}
.pos-title { margin: 2px 0 0; font-size: 36px; font-weight: 800; line-height: 1.1; }
.pos-sub { margin: 4px 0 0; color: var(--pos-muted); font-size: 17px; font-weight: 600; }
.pos-clock {
  margin-left: auto; font-size: 34px; font-weight: 800; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pos-back {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; flex: 0 0 auto; border-radius: 16px;
  background: var(--pos-navy-2); border: 1px solid var(--pos-edge);
  color: var(--pos-ink); text-decoration: none; font-size: 30px; font-weight: 800; line-height: 1;
}
.pos-status {
  max-width: 1180px; margin: 14px auto 0; padding: 0 26px;
  font-size: 18px; font-weight: 700; color: var(--pos-muted);
}
.pos-status.is-live { color: var(--pos-cyan); }

/* ---------- home grid (v1.9: the full 9-tile grid, 3 across) ---------- */
.pos-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 18px 26px 8px;
}
.pos-tile {
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  min-height: 168px; padding: 22px 24px; border-radius: 22px;
  background: var(--pos-panel); border: 2px solid var(--pos-edge);
  color: var(--pos-ink); text-decoration: none;
}
.pos-tile[hidden] { display: none; }
.pos-tile:active { border-color: var(--pos-cyan); background: var(--pos-navy-2); }
.pos-tile-ico { font-size: 40px; line-height: 1; }
.pos-tile-label { font-size: 32px; font-weight: 800; letter-spacing: 0.02em; line-height: 1.1; }
.pos-tile-sub { font-size: 16px; font-weight: 600; color: var(--pos-muted); line-height: 1.3; }
.pos-tile-wide { grid-column: 1 / -1; min-height: 128px; }
.pos-tile-robot { align-items: center; text-align: center; }
.pos-robot { width: 132px; height: 132px; object-fit: contain; border-radius: 18px; }
.pos-robot-corner {
  position: fixed; right: 14px; bottom: 14px; z-index: 5;
  display: block; border-radius: 18px;
}
.pos-robot-corner .pos-robot { width: 96px; height: 96px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45); }
.pos-foot {
  max-width: 1180px; margin: 0 auto; padding: 14px 26px 110px;
  color: var(--pos-muted); font-size: 16px; font-weight: 600;
}

/* ---------- order front (v1.9) ---------- */
.pos-order-layout {
  display: grid; grid-template-columns: 1fr 400px; gap: 18px;
  max-width: 1180px; margin: 0 auto; padding: 16px 26px 120px; align-items: start;
}
.pos-cat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pos-cat-btn {
  flex: 1; min-width: 150px; min-height: 78px; border-radius: 18px; cursor: pointer;
  background: var(--pos-navy-2); border: 2px solid var(--pos-edge); color: var(--pos-ink);
  font-size: 24px; font-weight: 800; font-family: inherit;
}
.pos-cat-btn.on { background: var(--pos-cyan); border-color: var(--pos-cyan); color: #04222e; }
.pos-item-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pos-item-btn {
  background: var(--pos-panel); border: 2px solid var(--pos-edge); border-radius: 18px;
  padding: 12px; color: var(--pos-ink); cursor: pointer; text-align: left; font-family: inherit;
  display: flex; flex-direction: column;
}
.pos-item-btn:active { border-color: var(--pos-cyan); }
.pos-item-card {
  background: var(--pos-panel); border: 2px solid var(--pos-edge); border-radius: 18px;
  padding: 16px; color: var(--pos-ink); text-align: left;
  display: flex; flex-direction: column; min-height: 92px;
}
.pos-cat-block { margin-bottom: 22px; }
.pos-cat-label {
  margin: 4px 2px 12px; font-size: 16px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--pos-cyan);
}
.pos-item-note {
  font-size: 15px; font-weight: 600; color: var(--pos-muted);
  margin-top: 6px; line-height: 1.35;
}
.pos-item-photo {
  height: 92px; border: 2px dashed var(--pos-edge); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--pos-muted); font-size: 14px; font-weight: 700; letter-spacing: 0.05em;
  background: var(--pos-navy-2); margin-bottom: 10px; text-align: center; padding: 6px;
}
.pos-item-name { font-size: 20px; font-weight: 800; line-height: 1.2; }
.pos-item-price { font-size: 17px; font-weight: 700; color: var(--pos-cyan); margin-top: 3px; }
.pos-cart {
  background: #ffffff; color: #141414; border-radius: 18px; padding: 20px;
  position: sticky; top: 14px;
}
.pos-cart h2 { margin: 0 0 6px; font-size: 24px; font-weight: 900; }
.pos-cart .c-items { list-style: none; margin: 10px 0; padding: 0; font-size: 18px; line-height: 1.5; }
.pos-cart .c-items .mod { padding-left: 22px; font-size: 16px; color: #444; }
.pos-cart .c-row { display: flex; justify-content: space-between; gap: 10px; }
.pos-cart .c-total {
  border-top: 2px solid #141414; margin-top: 10px; padding-top: 10px;
  font-size: 26px; font-weight: 900;
}
.pos-cart label { display: block; font-size: 15px; font-weight: 800; margin: 14px 0 6px; letter-spacing: 0.04em; }
.pos-cart input {
  width: 100%; min-height: 56px; border: 2px solid #c9ced6; border-radius: 12px;
  font-size: 19px; padding: 10px 12px; font-family: inherit;
}
.pos-togo-row { display: flex; gap: 10px; margin-top: 16px; }
.pos-togo-btn {
  flex: 1; min-height: 64px; border-radius: 14px; border: 2px solid #c9ced6; cursor: pointer;
  background: #eef1f6; color: #141414; font-size: 21px; font-weight: 900; font-family: inherit;
}
.pos-togo-btn.on { background: var(--pos-navy); border-color: var(--pos-navy); color: #fff; }
.pos-send-btn {
  width: 100%; min-height: 84px; margin-top: 16px; border: none; border-radius: 16px;
  background: var(--pos-cyan); color: #04222e; font-size: 30px; font-weight: 900;
  letter-spacing: 0.03em; cursor: pointer; font-family: inherit;
}
.pos-send-btn:disabled {
  background: #c5ced8; color: #1a1a1a; cursor: not-allowed;
}
.pos-send-note { font-size: 15px; font-weight: 600; color: #444; margin-top: 12px; line-height: 1.45; }
.pos-order-note { color: var(--pos-muted); font-size: 16px; font-weight: 600; margin-top: 14px; line-height: 1.45; }

/* ---------- day totals / close out (v1.9) ---------- */
.pos-day-wrap { max-width: 1100px; margin: 0 auto; padding: 16px 26px 120px; width: 100%; }
.pos-day-big {
  background: var(--pos-panel); border: 2px solid var(--pos-edge); border-radius: 22px;
  padding: 26px; text-align: center; margin-bottom: 16px;
}
.pos-day-big .lbl { font-size: 16px; font-weight: 800; letter-spacing: 0.18em; color: var(--pos-cyan); }
.pos-day-big .amt { font-size: 76px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.pos-day-big .sub { color: var(--pos-muted); font-size: 18px; font-weight: 600; }
.pos-day-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.pos-day-card { background: var(--pos-panel); border: 1px solid var(--pos-edge); border-radius: 18px; padding: 20px; }
.pos-day-card .lbl { font-size: 15px; font-weight: 800; letter-spacing: 0.12em; color: var(--pos-muted); }
.pos-day-card .amt { font-size: 38px; font-weight: 900; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pos-day-card .sub { color: var(--pos-muted); font-size: 15.5px; font-weight: 600; margin-top: 2px; }
.pos-closeout-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 96px; border: none; border-radius: 20px; cursor: pointer;
  background: #d92b2b; color: #fff; font-size: 34px; font-weight: 900; font-family: inherit;
  letter-spacing: 0.02em; text-decoration: none; text-align: center;
}
.pos-day-note { color: var(--pos-muted); font-size: 15.5px; font-weight: 600; margin-top: 12px; text-align: center; line-height: 1.45; }
.pos-day-list { list-style: none; margin: 0; padding: 0; }
.pos-day-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 15px 4px; border-bottom: 1px solid rgba(29, 58, 107, 0.55); font-size: 19px; font-weight: 700;
}
.pos-day-list li:last-child { border-bottom: none; }
.pos-day-list .r { font-variant-numeric: tabular-nums; }
.pos-day-group {
  background: var(--pos-panel); border: 1px solid var(--pos-edge);
  border-radius: 20px; padding: 6px 22px;
}

/* ---------- printer (v1.9) ---------- */
.pos-printer-wrap { max-width: 900px; margin: 0 auto; padding: 16px 26px 120px; width: 100%; }
.pos-printer-card {
  background: var(--pos-panel); border: 2px solid var(--pos-edge); border-radius: 22px; padding: 28px;
}
.pos-printer-name { font-size: 40px; font-weight: 900; margin: 0; }
.pos-printer-model { color: var(--pos-muted); font-size: 19px; font-weight: 600; margin-top: 4px; }
.pos-printer-status {
  display: flex; align-items: center; gap: 12px; margin-top: 22px;
  font-size: 23px; font-weight: 800;
}
.pos-printer-status i { width: 18px; height: 18px; border-radius: 50%; background: #2fbf71; display: block; flex: 0 0 auto; }
.pos-test-print-btn {
  width: 100%; min-height: 92px; margin-top: 24px; border: none; border-radius: 18px; cursor: pointer;
  background: var(--pos-cyan); color: #04222e; font-size: 30px; font-weight: 900; font-family: inherit;
}
.pos-printer-msg { font-size: 17px; font-weight: 700; color: var(--pos-cyan); margin-top: 16px; min-height: 24px; }
.pos-printer-note { color: var(--pos-muted); font-size: 17px; font-weight: 600; line-height: 1.55; margin-top: 20px; }
.pos-printer-note strong { color: var(--pos-ink); }

/* ---------- settings ---------- */
.pos-settings { max-width: 900px; margin: 0 auto; padding: 6px 26px 30px; width: 100%; }
.pos-group-title {
  margin: 28px 4px 10px; font-size: 15px; font-weight: 800;
  letter-spacing: 0.18em; color: var(--pos-cyan);
}
.pos-group {
  background: var(--pos-panel); border: 1px solid var(--pos-edge);
  border-radius: 20px; overflow: hidden;
}
.pos-row {
  display: flex; align-items: center; gap: 18px; width: 100%;
  padding: 20px 22px; min-height: 88px; text-align: left;
  background: none; border: none; border-bottom: 1px solid rgba(29, 58, 107, 0.55);
  color: var(--pos-ink); cursor: pointer; font: inherit;
}
.pos-row:last-child { border-bottom: none; }
.pos-row-txt { flex: 1; display: flex; flex-direction: column; }
.pos-row-t { font-size: 21px; font-weight: 700; line-height: 1.25; }
.pos-row-d { font-size: 15px; color: var(--pos-muted); font-weight: 600; margin-top: 2px; line-height: 1.35; }
/* the big switch (same geometry as the approved settings preview,
   cyan for the POS skin) */
.sw {
  flex: 0 0 auto; width: 78px; height: 46px; border-radius: 999px;
  background: var(--pos-off); position: relative; transition: background 0.15s;
}
.sw::after {
  content: ""; position: absolute; top: 4px; left: 4px; width: 38px; height: 38px;
  border-radius: 50%; background: #dfe7f5; transition: left 0.15s;
}
.sw.on { background: var(--pos-cyan); }
.sw.on::after { left: 36px; background: #fff; }

@media (max-width: 900px) {
  .pos-grid { grid-template-columns: 1fr 1fr; }
  .pos-order-layout { grid-template-columns: 1fr; }
  .pos-cart { position: static; }
  .pos-day-cards { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .pos-head { padding: 16px 16px 2px; }
  .pos-title { font-size: 29px; }
  .pos-clock { font-size: 26px; }
  .pos-status { padding: 0 16px; }
  .pos-grid { grid-template-columns: 1fr; padding: 14px 16px 6px; }
  .pos-tile { min-height: 118px; }
  .pos-tile-label { font-size: 27px; }
  .pos-settings { padding: 4px 16px 26px; }
  .pos-row-t { font-size: 19px; }
  .pos-foot { padding: 12px 16px 110px; }
  .pos-order-layout, .pos-day-wrap, .pos-printer-wrap { padding-left: 16px; padding-right: 16px; }
  .pos-item-grid { grid-template-columns: 1fr 1fr; }
  .pos-day-big .amt { font-size: 54px; }
  .pos-printer-name { font-size: 32px; }
}
