/* ReStar POS: гости за столом — блюда по гостям, своя карта у каждого, оплата и пречек по гостям (pos.js, раздел «гости за столом») */
.guest-bar { padding: 0 14px 8px; }
.guest-bar[hidden] { display: none; }
.gb-start { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px dashed #ffd8a8; background: #fffaf5; text-align: left; color: #9c4a0c; }
.gb-start > i:first-child { font-size: 20px; color: var(--accent); }
.gb-start span { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.gb-start b { font-size: 13.5px; font-weight: 500; }
.gb-start small { font-size: 12px; color: #b5651d; }
.gb-start > i:last-child { font-size: 18px; color: #d9a46b; }
.gb-label { font-size: 11.5px; color: var(--muted); margin: 0 2px 5px; }
.gb-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.gb-row::-webkit-scrollbar { display: none; }
.gb { flex: none; min-width: 76px; height: 46px; padding: 0 10px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; text-align: left; transition: background .15s, box-shadow .15s; }
.gb span { font-size: 13px; font-weight: 500; color: #343a40; white-space: nowrap; }
.gb span i { font-size: 12px; color: var(--accent); }
.gb small { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gb.on { background: #fff4e6; box-shadow: inset 0 0 0 1.5px var(--accent-2); }
.gb.on span { color: #c2410c; }
.gb-add { min-width: 46px; width: 46px; align-items: center; color: #495057; font-size: 20px; }

/* позиции по гостям */
.g-head { display: flex; align-items: center; gap: 8px; margin: 10px 2px 2px; padding: 7px 8px; border-radius: 12px; background: var(--bg); cursor: pointer; }
.g-head:first-child { margin-top: 4px; }
.g-head.on { background: #fff4e6; box-shadow: inset 0 0 0 1.5px var(--accent-2); }
.g-head b { font-size: 14px; font-weight: 500; white-space: nowrap; }
.g-head em { margin-left: auto; font-style: normal; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.g-n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: #495057; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.g-n i { font-size: 13px; }
.g-head.on .g-n { background: var(--accent); color: #fff; box-shadow: none; }
.g-card { min-width: 0; height: 28px; padding: 0 9px; border-radius: 9px; background: #fff; color: #9c4a0c; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: inset 0 0 0 1px #ffd8a8; }
.g-card i { font-size: 14px; color: var(--accent); }
.g-card.none { color: #495057; box-shadow: inset 0 0 0 1px #dee2e6; background: #fff; }
.g-card.none i { color: #868e96; }
.g-empty { padding: 8px 12px 4px; font-size: 12.5px; color: var(--muted); }
.g-move { margin-left: auto; height: 30px; padding: 0 9px; border-radius: 9px; background: var(--bg); color: #495057; font-size: 12px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.g-move i { font-size: 14px; color: #868e96; }

/* окна: меню гостя, перенос, сколько гостей */
.gm-card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #fff4e6; }
.gm-card i { font-size: 22px; color: var(--accent); }
.gm-card span { display: flex; flex-direction: column; }
.gm-card small { color: var(--muted); font-size: 12.5px; }
.mv-what { display: flex; flex-direction: column; margin-bottom: 12px; }
.mv-what small { color: var(--muted); }
.mv-qty { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mv-qty .btn { height: 40px; }
.mv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.mv-g { min-height: 52px; padding: 8px 12px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; gap: 8px; text-align: left; font-weight: 500; }
.mv-g small { display: block; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.mv-g:active, .gq-b:active { transform: scale(.97); }
.gq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gq-b { min-height: 72px; border-radius: 14px; border: 2px solid #eef0f2; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.gq-b b { font-size: 24px; font-weight: 600; }
.gq-b small { font-size: 11.5px; color: var(--muted); }
.gq-b.on { border-color: var(--accent); background: #fff4e6; }

/* оплата по гостям */
.gp-list { display: flex; flex-direction: column; gap: 10px; }
.gp-row { padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: 10px; }
.gp-row.empty { opacity: .55; }
.gp-top { display: flex; align-items: center; gap: 10px; }
.gp-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gp-who b { font-size: 15px; font-weight: 500; }
.gp-who small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-sum { flex: none; text-align: right; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.gp-sum small { font-size: 11.5px; font-weight: 400; color: var(--green); }
.gp-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; }
.gp-card .g-card { height: 34px; font-size: 13px; }
.gp-card .bonus-tg { padding: 6px 10px; }
.gp-pay { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.gp-pay .btn { height: 44px; padding: 0 6px; font-size: 13px; gap: 4px; }
.gp-pay .btn:disabled { opacity: .45; }

/* пречек: весь стол или гость */
.pc-guests { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 12px; }
.pc-guests button { flex: none; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--bg); font-size: 13px; color: #495057; }
.pc-guests button.on { background: #212529; color: #fff; }

/* экран столов на телефоне: что заказали, гости и карты */
.mt-items { font-size: 12.5px; color: #495057; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.mt-tags em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 7px; background: var(--accent-soft); color: #9c4a0c; display: inline-flex; align-items: center; gap: 3px; }
.mt-tags em i { font-size: 12px; }

@media (max-width: 760px) {
  .guest-bar { padding: 0 12px 8px; }
  .gp-pay { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gq { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gq-b { min-height: 64px; }
  .g-head { flex-wrap: wrap; }
}

/* телефон: «Блюда → Гость 2» над нижней панелью — переключить, не открывая чек */
.m-gpill { display: none; }
@media (max-width: 760px) {
  .m-gpill { position: absolute; right: 8px; bottom: calc(100% + 8px); display: inline-flex; align-items: center; gap: 5px; height: 36px; padding: 0 12px; border-radius: 18px;
    background: rgba(31, 31, 34, .94); color: #e9ecef; font-size: 13px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .m-gpill[hidden] { display: none; }
  .m-gpill b { font-weight: 500; color: #fff; }
  .m-gpill i { font-size: 16px; color: var(--accent-2); }
  .m-gpill i:last-child { color: #adb5bd; }
  .mv-g.on { background: #fff4e6; box-shadow: inset 0 0 0 1.5px var(--accent-2); }
  .mv-g span:not(.g-n) { display: flex; flex-direction: column; }
}
