/*
 * Kasir pos.kasual.id (login + till), kd design system. Tokens come from dashboard-roles.css (.kd); nothing here
 * redefines a kd token. Everything is scoped to #pos-cashier-page (standalone documents, no admin layout).
 * Primary device: laptop browser (1366x768, 1280x720, mouse + keyboard). Also tablet landscape (1024x768, 1280x800)
 * and phone (375px: catalog full width, cart = bottom bar + sheet).
 * Type: 13px body, 12px helpers, 11px eyebrows/headers/badges (nothing smaller), 15px names, 16px inputs (touch: no
 * zoom on focus), larger only for money and the main actions; weight max 700.
 * Layers: top 20, banner 25, bottom bar 30, cart sheet (phone) 40, sheets 60, confirm 70, toast 80.
 */
#pos-cashier-page {
  --cart-w: 400px;
  --bar-h: 72px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --navy-hover: #02325e;
  --scrim: rgba(15, 23, 42, 0.42);
  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sheet: 0 24px 64px rgba(15, 23, 42, 0.22);
  --halo: 0 0 0 3px rgba(18, 130, 162, 0.22);
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at 90% 0, var(--navy-tint) 0, transparent 45%), var(--canvas);
  color: var(--ink);
  overflow: hidden;
}
#pos-cashier-page .pc-mono { font-family: var(--mono) !important; letter-spacing: 0; }
#pos-cashier-page .pc-money { white-space: nowrap; font-variant-numeric: tabular-nums; }
#pos-cashier-page .pc-muted { color: var(--muted); }
#pos-cashier-page .pc-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cerulean); }
#pos-cashier-page .pc-help { font-size: 12px; color: var(--muted); }
#pos-cashier-page .pc-wordmark { display: block; height: auto; }
#pos-cashier-page svg.i { width: 18px; height: 18px; }

/* ---------- buttons, inputs, chips ---------- */
#pos-cashier-page .pc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
#pos-cashier-page .pc-btn:hover { border-color: var(--faint); }
#pos-cashier-page .pc-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#pos-cashier-page .pc-btn.is-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
#pos-cashier-page .pc-btn.is-primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
#pos-cashier-page .pc-btn.is-ghost { background: transparent; border-color: transparent; color: var(--muted); }
#pos-cashier-page .pc-btn.is-ghost:hover { background: var(--neu-bg); color: var(--ink); }
#pos-cashier-page .pc-btn.is-danger { color: var(--neg); border-color: var(--neg-line); }
#pos-cashier-page .pc-btn.is-danger:hover { background: var(--neg-bg); }
#pos-cashier-page .pc-btn.is-danger-solid { background: var(--neg); border-color: var(--neg); color: #fff; }
#pos-cashier-page .pc-btn.is-sm { min-height: 44px; padding: 6px 12px; font-size: 12px; border-radius: 9px; }
#pos-cashier-page .pc-btn.is-outline { background: var(--card); border-color: var(--navy); color: var(--navy); }
#pos-cashier-page .pc-btn.is-outline:hover { background: var(--navy-tint); }
#pos-cashier-page .pc-btn.is-lg { min-height: 48px; padding: 12px 20px; font-size: 15px; }
#pos-cashier-page .pc-btn.is-xl { min-height: 56px; padding: 14px 20px; font-size: 17px; font-weight: 700; border-radius: 12px; }
#pos-cashier-page .pc-btn.is-block { width: 100%; }
#pos-cashier-page .pc-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
#pos-cashier-page .pc-btn.is-xl .pc-money { font-weight: 700; }
#pos-cashier-page .pc-btn svg.i { width: 18px; height: 18px; }

#pos-cashier-page .pc-spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: pc-spin 0.7s linear infinite; flex: none; }
#pos-cashier-page .is-busy .pc-spin { display: inline-block; }
@keyframes pc-spin { to { transform: rotate(360deg); } }

#pos-cashier-page .pc-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer;
}
#pos-cashier-page .pc-iconbtn:hover { color: var(--ink); border-color: var(--faint); }
#pos-cashier-page .pc-iconbtn[disabled] { opacity: 0.45; cursor: not-allowed; }

#pos-cashier-page .pc-input, #pos-cashier-page .pc-textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; min-height: 48px; line-height: 1.35;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#pos-cashier-page .pc-textarea { min-height: 72px; resize: vertical; }
#pos-cashier-page .pc-input::placeholder, #pos-cashier-page .pc-textarea::placeholder { color: var(--faint); }
#pos-cashier-page .pc-input:focus, #pos-cashier-page .pc-textarea:focus { outline: none; border-color: var(--focus); box-shadow: var(--halo); }
#pos-cashier-page .pc-input[aria-invalid="true"], #pos-cashier-page .pc-textarea[aria-invalid="true"] { border-color: var(--neg); }
#pos-cashier-page .pc-input[disabled] { background: var(--neu-bg); color: var(--muted); }
#pos-cashier-page .pc-field { display: grid; gap: 6px; min-width: 0; }
#pos-cashier-page .pc-label { font-size: 12px; font-weight: 600; color: var(--ink); }
#pos-cashier-page .pc-label .pc-opt-tag { font-weight: 500; color: var(--muted); }
#pos-cashier-page .pc-ferr { font-size: 12px; font-weight: 600; color: var(--neg); }

