
:root{--bg:#f7f5f1;--surface:#fff;--ink:#1c1917;--muted:#78716c;--line:#e7e2da;--nav:#1c1917;--nav-2:#292524;--accent:#e8590c;--accent-2:#f76707;--accent-soft:#fff4e6;--green:#2f9e44;--green-soft:#ebfbee;--red:#e03131;--red-soft:#fff5f5;--amber:#f08c00;--teal:#0c8599;--shadow:0 1px 2px rgba(28,25,23,.04),0 8px 24px rgba(28,25,23,.06);--round:14px;--round-sm:10px}
*{box-sizing:border-box}body{margin:0;background:var(--bg);font:14px/1.55 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}
svg{width:19px;height:19px;vertical-align:middle;flex:none}h1,h2,h3,p{margin-top:0}h1,h2,h3{letter-spacing:-.03em}
.muted{color:var(--muted)}.hide{display:none!important}.nowrap{white-space:nowrap}
button{border:0;background:transparent}
.btn{min-height:40px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border-radius:var(--round-sm);padding:10px 16px;font-weight:650;font-size:13px;transition:all .16s ease;background:var(--accent);color:#fff}
.btn:hover:not(:disabled){background:var(--accent-2)}
.btn svg{width:17px;height:17px}
.btn-light{background:#fff;color:var(--ink);border-color:var(--line)}
.btn-light:hover:not(:disabled){background:#faf8f5}
.btn-sm{padding:7px 11px;min-height:32px;font-size:12px;border-radius:8px}
.btn-icon{width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:var(--round-sm)}
.btn-block{width:100%}
.field{width:100%;border-radius:var(--round-sm);background:#fff;border:1px solid #ddd6cc;padding:10px 12px;min-height:42px;outline:none;color:var(--ink)}
.field:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(232,89,12,.1)}
.form-label{display:block;color:#44403c;font-size:12px;font-weight:650;margin:15px 0 6px}
.pill{font-weight:650;border-radius:30px;padding:4px 9px;display:inline-flex;align-items:center;gap:6px;font-size:11px}
.pill:before{content:"";display:block;width:6px;height:6px;background:currentColor;border-radius:50%}
.pill-ok{color:#2b8a3e;background:var(--green-soft)}.pill-off{color:#78716c;background:#f1ede6}.pill-alert{color:#c92a2a;background:var(--red-soft)}
.badge{display:inline-flex;gap:5px;align-items:center;font-size:11px;font-weight:650;background:#f1ede6;padding:4px 9px;border-radius:20px;color:#78716c}
.badge-warm{background:var(--accent-soft);color:#c2410c}
.shell{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100dvh}
.sidebar{position:sticky;top:0;height:100dvh;display:flex;flex-direction:column;overflow-y:auto;background:var(--nav);color:#d6d3d1;padding:24px 14px 16px}
.brand{display:flex;align-items:center;gap:11px;padding:1px 10px 30px}
.brand-mark{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(140deg,#f76707,#e8590c);color:#fff}
.brand-mark svg{width:22px;height:22px}
.brand-text{font-size:19px;color:#fff;font-weight:800;line-height:1.1}
.brand-text span{color:#ffa94d}
.brand small{display:block;color:#78716c;font-size:10px;margin-top:3px}
.side-title{font-size:10px;letter-spacing:.14em;font-weight:750;color:#78716c;padding:0 14px;margin:7px 0 9px}
.side-nav{display:flex;flex-direction:column;gap:3px}
.nav-btn{width:100%;text-align:left;color:#a8a29e;border-radius:var(--round-sm);padding:10px 13px;display:flex;align-items:center;gap:12px;font-weight:550;font-size:13px}
.nav-btn svg{width:18px;height:18px;opacity:.85}
.nav-btn:hover{background:var(--nav-2);color:#fafaf9}
.nav-btn.active{color:#fff;background:var(--nav-2);box-shadow:inset 2px 0 0 var(--accent)}
.nav-btn.active svg{color:#ffa94d;opacity:1}
.nav-bottom{margin-top:auto}
.side-help{padding:13px 14px;background:var(--nav-2);border-radius:var(--round-sm);margin:15px 4px;color:#a8a29e;font-size:11px;line-height:1.5}
.side-help strong{display:block;color:#fafaf9;margin:6px 0 4px;font-size:11.5px}
.side-help svg{color:#ffa94d;width:16px;height:16px}
.side-footer{display:flex;align-items:center;gap:10px;padding:14px 8px 0;border-top:1px solid rgba(255,255,255,.06)}
.avatar{height:36px;width:36px;border-radius:10px;background:rgba(247,103,7,.18);color:#ffa94d;display:grid;place-items:center;font-weight:750;flex:none;font-size:12px}
.who{min-width:0;flex:1}
.who strong{display:block;font-size:12px;color:#fafaf9}
.who small{color:#78716c;font-size:10.5px}
.side-footer .logout{background:transparent;color:#78716c;padding:6px;border-radius:8px}
.page{min-width:0}
.topbar{height:72px;background:#fff;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.topbar h1{font-size:16px;margin:0;font-weight:700}
.topbar-sub{font-size:11px;color:var(--muted);margin-top:1px}
.topbar-right{display:flex;align-items:center;gap:12px}
.live-dot{width:7px;height:7px;border-radius:50%;background:#40c057;display:inline-block}
.date-label{display:flex;align-items:center;gap:7px;color:#57534e;font-size:12px;border:1px solid var(--line);padding:7px 10px;border-radius:8px;background:#fff}
.date-label svg{width:14px;height:14px}
.header-avatar{background:var(--accent-soft);color:#c2410c;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;font-size:11px;font-weight:750}
.main{padding:30px 32px 52px;max-width:1560px;margin:0 auto}
.pagehead{margin-bottom:24px}
.pagehead h2{font-size:23px;font-weight:750;margin:0 0 6px}
.pagehead p{font-size:12.5px;color:var(--muted);margin:0}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--round);box-shadow:var(--shadow)}
.card-head{padding:20px 22px 14px}
.card-head h3{font-size:14px;margin:0;font-weight:700}
.card-body{padding:0 22px 20px}
.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(325px,370px);gap:18px;align-items:start}
.catalog-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}
.search-box{flex:1;max-width:340px;position:relative}
.search-box svg{position:absolute;top:12px;left:13px;color:#a8a29e;width:18px;height:18px}
.search-box .field{padding-left:40px}
.tabbar{display:flex;gap:7px;overflow-x:auto;padding-bottom:4px;margin-bottom:18px}
.tab{border:1px solid #ddd6cc;background:#fff;color:#78716c;padding:8px 13px;white-space:nowrap;border-radius:9px;font-size:12px;font-weight:600}
.tab.active{color:#fff;background:var(--accent);border-color:var(--accent)}
.catalog-summary{display:flex;align-items:center;justify-content:space-between;margin:3px 0 12px}
.catalog-summary strong{font-size:13px}.catalog-summary small{font-size:12px;color:var(--muted)}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.product-tile{min-width:0;min-height:184px;border-radius:var(--round);background:#fff;border:1px solid #e7e2da;display:flex;flex-direction:column;align-items:stretch;overflow:hidden;text-align:left}
.product-tile:hover{border-color:#ffa94d;transform:translateY(-2px)}
.product-art{height:100px;display:flex;justify-content:center;align-items:center;position:relative;overflow:hidden;background:#faf8f5}
.product-art.art-pollo{background:linear-gradient(120deg,#fff4e6,#ffe8cc)}
.product-art.art-side{background:linear-gradient(120deg,#fff9db,#ffec99)}
.product-art.art-drink{background:linear-gradient(120deg,#e3fafc,#c5f6fa)}
.product-art.art-other{background:linear-gradient(120deg,#f3f0ff,#e5dbff)}
.tile-symbol{font-size:38px;line-height:1;font-weight:800;color:#c2410c}
.art-side .tile-symbol{color:#9a641f}.art-drink .tile-symbol{color:#0b7285}.art-other .tile-symbol{color:#5f3dc4}
.tile-add{position:absolute;right:9px;bottom:8px;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:#fff;width:28px;height:28px}
.tile-add svg{width:15px;height:15px}
.tile-foot{padding:14px 12px 11px;min-height:80px}
.tile-title{font-weight:650;font-size:12.5px;line-height:1.35;min-height:31px;display:block}
.tile-price{color:var(--accent);font-weight:800;font-size:14px;margin-top:5px;display:block}
.empty{padding:36px 24px;text-align:center;color:var(--muted)}
.empty svg{width:32px;height:32px;color:#d6d3d1;margin-bottom:10px}
.empty strong{display:block;color:var(--ink);font-size:13px;margin-bottom:4px}
.empty p{font-size:12px;margin:0}
.order{position:sticky;top:20px;overflow:visible}
.order-head{background:#fff;padding:20px 20px 16px;border-bottom:1px solid var(--line)}
.order-headline{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.order-head h3{font-size:16px;margin:0}
.order-sub{font-size:11px;color:var(--muted)}
.counter{color:#c2410c;background:var(--accent-soft);padding:3px 9px;border-radius:30px;font-size:11px;font-weight:750}
.order-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:16px}
.order-mode{border:1px solid #ddd6cc;color:#78716c;font-size:11px;font-weight:600;padding:9px 3px;border-radius:9px;display:flex;flex-direction:column;align-items:center;gap:4px}
.order-mode svg{width:16px;height:16px}
.order-mode.active{color:var(--accent);border-color:#ffc078;background:var(--accent-soft)}
.order-items{padding:10px 18px;max-height:330px;min-height:150px;overflow:auto}
.order-line{padding:12px 0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;border-bottom:1px dashed #efeae3}
.order-line:last-child{border-bottom:0}
.order-line h4{font-size:12px;line-height:1.4;margin:0 0 3px;font-weight:650}
.order-line small{font-size:11px;color:var(--muted)}
.line-right{text-align:right}
.line-right strong{font-size:12.5px;display:block;margin-bottom:8px;font-weight:700}
.qty{display:inline-flex;align-items:center;gap:10px}
.qty-btn{display:grid;place-items:center;border:1px solid #ddd6cc;background:#fff;width:24px;height:24px;border-radius:7px;color:#78716c}
.qty-btn svg{height:12px;width:12px}
.qty b{font-size:12px;min-width:14px;text-align:center}
.order-total{padding:16px 20px 20px;background:#fff;border-top:1px solid var(--line)}
.price-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:7px;color:#78716c;font-size:12px}
.price-row strong{font-weight:600;color:#44403c}
.grand-total{display:flex;align-items:baseline;justify-content:space-between;border-top:1px dashed var(--line);padding:14px 0;margin-top:12px}
.grand-total strong:first-child{font-size:13px}
.grand-total strong:last-child{font-size:25px;color:var(--accent);font-weight:800}
.order-actions{display:flex;gap:8px}.order-actions .btn-block{flex:1}
.cart-empty{padding:34px 12px}
.cart-illustration{width:60px;height:60px;background:#f1ede6;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px}
.cart-illustration svg{width:28px;height:28px;color:#c4bcb2}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.stat{background:#fff;border:1px solid var(--line);border-radius:var(--round);padding:18px;box-shadow:var(--shadow);min-height:128px}
.stat-label{color:#78716c;font-size:11.5px;font-weight:600}
.stat-value{font-size:24px;font-weight:800;margin:8px 0 4px;color:#1c1917}
.stat-foot{font-size:11px;color:#a8a29e}
.report-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);gap:16px;margin-bottom:16px}
.bar-list{padding:3px 22px 22px}
.bar-row{margin-bottom:16px}
.bar-label{display:flex;justify-content:space-between;gap:10px;margin-bottom:6px;font-size:12px}
.bar-label strong{font-size:12px;font-weight:600}
.bar-label em{font-style:normal;color:#78716c;font-weight:500;font-size:11px}
.bar-bg{height:7px;background:#f1ede6;border-radius:12px;overflow:hidden}
.bar-fill{height:100%;background:linear-gradient(90deg,#ff922b,#e8590c);border-radius:12px}
.bar-fill.alt{background:linear-gradient(90deg,#ffd43b,#f08c00)}
.bar-fill.third{background:linear-gradient(90deg,#8ce99a,#2f9e44)}
.breakdown{display:flex;align-items:center;gap:15px;padding:10px 22px 22px}
.donut{width:140px;height:140px;border-radius:50%;flex:none;position:relative;display:grid;place-items:center}
.donut:after{content:"";width:94px;height:94px;background:#fff;border-radius:50%;position:absolute}
.donut-caption{position:relative;z-index:1;text-align:center}
.donut-caption strong{font-size:19px;display:block}
.donut-caption span{font-size:10px;color:var(--muted)}
.legend{min-width:0;flex:1}
.legend-item{display:flex;align-items:center;gap:8px;font-size:12px;margin:8px 0;color:#57534e}
.legend-item .dot{width:8px;height:8px;border-radius:50%;flex:none}
.legend-item b{margin-left:auto;color:var(--ink);font-size:11px;font-weight:650}
.table-card{overflow:hidden}
.table-top{padding:18px 22px 12px}
.table-top h3{margin:0;font-size:14px}
.table-scroll{overflow-x:auto}
.data-table{width:100%;border-collapse:collapse;font-size:12px}
.data-table th{text-align:left;background:#faf8f5;color:#78716c;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;padding:11px 18px;border-top:1px solid var(--line)}
.data-table td{border-top:1px solid #f1ede6;padding:12px 18px;color:#57534e}
.data-table td strong{color:#1c1917;font-weight:650}
.data-table th:last-child,.data-table td:last-child{text-align:right}
.table-actions{display:flex;justify-content:flex-end;gap:4px}
.action-link{color:#c2410c;font-size:11px;font-weight:650;padding:5px;border-radius:6px}
.action-link.warn{color:#c92a2a}
.cash-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}
.cash-line{display:flex;justify-content:space-between;margin:7px 0;font-size:12px;color:#78716c}
.cash-line b{color:#1c1917;font-weight:700}
.boxline{padding:16px 18px;border:1px solid var(--line);border-radius:12px;background:#fff}
.cash-state{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:13px 16px;background:#faf8f5;border-radius:11px;border:1px solid var(--line);margin-top:14px}
.cash-state > div{flex:1}
.cash-state strong{display:block;font-size:12px}
.cash-state small{color:var(--muted);font-size:11px}
.info-line{color:#a8a29e;font-size:11px}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.setting-card{padding:22px}
.setting-card h3{font-size:15px;margin-bottom:4px}
.setting-card p{color:var(--muted);font-size:12px}
.notice{background:#fff9db;border:1px solid #ffec99;border-radius:10px;padding:12px 14px;color:#8a6d1b;font-size:12px;display:flex;gap:9px}
.notice svg{width:16px;height:16px;flex:none}
.circle-letter{width:32px;height:32px;border-radius:50%;display:inline-grid;place-items:center;background:#f1ede6;color:#57534e;font-size:11px;font-weight:750;margin-right:9px}
.overlay{position:fixed;inset:0;background:rgba(28,25,23,.55);z-index:50;display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}
.modal{width:100%;max-width:480px;max-height:calc(100dvh - 32px);overflow:auto;background:#fff;border-radius:16px}
.modal-wide{max-width:540px}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;padding:22px 24px 15px;gap:12px;border-bottom:1px solid var(--line)}
.modal-head h3{font-size:19px;margin:0 0 4px;font-weight:750}
.modal-head p{font-size:12px;color:var(--muted);margin:0}
.modal-body{padding:5px 24px 22px}
.modal-footer{display:flex;gap:8px;justify-content:flex-end;border-top:1px solid var(--line);padding:15px 24px 20px}
.modal-footer .btn{min-width:90px}
.pay-total{text-align:center;background:linear-gradient(100deg,#fff4e6,#fffaf5);border:1px solid #ffe8cc;border-radius:13px;padding:18px;margin:17px 0}
.pay-total span{font-size:11px;color:#8a6d4a}
.pay-total strong{display:block;font-size:32px;color:var(--accent);font-weight:800}
.pay-row{display:flex;gap:10px;align-items:center;margin-top:12px}
.pay-row label{width:100px;font-size:12px;font-weight:650;display:flex;gap:6px;align-items:center}
.pay-row .field{flex:1;min-width:0}.pay-row .btn{width:58px;flex:none}
.pay-status{padding:13px;background:#faf8f5;border-radius:10px;margin-top:18px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.pay-status span{display:block;font-size:11px;color:var(--muted)}
.pay-status.payment-pending{border:1px solid var(--accent);background:var(--accent-soft)}
.pay-status.payment-pending b{font-size:23px;color:var(--accent)}
.pay-status b{font-size:17px}
.pay-status .error{color:var(--red)}.pay-status .success{color:var(--green)}
.payment-hint{color:var(--muted);font-size:11px;margin:10px 0 0}.payment-error{grid-column:1/-1;color:var(--red);font-size:11px}
.receipt{max-width:290px;background:#fff;border:1px dashed #d6d3d1;margin:18px auto;padding:17px 12px;font:11px/1.5 "Courier New",monospace;color:#111}
.receipt h4{font-size:14px;margin:0 0 3px;text-align:center;font-weight:800}
.receipt p{margin:2px 0;text-align:center}
.receipt hr{border:0;border-top:1px dashed #78716c;margin:8px 0}
.receipt table{width:100%;border-collapse:collapse}
.receipt td{padding:2px 0;vertical-align:top}
.receipt td:last-child{text-align:right;white-space:nowrap;padding-left:6px}
.receipt .receipt-total{font-size:14px;font-weight:800}
.receipt .receipt-note{font-size:10px;margin-top:9px}
.modal-alert{background:var(--red-soft);color:#c92a2a;padding:9px 11px;border-radius:9px;font-size:11px;margin-top:12px}
#toast{position:fixed;right:22px;bottom:20px;z-index:70}
.toast-message{background:#1c1917;color:#fff;border-radius:10px;padding:11px 15px;display:flex;gap:9px;align-items:center;font-size:12px;font-weight:600}
.toast-message svg{color:#8ce99a}
.login-screen{min-height:100dvh;display:grid;grid-template-columns:minmax(320px,1fr) minmax(420px,1fr);background:#fff}
.login-left{background:var(--nav);color:#fff;display:flex;flex-direction:column;justify-content:center;padding:70px max(40px,10%)}
.login-left .brand{padding:0;margin-bottom:70px}
.login-left h1{font-size:clamp(30px,3.8vw,48px);line-height:1.12;max-width:520px;font-weight:800;margin-bottom:20px}
.login-left h1 em{color:#ffa94d;font-style:normal}
.login-left>p{color:#a8a29e;max-width:440px;font-size:14px}
.feature-row{margin-top:50px;display:flex;gap:10px;flex-wrap:wrap}
.feature-row span{display:flex;gap:7px;align-items:center;border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.04);padding:9px 11px;border-radius:9px;color:#d6d3d1;font-size:11.5px}
.feature-row svg{color:#ffa94d;width:15px;height:15px}
.login-right{display:grid;place-items:center;padding:50px 24px}
.login-form{width:100%;max-width:376px}
.login-form h2{font-size:26px;margin:0 0 5px;font-weight:750}
.login-form>p{color:var(--muted);font-size:12.5px;margin-bottom:26px}
.login-form .field{height:48px}
.login-form .btn{height:48px;margin-top:22px}
.demo-access{margin-top:32px;padding:18px;border:1px solid var(--line);border-radius:13px;background:#faf8f5}
.demo-access h4{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#78716c;margin:0 0 11px}
.demo-role{display:flex;justify-content:space-between;align-items:center;gap:9px;padding:7px 0;border-bottom:1px solid var(--line)}
.demo-role:last-child{border:0}
.demo-role strong{font-size:12px;display:block}
.demo-role span{font-size:11px;color:#a8a29e}
.demo-role button{background:#fff;border:1px solid var(--line);color:#c2410c;border-radius:7px;font-weight:650;font-size:11px;padding:6px 9px}
.login-foot{margin-top:22px;text-align:center;font-size:11px;color:#a8a29e}
.login-error{color:#c92a2a;background:var(--red-soft);padding:9px 11px;border-radius:8px;font-size:12px;margin-top:11px}
@media(max-width:1190px){.shell{grid-template-columns:204px minmax(0,1fr)}.main{padding:25px 22px}.topbar{padding:0 22px}.pos-layout{grid-template-columns:minmax(0,1fr) 325px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.side-help{display:none}}
@media(max-width:880px){.shell{display:block}.sidebar{height:auto;position:relative;padding:12px 14px;display:block}.sidebar .brand{display:none}.side-title,.side-help,.side-footer{display:none}.side-nav{flex-direction:row;overflow:auto;white-space:nowrap;gap:6px}.nav-bottom{display:flex;flex-direction:row;margin:0}.nav-btn{width:auto;flex:none;padding:9px 12px;font-size:12px}.nav-btn svg{width:15px;height:15px}.topbar{height:62px}.pagehead h2{font-size:21px}.pos-layout{grid-template-columns:minmax(0,1fr) 325px}.main{padding:22px 18px}.report-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}.login-screen{grid-template-columns:1fr}.login-left{min-height:260px;padding:28px}.login-left .brand{margin-bottom:20px}.login-left h1{font-size:30px}.login-left>p{font-size:12px}.login-left .feature-row{display:none}.login-right{padding:36px 22px}}
@media(max-width:710px){.topbar{padding:0 15px}.main{padding:20px 13px 32px}.topbar h1{font-size:14px}.topbar-right .date-label{display:none}.pos-layout{grid-template-columns:minmax(0,1fr)}.order{position:static}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stats{gap:8px}.stat{padding:15px;min-height:114px}.stat-value{font-size:21px}.cash-grid{grid-template-columns:1fr}.data-table th,.data-table td{padding:10px 13px}}
#print-root{display:none}
@media print{html,body{margin:0!important;padding:0!important;background:#fff!important}body>*:not(#print-root){display:none!important}#print-root{display:block!important}#print-root .receipt{box-sizing:border-box;max-width:none!important;width:var(--paper-print-width,72mm)!important;box-shadow:none!important;border:0!important;margin:0!important;padding:1mm!important;color:#000!important;font-size:11px!important}#print-root .receipt table{font-size:11px!important}@page{size:auto;margin:0}}
/* Identidad visual de inicio de sesión */
.login-left .brand{gap:17px;margin-bottom:60px}
.login-left .brand-mark{width:65px;height:65px;border-radius:16px}
.login-left .brand-mark svg{width:35px;height:35px}
.login-left .brand-text{font-size:33px;line-height:1.08}
.login-left .brand small{font-size:13px;color:#b9b2aa;margin-top:5px;letter-spacing:.04em}
/* Formularios de permisos: conservar acciones visibles al desplazarse */
.modal-head{position:sticky;top:0;background:#fff;z-index:2}
.modal-footer{position:sticky;bottom:0;background:#fff;z-index:2;box-shadow:0 -3px 14px rgba(28,25,23,.04)}
/* Módulo de permisos */
.perm-group{border:1px solid var(--line);border-radius:12px;padding:15px;margin:16px 0}
.perm-group h4{font-size:13px;margin:0 0 4px}
.perm-group p{font-size:11px;color:var(--muted);margin:0 0 13px}
.perm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.perm-item{display:flex;align-items:flex-start;gap:9px;border:1px solid var(--line);padding:10px;border-radius:9px;cursor:pointer;font-size:12px;background:#fff}
.perm-item:has(input:checked){background:var(--accent-soft);border-color:#ffd2a5}
.perm-item input{margin:2px 0 0;accent-color:var(--accent);flex:none}
.perm-item strong{display:block;font-size:11.5px;color:var(--ink);font-weight:700}
.perm-item small{display:block;font-size:10.5px;color:var(--muted);line-height:1.4;margin-top:2px}
.perm-note{font-size:11px;color:var(--muted);margin-top:11px}
.cash-banner{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;background:#fffaf2;border:1px solid #ffdfbd;border-radius:12px;padding:12px 14px;margin:0 0 17px}
.cash-banner strong{font-size:12px}.cash-banner p{font-size:11px;color:var(--muted);margin:2px 0 0}
.cash-banner .btn{flex:none}
.cash-history{margin-top:14px}
@media(max-width:710px){.perm-grid{grid-template-columns:1fr}.login-left .brand-mark{width:54px;height:54px}.login-left .brand-mark svg{width:30px;height:30px}.login-left .brand-text{font-size:27px}.login-left .brand small{font-size:11px}}

/* Marca de ingreso más grande, sin alterar logotipo lateral del sistema */
.login-left .brand{gap:25px;margin-bottom:52px;max-width:100%}
.login-left .brand-mark{width:clamp(90px,7.4vw,135px);height:clamp(90px,7.4vw,135px);border-radius:24px;flex-shrink:0}
.login-left .brand-mark svg{width:54%;height:54%}
.login-left .brand-text{font-size:clamp(41px,4.2vw,74px);line-height:1.05;white-space:nowrap}
.login-left .brand small{font-size:clamp(14px,1.45vw,23px);color:#d6d3d1;margin-top:10px;letter-spacing:.025em;white-space:nowrap}
.order-destination{display:flex;align-items:center;gap:6px;margin-top:7px;flex-wrap:wrap}
.order-destination span{font-size:10px;color:#78716c}
.order-destination select{width:auto;min-height:29px;padding:3px 6px;font-size:11px;max-width:145px}
.order-mode-title{font-size:10.5px;color:#78716c;font-weight:600;margin-top:14px}
.ticket-section{font-weight:750;border-bottom:1px dashed #aaa;margin:8px 0 6px;padding-bottom:3px;text-align:left}
.printer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.printer-help{font-size:11px;color:var(--muted);margin-top:12px;line-height:1.6}
.printer-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}
@media(max-width:880px){.login-left .brand{gap:14px;margin-bottom:24px}.login-left .brand-mark{width:62px;height:62px;border-radius:16px}.login-left .brand-text{font-size:31px}.login-left .brand small{font-size:12px;margin-top:5px}}
@media(max-width:710px){.printer-grid{grid-template-columns:1fr}.login-left .brand-mark{width:62px;height:62px}.login-left .brand-text{font-size:31px}.login-left .brand small{font-size:12px}}

/* =========================================================
   BrasaPOS · capa visual adaptable (sin cambios en ventas)
   Modo claro: paleta cálida original
   Modo oscuro: paleta índigo del diseño suministrado
   ========================================================= */
:root {
  --ui-subtle: #faf8f5;
  --ui-raised: #fff;
  --ui-ink-soft: #57534e;
  --ui-contrast: #fff;
  --ui-outline-accent: #ffc078;
  --ui-hover: #fff4e6;
  --ui-topbar: #fff;
  --ui-cash: #fffaf2;
  --ui-cash-line: #ffdfbd;
  --ui-muted-line: #eee9e2;
  --ui-badge: #f1ede6;
  --ui-pop: #fff;
  --round: 16px;
  --round-sm: 10px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #090d16;
  --surface: #131e32;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: rgba(255,255,255,.10);
  --nav: #0e1526;
  --nav-2: #19263f;
  --accent: #6366f1;
  --accent-2: #4f46e5;
  --accent-soft: rgba(99,102,241,.14);
  --green: #10b981;
  --green-soft: rgba(16,185,129,.14);
  --red: #f43f5e;
  --red-soft: rgba(244,63,94,.14);
  --amber: #f59e0b;
  --teal: #14b8a6;
  --shadow: 0 4px 12px rgba(0,0,0,.16), 0 12px 26px rgba(0,0,0,.26);
  --ui-subtle: #17243a;
  --ui-raised: #182640;
  --ui-ink-soft: #a8b7d0;
  --ui-contrast: #f1f5f9;
  --ui-outline-accent: rgba(99,102,241,.50);
  --ui-hover: #202f4b;
  --ui-topbar: rgba(14,21,38,.96);
  --ui-cash: rgba(99,102,241,.07);
  --ui-cash-line: rgba(99,102,241,.25);
  --ui-muted-line: rgba(255,255,255,.07);
  --ui-badge: #202c43;
  --ui-pop: #131e32;
  --round: 16px;
}
html { color-scheme: light; }
body { line-height: 1.55; }
h1,h2,h3,h4 { letter-spacing: -.025em; }
button,input,select,textarea { font-family: inherit; }
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn { min-height:44px; padding:10px 18px; font-size:13px; font-weight:700; gap:8px; transition:background .2s,box-shadow .2s,transform .2s; }
.btn:hover:not(:disabled) { transform:translateY(-1px); }
.btn-light,.btn-icon { background:var(--surface); color:var(--ink); border:1px solid var(--line); }
.btn-light:hover:not(:disabled),.btn-icon:hover:not(:disabled) { background:var(--ui-hover); color:var(--ink); }
.btn-sm { min-height:35px; padding:8px 12px; }
.btn-icon { width:40px; height:40px; min-height:40px; padding:0; display:inline-flex; align-items:center; justify-content:center; }
.field { min-height:44px; background:var(--ui-raised); border:1px solid var(--line); color:var(--ink); padding:10px 13px; }
.field:focus { box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent); }
.form-label { color:var(--ui-ink-soft); font-size:12px; font-weight:700; }
.field::placeholder { color:var(--muted); opacity:.85; }
/* Selects: apariencia propia, sin depender de la flecha nativa del navegador */
select.field{appearance:none;-webkit-appearance:none;cursor:pointer;padding-right:42px;background-color:var(--ui-raised);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%2378716c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:16px 16px;font-weight:600;transition:border-color .16s,box-shadow .16s,background-color .16s}
select.field:hover{border-color:var(--ui-outline-accent);background-color:var(--ui-hover)}
select.field:focus{background-color:var(--ui-raised)}
select.field option{background:var(--ui-raised);color:var(--ink);font-weight:500}
:root[data-theme="dark"] select.field{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23cbd5e1' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.select-control{position:relative;width:100%}
.select-control .native-select{position:absolute!important;width:1px!important;height:1px!important;min-height:1px!important;opacity:0!important;pointer-events:none!important;clip-path:inset(50%);overflow:hidden}
.select-trigger{width:100%;min-height:44px;padding:10px 42px 10px 13px;border:1px solid var(--line);border-radius:var(--round-sm);background-color:var(--ui-raised);color:var(--ink);font:inherit;font-weight:600;text-align:left;line-height:1.4;position:relative;transition:border-color .16s,box-shadow .16s,background-color .16s}
.select-trigger:after{content:"";position:absolute;right:14px;top:50%;width:9px;height:9px;border-right:1.8px solid var(--muted);border-bottom:1.8px solid var(--muted);transform:translateY(-70%) rotate(45deg);transition:transform .18s,border-color .18s}
.select-trigger:hover:not(:disabled){border-color:var(--ui-outline-accent);background-color:var(--ui-hover)}
.select-trigger:focus-visible{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent)}
.select-control.is-open .select-trigger{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent);background-color:var(--ui-raised)}
.select-control.is-open .select-trigger:after{transform:translateY(-30%) rotate(225deg);border-color:var(--accent)}
.select-trigger:disabled{cursor:not-allowed;opacity:.55}
.select-menu{display:none;position:absolute;z-index:45;left:0;right:0;top:calc(100% + 6px);max-height:220px;overflow-y:auto;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--ui-pop);box-shadow:0 14px 28px rgba(28,25,23,.16)}
.select-control.is-open .select-menu{display:block;animation:select-menu-in .14s ease-out}
.select-option{display:block;width:100%;min-height:37px;padding:8px 10px;border-radius:8px;color:var(--ink);font:inherit;font-size:13px;text-align:left;background:transparent;transition:background-color .14s,color .14s}
.select-option:hover:not(:disabled),.select-option:focus-visible{outline:0;background:var(--accent-soft);color:var(--accent)}
.select-option[aria-selected="true"]{background:var(--accent);color:#fff;font-weight:700}.select-option:disabled{opacity:.45;cursor:not-allowed}
@keyframes select-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
.order-destination .select-control{width:auto;min-width:116px}.order-destination .select-trigger{min-height:29px;padding:3px 28px 3px 7px;font-size:11px}.order-destination .select-trigger:after{right:9px;width:7px;height:7px}.order-destination .select-menu{min-width:145px;right:auto}.order-destination .select-option{min-height:31px;font-size:11px;padding:6px 8px}
input[type="checkbox"]{appearance:none;-webkit-appearance:none;position:relative;width:18px;height:18px;margin:0;flex:0 0 18px;border:1.5px solid #c9c2b9;border-radius:5px;background:var(--surface);vertical-align:middle;cursor:pointer;transition:background .16s,border-color .16s,box-shadow .16s}
input[type="checkbox"]:hover{border-color:var(--accent)}input[type="checkbox"]:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(232,89,12,.18)}input[type="checkbox"]:checked{background:var(--accent);border-color:var(--accent)}input[type="checkbox"]:checked:after{content:"";position:absolute;left:5px;top:2px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}input[type="checkbox"]:disabled{cursor:not-allowed;opacity:.55}

/* Layout tipo fintech: jerarquía, espaciado y proporciones */
.shell { grid-template-columns:260px minmax(0,1fr); }
.sidebar { padding:24px 16px; border-right:1px solid var(--line); }
.sidebar .brand { padding:4px 8px 28px; gap:12px; }
.sidebar .brand-mark { width:44px; height:44px; border-radius:13px; }
.sidebar .brand-mark svg { width:24px; height:24px; }
.sidebar .brand-text { font-size:21px; }
.side-title { font-size:10.5px; padding:0 12px; margin:14px 0 8px; }
.side-nav { gap:6px; }
.nav-btn { padding:11px 13px; font-size:13px; font-weight:650; gap:11px; }
.nav-btn.active { border:1px solid var(--ui-outline-accent); box-shadow:inset 3px 0 0 var(--accent); background:var(--nav-2); }
.nav-btn:hover { background:var(--nav-2); }
.side-help { margin:16px 0; padding:16px; border:1px solid rgba(255,255,255,.07); }
.side-footer { padding:16px 8px 0; }
.topbar { height:76px; position:sticky; top:0; z-index:12; padding:0 30px; background:var(--ui-topbar); gap:16px; }
.topbar h1 { font-size:18px; font-weight:800; }
.topbar-sub { font-size:11px; }
.topbar-right { gap:10px; }
.date-label { background:var(--surface); border:1px solid var(--line); color:var(--muted); padding:8px 12px; border-radius:20px; }
.page { background:var(--bg); min-width:0; }
.main { max-width:1600px; padding:32px 30px 52px; }
.pagehead { display:flex; justify-content:space-between; align-items:flex-start; flex-wrap:wrap; gap:14px; margin-bottom:25px; }
.pagehead h2 { font-size:26px; font-weight:800; margin:0 0 5px; }
.pagehead p { font-size:13px; }
.sale-saved{display:flex;align-items:center;gap:9px;min-width:245px;padding:10px 13px;border:1px solid #a9dfb4;border-radius:11px;background:var(--green-soft);color:#237235;box-shadow:0 1px 3px rgba(47,158,68,.08)}
.sale-saved svg{width:19px;height:19px;padding:3px;border-radius:50%;background:var(--green);color:#fff}.sale-saved span{display:grid;gap:1px}.sale-saved b{font-size:12px;line-height:1.15}.sale-saved small{font-size:11px;color:#367044;white-space:nowrap}
.archive-card{border:1px solid #f4d5d5}.archive-warning{background:var(--red-soft);border-color:#ffc9c9}.archive-delete{background:var(--red)}.archive-delete:hover:not(:disabled){background:#c92a2a}
.card { background:var(--surface); box-shadow:var(--shadow); }
.card-head { padding:20px 24px 15px; }
.card-head h3 { font-size:15px; font-weight:750; }
.card-body { padding:4px 24px 22px; }

/* Catálogo y pedido: importes separados, sin superposiciones */
.pos-layout { grid-template-columns:minmax(0,1fr) minmax(340px,380px); gap:22px; }
.catalog-toolbar { margin-bottom:18px; gap:14px; }
.search-box { max-width:400px; }
.tabbar { gap:8px; margin-bottom:20px; }
.tab { min-height:38px; background:var(--surface); color:var(--muted); border:1px solid var(--line); padding:9px 15px; border-radius:10px; font-size:12px; }
.tab:hover { color:var(--ink); border-color:var(--ui-outline-accent); }
.tab.active { background:var(--accent); color:#fff; border-color:var(--accent); }
.catalog-summary { margin-bottom:15px; }
.catalog-summary strong { font-size:14px; }
.product-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; align-items:stretch; }
.product-tile { min-width:0; min-height:198px; background:var(--surface); border:1px solid var(--line); border-radius:var(--round); box-shadow:var(--shadow); transition:border-color .2s,transform .2s,box-shadow .2s; }
.product-tile:hover { border-color:var(--accent); transform:translateY(-3px); }
.product-art { height:111px; background:var(--ui-subtle); }
.product-photo{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.image-file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.image-dropzone{position:relative;display:flex;min-height:122px;align-items:center;justify-content:center;flex-direction:column;gap:3px;border:2px dashed #d9dee5;border-radius:12px;background:#fbfcfd;color:var(--ink);cursor:pointer;text-align:center;transition:border-color .16s,background .16s,transform .16s;overflow:hidden}.image-dropzone:hover,.image-dropzone:focus-visible,.image-dropzone.drag-over{border-color:var(--accent);background:var(--accent-soft);outline:0}.image-dropzone.drag-over{transform:scale(1.01)}.image-dropzone-icon{font-size:22px;line-height:1}.image-dropzone strong{font-size:13px}.image-dropzone small{font-size:11px;color:var(--muted)}.product-image-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.27}.image-dropzone.has-image .image-dropzone-icon,.image-dropzone.has-image strong,.image-dropzone.has-image small{position:relative;z-index:1;background:rgba(255,255,255,.88);padding:2px 7px;border-radius:6px}.image-dropzone.has-image strong{max-width:82%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-thumbnail{width:34px;height:34px;object-fit:cover;border-radius:8px;vertical-align:middle;margin-right:9px;border:1px solid var(--line)}
.tile-symbol { font-size:40px; }
.tile-add { width:33px; height:33px; right:11px; bottom:11px; }
.tile-foot { min-width:0; flex:1; display:flex; flex-direction:column; justify-content:space-between; padding:13px 15px 15px; min-height:83px; gap:10px; }
.tile-title { display:block; min-height:auto; font-size:13px; line-height:1.4; overflow-wrap:anywhere; font-weight:700; }
.tile-price { display:block; align-self:flex-start; white-space:nowrap; font-size:16px; line-height:1.15; font-weight:800; margin-top:auto; }
.order { top:96px; }
.order-head { background:var(--surface); padding:21px 22px 18px; }
.order-head h3 { font-size:18px; }
.order-sub { line-height:1.6; }
.order-mode-title { font-size:11px; margin-top:15px; }
.order-modes { gap:7px; margin-top:11px; }
.order-mode { background:var(--ui-raised); color:var(--muted); border:1px solid var(--line); padding:10px 4px; font-size:11px; }
.order-mode.active { color:var(--accent); border-color:var(--ui-outline-accent); background:var(--accent-soft); }
.order-items { padding:12px 20px; min-height:170px; max-height:360px; }
.order-line { padding:14px 0; gap:12px; border-bottom-color:var(--line); }
.order-line h4 { font-size:13px; }
.order-line small { font-size:11px; }
.order-line .line-right { min-width:108px; white-space:nowrap; }
.line-right strong { font-size:14px; margin-bottom:11px; }
.qty { background:var(--ui-subtle); padding:3px; border:1px solid var(--line); border-radius:9px; gap:5px; }
.qty-btn { width:27px; height:27px; border:0; color:var(--ink); background:var(--surface); }
.qty-btn:hover { background:var(--accent); color:#fff; }
.qty b { font-size:12px; min-width:18px; }
.order-destination { gap:7px; }
.order-destination span { color:var(--muted); }
.order-destination select { min-height:29px; max-width:140px; background-color:var(--ui-raised); color:var(--ink); }
.order-total { background:var(--surface); padding:19px 22px 22px; }
.price-row { color:var(--muted); font-size:12px; }
.price-row strong { color:var(--ink); }
.grand-total { padding:15px 0 0; margin:12px 0 0; }
.grand-total strong:first-child { font-size:13px; }
.grand-total strong:last-child { font-size:26px; white-space:nowrap; }
.order-actions { margin-top:18px; gap:9px; }
.cart-illustration { background:var(--ui-subtle); }
.cart-illustration svg { color:var(--muted); }
.cash-banner { background:var(--ui-cash); border-color:var(--ui-cash-line); padding:14px 17px; border-radius:12px; }
.cash-banner strong { font-size:13px; }
.cash-banner p { font-size:11.5px; }

/* Informes: tarjetas más equilibradas y cantidades sin amontonamiento */
.stats { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-bottom:22px; }
.stat { min-height:122px; background:var(--surface); padding:19px 21px; }
.stat-label { font-size:12px; color:var(--muted); }
.stat-value { font-size:clamp(20px,2vw,28px); color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin:9px 0 5px; }
.stat-foot { font-size:11px; color:var(--muted); }
.report-grid { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr); gap:18px; margin-bottom:18px; }
.bar-list { padding:15px 24px 24px; }
.bar-label { font-size:12px; }
.bar-label strong { font-size:12px; }
.bar-label em { font-size:11px; color:var(--muted); }
.bar-bg { height:9px; background:var(--ui-subtle); }
.breakdown { padding:14px 22px 25px; gap:16px; }
.donut:after { background:var(--surface); }
.legend-item { gap:9px; color:var(--muted); }
.legend-item b { white-space:nowrap; }
.table-top { padding:20px 24px 14px; }
.table-top h3 { font-size:15px; }
.data-table { font-size:12px; }
.data-table th { background:var(--ui-subtle); color:var(--muted); padding:13px 20px; border-color:var(--line); }
.data-table td { padding:14px 20px; color:var(--ui-ink-soft); border-color:var(--line); vertical-align:middle; }
.data-table td strong { color:var(--ink); }
.data-table tr:hover td { background:var(--ui-subtle); }
.table-actions { gap:7px; }
.action-link { color:var(--accent); border-radius:7px; padding:6px 9px; background:var(--accent-soft); }
.action-link.warn { color:var(--red); background:var(--red-soft); }
.cash-grid { gap:13px; }
.boxline { background:var(--ui-subtle); border-color:var(--line); padding:16px; }
.cash-line { color:var(--muted); }
.cash-line b { color:var(--ink); }
.cash-state { background:var(--ui-subtle); border-color:var(--line); padding:16px; }

/* Formularios, permisos y ventanas */
.settings-grid { gap:18px; }
.setting-card { padding:24px; }
.setting-card h3 { font-size:17px; }
.notice { background:var(--accent-soft); color:var(--ui-ink-soft); border:1px solid var(--ui-outline-accent); }
.circle-letter { background:var(--ui-subtle); color:var(--ink); border:1px solid var(--line); }
.overlay { background:rgba(4,8,17,.7); backdrop-filter:blur(5px); }
.modal { background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:0 16px 45px rgba(0,0,0,.22); }
.modal-head,.modal-footer { background:var(--surface); padding-left:24px; padding-right:24px; }
.modal-body { padding:15px 24px 24px; }
.modal-head h3 { font-size:20px; }
.modal-wide { max-width:585px; }
.pay-total { background:var(--accent-soft); border:1px solid var(--ui-outline-accent); }
.pay-total span { color:var(--accent); }
.pay-row { gap:10px; }
.pay-row label { min-width:95px; flex-shrink:0; color:var(--ink); }
.pay-status { background:var(--ui-subtle); }
.pay-status span { color:var(--muted); }
.modal-alert { color:var(--red); }
.perm-group { background:var(--surface); border-color:var(--line); }
.perm-item { background:var(--ui-subtle); border-color:var(--line); }
.perm-item:has(input:checked) { background:var(--accent-soft); border-color:var(--ui-outline-accent); }
.perm-item strong { color:var(--ink); }
.perm-item small { color:var(--muted); }
.printer-help,.printer-grid { color:var(--muted); }
.receipt { background:#fff!important; color:#111!important; }
.receipt h4,.receipt td { color:#111!important; }
.receipt td span { color:#555!important; }

/* Presentación del login; el logo grande pedido se conserva */
.login-screen { grid-template-columns:minmax(0,1.17fr) minmax(390px,.83fr); background:var(--bg); }
.login-left { padding:60px clamp(36px,6vw,95px); }
.login-left .brand { max-width:100%; margin-bottom:46px; }
.login-left h1 { font-size:clamp(29px,3.6vw,48px); }
.login-left > p { font-size:14px; }
.login-right { padding:40px 32px; background:var(--bg); position:relative; }
.login-form { max-width:400px; }
.login-form h2 { font-size:30px; }
.login-form > p { font-size:13px; }
.demo-access { background:var(--surface); border-color:var(--line); padding:19px; }
.demo-access h4 { color:var(--muted); }
.demo-role strong { color:var(--ink); }
.demo-role span { color:var(--muted); }
.demo-role button { background:var(--ui-subtle); border-color:var(--line); color:var(--accent); }
.demo-role button:hover { background:var(--accent-soft); }
.login-foot { color:var(--muted); }
.login-error { color:var(--red); }

/* Botón visible tanto en acceso como en cabecera, sin alterar las pantallas */
.theme-toggle{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:5px 6px 5px 7px;border:1px solid var(--line);border-radius:13px;background:var(--surface);color:var(--ink);font-size:12px;font-weight:800;letter-spacing:.01em;white-space:nowrap;box-shadow:0 1px 2px rgba(28,25,23,.04);transition:transform .16s,border-color .16s,box-shadow .16s,background .16s}.theme-toggle:hover{border-color:var(--accent);box-shadow:0 5px 14px rgba(28,25,23,.08);transform:translateY(-1px)}.theme-toggle:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(232,89,12,.2)}.theme-mode-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:9px;background:var(--accent-soft);color:var(--accent)}.theme-mode-icon svg{width:16px;height:16px}.theme-label{min-width:42px;text-align:left}.theme-switch{width:34px;height:20px;border-radius:20px;background:#ddd5cb;padding:3px;transition:background .18s}.theme-switch span{display:block;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(28,25,23,.28);transition:transform .18s}.theme-toggle.is-dark .theme-switch{background:#6366f1}.theme-toggle.is-dark .theme-switch span{transform:translateX(14px)}
.login-theme-bar { position:absolute; top:22px; right:26px; z-index:5; }

/* Paleta oscura: índigo, paneles azul marino y acentos violetas */
:root[data-theme="dark"] .sidebar { background:#0e1526; }
:root[data-theme="dark"] .brand-mark { background:linear-gradient(135deg,#6366f1,#3b82f6); box-shadow:0 6px 18px rgba(99,102,241,.24); }
:root[data-theme="dark"] .brand-text span { color:#818cf8; }
:root[data-theme="dark"] .brand small { color:var(--muted); }
:root[data-theme="dark"] .nav-btn { color:var(--muted); }
:root[data-theme="dark"] .nav-btn.active { color:#fff; background:linear-gradient(90deg,rgba(99,102,241,.22),rgba(99,102,241,.04)); }
:root[data-theme="dark"] .nav-btn.active svg { color:#a5b4fc; }
:root[data-theme="dark"] .side-help { background:rgba(255,255,255,.03); }
:root[data-theme="dark"] .side-help svg { color:#a5b4fc; }
:root[data-theme="dark"] .side-footer .avatar { color:#a5b4fc; background:var(--accent-soft); }
:root[data-theme="dark"] .topbar { background:var(--ui-topbar); backdrop-filter:blur(12px); }
:root[data-theme="dark"] .badge { background:var(--ui-badge); color:var(--muted); }
:root[data-theme="dark"] .badge-warm { background:var(--accent-soft); color:#a5b4fc; }
:root[data-theme="dark"] .header-avatar { color:#a5b4fc; }
:root[data-theme="dark"] .pill-ok { color:#34d399; background:var(--green-soft); }
:root[data-theme="dark"] .pill-alert { color:#fb7185; background:var(--red-soft); }
:root[data-theme="dark"] .pill-off { color:var(--muted); background:var(--ui-subtle); }
:root[data-theme="dark"] .btn:not(.btn-light):not(.theme-toggle) { box-shadow:0 4px 13px rgba(99,102,241,.19); }
:root[data-theme="dark"] .btn-light{background:var(--ui-raised);color:var(--ink);border-color:var(--line)}:root[data-theme="dark"] .theme-toggle{background:#151d31;border-color:#2c3855;color:#e8edff}:root[data-theme="dark"] .theme-mode-icon{background:#242344;color:#b7b9ff}:root[data-theme="dark"] .theme-switch{background:#3a4664}:root[data-theme="dark"] .theme-toggle.is-dark .theme-switch{background:#818cf8}:root[data-theme="dark"] input[type="checkbox"]{background:#141c2f;border-color:#52617f}:root[data-theme="dark"] input[type="checkbox"]:checked{background:#818cf8;border-color:#818cf8}
:root[data-theme="dark"] .product-art.art-pollo { background:linear-gradient(135deg,rgba(99,102,241,.17),rgba(59,130,246,.05)); }
:root[data-theme="dark"] .product-art.art-side { background:linear-gradient(135deg,rgba(6,182,212,.17),rgba(6,182,212,.04)); }
:root[data-theme="dark"] .product-art.art-drink { background:linear-gradient(135deg,rgba(20,184,166,.17),rgba(16,185,129,.04)); }
:root[data-theme="dark"] .product-art.art-other { background:linear-gradient(135deg,rgba(168,85,247,.17),rgba(124,58,237,.04)); }
:root[data-theme="dark"] .tile-symbol { color:#a5b4fc; }
:root[data-theme="dark"] .art-side .tile-symbol { color:#67e8f9; }
:root[data-theme="dark"] .art-drink .tile-symbol { color:#5eead4; }
:root[data-theme="dark"] .art-other .tile-symbol { color:#c4b5fd; }
:root[data-theme="dark"] .tile-price { color:#a5b4fc; }
:root[data-theme="dark"] .counter { color:#a5b4fc; background:var(--accent-soft); }
:root[data-theme="dark"] .order-mode.active { color:#a5b4fc; }
:root[data-theme="dark"] .grand-total strong:last-child { color:#a5b4fc; }
:root[data-theme="dark"] .bar-fill { background:linear-gradient(90deg,#6366f1,#3b82f6); }
:root[data-theme="dark"] .bar-fill.alt { background:linear-gradient(90deg,#a855f7,#06b6d4); }
:root[data-theme="dark"] .bar-fill.third { background:linear-gradient(90deg,#10b981,#059669); }
:root[data-theme="dark"] .pay-total strong { color:#f1f5f9; }
:root[data-theme="dark"] .action-link { color:#a5b4fc; }
:root[data-theme="dark"] .legend-item .dot { box-shadow:0 0 0 1px rgba(255,255,255,.07); }
:root[data-theme="dark"] .login-left { background:linear-gradient(135deg,#0e1526,#090d16); border-right:1px solid var(--line); }
:root[data-theme="dark"] .login-left h1 em { color:#a5b4fc; }
:root[data-theme="dark"] .feature-row span { border-color:var(--line); color:#dbe4f0; }
:root[data-theme="dark"] .feature-row svg { color:#a5b4fc; }
:root[data-theme="dark"] .login-left .brand small { color:#b8c3d5; }
:root[data-theme="dark"] .login-form .eyebrow { color:#a5b4fc!important; }

/* Optimización para pantallas intermedias y pequeñas */
@media (max-width:1250px) {
  .shell { grid-template-columns:220px minmax(0,1fr); }
  .main { padding:25px 22px; }
  .topbar { padding:0 22px; }
  .pos-layout { grid-template-columns:minmax(0,1fr) 345px; gap:16px; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .report-grid { grid-template-columns:1fr; }
  .login-left .brand-mark { width:90px; height:90px; }
  .login-left .brand-text { font-size:46px; }
  .login-left .brand small { font-size:15px; }
}
@media (max-width:900px) {
  .shell { display:block; }
  .sidebar { height:auto; position:relative; padding:11px 14px; display:flex; flex-direction:row; flex-wrap:wrap; align-items:center; gap:8px; }
  .sidebar .brand,.sidebar .side-title,.sidebar .side-help,.sidebar .side-footer { display:none; }
  .sidebar .side-nav { flex:1 1 auto; flex-direction:row; gap:5px; overflow-x:auto; }
  .sidebar .nav-bottom { margin:0; flex-direction:row; }
  .nav-btn { width:auto; flex:none; padding:9px 12px; font-size:12px; }
  .topbar { height:66px; }
  .main { padding:22px 18px 35px; }
  .pos-layout { grid-template-columns:minmax(0,1fr) 335px; }
  .order { top:85px; }
  .settings-grid { grid-template-columns:1fr; }
  .login-screen { grid-template-columns:1fr; }
  .login-left { padding:28px; min-height:245px; }
  .login-left .brand { gap:13px; margin-bottom:16px; }
  .login-left .brand-mark { width:62px; height:62px; border-radius:15px; }
  .login-left .brand-text { font-size:31px; }
  .login-left .brand small { font-size:12px; margin-top:4px; }
  .login-left h1 { font-size:29px; margin-bottom:10px; }
  .login-left > p { font-size:12px; max-width:520px; }
  .login-left .feature-row { display:none; }
  .login-right { padding:40px 24px; }
}
@media (max-width:710px) {
  .topbar { padding:0 13px; height:64px; }
  .topbar h1 { font-size:15px; }
  .topbar-sub { font-size:10px; }
  .topbar-right { gap:7px; }
  .topbar-right .date-label,.topbar-right .badge-warm,.topbar-right .header-avatar { display:none; }
  .theme-toggle{min-height:38px;gap:6px}.theme-mode-icon{width:25px;height:25px}.theme-label{font-size:11px}.theme-switch{width:31px;height:18px}.theme-switch span{width:12px;height:12px}.theme-toggle.is-dark .theme-switch span{transform:translateX(13px)}
  .main { padding:19px 13px 34px; }
  .pagehead h2 { font-size:22px; }
  .sale-saved{min-width:0;padding:8px 10px}.sale-saved small{white-space:normal}
  .pos-layout { grid-template-columns:1fr; }
  .order { position:static; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .product-art { height:96px; }
  .product-tile { min-height:185px; }
  .tile-foot { min-height:80px; padding:11px 12px 13px; }
  .tile-title { font-size:12px; }
  .tile-price { font-size:15px; }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .stat { padding:14px; min-height:108px; }
  .stat-value { font-size:21px; }
  .cash-grid { grid-template-columns:1fr; }
  .breakdown { flex-wrap:wrap; justify-content:center; }
  .table-top { padding:15px; }
  .data-table { min-width:680px; }
  .data-table th,.data-table td { padding:11px 12px; }
  .perm-grid,.printer-grid { grid-template-columns:1fr; }
  .modal-head,.modal-body,.modal-footer { padding-left:17px; padding-right:17px; }
  .modal-footer { flex-wrap:wrap; }
  .login-theme-bar { right:12px; top:10px; }
  .login-left { padding:46px 20px 24px; }
  .login-left h1 { font-size:25px; }
  .login-right { padding:28px 19px; }
  .pay-row label { min-width:82px; width:82px; }
}
@media (max-width:390px) {
  .theme-toggle .theme-label,.theme-toggle .theme-switch{display:none}.theme-toggle{width:38px;padding:5px;justify-content:center}
  .product-grid { gap:8px; }
  .order-line .line-right { min-width:95px; }
  .order-items { padding:10px 13px; }
}
@media print {
  html,body { background:#fff!important; color:#000!important; }
  #print-root .receipt, #print-root .receipt * { color:#000!important; background:#fff!important; box-shadow:none!important; }
  .theme-toggle { display:none!important; }
}
/* Canales de cobro: colores del tema aplicados sin tocar importes */
:root {
 --pay-efectivo:#e8590c;
 --pay-yape:#f08c00;
 --pay-plin:#c2410c;
 --pay-tarjeta:#2f9e44;
}
:root[data-theme="dark"] {
 --pay-efectivo:#6366f1;
 --pay-yape:#a855f7;
 --pay-plin:#06b6d4;
 --pay-tarjeta:#14b8a6;
}
@media (max-width:710px) {
  .pos-layout { grid-template-columns:minmax(0,1fr); }
  .pos-layout > section { min-width:0; }
  .catalog-toolbar { min-width:0; }
  .search-box { min-width:0; }
  .product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* ================= Dashboard de ventas: dos temas / adaptable ================= */
.dash-filter-panel{padding:20px 23px;margin-bottom:19px}
.dash-filter-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-bottom:15px}
.dash-filter-heading strong{font-size:14px;display:block;font-weight:800}
.dash-filter-heading small{font-size:12px;color:var(--muted);display:block;margin-top:3px}
.dash-info{font-size:11px;color:var(--muted);display:inline-flex;align-items:center;gap:7px}
.dash-info svg{width:14px;height:14px}
.dash-tabs{display:flex;flex-wrap:wrap;gap:8px}
.dash-tab{background:var(--ui-subtle);color:var(--muted);border:1px solid var(--line);padding:9px 14px;border-radius:9px;font-size:12px;font-weight:750;min-height:37px;transition:background .2s,border .2s}
.dash-tab:hover{border-color:var(--ui-outline-accent);color:var(--ink)}
.dash-tab.active{background:var(--accent);border-color:var(--accent);color:#fff}
.dash-custom{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin-top:18px;padding-top:16px;border-top:1px solid var(--line)}
.dash-custom label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:12px;min-width:150px;font-weight:600}
.dash-custom input{font-size:12px}
.dash-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:19px}
.dash-kpi{padding:19px 21px;min-width:0;display:flex;flex-direction:column;gap:8px;min-height:164px}
.dash-kpi-head{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:12px;font-weight:700}
.dash-kpi-icon{background:var(--accent-soft);border-radius:11px;width:33px;height:33px;display:grid;place-items:center;color:var(--accent)}
.dash-kpi-icon svg{width:17px;height:17px}
.dash-kpi>strong{color:var(--ink);font-weight:850;font-size:clamp(20px,2.3vw,29px);line-height:1.2;white-space:nowrap;letter-spacing:-.04em;overflow:hidden;text-overflow:ellipsis}
.dash-kpi>small{color:var(--muted);font-size:10.5px;margin-top:auto}
.dash-delta{display:inline-block;width:fit-content;max-width:100%;font-size:11px;font-weight:750;padding:3px 9px;border-radius:20px;white-space:nowrap}
.dash-delta.positive{color:var(--green);background:var(--green-soft)}
.dash-delta.negative{color:var(--red);background:var(--red-soft)}
.dash-delta.neutral{color:var(--muted);background:var(--ui-subtle)}
.dash-trend-card{margin-bottom:19px;overflow:hidden}
.dash-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:19px 22px 15px}
.dash-card-heading h3{font-weight:800;font-size:15px;margin:0 0 4px;color:var(--ink)}
.dash-card-heading p{color:var(--muted);font-size:11px;margin:0}
.dash-card-heading>svg{color:var(--accent)}
.dash-legend{display:flex;align-items:center;gap:17px;color:var(--muted);font-size:11px;flex-wrap:wrap}
.dash-legend>span{display:inline-flex;align-items:center;gap:6px}
.dash-legend i{width:19px;border-top:3px solid var(--accent)}
.dash-legend .dash-legend-previous{border-top:3px dashed var(--muted)}
.dash-trend-chart{padding:4px 20px 7px;min-width:0}
.dash-trend-svg{width:100%;height:auto;display:block;max-height:330px;overflow:visible}
.dash-hint{display:block;padding:0 22px 16px;color:var(--muted);font-size:11px}
.dash-detail-grid{display:grid;grid-template-columns:1.12fr 1fr;gap:18px;margin-bottom:19px}
.dash-detail-grid>.card{min-width:0;overflow:hidden}
.dash-product-list{padding:3px 22px 17px}
.dash-product-row{margin:9px 0 16px}
.dash-product-meta{display:flex;align-items:center;justify-content:space-between;gap:13px;font-size:12px;margin-bottom:8px}
.dash-product-meta>span{min-width:0;display:flex;align-items:center;gap:9px;font-weight:650;overflow-wrap:anywhere}
.dash-product-meta strong{font-size:12px;white-space:nowrap}
.dash-position{background:var(--accent-soft);color:var(--accent);width:25px;height:25px;border-radius:7px;display:grid;place-items:center;flex:none}
.dash-bar{height:8px;background:var(--ui-subtle);border-radius:12px;overflow:hidden}
.dash-bar>span{display:block;height:100%;border-radius:12px;background:linear-gradient(90deg,var(--accent),var(--accent-2))}
.dash-product-row small{font-size:10.5px;color:var(--muted)}
.dash-footnote{border-top:1px solid var(--line);padding:12px 22px;color:var(--muted);font-size:11px}
.dash-payment-wrap{display:flex;align-items:center;justify-content:center;gap:25px;flex-wrap:wrap;padding:12px 20px 26px}
.dash-pay-donut{width:164px;height:164px;border-radius:50%;display:grid;place-items:center;flex:none}
.dash-pay-donut>div{display:flex;flex-direction:column;justify-content:center;align-items:center;width:115px;height:115px;background:var(--surface);border-radius:50%;gap:4px;text-align:center}
.dash-pay-donut small{color:var(--muted);font-size:11px}
.dash-pay-donut strong{font-weight:800;font-size:17px;white-space:nowrap}
.dash-pay-list{flex:1;min-width:170px}
.dash-payment-row{display:grid;grid-template-columns:9px minmax(0,1fr) 38px auto;align-items:center;gap:9px;margin:13px 0;font-size:12px;color:var(--muted)}
.dash-payment-dot{width:9px;height:9px;border-radius:50%}
.dash-payment-row small{text-align:right;font-size:10px}
.dash-payment-row strong{white-space:nowrap;font-size:12px;color:var(--ink)}
.dash-table-card{overflow:hidden}
.dash-table-card .dash-card-heading{padding:21px 23px}
.dash-table th:last-child,.dash-table td:last-child{text-align:right}
.dash-table td:not(:first-child){white-space:nowrap}
.dash-table td .dash-delta{font-size:10px}
@media (max-width:1200px){.dash-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dash-detail-grid{grid-template-columns:1fr}}
@media (max-width:710px){.dash-filter-panel{padding:16px}.dash-tabs{gap:6px}.dash-tab{padding:8px 10px;font-size:11px}.dash-kpi-grid{gap:9px}.dash-kpi{padding:14px;min-height:145px}.dash-kpi>strong{font-size:21px}.dash-kpi-head{font-size:11px}.dash-kpi-icon{width:28px;height:28px}.dash-detail-grid{gap:12px}.dash-legend{gap:9px}.dash-trend-chart{padding:4px 10px 5px}.dash-card-heading{padding:16px}.dash-trend-svg{min-height:160px}.dash-payment-wrap{gap:13px}.dash-pay-donut{width:142px;height:142px}.dash-pay-donut>div{width:100px;height:100px}.dash-pay-donut strong{font-size:14px}.dash-table{min-width:680px}}
@media (max-width:390px){.dash-kpi-grid{grid-template-columns:1fr 1fr}.dash-kpi{padding:11px}.dash-kpi>strong{font-size:18px}.dash-kpi-head{gap:5px}}

