/* Operación: controles táctiles, superficies sobrias y jerarquía estable. */
.pos-pro,.kitchen-pro{min-width:0}.op-toolbar{display:flex;justify-content:space-between;align-items:end;gap:14px;margin-bottom:18px;flex-wrap:wrap}.op-selectors{display:flex;align-items:end;gap:12px;min-width:0}.op-selectors .field{min-width:155px;margin:0}.op-selectors select{font-size:12px;padding:12px;min-height:42px}.op-toolbar .actions{gap:7px}.op-toolbar button{font-size:10px;min-height:38px;padding:9px 12px}.op-toolbar .badge{font-size:10px}.pos-workspace{display:grid;grid-template-columns:minmax(0,1fr) 365px;gap:20px;min-height:0}.pos-catalog{min-width:0;padding-right:3px}.op-search{display:flex;align-items:center;gap:10px;background:#ffffffdc;border:1px solid #fff;border-radius:15px;padding:7px 12px;margin-bottom:14px}.op-search>span{color:#728269}.op-search input{flex:1;border:0;box-shadow:none;background:none;min-width:0;padding:10px 0;font-size:13px;outline-offset:4px}.op-search .subtle{font-size:11px;min-height:36px;padding:7px 12px;background:#f0f3eb;border:0}.op-categories{display:flex;gap:7px;overflow:auto;margin-bottom:18px;overscroll-behavior-inline:contain;padding:2px 1px 6px;scrollbar-width:thin}.op-categories button{white-space:nowrap;font-size:11px;padding:10px 17px;min-height:39px;border:1px solid #ffffffb0;background:#ffffff80;border-radius:24px;color:#52644c}.op-categories button.selected{background:#324f3d;color:white;border-color:#324f3d}.op-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-bottom:18px}.op-product{background:#ffffffed;border:1px solid white;border-radius:20px;position:relative;overflow:hidden;box-shadow:0 4px 15px #213e2710;min-width:0;transition:box-shadow .2s,transform .2s}.op-product:hover{box-shadow:0 8px 25px #213e271a;transform:translateY(-2px)}.op-product-add{display:block;text-align:left;border:0!important;border-radius:0!important;padding:0!important;background:none!important;width:100%;box-shadow:none!important;color:#2a3a2d}.op-product-add>img{width:100%;height:132px;object-fit:cover;display:block}.op-product-add>div{padding:16px}.op-product-add small{display:block;font-size:9px;line-height:1.5;color:#718068}.op-product-add h3{font-size:17px;letter-spacing:-.6px;line-height:1.2;margin:8px 0}.op-product-add p{font-size:10px;line-height:1.6;color:#7b8671;min-height:31px;margin:0}.op-product-add footer{display:flex;justify-content:space-between;align-items:center;margin:15px 0 10px;gap:8px}.op-product-add footer strong{font-size:21px;letter-spacing:-.7px}.op-add-symbol{display:flex;align-items:center;justify-content:center;background:#edf3e6;border-radius:50%;width:28px;height:28px;font-size:21px;font-weight:350;color:#355234}.op-favorite{position:absolute;z-index:1;top:9px;right:9px;width:30px;height:30px;min-height:30px;border:0!important;background:#ffffffdf!important;border-radius:50%;padding:0;font-size:20px;color:#4d6344}.op-favorite.selected{color:#916c25}.op-product.unavailable{opacity:.5}.op-ticket{border-radius:22px;background:#ffffffec;border:1px solid white;box-shadow:0 8px 28px #29402b0d;min-width:0;display:flex;flex-direction:column;overflow:hidden;align-self:start}.op-ticket-head{padding:24px 22px 13px}.op-ticket-head h2{font-size:23px;letter-spacing:-.9px;margin:8px 0 20px}.op-service{display:flex;gap:4px;padding:4px;background:#edf1e9;border-radius:12px;margin-bottom:17px}.op-service button{min-width:0;flex:1;border:0;font-size:10px;padding:10px 5px;min-height:36px;background:none;box-shadow:none;border-radius:9px;color:#687c5a}.op-service button.selected{background:#fff;color:#344b32;box-shadow:0 2px 7px #293d2510}.op-guest{display:grid;grid-template-columns:1fr;gap:10px}.op-guest:has([name=table]){grid-template-columns:1.3fr 1fr}.op-guest .field{font-size:10px;gap:6px}.op-guest input{min-height:39px;font-size:12px;padding:10px}.op-cart-lines{padding:0 22px;min-height:130px;flex:1}.op-cart-line{padding:17px 0;border-bottom:1px solid #e6ebdf;display:flex;gap:10px}.op-cart-line>div:first-child{flex:1;min-width:0}.op-cart-line strong{display:block;font-size:12px;line-height:1.6}.op-cart-line small{display:block;font-size:10px;color:#8a957d}.op-cart-line p{font-size:11px;line-height:1.5;color:#7b643b;margin-top:6px}.text-button{background:none;border:0;font-size:9px;color:#6b805b;padding:7px 0;min-height:29px;box-shadow:none;text-align:left}.op-quantity{display:grid;grid-template-columns:27px 22px 27px;gap:4px;align-content:start;align-items:center;text-align:center}.op-quantity button{height:29px;min-height:29px;padding:0;border:0;background:#f0f4eb;border-radius:8px;font-size:16px}.op-quantity>span{grid-column:1/-1;font-size:12px;font-weight:650;margin-top:8px}.op-empty{text-align:center;color:#42563c;padding:38px 10px;font:23px Georgia,serif;line-height:1.5}.op-empty span{display:block;font:11px system-ui;color:#8b987d;margin-top:8px}.op-payment{padding:18px 22px 22px;background:#fbfcf8;border-top:1px solid #ecf0e5}.op-global-note{display:block;font-size:10px;color:#718363}.op-global-note input{font-size:11px;min-height:37px;margin-top:7px;padding:9px}.op-total{display:flex;justify-content:space-between;align-items:center;margin:20px 0;gap:12px}.op-total>span{font-size:12px;color:#596e4c}.op-total small{display:block;font-size:9px;color:#89977c;margin-top:5px}.op-total>strong{font-size:32px;letter-spacing:-1.5px;color:#243b2b}.op-pay-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.op-pay-buttons button{font-size:12px;padding:13px 7px;min-height:47px;border-radius:12px;display:flex;align-items:center;justify-content:center;gap:8px}.op-pay-buttons button:last-child{grid-column:1/-1;background:#fff}.op-pay-buttons svg{width:18px;height:18px;flex-shrink:0}.op-cart-actions{display:flex;justify-content:space-between;margin-top:11px;gap:9px}.op-cart-actions button{border:0;background:none;box-shadow:none;font-size:10px;padding:9px 0;min-height:33px;color:#6c7e5d}.op-hint{font-size:10px;line-height:1.8;color:#7c8b70;display:block}.op-mobile-total{display:none}.prep-controls{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:12px 0}.prep-tabs{display:flex;gap:7px;overflow:auto;padding:2px 0 7px;overscroll-behavior-inline:contain}.prep-tabs button{white-space:nowrap;background:#ffffffb5;border:1px solid #ffffffd0;padding:12px 15px;border-radius:14px;font-size:11px;display:flex;align-items:center;gap:13px}.prep-tabs button strong{font-size:21px}.prep-tabs button.selected{background:#35543e;color:white;border-color:#35543e}.prep-controls input{max-width:280px;font-size:12px;background:#fffdf5cf}.prep-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px;align-items:start}.prep-board:has(.prep-column:only-child){grid-template-columns:1fr}.prep-column{min-width:0}.prep-column:only-child{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.prep-column:only-child>.prep-column-title{grid-column:1/-1}.prep-column-title{display:flex;align-items:center;gap:9px;margin-bottom:16px;padding:0 3px}.prep-column-title h2{font-size:14px;letter-spacing:-.4px;flex:1}.prep-column-title>span:last-child{font-size:12px;color:#75856b}.prep-dot{width:7px;height:7px;border-radius:50%;background:#ae9870;flex-shrink:0}.prep-dot.preparing{background:#829cad}.prep-dot.ready{background:#689572}.prep-dot.delivered{background:#a8af9f}.prep-card{background:#fffdf9ee;border:1px solid #fff;border-radius:20px;box-shadow:0 4px 16px #35462e0c;margin-bottom:17px;overflow:hidden;min-width:0}.prep-card.urgent{border-color:#c7a47a;box-shadow:0 0 0 1px #c7a47a30}.prep-card>header{display:flex;gap:12px;justify-content:space-between;padding:20px 19px;background:#f6f8f0b3}.prep-card header>div{min-width:0}.prep-card header span:first-child{font-size:9px;color:#8b977d}.prep-card header h3{font-size:20px;letter-spacing:-.7px;margin:6px 0;overflow-wrap:anywhere}.prep-card header small{font-size:10px;color:#8a967a}.prep-age{font-size:12px!important;color:#617951!important;text-align:right;white-space:nowrap;font-weight:600}.prep-age.late{color:#a26b37!important}.prep-age small{display:block;font-size:8px!important;white-space:normal;max-width:82px;margin-top:5px}.prep-note{background:#f7edda;padding:11px 18px;color:#88704c;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.prep-items{padding:0 18px}.prep-item{padding:17px 0;border-bottom:1px solid #e8ecdf;display:flex;gap:9px}.prep-item>div{flex:1;min-width:0}.prep-item img{width:40px;height:45px;border-radius:9px;object-fit:cover;flex-shrink:0}.prep-item-title{display:flex;justify-content:space-between;gap:8px}.prep-item-title b{font-size:13px;line-height:1.5}.prep-item-title span{font-size:10px;color:#8b997b;white-space:nowrap}.prep-item small{display:block;font-size:9px;color:#909b85;margin-top:6px}.prep-item p{font-size:11px;line-height:1.6;margin-top:9px;color:#997745;background:#fcf5e7;padding:9px;border-radius:8px;overflow-wrap:anywhere}.prep-item.is-ready b{color:#7a8c69}.prep-item-actions{display:flex;gap:6px;margin-top:12px}.prep-item-actions button{min-height:33px;font-size:10px;border-radius:9px;padding:8px 11px;background:#eef3e8;border:1px solid #dde7d3}.prep-card>footer{padding:15px 18px}.prep-card>footer>.primary{width:100%;font-size:11px;min-height:41px;border-radius:11px}.prep-card-tools{display:flex;flex-wrap:wrap;gap:4px;justify-content:space-between;margin-top:10px}.prep-card-tools button{font-size:9px;padding:7px 3px;min-height:29px;border:0;background:none;box-shadow:none;color:#798b67}.prep-card-tools button.priority-active{color:#a36f39}.prep-wait{font-size:11px;line-height:1.6;background:#edf4e7;border-radius:10px;padding:12px;color:#64804e}.prep-empty{padding:30px 15px;text-align:center;background:#ffffff60;border:1px dashed #bec7b2;border-radius:17px;font-size:11px;color:#8a997a}.op-order-detail .detail-grid strong,.op-order-detail .detail-grid small{display:block;margin:7px 0}.op-order-detail .detail-grid small{font-size:10px;color:#859479}.op-detail-line{border-bottom:1px solid #e5ebdb;padding:17px 0}.op-detail-line strong,.op-detail-line span{display:block;font-size:13px;line-height:1.7}.op-detail-line span{font-size:11px;color:#89977b}.op-detail-line p{font-size:12px;color:#8b7046;margin-top:8px}.op-order-detail h3{margin:25px 0 15px}.op-timeline{list-style:none;padding:0;margin:0}.op-timeline li{border-left:2px solid #d9e5cc;padding:10px 0 15px 18px;margin-left:5px}.op-timeline strong,.op-timeline small{display:block;font-size:12px}.op-timeline small{font-size:10px;color:#8b987b;margin-top:7px}.op-print-line{padding:16px 0;border-bottom:1px dashed #999;text-align:left}.prep-config{display:grid;gap:15px}.prep-config section{display:grid;grid-template-columns:1.2fr 1fr 100px;gap:16px;align-items:center;border-bottom:1px solid #e4ebda;padding:12px 0}.prep-config section>strong{font-size:13px}.prep-config .field{font-size:10px}.checkout-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#eff4e9;border-radius:18px;padding:23px;margin-bottom:17px}.checkout-summary span,.checkout-summary small{font-size:11px;color:#80936d}.checkout-summary h3{font-size:22px;margin:9px 0;letter-spacing:-.7px}.checkout-summary>strong{font-size:35px;letter-spacing:-1px;color:#304f35}.checkout-steps{display:flex;gap:10px;justify-content:space-between;padding:7px 4px 20px;font-size:11px;color:#80966e}#scan-form .scanner-box{background:#fbfcf8;border:1px solid #e6eddc;border-radius:17px}#scan-form .scanner-box input{font-size:16px;padding:17px;border-radius:12px}#scan-form .identified{background:#e9f2df;border-radius:13px;padding:18px}#scan-form>.actions{gap:12px}#scan-form>.actions .primary{min-height:49px;font-size:13px}.payment-success{text-align:center;padding:20px 10px}.payment-success-mark{width:63px;height:63px;display:flex;align-items:center;justify-content:center;background:#e8f2de;color:#55743f;border-radius:50%;margin:0 auto 20px}.payment-success-mark .icon{width:30px;height:30px}.payment-success h2{font-size:48px;letter-spacing:-2px;margin-bottom:15px}.payment-success p{font-size:17px}.payment-success>span{display:block;font-size:12px;color:#81956c;margin:15px 0 25px}.payment-success .actions{justify-content:center;margin-top:25px}.payment-recovery{padding:10px}.payment-recovery h2{font-size:36px;margin-bottom:15px}.payment-recovery p{font-size:14px;line-height:1.8;margin:14px 0}.payment-recovery small{font-size:12px;line-height:1.7;color:#92734a}.payment-recovery .actions{margin-top:25px}
@media(min-width:1200px){.main:has(.pos-pro){height:calc(100dvh - 40px);display:flex;flex-direction:column;overflow:hidden}.main:has(.pos-pro)>.content{min-height:0;flex:1;display:flex;flex-direction:column;padding-bottom:0}.main:has(.pos-pro) .page-head{margin:10px 0 15px;flex-shrink:0}.main:has(.pos-pro) .page-head h1{font-size:26px}.main:has(.pos-pro) .page-head p{display:none}.main:has(.pos-pro) .demo-banner{margin-bottom:8px;flex-shrink:0}.pos-pro{display:flex;flex-direction:column;min-height:0;flex:1}.op-toolbar{flex-shrink:0}.pos-workspace{min-height:0;flex:1;overflow:hidden}.pos-catalog{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.op-ticket{height:100%;min-height:0;align-self:stretch;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.op-ticket-head{flex-shrink:0}.op-cart-lines{min-height:75px;flex:1;overflow:auto;scrollbar-width:thin;overscroll-behavior:contain}.op-payment{flex-shrink:0}.op-guest{gap:6px}.op-ticket-head{padding:17px 20px 7px}.op-ticket-head h2{font-size:20px;margin-bottom:13px}.op-payment{padding:12px 20px 13px}.op-total{margin:13px 0}.op-hint{font-size:9px}.op-global-note input{margin-top:4px}.op-cart-actions{margin-top:5px}.op-ticket-head .op-service{margin-bottom:12px}}
@media(max-width:1350px){.op-products{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-workspace{grid-template-columns:minmax(0,1fr) 330px;gap:15px}.prep-board{gap:12px}.prep-card>header{padding:17px 14px}.prep-items{padding:0 14px}.prep-card>footer{padding:14px}.prep-controls{align-items:stretch;flex-direction:column}.prep-controls input{max-width:none}.op-toolbar{align-items:stretch;flex-direction:column}.op-toolbar .actions{flex-wrap:wrap}}
@media(max-width:1000px){.prep-board{grid-template-columns:1fr 1fr}.prep-column:only-child{grid-template-columns:1fr 1fr}.pos-workspace{grid-template-columns:minmax(0,1fr) 315px}.op-products{gap:10px}.op-product-add>img{height:110px}.op-product-add>div{padding:12px}.op-product-add h3{font-size:15px}.op-product-add footer strong{font-size:18px}.op-ticket-head,.op-payment{padding:18px}.op-cart-lines{padding:0 18px}}
@media(max-width:750px){.pos-workspace{grid-template-columns:1fr}.op-products{grid-template-columns:1fr 1fr}.op-product-add>img{height:145px}.op-ticket{margin-bottom:25px}.op-selectors{flex-wrap:wrap}.op-selectors>.field{flex:1;min-width:140px}.op-mobile-total{display:block;position:sticky;bottom:81px;padding:8px 0;z-index:3;pointer-events:none}.op-mobile-total button{width:100%;box-shadow:0 5px 18px #2b44372b;pointer-events:auto;border-radius:14px;font-size:13px;min-height:47px}.pos-catalog{overflow:visible}.prep-board{grid-template-columns:1fr}.prep-column:only-child{grid-template-columns:1fr}.prep-tabs button{padding:10px 12px;font-size:10px;gap:9px}.prep-tabs button strong{font-size:18px}.prep-config section{grid-template-columns:1fr 90px}.prep-config section>strong{grid-column:1/-1}.checkout-summary{padding:17px;gap:12px}.checkout-summary>strong{font-size:29px}.checkout-summary h3{font-size:18px}.payment-success h2{font-size:40px}.checkout-steps{font-size:10px}.op-toolbar .actions .badge{width:100%}.op-ticket h2{font-size:24px}.op-quantity button{min-height:36px;height:36px}.op-quantity{grid-template-columns:32px 24px 32px}}
@media(prefers-reduced-motion:reduce){.op-product{transition:none}.op-product:hover{transform:none}}@media print{.op-mobile-total{display:none}.op-ticket,.pos-catalog{height:auto;overflow:visible}.main:has(.pos-pro){height:auto;overflow:visible}}

.op-recovery-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:12px 18px;margin-bottom:12px;background:#fff3d9;border:1px solid #e9d6af;border-radius:13px;font-size:12px;flex-shrink:0}.op-recovery-banner button{white-space:nowrap;font-size:11px}@media(max-width:600px){.op-recovery-banner{flex-direction:column;align-items:stretch}}

/* Cajas de laptop: el total y los medios de cobro permanecen a la vista. */
@media(min-width:1200px) and (max-height:850px){
 .main:has(.pos-pro) .page-head .eyebrow{display:none}.main:has(.pos-pro) .page-head{margin:5px 0 10px}.main:has(.pos-pro) .page-head h1{font-size:23px}
 .pos-pro .op-toolbar{flex-direction:row;align-items:end;gap:10px;margin-bottom:12px}.pos-pro .op-toolbar .actions{gap:5px}.pos-pro .op-toolbar button{font-size:9px;padding:8px;min-height:32px}.pos-pro .op-toolbar .badge{font-size:9px;padding:8px}
 .op-ticket{overflow:hidden}.op-ticket-head{padding:12px 16px 6px}.op-ticket-head h2{display:none}.op-ticket-head .eyebrow{font-size:8px}.op-ticket-head .op-service{margin:8px 0}.op-service button{padding:7px 4px;min-height:29px}.op-guest .field{font-size:9px;gap:4px;margin:0}.op-guest input{padding:7px;min-height:32px}.op-cart-lines{padding:0 16px;min-height:60px}.op-cart-line{padding:9px 0}.op-payment{padding:10px 16px}.op-global-note input{min-height:31px;padding:7px}.op-total{margin:10px 0}.op-total>strong{font-size:27px}.op-pay-buttons{grid-template-columns:1fr 1fr 1fr;gap:5px}.op-pay-buttons button{font-size:10px;min-height:42px;padding:8px 4px;gap:4px}.op-pay-buttons button:last-child{grid-column:auto}.op-pay-buttons svg{width:14px;height:14px}.op-cart-actions button{min-height:25px;padding:5px 0}.op-payment>.op-hint{display:none}
}

body[data-role="kitchen"] .shell {grid-template-columns:minmax(0,1fr);}
body[data-role="kitchen"] .sidebar,
body[data-role="kitchen"] .workspace-menu,
body[data-role="kitchen"] .mobile-bottom {display:none;}
body[data-role="kitchen"] .prep-card .primary { min-height:48px; }