#pos-cashier-page .pc-chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 52px; padding: 8px 14px;
  border-radius: 999px; border: 1px solid transparent; background: var(--navy-tint); color: var(--navy);
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
#pos-cashier-page .pc-chip:hover { border-color: var(--navy); }
#pos-cashier-page .pc-chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
#pos-cashier-page .pc-chip.is-quiet { background: transparent; color: var(--muted); border-color: var(--line); font-weight: 600; }
#pos-cashier-page .pc-chip[disabled] { opacity: 0.45; cursor: not-allowed; border-color: transparent; }

#pos-cashier-page .pc-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.45; border: 1px solid var(--line); background: var(--neu-bg); color: var(--ink); }
#pos-cashier-page .pc-alert svg.i { margin-top: 1px; }
#pos-cashier-page .pc-alert.is-err { background: var(--neg-bg); border-color: var(--neg-line); color: var(--neg); }
#pos-cashier-page .pc-alert.is-warn { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber); }
#pos-cashier-page .pc-alert.is-ok { background: var(--pos-bg); border-color: var(--pos-bg); color: var(--pos); }
#pos-cashier-page .pc-alert b { font-weight: 700; }
#pos-cashier-page .pc-alert ul { margin-top: 4px; display: grid; gap: 2px; }
#pos-cashier-page .pc-alert-body { min-width: 0; display: grid; gap: 8px; }
#pos-cashier-page .pc-alert-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#pos-cashier-page .pc-note { font-size: 12px; color: var(--muted); }
#pos-cashier-page .pc-note.is-warn { color: var(--amber); font-weight: 600; }
#pos-cashier-page .pc-note.is-err { color: var(--neg); font-weight: 600; }

#pos-cashier-page .pc-pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; background: var(--neu-bg); color: var(--neu); }
#pos-cashier-page .pc-pill.is-done { background: var(--pos-bg); color: var(--pos); }
#pos-cashier-page .pc-pill.is-processing { background: var(--amber-bg); color: var(--amber); }
#pos-cashier-page .pc-pill.is-shipped { background: var(--navy-tint); color: var(--navy); }
#pos-cashier-page .pc-pill.is-cancel { background: var(--neg-bg); color: var(--neg); }
#pos-cashier-page .pc-pill.is-custom { background: var(--card); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy-tint); }

/* ---------- login ---------- */
#pos-cashier-page.pc-login { overflow-y: auto; }
#pos-cashier-page .pc-login-main { min-height: 100%; display: grid; place-items: center; padding: 32px 16px; }
#pos-cashier-page .pc-login-card {
  width: min(420px, 100%); display: grid; gap: 16px; padding: 32px 28px 28px;
  background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 18px; box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
#pos-cashier-page .pc-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
#pos-cashier-page .pc-brand .pc-wordmark { width: 120px; }
#pos-cashier-page .pc-login-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
#pos-cashier-page .pc-login-sub { font-size: 13px; color: var(--muted); margin-top: -8px; }
#pos-cashier-page .pc-login-help { font-size: 12px; color: var(--muted); text-align: center; }
#pos-cashier-page .pc-pw { position: relative; display: block; }
#pos-cashier-page .pc-pw .pc-input { padding-right: 52px; }
#pos-cashier-page .pc-pw-toggle { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; }
#pos-cashier-page .pc-pw-toggle[aria-pressed="true"] { color: var(--navy); }

/* ---------- till shell ---------- */
#pos-cashier-page.pc-till { display: grid; grid-template-rows: auto auto minmax(0, 1fr); }
#pos-cashier-page .pc-top {
  position: relative; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: 10px max(20px, env(safe-area-inset-right, 0px)) 10px max(20px, env(safe-area-inset-left, 0px));
  background: var(--header-bg); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
#pos-cashier-page .pc-top .pc-wordmark { width: 96px; flex: none; }
#pos-cashier-page .pc-store { min-width: 0; flex: 1; display: grid; gap: 2px; padding-left: 16px; border-left: 1px solid var(--line); }
#pos-cashier-page .pc-store-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
#pos-cashier-page .pc-store-name { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pos-cashier-page .pc-store-who { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pos-cashier-page .pc-store-who b { font-weight: 600; color: var(--ink); }
#pos-cashier-page .pc-kind { flex: none; display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
#pos-cashier-page .pc-kind.is-office { background: var(--navy-tint); color: var(--navy); }
#pos-cashier-page .pc-kind.is-event { background: var(--card); color: var(--cerulean); box-shadow: inset 0 0 0 1px var(--cerulean); }
#pos-cashier-page .pc-kind-sm { display: none; }
#pos-cashier-page .pc-today-val .pc-short { display: none; }
#pos-cashier-page .pc-top-ctl { display: flex; align-items: center; gap: 10px; flex: none; }
#pos-cashier-page .pc-today {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px 6px 12px; text-align: left;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; color: var(--ink);
}
#pos-cashier-page .pc-today:hover { border-color: var(--navy); }
#pos-cashier-page .pc-today svg.i { color: var(--navy); width: 20px; height: 20px; }
#pos-cashier-page .pc-today-txt { display: grid; line-height: 1.25; }
#pos-cashier-page .pc-today-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
#pos-cashier-page .pc-today-val { font-size: 14px; font-weight: 700; white-space: nowrap; }
#pos-cashier-page .pc-paper { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 12px; background: var(--neu-bg); }
#pos-cashier-page .pc-paper-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding: 0 8px 0 6px; }
#pos-cashier-page .pc-paper button { border: 0; background: transparent; min-height: 44px; min-width: 44px; padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
#pos-cashier-page .pc-paper button[aria-checked="true"] { background: var(--card); color: var(--navy); box-shadow: 0 0 0 1px var(--line); font-weight: 700; }
#pos-cashier-page .pc-paper-mm { font-weight: 500; }
#pos-cashier-page .pc-logout { margin: 0; }

