#salepos{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(330px,1fr);gap:18px;align-items:start}#poscatalog,#posorder{min-width:0;padding:20px}#posorder{position:sticky;top:14px}#posorder table{font-size:12px}#posorder td,#posorder th{padding:10px 6px}#posorder .grid{grid-template-columns:1fr}#posorder #saleconfirm{width:100%;font-size:16px;padding:16px}#poscatalog .grid{grid-template-columns:1fr}#poscatalog .grid>div:first-child{display:none}#poscatalog h3{font-size:17px}#saleexample{font-size:11px;padding:9px}.pos-legacy{display:none!important}.pos-channel{display:flex;gap:8px;margin:18px 0}.pos-channel button{background:#eef2ec;color:#34503e;border:1px solid #dae2d7;flex:1;padding:13px}.pos-channel button.is-selected{background:#184f39;color:#fff;border-color:#184f39}.pos-section-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:18px 0 12px}.pos-section-head h3{margin:0}.pos-section-head>span{font-size:10px;color:#75836f;max-width:140px;text-align:right}.pos-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.pos-category{display:flex;flex-direction:column;justify-content:space-between;align-items:center;min-height:104px;padding:14px 10px;background:var(--bubble-bg);color:#293e39;border:1px solid color-mix(in srgb,var(--bubble-edge) 45%,white);border-top:5px solid var(--bubble-edge);border-radius:13px;text-align:center}.pos-category span{font-size:12px;font-weight:750}.pos-category b{font-size:30px;font-weight:650;margin-top:8px}.pos-category.is-selected{outline:2px solid var(--bubble-edge);outline-offset:2px}.pos-items{display:grid;grid-template-columns:1fr;gap:8px}.pos-product{border:1px solid #d6dfd4;border-left:4px solid var(--bubble-edge);border-radius:11px;display:flex;align-items:center;gap:10px;justify-content:space-between;padding:11px;background:white;min-height:69px}.pos-product.pos-picked{background:var(--bubble-bg)}.pos-product.pos-no-stock{background:#fce8e7;border-left-color:#bd5b52}.pos-product-copy{display:flex;flex-direction:column;gap:5px;min-width:0}.pos-product-copy b{font-size:12px;font-weight:700}.pos-product-copy small{font-size:10px;color:#64766c}.pos-stepper{display:flex;align-items:center;gap:6px;flex-shrink:0}.pos-stepper button{border-radius:50%;padding:0;width:34px;height:34px;font-size:23px;line-height:1;font-weight:650}.pos-plus{background:#d0f0cf;color:#246c32}.pos-minus{background:#f8d5d4;color:#99443c}.pos-stepper button:disabled{opacity:.4;cursor:not-allowed}.pos-quantity{min-width:26px;text-align:center;border-radius:20px;padding:5px 4px;background:#fff;border:1px solid #d0dbd0;font-size:13px;font-weight:750}.pos-promo-items{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-promo-card{display:flex;flex-direction:column;align-items:center;gap:9px;background:var(--bubble-bg);border:1px solid var(--bubble-edge);border-top:5px solid var(--bubble-edge);border-radius:13px;padding:16px;text-align:center}.pos-promo-card>b{font-size:14px;min-height:35px}.pos-promo-card>span{font-size:18px;font-weight:750}.pos-promo-card p{font-size:10px;margin:0;line-height:1.5;flex:1}.pos-promo-card button{font-size:12px;background:var(--bubble-edge);padding:11px}.pos-promo-card small{font-size:9px}#posfeedback{font-size:12px;min-height:18px}#pospromodialog{width:min(1080px,96vw);max-height:90vh;padding:0;border:0;border-radius:19px;color:#233b2c;box-shadow:0 20px 90px #0f302e50}#pospromodialog::backdrop{background:#142e2b99}.pos-modal-top{position:sticky;top:0;background:#fff;padding:20px 25px;border-bottom:1px solid #dae3d6;display:flex;justify-content:space-between;align-items:center;z-index:2}.pos-modal-top h3{font-size:22px;margin:7px 0}.pos-modal-top b{color:#8e4053}.pos-eyebrow{letter-spacing:2px;font-size:9px;color:#7a8a73}#posclosepromo{font-size:22px}.pos-component{padding:8px 24px 20px}.pos-component-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.pos-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.pos-modal-bottom{position:sticky;bottom:0;background:#f7faf4;padding:13px 24px;border-top:1px solid #dae3d6;z-index:2}.pos-modal-bottom p{font-size:12px;margin:0 0 10px}.pos-modal-bottom button{font-size:13px;margin:0 6px 4px 0}.pos-categories button:focus-visible,.pos-stepper button:focus-visible{outline:3px solid #174f38;outline-offset:2px}@media(min-width:1350px){main:has([data-page="ventas"]:not(.hidden)){max-width:1400px}.pos-items:not(.pos-promo-items){grid-template-columns:repeat(2,minmax(0,1fr))}.pos-product-code{display:none}}@media(max-width:900px){#salepos{grid-template-columns:1fr}#posorder{position:static}.pos-items:not(.pos-promo-items){grid-template-columns:repeat(2,minmax(0,1fr))}.pos-product{flex-direction:column;align-items:flex-start}.pos-stepper{align-self:flex-end}}@media(max-width:550px){#poscatalog,#posorder{padding:14px}.pos-categories{gap:7px}.pos-category{min-height:91px;padding:11px 6px}.pos-category span{font-size:10px}.pos-category b{font-size:25px}.pos-items:not(.pos-promo-items),.pos-choice-grid{grid-template-columns:1fr}.pos-product{flex-direction:row;align-items:center}.pos-stepper{align-self:center}.pos-section-head>span{display:none}.pos-modal-top,.pos-component,.pos-modal-bottom{padding:14px}.pos-modal-top h3{font-size:17px}.pos-product-code{display:none}.pos-promo-items{gap:8px}.pos-promo-card{padding:12px 8px}}

