/* iPad POS checkout: turn board, service menu, ticket. Landscape iPad first, stacks on narrow screens. */
.pos { display: grid; grid-template-columns: 290px minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); height: 100vh; height: 100dvh; }
.bar { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; padding: .6rem 1.1rem; border-bottom: 1px solid var(--line); background: #fff; }
.bar a.brand { text-decoration: none; }
.bar-station { margin-left: auto; color: var(--plum-soft); font-size: .9rem; }
.bar-clock { font-weight: 700; }

.col-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0 0 .6rem; }
.col-head h2 { margin: 0; font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--plum-soft); }
.count { font-weight: 800; background: var(--pink-wash); color: #a3215a; border-radius: 999px; padding: .1rem .55rem; font-size: .85rem; }
.small { min-height: 40px; padding: 0 .8rem; font-size: .9rem; }

/* Turn board */
.turns { background: var(--blush); border-right: 1px solid var(--line); padding: 1rem; overflow: auto; display: flex; flex-direction: column; }
.tech-list, .queue { list-style: none; margin: 0 0 1.2rem; padding: 0; display: grid; gap: .45rem; }
.tech { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: .5rem .6rem; min-height: 58px; }
.tech.is-next { border-color: var(--pink-bright); box-shadow: 0 0 0 2px var(--pink-wash); }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--plum); }
.tech-name { font-weight: 700; }
.tech-meta { font-size: .78rem; color: var(--plum-soft); }
.tech .pill { justify-self: end; }
.q { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .55rem .7rem; display: grid; gap: .15rem; }
.q-top { display: flex; justify-content: space-between; gap: .5rem; font-weight: 700; }
.q-svc { font-size: .85rem; color: var(--plum-soft); }
.assign { margin-top: auto; width: 100%; }

/* Menu */
.menu { padding: 1rem 1.1rem; overflow: auto; }
.cats { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .8rem; }
.cats button { min-height: 48px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.cats button[aria-selected="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.for-tech { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; font-weight: 700; color: var(--plum-soft); font-size: .9rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chips button { min-height: 44px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.chips button[aria-pressed="true"] { border-color: var(--pink); background: var(--pink-wash); color: #a3215a; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .7rem; }
.tile { min-height: 104px; border-radius: 16px; border: 1px solid var(--line); background: #fff; text-align: left; padding: .9rem; display: flex;
  flex-direction: column; justify-content: space-between; transition: transform .08s ease, border-color .15s ease; }
.tile:hover { border-color: #f3c6d9; }
.tile:active { transform: scale(.97); }
.tile-name { font-weight: 800; font-size: 1.02rem; }
.tile-foot { display: flex; justify-content: space-between; align-items: end; color: var(--plum-soft); font-size: .82rem; }
.tile-price { font-size: 1.15rem; font-weight: 800; color: var(--plum); }

/* Ticket */
.ticket { border-left: 1px solid var(--line); padding: 1rem; display: flex; flex-direction: column; overflow: auto; background: #fff; }
.who { margin: 0 0 .6rem; font-weight: 700; }
.who small { color: var(--plum-soft); font-weight: 600; }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: .4rem .6rem; align-items: center; padding: .55rem .6rem; border: 1px solid var(--line);
  border-radius: 12px; }
.line-name { font-weight: 700; }
.line select { grid-column: 1; min-height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--blush); font: inherit; font-size: .88rem;
  padding: 0 .5rem; max-width: 12rem; }
.line-price { font-weight: 800; }
.line-x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 1.1rem; color: var(--plum-soft); }
.empty { color: var(--plum-soft); text-align: center; padding: 2rem 0; border: 1px dashed var(--line); border-radius: 12px; }
.sums { margin-top: auto; padding-top: .8rem; display: grid; gap: .45rem; }
.row { display: flex; justify-content: space-between; font-weight: 600; }
.row.total { font-size: 1.4rem; font-weight: 800; border-top: 1px solid var(--line); padding-top: .5rem; }
.paid-row { color: var(--pink); font-weight: 800; }
.tip-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.tip-pick button, .seg button { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .85rem; padding: 0 .3rem; }
.tip-pick button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--plum); border-color: var(--plum); color: #fff; }
.split-head { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; color: var(--plum-soft); font-weight: 700; }
.seg { display: inline-flex; gap: .3rem; }
.tip-split { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; font-size: .9rem; }
.tip-split li { display: flex; justify-content: space-between; color: var(--plum-soft); }
.pay { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .9rem; }
.pay-card { grid-column: 1 / -1; min-height: 64px; font-size: 1.2rem; }

/* Modal contents */
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .8rem 0; }
.keypad button { min-height: 60px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; font-weight: 700; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.quick button { min-height: 52px; border-radius: 12px; border: 1px solid #ecd9a4; background: var(--gold-wash); font-weight: 800; color: var(--gold-text); }
.readout { font-size: 2rem; font-weight: 800; text-align: right; padding: .4rem .6rem; border-radius: 12px; background: var(--blush); }
.kv { display: flex; justify-content: space-between; font-weight: 700; margin: .3rem 0; }
.actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.field { display: grid; gap: .3rem; font-weight: 700; margin: .5rem 0; }
.field input { min-height: 52px; border-radius: 12px; border: 1px solid var(--line); padding: 0 .8rem; font: inherit; font-size: 1.1rem; }
.hint { color: var(--plum-soft); font-size: .88rem; margin: .2rem 0; }
.big-check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-wash); color: var(--ok); font-size: 2.4rem; font-weight: 800; display: grid;
  place-items: center; margin: 0 auto .6rem; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--plum); color: #fff; padding: .8rem 1.2rem; border-radius: 12px;
  font-weight: 700; z-index: 30; box-shadow: 0 10px 30px rgba(42, 31, 45, .3); }

@media (max-width: 1100px) {
  .pos { grid-template-columns: 250px minmax(0, 1fr) 340px; }
}
@media (max-width: 900px) {
  .pos { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .turns, .ticket { border: 0; border-bottom: 1px solid var(--line); }
  .bar { flex-wrap: wrap; }
  .bar-station { margin-left: 0; }
  .tip-pick { grid-template-columns: repeat(3, 1fr); }
}