#pos-cashier-page .pc-banner {
  position: relative; z-index: 25; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 20px; background: var(--amber-bg); color: var(--amber); border-bottom: 1px solid var(--amber-line); font-size: 13px; font-weight: 600;
}
#pos-cashier-page .pc-banner span { flex: 1; min-width: 200px; }

#pos-cashier-page .pc-main { display: grid; grid-template-columns: minmax(0, 1fr) var(--cart-w); min-height: 0; grid-row: 3; }

/* ---------- catalog ---------- */
#pos-cashier-page .pc-catalog { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
#pos-cashier-page .pc-search-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px 12px; }
#pos-cashier-page .pc-search { position: relative; flex: 1; min-width: 0; max-width: 640px; margin: 0; }
#pos-cashier-page .pc-search > svg.i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; width: 20px; height: 20px; }
#pos-cashier-page .pc-search .pc-input { min-height: 52px; padding-left: 44px; padding-right: 48px; border-radius: 12px; box-shadow: var(--shadow-card); }
#pos-cashier-page .pc-search .pc-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
#pos-cashier-page .pc-search-x { position: absolute; right: 4px; top: 4px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); border-radius: 10px; cursor: pointer; }
#pos-cashier-page .pc-search-x:hover { color: var(--ink); background: var(--neu-bg); }
#pos-cashier-page .pc-cat-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
#pos-cashier-page .pc-cat-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 28px; }
#pos-cashier-page .pc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; align-items: start; }
#pos-cashier-page .pc-more-wrap { display: flex; justify-content: center; padding-top: 16px; }

#pos-cashier-page .pc-card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-card);
}
#pos-cashier-page .pc-card-hd { display: grid; gap: 4px; min-width: 0; }
#pos-cashier-page .pc-card-name { font-size: 15px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#pos-cashier-page .pc-card-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
#pos-cashier-page .pc-card-price .pc-from { font-size: 12px; color: var(--muted); }
#pos-cashier-page .pc-card-price .pc-money { font-size: 15px; font-weight: 700; color: var(--navy); }
#pos-cashier-page .pc-sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; min-width: 0; }
#pos-cashier-page .pc-size { min-width: 0; }
#pos-cashier-page .pc-size {
  position: relative; display: grid; align-content: center; justify-items: center; gap: 1px; min-height: 52px; padding: 6px 4px;
  border-radius: 10px; border: 1px solid transparent; background: var(--navy-tint); color: var(--navy); cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}
#pos-cashier-page .pc-size:hover { border-color: var(--navy); }
#pos-cashier-page .pc-size:active { transform: scale(0.97); }
#pos-cashier-page .pc-size-name { font-size: 15px; font-weight: 600; line-height: 1.15; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pos-cashier-page .pc-size-stock { font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; }
#pos-cashier-page .pc-size-price { font-size: 11px; font-weight: 600; color: var(--navy); white-space: nowrap; }
#pos-cashier-page .pc-size.is-zero { background: var(--amber-bg); color: var(--amber); }
#pos-cashier-page .pc-size.is-zero .pc-size-stock { color: var(--amber); font-weight: 700; }
#pos-cashier-page .pc-size.is-out { background: var(--card); color: var(--muted); border: 1px dashed var(--line); }
#pos-cashier-page .pc-size.is-noprice { background: var(--card); color: var(--faint); border: 1px dashed var(--line); cursor: not-allowed; }
#pos-cashier-page .pc-size.is-noprice .pc-size-stock { color: var(--faint); }
#pos-cashier-page .pc-noprice { font-size: 12px; font-weight: 700; color: var(--amber); background: var(--amber-bg); padding: 2px 8px; border-radius: 6px; }
#pos-cashier-page .pc-size.is-out .pc-size-stock { color: var(--neg); font-weight: 700; }
#pos-cashier-page .pc-size.is-in { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
#pos-cashier-page .pc-size-badge {
  position: absolute; top: -7px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center;
  border-radius: 999px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px var(--card);
}
#pos-cashier-page .pc-custom-btn { justify-content: space-between; padding-inline: 12px; border-style: dashed; border-color: var(--navy); color: var(--navy); background: var(--card); }
#pos-cashier-page .pc-custom-btn:hover { background: var(--navy-tint); border-color: var(--navy); }
#pos-cashier-page .pc-custom-btn .pc-custom-prem { font-size: 12px; font-weight: 600; color: var(--muted); }
#pos-cashier-page .pc-custom-btn > span:first-child { display: inline-flex; align-items: center; gap: 8px; }

/* skeleton */
#pos-cashier-page .pc-skel { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--grid) 25%, var(--canvas) 50%, var(--grid) 75%); background-size: 400% 100%; animation: pc-shimmer 1.4s ease infinite; }
#pos-cashier-page .pc-skel.is-line { height: 14px; }
#pos-cashier-page .pc-skel.is-chip { height: 52px; }
@keyframes pc-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* empty / error / loading state block */
#pos-cashier-page .pc-state { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; text-align: center; color: var(--muted); }
#pos-cashier-page .pc-state svg.i { width: 32px; height: 32px; color: var(--faint); }
#pos-cashier-page .pc-state-title { font-size: 15px; font-weight: 600; color: var(--ink); }
#pos-cashier-page .pc-state-text { font-size: 13px; max-width: 46ch; }
#pos-cashier-page .pc-state.is-err svg.i { color: var(--neg); }
#pos-cashier-page .pc-state.is-compact { padding: 28px 12px; }

