/* POS 1280×800 — 디자인 시안(NeCALL 통합 디자인 · POS 보드) 그대로 */
.pos { position: absolute; inset: 0; display: flex; }
.p-left { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.p-hd { height: 64px; padding: 0 18px; display: flex; align-items: center; gap: 14px; background: #fff; border-bottom: 2px solid var(--line); flex: none; }
.p-hd .store { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-hd .right { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.p-hd .conn { font-size: 14px; } .p-hd .conn .mi { font-size: 20px; }
.p-hd .hb { height: 40px; padding: 0 12px; border-radius: 8px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.p-hd .hb.light { background: #fff; color: #444; border: 2px solid var(--line); }
.p-hd .hb .mi { font-size: 20px; }

.p-tabs { height: 72px; margin: 12px 16px 0; display: flex; border-radius: 6px; overflow: hidden; flex: none; }
.p-tabs button { flex: 1; min-width: 0; background: var(--blue); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 700; font-size: 13px; border-left: 2px solid #0f3a7c; transition: background .15s; }
.p-tabs button:first-child { border-left: 0; }
.p-tabs button .mi { font-size: 22px; }
.p-tabs button span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 4px; }
.p-tabs button.on { background: #fff; color: #1b2b4a; border: 2px solid var(--blue); border-bottom: 5px solid var(--red); }

.p-grid { flex: 1; margin: 12px 16px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 12px; min-height: 0; }
.p-grid.enter { animation: enter .2s; }
.card { background: #fff; border: 2px solid var(--line-2); border-radius: 10px; display: flex; flex-direction: column; overflow: hidden; text-align: left; position: relative; transition: transform .08s, border-color .15s; }
.card:active:not(:disabled) { transform: scale(.97); border-color: var(--blue-2); }
.card .im { flex: 1; background: #f4f4f4; min-height: 0; overflow: hidden; }
.card .im img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card .tx { padding: 7px 11px 9px; display: flex; flex-direction: column; }
.card .tx b { font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .tx .pr { font-size: 15px; font-weight: 800; color: var(--blue); }
.card .rib { position: absolute; left: -30px; top: 10px; transform: rotate(-45deg); background: #5daa2c; color: #fff; font-size: 10px; font-weight: 900; padding: 2px 34px; }
.card .rib.best { background: var(--red); } .card .rib.sale { background: #17a2b3; }
.card:disabled .im { filter: grayscale(1); opacity: .5; }
.card .so { position: absolute; inset: 0 0 auto 0; height: 60%; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--red-2); font-size: 18px; }
.p-pg { height: 52px; margin: 0 16px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.p-pg button { width: 96px; height: 40px; background: var(--blue); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.p-pg button:disabled { opacity: .35; }
.p-pg .dots { display: flex; gap: 10px; } .p-pg .dots i { width: 12px; height: 12px; border-radius: 50%; background: #c8c8c8; } .p-pg .dots i.on { background: var(--blue-2); }

.p-right { width: 400px; background: #fff; border-left: 2px solid var(--line); display: flex; flex-direction: column; flex: none; }
.p-oh { height: 64px; padding: 0 16px; display: flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; flex: none; }
.p-oh b { font-size: 20px; }
.p-oh .dine { margin-left: auto; display: flex; background: rgba(255,255,255,.18); border-radius: 20px; padding: 3px; }
.p-oh .dine button { height: 32px; padding: 0 14px; border-radius: 16px; font-size: 14px; font-weight: 700; color: #fff; }
.p-oh .dine button.on { background: #fff; color: var(--blue); }
.p-list { flex: 1; overflow-y: auto; padding: 4px 16px; }
.p-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.p-row.pop { animation: pop .2s; }
.p-row .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.p-row .nm b { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-row .nm small { font-size: 12.5px; color: var(--muted); }
.p-row .qb { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.p-row .qb.minus { background: #9a9a9a; } .p-row .qb.plus { background: var(--blue-2); }
.p-row .qb .mi { font-size: 20px; }
.p-row .q { width: 24px; text-align: center; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.p-row .q.bump { animation: bump .25s; }
.p-row .sum { width: 78px; text-align: right; font-size: 15.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.p-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #9aa3ad; font-size: 15px; }
.p-empty .mi { font-size: 48px; }
.p-sum { display: flex; gap: 8px; padding: 12px 16px; background: var(--bg); border-top: 2px solid var(--line); flex: none; }
.p-sum .stat { flex: 1; padding: 6px 10px; } .p-sum .stat span { font-size: 12px; } .p-sum .stat b { font-size: 21px; }
.p-sum .stat.tot { flex: 2; align-items: flex-end; } .p-sum .stat.tot b { font-size: 25px; color: var(--red); }
.p-sum .stat.tot b small { font-size: 12px; color: #222; font-weight: 700; margin-left: 2px; }
.p-sum .stat b.bump { animation: bump .25s; }
.p-bts { display: flex; height: 96px; flex: none; }
.p-bts button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-weight: 700; font-size: 15px; }
.p-bts .clr { width: 110px; background: var(--dark); color: #fff; }
.p-bts .lst { width: 110px; background: #fff; color: #222; border-left: 2px solid var(--line); border-top: 2px solid var(--line); }
.p-bts .pay { flex: 1; background: var(--red); color: #fff; font-size: 26px; font-weight: 900; flex-direction: row; gap: 10px; }
.p-bts .pay:disabled { background: #b9b9b9; }
.p-bts .mi { font-size: 26px; } .p-bts .pay .mi { font-size: 32px; }

/* 결제·완료·주문 목록 모달 */
.m-pay { width: 640px; padding: 34px 36px 30px; text-align: center; }
.m-pay h3 { margin: 0; font-size: 30px; font-weight: 900; }
.m-pay .amt { margin: 14px 0 24px; font-size: 54px; font-weight: 900; color: var(--red); letter-spacing: -2px; font-variant-numeric: tabular-nums; }
.m-pay .amt small { font-size: 22px; color: #222; margin-left: 4px; }
.m-pay .methods { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.m-pay .methods button { height: 150px; border-radius: 14px; border: 3px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 24px; font-weight: 900; color: var(--blue); background: #fff; }
.m-pay .methods button .mi { font-size: 52px; }
.m-pay .methods button small { font-size: 14px; color: var(--muted); font-weight: 500; }
.m-pay .methods button:active { border-color: var(--blue-2); background: var(--blue-3); }
.m-pay .cancel { margin-top: 18px; height: 60px; width: 240px; font-size: 20px; }
.m-pay .spin { width: 64px; height: 64px; margin: 24px auto; border-radius: 50%; border: 6px solid rgba(27,79,158,.15); border-top-color: var(--blue); animation: spin 1s linear infinite; }
.m-pay .no { margin: 18px 0 6px; font-size: 64px; font-weight: 900; color: var(--blue); letter-spacing: -2px; animation: bump .35s; }
.m-pay p { margin: 6px 0 0; color: var(--muted); font-size: 18px; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-list { width: 760px; max-height: 680px; display: flex; flex-direction: column; }
.m-list .mh { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px 12px; }
.m-list .mh h3 { margin: 0; font-size: 26px; font-weight: 900; color: var(--blue); }
.m-list .mh button { width: 48px; height: 48px; border: 2px solid var(--blue-2); border-radius: 8px; color: var(--blue-2); display: flex; align-items: center; justify-content: center; }
.m-list .rows { overflow-y: auto; padding: 0 26px 22px; }
.m-list table { width: 100%; border-collapse: collapse; font-size: 16px; }
.m-list th { background: #efefef; color: #444; font-weight: 700; padding: 10px; border: 1px solid #d6d6d6; text-align: left; }
.m-list td { padding: 10px; border: 1px solid #e3e3e3; font-variant-numeric: tabular-nums; }
.m-list td.r { text-align: right; }
.st { display: inline-block; border-radius: 12px; padding: 1px 10px; font-size: 13px; font-weight: 700; background: #eee; }
.st.Paid { background: #e6f4e6; color: var(--ok); } .st.InProgress, .st.Pending { background: #fdeaea; color: var(--red-2); }
.m-list .none { padding: 40px; text-align: center; color: var(--muted); }
.menu { width: 460px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.menu h3 { margin: 0 0 4px; font-size: 24px; } .menu p { margin: 0; color: var(--muted); }
.menu .btn { height: 60px; font-size: 20px; }
