:root{
  --bp-primary:#0f766e;
  --bp-primary-2:#14b8a6;
  --bp-primary-dark:#115e59;
  --bp-navy:#0f172a;
  --bp-navy-2:#172033;
  --bp-text:#172033;
  --bp-muted:#6b7280;
  --bp-bg:#f3f6f8;
  --bp-card:#ffffff;
  --bp-border:#e4e9ee;
  --bp-soft:#ecfdf5;
  --bp-danger:#dc2626;
  --bp-warning:#d97706;
  --bp-success:#15803d;
  --bp-shadow:0 10px 32px rgba(15,23,42,.07);
  --bp-shadow-lg:0 24px 60px rgba(15,23,42,.14);
  --bp-radius:18px;
}
*{box-sizing:border-box}
html{background:var(--bp-bg)}
body{margin:0;background:linear-gradient(180deg,#f8fafc 0,#f3f6f8 55%,#eef3f5 100%);color:var(--bp-text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;padding-bottom:96px;min-height:100vh;-webkit-font-smoothing:antialiased}
a{color:var(--bp-primary);text-underline-offset:2px}.bp-icon{width:1.15em;height:1.15em;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.17em;flex:0 0 auto}

/* Top bar */
.topbar{position:sticky;top:0;z-index:1020;background:rgba(255,255,255,.94);backdrop-filter:blur(16px);border-bottom:1px solid rgba(228,233,238,.9);box-shadow:0 1px 0 rgba(15,23,42,.02)}
.topbar-inner{min-height:68px;display:flex;align-items:center;justify-content:space-between;max-width:1220px;margin:auto;padding:0 18px}
.brand{font-weight:900;letter-spacing:.02em;display:flex;gap:11px;align-items:center;color:var(--bp-navy)!important}
.brand-icon{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--bp-primary),var(--bp-primary-2));color:#fff;display:grid;place-items:center;box-shadow:0 8px 22px rgba(15,118,110,.28)}
.brand-icon .bp-icon{width:22px;height:22px;stroke-width:1.9}
.user-pill{display:flex;align-items:center;gap:10px;border:1px solid var(--bp-border);background:#fff;border-radius:14px;padding:7px 10px;box-shadow:0 4px 12px rgba(15,23,42,.04)}

/* Main layout */
.content{max-width:1220px;margin:auto;padding:26px 18px 42px}
.cardx{background:var(--bp-card);border:1px solid var(--bp-border);border-radius:var(--bp-radius);box-shadow:var(--bp-shadow)}
.smallx{font-size:.79rem;color:var(--bp-muted);font-weight:500}.fw900{font-weight:900!important;letter-spacing:-.02em}.section-title{font-weight:900;color:var(--bp-navy);letter-spacing:-.015em}.money{font-variant-numeric:tabular-nums}.receipt{max-width:760px;margin:auto}.receipt-total{font-size:1.85rem;font-weight:900;color:var(--bp-navy)}

/* Buttons */
.btn{border-radius:12px;font-weight:700;transition:.18s ease;display:inline-flex;align-items:center;justify-content:center;gap:.35rem}.btn:hover{transform:translateY(-1px)}
.btn-primaryx{background:linear-gradient(135deg,var(--bp-primary),#0d9488);border:1px solid var(--bp-primary);color:#fff;min-height:46px;font-weight:800;box-shadow:0 8px 18px rgba(15,118,110,.18)}
.btn-primaryx:hover,.btn-primaryx:focus{background:linear-gradient(135deg,var(--bp-primary-dark),var(--bp-primary));border-color:var(--bp-primary-dark);color:#fff;box-shadow:0 10px 22px rgba(15,118,110,.24)}
.btn-light{background:#f8fafc;border-color:#e7ebef;color:#334155}.btn-light:hover{background:#f1f5f9;border-color:#d9e0e6;color:#0f172a}
.btn-success{background:#16a34a;border-color:#16a34a}.btn-outline-danger{border-color:#fecaca;color:#b91c1c;background:#fff}.btn-outline-danger:hover{background:#fef2f2;color:#991b1b;border-color:#fca5a5}

/* Forms */
.form-label{font-size:.82rem;font-weight:800;color:#334155;margin-bottom:.42rem}.form-control,.form-select{border-radius:12px;min-height:46px;border:1px solid #dce3e8;background-color:#fff;color:#172033;padding:.68rem .82rem;box-shadow:none!important}.form-control:focus,.form-select:focus{border-color:#5eead4;box-shadow:0 0 0 4px rgba(20,184,166,.10)!important}.input-group-text{border-color:#dce3e8;background:#f8fafc;color:#64748b;border-radius:12px}.input-group>.input-group-text:first-child{border-radius:12px 0 0 12px}.input-group>.form-control:last-child{border-radius:0 12px 12px 0}

/* Alerts and badges */
.alert{box-shadow:none}.badge-soft{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:.72rem;font-weight:850;letter-spacing:.01em}.badge-green{background:#dcfce7;color:#166534}.badge-red{background:#fee2e2;color:#991b1b}.badge-blue{background:#dbeafe;color:#1d4ed8}.badge-amber{background:#fef3c7;color:#92400e}

/* Stats */
.stat{position:relative;padding:18px;overflow:hidden;min-height:126px}.stat::after{content:"";position:absolute;width:90px;height:90px;border-radius:999px;right:-28px;top:-28px;background:rgba(20,184,166,.07)}.stat-label{display:flex;align-items:center;justify-content:space-between;gap:10px}.stat-icon{width:38px;height:38px;border-radius:12px;background:#ecfdf5;color:var(--bp-primary);display:grid;place-items:center}.stat-value{font-size:1.65rem;font-weight:950;letter-spacing:-.035em;margin-top:12px;color:var(--bp-navy)}

/* Dashboard */
.dashboard-hero{background:linear-gradient(135deg,#0f172a 0%,#172554 55%,#115e59 130%);color:#fff;border-radius:24px;padding:22px;box-shadow:0 22px 50px rgba(15,23,42,.18);position:relative;overflow:hidden}.dashboard-hero::after{content:"";position:absolute;right:-65px;top:-100px;width:250px;height:250px;border-radius:999px;background:radial-gradient(circle,rgba(45,212,191,.26),rgba(45,212,191,0) 70%)}.dashboard-hero .smallx{color:#cbd5e1}.dashboard-hero h1{position:relative;z-index:1}.quick-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.quick-action{display:flex;align-items:center;gap:12px;text-decoration:none;background:#fff;border:1px solid var(--bp-border);border-radius:16px;padding:14px;color:var(--bp-navy);box-shadow:0 7px 20px rgba(15,23,42,.04)}.quick-action:hover{border-color:#99f6e4;color:var(--bp-primary);box-shadow:0 10px 24px rgba(15,118,110,.08)}.quick-icon{width:40px;height:40px;border-radius:12px;background:#ecfdf5;color:var(--bp-primary);display:grid;place-items:center}

/* Tables */
.table-wrap{overflow:auto;border-radius:14px}.table{margin-bottom:0;color:#334155}.table>:not(caption)>*>*{padding:.9rem .75rem;border-bottom-color:#edf1f4;vertical-align:middle}.table thead th{font-size:.74rem;text-transform:uppercase;letter-spacing:.045em;color:#64748b;font-weight:850;background:#f8fafc;border-bottom:1px solid #e7ecef}.table tbody tr:last-child td{border-bottom:0}.table tbody tr:hover{background:#fbfdfd}

/* POS */
.pos-grid{display:grid;gap:16px;align-items:start}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.product-btn{background:#fff;border:1px solid var(--bp-border);border-radius:16px;padding:14px;text-align:left;min-height:114px;transition:.16s ease;box-shadow:0 5px 16px rgba(15,23,42,.035);color:var(--bp-text)}.product-btn:hover{border-color:#5eead4;box-shadow:0 10px 26px rgba(15,118,110,.09);transform:translateY(-2px)}.product-name{font-weight:850;font-size:.93rem;line-height:1.22;color:var(--bp-navy);min-height:34px}.stock-badge{font-size:.7rem;color:#64748b;background:#f1f5f9;padding:4px 7px;border-radius:999px}.barcode-box{position:relative}.barcode-box .bp-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--bp-primary);width:20px;height:20px;z-index:2}.barcode-box input{padding-left:44px;font-size:1.02rem;font-weight:700;background:#f8fffe;border-color:#b8ebe4}.cart-panel{position:sticky;top:86px}.cart-line{display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px 0;border-bottom:1px solid #eef2f4}.cart-line:last-child{border-bottom:0}.qty{display:flex;align-items:center;gap:7px}.qty button{width:32px;height:32px;border-radius:10px;border:1px solid var(--bp-border);background:#fff;font-weight:900;color:#334155}.qty button:hover{background:#f0fdfa;border-color:#99f6e4;color:var(--bp-primary)}

/* Mesas */
.mesa{border-radius:18px;padding:16px;text-decoration:none;display:block;border:1px solid var(--bp-border);background:#fff;color:var(--bp-navy);box-shadow:0 7px 20px rgba(15,23,42,.045);transition:.18s ease;min-height:112px}.mesa:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(15,23,42,.08);color:var(--bp-navy)}.mesa.ocupada{border-color:#fed7aa;background:linear-gradient(180deg,#fffaf1,#fffbeb)}.mesa.libre{border-color:#bbf7d0;background:linear-gradient(180deg,#f8fffb,#f0fdf4)}

/* Modals & dropdowns */
.modal-content{border:1px solid #e8edf0;border-radius:22px;box-shadow:var(--bp-shadow-lg);overflow:hidden}.modal-header{padding:1.15rem 1.25rem .6rem}.modal-body{padding:1rem 1.25rem}.modal-footer{padding:.7rem 1.25rem 1.2rem}.dropdown-menu{border:1px solid var(--bp-border);border-radius:15px;box-shadow:0 18px 45px rgba(15,23,42,.13);padding:.45rem}.dropdown-item{border-radius:10px;padding:.65rem .75rem}

/* Bottom navigation */
.nav-bottom{position:fixed;left:0;right:0;bottom:0;z-index:1030;height:76px;padding:0 10px 8px;pointer-events:none}.nav-inner{height:68px;max-width:700px;margin:auto;display:grid;grid-template-columns:repeat(6,1fr);align-items:center;background:rgba(255,255,255,.97);backdrop-filter:blur(18px);border:1px solid rgba(216,224,230,.95);border-radius:20px;box-shadow:0 16px 44px rgba(15,23,42,.14);overflow:hidden;pointer-events:auto}.nav-itemx{height:100%;border:0;background:transparent;text-decoration:none;color:#7c8798;font-size:.67rem;font-weight:750;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;position:relative}.nav-itemx .bp-icon{width:20px;height:20px}.nav-itemx:hover,.nav-itemx.active{color:var(--bp-primary)}.nav-itemx.active::after{content:"";position:absolute;bottom:0;width:28px;height:3px;border-radius:3px 3px 0 0;background:var(--bp-primary)}

/* Login */
.login-page{min-height:100vh;display:grid;grid-template-columns:1fr;background:#edf3f4}.login-visual{display:none;position:relative;overflow:hidden;background:linear-gradient(145deg,#0f172a 0%,#164e63 55%,#0f766e 120%);color:#fff;padding:54px}.login-visual::before,.login-visual::after{content:"";position:absolute;border-radius:999px;background:rgba(45,212,191,.12)}.login-visual::before{width:360px;height:360px;right:-100px;top:-120px}.login-visual::after{width:240px;height:240px;left:-80px;bottom:-80px}.login-visual-content{position:relative;z-index:2;max-width:520px;margin:auto 0}.login-visual h1{font-size:3rem;font-weight:950;letter-spacing:-.05em}.login-feature{display:flex;gap:12px;align-items:center;margin-top:18px;color:#dbeafe}.login-feature-dot{width:9px;height:9px;border-radius:50%;background:#5eead4;box-shadow:0 0 0 5px rgba(94,234,212,.09)}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:28px}.login-card{width:min(440px,100%);padding:30px;background:#fff;border:1px solid #e5ecef;border-radius:26px;box-shadow:0 28px 70px rgba(15,23,42,.13)}.login-logo{width:58px;height:58px;border-radius:18px;background:linear-gradient(135deg,var(--bp-primary),var(--bp-primary-2));color:#fff;display:grid;place-items:center;box-shadow:0 12px 28px rgba(15,118,110,.23)}.login-card h2{font-weight:950;letter-spacing:-.035em;color:var(--bp-navy)}

/* Utilities */
.list-card{padding:15px;margin-bottom:10px}.filter-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.offcanvas{border:0!important;box-shadow:0 -20px 50px rgba(15,23,42,.14)}.offcanvas-bottom{border-radius:24px 24px 0 0!important}.list-group-item{border-color:#eef2f4}.opacity-50{opacity:.55!important}

@media(min-width:768px){
  body{padding-bottom:98px}.content{padding:32px 24px 50px}.topbar-inner{padding:0 24px}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.filter-row{grid-template-columns:repeat(4,1fr)}.quick-actions{grid-template-columns:repeat(4,minmax(0,1fr))}.login-page{grid-template-columns:minmax(420px,1.05fr) minmax(420px,.95fr)}.login-visual{display:flex}.login-wrap{min-height:100vh}.login-card{padding:36px}.dashboard-hero{padding:28px}
}
@media(min-width:980px){.pos-grid{grid-template-columns:minmax(0,1.45fr) minmax(380px,.72fr)}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(min-width:1180px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:575.98px){.content{padding:18px 12px 34px}.topbar-inner{min-height:62px;padding:0 12px}.brand-icon{width:38px;height:38px}.nav-bottom{padding-left:7px;padding-right:7px}.nav-inner{grid-template-columns:repeat(6,1fr);border-radius:17px}.nav-itemx{font-size:.61rem}.nav-itemx .bp-icon{width:18px;height:18px}.stat{min-height:112px;padding:15px}.stat-value{font-size:1.42rem}.product-btn{min-height:104px;padding:12px}.login-wrap{padding:18px}.login-card{padding:24px}}