/* ---------- cart ---------- */
#pos-cashier-page .pc-cart { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--card); border-left: 1px solid var(--line); }
#pos-cashier-page .pc-cart-hd { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--grid); }
#pos-cashier-page .pc-cart-title { flex: 1; font-size: 17px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
#pos-cashier-page .pc-cart-count { font-size: 12px; font-weight: 600; color: var(--muted); }
#pos-cashier-page .pc-cart-close { display: none; }
#pos-cashier-page .pc-cart-lines { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 8px 20px; }
#pos-cashier-page .pc-line { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--grid); }
#pos-cashier-page .pc-line:last-child { border-bottom: 0; }
#pos-cashier-page .pc-line-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: start; }
#pos-cashier-page .pc-line-name { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
#pos-cashier-page .pc-line-total { font-size: 14px; font-weight: 700; text-align: right; }
#pos-cashier-page .pc-line-meta { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
#pos-cashier-page .pc-line-size { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 6px; background: var(--navy-tint); color: var(--navy); font-size: 12px; font-weight: 700; }
#pos-cashier-page .pc-line-size.is-custom { background: var(--navy); color: #fff; }
#pos-cashier-page .pc-line-ukuran { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink); background: var(--neu-bg); border-radius: 10px; padding: 6px 6px 6px 10px; }
#pos-cashier-page .pc-line-ukuran > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
#pos-cashier-page .pc-line-ukuran .pc-btn { flex: none; }
#pos-cashier-page .pc-line-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
#pos-cashier-page .pc-line-ctl .pc-gap { flex: 1; }
#pos-cashier-page .pc-step { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
#pos-cashier-page .pc-step button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
#pos-cashier-page .pc-step button:hover { background: var(--navy-tint); }
#pos-cashier-page .pc-step button[disabled] { color: var(--faint); cursor: not-allowed; background: transparent; }
#pos-cashier-page .pc-step input { width: 46px; height: 44px; border: 0; border-left: 1px solid var(--grid); border-right: 1px solid var(--grid); text-align: center; font: inherit; font-size: 16px; font-weight: 700; color: var(--ink); background: transparent; -moz-appearance: textfield; appearance: textfield; }
#pos-cashier-page .pc-step input:focus { outline: none; background: var(--navy-tint); }
#pos-cashier-page .pc-step input::-webkit-outer-spin-button, #pos-cashier-page .pc-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#pos-cashier-page .pc-line .pc-input { min-height: 44px; font-size: 16px; }
/* Permak + Catatan + delete share one row with the qty stepper: compact text-only actions (fit a 360px cart and a phone) */
#pos-cashier-page .pc-line-ctl { gap: 4px; }
#pos-cashier-page .pc-line-ctl .pc-btn.is-sm { padding-inline: 8px; }
#pos-cashier-page .pc-line-ctl .pc-btn.is-ghost { color: var(--navy); }
/* PO (pre-order) toggle: a stocked size made by production. Pressed = navy, like the active filter chips */
#pos-cashier-page .pc-line-ctl .pc-po-btn { min-width: 34px; }
#pos-cashier-page .pc-line-ctl .pc-po-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
#pos-cashier-page .pc-line-ctl .pc-po-btn[aria-pressed="true"]:hover { background: var(--navy); color: #fff; }
#pos-cashier-page .pc-line-po { color: var(--navy); font-weight: 600; }
/* With the PO button the row holds stepper + PO + Permak + Catatan + delete: tighten it so it stays one row in a
   narrow cart (desktop 400px cart, phones down to 360px). Without :has() support the row simply wraps. */
#pos-cashier-page .pc-cart-lines { container-type: inline-size; }
@container (max-width: 380px) {
  #pos-cashier-page .pc-line-ctl:has(.pc-po-btn) { gap: 3px; }
  #pos-cashier-page .pc-line-ctl:has(.pc-po-btn) .pc-step button { width: 40px; }
  #pos-cashier-page .pc-line-ctl:has(.pc-po-btn) .pc-step input { width: 40px; }
  #pos-cashier-page .pc-line-ctl:has(.pc-po-btn) .pc-btn.is-sm { padding-inline: 5px; }
  #pos-cashier-page .pc-line-ctl:has(.pc-po-btn) > .pc-iconbtn { width: 40px; }
}
/* permak: "Permak" chip + the alteration text (wraps); a click on the text edits it in place */
#pos-cashier-page .pc-line-permak { display: flex; align-items: center; gap: 8px; min-width: 0; padding-left: 8px; border-radius: 10px; background: var(--neu-bg); }
#pos-cashier-page .pc-line-permak .pc-line-size { flex: none; gap: 4px; }
#pos-cashier-page .pc-line-permak .pc-line-size svg.i { width: 13px; height: 13px; }
#pos-cashier-page .pc-line-permak .pc-input { flex: 1; }
#pos-cashier-page .pc-line-permak-txt { flex: 1; min-width: 0; min-height: 44px; padding: 8px 2px; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ink); text-align: left; overflow-wrap: anywhere; cursor: text; border-radius: 8px; }
#pos-cashier-page .pc-line-permak-txt:hover { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
#pos-cashier-page .pc-line-permak-txt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
#pos-cashier-page .pc-line-permak .pc-iconbtn { border-color: transparent; background: transparent; }
#pos-cashier-page .pc-line-permak .pc-iconbtn:hover { background: var(--card); }
#pos-cashier-page .pc-line-warn { font-size: 12px; font-weight: 600; color: var(--amber); }
#pos-cashier-page .pc-line-warn.is-err { color: var(--neg); }
#pos-cashier-page .pc-line.is-bad { background: var(--neg-bg); margin: 0 -10px; padding-inline: 10px; border-radius: 10px; }

