/* ERP Comercial Chile V10.19.0 — Punto de venta profesional */
.pos19-root {
  --pos19-ink: #0f172a;
  --pos19-muted: #64748b;
  --pos19-line: #dbe4f0;
  --pos19-indigo: #4f46e5;
  --pos19-emerald: #059669;
}
.pos19-shell {
  position: relative;
  border-radius: 28px;
  padding: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(79,70,229,.08), transparent 34%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.pos19-cashbar {
  border: 1px solid rgba(148,163,184,.18) !important;
  background: linear-gradient(115deg, #0f172a 0%, #172554 58%, #312e81 100%) !important;
  box-shadow: 0 18px 50px rgba(15,23,42,.18) !important;
}
.pos19-cashbar > div:first-child { padding: 14px 18px !important; }
.pos19-cashbar h2 { color: #fff !important; }
.pos19-cashbar p { color: rgba(226,232,240,.78) !important; }
.pos19-cashbar > div:first-child > div:first-child > div:first-child {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 8px 22px rgba(15,23,42,.25);
}
.pos19-cashbar > div:nth-child(2) {
  border-color: rgba(255,255,255,.1) !important;
  background: rgba(15,23,42,.28) !important;
  padding: 10px 16px 12px !important;
}
.pos19-cashbar > div:nth-child(2) > div:first-child > div {
  border-color: rgba(255,255,255,.1) !important;
  background: rgba(255,255,255,.09) !important;
  box-shadow: none !important;
}
.pos19-cashbar > div:nth-child(2) p:first-child { color: rgba(191,219,254,.72) !important; }
.pos19-cashbar > div:nth-child(2) p:last-child { color: #fff !important; }
.pos19-cashbar details summary { color: rgba(226,232,240,.75) !important; }
.pos19-workspace { gap: 18px !important; }
.pos19-main {
  display: flex;
  flex-direction: column;
  gap: 16px !important;
}
.pos19-search-card { order: 1; }
.pos19-cart-card { order: 2; min-height: 250px; }
.pos19-client-card { order: 3; }
.pos19-card,
.pos19-checkout-card {
  border-color: var(--pos19-line) !important;
  border-radius: 24px !important;
  box-shadow: 0 8px 26px rgba(15,23,42,.055), 0 1px 2px rgba(15,23,42,.04) !important;
}
.pos19-card { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.pos19-card:focus-within {
  border-color: rgba(79,70,229,.42) !important;
  box-shadow: 0 13px 34px rgba(79,70,229,.1), 0 0 0 3px rgba(99,102,241,.08) !important;
}
.pos19-card > div:first-child,
.pos19-checkout-header {
  min-height: 64px;
  padding: 13px 18px !important;
  background: linear-gradient(180deg,#fff 0%,#f8fafc 100%);
}
.pos19-card h2,
.pos19-checkout-header h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px !important;
  letter-spacing: -.02em;
}
.pos19-card h2::before,
.pos19-checkout-header h2::before {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(15,23,42,.15);
}
.pos19-search-card h2::before { content: "1"; background: linear-gradient(135deg,#4f46e5,#7c3aed); }
.pos19-cart-card h2::before { content: "2"; background: linear-gradient(135deg,#0284c7,#2563eb); }
.pos19-client-card h2::before { content: "3"; background: linear-gradient(135deg,#334155,#0f172a); }
.pos19-checkout-header h2::before { content: "4"; background: linear-gradient(135deg,#059669,#10b981); }
.pos19-card > div:first-child p:first-child,
.pos19-checkout-header p:first-child {
  letter-spacing: .13em !important;
  color: #64748b !important;
}
.pos19-search-card { border-top: 4px solid #6366f1 !important; }
.pos19-cart-card { border-top: 4px solid #0ea5e9 !important; }
.pos19-client-card { border-top: 4px solid #334155 !important; }
.pos19-product-search {
  height: 60px !important;
  border-width: 2px !important;
  border-color: #cbd5e1 !important;
  background: #fff !important;
  font-size: 16px !important;
  box-shadow: 0 7px 20px rgba(15,23,42,.05);
}
.pos19-product-search:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 5px rgba(99,102,241,.12), 0 10px 24px rgba(79,70,229,.08) !important;
}
.pos19-search-card > div:last-child { padding: 18px !important; }
.pos19-cart-card > div:last-child { min-height: 168px; }
.pos19-client-card > div:last-child { padding: 18px !important; }
.pos19-checkout { align-self: start; }
.pos19-checkout-card {
  border-top: 4px solid #10b981 !important;
  overflow: auto !important;
  max-height: calc(100dvh - 96px);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.pos19-checkout-header {
  position: sticky;
  top: 0;
  z-index: 35;
  border-bottom-color: #dbe4f0 !important;
}
.pos19-total-card {
  top: 66px !important;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(129,140,248,.34), transparent 32%),
    linear-gradient(135deg,#020617 0%,#172554 58%,#312e81 100%) !important;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 38px rgba(15,23,42,.25) !important;
}
.pos19-total-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -55px auto;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  pointer-events: none;
}
.pos19-checkout-empty {
  background: linear-gradient(180deg,#f8fafc,#fff) !important;
  border-color: #cbd5e1 !important;
}
.pos19-primary-action {
  min-height: 56px !important;
  border-radius: 17px !important;
  background: linear-gradient(135deg,#059669,#10b981) !important;
  font-size: 15px !important;
  letter-spacing: -.01em;
  box-shadow: 0 12px 25px rgba(5,150,105,.24) !important;
}
.pos19-primary-action:hover:not(:disabled) {
  transform: translateY(-1px);
  filter: saturate(1.08) brightness(.98);
  box-shadow: 0 16px 30px rgba(5,150,105,.3) !important;
}

.pos19-primary-action.pos19-primary-quote {
  background: linear-gradient(135deg,#4f46e5,#7c3aed) !important;
  box-shadow: 0 12px 25px rgba(79,70,229,.24) !important;
}
.pos19-primary-action.pos19-primary-quote:hover:not(:disabled) {
  box-shadow: 0 16px 30px rgba(79,70,229,.3) !important;
}
.pos19-primary-action:disabled { box-shadow: none !important; }
.pos19-cancel-action {
  background: transparent !important;
  border: 1px solid #fecaca;
}
.pos19-cart-card table thead { background: #f1f5f9 !important; }
.pos19-cart-card table tbody tr { transition: background .15s ease; }
.pos19-cart-card table tbody tr:hover { background: #f8fafc; }
.pos19-root input,
.pos19-root select,
.pos19-root button { -webkit-tap-highlight-color: transparent; }
@media (min-width: 1024px) {
  .pos19-shell { padding: 14px; }
  .pos19-workspace { grid-template-columns: minmax(0,1fr) minmax(370px,430px) !important; }
}
@media (max-width: 1023px) {
  .pos19-shell { padding: 8px; border-radius: 22px; }
  .pos19-checkout-card { max-height: none; overflow: hidden !important; }
  .pos19-checkout-header,
  .pos19-total-card { position: relative !important; top: auto !important; }
}
@media (max-width: 640px) {
  .pos19-cashbar > div:first-child { align-items: flex-start !important; }
  .pos19-card,
  .pos19-checkout-card { border-radius: 20px !important; }
  .pos19-card > div:first-child,
  .pos19-checkout-header { min-height: 58px; padding: 11px 13px !important; }
  .pos19-card h2,
  .pos19-checkout-header h2 { font-size: 15px !important; }
  .pos19-product-search { height: 56px !important; }
}
@media print {
  .pos19-shell { padding: 0; background: #fff; }
  .pos19-cashbar { box-shadow: none !important; }
}
