/* Demo shell only. original/tokens.css and original/app.css are verbatim POS assets.
   Desktop retains the native three-panel screen. On phones, panels stack and the
   document scrolls so quantities, totals, and payment controls remain reachable. */
body { min-width: 0; display: flex; flex-direction: column; }
.demo-banner { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; padding: 9px 20px; font-size: 13px; line-height: 1.4; color: var(--page-text); background: var(--header-bg); border-bottom: 1px solid var(--panel-border); }
.demo-banner-actions { display: flex; align-items: center; gap: 16px; }
.demo-banner a { color: var(--page-text); text-underline-offset: 3px; }
.demo-banner button, .demo-feedback button { padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--input-bg); cursor: pointer; }
.demo-feedback { flex: 0 0 auto; min-height: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 5px 20px; color: var(--muted-text); background: var(--page-bg); font-size: 12px; }
.demo-feedback.is-error { color: #ffd6b1; }
.app-shell { flex: 1 1 auto; height: auto; min-height: 0; }
#demo-scope-dialog p { line-height: 1.65; padding: 0 18px; max-width: 560px; }
#sale-payment-dialog p { line-height: 1.5; }
button:disabled { cursor: not-allowed; }
.demo-ticket-copy { display: grid; gap: 6px; min-width: 0; }
.demo-ticket-copy p { margin: 0; font-size: 13px; color: var(--muted-text); }
@media (max-width: 1200px) and (min-width: 761px) {
  .app-shell { --sidebar-width: 190px; }
  .last-product.is-open { position: absolute; inset: 0 0 0 auto; z-index: 5; width: min(340px, 80vw); }
}
@media (max-height: 620px) and (min-width: 761px) {
  html, body { height: auto; min-height: 100%; overflow-y: auto; }
  .app-shell { height: 640px; flex: 0 0 640px; }
}
@media (max-width: 760px) {
  html, body { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; }
  .demo-banner { padding: 12px; }
  .demo-feedback { padding: 8px 12px; }
  .app-shell, .app-shell.is-sidebar-collapsed { display: block; height: auto; overflow: visible; }
  .sidebar { padding: 10px 12px; }
  .sidebar__toggle, .sidebar__footer, .sidebar__shutdown-button { display: none; }
  .sidebar .brand { margin: 0; padding: 0 0 10px; }
  .sidebar .brand__mark { max-height: 48px; width: 48px; }
  .sidebar .brand__words strong { font-size: 27px; }
  .module-nav { display: flex; flex-direction: row; overflow-x: auto; padding: 3px 0; gap: 6px; }
  .module-nav__item { flex: 0 0 auto; width: auto; min-height: 42px; padding: 8px; font-size: 12px; }
  .module-nav__icon { display: none; }
  .module-nav__label { white-space: nowrap; }
  .workspace { display: block; }
  .workspace-header { padding: 14px 12px; gap: 8px; }
  .workspace-header__status { font-size: 11px; gap: 6px; }
  .workspace-scroll.is-fixed { padding: 12px; overflow: visible; }
  .screen--sell { height: auto; }
  .sale-layout { display: flex; flex-direction: column; height: auto; }
  .sale-layout > .sale-finder, .sale-layout > .sale-ticket { flex: 0 0 auto; width: 100%; }
  .sale-finder { max-height: 560px; }
  .sale-suggestions { min-height: 100px; max-height: 210px; overflow-y: auto; }
  .sale-ticket { min-height: 440px; }
  .sale-ticket-lines { flex: 1 0 auto; max-height: 440px; min-height: 130px; overflow-y: auto; }
  .ticket-line { gap: 8px; }
  .ticket-line__copy strong { overflow-wrap: anywhere; }
  .sale-ticket-total strong, .sale-charge-button strong { overflow-wrap: anywhere; }
  .last-product, .last-product.is-open { position: static; inset: auto; flex: 0 0 auto; width: 100%; min-height: 84px; }
  .last-product.is-open .last-product-detail { min-height: 360px; }
  .last-product-detail { width: calc(100% - 60px); }
  .last-product-visual { max-height: 200px; }
  .last-product-visual img { max-height: 200px; }
  .product-dialog { max-width: calc(100vw - 24px); width: calc(100vw - 24px); max-height: 90dvh; overflow-y: auto; }
  .dialog-actions { flex-wrap: wrap; }
  .held-ticket-row { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Identidad de la web; los estilos originales del POS quedan separados. */
html,body{font-family:'DM Sans','Segoe UI',sans-serif}
button,input,select,textarea{font-family:inherit}
h1,h2,h3,h4{font-family:'Manrope','Segoe UI',sans-serif}
.demo-banner{font-size:16px;color:#dce6f0;background:linear-gradient(145deg,#2c3d50,#142130);border-color:#587792;padding:12px 20px}
.demo-banner a{color:#c5dfff}.demo-banner-actions button{color:#dce6f0;background:linear-gradient(#344a61,#172638);border:1px solid #7794ad;min-height:44px;font-size:15px;box-shadow:inset 0 1px #d2e9ff26,0 3px 0 #07111b}
.sidebar .brand{text-decoration:none;display:inline-flex}.sidebar .brand .wordmark{gap:6px}.sidebar .wordmark strong{font-size:27px}.sidebar .wordmark small{font-size:10px}
.demo-feedback{font-size:14px}
@media(max-width:760px){.demo-banner{padding:12px;font-size:15px}.demo-banner-actions{gap:12px;flex-wrap:wrap}.sidebar .brand{padding:4px 0 14px}}