#pos-cashier-page .pc-cart-ft { display: grid; gap: 10px; padding: 12px 16px 16px 20px; border-top: 1px solid var(--line); background: var(--card); }
#pos-cashier-page .pc-disc { display: grid; gap: 6px; }
#pos-cashier-page .pc-disc-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
#pos-cashier-page .pc-disc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#pos-cashier-page .pc-disc-row .pc-money-in { flex: 1 1 130px; }
#pos-cashier-page .pc-money-in { position: relative; min-width: 0; }
#pos-cashier-page .pc-money-in > span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 600; color: var(--muted); pointer-events: none; }
#pos-cashier-page .pc-money-in .pc-input { padding-left: 40px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
#pos-cashier-page .pc-money-in .pc-input.is-set { border-color: var(--navy); background: var(--navy-tint); color: var(--navy); }
#pos-cashier-page #pc-disc { min-height: 44px; }
#pos-cashier-page .pc-disc-chips { display: flex; gap: 6px; flex: none; }
#pos-cashier-page .pc-disc-chips .pc-chip { padding: 8px 10px; min-width: 50px; }
#pos-cashier-page .pc-sum { display: grid; gap: 4px; margin: 2px 0 0; }
#pos-cashier-page .pc-sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
#pos-cashier-page .pc-sum dd { margin: 0; color: var(--ink); font-weight: 600; }
#pos-cashier-page .pc-sum .is-total { padding-top: 6px; margin-top: 2px; border-top: 1px dashed var(--line); color: var(--ink); font-weight: 600; }
#pos-cashier-page .pc-sum .is-total dt { font-size: 14px; }
#pos-cashier-page .pc-sum .is-total dd { font-size: clamp(20px, 2.1vw, 26px); font-weight: 700; color: var(--navy); letter-spacing: -0.02em; }
#pos-cashier-page .pc-cart-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 12px; text-align: center; color: var(--muted); }
#pos-cashier-page .pc-cart-empty svg.i { width: 36px; height: 36px; color: var(--faint); }
#pos-cashier-page .pc-cart-empty b { font-size: 15px; font-weight: 600; color: var(--ink); }

/* phone bottom bar (hidden on wider screens) */
#pos-cashier-page .pc-bar { display: none; }

/* ---------- sheets ---------- */
#pos-cashier-page .pc-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; }
#pos-cashier-page .pc-layer.is-top { z-index: 70; }
#pos-cashier-page .pc-scrim.pc-cart-scrim { position: fixed; z-index: 35; }
#pos-cashier-page .pc-scrim { position: absolute; inset: 0; background: var(--scrim); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: pc-fade 0.18s ease; }
#pos-cashier-page .pc-sheet {
  position: relative; display: flex; flex-direction: column; width: min(600px, 100%); max-height: min(860px, calc(100dvh - 48px));
  background: var(--card); border-radius: 18px; box-shadow: var(--shadow-sheet); min-width: 0; overflow: hidden;
  animation: pc-pop 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
#pos-cashier-page .pc-sheet.is-narrow { width: min(440px, 100%); }
#pos-cashier-page .pc-sheet.is-wide { width: min(880px, 100%); }
#pos-cashier-page .pc-layer.is-side { place-items: stretch end; padding: 0; }
#pos-cashier-page .pc-sheet.is-side { width: min(820px, 100vw); height: 100%; max-height: none; border-radius: 0; animation: pc-slide 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
#pos-cashier-page .pc-sheet-hd { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px 24px; border-bottom: 1px solid var(--grid); }
#pos-cashier-page .pc-sheet-id { flex: 1; min-width: 0; display: grid; gap: 2px; }
#pos-cashier-page .pc-sheet-title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; overflow-wrap: anywhere; }
#pos-cashier-page .pc-sheet-title.pc-mono { font-size: 19px; }
#pos-cashier-page .pc-sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 18px 24px 20px; display: grid; gap: 18px; align-content: start; }
#pos-cashier-page .pc-sheet-body > * { min-width: 0; }
#pos-cashier-page .pc-sheet-ft { display: flex; gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--grid); background: var(--card); }
#pos-cashier-page .pc-sheet-ft:empty { display: none; }
#pos-cashier-page .pc-sheet-ft .pc-grow { flex: 1; }
@keyframes pc-fade { from { opacity: 0; } }
@keyframes pc-pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes pc-slide { from { transform: translateX(32px); opacity: 0.6; } }

#pos-cashier-page .pc-sec { display: grid; gap: 10px; }
#pos-cashier-page .pc-sec-title { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
#pos-cashier-page .pc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#pos-cashier-page .pc-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

