:root{--bg:#f5f6f8;--card:#fff;--text:#17202a;--muted:#7a8491;--dark:#17191c;--line:#e9ebef;--accent:#d79b4a}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.login-body{min-height:100vh}.login-shell{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr}.login-brand-panel{display:flex;align-items:flex-end;padding:64px;color:white;background:linear-gradient(145deg,rgba(18,20,23,.7),rgba(18,20,23,.9)),url('https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1400&q=80') center/cover}.login-brand-panel h1{font-size:3.5rem;font-weight:800}.login-brand-panel p{font-size:1.1rem;max-width:460px;color:#e8e8e8}.brand-mark{width:64px;height:64px;border-radius:18px;background:#fff;color:#111;display:grid;place-items:center;font-size:1.75rem;margin-bottom:24px}.login-form-panel{display:grid;place-items:center;padding:40px}.login-card{width:min(440px,100%);background:#fff;padding:40px;border-radius:28px;box-shadow:0 24px 60px rgba(18,20,23,.08)}.eyebrow{font-size:.8rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent)}.login-card h2{font-weight:800;margin-top:8px}.form-control{border-radius:14px;border-color:#dfe3e8;padding:.85rem 1rem}.btn{border-radius:12px}.demo-box{padding:14px 16px;background:#f7f7f8;border-radius:12px;font-size:.9rem;color:#606a76}.app-shell{display:flex;min-height:100vh}.sidebar{width:250px;background:var(--dark);color:#fff;padding:24px 18px;position:fixed;inset:0 auto 0 0}.sidebar-brand{display:flex;align-items:center;gap:12px;font-size:1.3rem;font-weight:800;padding:8px 10px 28px}.sidebar-brand i{color:var(--accent)}.sidebar-nav{display:flex;flex-direction:column;gap:8px}.sidebar-nav a{color:#b9bec6;text-decoration:none;padding:12px 14px;border-radius:12px;display:flex;align-items:center;gap:12px}.sidebar-nav a:hover,.sidebar-nav a.active{background:#292c31;color:#fff}.main-content{margin-left:250px;min-height:100vh;width:calc(100% - 250px)}.topbar{height:82px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 30px;position:sticky;top:0;z-index:10}.user-menu{display:flex;align-items:center;gap:10px}.user-menu small{display:block;color:var(--muted)}.user-avatar{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#1d2024;color:#fff;font-weight:700}.content-area{padding:30px}.stat-card,.panel-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 30px rgba(18,20,23,.04)}.stat-card{padding:22px;display:flex;gap:16px;align-items:center}.stat-icon{width:54px;height:54px;border-radius:16px;background:#f3eee7;color:#b8792f;display:grid;place-items:center;font-size:1.3rem}.stat-card span{color:var(--muted);font-size:.9rem}.stat-card h3{margin:4px 0 0;font-weight:800}.panel-card{padding:22px}.panel-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.panel-header h5{margin:0;font-weight:800}.panel-header small{color:var(--muted)}.table thead th{color:var(--muted);font-weight:600;border-bottom-color:var(--line)}.status-pill{display:inline-flex;padding:6px 10px;border-radius:999px;background:#eef2f4;font-size:.8rem;text-transform:capitalize}.quick-actions{display:grid;gap:12px}.quick-action{border:1px solid var(--line);background:#fff;padding:16px;border-radius:14px;text-align:left;display:flex;align-items:center;gap:12px;font-weight:600}.quick-action i{font-size:1.2rem;color:var(--accent)}@media(max-width:900px){.login-shell{grid-template-columns:1fr}.login-brand-panel{display:none}.sidebar{width:82px}.sidebar span,.sidebar-nav a{font-size:0}.sidebar-nav a i{font-size:1.2rem}.main-content{margin-left:82px;width:calc(100% - 82px)}}
.page-title{font-weight:750;letter-spacing:-.03em}.table-card{background:#fff;border:1px solid #edf0f5;border-left:5px solid #adb5bd;border-radius:18px;padding:1.2rem;box-shadow:0 8px 24px rgba(31,41,55,.06);transition:.2s}.table-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(31,41,55,.1)}.table-number,.area-icon{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;background:#f2f5ff;color:#5b63e6;font-size:1.25rem}.status-dot{width:12px;height:12px;border-radius:50%;background:#adb5bd}.status-available{border-left-color:#20c997}.status-available .status-dot{background:#20c997}.status-occupied{border-left-color:#dc3545}.status-occupied .status-dot{background:#dc3545}.status-reserved{border-left-color:#6f42c1}.status-reserved .status-dot{background:#6f42c1}.status-payment_pending{border-left-color:#ffc107}.status-payment_pending .status-dot{background:#ffc107}.status-cleaning{border-left-color:#0dcaf0}.status-cleaning .status-dot{background:#0dcaf0}.permission-table th,.permission-table td{vertical-align:middle;padding:.9rem 1rem}.form-control,.form-select{border-radius:10px;padding:.7rem .85rem}.btn{border-radius:10px}
.product-card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 8px 24px rgba(31,41,55,.06);transition:.2s}.product-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px rgba(31,41,55,.1)}.product-image{height:190px;background:#f1f3f5;display:grid;place-items:center;position:relative;color:#adb5bd;font-size:2.5rem}.product-image img{width:100%;height:100%;object-fit:cover}.image-upload-preview{height:260px;border:2px dashed #dfe3e8;border-radius:18px;background:#f8f9fa;display:grid;place-items:center;overflow:hidden;color:#adb5bd;font-size:3rem}.image-upload-preview img{width:100%;height:100%;object-fit:cover}
.product-btn{border:0;transition:.2s}.product-btn:hover{transform:translateY(-3px);box-shadow:0 .5rem 1rem rgba(0,0,0,.12)}.kitchen-card{border-top:4px solid var(--bs-warning)}

/* Entrega 7: navegación lateral compacta, desplazable y responsive */
:root{--sidebar-width:232px;--sidebar-bg:#15181d;--sidebar-hover:#262b32;--sidebar-text:#c8ced7;--sidebar-muted:#78818d}
.app-shell{display:flex;min-height:100vh}
.sidebar{width:var(--sidebar-width);height:100vh;position:fixed;inset:0 auto 0 0;z-index:1040;background:var(--sidebar-bg);color:#fff;padding:14px 12px;display:flex;flex-direction:column;overflow:hidden;box-shadow:12px 0 30px rgba(15,23,42,.08)}
.sidebar-brand{display:flex;align-items:center;gap:10px;min-height:58px;padding:4px 6px 12px;flex:0 0 auto;border-bottom:1px solid rgba(255,255,255,.07)}
.brand-icon{width:38px;height:38px;border-radius:12px;background:rgba(215,155,74,.14);color:var(--accent);display:grid;place-items:center;font-size:1.15rem;flex:0 0 auto}
.brand-copy{display:flex;flex-direction:column;line-height:1.15}.brand-copy>span{font-size:1rem;font-weight:800}.brand-copy small{font-size:.7rem;color:#929aa5;margin-top:4px}
.sidebar-close{margin-left:auto;border:0;background:transparent;color:#fff;font-size:1.1rem;padding:6px}
.sidebar-nav{display:block;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 3px 18px;scrollbar-width:thin;scrollbar-color:#3a4048 transparent}
.sidebar-nav::-webkit-scrollbar{width:6px}.sidebar-nav::-webkit-scrollbar-thumb{background:#3a4048;border-radius:999px}.sidebar-nav::-webkit-scrollbar-track{background:transparent}
.nav-section{margin-bottom:12px}.nav-section-title{display:block;padding:0 10px 5px;color:var(--sidebar-muted);font-size:.64rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase}
.sidebar-nav a{min-height:38px;color:var(--sidebar-text);text-decoration:none;padding:8px 10px;border-radius:10px;display:flex;align-items:center;gap:10px;font-size:.86rem;line-height:1.1;margin:2px 0;transition:background .16s ease,color .16s ease,transform .16s ease}
.sidebar-nav a i{width:18px;text-align:center;font-size:1rem;flex:0 0 auto}.sidebar-nav a:hover,.sidebar-nav a.active{background:var(--sidebar-hover);color:#fff}.sidebar-nav a:hover{transform:translateX(2px)}
.sidebar-footer{flex:0 0 auto;border-top:1px solid rgba(255,255,255,.08);padding:12px 4px 2px;background:var(--sidebar-bg)}
.sidebar-user{display:flex;align-items:center;gap:9px;margin-bottom:10px}.sidebar-user-copy{min-width:0;display:flex;flex-direction:column}.sidebar-user-copy strong{font-size:.8rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-user-copy small{font-size:.7rem;color:#8f98a4}
.main-content{margin-left:var(--sidebar-width);min-height:100vh;width:calc(100% - var(--sidebar-width));transition:margin .2s ease,width .2s ease}.topbar{height:70px;padding:0 24px}.content-area{padding:24px}.menu-toggle{display:none;width:40px;height:40px;border:1px solid var(--line);border-radius:11px;background:#fff;font-size:1.25rem;place-items:center}.topbar-user{align-items:center;gap:9px}.topbar-user small{display:block;color:var(--muted);font-size:.75rem}.topbar-user strong{display:block;font-size:.85rem}
.sidebar-backdrop{display:none}
@media(max-height:760px){.sidebar{padding-top:8px;padding-bottom:8px}.sidebar-brand{min-height:50px}.sidebar-nav{padding-top:8px}.nav-section{margin-bottom:8px}.sidebar-nav a{min-height:34px;padding-top:7px;padding-bottom:7px}.sidebar-footer{padding-top:8px}.sidebar-user{display:none}}
@media(max-width:991.98px){.sidebar{transform:translateX(-100%);transition:transform .22s ease;width:min(280px,86vw)}.sidebar.is-open{transform:translateX(0)}.main-content{margin-left:0;width:100%}.menu-toggle{display:grid}.sidebar-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.46);z-index:1035}.sidebar-backdrop.is-open{display:block}.content-area{padding:18px}.topbar{padding:0 16px}}
@media(max-width:575.98px){.topbar{height:64px}.content-area{padding:14px}.panel-card,.stat-card{border-radius:16px}}
/* Entrega 8: POS táctil */
.pos-shell{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:1rem;min-height:calc(100vh - 120px)}
.pos-catalog,.pos-ticket{background:#fff;border:1px solid var(--line);border-radius:18px;padding:1rem}
.pos-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.pos-search{display:flex;align-items:center;gap:.55rem;border:1px solid var(--line);border-radius:12px;padding:.65rem .85rem;min-width:280px}.pos-search input{border:0;outline:0;width:100%;background:transparent}
.pos-categories{display:flex;gap:.55rem;overflow:auto;padding-bottom:.6rem;margin-bottom:.5rem}.pos-categories button{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:.55rem 1rem}.pos-categories button.active{background:var(--dark);color:#fff;border-color:var(--dark)}
.pos-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:.8rem}.pos-product{border:1px solid var(--line);background:#fff;border-radius:15px;padding:.65rem;text-align:left;display:flex;flex-direction:column;gap:.25rem;min-height:190px;transition:.15s}.pos-product:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(0,0,0,.08)}.pos-product-image{height:92px;border-radius:11px;background:#f3f4f6;display:grid;place-items:center;overflow:hidden;margin-bottom:.3rem}.pos-product-image img{width:100%;height:100%;object-fit:cover}.pos-product-image i{font-size:2rem;color:#9aa0a6}.pos-product-category{font-size:.72rem;color:var(--muted)}.pos-product b{color:#b77720;margin-top:auto}
.pos-ticket{display:flex;flex-direction:column;position:sticky;top:1rem;height:calc(100vh - 120px)}.pos-ticket-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:.8rem;border-bottom:1px solid var(--line);margin-bottom:.8rem}.pos-cart{overflow:auto;min-height:160px;padding-right:.25rem}.pos-empty{height:180px;display:grid;place-items:center;align-content:center;color:var(--muted);gap:.5rem}.pos-empty i{font-size:2.4rem}.pos-cart-item{display:flex;align-items:center;justify-content:space-between;gap:.7rem;padding:.75rem 0;border-bottom:1px solid var(--line)}.pos-cart-item small{display:block;color:var(--muted)}.pos-qty{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;overflow:hidden}.pos-qty button{border:0;background:#f5f6f8;width:32px;height:32px}.pos-qty span{width:34px;text-align:center;font-weight:700}.pos-summary{display:grid;grid-template-columns:1fr auto;gap:.45rem;font-size:1.05rem}.pos-summary strong:last-child{font-size:1.45rem}
@media(max-width:1100px){.pos-shell{grid-template-columns:1fr}.pos-ticket{position:relative;height:auto;top:auto}.pos-search{min-width:220px}}
@media(max-width:620px){.pos-toolbar{align-items:stretch;flex-direction:column}.pos-search{min-width:0}.pos-products{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-shell{margin:-.5rem}.pos-catalog,.pos-ticket{border-radius:14px}.pos-product{min-height:165px}.pos-product-image{height:72px}}
/* Entrega 9: venta rápida */
.quick-sale-shell .pos-ticket{border-top:4px solid #198754}.quick-change{display:flex;justify-content:space-between;align-items:center;background:#ecfdf3;border:1px solid #bbf7d0;border-radius:12px;padding:.7rem .85rem}.quick-change strong{font-size:1.15rem;color:#157347}

/* Entrega 10 parte 2: tarjetas de producto aisladas para evitar reglas heredadas */
.restaurant-product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));gap:1.25rem;align-items:stretch}
.restaurant-product-card{min-width:0;background:#fff;border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 8px 24px rgba(31,41,55,.07);display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .18s ease}
.restaurant-product-card:hover{transform:translateY(-3px);box-shadow:0 15px 34px rgba(31,41,55,.12)}
.restaurant-product-media{position:relative;width:100%;height:220px;min-height:220px;max-height:220px;overflow:hidden;background:#f1f3f5;display:grid;place-items:center;color:#a2a9b2;font-size:2.6rem}
.restaurant-product-media img{display:block;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;object-fit:cover!important;object-position:center}
.restaurant-product-status{position:absolute;top:12px;right:12px}
.restaurant-product-body{padding:1rem;display:flex;flex-direction:column;flex:1;min-height:205px}
.restaurant-product-meta{font-size:.78rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.restaurant-product-name{font-size:1.05rem;line-height:1.3;font-weight:800;margin:.35rem 0 .8rem;min-height:2.7em;overflow-wrap:anywhere}
.restaurant-product-values{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:.65rem}.restaurant-product-values>strong{font-size:1.28rem}
.restaurant-product-actions{display:flex;gap:.65rem;margin-top:1rem}.restaurant-product-actions form{margin:0}.restaurant-product-actions .btn{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:.35rem}
@media(max-width:575.98px){.restaurant-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.restaurant-product-media{height:145px;min-height:145px;max-height:145px}.restaurant-product-body{padding:.8rem;min-height:190px}.restaurant-product-name{font-size:.95rem}.restaurant-product-actions .btn{font-size:.84rem;padding:.45rem}.restaurant-product-values{align-items:flex-start;flex-direction:column}}

/* Caja detallada */
.cash-order-card{border:1px solid var(--line);border-radius:18px;background:#fff;overflow:hidden}.cash-order-head{display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.1rem;background:#fbfbfc;border-bottom:1px solid var(--line)}.cash-order-items{padding:.5rem 1.1rem}.cash-item-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:.75rem;padding:.75rem 0;border-bottom:1px solid var(--line)}.cash-item-row:last-child{border-bottom:0}.cash-item-name{font-weight:700}.cash-item-name small{display:block;color:var(--muted);font-weight:400}.cash-order-footer{padding:1rem 1.1rem;border-top:1px solid var(--line);background:#fbfbfc}.split-total{font-size:1.35rem;font-weight:850}.cash-pay-grid{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:.65rem;align-items:end}@media(max-width:767.98px){.cash-item-row{grid-template-columns:auto minmax(0,1fr) auto}.cash-item-subtotal{grid-column:2/4}.cash-pay-grid{grid-template-columns:1fr 1fr}.cash-pay-grid .cash-pay-button{grid-column:1/-1}}

/* Entrega 10 Parte 4: caja compacta y cobro modal */
.cash-orders-table thead th{white-space:nowrap;background:#f8fafc;color:#64748b;font-size:.82rem;text-transform:uppercase;letter-spacing:.03em;padding:14px 16px}.cash-orders-table tbody td{padding:15px 16px}.cash-orders-table tbody tr:hover{background:#f8fafc}.payment-modal .modal-content{border-radius:18px;overflow:hidden}.payment-modal .modal-header{padding:18px 22px}.modal-cash-items{max-height:62vh;overflow:auto}.modal-cash-items .cash-item-row{grid-template-columns:auto minmax(180px,1fr) 90px 110px;padding:15px 20px}.payment-summary-sticky{position:sticky;top:0}.payment-modal .split-total{font-size:2rem}.payment-modal .split-qty{width:90px}@media(max-width:991.98px){.payment-modal .border-end{border-right:0!important;border-bottom:1px solid #dee2e6}.modal-cash-items{max-height:45vh}.payment-summary-sticky{position:static}}@media(max-width:575.98px){.modal-cash-items .cash-item-row{grid-template-columns:auto 1fr 75px}.modal-cash-items .cash-item-subtotal{grid-column:2/4;text-align:right}.cash-orders-table th:nth-child(3),.cash-orders-table td:nth-child(3),.cash-orders-table th:nth-child(4),.cash-orders-table td:nth-child(4){display:none}}


/* Entrega 10 Parte 5: cobro rápido compacto y botón siempre visible */
.quick-sale-shell .pos-ticket{overflow:hidden}
.quick-sale-shell .pos-cart{flex:1;min-height:120px}
.quick-sale-shell .quick-sale-actions{position:sticky;bottom:-1rem;margin:1rem -1rem -1rem;padding:.85rem 1rem 1rem;background:#fff;border-top:1px solid var(--line);z-index:4;box-shadow:0 -10px 22px rgba(15,23,42,.06)}
.quick-sale-shell .quick-sale-actions .btn{min-height:54px;font-weight:800}
@media(max-width:1100px){.quick-sale-shell .pos-ticket{overflow:visible}.quick-sale-shell .quick-sale-actions{bottom:0;margin-left:-1rem;margin-right:-1rem}}


/* Entrega 10 - Parte 8: tarjetas visuales de Nuevo pedido */
.order-product-search{max-width:340px}
.order-product-card{
  width:100%;height:100%;min-height:300px;border:1px solid #e2e8f0;border-radius:20px;
  background:#fff;padding:12px;text-align:left;display:flex;flex-direction:column;gap:8px;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;overflow:hidden;
}
.order-product-card:hover,.order-product-card:focus{
  transform:translateY(-2px);border-color:#86b7fe;box-shadow:0 12px 28px rgba(15,23,42,.10);outline:none;
}
.order-product-card:active{transform:scale(.985)}
.order-product-image{
  width:100%;aspect-ratio:4/3;border-radius:15px;overflow:hidden;background:#f1f5f9;
  display:flex;align-items:center;justify-content:center;
}
.order-product-image img{width:100%;height:100%;object-fit:cover;display:block}
.order-product-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#94a3b8;font-size:2.4rem}
.order-product-category{font-size:.86rem;color:#64748b;margin-top:2px}
.order-product-name{font-size:1.03rem;line-height:1.25;color:#111827;min-height:2.55em}
.order-product-price{font-size:1.16rem;color:#b76e00;margin-top:auto}
.order-cart-list{max-height:42vh;overflow:auto;padding-right:4px}
@media(max-width:575.98px){
  .order-product-card{min-height:235px;padding:9px;border-radius:15px}
  .order-product-name{font-size:.92rem}.order-product-price{font-size:1rem}
  .order-product-search{max-width:none;width:100%}
}

/* Entrega 11 - Parte 5: carrito compacto y cobro siempre visible */
.quick-sale-shell .pos-ticket{
  height:calc(100vh - 104px);
  min-height:560px;
}
.quick-sale-shell .pos-ticket-head{
  flex:0 0 auto;
  margin-bottom:.55rem;
  padding-bottom:.55rem;
}
.quick-sale-shell .pos-ticket > .form-label{
  margin-bottom:.25rem;
}
.quick-sale-shell .pos-ticket > .form-select{
  flex:0 0 auto;
  margin-bottom:.55rem!important;
  padding:.6rem .8rem;
}
.quick-sale-shell .pos-cart{
  flex:1 1 auto;
  min-height:0;
  max-height:none;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
  padding:0 .35rem 0 0;
  margin-bottom:.45rem;
}
.quick-sale-shell .pos-cart-item{
  padding:.42rem 0;
  min-height:48px;
}
.quick-sale-shell .pos-cart-item strong{
  display:block;
  max-width:190px;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  font-size:.92rem;
}
.quick-sale-shell .pos-cart-item small{
  font-size:.78rem;
}
.quick-sale-shell .pos-qty button{
  width:28px;
  height:28px;
}
.quick-sale-shell .pos-qty span{
  width:30px;
  font-size:.9rem;
}
.quick-sale-shell .pos-ticket > .mt-auto{
  flex:0 0 auto;
  margin-top:0!important;
  background:#fff;
}
.quick-sale-shell .pos-summary{
  margin-bottom:.55rem!important;
  gap:.2rem .45rem;
  font-size:.95rem;
}
.quick-sale-shell .pos-summary strong:last-child{
  font-size:1.25rem;
}
.quick-sale-shell .row.g-2 .form-label{
  margin-bottom:.25rem;
  font-size:.85rem;
}
.quick-sale-shell .row.g-2 .form-select,
.quick-sale-shell .row.g-2 .form-control{
  padding:.58rem .7rem;
}
.quick-sale-shell .quick-change{
  margin-top:.45rem!important;
  padding:.55rem .7rem;
}
.quick-sale-shell .quick-sale-actions{
  position:static;
  margin:.55rem 0 0;
  padding:0;
  border-top:0;
  box-shadow:none;
}
.quick-sale-shell .quick-sale-actions .btn{
  min-height:48px;
}
@media(max-width:1100px){
  .quick-sale-shell .pos-ticket{
    height:min(72vh,760px);
    min-height:520px;
    overflow:hidden;
  }
  .quick-sale-shell .pos-cart{
    min-height:180px;
  }
}
@media(max-width:620px){
  .quick-sale-shell .pos-ticket{
    height:calc(100dvh - 92px);
    min-height:520px;
    position:relative;
  }
  .quick-sale-shell .pos-cart-item strong{
    max-width:150px;
  }
}

/* Entrega 11 - Parte 6: cambio siempre visible en Venta rápida */
.quick-sale-shell .pos-ticket > .mt-auto{
  display:flex;
  flex-direction:column;
  gap:.5rem;
  min-height:0;
  padding-bottom:0;
}
.quick-sale-shell .quick-change{
  display:flex!important;
  flex:0 0 auto;
  min-height:56px;
  margin:.15rem 0 0!important;
  padding:.7rem .85rem!important;
  position:relative;
  z-index:8;
  background:#ecfdf3;
  border:1px solid #86efac;
  box-shadow:0 4px 12px rgba(22,163,74,.08);
}
.quick-sale-shell .quick-change strong{
  font-size:1.35rem;
  line-height:1;
}
.quick-sale-shell .quick-sale-actions{
  position:static!important;
  inset:auto!important;
  flex:0 0 auto;
  margin:0!important;
  padding:0!important;
  transform:none!important;
  z-index:auto!important;
  box-shadow:none!important;
  border:0!important;
  background:transparent!important;
}
.quick-sale-shell .quick-sale-actions .btn{
  min-height:54px;
}
@media(max-height:760px) and (min-width:1101px){
  .quick-sale-shell .pos-ticket{
    height:calc(100vh - 88px);
    min-height:500px;
  }
  .quick-sale-shell .pos-ticket-head{margin-bottom:.35rem;padding-bottom:.4rem}
  .quick-sale-shell .pos-ticket > .form-select{margin-bottom:.35rem!important;padding:.45rem .65rem}
  .quick-sale-shell .pos-cart{min-height:65px}
  .quick-sale-shell .pos-empty{height:90px}
  .quick-sale-shell .pos-summary{margin-bottom:.25rem!important}
  .quick-sale-shell .row.g-2 .form-select,
  .quick-sale-shell .row.g-2 .form-control{padding:.45rem .6rem}
}

/* Entrega 11 - Parte 7: nuevo diseño de inicio de sesión */
.login-v2-body{
  min-height:100vh;
  overflow-x:hidden;
  background:#f4f7fb;
}
.login-v2-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(480px,1.08fr) minmax(420px,.92fr);
}
.login-v2-showcase{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  padding:42px clamp(38px,6vw,92px) 54px;
  color:#fff;
  background:
    radial-gradient(circle at 15% 20%,rgba(49,196,141,.35),transparent 30%),
    linear-gradient(145deg,#0a1f1a 0%,#11392d 48%,#0c5a3f 100%);
}
.login-v2-showcase::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  opacity:.16;
  background-image:linear-gradient(rgba(255,255,255,.16) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.16) 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,black,transparent 84%);
}
.login-v2-glow{
  position:absolute;
  z-index:-1;
  border-radius:50%;
  filter:blur(10px);
  opacity:.45;
}
.login-v2-glow-one{width:360px;height:360px;right:-160px;top:8%;background:#20d58a}
.login-v2-glow-two{width:280px;height:280px;left:-150px;bottom:5%;background:#f4b942;opacity:.2}
.login-v2-brand,.login-v2-mobile-brand{
  display:flex;
  align-items:center;
  gap:13px;
  font-size:1.05rem;
  font-weight:800;
  letter-spacing:-.02em;
}
.login-v2-logo{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:#0b3c2b;
  background:#fff;
  box-shadow:0 14px 34px rgba(0,0,0,.16);
  font-size:1.35rem;
}
.login-v2-copy{max-width:660px;margin:58px 0 42px}
.login-v2-kicker{
  display:inline-flex;
  padding:8px 13px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:999px;
  background:rgba(255,255,255,.09);
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.login-v2-copy h1{
  max-width:650px;
  margin:22px 0 18px;
  font-size:clamp(2.8rem,5vw,5.3rem);
  line-height:.98;
  letter-spacing:-.065em;
  font-weight:850;
}
.login-v2-copy>p{max-width:570px;margin:0;color:rgba(255,255,255,.74);font-size:1.08rem;line-height:1.75}
.login-v2-features{display:flex;flex-wrap:wrap;gap:12px;margin-top:32px}
.login-v2-features div{
  display:flex;
  align-items:center;
  gap:9px;
  padding:10px 13px;
  border-radius:13px;
  color:rgba(255,255,255,.9);
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  backdrop-filter:blur(9px);
  font-size:.88rem;
  font-weight:700;
}
.login-v2-features i{color:#69e1aa}
.login-v2-preview{
  width:min(620px,100%);
  padding:14px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:25px;
  background:rgba(255,255,255,.09);
  box-shadow:0 28px 80px rgba(0,0,0,.18);
  backdrop-filter:blur(14px);
}
.login-v2-preview-top{display:flex;gap:6px;padding:2px 2px 13px}
.login-v2-preview-top span{width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.46)}
.login-v2-preview-grid{display:grid;grid-template-columns:1fr 1fr 1.55fr;gap:10px}
.login-v2-preview-stat,.login-v2-preview-chart{min-height:108px;border-radius:17px;background:rgba(255,255,255,.94);color:#14211d;padding:16px}
.login-v2-preview-stat{display:flex;flex-direction:column;justify-content:center}
.login-v2-preview-stat i{color:#188b61;font-size:1.25rem;margin-bottom:8px}
.login-v2-preview-stat b{font-size:.9rem}.login-v2-preview-stat small{color:#7b8782;margin-top:2px}
.login-v2-preview-chart{display:flex;align-items:flex-end;justify-content:space-between;gap:7px;padding:20px 18px}
.login-v2-preview-chart span{width:17%;border-radius:8px 8px 3px 3px;background:linear-gradient(#32bd82,#177553)}
.login-v2-preview-chart span:nth-child(1){height:33%}.login-v2-preview-chart span:nth-child(2){height:58%}.login-v2-preview-chart span:nth-child(3){height:44%}.login-v2-preview-chart span:nth-child(4){height:78%}.login-v2-preview-chart span:nth-child(5){height:64%}
.login-v2-form-side{
  display:grid;
  place-items:center;
  padding:40px clamp(28px,6vw,88px);
  background:linear-gradient(145deg,#fff,#f6f8fb 72%);
}
.login-v2-card{width:min(470px,100%)}
.login-v2-mobile-brand{display:none;margin-bottom:42px;color:#12211c}
.login-v2-heading>span{color:#15875e;font-size:.78rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.login-v2-heading h2{margin:8px 0 9px;font-size:clamp(2.2rem,4vw,3.1rem);font-weight:850;letter-spacing:-.05em;color:#121d19}
.login-v2-heading p{margin:0 0 34px;color:#78837f;font-size:1rem}
.login-v2-alert{display:flex;align-items:center;gap:10px;border:0;border-radius:14px;padding:13px 15px}
.login-v2-form{display:grid;gap:22px}
.login-v2-field label{display:block;margin-bottom:9px;color:#24302c;font-size:.9rem;font-weight:750}
.login-v2-input-wrap{position:relative;display:flex;align-items:center}
.login-v2-input-wrap>i{
  position:absolute;
  left:17px;
  z-index:2;
  color:#8b9692;
  font-size:1.12rem;
  pointer-events:none;
}
.login-v2-input-wrap input{
  width:100%;
  height:58px;
  padding:0 50px 0 49px;
  border:1px solid #dce3e0;
  border-radius:16px;
  background:#fff;
  color:#18231f;
  outline:0;
  font:inherit;
  transition:border-color .2s,box-shadow .2s,background .2s;
}
.login-v2-input-wrap input::placeholder{color:#9ca6a2}
.login-v2-input-wrap input:focus{border-color:#1d9b6d;box-shadow:0 0 0 4px rgba(29,155,109,.12);background:#fff}
.login-v2-password-toggle{
  position:absolute;
  right:10px;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:11px;
  color:#6f7b76;
  background:transparent;
}
.login-v2-password-toggle:hover{color:#167b58;background:#eef8f4}
.login-v2-submit{
  height:58px;
  margin-top:3px;
  padding:0 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  border:0;
  border-radius:16px;
  color:#fff;
  background:linear-gradient(135deg,#188b61,#0d6f4b);
  box-shadow:0 16px 30px rgba(17,126,87,.22);
  font-size:1rem;
  font-weight:800;
  transition:transform .18s,box-shadow .18s,filter .18s;
}
.login-v2-submit:hover{transform:translateY(-1px);filter:brightness(1.04);box-shadow:0 19px 36px rgba(17,126,87,.28)}
.login-v2-submit:active{transform:translateY(0)}
.login-v2-footer{margin:27px 0 0;text-align:center;color:#909a96;font-size:.82rem}
@media(max-width:980px){
  .login-v2-shell{grid-template-columns:1fr}
  .login-v2-showcase{display:none}
  .login-v2-form-side{min-height:100vh;padding:32px 24px}
  .login-v2-mobile-brand{display:flex}
  .login-v2-card{padding:32px;border:1px solid #e7ece9;border-radius:26px;background:#fff;box-shadow:0 22px 60px rgba(31,55,46,.08)}
}
@media(max-width:520px){
  .login-v2-form-side{padding:18px;background:#fff}
  .login-v2-card{padding:20px 4px;border:0;box-shadow:none}
  .login-v2-mobile-brand{margin-bottom:38px}
  .login-v2-heading h2{font-size:2.25rem}
}

.sidebar-dashboard-link{min-height:44px!important;margin:10px 3px 12px!important;font-weight:800!important;background:rgba(255,255,255,.04)}
.nav-accordion{margin:4px 0;border-radius:12px;overflow:hidden}
.nav-group-toggle{width:100%;min-height:42px;border:0;background:transparent;color:var(--sidebar-text);padding:9px 10px;border-radius:10px;display:flex;align-items:center;justify-content:space-between;font-size:.86rem;font-weight:700;transition:background .18s ease,color .18s ease}
.nav-group-toggle:hover,.nav-accordion.is-open>.nav-group-toggle{background:var(--sidebar-hover);color:#fff}
.nav-group-label{display:flex;align-items:center;gap:10px}.nav-group-label>i{width:18px;text-align:center;font-size:1rem}
.nav-group-arrow{font-size:.72rem;transition:transform .2s ease}.nav-accordion.is-open .nav-group-arrow{transform:rotate(180deg)}
.nav-group-content{display:grid;grid-template-rows:0fr;transition:grid-template-rows .22s ease}.nav-group-content>*{overflow:hidden}
.nav-accordion.is-open .nav-group-content{grid-template-rows:1fr}.nav-group-content::before{content:"";display:block;min-height:0}
.nav-group-content a{margin-left:13px!important;padding-left:14px!important;border-left:1px solid rgba(255,255,255,.08);border-radius:0 10px 10px 0!important}
.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px;padding:4px 2px}
.dashboard-eyebrow,.dashboard-panel-kicker{display:block;font-size:.72rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#1d8e5f}
.dashboard-hero h1{font-size:clamp(1.8rem,3vw,2.6rem);font-weight:850;margin:6px 0 4px}.dashboard-hero p{margin:0;color:var(--muted)}
.dashboard-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.dashboard-hero-actions .btn{padding:.78rem 1.1rem;font-weight:700}
.dashboard-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
.metric-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 12px 30px rgba(15,23,42,.045);display:flex;flex-direction:column;min-height:174px}
.metric-topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.metric-icon{width:46px;height:46px;border-radius:14px;background:#eef6f2;color:#16885a;display:grid;place-items:center;font-size:1.2rem}.metric-trend{display:inline-flex;align-items:center;gap:4px;border-radius:999px;padding:5px 9px;background:#eaf8f1;color:#178153;font-size:.76rem;font-weight:800}.metric-trend.is-negative{background:#fff0f1;color:#d43d4f}
.metric-label{font-size:.82rem;color:var(--muted);font-weight:700}.metric-card>strong{font-size:1.65rem;line-height:1.2;margin:6px 0 8px}.metric-card>small{color:var(--muted)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(290px,.75fr);gap:18px;margin-bottom:18px}.dashboard-grid-secondary{grid-template-columns:minmax(0,1.55fr) minmax(300px,.75fr)}
.dashboard-panel{background:#fff;border:1px solid var(--line);border-radius:22px;padding:22px;box-shadow:0 12px 30px rgba(15,23,42,.045);min-width:0}.dashboard-panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.dashboard-panel-header h2{font-size:1.14rem;font-weight:850;margin:4px 0 0}.dashboard-panel-badge{padding:6px 10px;border-radius:999px;background:#f1f5f3;color:#16885a;font-size:.76rem;font-weight:800}.dashboard-link{font-size:.82rem;font-weight:800;text-decoration:none}
.sales-chart{height:270px;display:grid;grid-template-columns:repeat(24,minmax(16px,1fr));gap:5px;align-items:end;padding-top:28px;overflow-x:auto}.sales-chart-column{height:100%;min-width:18px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;position:relative}.sales-chart-value{position:absolute;top:-3px;font-size:.58rem;color:var(--muted);opacity:0;white-space:nowrap}.sales-chart-column:hover .sales-chart-value{opacity:1}.sales-chart-bar{width:100%;max-width:22px;min-height:5px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,#23b77a,#16885a);transition:height .3s ease,filter .2s ease}.sales-chart-column:hover .sales-chart-bar{filter:brightness(.9)}.sales-chart-column small{font-size:.6rem;color:var(--muted)}
.status-summary{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:12px;text-decoration:none;color:var(--text);padding:12px 0;border-bottom:1px solid var(--line)}.status-summary:last-child{border-bottom:0}.status-summary-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center}.status-summary-icon.is-orange{background:#fff5e7;color:#d78317}.status-summary-icon.is-red{background:#fff0f1;color:#dc4052}.status-summary-icon.is-blue{background:#edf4ff;color:#377be8}.status-summary-icon.is-green{background:#eaf8f1;color:#16885a}.status-summary span:nth-child(2){display:flex;flex-direction:column}.status-summary strong{font-size:1.08rem}.status-summary small{color:var(--muted)}.status-summary>i{color:#a9b1bc}
.dashboard-table th{font-size:.76rem;text-transform:uppercase;letter-spacing:.05em}.dashboard-table td{padding-top:14px;padding-bottom:14px}.dashboard-table td small{display:block;color:var(--muted);font-size:.72rem}.dashboard-status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:.72rem;font-weight:800;background:#eef2f4}.dashboard-status.status-paid{background:#eaf8f1;color:#14784f}.dashboard-status.status-cancelled{background:#fff0f1;color:#c73547}.dashboard-status.status-open,.dashboard-status.status-preparing,.dashboard-status.status-ready{background:#fff5e7;color:#b56b0a}
.top-products-list{display:grid;gap:4px}.top-product-item{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid var(--line)}.top-product-item:last-child{border-bottom:0}.top-product-position{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#f2f4f7;color:#626d79;font-weight:850}.top-product-copy{display:flex;flex-direction:column;min-width:0}.top-product-copy strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-product-copy small{color:var(--muted)}.dashboard-empty{padding:28px 10px;text-align:center;color:var(--muted)}
@media(max-width:1199.98px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-grid,.dashboard-grid-secondary{grid-template-columns:1fr}}
@media(max-width:767.98px){.dashboard-hero{align-items:flex-start;flex-direction:column}.dashboard-hero-actions{width:100%}.dashboard-hero-actions .btn{flex:1}.dashboard-metrics{grid-template-columns:1fr}.metric-card{min-height:150px}.dashboard-panel{padding:17px}.sales-chart{height:220px}.dashboard-table{min-width:700px}}
.nav-group-content{display:block;max-height:0;overflow:hidden;transition:max-height .24s ease}.nav-accordion.is-open .nav-group-content{max-height:420px}.nav-group-content::before{display:none}

.nav-group-toggle{cursor:pointer;position:relative;z-index:1}.nav-group-toggle *{pointer-events:none}.nav-group-content{visibility:hidden}.nav-accordion.is-open .nav-group-content{visibility:visible}
.dashboard-shortcuts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.dashboard-shortcut{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;padding:15px 16px;background:#fff;border:1px solid var(--line);border-radius:17px;color:inherit;text-decoration:none;box-shadow:0 9px 24px rgba(15,23,42,.035);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.dashboard-shortcut:hover{transform:translateY(-2px);border-color:#b9dccc;box-shadow:0 14px 30px rgba(15,23,42,.07);color:inherit}.dashboard-shortcut-icon{width:42px;height:42px;border-radius:13px;background:#edf8f3;color:#16885a;display:grid;place-items:center;font-size:1.05rem}.dashboard-shortcut span:nth-child(2){display:flex;flex-direction:column;min-width:0}.dashboard-shortcut strong{font-size:.88rem}.dashboard-shortcut small{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-shortcut>.bi{color:#81908a}.metric-card-link{color:inherit;text-decoration:none;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.metric-card-link:hover{color:inherit;transform:translateY(-3px);border-color:#b9dccc;box-shadow:0 16px 34px rgba(15,23,42,.075)}@media(max-width:1199.98px){.dashboard-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767.98px){.dashboard-shortcuts{grid-template-columns:1fr}.dashboard-shortcut{padding:13px 14px}}

.floor-map-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.floor-map-hero h1{font-size:clamp(1.8rem,3vw,2.45rem);font-weight:850;margin:5px 0 4px}.floor-map-hero p{color:var(--muted);margin:0}.floor-map-actions{display:flex;gap:10px;flex-wrap:wrap}.floor-map-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-bottom:16px}.floor-stat{appearance:none;border:1px solid var(--line);background:#fff;border-radius:17px;padding:14px 15px;display:flex;align-items:center;gap:12px;text-align:left;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.floor-stat:hover,.floor-stat.is-active{transform:translateY(-1px);border-color:#a8d9c4;box-shadow:0 11px 26px rgba(15,23,42,.06)}.floor-stat span:last-child{display:flex;flex-direction:column}.floor-stat small{color:var(--muted);font-weight:700}.floor-stat strong{font-size:1.25rem}.floor-stat-icon{width:34px;height:34px;border-radius:11px;background:#eef7f3;color:#16885a;display:grid;place-items:center}.floor-stat-dot{width:14px;height:14px;border-radius:999px;box-shadow:0 0 0 6px rgba(15,23,42,.04)}.floor-stat-dot.status-available,.floor-map-legend .status-available,.floor-table.status-available .floor-table-state i{background:#21a66f}.floor-stat-dot.status-occupied,.floor-map-legend .status-occupied,.floor-table.status-occupied .floor-table-state i{background:#e34c5d}.floor-stat-dot.status-reserved,.floor-map-legend .status-reserved,.floor-table.status-reserved .floor-table-state i{background:#e6a11b}.floor-stat-dot.status-payment_pending,.floor-map-legend .status-payment_pending,.floor-table.status-payment_pending .floor-table-state i{background:#3a7ee8}.floor-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border:1px solid var(--line);border-radius:17px;padding:11px 13px;margin-bottom:22px}.floor-map-search{display:flex;align-items:center;gap:9px;flex:1;max-width:460px;color:var(--muted)}.floor-map-search input{border:0;outline:0;width:100%;background:transparent;color:var(--text)}.floor-map-legend{display:flex;align-items:center;gap:15px;flex-wrap:wrap;color:var(--muted);font-size:.78rem;font-weight:700}.floor-map-legend span{display:flex;align-items:center;gap:6px}.floor-map-legend i{width:8px;height:8px;border-radius:999px}.floor-area{margin-bottom:26px}.floor-area-header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:13px;padding:0 2px}.floor-area-header h2{font-size:1.18rem;font-weight:850;margin:3px 0 0}.floor-area-count{font-size:.76rem;font-weight:800;color:var(--muted);background:#eef2f1;border-radius:999px;padding:6px 10px}.floor-table-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.floor-table{position:relative;background:#fff;border:1px solid var(--line);border-radius:21px;padding:15px;min-width:0;box-shadow:0 10px 26px rgba(15,23,42,.04);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.floor-table:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(15,23,42,.07)}.floor-table.status-available{border-top:3px solid #21a66f}.floor-table.status-occupied{border-top:3px solid #e34c5d}.floor-table.status-reserved{border-top:3px solid #e6a11b}.floor-table.status-payment_pending{border-top:3px solid #3a7ee8}.floor-table.status-cleaning{border-top:3px solid #8a94a2}.floor-table-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.floor-table-state{display:flex;align-items:center;gap:7px;font-size:.73rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.floor-table-state i{width:8px;height:8px;border-radius:999px;background:#8a94a2}.floor-table-capacity{color:var(--muted);font-size:.77rem;font-weight:700}.floor-table-visual{height:128px;position:relative;display:grid;place-items:center;margin:8px 0 3px}.floor-table-shape{width:94px;height:74px;border-radius:22px;background:#f7f9f8;border:1px solid #dfe6e2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:#4b5852;box-shadow:inset 0 1px 0 #fff}.floor-table-shape i{font-size:1rem;color:#8a9691}.floor-table-shape strong{font-size:1rem}.floor-chair{position:absolute;width:34px;height:16px;border-radius:7px;background:#e9eeeb;border:1px solid #d9e1dd}.floor-chair-top{top:5px}.floor-chair-bottom{bottom:5px}.floor-chair-left{left:calc(50% - 72px);top:56px;transform:rotate(90deg)}.floor-chair-right{right:calc(50% - 72px);top:56px;transform:rotate(90deg)}.floor-table-info{min-height:54px;display:flex;flex-direction:column;gap:2px;margin-bottom:12px}.floor-table-info strong{font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.floor-table-info small{font-size:.75rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.floor-table-action .btn{font-weight:750}.floor-table.status-available .floor-table-shape{background:#effaf5;border-color:#cdebdc}.floor-table.status-occupied .floor-table-shape{background:#fff4f5;border-color:#f3cdd2}.floor-table.status-reserved .floor-table-shape{background:#fff9eb;border-color:#f2dfad}.floor-table.status-payment_pending .floor-table-shape{background:#f0f6ff;border-color:#cadcf8}@media(max-width:1199.98px){.floor-map-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.floor-table-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:991.98px){.floor-table-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.floor-map-toolbar{align-items:flex-start;flex-direction:column}.floor-map-search{max-width:none;width:100%}}@media(max-width:767.98px){.floor-map-hero{align-items:flex-start;flex-direction:column}.floor-map-actions{width:100%}.floor-map-actions .btn{flex:1}.floor-map-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.floor-table-grid{grid-template-columns:1fr}}@media(max-width:480px){.floor-map-stats{grid-template-columns:1fr}.floor-map-legend{gap:9px}}

/* Entrega 11 Parte 15: restaurar etiquetas del menú lateral en teléfonos */
@media(max-width:900px){
  .sidebar .sidebar-dashboard-link>span,
  .sidebar .nav-group-label>span,
  .sidebar .nav-group-content a>span{
    font-size:.86rem;
  }
}

/* Entrega 11 - Parte 16: refinamiento visual global */
:root{
  --ui-primary:#2563eb;
  --ui-primary-dark:#1d4ed8;
  --ui-success:#16a34a;
  --ui-success-dark:#15803d;
  --ui-warning:#f59e0b;
  --ui-warning-dark:#d97706;
  --ui-danger:#dc2626;
  --ui-danger-dark:#b91c1c;
  --ui-info:#0891b2;
  --ui-info-dark:#0e7490;
  --ui-purple:#7c3aed;
  --ui-focus:rgba(37,99,235,.16);
}

.btn{
  min-height:40px;
  padding:.62rem 1rem;
  border-width:1px;
  font-weight:750;
  letter-spacing:-.01em;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.45rem;
  transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease,color .16s ease;
}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-sm{min-height:34px;padding:.42rem .72rem}
.btn-lg{min-height:50px;padding:.82rem 1.25rem}

.btn-primary{background:var(--ui-primary);border-color:var(--ui-primary);box-shadow:0 8px 18px rgba(37,99,235,.18)}
.btn-primary:hover,.btn-primary:focus{background:var(--ui-primary-dark);border-color:var(--ui-primary-dark);box-shadow:0 10px 22px rgba(37,99,235,.25)}
.btn-success{background:var(--ui-success);border-color:var(--ui-success);box-shadow:0 8px 18px rgba(22,163,74,.16)}
.btn-success:hover,.btn-success:focus{background:var(--ui-success-dark);border-color:var(--ui-success-dark)}
.btn-warning{background:var(--ui-warning);border-color:var(--ui-warning);color:#241500;box-shadow:0 8px 18px rgba(245,158,11,.18)}
.btn-warning:hover,.btn-warning:focus{background:var(--ui-warning-dark);border-color:var(--ui-warning-dark);color:#fff}
.btn-danger{background:var(--ui-danger);border-color:var(--ui-danger);box-shadow:0 8px 18px rgba(220,38,38,.16)}
.btn-danger:hover,.btn-danger:focus{background:var(--ui-danger-dark);border-color:var(--ui-danger-dark)}
.btn-info{background:var(--ui-info);border-color:var(--ui-info);color:#fff;box-shadow:0 8px 18px rgba(8,145,178,.16)}
.btn-info:hover,.btn-info:focus{background:var(--ui-info-dark);border-color:var(--ui-info-dark);color:#fff}
.btn-secondary{background:#475569;border-color:#475569}
.btn-secondary:hover,.btn-secondary:focus{background:#334155;border-color:#334155}

.btn-outline-primary{color:var(--ui-primary);border-color:#93b4ff;background:#fff}
.btn-outline-primary:hover,.btn-outline-primary:focus{background:#eff6ff;border-color:var(--ui-primary);color:var(--ui-primary-dark);box-shadow:0 7px 16px rgba(37,99,235,.11)}
.btn-outline-success{color:var(--ui-success-dark);border-color:#86d6a2;background:#fff}
.btn-outline-success:hover,.btn-outline-success:focus{background:#ecfdf3;border-color:var(--ui-success);color:var(--ui-success-dark)}
.btn-outline-warning{color:#a55c00;border-color:#f7c55c;background:#fff}
.btn-outline-warning:hover,.btn-outline-warning:focus{background:#fff8e6;border-color:var(--ui-warning);color:#8a4d00}
.btn-outline-danger{color:var(--ui-danger);border-color:#f3a1a1;background:#fff}
.btn-outline-danger:hover,.btn-outline-danger:focus{background:#fff1f2;border-color:var(--ui-danger);color:var(--ui-danger-dark)}
.btn-outline-secondary{color:#475569;border-color:#cbd5e1;background:#fff}
.btn-outline-secondary:hover,.btn-outline-secondary:focus{background:#f8fafc;border-color:#94a3b8;color:#1e293b}

.form-label{
  color:#334155;
  font-weight:750;
  margin-bottom:.48rem;
}
.form-control,.form-select{
  min-height:46px;
  border:1px solid #d7dee8;
  background-color:#fff;
  color:#17202a;
  box-shadow:0 1px 2px rgba(15,23,42,.02);
  transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;
}
textarea.form-control{min-height:auto}
.form-control:hover,.form-select:hover{border-color:#b8c4d4}
.form-control:focus,.form-select:focus{
  border-color:#5b8def;
  box-shadow:0 0 0 .24rem var(--ui-focus);
  background-color:#fff;
}
.form-control::placeholder{color:#9aa5b4}
.form-control:disabled,.form-select:disabled{background:#f1f5f9;color:#8491a3}
.input-group-text{border-color:#d7dee8;background:#f8fafc;color:#64748b;font-weight:700}
.form-text,.text-secondary{color:#788697!important}

.card,.panel-card,.table-card{
  border-color:#e6ebf2!important;
}
form.card,form.panel-card,.card form{
  --form-accent:var(--ui-primary);
}
form.card{
  border-top:4px solid var(--form-accent)!important;
}

.alert{
  border:1px solid transparent;
  border-radius:14px;
  font-weight:600;
}
.alert-success{background:#ecfdf3;border-color:#bbf7d0;color:#166534}
.alert-danger{background:#fff1f2;border-color:#fecdd3;color:#991b1b}
.alert-warning{background:#fff8e6;border-color:#fde3a7;color:#8a4d00}
.alert-info{background:#ecfeff;border-color:#bae6fd;color:#155e75}

.badge{font-weight:800;letter-spacing:.01em}
.text-bg-success{background-color:var(--ui-success)!important}
.text-bg-danger{background-color:var(--ui-danger)!important}
.text-bg-warning{background-color:var(--ui-warning)!important;color:#251500!important}
.text-bg-info{background-color:var(--ui-info)!important;color:#fff!important}
.text-bg-primary{background-color:var(--ui-primary)!important}

.table thead th{
  background:#f8fafc;
  color:#5b6878;
  border-bottom:1px solid #e5eaf1;
  padding-top:.9rem;
  padding-bottom:.9rem;
}
.table tbody tr{transition:background-color .15s ease}
.table tbody tr:hover{background:#f8fbff}

.page-title{color:#182234}
.panel-header h5,.dashboard-panel-header h2{color:#182234}

.quick-action{
  border-color:#dfe6ef;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.quick-action:hover{
  transform:translateY(-2px);
  border-color:#b9cdf7;
  box-shadow:0 10px 22px rgba(37,99,235,.08);
}
.quick-action i{color:var(--ui-primary)}

@media(max-width:575.98px){
  .btn{min-height:44px}
  .form-control,.form-select{min-height:48px;font-size:16px}
}

/* Entrega 11 - Parte 17: formularios premium y menú descargable */
.pro-form-heading{display:flex;align-items:center;gap:14px;margin-bottom:22px}.pro-form-kicker,.menu-builder-kicker{display:inline-flex;align-items:center;gap:6px;color:var(--ui-primary);font-size:.76rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em;margin-bottom:4px}.pro-form-shell{background:transparent}.pro-form-section{background:#fff;border:1px solid #e5eaf1;border-radius:20px;padding:22px;margin-bottom:18px;position:relative;overflow:hidden;box-shadow:0 10px 26px rgba(15,23,42,.04)}.pro-form-section:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--section-accent,#2563eb)}.pro-form-section.accent-blue{--section-accent:#2563eb;--section-soft:#eff6ff}.pro-form-section.accent-green{--section-accent:#16a34a;--section-soft:#ecfdf3}.pro-form-section.accent-amber{--section-accent:#f59e0b;--section-soft:#fff8e6}.pro-form-section.accent-purple{--section-accent:#7c3aed;--section-soft:#f5f3ff}.pro-form-section-title{display:flex;align-items:center;gap:12px;margin-bottom:20px}.pro-form-section-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:var(--section-soft,#eff6ff);color:var(--section-accent,#2563eb);font-size:1.1rem}.pro-form-section-title h3{font-size:1rem;font-weight:850;margin:0;color:#172033}.pro-form-section-title p{font-size:.78rem;color:#7a8797;margin:2px 0 0}.pro-switch-row{display:flex;align-items:center;justify-content:space-between;gap:18px;background:#fffbeb;border:1px solid #fde7a8;border-radius:14px;padding:13px 15px}.pro-switch-row strong,.pro-switch-row small{display:block}.pro-switch-row small{color:#8a7653;font-size:.76rem;margin-top:2px}.pro-product-preview{min-height:260px;border-radius:18px;overflow:hidden;background:#f6f7fb;border:1px dashed #cbd5e1}.pro-product-preview img{width:100%;height:260px;object-fit:cover}.pro-image-placeholder{min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#8a95a5;text-align:center}.pro-image-placeholder i{font-size:2.25rem;color:#8b5cf6}.pro-image-placeholder strong{color:#4c5667}.pro-image-placeholder small{font-size:.76rem}.pro-form-tip{display:flex;gap:12px;padding:16px;border-radius:17px;background:linear-gradient(135deg,#fff8e7,#fffdf6);border:1px solid #f8dfa3;color:#6f5213}.pro-form-tip>i{color:#f59e0b;font-size:1.25rem}.pro-form-tip strong,.pro-form-tip span{display:block}.pro-form-tip span{font-size:.78rem;margin-top:2px}.pro-form-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:18px 0 6px}.pro-form-card{border-radius:20px!important;overflow:hidden;background:linear-gradient(180deg,#fff 0,#fbfcff 100%);position:relative}.pro-form-card:before{content:"";position:absolute;left:0;right:0;top:0;height:5px;background:linear-gradient(90deg,var(--form-module,#2563eb),color-mix(in srgb,var(--form-module,#2563eb) 45%,#fff))}.pro-form-area{--form-module:#0ea5e9}.pro-form-category{--form-module:#7c3aed}.pro-form-table{--form-module:#14b8a6}.pro-form-customer{--form-module:#ec4899}.pro-form-reservation{--form-module:#f59e0b}.pro-form-user{--form-module:#6366f1}.pro-form-card .form-label:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--form-module,#2563eb);margin-right:7px;vertical-align:2px}.pro-form-card .btn-primary{background:var(--form-module,#2563eb);border-color:var(--form-module,#2563eb)}

.menu-builder-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px}.menu-builder-filter{display:flex;align-items:end;gap:14px;background:#fff;border:1px solid #e5eaf1;border-radius:18px;padding:15px 17px;margin-bottom:25px;box-shadow:0 8px 22px rgba(15,23,42,.04)}.menu-builder-filter-icon{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#eff6ff;color:#2563eb;font-size:1.15rem}.restaurant-menu-sheet{max-width:1100px;margin:0 auto 35px;background:#fff;border-radius:28px;overflow:hidden;border:1px solid #e5e7eb;box-shadow:0 20px 55px rgba(15,23,42,.08)}.restaurant-menu-header{display:flex;align-items:center;justify-content:center;gap:24px;text-align:center;padding:38px 28px;background:linear-gradient(135deg,#172033,#29364e);color:#fff}.restaurant-menu-logo-wrap{width:130px;height:90px;border-radius:16px;background:#fff;display:grid;place-items:center;padding:10px;flex:0 0 auto}.restaurant-menu-logo{max-width:100%;max-height:100%;object-fit:contain}.restaurant-menu-eyebrow{display:block;font-size:.72rem;letter-spacing:.24em;font-weight:900;color:#fbbf24;margin-bottom:4px}.restaurant-menu-brand h1{font-size:2.1rem;font-weight:900;margin:0;letter-spacing:-.04em}.restaurant-menu-brand p{margin:8px 0 0;color:#cbd5e1;font-size:.9rem}.restaurant-menu-categories{padding:28px}.restaurant-menu-category{margin-bottom:32px}.restaurant-menu-category:last-child{margin-bottom:0}.restaurant-menu-category-title{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:15px;margin-bottom:18px}.restaurant-menu-category-title span{height:1px;background:#e5e7eb}.restaurant-menu-category-title h2{margin:0;color:#172033;font-size:1.25rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.restaurant-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.restaurant-menu-item{display:grid;grid-template-columns:118px 1fr;gap:14px;border:1px solid #e7ebf1;border-radius:18px;padding:10px;background:#fff;break-inside:avoid;page-break-inside:avoid}.restaurant-menu-image{height:104px;border-radius:13px;overflow:hidden;background:#f1f5f9}.restaurant-menu-image img{width:100%;height:100%;object-fit:cover}.restaurant-menu-item-copy{min-width:0;padding:5px 5px 5px 0}.restaurant-menu-item-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.restaurant-menu-item-heading h3{font-size:.98rem;font-weight:850;color:#172033;margin:0;line-height:1.25}.restaurant-menu-item-heading strong{color:#b96e08;font-size:.94rem;white-space:nowrap}.restaurant-menu-item p{font-size:.78rem;color:#7a8797;line-height:1.4;margin:7px 0 0}.restaurant-menu-footer{display:flex;justify-content:center;gap:20px;flex-wrap:wrap;padding:19px 25px;background:#f8fafc;border-top:1px solid #e5e7eb;color:#64748b;font-size:.79rem;font-weight:700}.restaurant-menu-footer span{display:inline-flex;align-items:center;gap:6px}.restaurant-menu-empty{text-align:center;padding:70px 20px;color:#8793a3}.restaurant-menu-empty i{font-size:2.5rem}.restaurant-menu-empty h3{color:#273244;margin:12px 0 5px}

@media(max-width:767.98px){.pro-form-heading,.menu-builder-toolbar{align-items:flex-start}.menu-builder-toolbar{flex-direction:column}.menu-builder-filter{align-items:stretch;flex-direction:column}.menu-builder-filter-icon{display:none}.restaurant-menu-header{flex-direction:column}.restaurant-menu-grid{grid-template-columns:1fr}.restaurant-menu-item{grid-template-columns:92px 1fr}.restaurant-menu-image{height:88px}.restaurant-menu-categories{padding:18px}.pro-form-actions{position:sticky;bottom:0;z-index:6;background:rgba(245,247,250,.94);backdrop-filter:blur(12px);padding:12px}.pro-form-actions .btn{flex:1}}

@media print{
  @page{
    size:A4 portrait;
    margin:8mm;
  }
  html,
  body{
    background:#fff!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  .sidebar,
  .topbar,
  .sidebar-backdrop,
  .no-print,
  .flash-container{
    display:none!important;
  }
  .main-content,
  .content-wrapper,
  .app-shell{
    display:block!important;
    margin:0!important;
    padding:0!important;
    width:100%!important;
  }
  .content-area{
    padding:0!important;
  }
  .restaurant-menu-sheet{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    border:1px solid #e5e7eb!important;
    border-radius:18px!important;
    box-shadow:none!important;
    overflow:visible!important;
    background:#fff!important;
  }
  .restaurant-menu-header{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:22px!important;
    text-align:center!important;
    padding:30px 24px!important;
    background:linear-gradient(135deg,#172033,#29364e)!important;
    color:#fff!important;
    border-radius:17px 17px 0 0!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  .restaurant-menu-logo-wrap{
    width:115px!important;
    height:80px!important;
    background:#fff!important;
  }
  .restaurant-menu-brand h1{
    font-size:1.9rem!important;
    color:#fff!important;
  }
  .restaurant-menu-eyebrow{
    color:#fbbf24!important;
  }
  .restaurant-menu-brand p{
    color:#cbd5e1!important;
  }
  .restaurant-menu-categories{
    padding:24px!important;
  }
  .restaurant-menu-category{
    margin-bottom:26px!important;
    break-inside:auto!important;
    page-break-inside:auto!important;
  }
  .restaurant-menu-category-title{
    margin-bottom:15px!important;
  }
  .restaurant-menu-grid{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
  .restaurant-menu-item{
    display:grid!important;
    grid-template-columns:105px 1fr!important;
    gap:12px!important;
    padding:9px!important;
    border:1px solid #e7ebf1!important;
    border-radius:15px!important;
    background:#fff!important;
    break-inside:avoid!important;
    page-break-inside:avoid!important;
  }
  .restaurant-menu-image{
    height:94px!important;
    border-radius:11px!important;
    overflow:hidden!important;
    background:#f1f5f9!important;
  }
  .restaurant-menu-image img{
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  .restaurant-menu-item-heading h3{
    color:#172033!important;
  }
  .restaurant-menu-item-heading strong{
    color:#b96e08!important;
  }
  .restaurant-menu-item p{
    color:#7a8797!important;
  }
  .restaurant-menu-footer{
    background:#f8fafc!important;
    color:#64748b!important;
    border-top:1px solid #e5e7eb!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
}

/* Entrega 11 - Parte 18: catálogo de productos premium */
.products-page-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.products-page-kicker{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:5px;
  color:#2563eb;
  font-size:.76rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.products-page-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.products-page-actions .btn{
  min-height:46px;
  border-radius:14px;
  padding-inline:18px;
  box-shadow:0 8px 20px rgba(15,23,42,.08);
}
.products-summary-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.products-summary-chip{
  min-width:180px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px 15px;
  border:1px solid #e5eaf1;
  border-radius:16px;
  background:#fff;
  box-shadow:0 7px 18px rgba(15,23,42,.04);
}
.products-summary-icon{
  width:39px;
  height:39px;
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:1rem;
}
.products-summary-chip strong,
.products-summary-chip small{
  display:block;
}
.products-summary-chip strong{
  color:#172033;
  font-size:1.05rem;
  line-height:1.05;
}
.products-summary-chip small{
  color:#7b8797;
  font-size:.72rem;
  margin-top:3px;
}
.products-summary-chip.chip-blue .products-summary-icon{background:#eff6ff;color:#2563eb}
.products-summary-chip.chip-green .products-summary-icon{background:#ecfdf3;color:#16a34a}
.products-summary-chip.chip-amber .products-summary-icon{background:#fff7df;color:#d97706}
.products-summary-chip.chip-slate .products-summary-icon{background:#f1f5f9;color:#64748b}

.products-filter-panel{
  display:grid;
  grid-template-columns:minmax(230px,.72fr) minmax(0,1.7fr);
  gap:18px;
  align-items:center;
  margin-bottom:24px;
  padding:17px;
  border:1px solid #dfe7f1;
  border-radius:19px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 10px 28px rgba(15,23,42,.05);
  border-top:4px solid #2563eb;
}
.products-filter-title{
  display:flex;
  align-items:center;
  gap:11px;
}
.products-filter-title>span{
  width:43px;
  height:43px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#eaf2ff;
  color:#2563eb;
}
.products-filter-title strong,
.products-filter-title small{
  display:block;
}
.products-filter-title strong{
  color:#1d2939;
  font-size:.9rem;
}
.products-filter-title small{
  color:#8793a3;
  font-size:.7rem;
  margin-top:2px;
}
.products-filter-grid{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(180px,.9fr) minmax(125px,.45fr);
  gap:9px;
}
.products-search-field{position:relative}
.products-search-field>i{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  color:#7d8998;
  z-index:2;
}
.products-search-field .form-control{padding-left:42px}
.products-filter-grid .btn-dark{
  border-radius:12px;
  background:#172033;
  border-color:#172033;
}

.products-pro-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:18px;
  align-items:stretch;
}
.product-pro-card{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border:1px solid #e3e8f0;
  border-radius:22px;
  background:#fff;
  box-shadow:0 12px 30px rgba(15,23,42,.065);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.product-pro-card:hover{
  transform:translateY(-4px);
  border-color:#cddaf0;
  box-shadow:0 18px 38px rgba(15,23,42,.11);
}
.product-pro-card.is-inactive{opacity:.78}
.product-pro-media{
  position:relative;
  height:225px;
  overflow:hidden;
  background:#eef2f6;
}
.product-pro-media:after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:70px;
  background:linear-gradient(to top,rgba(15,23,42,.28),transparent);
  pointer-events:none;
}
.product-pro-media img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .3s ease;
}
.product-pro-card:hover .product-pro-media img{transform:scale(1.025)}
.product-category-chip{
  position:absolute;
  left:12px;
  bottom:12px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  gap:6px;
  max-width:70%;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.94);
  color:#243144;
  font-size:.72rem;
  font-weight:850;
  box-shadow:0 5px 15px rgba(15,23,42,.12);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.product-category-chip i{color:#2563eb}
.product-status-chip{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  font-size:.68rem;
  font-weight:900;
  box-shadow:0 5px 14px rgba(15,23,42,.13);
}
.product-status-chip.status-ok{background:#eafbf1;color:#137a3f}
.product-status-chip.status-low{background:#fff3cf;color:#9a5a00}
.product-status-chip.status-out{background:#fff0f1;color:#c5303e}
.product-status-chip.status-inactive{background:#eef1f5;color:#586474}
.product-pro-content{
  display:flex;
  flex-direction:column;
  flex:1;
  padding:17px;
}
.product-pro-reference{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#8a96a5;
  font-size:.7rem;
  font-weight:750;
  text-transform:uppercase;
  letter-spacing:.045em;
}
.product-pro-content h3{
  margin:6px 0 6px;
  min-height:2.45em;
  color:#172033;
  font-size:1.04rem;
  line-height:1.25;
  font-weight:900;
}
.product-pro-description{
  display:-webkit-box;
  overflow:hidden;
  min-height:2.7em;
  margin:0 0 14px;
  color:#69778a;
  font-size:.75rem;
  line-height:1.4;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.product-pro-description.muted{color:#a0a8b4;font-style:italic}
.product-pro-metrics{
  display:grid;
  grid-template-columns:1.2fr .85fr;
  gap:8px;
  margin-top:auto;
}
.product-price-box,
.product-stock-box{
  min-height:64px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  border-radius:14px;
  padding:10px 12px;
}
.product-price-box{
  background:linear-gradient(135deg,#eff6ff,#f7fbff);
  border:1px solid #d8e8ff;
}
.product-price-box small,
.product-stock-box small{
  font-size:.65rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.055em;
}
.product-price-box small{color:#6382af}
.product-price-box strong{
  color:#174ea6;
  font-size:1.22rem;
  line-height:1.15;
}
.product-stock-box{border:1px solid transparent}
.product-stock-box strong{font-size:.82rem;line-height:1.2}
.product-stock-box.stock-success{background:#ecfdf3;border-color:#c9f2d8;color:#137a3f}
.product-stock-box.stock-warning{background:#fff8e6;border-color:#f7e0a7;color:#9a5a00}
.product-stock-box.stock-danger{background:#fff1f2;border-color:#ffd0d5;color:#be2638}
.product-stock-box.stock-neutral{background:#f5f7fa;border-color:#e5e9ef;color:#687586}
.product-pro-actions{
  display:flex;
  gap:8px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid #edf0f4;
}
.product-pro-actions form{margin:0}
.product-edit-btn{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:43px;
  border:1px solid #cbdcff;
  border-radius:12px;
  background:#f5f9ff;
  color:#1f65d6;
  font-weight:850;
}
.product-edit-btn:hover{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}
.product-delete-btn{
  width:43px;
  min-height:43px;
  display:grid;
  place-items:center;
  border:1px solid #ffd2d7;
  border-radius:12px;
  background:#fff7f8;
  color:#e23548;
}
.product-delete-btn:hover{
  background:#e63946;
  border-color:#e63946;
  color:#fff;
}
.products-empty-state{
  margin-top:20px;
  padding:65px 20px;
  text-align:center;
  border:1px dashed #cfd8e4;
  border-radius:22px;
  background:#fbfcfe;
  color:#7c8999;
}
.products-empty-state>span{
  width:62px;
  height:62px;
  display:grid;
  place-items:center;
  margin:0 auto 12px;
  border-radius:18px;
  background:#eef5ff;
  color:#2563eb;
  font-size:1.55rem;
}
.products-empty-state h3{color:#273244;font-size:1.05rem;font-weight:850}
.products-empty-state p{margin:0;font-size:.8rem}

/* Refuerzo visual del formulario premium */
.pro-form-product .pro-form-section{
  box-shadow:0 14px 34px rgba(15,23,42,.06);
}
.pro-form-product .pro-form-section-title h3{
  font-size:1.05rem;
}
.pro-form-product .form-control,
.pro-form-product .form-select,
.pro-form-product .input-group-text{
  min-height:49px;
}
.pro-form-product textarea.form-control{min-height:112px}
.pro-form-product .form-label{
  color:#37465a;
  font-weight:800;
}
.pro-form-product .accent-blue{background:linear-gradient(180deg,#fff 0%,#f9fbff 100%)}
.pro-form-product .accent-green{background:linear-gradient(180deg,#fff 0%,#f8fdf9 100%)}
.pro-form-product .accent-amber{background:linear-gradient(180deg,#fff 0%,#fffdf7 100%)}
.pro-form-product .accent-purple{background:linear-gradient(180deg,#fff 0%,#fcfaff 100%)}

@media(max-width:991.98px){
  .products-filter-panel{grid-template-columns:1fr}
  .products-filter-title{display:none}
}
@media(max-width:767.98px){
  .products-page-head{align-items:flex-start;flex-direction:column}
  .products-page-actions{width:100%}
  .products-page-actions .btn{flex:1}
  .products-summary-row{display:grid;grid-template-columns:repeat(3,1fr);width:100%}
  .products-summary-chip{min-width:0;padding:10px}
  .products-summary-chip small{display:none}
  .products-filter-grid{grid-template-columns:1fr}
  .products-pro-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
  .product-pro-media{height:155px}
  .product-category-chip{font-size:.62rem;padding:6px 8px}
  .product-status-chip{font-size:.6rem;padding:6px 8px}
  .product-pro-content{padding:12px}
  .product-pro-content h3{font-size:.91rem;min-height:2.5em}
  .product-pro-description{display:none}
  .product-pro-metrics{grid-template-columns:1fr}
  .product-price-box,.product-stock-box{min-height:52px;padding:8px 10px}
  .product-price-box strong{font-size:1.05rem}
  .product-stock-box{display:none}
  .product-edit-btn{font-size:.76rem;padding-inline:8px}
}
@media(max-width:390px){
  .products-summary-row{grid-template-columns:1fr}
  .products-summary-chip small{display:block}
  .products-pro-grid{grid-template-columns:1fr}
  .product-pro-media{height:205px}
}

/* Entrega 11 Parte 19 - formularios premium y alertas */
.app-flash{
  position:relative;
  display:flex;
  align-items:center;
  min-height:56px;
  padding:14px 48px 14px 18px;
  border-width:1px;
  border-left-width:5px;
  border-radius:16px;
  box-shadow:0 12px 28px rgba(15,23,42,.08);
  font-weight:700;
  transition:opacity .18s ease,transform .18s ease;
}
.app-flash .btn-close{position:absolute;right:14px;top:50%;transform:translateY(-50%)}

.pro-form-card{
  padding:28px!important;
  border:1px solid #e6ebf2!important;
  box-shadow:0 18px 45px rgba(15,23,42,.08)!important;
}
.pro-form-card:after{
  content:"";
  position:absolute;
  width:160px;
  height:160px;
  right:-65px;
  top:-70px;
  border-radius:50%;
  background:color-mix(in srgb,var(--form-module,#2563eb) 8%,transparent);
  pointer-events:none;
}
.pro-form-card .form-label{
  margin-bottom:7px;
  color:#304055;
  font-size:.78rem;
  font-weight:850;
}
.pro-form-card .form-control,
.pro-form-card .form-select{
  min-height:50px;
  border:1px solid #dbe2ea;
  border-radius:13px;
  background:#fbfcfe;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.02);
}
.pro-form-card textarea.form-control{min-height:112px;padding-top:12px}
.pro-form-card .form-control:focus,
.pro-form-card .form-select:focus{
  border-color:var(--form-module,#2563eb);
  background:#fff;
  box-shadow:0 0 0 4px color-mix(in srgb,var(--form-module,#2563eb) 13%,transparent);
}
.pro-form-card .btn-primary{
  min-height:46px;
  padding-inline:22px!important;
  border-radius:13px;
  box-shadow:0 10px 20px color-mix(in srgb,var(--form-module,#2563eb) 20%,transparent);
}
.pro-form-card .btn-primary:hover{filter:brightness(.95);transform:translateY(-1px)}
.pro-form-area{background:linear-gradient(180deg,#fff 0%,#f5fbff 100%)}
.pro-form-category{background:linear-gradient(180deg,#fff 0%,#faf7ff 100%)}
.pro-form-table{background:linear-gradient(180deg,#fff 0%,#f4fdfb 100%)}
.pro-form-customer{background:linear-gradient(180deg,#fff 0%,#fff7fb 100%)}
.pro-form-reservation{background:linear-gradient(180deg,#fff 0%,#fffbf3 100%)}
.pro-form-user{background:linear-gradient(180deg,#fff 0%,#f7f8ff 100%)}

.settings-pro-card{
  overflow:hidden;
  border:1px solid #e6eaf0!important;
  border-radius:20px!important;
  box-shadow:0 18px 45px rgba(15,23,42,.07)!important;
}
.settings-pro-card .card-header{
  position:relative;
  border-bottom:1px solid #edf0f4;
  padding-left:24px!important;
}
.settings-pro-card .card-header:before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:var(--settings-accent,#2563eb);
}
.settings-pro-card-blue{--settings-accent:#2563eb;background:linear-gradient(180deg,#fff,#f8fbff)}
.settings-pro-card-purple{--settings-accent:#7c3aed;background:linear-gradient(180deg,#fff,#fbf9ff)}
.settings-pro-card .form-control,
.settings-pro-card .form-select{
  min-height:49px;
  border-radius:13px;
  border-color:#dbe2ea;
  background:#fff;
}
.settings-pro-card .form-label{font-weight:800;color:#344155}
.settings-pro-card .form-control:focus,
.settings-pro-card .form-select:focus{box-shadow:0 0 0 4px rgba(37,99,235,.1);border-color:#4f83e8}

/* Productos activos: sólo se destacan excepciones de inventario */
.product-status-chip.status-ok{display:none!important}

@media(max-width:767.98px){
  .pro-form-card{padding:20px!important;border-radius:17px!important}
  .app-flash{border-radius:13px;padding-left:14px}
}

/* Entrega 11 Parte 20: experiencia por roles */
.sidebar-role-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 8px 0;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    color: #f8fafc;
}

.sidebar-role-note > i {
    font-size: 1.35rem;
    color: #fb923c;
}

.sidebar-role-note strong,
.sidebar-role-note small {
    display: block;
}

.sidebar-role-note small {
    margin-top: 2px;
    color: #94a3b8;
}

.role-home {
    display: grid;
    gap: 22px;
}

.role-home-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px;
    border: 1px solid #dbe5f1;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
}

.role-home-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    color: #2563eb;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.role-home-hero h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 800;
}

.role-home-hero p {
    margin: 8px 0 0;
    color: #64748b;
}

.role-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.role-home-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.role-metric {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 104px;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #fff;
    color: #172033;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.role-metric:hover {
    transform: translateY(-2px);
    border-color: #cbd5e1;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.role-metric-icon {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 15px;
    font-size: 1.25rem;
}

.role-metric small,
.role-metric strong {
    display: block;
}

.role-metric small {
    color: #64748b;
    font-weight: 700;
}

.role-metric strong {
    margin-top: 3px;
    font-size: 1.7rem;
    line-height: 1;
}

.role-metric.is-green .role-metric-icon { background: #dcfce7; color: #15803d; }
.role-metric.is-red .role-metric-icon { background: #fee2e2; color: #dc2626; }
.role-metric.is-yellow .role-metric-icon { background: #fef3c7; color: #b45309; }
.role-metric.is-blue .role-metric-icon { background: #dbeafe; color: #2563eb; }

.role-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr);
    gap: 18px;
}

.role-panel {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
}

.role-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf2f7;
}

.role-panel-header span {
    display: block;
    margin-bottom: 3px;
    color: #64748b;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.role-panel-header h2 {
    margin: 0;
    color: #172033;
    font-size: 1.08rem;
    font-weight: 800;
}

.role-panel-header > a {
    color: #2563eb;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: none;
}

.role-empty {
    display: grid;
    min-height: 220px;
    place-items: center;
    align-content: center;
    gap: 6px;
    padding: 28px;
    color: #64748b;
    text-align: center;
}

.role-empty.compact {
    min-height: 180px;
}

.role-empty i {
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 2rem;
}

.role-empty strong {
    color: #334155;
}

.role-order-list,
.role-reservation-list {
    display: grid;
}

.role-order-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid #edf2f7;
    color: #172033;
    text-decoration: none;
}

.role-order-item:last-child,
.role-reservation-item:last-child {
    border-bottom: 0;
}

.role-order-item:hover {
    background: #f8fafc;
}

.role-order-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 7px 9px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 800;
}

.role-order-main strong,
.role-order-main small {
    display: block;
}

.role-order-main small {
    margin-top: 2px;
    color: #94a3b8;
}

.role-order-status {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: .76rem;
    font-weight: 800;
}

.role-order-status.status-open { background: #fff7ed; color: #c2410c; }
.role-order-status.status-preparing { background: #fef3c7; color: #a16207; }
.role-order-status.status-ready { background: #dcfce7; color: #15803d; }
.role-order-status.status-served { background: #dbeafe; color: #1d4ed8; }

.role-reservation-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
}

.role-reservation-time {
    min-width: 58px;
    color: #2563eb;
    font-size: 1.05rem;
    font-weight: 800;
}

.role-reservation-item strong,
.role-reservation-item small {
    display: block;
}

.role-reservation-item small {
    margin-top: 2px;
    color: #64748b;
}

@media (max-width: 991.98px) {
    .role-home-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .role-home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .role-home-hero {
        align-items: stretch;
        flex-direction: column;
        padding: 20px;
    }

    .role-home-actions .btn {
        width: 100%;
    }

    .role-home-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .role-metric {
        min-height: 92px;
        padding: 13px;
    }

    .role-metric-icon {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
    }

    .role-metric strong {
        font-size: 1.35rem;
    }

    .role-order-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        padding: 14px;
    }

    .role-order-status,
    .role-order-item > strong {
        grid-column: 2;
    }

    .role-order-item > i {
        grid-column: 3;
        grid-row: 1 / span 3;
    }
}

/* Entrega 11 - Parte 21: acabado visual profesional */
:root{
    --pro-blue:#2563eb;
    --pro-indigo:#4f46e5;
    --pro-green:#16a34a;
    --pro-amber:#f59e0b;
    --pro-red:#dc2626;
    --pro-cyan:#0891b2;
    --pro-purple:#7c3aed;
    --pro-surface:#ffffff;
    --pro-soft:#f8fafc;
    --pro-border:#e4eaf2;
    --pro-ink:#152033;
}
body{background:linear-gradient(180deg,#f7f9fc 0,#f4f6fa 100%);color:var(--pro-ink)}
.content-area{max-width:1680px;margin:0 auto;width:100%}
.topbar{background:rgba(255,255,255,.94);backdrop-filter:blur(12px);box-shadow:0 8px 24px rgba(15,23,42,.035)}
.topbar .menu-toggle{box-shadow:0 5px 15px rgba(15,23,42,.06)}
.sidebar{background:linear-gradient(180deg,#111827 0%,#161d2b 60%,#121826 100%)}
.sidebar-brand{border-bottom-color:rgba(255,255,255,.09)}
.brand-icon{background:linear-gradient(135deg,rgba(245,158,11,.24),rgba(251,191,36,.08));border:1px solid rgba(251,191,36,.18)}
.sidebar-dashboard-link.active,.sidebar-nav a.active{background:linear-gradient(90deg,rgba(37,99,235,.28),rgba(37,99,235,.08));box-shadow:inset 3px 0 0 #60a5fa;color:#fff}
.nav-group-toggle:hover{background:rgba(255,255,255,.055)}
.nav-group-content{border-left:1px solid rgba(148,163,184,.14);margin-left:17px;padding-left:8px}

/* botones */
.btn{font-weight:750;letter-spacing:-.01em;border-width:1px;transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:linear-gradient(135deg,#2563eb,#4f46e5);border-color:#3155d9;box-shadow:0 7px 16px rgba(37,99,235,.20)}
.btn-primary:hover{filter:brightness(1.04);box-shadow:0 10px 22px rgba(37,99,235,.26)}
.btn-success{background:linear-gradient(135deg,#16a34a,#0f8a3c);border-color:#148d43;box-shadow:0 7px 16px rgba(22,163,74,.18)}
.btn-warning{background:linear-gradient(135deg,#f59e0b,#e78b04);border-color:#dd8508;color:#fff;box-shadow:0 7px 16px rgba(245,158,11,.18)}
.btn-danger{background:linear-gradient(135deg,#dc2626,#bf1f2f);border-color:#c6242b;box-shadow:0 7px 16px rgba(220,38,38,.17)}
.btn-info{background:linear-gradient(135deg,#0891b2,#0e7490);border-color:#0e7f9d;color:#fff}
.btn-outline-primary{border-color:#b7c8f8;color:#3157c8;background:#f6f8ff}.btn-outline-primary:hover{background:#e9efff;color:#2445a8;border-color:#91a9ee}
.btn-outline-secondary{background:#fff;border-color:#d7dee8;color:#475569}.btn-outline-secondary:hover{background:#f1f5f9;color:#1e293b}

/* formularios */
.form-control,.form-select{background:#fbfcfe;border:1px solid #dbe2ec;box-shadow:inset 0 1px 2px rgba(15,23,42,.02);min-height:46px}
.form-control:hover,.form-select:hover{border-color:#b8c5d6;background:#fff}
.form-control:focus,.form-select:focus{background:#fff;border-color:#6f8fec;box-shadow:0 0 0 .22rem rgba(37,99,235,.11)}
.form-label{font-weight:760;color:#334155;font-size:.88rem}.form-text{color:#8390a2}
.pro-form-section,.pro-form-card{border-color:#e2e8f0;box-shadow:0 14px 35px rgba(15,23,42,.055)}
.pro-form-section:hover{box-shadow:0 17px 40px rgba(15,23,42,.075)}
.pro-form-heading h1,.pro-form-heading h2,.pro-form-heading h3{letter-spacing:-.025em}

/* paneles y tablas */
.panel-card,.dashboard-panel,.role-panel,.cash-order-card{border-color:var(--pro-border);box-shadow:0 13px 34px rgba(15,23,42,.05)}
.table-responsive{border-radius:15px}.table>thead>tr>th{background:#f7f9fc;color:#526174;font-weight:800}.table>tbody>tr{transition:background .14s ease}.table>tbody>tr:hover{background:#f8fbff}

/* dashboard */
.dashboard-hero{padding:24px 26px;border-radius:24px;background:linear-gradient(120deg,#14532d 0%,#22c55e 75%,#14532d 100%);color:#fff;box-shadow:0 18px 45px rgba(30,64,175,.17)}
.dashboard-hero .dashboard-eyebrow{color:#bfdbfe}.dashboard-hero p{color:#dbeafe}.dashboard-hero .btn-outline-secondary{border-color:rgba(255,255,255,.38);background:rgba(255,255,255,.10);color:#fff}.dashboard-hero .btn-outline-secondary:hover{background:rgba(255,255,255,.18)}
.dashboard-shortcut{border:0;position:relative;overflow:hidden}.dashboard-shortcut:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#2563eb}.dashboard-shortcut:nth-child(2):before{background:#16a34a}.dashboard-shortcut:nth-child(3):before{background:#f59e0b}.dashboard-shortcut:nth-child(4):before{background:#7c3aed}
.dashboard-shortcut:nth-child(2) .dashboard-shortcut-icon{background:#ecfdf3;color:#15803d}.dashboard-shortcut:nth-child(3) .dashboard-shortcut-icon{background:#fff7ed;color:#c2410c}.dashboard-shortcut:nth-child(4) .dashboard-shortcut-icon{background:#f5f3ff;color:#6d28d9}
.metric-card{overflow:hidden;position:relative;border:1px solid #e5eaf1}.metric-card:after{content:"";position:absolute;right:-24px;top:-24px;width:92px;height:92px;border-radius:50%;background:rgba(37,99,235,.055)}
.metric-sales{background:linear-gradient(145deg,#ffffff,#f2fff7)}
.dashboard-metrics .metric-card:nth-child(2){background:linear-gradient(145deg,#ffffff,#f3f7ff)}
.dashboard-metrics .metric-card:nth-child(3){background:linear-gradient(145deg,#ffffff,#fff9ee)}
.dashboard-metrics .metric-card:nth-child(4){background:linear-gradient(145deg,#ffffff,#faf5ff)}

/* panel principal de mesero */
.role-home-hero{background:linear-gradient(125deg,#0f766e,#0d9488 58%,#14b8a6);border:0;color:#fff;box-shadow:0 18px 42px rgba(13,148,136,.18)}
.role-home-hero .role-home-kicker,.role-home-hero p{color:#ccfbf1}.role-home-hero .btn-light{box-shadow:0 7px 20px rgba(15,23,42,.12)}
.role-metric{border:0;box-shadow:0 10px 26px rgba(15,23,42,.05)}.role-metric:hover{box-shadow:0 16px 32px rgba(15,23,42,.09)}
.role-metric.is-green{background:linear-gradient(145deg,#fff,#effdf4)}.role-metric.is-red{background:linear-gradient(145deg,#fff,#fff2f2)}.role-metric.is-yellow{background:linear-gradient(145deg,#fff,#fff9e9)}.role-metric.is-blue{background:linear-gradient(145deg,#fff,#f1f6ff)}

/* cocina */
#kdsBoard{align-items:stretch}.kitchen-card{border:0!important;border-radius:22px;overflow:hidden;box-shadow:0 14px 36px rgba(15,23,42,.08);background:#fff;position:relative}.kitchen-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;background:#f59e0b;z-index:1}.kitchen-card .card-header{background:linear-gradient(135deg,#172033,#263247);color:#fff;border:0;padding:16px 18px}.kitchen-card .card-header .badge.text-bg-light{background:#fff!important;color:#334155!important}.kitchen-card .card-body{padding:18px}.kitchen-card .list-group-item{background:transparent;border-color:#edf0f4}.kitchen-card .card-footer{background:#f8fafc;border-top:1px solid #e7edf4}.kitchen-serve-button{min-height:54px;font-size:1rem;border-radius:14px}.order-clock.text-bg-warning{background:#f59e0b!important;color:#fff!important}.order-clock.text-bg-danger{background:#dc2626!important;color:#fff!important}

/* caja */
.cash-orders-table{background:#fff}.cash-orders-table thead th{background:linear-gradient(180deg,#f7f9fc,#f1f5f9);color:#536175}.cash-orders-table tbody tr{border-left:4px solid transparent}.cash-orders-table tbody tr:hover{border-left-color:#2563eb;background:#f7faff}.payment-modal .modal-content{border:0;box-shadow:0 28px 80px rgba(15,23,42,.22)}.payment-modal .modal-header{background:linear-gradient(135deg,#172033,#263247);color:#fff}.payment-modal .btn-close{filter:invert(1)}.payment-summary-sticky{background:linear-gradient(180deg,#fff,#f8fbff)}

/* estados y alertas */
.status-pill,.dashboard-status,.role-order-status{border:1px solid rgba(148,163,184,.18)}
.alert{border:0;border-left:5px solid currentColor;box-shadow:0 9px 24px rgba(15,23,42,.055)}

@media(max-width:767.98px){
    .dashboard-hero{padding:20px;border-radius:20px}.dashboard-hero-actions{display:grid;grid-template-columns:1fr 1fr}.dashboard-hero-actions .btn{width:100%}
    .role-home-hero{border-radius:20px;padding:20px}.kitchen-card{border-radius:18px}.kitchen-card .card-header{padding:14px 16px}
    .btn{min-height:42px}.pro-form-section{padding:17px}
}
@media(max-width:420px){.dashboard-hero-actions{grid-template-columns:1fr}}

.report-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.report-kicker {
    display: inline-block;
    margin-bottom: .3rem;
    color: #2563eb;
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.report-filter-card {
    padding: 1.15rem;
    border: 1px solid #dbe6f3;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
}

.report-filter-title {
    display: flex;
    gap: .85rem;
    align-items: center;
    margin-bottom: 1rem;
}

.report-filter-title > span {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    color: #ffffff;
    background: #2563eb;
}

.report-filter-title strong,
.report-filter-title small {
    display: block;
}

.report-filter-title small {
    margin-top: .15rem;
    color: #64748b;
}

.report-stat {
    min-height: 128px;
    padding: 1.2rem;
    border-radius: 18px;
    color: #0f172a;
    border: 1px solid transparent;
}

.report-stat span,
.report-stat small,
.report-stat strong {
    display: block;
}

.report-stat span {
    font-weight: 700;
}

.report-stat strong {
    margin: .35rem 0;
    font-size: 1.7rem;
}

.report-stat small {
    opacity: .7;
}

.report-stat-sales {
    background: #ecfdf5;
    border-color: #bbf7d0;
}

.report-stat-orders {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.report-stat-ticket {
    background: #fff7ed;
    border-color: #fed7aa;
}

.report-table-card {
    overflow: hidden;
    border-radius: 18px;
}

.report-sales-table thead th {
    white-space: nowrap;
    color: #475569;
    background: #f8fafc;
}

.report-products-preview {
    min-width: 210px;
}

.report-products-preview div + div {
    margin-top: .18rem;
}

.report-table-badge {
    display: inline-flex;
    padding: .35rem .65rem;
    border-radius: 999px;
    color: #1d4ed8;
    background: #eff6ff;
    font-size: .82rem;
    font-weight: 700;
}

.report-detail-header {
    color: #ffffff;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.report-detail-header small {
    color: rgba(255, 255, 255, .7);
}

.report-detail-info {
    height: 100%;
    padding: .85rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.report-detail-info small,
.report-detail-info strong {
    display: block;
}

.report-detail-info small {
    margin-bottom: .2rem;
    color: #64748b;
}

.report-detail-products thead th {
    color: #475569;
    background: #f8fafc;
}

.report-detail-totals {
    width: min(100%, 360px);
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: #f8fafc;
}

.report-detail-totals > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .35rem 0;
}

.report-detail-totals .total {
    margin-top: .35rem;
    padding-top: .75rem;
    border-top: 1px solid #cbd5e1;
    font-size: 1.1rem;
}

.report-detail-totals .paid {
    color: #047857;
}

@media (max-width: 767.98px) {
    .report-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .report-sales-table {
        min-width: 900px;
    }
}

.cash-close-breakdown{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border:1px solid #e5e7eb;
  border-radius:14px;
  background:#fff;
}
.cash-close-breakdown span{
  display:flex;
  align-items:center;
  gap:8px;
  color:#64748b;
  font-size:.84rem;
}
.cash-close-summary{
  border:1px solid #e5e7eb;
  border-radius:16px;
  overflow:hidden;
  background:#f8fafc;
}
.cash-close-summary>div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:11px 14px;
  border-bottom:1px solid #e5e7eb;
}
.cash-close-summary>div:last-child{border-bottom:0}
.cash-close-summary .cash-close-total{
  background:#eef6ff;
  color:#1d4ed8;
  font-size:1.05rem;
}
.cash-difference-preview{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  border-radius:12px;
  background:#f8fafc;
  border:1px solid #e5e7eb;
}

.permission-module{
  overflow:hidden;
  border-radius:18px!important;
}
.permission-module-toggle{
  width:100%;
  border:0;
  background:#fff;
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  text-align:left;
}
.permission-module-toggle:hover{
  background:#f8fafc;
}
.permission-module-title{
  display:flex;
  align-items:center;
  gap:14px;
}
.permission-module-title strong{
  display:block;
  color:#172033;
  font-size:1rem;
}
.permission-module-title small{
  display:block;
  margin-top:2px;
  color:#7c8799;
}
.permission-module-icon{
  width:42px;
  height:42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  background:#eef4ff;
  color:#1769ff;
  font-size:1.1rem;
}
.permission-module-arrow{
  color:#64748b;
  transition:transform .2s ease;
}
.permission-module-toggle:not(.collapsed) .permission-module-arrow{
  transform:rotate(180deg);
}
.permission-name-column{
  min-width:260px;
}
.permission-module-actions{
  padding:14px 18px;
  border-top:1px solid #edf0f4;
  background:#fbfcfe;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.permission-save-bar{
  position:sticky;
  bottom:14px;
  z-index:20;
  margin-top:20px;
  padding:14px 16px;
  border:1px solid #e4e9f0;
  border-radius:18px;
  background:rgba(255,255,255,.96);
  box-shadow:0 14px 35px rgba(15,23,42,.12);
  backdrop-filter:blur(12px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.permission-save-bar strong,
.permission-save-bar small{
  display:block;
}
.permission-save-bar small{
  color:#7c8799;
  margin-top:2px;
}
@media (max-width:767.98px){
  .permission-module-toggle{padding:15px}
  .permission-module-actions{
    align-items:flex-start;
    flex-direction:column;
  }
  .permission-save-bar{
    bottom:8px;
    align-items:stretch;
    flex-direction:column;
  }
  .permission-save-bar .btn{width:100%}
}


/* Entrega 11 - Parte 31: centro de cajas activas */
.cash-active-link-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 20px;
  border:1px solid #dbe6f4;
  border-radius:18px;
  background:linear-gradient(135deg,#ffffff 0%,#f5f9ff 100%);
  box-shadow:0 10px 28px rgba(15,23,42,.055);
}
.cash-active-link-copy{
  display:flex;
  align-items:center;
  gap:14px;
}
.cash-active-link-copy strong,
.cash-active-link-copy small{
  display:block;
}
.cash-active-link-copy small{
  color:#718096;
  margin-top:3px;
}
.cash-active-link-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#eaf2ff;
  color:#2563eb;
  font-size:1.1rem;
}
.active-cash-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
}
.active-cash-stat{
  height:100%;
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  border:1px solid #e4e9f0;
  border-radius:17px;
  background:#fff;
  box-shadow:0 9px 24px rgba(15,23,42,.045);
}
.active-cash-stat-icon{
  width:42px;
  height:42px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#f1f5f9;
  color:#475569;
}
.active-cash-stat small,
.active-cash-stat strong{
  display:block;
}
.active-cash-stat small{
  color:#7b8797;
  font-size:.72rem;
  margin-bottom:3px;
}
.active-cash-stat strong{
  color:#172033;
  font-size:1.08rem;
  white-space:nowrap;
}
.active-cash-stat-blue .active-cash-stat-icon{background:#eaf2ff;color:#2563eb}
.active-cash-stat-green .active-cash-stat-icon{background:#ecfdf3;color:#16a34a}
.active-cash-stat-red .active-cash-stat-icon{background:#fff1f2;color:#dc2626}
.active-cash-stat-amber .active-cash-stat-icon{background:#fff7df;color:#d97706}
.active-cash-tools{
  display:grid;
  grid-template-columns:minmax(240px,1fr) minmax(180px,260px);
  gap:10px;
}
.active-cash-search{
  position:relative;
}
.active-cash-search>i{
  position:absolute;
  left:15px;
  top:50%;
  transform:translateY(-50%);
  color:#8490a1;
  z-index:2;
}
.active-cash-search .form-control{
  padding-left:42px;
}
.active-cash-table thead th{
  white-space:nowrap;
}
.active-cash-employee{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:190px;
}
.active-cash-employee strong,
.active-cash-employee small{
  display:block;
}
.active-cash-employee small{
  color:#7b8797;
  margin-top:2px;
}
.active-cash-avatar{
  width:38px;
  height:38px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:#eef2f7;
  color:#334155;
  font-weight:900;
}
.active-cash-own-row{
  background:#f5f9ff;
}
.active-cash-status{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:#15803d;
  font-size:.8rem;
  font-weight:800;
}
.active-cash-status>span{
  width:8px;
  height:8px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 4px rgba(34,197,94,.12);
}
@media(max-width:767.98px){
  .cash-active-link-card,
  .active-cash-head{
    align-items:stretch;
    flex-direction:column;
  }
  .cash-active-link-card .btn,
  .active-cash-head .btn{
    width:100%;
  }
  .active-cash-tools{
    grid-template-columns:1fr;
  }
}

.pos-product{cursor:pointer;touch-action:manipulation}.pos-product-added{transform:scale(.97)!important;box-shadow:0 0 0 3px rgba(37,99,235,.18)!important}
.order-edit-cart{display:flex;flex-direction:column;gap:10px}.order-edit-line{padding:12px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.order-edit-line .order-edit-note{font-size:.78rem}
.expense-stat-total{border-top-color:#dc2626!important}.expense-stat-transfer{border-top:4px solid #0ea5e9}.expense-print-toolbar{display:flex;justify-content:flex-end;gap:10px}.expense-print-sheet{max-width:1100px;margin:0 auto 30px;background:#fff;border:1px solid #e5e7eb;border-radius:22px;overflow:hidden;box-shadow:0 18px 45px rgba(15,23,42,.08)}.expense-print-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:28px 32px;background:linear-gradient(135deg,#172033,#29364e);color:#fff}.expense-print-header>div>span{font-size:.72rem;letter-spacing:.16em;color:#fca5a5;font-weight:900}.expense-print-header h1{margin:4px 0 5px;font-size:1.7rem}.expense-print-header p{margin:0;color:#cbd5e1;font-size:.82rem}.expense-print-period{text-align:right}.expense-print-period small,.expense-print-period strong{display:block}.expense-print-period small{color:#94a3b8}.expense-print-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:20px 24px;background:#f8fafc}.expense-print-summary>div{padding:13px 15px;border:1px solid #e5e7eb;border-radius:14px;background:#fff}.expense-print-summary small,.expense-print-summary strong{display:block}.expense-print-summary small{color:#64748b;font-size:.72rem}.expense-print-summary strong{font-size:1.15rem;margin-top:3px}.expense-print-table{width:calc(100% - 48px);margin:0 24px 24px;border-collapse:collapse}.expense-print-table th,.expense-print-table td{padding:10px 9px;border-bottom:1px solid #e5e7eb;font-size:.78rem}.expense-print-table th{background:#f8fafc;color:#475569;text-transform:uppercase;font-size:.68rem}.expense-print-footer{padding:14px 24px;border-top:1px solid #e5e7eb;color:#64748b;font-size:.72rem;text-align:center}@media(max-width:767.98px){.expense-print-header{align-items:flex-start;flex-direction:column}.expense-print-period{text-align:left}.expense-print-summary{grid-template-columns:repeat(2,1fr)}}@media print{@page{size:A4 landscape;margin:8mm}.expense-print-toolbar{display:none!important}.expense-print-sheet{max-width:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important}.expense-print-header{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.expense-print-summary{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.expense-print-table{width:100%!important;margin:0!important}.expense-print-table tr{break-inside:avoid;page-break-inside:avoid}}

.expense-print-logo-wrap{width:82px;height:64px;padding:7px;border-radius:12px;background:#fff;display:grid;place-items:center;flex:0 0 auto}.expense-print-logo-wrap img{max-width:100%;max-height:100%;object-fit:contain}