/* Existencias agotadas: fondo diferenciado y texto atenuado, controles legibles. */
.pos-product.pos-no-stock,.pos-product.pos-no-stock.pos-picked{background:repeating-linear-gradient(135deg,#f7e4e3,#f7e4e3 8px,#f2dedc 8px,#f2dedc 16px);border-color:#d4b9b5;border-left-color:#b56c65;box-shadow:none}
.pos-no-stock .pos-product-copy{opacity:.58;filter:saturate(.25)}
.pos-no-stock .pos-product-copy small{color:#713e39}
.pos-no-stock .pos-plus:disabled{background:#d5d5d0;color:#797d76;opacity:.6;cursor:not-allowed}
.pos-no-stock .pos-minus:not(:disabled){opacity:1;background:#edc5c2;color:#803e36}

/* Identificación adicional de productos agotados. */
.pos-no-stock .pos-product-copy b{text-decoration-line:line-through;text-decoration-thickness:2px;text-decoration-color:#9b4e47}

#posorderbutton{font-size:11px;padding:9px}#posorderdialog{width:min(760px,95vw);max-height:90vh;padding:0;border:0;border-radius:18px;color:#233b2c;box-shadow:0 20px 90px #0f302e50}#posorderdialog::backdrop{background:#142e2b99}.pos-order-body{padding:0 24px 18px}.pos-order-body>p{font-size:13px}.pos-order-row{display:flex;align-items:center;gap:10px;padding:11px;background:#f7faf3;border:1px solid #dce4d8;border-radius:10px;margin:7px 0}.order-handle{font-size:24px;color:#82927a;cursor:grab}.order-index{font-size:12px;color:#82927a;min-width:20px}.order-name{flex:1;display:flex;flex-direction:column;gap:4px}.order-name b{font-size:13px}.order-name small{font-size:10px}.pos-order-row button{padding:9px 13px;min-width:38px}.pos-order-row button:disabled{opacity:.3;cursor:not-allowed}.pos-order-row.is-dragging{opacity:.4}.pos-order-row.drop-target{outline:2px solid #6d9256;background:#edf6de}@media(max-width:550px){.pos-order-body{padding:0 13px 14px}.pos-order-row{gap:6px;padding:9px}.order-name b{font-size:12px}.pos-order-row button{padding:9px 10px}.order-handle{display:none}}

.pos-beverage-subcategories{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}.pos-beverage-subcategories.hidden{display:none}.pos-beverage-subcategories button{border:1px solid #9ec9ce;background:#eef8f9;color:#205d65;padding:10px 16px;border-radius:24px}.pos-beverage-subcategories button.is-selected{background:#278896;color:white;border-color:#278896}.pos-beverage-subcategories button:focus-visible{outline:3px solid #278896;outline-offset:3px}

#salechange:not(:empty){font-size:clamp(25px,3vw,34px);font-weight:800;line-height:1.25;color:#154d34;background:#e2f4de;border:2px solid #80b971;border-radius:12px;padding:16px;margin:12px 0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}#salechange.sale-change-error:not(:empty){font-size:18px;background:#fff0e9;border-color:#d69b80;color:#8b3125}

#stockadmindialog{width:min(560px,94vw);max-height:90vh;overflow:auto;border:1px solid #bdd0bd;border-radius:16px;padding:24px}#stockadmindialog::backdrop{background:#102d2466}#stockadmindialog .hidden{display:none}

#ticketdialog{width:min(720px,96vw);max-height:92vh;overflow:auto;border:1px solid #b7cdbd;border-radius:16px;padding:24px}#ticketdialog::backdrop{background:#16352c77}.bill-stamp{padding:12px;background:#fff2d6;color:#74521b;font-weight:700;text-align:center;border:1px dashed #b38b44}.bill-controls{margin-top:20px}.bill-controls button{margin:4px 0}.bill-controls .hidden{display:none}#ticketpreview table{width:100%}#ticketpreview td{vertical-align:top}@media print{body.printing-bill>*{display:none!important}body.printing-bill>#ticketdialog{display:block!important;position:static!important;width:100%!important;max-height:none!important;height:auto!important;overflow:visible!important;border:0!important;padding:0!important;margin:0!important}body.printing-bill .bill-controls{display:none!important}body.printing-bill #ticketpreview{display:block!important}body.printing-bill #ticketdialog::backdrop{display:none!important}}

.auth-locked main,.auth-locked aside,.auth-locked dialog,.auth-locked #trialuserheader{display:none!important}#triallogin{max-width:490px;margin:48px auto;padding:28px}body:not(.auth-locked) #triallogin{display:none!important}.role-hidden{display:none!important}#triallogin button{margin-top:18px}#trialuserheader{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.employee-view [data-page]:not([data-page="ventas"]):not([data-page="entrada"]):not([data-page="decomiso"]){display:none!important}

#accounting-report-print{display:none}
@page accounting-report{size:A4 landscape;margin:12mm}
@media print{
  body.printing-accounting{background:white}
  body.printing-accounting>*{display:none!important}
  body.printing-accounting>#accounting-report-print{display:block!important;page:accounting-report;color:#18251e;font-size:10pt}
  #accounting-report-print h1{font-size:20pt;letter-spacing:0}
  #accounting-report-print h2{font-size:14pt}
  #accounting-report-print table{width:100%;font-size:8pt;border-collapse:collapse}
  #accounting-report-print th,#accounting-report-print td{padding:4pt;border:1px solid #c5ccc6;overflow-wrap:anywhere}
  #accounting-report-print thead{display:table-header-group}
  #accounting-report-print tr{break-inside:avoid}
}

#positemarea,#poscategories{scroll-margin-top:16px}