/* pay sheet */
#pos-cashier-page .pc-due { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--navy-tint); }
#pos-cashier-page .pc-due-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--navy); }
#pos-cashier-page .pc-due-amt { font-size: clamp(24px, 4vw, 30px); font-weight: 700; letter-spacing: -0.02em; color: var(--navy); line-height: 1.15; }
#pos-cashier-page .pc-due-meta { font-size: 12px; color: var(--navy); text-align: right; }
#pos-cashier-page .pc-opt { position: relative; display: block; cursor: pointer; }
#pos-cashier-page .pc-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
#pos-cashier-page .pc-opt-face {
  display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 60px; padding: 8px; text-align: center;
  border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 15px; font-weight: 700;
  transition: border-color 0.12s ease, background 0.12s ease;
}
#pos-cashier-page .pc-opt-main { display: inline-flex; align-items: center; gap: 8px; }
#pos-cashier-page .pc-opt-face svg.i { width: 20px; height: 20px; color: var(--muted); }
#pos-cashier-page .pc-opt-face small { font-size: 11px; font-weight: 500; color: var(--muted); }
#pos-cashier-page .pc-opt:hover .pc-opt-face { border-color: var(--faint); }
#pos-cashier-page .pc-opt input:checked + .pc-opt-face { border-color: var(--navy); background: var(--navy-tint); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
#pos-cashier-page .pc-opt input:checked + .pc-opt-face svg.i, #pos-cashier-page .pc-opt input:checked + .pc-opt-face small { color: var(--navy); }
#pos-cashier-page .pc-opt input:focus-visible + .pc-opt-face { outline: 2px solid var(--focus); outline-offset: 2px; }
#pos-cashier-page .pc-opt input:disabled + .pc-opt-face { opacity: 0.45; cursor: not-allowed; }
#pos-cashier-page .pc-opt.is-row .pc-opt-face { min-height: 52px; font-size: 14px; }
#pos-cashier-page .pc-check { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); cursor: pointer; font-size: 13px; font-weight: 600; }
#pos-cashier-page .pc-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--navy); flex: none; }
#pos-cashier-page .pc-check small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
#pos-cashier-page .pc-check.is-off { opacity: 0.55; cursor: not-allowed; }
#pos-cashier-page .pc-change { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--neu-bg); font-size: 13px; font-weight: 600; }
#pos-cashier-page .pc-change .pc-money { font-size: 18px; font-weight: 700; }
#pos-cashier-page .pc-change.is-ok .pc-money { color: var(--pos); }
#pos-cashier-page .pc-change.is-short .pc-money { color: var(--neg); }
#pos-cashier-page .pc-locked { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--amber-bg); color: var(--amber); font-size: 13px; font-weight: 600; }
#pos-cashier-page .pc-chips-row { display: flex; gap: 6px; flex-wrap: wrap; }
#pos-cashier-page .pc-pay-cols { display: grid; gap: 18px; }
#pos-cashier-page .pc-cash { display: grid; gap: 10px; }
/* delivery block (Dikirim / diproses) */
#pos-cashier-page .pc-ship { gap: 12px; padding-top: 16px; border-top: 1px solid var(--grid); }
#pos-cashier-page .pc-ship-hd { display: grid; gap: 4px; }
#pos-cashier-page .pc-ship-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
#pos-cashier-page .pc-ship .pc-textarea { min-height: 64px; }
#pos-cashier-page .pc-field-foot { display: flex; align-items: baseline; gap: 8px; }
#pos-cashier-page .pc-field-foot .pc-ferr { flex: 1; min-width: 0; }
#pos-cashier-page .pc-field-foot .pc-count { margin-left: auto; flex: none; }
@media (min-width: 900px) {
  #pos-cashier-page .pc-pay-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; align-items: start; }
  #pos-cashier-page .pc-ship-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.85fr) minmax(0, 1fr) minmax(0, 1fr); }
}

/* custom measurement sheet */
#pos-cashier-page .pc-prem { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--navy-tint); color: var(--navy); font-size: 13px; }
#pos-cashier-page .pc-prem b { font-size: 15px; font-weight: 700; }
#pos-cashier-page .pc-meas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#pos-cashier-page .pc-unit-in { position: relative; }
#pos-cashier-page .pc-unit-in .pc-input { padding-right: 40px; font-variant-numeric: tabular-nums; }
#pos-cashier-page .pc-unit-in > span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--muted); pointer-events: none; }
#pos-cashier-page .pc-hint { font-size: 11px; color: var(--muted); }
#pos-cashier-page .pc-count { font-size: 11px; color: var(--muted); text-align: right; }

/* success sheet */
#pos-cashier-page .pc-ok-hero { display: flex; align-items: center; gap: 14px; }
#pos-cashier-page .pc-ok-ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--pos-bg); color: var(--pos); flex: none; }
#pos-cashier-page .pc-ok-ic svg.i { width: 28px; height: 28px; stroke-width: 2.5; }
#pos-cashier-page .pc-ok-amt { color: var(--ink); font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
#pos-cashier-page .pc-ok-meta { font-size: 13px; color: var(--muted); display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: center; }
#pos-cashier-page .pc-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
#pos-cashier-page .pc-actions .pc-btn { min-width: 0; }
#pos-cashier-page .pc-print-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#pos-cashier-page .pc-print-row .pc-btn { flex: 1; min-width: 200px; }
#pos-cashier-page .pc-print-row .pc-paper { background: var(--neu-bg); }
#pos-cashier-page .pc-mini-lines { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--canvas); font-size: 13px; }
#pos-cashier-page .pc-mini-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
#pos-cashier-page .pc-mini-line .pc-sub { grid-column: 1 / -1; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
#pos-cashier-page .pc-mini-line .pc-money { font-weight: 600; }
#pos-cashier-page .pc-mini-sum { border-top: 1px dashed var(--line); padding-top: 6px; display: grid; gap: 2px; }
#pos-cashier-page .pc-mini-sum div { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
#pos-cashier-page .pc-mini-sum div.is-total { color: var(--ink); font-weight: 700; font-size: 14px; }
#pos-cashier-page .pc-shipto { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 13px; }
#pos-cashier-page .pc-shipto > svg.i { flex: none; margin-top: 2px; color: var(--navy); }
#pos-cashier-page .pc-shipto-body { display: grid; gap: 2px; min-width: 0; }
#pos-cashier-page .pc-shipto-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
#pos-cashier-page .pc-shipto-addr { font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }
#pos-cashier-page .pc-shipto-place { overflow-wrap: anywhere; }
#pos-cashier-page .pc-shipto-meta { font-size: 12px; color: var(--muted); }
#pos-cashier-page .pc-wa-status { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
#pos-cashier-page .pc-wa-status.is-ok { color: var(--pos); font-weight: 600; }

