.sales-report { color: #23332c; background: #f5f7f4; font-family: 'Segoe UI', Tahoma, sans-serif; }
.report-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 4px 0 18px; }
.report-toolbar label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: #52645a; }
.report-toolbar input, .report-toolbar select { min-height: 40px; border: 1px solid #ccd7ce; background: #fff; border-radius: 7px; padding: 8px 10px; color: #23332c; }
.report-action { min-height: 40px; border: 1px solid #214d39; border-radius: 7px; padding: 9px 14px; background: #214d39; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; }
.report-action:hover { background: #173c2b; }
.report-action:focus-visible { outline: 3px solid #8ea996; outline-offset: 3px; }
.report-action:disabled { opacity: .5; cursor: not-allowed; }
.report-action-secondary { background: #fff; color: #214d39; }
.report-action-secondary:hover { background: #e8efe9; }
.report-action-danger { background: #fff; color: #953b35; border-color: #d9afa9; }
.report-action-danger:hover { background: #f9ece9; }
.report-message { padding: 12px 16px; margin-bottom: 16px; background: #e9efe9; border-left: 3px solid #688e76; font-size: 13px; }
.report-message.error { background: #fbefeb; border-color: #ae5d48; color: #813d2c; }
#reportPaper { padding: 28px; background: #fff; border: 1px solid #dce4dc; border-radius: 10px; }
.report-brand { display: flex; gap: 16px; align-items: center; padding-bottom: 24px; border-bottom: 2px solid #214d39; }
.report-logo { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 64px; color: #214d39; border: 1px solid #b8c8bc; border-radius: 8px; }
.report-eyebrow { font-size: 10px; letter-spacing: 2px; color: #748279; font-weight: 700; }
.report-brand h2 { margin: 4px 0 5px; font: bold 23px Georgia, serif; letter-spacing: .4px; }
.report-brand p { font-size: 12px; margin: 0; color: #66766b; }
.report-period { display: grid; gap: 5px; margin-left: auto; text-align: right; font-size: 11px; color: #66766b; }
.report-period strong { font-size: 13px; color: #23332c; }
.report-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 22px 0 18px; }
.report-kpi { padding: 16px; background: #f6f7f4; border: 1px solid #e1e6dd; border-top: 3px solid #9d9e75; border-radius: 7px; }
.report-kpi span { display: block; color: #536558; font-size: 11px; font-weight: 600; }
.report-kpi strong { display: block; font-size: clamp(16px, 1.6vw, 23px); margin: 8px 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.report-kpi small { display: block; color: #6b7b70; font-size: 10px; line-height: 1.5; }
.report-kpi-paid { border-top-color: #437653; background: #f1f7f1; }
.report-kpi-debt { border-top-color: #b46453; background: #fcf4f1; }
.report-kpi-debt strong { color: #974d3e; }
.report-kpi-rooms { border-top-color: #52666d; background: #f1f5f6; }
.report-note { font-size: 11px; line-height: 1.6; color: #69786f; margin: 8px 0; }
.report-section { margin-top: 28px; }
.report-section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.report-section h3, .report-pending h3 { font-size: 15px; font-weight: 700; margin: 0; }
.report-section-heading strong { font-size: 13px; white-space: nowrap; }
.report-section > p, .report-pending > p { font-size: 11px; color: #6b7b70; margin: 0 0 12px; }
.report-table-wrap { overflow-x: auto; border: 1px solid #dfe6de; border-radius: 7px; }
.sales-report table { border-collapse: collapse; width: 100%; font-size: 12px; }
.sales-report th { text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .35px; background: #edf2ec; color: #516455; padding: 11px 10px; white-space: nowrap; }
.sales-report td { padding: 10px; border-top: 1px solid #e5ebe2; vertical-align: top; overflow-wrap: anywhere; }
.sales-report tbody tr:nth-child(even) { background: #fafbf8; }
.sales-report .report-number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-empty { color: #7c897e; text-align: center; padding: 24px !important; }
.report-document-footer { padding-top: 18px; margin-top: 24px; border-top: 1px solid #dfe6de; color: #7b877e; font-size: 10px; }
.report-admin-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 24px; padding-top: 18px; border-top: 1px solid #dce4dc; }
.report-admin-bar span { font-size: 11px; color: #7b877e; }
.report-pending { border: 1px solid #d6b687; border-radius: 8px; padding: 16px; margin-top: 20px; background: #fff8eb; }
.report-pending-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid #ead7b7; font-size: 12px; }
.report-pending-row span { flex: 1 1 300px; overflow-wrap: anywhere; }
.report-skeleton { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 24px 0; }
.report-skeleton div { height: 110px; border-radius: 8px; background: linear-gradient(110deg, #e6ebe3 20%, #f8faf5 40%, #e6ebe3 60%); background-size: 200% 100%; animation: report-loading 1.8s infinite; }
.report-skeleton p { grid-column: 1 / -1; font-size: 12px; color: #66766b; }
[hidden] { display: none !important; }
@keyframes report-loading { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .report-skeleton div { animation: none; } }
@media (max-width: 760px) {
  #reportPaper { padding: 16px; }
  .report-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-brand { flex-wrap: wrap; }
  .report-brand h2 { font-size: 19px; }
  .report-period { flex: 1 1 100%; margin: 0; text-align: left; }
  .report-section-heading { flex-wrap: wrap; }
}
.report-print { margin: 0; padding: 0; background: #fff; }
.report-print #reportPaper { display: block; border: 0; border-radius: 0; padding: 0; }
.report-print .report-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-print .report-brand { flex-wrap: nowrap; }
.report-print .report-period { flex: initial; margin-left: auto; text-align: right; }
.report-print .report-table-wrap { overflow: visible; }
.report-print .report-noprint { display: none; }
.report-print .report-kpi strong { font-size: 16px; }
.report-print table { font-size: 10px; }
.report-print th { font-size: 9px; white-space: normal; }
.report-print tr, .report-print .report-kpi, .report-print .report-brand { break-inside: avoid; }
.report-print thead { display: table-header-group; }
.report-print .report-section-heading { break-after: avoid; }
.report-thermal { width: 78mm; box-sizing: border-box; padding: 4mm; }
.report-thermal .report-brand { flex-wrap: wrap; gap: 8px; }
.report-thermal .report-brand h2 { font-size: 16px; }
.report-thermal .report-logo { width: 40px; height: 46px; flex-basis: 40px; }
.report-thermal .report-logo svg { width: 32px; }
.report-thermal .report-period { margin: 0; flex: 1 1 100%; text-align: left; }
.report-thermal .report-kpis { grid-template-columns: 1fr; gap: 8px; }
.report-thermal .report-kpi { padding: 10px; }
.report-thermal table, .report-thermal tbody, .report-thermal tr, .report-thermal td { display: block; }
.report-thermal thead { display: none; }
.report-thermal tr { padding: 8px 0; border-top: 1px dashed #849686; }
.report-thermal td { display: flex; gap: 8px; justify-content: space-between; border: 0; padding: 3px 6px; white-space: normal; }
.report-thermal td::before { content: attr(data-label); font-weight: bold; text-align: left; flex: 0 0 42%; }
.report-thermal .report-section-heading { flex-wrap: wrap; }
.report-thermal .report-empty::before { content: none; }
.system-admin-panel { background: #f4f6f5; }
.admin-eyebrow { letter-spacing: .15em; font-size: .65rem; color: #c1d2c5; }
.admin-status { display: flex; gap: 12px 28px; flex-wrap: wrap; padding: 14px 18px; background: #e3ebe5; border-left: 4px solid #234e36; font-size: .85rem; }
.admin-user-grid { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(300px, 1.4fr); gap: 20px; margin: 20px 0; }
.admin-card { padding: 22px; background: white; border: 1px solid #dce3df; border-radius: 10px; }
.erp-settings-status { display: flex; flex-wrap: wrap; gap: 6px 24px; word-break: break-all; }
.admin-card h6, .admin-danger-zone h6 { font-weight: 800; margin-bottom: 18px; }
.staff-account-row { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid #e3e8e5; }
.staff-account-row strong { overflow-wrap: anywhere; min-width: 0; }
.staff-role { background: #eaf0eb; color: #244d34; border-radius: 5px; font-size: .7rem; padding: 5px 8px; }
.admin-permissions { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; border-top: 1px solid #d8e1db; padding: 20px 0; font-size: .82rem; }
.admin-danger-zone { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; background: #fff4f2; border: 1px solid #e9c9c4; border-left: 4px solid #a43b2d; padding: 20px; border-radius: 8px; }
.admin-danger-zone p { margin-bottom: 0; font-size: .85rem; }
.hotel-operations-locked [data-hotel-operation] { display: none !important; }
.hotel-kot-locked [data-hotel-kot] { display: none !important; }
.setup-panel { background: #f4f6f5; }
.setup-panel .admin-status { font-size: .78rem; justify-content: space-between; }
.staff-department-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 14px; }
.staff-department-summary span { padding: 10px; background: #edf2ee; border-radius: 5px; font-size: .75rem; }
.staff-initial-pin { display: block; margin-top: 5px; font-size: .72rem; color: #92551a; }
.staff-account-row > div { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 700px) { .admin-user-grid { grid-template-columns: 1fr; } .staff-account-row { grid-template-columns: 1fr auto; } .admin-card { padding: 16px; } .admin-permissions { grid-template-columns: 1fr; gap: 4px; } .admin-permissions span { margin-bottom: 12px; } }
/* ---------- POS Bar & Jikoni (touch-first) ---------- */
body.hotel-pos-open #portalRoomsView { display: none !important; }
body.hotel-pos-only #portalRoomsView, body.hotel-pos-only [data-hide-pos-only] { display: none !important; }
body.hotel-pos-open { background: #eef1f4; }
.pos-shell { --pos-ink: #0d1b2a; --pos-muted: #66727f; --pos-line: #e1e6eb; --pos-accent: #f2a007; --pos-go: #13854e; --pos-go-dark: #0d6b3e; --pos-card: #fff; --pos-radius: 16px; padding: 14px clamp(10px, 2vw, 22px) 24px; color: var(--pos-ink); }
.pos-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.pos-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pos-brand-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--pos-ink); color: var(--pos-accent); font-size: 22px; flex: none; }
.pos-title { font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; margin: 0; letter-spacing: -.01em; }
.pos-subtitle { margin: 0; color: var(--pos-muted); font-size: 12.5px; }
.pos-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pos-chip-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--pos-line); background: #fff; color: var(--pos-ink); font-weight: 600; font-size: 14px; }
.pos-chip-btn:active { transform: scale(.97); }
.pos-chip-tabs { background: var(--pos-ink); border-color: var(--pos-ink); color: #fff; }
.pos-chip-kot { background: var(--pos-accent); border-color: var(--pos-accent); color: #1d1300; }
.pos-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--pos-accent); color: #1d1300; font-size: 12px; font-weight: 800; }
.pos-message { margin: 0 0 12px; }
.pos-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 16px; align-items: start; }
.pos-catalog { min-width: 0; }
.pos-search { position: relative; margin-bottom: 10px; }
.pos-search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--pos-muted); }
.pos-search input { width: 100%; height: 50px; padding: 0 16px 0 44px; border-radius: 14px; border: 1px solid var(--pos-line); background: #fff; font-size: 16px; }
.pos-search input:focus { outline: 3px solid rgba(242,160,7,.35); border-color: var(--pos-accent); }
.pos-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pos-tabs::-webkit-scrollbar { display: none; }
.pos-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--pos-line); background: #fff; font-weight: 600; font-size: 14px; color: var(--pos-ink); }
.pos-tab span { font-size: 12px; color: var(--pos-muted); font-weight: 700; }
.pos-tab[aria-selected="true"] { background: var(--pos-ink); border-color: var(--pos-ink); color: #fff; }
.pos-tab[aria-selected="true"] span { color: var(--pos-accent); }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.pos-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 138px; padding: 14px; border-radius: var(--pos-radius); border: 2px solid transparent; background: var(--pos-card); box-shadow: 0 1px 2px rgba(13,27,42,.06), 0 4px 14px rgba(13,27,42,.05); text-align: left; color: inherit; transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.pos-card:hover { border-color: #d5dbe1; box-shadow: 0 6px 20px rgba(13,27,42,.1); }
.pos-card:active { transform: scale(.97); }
.pos-card.in-cart { border-color: var(--pos-go); }
.pos-card-name { font-size: 16px; font-weight: 750; line-height: 1.22; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pos-card-code { font-size: 11px; color: var(--pos-muted); font-weight: 600; letter-spacing: .03em; }
.pos-card-price { margin-top: auto; font-size: 17px; font-weight: 800; color: var(--pos-go-dark); }
.pos-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11.5px; }
.pos-type { padding: 2px 8px; border-radius: 999px; font-weight: 700; background: #eef1f4; color: #3c4855; }
.pos-type.kit { background: #fff3d6; color: #7a4f00; }
.pos-type.inv { background: #e2f3ea; color: #0d6b3e; }
.pos-stock { display: inline-flex; align-items: center; gap: 5px; color: var(--pos-muted); font-weight: 600; }
.pos-stock::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #b8c0c8; }
.pos-stock.ok::before { background: #1db866; box-shadow: 0 0 0 3px rgba(29,184,102,.18); }
.pos-stock.low::before { background: #f2a007; box-shadow: 0 0 0 3px rgba(242,160,7,.2); }
.pos-stock.out { color: #c0392b; }
.pos-stock.out::before { background: #e03131; box-shadow: 0 0 0 3px rgba(224,49,49,.2); }
.pos-card-qty { position: absolute; top: -8px; right: -8px; min-width: 28px; height: 28px; padding: 0 7px; display: grid; place-items: center; border-radius: 999px; background: var(--pos-go); color: #fff; font-weight: 800; font-size: 13px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.pos-empty { grid-column: 1 / -1; padding: 40px 12px; text-align: center; color: var(--pos-muted); background: #fff; border-radius: var(--pos-radius); }
.pos-more { grid-column: 1 / -1; min-height: 48px; border-radius: var(--pos-radius); font-weight: 700; touch-action: manipulation; }
.pos-skeleton { min-height: 138px; border-radius: var(--pos-radius); background: linear-gradient(90deg, #e7ebef 25%, #f4f6f8 50%, #e7ebef 75%); background-size: 200% 100%; animation: report-loading 1.2s infinite linear; }
.pos-cart { position: sticky; top: 86px; display: flex; flex-direction: column; max-height: calc(100vh - 100px); background: #fff; border-radius: 20px; box-shadow: 0 10px 30px rgba(13,27,42,.1); overflow: hidden; }
.pos-cart-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--pos-line); }
.pos-cart-title { flex: 1; margin: 0; font-size: 17px; font-weight: 800; }
.pos-link-btn { border: 0; background: none; color: #c0392b; font-weight: 600; font-size: 13px; min-height: 36px; }
.pos-sheet-close { display: none; border: 0; background: #eef1f4; width: 40px; height: 40px; border-radius: 50%; font-size: 18px; }
.pos-cart-list { list-style: none; margin: 0; padding: 4px 16px; overflow-y: auto; flex: 1 1 auto; min-height: 80px; }
.pos-cart-empty { padding: 26px 0; text-align: center; color: var(--pos-muted); font-size: 14px; }
.pos-cart-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--pos-line); }
.pos-cart-name { font-weight: 650; font-size: 14px; line-height: 1.25; }
.pos-cart-sub { grid-column: 1; font-size: 12px; color: var(--pos-muted); }
.pos-cart-line-total { grid-column: 2; grid-row: 2; text-align: right; font-weight: 750; font-size: 14px; }
.pos-stepper { grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; border: 1px solid var(--pos-line); border-radius: 999px; overflow: hidden; }
.pos-stepper button { width: 38px; height: 38px; border: 0; background: #f4f6f8; font-size: 18px; font-weight: 700; color: var(--pos-ink); }
.pos-stepper button:active { background: #e3e8ec; }
.pos-stepper input { width: 42px; height: 38px; border: 0; text-align: center; font-weight: 700; font-size: 15px; -moz-appearance: textfield; }
.pos-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pos-cart-foot { padding: 12px 16px 16px; border-top: 1px solid var(--pos-line); background: #fafbfc; }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin-bottom: 10px; }
.pos-total strong { font-size: 22px; font-weight: 850; }
.pos-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border: 0; padding: 0; margin: 0 0 10px; }
.pos-modes input { position: absolute; opacity: 0; pointer-events: none; }
.pos-modes label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 6px 4px; border: 2px solid var(--pos-line); border-radius: 14px; background: #fff; font-size: 12px; font-weight: 700; text-align: center; line-height: 1.15; cursor: pointer; }
.pos-modes label i { font-size: 18px; color: var(--pos-muted); }
.pos-modes label b { display: none; }
.pos-modes input:checked + label { border-color: var(--pos-ink); background: var(--pos-ink); color: #fff; }
.pos-modes input:checked + label i { color: var(--pos-accent); }
.pos-modes input:focus-visible + label { outline: 3px solid rgba(242,160,7,.5); }
.pos-field { margin-bottom: 8px; }
.pos-field > label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.pos-field .form-select, .pos-field .form-control { min-height: 46px; font-size: 15px; border-radius: 12px; }
.pos-hint { font-size: 12px; color: var(--pos-muted); margin: 4px 0 0; }
.pos-submit { width: 100%; min-height: 56px; border: 0; border-radius: 14px; background: var(--pos-go); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 6px 16px rgba(19,133,78,.3); }
.pos-submit:active { transform: scale(.98); }
.pos-submit:disabled { opacity: .65; }
.pos-cart-bar, .pos-cart-backdrop { display: none; }
.pos-drawer-backdrop { position: fixed; inset: 0; background: rgba(13,27,42,.45); z-index: 1060; }
.pos-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: #f6f8fa; z-index: 1061; display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,.2); }
.pos-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px; background: #fff; border-bottom: 1px solid #e1e6eb; }
.pos-drawer-head h3 { margin: 0; font-size: 17px; font-weight: 800; }
.pos-drawer-body { flex: 1; overflow-y: auto; padding: 4px 16px 24px; }
.pos-tab-card { background: #fff; border-radius: 16px; padding: 14px; margin-top: 12px; box-shadow: 0 2px 10px rgba(13,27,42,.06); }
.pos-tab-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pos-tab-card h4 { margin: 0; font-size: 17px; font-weight: 800; }
.pos-tab-card .pos-tab-total { font-size: 18px; font-weight: 850; color: #0d6b3e; white-space: nowrap; }
.pos-tab-meta { font-size: 12px; color: #66727f; margin: 2px 0 8px; }
.pos-tab-lines { list-style: none; margin: 0 0 10px; padding: 8px 0 0; border-top: 1px dashed #e1e6eb; font-size: 13px; max-height: 180px; overflow-y: auto; }
.pos-tab-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.pos-tab-lines .round { color: #66727f; font-size: 11px; font-weight: 700; margin-right: 4px; }
.pos-tab-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pos-tab-actions .btn, .pos-tab-pay .btn { min-height: 46px; border-radius: 12px; font-weight: 700; }
.pos-tab-pay { display: grid; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e1e6eb; }
.pos-tab-pay .form-select { min-height: 46px; border-radius: 12px; }
.pos-tab-actions .pos-tab-print { grid-column: 1 / -1; }
.pos-split { display: grid; gap: 8px; margin-bottom: 8px; }
.pos-split[hidden], .pos-split-rows[hidden], .pos-split-single[hidden], #posAccountGroup[hidden] { display: none; }
.pos-split-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #cfd8e3; border-radius: 12px; background: #f6f9fc; font-size: 13px; font-weight: 700; cursor: pointer; }
.pos-split-toggle .form-check-input { margin: 0; flex: none; width: 20px; height: 20px; }
.pos-split-rows { display: grid; gap: 8px; }
.pos-split-row { display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: #fff; border: 1px dashed #cfd8e3; }
.pos-split-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; margin: 0; }
.pos-split-label strong { color: #0d6b3e; white-space: nowrap; }
.pos-split-row .form-select { min-height: 46px; border-radius: 12px; }
.pos-split-paid { margin: 0; font-size: 13px; font-weight: 700; color: #0d6b3e; }
.pos-cancel-item { margin-left: 8px; border: 0; background: #fde8e8; color: #b42318; border-radius: 8px; width: 28px; height: 28px; font-weight: 800; line-height: 1; }
.pos-cancel-item:hover, .pos-cancel-item:focus-visible { background: #b42318; color: #fff; }
.pos-print-kot { vertical-align: baseline; }
.pos-cancel-dialog { border: 0; border-radius: 16px; padding: 20px; width: min(92vw, 360px); box-shadow: 0 20px 60px rgba(13,27,42,.35); }
.pos-cancel-dialog::backdrop { background: rgba(13,27,42,.55); }
.pos-tab-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #fff3d6; color: #7a4f00; font-size: 11px; font-weight: 700; }
/* Tablet & desktop: 3 cards per row on iPad, 4 on wide screens, cart always open on the right. */
@media (min-width: 768px) { .pos-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pos-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .pos-layout { grid-template-columns: minmax(0, 1fr) 400px; } }
@media (min-width: 768px) and (max-width: 991.98px) { .pos-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 12px; } .pos-hide-sm { display: none; } .pos-card { padding: 12px; } .pos-card-name { font-size: 15px; } }
@media (max-width: 767.98px) {
  .pos-shell { padding-bottom: 96px; }
  .pos-hide-sm { display: none; }
  .pos-subtitle { display: none; }
  .pos-actions { width: 100%; }
  .pos-actions .pos-chip-tabs { flex: 1; justify-content: center; }
  .pos-layout { display: block; }
  .pos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pos-card { min-height: 128px; padding: 12px; }
  .pos-card-name { font-size: 15px; }
  .pos-cart { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1056; max-height: 88vh; border-radius: 22px 22px 0 0; transform: translateY(105%); transition: transform .25s ease; }
  body.pos-cart-open .pos-cart { transform: translateY(0); }
  .pos-cart-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 3px; background: #d5dbe1; }
  .pos-cart-head { position: relative; padding-top: 18px; }
  .pos-sheet-close { display: grid; place-items: center; }
  .pos-cart-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1055; background: rgba(13,27,42,.45); }
  .pos-cart-bar { display: flex; align-items: center; gap: 12px; position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 1050; min-height: 60px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--pos-ink); color: #fff; font-size: 15px; box-shadow: 0 10px 26px rgba(13,27,42,.35); }
  .pos-cart-bar.has-items { background: var(--pos-go); }
  .pos-cart-bar-count { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.2); font-weight: 800; }
  .pos-cart-bar-label { flex: 1; text-align: left; font-weight: 700; }
  body.pos-cart-open .pos-cart-bar { display: none; }
  .pos-drawer { width: 100vw; }
}
@media (hover: none) { .pos-card:hover { border-color: transparent; box-shadow: 0 1px 2px rgba(13,27,42,.06), 0 4px 14px rgba(13,27,42,.05); } .pos-card.in-cart { border-color: var(--pos-go); } }
@media (prefers-reduced-motion: reduce) { .pos-cart, .pos-card { transition: none; } }
.kot-source-tab { background: #fff3d6; color: #7a4f00; }
.kot-source-room { background: #e3edff; color: #1a4fb5; }
