/* css/pos.css — POS cash register page styles (extracted from pos.html monolith) */

:root {
  --red: #ff1c0f;
  --green: #30d158;
  --blue: #0a84ff;
  --orange: #ff9f0a;
  --bg: #1a1a1a;
  --bg-2: #242424;
  --bg-3: #2e2e2e;
  --fg: #f5f5f7;
  --fg-muted: #8e8e93;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, system-ui, sans-serif;
  font-size: 15px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  user-select: none;
}
button { font-family: inherit; }

/* Header */
.pos-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pos-header__logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
}
.pos-header__shift {
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg-3);
  font-size: 13px;
  font-weight: 500;
}
.pos-header__shift.open { background: rgba(48, 209, 88, 0.15); color: var(--green); }
.pos-header__shift.closed { background: rgba(255, 28, 15, 0.15); color: var(--red); }
.pos-header__spacer { flex: 1; }
.pos-header__user { font-size: 14px; color: var(--fg-muted); }
.pos-header__btn {
  background: var(--bg-3);
  color: var(--fg);
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
}
.pos-header__btn:hover { background: #3a3a3a; }
.pos-header__btn.danger { color: #ff6961; }

/* Tabs strip */
.pos-tabs {
  display: flex;
  gap: 6px;
  padding: 0 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pos-tab {
  padding: 12px 18px;
  background: transparent;
  color: var(--fg-muted);
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
}
.pos-tab:hover { color: var(--fg); }
.pos-tab.active { color: var(--red); border-bottom-color: var(--red); }

.pos-section { display: none; flex: 1; min-height: 0; flex-direction: column; }
.pos-section.active { display: flex; }

/* Customer-type segmented selector (pay modal) */
.pos-ct-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0 10px;
}
.pos-ct-btn {
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pos-ct-btn.active { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Per-line price edit */
.cart-item__edit {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 13px;
  margin-left: 4px;
}
.cart-item__edit:hover { color: var(--blue); }
.cart-item__price.discounted .cart-item__price-old {
  text-decoration: line-through;
  color: #ff6961;
  margin-right: 6px;
}

/* History list */
.history-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.history-toolbar input[type="date"] {
  padding: 8px 12px;
  background: var(--bg-3);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.history-toolbar .summary { margin-left: auto; font-size: 14px; color: var(--fg-muted); }
.history-toolbar .summary b { color: var(--fg); }
.history-list { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.history-row {
  display: grid;
  grid-template-columns: 110px 1fr 110px 90px 110px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  margin-bottom: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}
.history-row:hover { background: var(--bg-3); border-color: var(--blue); }
.history-row__num { font-weight: 700; color: var(--fg); }
.history-row__client { color: var(--fg-muted); font-size: 13px; }
.history-row__total { text-align: right; font-weight: 700; }
.history-row__pm { font-size: 12px; color: var(--fg-muted); }
.history-row__time { font-size: 12px; color: var(--fg-muted); text-align: right; }
.pm-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; }
.pm-badge.cash { background: rgba(48, 209, 88, 0.15); color: var(--green); }
.pm-badge.kaspi { background: rgba(255, 140, 0, 0.15); color: #ff8c00; }
.pm-badge.card { background: rgba(64, 156, 255, 0.15); color: var(--blue); }
.pm-badge.transfer { background: rgba(160, 160, 160, 0.15); color: #aaa; }
.pm-badge.debt { background: rgba(255, 28, 15, 0.15); color: var(--red); }

/* Return picker */
.return-toolbar {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.return-toolbar input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  background: var(--bg-2);
  color: var(--fg);
  border: 2px solid var(--border);
  border-radius: 10px;
  outline: none;
}
.return-toolbar input:focus { border-color: var(--red); }
.return-content { flex: 1; overflow-y: auto; padding: 16px 20px; }
.return-item-row {
  display: grid;
  grid-template-columns: 1fr 110px 100px 80px;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.return-item-row input[type="number"] {
  width: 100%;
  padding: 8px 10px;
  background: var(--bg-3);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
}
.return-finalize {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}
.return-finalize select,
.return-finalize input {
  padding: 10px 12px;
  background: var(--bg-3);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
.return-confirm-btn {
  margin-left: auto;
  padding: 12px 24px;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.return-confirm-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Main layout */
.pos-main {
  display: grid;
  grid-template-columns: 1fr 420px;
  flex: 1;
  min-height: 0;
}

/* Left: search + results */
.pos-left {
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 0;
}
.pos-search {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.pos-search__input {
  flex: 1;
  padding: 18px 22px;
  font-size: 22px;
  background: var(--bg-2);
  color: var(--fg);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  font-weight: 500;
}
.pos-search__input:focus { border-color: var(--red); }
.pos-search__clear {
  padding: 0 24px;
  background: var(--bg-3);
  color: var(--fg);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
}

.pos-results {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  align-content: start;
  padding-bottom: 20px;
}
.pos-results::-webkit-scrollbar { width: 8px; }
.pos-results::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 4px; }

.pos-product {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 110px;
}
.pos-product:hover { background: var(--bg-3); border-color: var(--red); }
.pos-product:active { transform: scale(0.98); }
.pos-product__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pos-product__meta { font-size: 11px; color: var(--fg-muted); }
.pos-product__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.pos-product__price { font-size: 18px; font-weight: 700; color: var(--red); }
.pos-product__stock { font-size: 11px; color: var(--fg-muted); }
.pos-product__stock.low { color: var(--orange); }
.pos-product__stock.zero { color: #ff6961; }
.pos-product.disabled { opacity: 0.4; pointer-events: none; }

.pos-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--fg-muted);
  font-size: 16px;
}

/* Right: cart */
.pos-cart {
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pos-cart__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.pos-cart__title { font-size: 16px; font-weight: 600; }
.pos-cart__clear {
  background: transparent;
  color: var(--fg-muted);
  border: none;
  font-size: 13px;
  cursor: pointer;
}
.pos-cart__clear:hover { color: #ff6961; }

.pos-cart__items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0;
}
.pos-cart__items::-webkit-scrollbar { width: 6px; }
.pos-cart__items::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 3px; }

.pos-cart__empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--fg-muted);
}

.cart-item {
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.cart-item__top { display: flex; align-items: flex-start; gap: 10px; }
.cart-item__name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.cart-item__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.cart-item__qty { display: flex; align-items: center; gap: 10px; }
.cart-item__btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  background: var(--bg-3);
  color: var(--fg);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.cart-item__btn:hover { background: #3a3a3a; }
.cart-item__qty-val {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
}
.cart-item__totals { text-align: right; }
.cart-item__total { font-size: 15px; font-weight: 700; color: var(--fg); }
.cart-item__price { font-size: 11px; color: var(--fg-muted); }
.cart-item__remove {
  background: transparent;
  border: none;
  color: #ff6961;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  flex-shrink: 0;
}

/* Footer (totals + pay) */
.pos-cart__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.pos-totals-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 14px;
}
.pos-totals-row.total {
  font-size: 22px;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 14px;
}
.pos-totals-row.total span:last-child { color: var(--red); }
.pos-pay-btn {
  width: 100%;
  padding: 18px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s;
}
.pos-pay-btn:hover:not(:disabled) { background: #ff0f00; }
.pos-pay-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Modal */
.pos-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  backdrop-filter: blur(8px);
  padding: 12px;
}
.pos-modal-bg.show { display: flex; }
.pos-modal {
  background: var(--bg-2);
  border-radius: 16px;
  padding: 28px;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  border: 1px solid var(--border);
}
.pos-modal__title { font-size: 22px; font-weight: 700; margin: 0 0 20px 0; }
.pos-modal__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}
.pos-modal__total {
  font-size: 32px;
  font-weight: 800;
  color: var(--red);
  text-align: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 12px 0 18px 0;
}
.pos-pm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 18px;
}
.pos-pm-btn {
  padding: 16px;
  background: var(--bg-3);
  border: 2px solid transparent;
  color: var(--fg);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
}
.pos-pm-btn:hover { background: #3a3a3a; }
.pos-pm-btn.active { border-color: var(--red); background: rgba(255, 28, 15, 0.12); }
.pos-cash-box { margin-bottom: 16px; }
.pos-cash-box label {
  font-size: 13px;
  color: var(--fg-muted);
  display: block;
  margin-bottom: 6px;
}
.pos-cash-box input {
  width: 100%;
  padding: 14px 16px;
  font-size: 18px;
  background: var(--bg-3);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  text-align: right;
  font-weight: 600;
}
.pos-cash-box input:focus { border-color: var(--red); }
.pos-change {
  text-align: center;
  padding: 10px;
  background: rgba(48, 209, 88, 0.1);
  border-radius: 10px;
  color: var(--green);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.pos-change.hidden { display: none; }
.pos-modal__actions { display: flex; gap: 10px; }
.pos-modal__btn {
  flex: 1;
  padding: 16px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.pos-modal__btn.cancel { background: var(--bg-3); color: var(--fg); }
.pos-modal__btn.confirm { background: var(--green); color: #fff; }
.pos-modal__btn.confirm:disabled { opacity: 0.4; cursor: not-allowed; }

/* Toast */
.pos-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  z-index: 200;
  max-width: 90vw;
  display: none;
}
.pos-toast.show { display: block; }
.pos-toast.error { background: rgba(255, 28, 15, 0.15); border-color: var(--red); color: #ff8a80; }
.pos-toast.success { background: rgba(48, 209, 88, 0.15); border-color: var(--green); color: var(--green); }

/* Shift modal */
.pos-shift-modal .pos-modal { text-align: center; }

@media (max-width: 900px) {
  .pos-main { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .pos-cart {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 45vh;
  }
}

/* Phone layout: sticky bottom cart bar, full cart in overlay */
@media (max-width: 640px) {
  /* Let the page scroll naturally instead of nested overflow */
  html { height: auto; overflow: visible; }
  body {
    font-size: 14px;
    display: block;
    height: auto;
    min-height: 100vh;
    overflow: visible;
    padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  }

  .pos-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .pos-header__logo { font-size: 15px; letter-spacing: 0.5px; }
  .pos-header__user { display: none; }
  .pos-header__spacer { display: none; }
  .pos-header__btn { padding: 6px 10px; font-size: 12px; }
  .pos-header__shift {
    font-size: 11px;
    padding: 4px 10px;
    order: 10;
    flex-basis: 100%;
    text-align: center;
  }

  .pos-main { display: block; overflow: visible; flex: none; min-height: 0; }
  .pos-left { display: block; padding: 12px; min-height: 0; }
  .pos-search { gap: 6px; margin-bottom: 12px; }
  .pos-search__input {
    padding: 14px 16px;
    font-size: 16px; /* prevent iOS zoom on focus */
    border-radius: 10px;
  }
  .pos-search__clear { padding: 0 14px; font-size: 13px; border-radius: 10px; }
  .pos-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-bottom: 8px;
    overflow: visible;
    flex: none;
  }
  .pos-product { min-height: 92px; padding: 10px; border-radius: 10px; }
  .pos-product__name { font-size: 12px; }
  .pos-product__meta { font-size: 10px; }
  .pos-product__price { font-size: 14px; }
  .pos-product__stock { font-size: 10px; }
  .pos-empty { padding: 40px 14px; font-size: 14px; }

  /* Sticky bottom cart: collapsed = header+footer, expanded = full sheet */
  .pos-cart {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: auto;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-left: none;
    z-index: 80;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    max-height: calc(85vh + env(safe-area-inset-bottom, 0px));
  }
  /* When collapsed: hide items, show header + footer only */
  .pos-cart:not(.expanded) .pos-cart__items { display: none; }
  .pos-cart.expanded .pos-cart__items {
    display: block;
    flex: 1;
    min-height: 0;
    max-height: calc(85vh - 220px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pos-cart__header {
    padding: 18px 18px 12px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    min-height: 54px;
  }
  .pos-cart__header::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 6px;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--bg-3);
  }
  .pos-cart__title { font-size: 15px; }
  .pos-cart__clear { font-size: 12px; }
  .pos-cart__footer { padding: 12px 18px 14px; flex-shrink: 0; }
  .pos-totals-row { font-size: 13px; }
  .pos-totals-row.total { font-size: 18px; margin-top: 6px; margin-bottom: 10px; }
  .pos-pay-btn { padding: 14px; font-size: 15px; }

  .cart-item { padding: 8px 18px; }
  .cart-item__name { font-size: 13px; }

  /* Backdrop (only when expanded) */
  .pos-cart-backdrop { display: none; }

  .pos-modal { padding: 20px; border-radius: 14px; }
  .pos-modal__title { font-size: 17px; margin-bottom: 14px; }
  .pos-modal__row { font-size: 13px; padding: 5px 0; }
  .pos-modal__total { font-size: 24px; padding: 10px 0; margin: 8px 0 14px; }
  .pos-pm-btn { padding: 12px; font-size: 13px; }
  .pos-cash-box input { padding: 12px 14px; font-size: 16px; }
  .pos-modal__btn { padding: 13px; font-size: 14px; }
}

@media print {
  body * { visibility: hidden !important; }
  #receiptModal, #receiptModal * { visibility: visible !important; }
  #receiptModal {
    position: absolute;
    top: 0;
    left: 0;
    width: 80mm;
    background: #fff !important;
  }
  #receiptModal .pos-modal {
    max-width: 80mm !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  #receiptModal .pos-modal > div:last-child { display: none !important; }
}

/* Inline-style replacements (pulled out of pos.html element styles) */
.pos-client-box { margin-bottom: 14px; }
.pos-client-row { display: flex; gap: 8px; align-items: center; }
.pos-client-input {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  outline: none;
}
.pos-client-search-btn {
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.pos-client-result {
  display: none;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(48, 209, 88, 0.08);
  border: 1px solid rgba(48, 209, 88, 0.25);
  border-radius: 8px;
  font-size: 13px;
  color: #86efac;
}
.pos-client-result__name { font-weight: 600; }
.pos-client-result__meta { font-size: 11px; margin-top: 2px; color: #aaa; }
.pos-client-new { display: none; margin-top: 8px; }
.pos-client-new__hint { font-size: 12px; color: #aaa; margin-bottom: 6px; }
.pos-client-new__row { display: flex; gap: 8px; }
.pos-client-name-input {
  flex: 1;
  padding: 8px 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  outline: none;
}
.pos-client-type-input {
  padding: 8px 10px;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #fff;
  outline: none;
}
.pos-client-save-btn {
  margin-top: 8px;
  padding: 8px 14px;
  background: var(--green);
  color: #111;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pos-discount-line { color: #86efac; }
.pos-pm-btn.debt-default { background: rgba(255, 28, 15, 0.12); color: #ff6961; }

.pos-modal--narrow { max-width: 340px; }
.pos-price-edit__name { font-size: 14px; color: var(--fg-muted); margin-bottom: 8px; }
.pos-price-edit__input {
  width: 100%;
  padding: 14px 16px;
  font-size: 18px;
  background: var(--bg-3);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  margin-top: 6px;
}
.pos-price-edit__hint {
  font-size: 13px;
  color: var(--fg-muted);
  display: block;
  margin-top: 10px;
}
.pos-price-edit__warn { display: none; color: #ff6961; font-size: 12px; margin-top: 8px; }

.pos-receipt-modal {
  max-width: 380px;
  padding: 0;
  background: #fff;
  color: #111;
  border-radius: 10px;
  overflow: hidden;
}
.pos-receipt-modal--print { max-width: 340px; }
.pos-receipt-body {
  padding: 20px 16px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.5;
}
.pos-receipt-actions { display: flex; border-top: 1px solid #eee; }
.pos-receipt-btn {
  flex: 1;
  padding: 14px;
  border: 0;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.pos-receipt-btn--primary { color: #111; font-weight: 600; border-right: 1px solid #eee; }
.pos-receipt-btn--secondary { color: #888; }

.pos-shift-zreport {
  max-height: 340px;
  overflow-y: auto;
  margin-bottom: 14px;
  display: none;
}

.pos-history-date-label { font-size: 13px; color: var(--fg-muted); }
.pos-return-reason-input { flex: 1; }