/* sales panel */
#pos-cashier-page .pc-sales-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#pos-cashier-page .pc-sales-ctl .pc-input { width: auto; min-height: 44px; font-size: 15px; }
#pos-cashier-page .pc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#pos-cashier-page .pc-tile { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); min-width: 0; }
#pos-cashier-page .pc-tile-lbl { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
#pos-cashier-page .pc-tile-val { font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; white-space: nowrap; }
#pos-cashier-page .pc-tile.is-main { background: var(--navy-tint); border-color: var(--navy-tint); }
#pos-cashier-page .pc-tile.is-main .pc-tile-val { color: var(--navy); }
#pos-cashier-page .pc-paysplit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#pos-cashier-page .pc-paysplit .pc-tile { padding: 10px 14px; }
#pos-cashier-page .pc-paysplit .pc-tile-val { font-size: 16px; }
#pos-cashier-page .pc-paysplit small { font-size: 11px; color: var(--muted); }
#pos-cashier-page .pc-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
#pos-cashier-page .pc-tbl th { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
#pos-cashier-page .pc-tbl td { padding: 10px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
#pos-cashier-page .pc-tbl .r { text-align: right; }
#pos-cashier-page .pc-tbl tbody tr { cursor: pointer; }
#pos-cashier-page .pc-tbl tbody tr:hover td { background: var(--canvas); }
#pos-cashier-page .pc-tbl tbody tr.is-cancel td { color: var(--muted); }
#pos-cashier-page .pc-tbl tbody tr.is-cancel .pc-money { text-decoration: line-through; }
#pos-cashier-page .pc-rowbtn { border: 0; background: transparent; padding: 0; font: inherit; font-family: var(--mono) !important; font-size: 13px; font-weight: 600; color: var(--navy); cursor: pointer; text-align: left; min-height: 32px; }
#pos-cashier-page .pc-rowbtn:hover { text-decoration: underline; text-underline-offset: 2px; }
#pos-cashier-page .pc-cust { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pos-cashier-page .pc-sale-cards { display: none; }
#pos-cashier-page .pc-back { justify-self: start; }
#pos-cashier-page .pc-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
#pos-cashier-page .pc-kv div { display: grid; gap: 2px; min-width: 0; }
#pos-cashier-page .pc-kv dt { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
#pos-cashier-page .pc-kv dd { margin: 0; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
#pos-cashier-page .pc-detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
#pos-cashier-page .pc-detail-actions .pc-btn { flex: 1 1 140px; }

/* toast */
#pos-cashier-page .pc-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 12px;
  max-width: min(560px, calc(100vw - 32px)); padding: 12px 14px 12px 16px; border-radius: 12px;
  background: var(--tip-bg); color: var(--tip-ink); box-shadow: var(--shadow-sheet); font-size: 13px; font-weight: 600; animation: pc-pop 0.18s ease;
}
#pos-cashier-page .pc-toast.is-err { background: var(--neg); }
#pos-cashier-page .pc-toast .pc-btn { min-height: 36px; padding: 6px 12px; font-size: 12px; background: transparent; color: var(--tip-ink); border-color: rgba(248, 250, 252, 0.4); }

