/* STARLIKE POS · REFERENCIA OPERATIVA 2026-10-04
   Objetivo visual: barra superior, tablero de tarjetas, panel lateral y acciones grandes. */
body.sl-operator-mode{
  --ref-bg:#0b1118;--ref-bg2:#0f1721;--ref-panel:#121c27;--ref-panel2:#162331;
  --ref-line:#263543;--ref-text:#f4f7fb;--ref-muted:#91a2b4;--ref-pink:#ff2f86;
  --ref-yellow:#ffd42a;--ref-green:#23d77b;--ref-blue:#2197ff;--ref-orange:#ff9f24;--ref-red:#ff4b50;
}
body.sl-operator-mode .sidebar,
body.sl-operator-mode .topbar,
body.sl-operator-mode #slOperatorDock169,
body.sl-operator-mode #slOperatorMore169,
body.sl-operator-mode #slOperatorHome169,
body.sl-operator-mode #slFooter183,
body.sl-operator-mode #slProfile183,
body.sl-operator-mode #slDecor183{display:none!important}
body.sl-operator-mode .app{grid-template-columns:1fr!important;background:var(--ref-bg)!important}
body.sl-operator-mode .main{max-width:none!important;width:100%!important;margin-left:0!important;padding:0 18px 104px!important;background:
radial-gradient(circle at 20% -10%,rgba(255,47,134,.08),transparent 36%),
linear-gradient(180deg,#0b1118,#0d141c)!important}
body.sl-operator-mode .view{padding-top:12px!important}
#slRefShell{display:none}
body.sl-operator-mode #slRefShell{display:block;position:relative;z-index:1500;margin:0 -18px;background:#0c151e;border-bottom:1px solid #24313d;box-shadow:0 8px 30px rgba(0,0,0,.22)}
.sl-ref-brandrow{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 28px;border-bottom:1px solid #1d2a35}
.sl-ref-brand{display:flex;align-items:center;gap:10px;font-weight:950;letter-spacing:.04em}.sl-ref-brand strong{font-size:26px}.sl-ref-brand em{font-style:normal;color:var(--ref-pink);font-size:26px}.sl-ref-branch{color:#8fa1b4;font-weight:850;font-size:16px}
.sl-ref-user{display:flex;align-items:center;gap:18px;color:#b6c2ce;font-size:13px}.sl-ref-online{display:flex;align-items:center;gap:7px}.sl-ref-online:before{content:"";width:10px;height:10px;border-radius:50%;background:var(--ref-green);box-shadow:0 0 0 4px rgba(35,215,123,.08)}
.sl-ref-nav{display:grid;grid-template-columns:1.15fr repeat(5,1fr) .9fr;min-height:64px}
.sl-ref-nav button{border:0;border-right:1px solid #1f2d39;background:#0d1721;color:#adbac8;font-size:13px;font-weight:900;letter-spacing:.035em;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 12px}
.sl-ref-nav button:hover{background:#13202c;color:#fff}.sl-ref-nav button.active{background:linear-gradient(135deg,#ff2f86,#e52271);color:#fff;box-shadow:inset 0 -2px 0 rgba(255,255,255,.2)}
.sl-ref-nav .ico{font-size:21px;line-height:1}.sl-ref-nav button[data-ref-view="deliveries"] .ico{color:var(--ref-green)}.sl-ref-nav button[data-ref-view="online"] .ico{color:var(--ref-blue)}
#slRefMore{display:none;position:absolute;right:18px;top:116px;width:260px;padding:8px;background:#111c27;border:1px solid #2a3b4a;border-radius:14px;box-shadow:0 24px 55px rgba(0,0,0,.5);z-index:1800}
#slRefMore.open{display:block}.sl-ref-more-title{padding:8px 10px 5px;color:#718497;font-size:10px;font-weight:950;letter-spacing:.1em}
#slRefMore button{width:100%;min-height:44px;border:0;background:transparent;color:#d8e0e8;text-align:left;border-radius:9px;padding:8px 11px;font-weight:800;cursor:pointer}
#slRefMore button:hover{background:#1a2a38;color:#fff}#slRefMore .supervision{color:#ffd85c}#slRefMore .cash{color:#62e29b}#slRefMore .club{color:#ff82b8}

body.sl-operator-mode #view-dashboard>*:not(#slRefBoard){display:none!important}
#slRefBoard{display:none}
body.sl-operator-mode #view-dashboard.active-view #slRefBoard{display:block!important}
.sl-ref-board-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.sl-ref-filters{display:flex;gap:8px;flex-wrap:wrap}.sl-ref-filter{min-height:48px;border:1px solid #2a3947;border-radius:11px;background:#121d27;color:#d9e0e7;padding:8px 14px;font-weight:900;display:flex;align-items:center;gap:9px;cursor:pointer}
.sl-ref-filter b{min-width:28px;height:28px;border-radius:8px;background:#1d2c39;display:grid;place-items:center;font-size:14px}.sl-ref-filter.active{border-color:var(--ref-pink);box-shadow:0 0 0 1px var(--ref-pink) inset;color:#fff}.sl-ref-filter.active b{background:#43152d}
.sl-ref-refresh{border:1px solid #2c3d4c;background:#13202b;color:#dbe5ed;border-radius:10px;padding:10px 13px;font-weight:850;cursor:pointer}
.sl-ref-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:14px;min-height:calc(100vh - 235px)}
.sl-ref-cards{display:grid;grid-template-columns:repeat(2,minmax(300px,1fr));gap:12px;align-content:start;overflow:auto;padding:1px 4px 76px 1px}
.sl-ref-card{--accent:#8999a8;position:relative;min-height:225px;background:linear-gradient(155deg,#14202b,#101922);border:1px solid #243543;border-radius:13px;padding:16px;box-shadow:0 12px 28px rgba(0,0,0,.18);overflow:hidden}
.sl-ref-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--accent)}
.sl-ref-card.selected{box-shadow:0 0 0 2px var(--ref-pink),0 16px 35px rgba(0,0,0,.28)}
.sl-ref-card.table{--accent:var(--ref-pink)}.sl-ref-card.counter,.sl-ref-card.takeout{--accent:var(--ref-yellow)}.sl-ref-card.delivery{--accent:var(--ref-green)}.sl-ref-card.platform{--accent:var(--ref-blue)}
.sl-ref-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.sl-ref-card-id{display:flex;gap:12px;align-items:flex-start}.sl-ref-card-icon{font-size:29px;line-height:1}.sl-ref-card h3{font-size:21px;margin:0 0 3px}.sl-ref-card .type{color:#91a3b5;font-size:11px;font-weight:850;letter-spacing:.04em}.sl-ref-age{font-size:12px;font-weight:900}.sl-ref-age.warn{color:#ffd33d}.sl-ref-age.danger{color:#ff555a}.sl-ref-age.ok{color:#39df87}
.sl-ref-card-mid{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:14px 0 9px}.sl-ref-amount{font-size:34px;font-weight:950;line-height:1}.sl-ref-badge{border-radius:9px;padding:8px 12px;font-size:11px;font-weight:950;letter-spacing:.025em;background:#23313d;color:#dbe7f0}.sl-ref-badge.green{background:#0f633a;color:#68f0aa}.sl-ref-badge.blue{background:#07599c;color:#67baff}.sl-ref-badge.orange{background:#68400d;color:#ffbf45}.sl-ref-badge.pink{background:#6f1742;color:#ff86b9}
.sl-ref-meta{min-height:43px;background:#172531;border-radius:9px;padding:10px 11px;color:#bdc9d4;font-size:12px;display:flex;align-items:center;gap:8px}.sl-ref-meta strong{color:#fff}
.sl-ref-card-actions{display:grid;grid-template-columns:1fr;gap:6px;margin-top:12px}.sl-ref-card-actions button{min-height:48px;border:1px solid var(--accent);border-radius:10px;background:rgba(255,255,255,.02);color:#fff;font-weight:950;font-size:14px;cursor:pointer}.sl-ref-card-actions button.primary{background:linear-gradient(135deg,#ff2f86,#e51f70);border-color:transparent}.sl-ref-card-actions button:hover{filter:brightness(1.08)}
.sl-ref-empty{grid-column:1/-1;border:1px dashed #2c3b48;border-radius:13px;padding:36px;color:#8497aa;text-align:center}

.sl-ref-detail{background:linear-gradient(180deg,#111d28,#0f1922);border-left:1px solid #2a3947;border-radius:13px;padding:18px;overflow:auto;min-height:460px}
.sl-ref-detail.empty{display:grid;place-items:center;text-align:center;color:#75899d}.sl-ref-detail-head{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #2b3b49;padding-bottom:14px}.sl-ref-detail-head h2{margin:0;font-size:24px}.sl-ref-detail-head small{color:#8fa2b5;font-weight:850}.sl-ref-close{border:0;background:transparent;color:#d9e1e8;font-size:25px;cursor:pointer}
.sl-ref-detail-status{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.sl-ref-detail-section{border-top:1px solid #273644;padding:13px 0}.sl-ref-detail-section:first-of-type{border-top:0}.sl-ref-detail-section span{display:block;color:#8093a7;font-size:10px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.sl-ref-detail-section b{display:block;margin-top:4px;color:#f5f7fa;font-size:14px;line-height:1.35}
.sl-ref-products{display:grid;gap:8px}.sl-ref-product{display:grid;grid-template-columns:28px 1fr auto;gap:8px;color:#e5ebf1;font-size:12px}.sl-ref-product strong{white-space:nowrap}
.sl-ref-total{display:flex;justify-content:space-between;align-items:center;font-size:15px}.sl-ref-total strong{font-size:24px}
.sl-ref-payline{display:flex;justify-content:space-between;gap:8px;margin-top:6px;color:#c8d3dd;font-size:12px}.sl-ref-payline strong{color:#58e996}
.sl-ref-detail-action{width:100%;min-height:56px;border:0;border-radius:10px;background:linear-gradient(135deg,#ff2f86,#e51f70);color:#fff;font-size:15px;font-weight:950;cursor:pointer;margin-top:10px}
.sl-ref-detail-action.secondary{background:#172a38;border:1px solid #2b4354}

#slRefQuick{position:fixed;left:18px;right:18px;bottom:12px;z-index:1400;display:none;grid-template-columns:1fr 1fr 1fr;gap:12px}
body.sl-operator-mode #view-dashboard.active-view~* #slRefQuick,body.sl-operator-mode #slRefQuick{display:grid}
#slRefQuick.hidden{display:none!important}#slRefQuick button{min-height:58px;border:0;border-radius:11px;color:#0d1217;font-weight:950;font-size:16px;cursor:pointer}
#slRefQuick [data-ref-new="table"]{background:linear-gradient(135deg,#ff2f86,#ff4c96);color:#fff}#slRefQuick [data-ref-new="counter"]{background:linear-gradient(135deg,#ffd42a,#ffdf52)}#slRefQuick [data-ref-new="delivery"]{background:linear-gradient(135deg,#22ca72,#35df88);color:#fff}

body.sl-operator-mode #view-deliveries>.toolbar{min-height:58px!important;flex:0 0 auto!important}
body.sl-operator-mode #view-deliveries>.toolbar:after{content:"";display:block}
#slDeliveryNewBtn{min-height:42px;border:0;border-radius:10px;background:linear-gradient(135deg,#24cd75,#16aa60);color:#fff;padding:0 16px;font-weight:950;cursor:pointer;margin-left:8px}
body.sl-operator-mode #deliveryCards{grid-template-columns:repeat(2,minmax(340px,1fr))!important;gap:10px!important}
body.sl-operator-mode .delivery-card{background:#111c27!important;border-color:#273947!important}
body.sl-operator-mode .delivery-card-grid small,body.sl-operator-mode .delivery-card-grid span{color:#8fa2b5!important;font-size:10px!important}
body.sl-operator-mode .delivery-card-grid b{font-size:13px!important;color:#f5f8fb!important}
body.sl-operator-mode #view-pos .cart{background:#111c27!important;border:1px solid #283a48!important}
body.sl-operator-mode #view-pos select,
body.sl-operator-mode #view-pos input,
body.sl-operator-mode #view-pos textarea{background:#0d1720!important;color:#f4f7fa!important;border:1px solid #334858!important}
body.sl-operator-mode #view-pos select option{background:#111c27!important;color:#fff!important}
body.sl-operator-mode #starlikeDeliveryFields:not(.hidden){display:grid!important;background:#0d1923!important;border:1px solid #2c4555!important;padding:10px!important;gap:8px!important;border-radius:11px!important;margin:8px 0!important}
body.sl-operator-mode #starlikeDeliveryFields:before{content:"DATOS DE DOMICILIO";grid-column:1/-1;color:#41e392;font-size:11px;font-weight:950;letter-spacing:.08em}
body.sl-operator-mode #starlikeDeliveryFields label{color:#b9c8d5!important;font-size:11px!important}
body.sl-operator-mode #starlikeDeliveryFields input{height:38px!important;min-height:38px!important;font-size:13px!important}
body.sl-operator-mode #starlikeDeliveryFields textarea{height:54px!important;min-height:54px!important;max-height:80px!important;font-size:12px!important}
body.sl-operator-mode #starlikeDeliveryFields select{height:38px!important;min-height:38px!important;font-size:13px!important}

@media(min-width:1420px){.sl-ref-cards{grid-template-columns:repeat(3,minmax(280px,1fr))}.sl-ref-layout{grid-template-columns:minmax(0,1fr) 390px}}
@media(max-width:1100px){.sl-ref-nav{grid-template-columns:repeat(7,1fr)}.sl-ref-nav button{font-size:11px;padding:8px 5px}.sl-ref-layout{grid-template-columns:1fr}.sl-ref-detail{min-height:260px}.sl-ref-cards{grid-template-columns:repeat(2,minmax(260px,1fr))}}
@media(max-width:780px){
 body.sl-operator-mode .main{padding:0 10px 86px!important}.sl-ref-brandrow{height:50px;padding:0 12px}.sl-ref-brand strong,.sl-ref-brand em{font-size:19px}.sl-ref-branch{font-size:12px}.sl-ref-user{font-size:10px;gap:8px}
 .sl-ref-nav{overflow-x:auto;display:flex;min-height:55px}.sl-ref-nav button{min-width:105px;flex:0 0 auto}.sl-ref-cards{grid-template-columns:1fr;padding-bottom:74px}.sl-ref-layout{min-height:auto}.sl-ref-detail{display:none}.sl-ref-detail.open{display:block;position:fixed;left:8px;right:8px;top:114px;bottom:78px;z-index:1700;box-shadow:0 25px 70px rgba(0,0,0,.7)}
 .sl-ref-filter{min-height:40px;padding:6px 10px}.sl-ref-filter b{height:24px;min-width:24px}.sl-ref-card{min-height:195px}.sl-ref-amount{font-size:30px}
 #slRefQuick{left:8px;right:8px;bottom:8px;gap:6px}#slRefQuick button{font-size:12px;min-height:54px}
 body.sl-operator-mode #deliveryCards{grid-template-columns:1fr!important}
 body.sl-operator-mode #starlikeDeliveryFields:not(.hidden){grid-template-columns:1fr!important}
 body.sl-operator-mode #starlikeDeliveryFields .full{grid-column:1!important}
}