#pos-cashier-page .pc-print-frame { position: fixed; right: 0; bottom: 0; width: 1px; height: 1px; border: 0; opacity: 0; pointer-events: none; }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  #pos-cashier-page { --cart-w: 360px; }
  #pos-cashier-page .pc-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
  #pos-cashier-page .pc-sum .is-total dd { font-size: 22px; }
}
@media (max-width: 1099px) {
  #pos-cashier-page .pc-top { gap: 12px; }
  #pos-cashier-page .pc-top .pc-wordmark { display: none; }
  #pos-cashier-page .pc-store { padding-left: 0; border-left: 0; }
  #pos-cashier-page .pc-paper-lbl { display: none; }
  #pos-cashier-page .pc-search-row { flex-wrap: wrap; gap: 6px 16px; }
}
@media (max-width: 899px) and (min-width: 760px) {
  #pos-cashier-page { --cart-w: 330px; }
  #pos-cashier-page .pc-today-lbl { display: none; }
  #pos-cashier-page .pc-meas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* phone: catalog full width, cart = bottom bar + sheet */
@media (max-width: 759px) {
  #pos-cashier-page .pc-hide-sm { display: none !important; }
  #pos-cashier-page .pc-top { padding: 8px 12px; gap: 8px; }
  #pos-cashier-page .pc-store-name { font-size: 16px; }
  #pos-cashier-page .pc-store-row { gap: 8px; }
  #pos-cashier-page .pc-top-ctl { gap: 6px; }
  #pos-cashier-page .pc-today { padding: 4px 10px; min-height: 44px; gap: 8px; }
  #pos-cashier-page .pc-today-lbl { display: none; }
  #pos-cashier-page .pc-today-val { font-size: 13px; }
  #pos-cashier-page .pc-today-val .pc-full { display: none; }
  #pos-cashier-page .pc-today-val .pc-short { display: inline; }
  #pos-cashier-page .pc-kind { display: none; }
  #pos-cashier-page .pc-kind-sm { display: inline; }
  #pos-cashier-page .pc-logout .pc-btn { width: 44px; padding: 0; }
  #pos-cashier-page .pc-banner { padding: 8px 12px; }
  #pos-cashier-page .pc-main { grid-template-columns: minmax(0, 1fr); }
  #pos-cashier-page .pc-search-row { padding: 12px 12px 4px; gap: 4px; }
  #pos-cashier-page .pc-search { flex: 1 1 100%; max-width: none; }
  #pos-cashier-page .pc-cat-meta { padding-left: 4px; }
  #pos-cashier-page .pc-cat-scroll { padding: 4px 12px calc(var(--bar-h) + 24px); }
  #pos-cashier-page .pc-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  #pos-cashier-page .pc-cart {
    position: fixed; left: 0; right: 0; bottom: 0; top: 40px; z-index: 40; border-left: 0; border-radius: 18px 18px 0 0;
    box-shadow: var(--shadow-sheet); transform: translateY(105%); visibility: hidden;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.24s;
  }
  #pos-cashier-page .pc-cart.is-open { transform: none; visibility: visible; transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1); }
  #pos-cashier-page .pc-cart-close { display: inline-grid; }
  #pos-cashier-page .pc-cart-hd { padding: 10px 12px 8px 16px; }
  #pos-cashier-page .pc-cart-lines { padding: 4px 12px 8px 16px; }
  #pos-cashier-page .pc-cart-ft { padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px)) 16px; }
  #pos-cashier-page .pc-sum .is-total dd { font-size: 22px; }

  #pos-cashier-page .pc-bar {
    display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    min-height: var(--bar-h); padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  }
  #pos-cashier-page .pc-bar-cart { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-align: left; cursor: pointer; color: var(--ink); }
  #pos-cashier-page .pc-bar-cart svg.i { color: var(--navy); width: 22px; height: 22px; }
  #pos-cashier-page .pc-bar-txt { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
  #pos-cashier-page .pc-bar-pcs { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #pos-cashier-page .pc-bar-total { font-size: 16px; font-weight: 700; }
  #pos-cashier-page .pc-bar-total:empty { display: none; }
  #pos-cashier-page .pc-bar .pc-btn.is-primary { min-height: 52px; padding-inline: 22px; }

  #pos-cashier-page .pc-layer { padding: 0; place-items: end stretch; }
  #pos-cashier-page .pc-sheet { width: 100%; max-height: calc(100dvh - 24px); border-radius: 18px 18px 0 0; animation: pc-rise 0.22s cubic-bezier(0.22, 1, 0.36, 1); }
  #pos-cashier-page .pc-sheet.is-narrow { width: 100%; }
  #pos-cashier-page .pc-layer.is-side { place-items: stretch; }
  #pos-cashier-page .pc-sheet.is-side { width: 100%; height: 100%; border-radius: 0; }
  #pos-cashier-page .pc-sheet-hd { padding: 14px 12px 12px 16px; }
  #pos-cashier-page .pc-sheet-body { padding: 14px 16px 18px; gap: 16px; }
  #pos-cashier-page .pc-sheet-ft { padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  #pos-cashier-page .pc-sheet-title { font-size: 18px; }
  #pos-cashier-page .pc-meas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pos-cashier-page .pc-actions { grid-template-columns: minmax(0, 1fr); }
  #pos-cashier-page .pc-print-row .pc-btn { min-width: 0; }
  #pos-cashier-page .pc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #pos-cashier-page .pc-tiles .pc-tile.is-main { grid-column: 1 / -1; }
  #pos-cashier-page .pc-paysplit { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  #pos-cashier-page .pc-paysplit .pc-tile { grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; }
  #pos-cashier-page .pc-tbl { display: none; }
  #pos-cashier-page .pc-sale-cards { display: grid; gap: 8px; }
  #pos-cashier-page .pc-sale-card { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-align: left; cursor: pointer; width: 100%; font: inherit; color: var(--ink); }
  #pos-cashier-page .pc-sale-card.is-cancel { background: var(--canvas); color: var(--muted); }
  #pos-cashier-page .pc-sale-card-top, #pos-cashier-page .pc-sale-card-bot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
  #pos-cashier-page .pc-sale-card .pc-mono { font-size: 13px; font-weight: 600; color: var(--navy); }
  #pos-cashier-page .pc-sale-card .pc-money { font-size: 15px; font-weight: 700; }
  #pos-cashier-page .pc-sale-card .pc-cust { max-width: 60%; font-size: 13px; color: var(--muted); }
  #pos-cashier-page .pc-sale-card-bot > span:last-child { display: inline-flex; gap: 4px; flex: none; }
  #pos-cashier-page .pc-kv { grid-template-columns: minmax(0, 1fr); }
  #pos-cashier-page .pc-toast { top: 60px; bottom: auto; }
}
@media (max-width: 400px) {
  #pos-cashier-page .pc-three { gap: 6px; }
  #pos-cashier-page .pc-opt-face { font-size: 14px; }
}
@keyframes pc-rise { from { transform: translateY(24px); opacity: 0.6; } }

@media (prefers-reduced-motion: reduce) {
  #pos-cashier-page *, #pos-cashier-page *::before, #pos-cashier-page *::after { animation: none !important; transition: none !important; }
}
