:root{color-scheme:light dark;--r-bg:light-dark(#f3f5f7,#101821);--r-panel:light-dark(#fff,#1b2632);--r-soft:light-dark(#f8f9fb,#243240);--r-text:light-dark(#162333,#f1f5f8);--r-muted:light-dark(#56677b,#bdcbd7);--r-line:light-dark(#dde3e9,#394958);--r-accent:light-dark(#c75f23,#e99865);--r-accent-soft:light-dark(#fff1e7,#483124);--r-green:light-dark(#157a61,#65d2ab);--r-green-soft:light-dark(#e7f7f0,#1c463c)}
*{box-sizing:border-box}body.restaurante-app{margin:0;background:var(--r-bg);color:var(--r-text);font:14px/1.45 Inter,Segoe UI,Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid var(--r-accent);outline-offset:2px}.rest-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:13px 22px;background:#142337;color:#f4f7fa;min-height:69px}.rest-brand{display:flex;align-items:center;gap:11px;font-size:20px;font-weight:750}.rest-mark{display:grid;place-items:center;width:39px;height:39px;border-radius:11px;background:#c75f23;color:#fff}.rest-brand small{display:block;font-size:10px;letter-spacing:.09em;color:#c2cdd9;text-transform:uppercase}.rest-top nav{display:flex;flex-wrap:wrap;gap:4px}.rest-top nav button{padding:10px 14px;border:0;border-radius:8px;background:transparent;color:#cbd6e1;font-size:13px;font-weight:650}.rest-top nav button.active{background:#ffffff1b;color:#fff}.rest-user{border:1px solid #ffffff30;color:#eaf0f6;background:transparent;padding:8px 12px;border-radius:8px;font-size:12px}.rest-ribbon{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;background:var(--r-panel);border-bottom:1px solid var(--r-line);padding:18px 22px}.rest-ribbon h1{margin:0;font-size:22px;letter-spacing:-.025em}.rest-ribbon p{color:var(--r-muted);font-size:12px;margin:3px 0 0}.rest-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rest-btn{border:1px solid var(--r-line);border-radius:8px;padding:9px 12px;background:var(--r-panel);color:var(--r-text);font-size:12px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:38px}.rest-btn:hover{border-color:var(--r-accent)}.rest-btn.primary{background:var(--r-accent);border-color:var(--r-accent);color:#fff}.rest-btn.dark{background:#142337;border-color:#142337;color:#fff}.rest-btn.danger{color:light-dark(#a52626,#fc9999)}.rest-chip{display:inline-block;border-radius:999px;padding:6px 9px;font-size:11px;font-weight:650;background:var(--r-green-soft);color:var(--r-green)}.rest-chip.warn{background:var(--r-accent-soft);color:var(--r-accent)}#rest-main{padding:18px 22px}.rest-work{display:grid;grid-template-columns:minmax(210px,23%) minmax(320px,1fr) minmax(285px,29%);gap:15px;align-items:start}.rest-panel{background:var(--r-panel);border:1px solid var(--r-line);border-radius:12px;overflow:hidden;min-width:0}.rest-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:14px 16px;border-bottom:1px solid var(--r-line)}.rest-panel h2{font-size:14px;margin:0}.rest-panel-body{padding:14px}.rest-muted{font-size:12px;color:var(--r-muted)}.rest-search{display:block;width:100%;padding:11px 12px;border:1px solid var(--r-line);border-radius:8px;color:var(--r-text);background:var(--r-soft);font-size:13px}.rest-table-grid,.rest-product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}.rest-table{border:1px solid var(--r-line);border-radius:9px;padding:12px;text-align:left;min-height:95px;display:flex;flex-direction:column;gap:5px;background:var(--r-soft);color:var(--r-text)}.rest-table.occupied{border-color:var(--r-accent);background:var(--r-accent-soft)}.rest-table.selected{outline:2px solid var(--r-accent);outline-offset:2px}.rest-table small{font-size:11px;color:var(--r-muted)}.rest-product{min-height:110px;border:1px solid var(--r-line);border-radius:9px;background:var(--r-soft);padding:13px;text-align:left;color:var(--r-text);display:flex;flex-direction:column;gap:7px;justify-content:space-between}.rest-product:hover{border-color:var(--r-accent);background:var(--r-accent-soft)}.rest-product strong{font-size:14px}.rest-product small{color:var(--r-muted);font-size:12px}.rest-product img{width:100%;height:88px;object-fit:cover;border-radius:6px}.rest-categories{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.rest-categories button{border:1px solid var(--r-line);padding:7px 10px;background:var(--r-panel);border-radius:7px;color:var(--r-muted);font-size:12px}.rest-categories button.active{background:#142337;border-color:#142337;color:#fff}.rest-quantity{display:flex;gap:8px;align-items:center;margin:12px 0;flex-wrap:wrap}.rest-order-head{padding:16px;border-bottom:1px solid var(--r-line)}.rest-order-head strong{font-size:17px}.rest-order-head p{font-size:12px;color:var(--r-muted);margin:5px 0}.rest-item{display:flex;justify-content:space-between;gap:12px;padding:13px 0;border-bottom:1px solid var(--r-line)}.rest-item strong{font-size:13px}.rest-item small{display:block;color:var(--r-muted);font-size:11px;margin-top:4px}.rest-price{white-space:nowrap;font-size:13px;font-weight:750}.rest-qty-controls{display:flex;align-items:center;gap:5px;margin-top:6px}.rest-qty-controls button{padding:3px 7px;font-size:12px;min-height:28px}.rest-order-foot{padding:14px 16px;background:var(--r-soft);border-top:1px solid var(--r-line)}.rest-total{display:flex;justify-content:space-between;font-size:22px;font-weight:800;margin:8px 0 15px}.rest-order-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.rest-order-actions>.primary{grid-column:1/-1}.rest-empty{color:var(--r-muted);padding:30px 12px;font-size:13px;text-align:center}.rest-columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.rest-ticket{padding:15px;border:1px solid var(--r-line);background:var(--r-panel);border-radius:10px;margin-bottom:12px}.rest-ticket h3{font-size:14px;margin:0 0 5px}.rest-ticket p{font-size:12px;color:var(--r-muted);margin:7px 0;line-height:1.7}.rest-ticket-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.rest-two{display:grid;grid-template-columns:1fr 1fr;gap:15px}.rest-card{background:var(--r-panel);border:1px solid var(--r-line);border-radius:11px;padding:18px}.rest-card h2{font-size:16px;margin:0 0 7px}.rest-card p{color:var(--r-muted);font-size:12px;line-height:1.6}.rest-data{width:100%;border-collapse:collapse;font-size:12px}.rest-data th,.rest-data td{padding:10px;text-align:left;border-bottom:1px solid var(--r-line)}.rest-data th{color:var(--r-muted);font-weight:650}.rest-scroll{overflow:auto}.rest-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.rest-admin-item{padding:17px;background:var(--r-panel);border:1px solid var(--r-line);border-radius:10px;text-align:left;color:var(--r-text)}.rest-admin-item strong{display:block;font-size:15px;margin-bottom:5px}.rest-admin-item small{color:var(--r-muted);font-size:12px}.rest-admin-actions{display:flex;gap:8px;margin:14px 0;flex-wrap:wrap}.rest-field{display:grid;gap:5px;font-size:12px;font-weight:650;margin-bottom:12px}.rest-field input,.rest-field select,.rest-field textarea{width:100%;border:1px solid var(--r-line);border-radius:7px;background:var(--r-soft);color:var(--r-text);padding:10px;font-size:14px}.rest-field.check{display:flex;align-items:center;gap:8px}.rest-field.check input{width:auto}dialog{border:1px solid var(--r-line);border-radius:13px;background:var(--r-panel);color:var(--r-text);width:min(480px,calc(100% - 28px));padding:20px;max-height:90vh;overflow:auto;box-shadow:0 24px 80px #0b152358}dialog::backdrop{background:#0a1723a8}.rest-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.rest-dialog-head h2{font-size:19px;margin:0}#rest-dialog-desc{color:var(--r-muted);font-size:12px;margin:8px 0 18px}.rest-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}.rest-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.rest-keypad button{min-height:51px;font-size:20px}#rest-keypad-input{width:100%;padding:15px;border-radius:8px;border:1px solid var(--r-line);background:var(--r-soft);color:var(--r-text);font-size:28px;text-align:right;margin-bottom:10px}.rest-alerta{margin:13px 22px 0;padding:13px 16px;border:1px solid var(--r-line);background:var(--r-panel);border-radius:9px;font-size:13px}#rest-form-error{color:light-dark(#a52626,#fc9999);font-size:12px}.rest-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:12px 0}.rest-metrics div{background:var(--r-soft);padding:12px;border-radius:8px}.rest-metrics small{display:block;color:var(--r-muted);font-size:12px}.rest-metrics strong{font-size:20px}.rest-counts{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
@media(min-width:1600px){.rest-product-grid{grid-template-columns:repeat(3,1fr)}}@media(max-width:1100px){.rest-work{grid-template-columns:185px minmax(260px,1fr) 285px}.rest-top{padding:12px 16px}.rest-top nav button{padding:8px 9px;font-size:12px}#rest-main{padding:15px}.rest-admin-grid{grid-template-columns:1fr 1fr}}@media(max-width:900px){.rest-work{grid-template-columns:1fr 1fr}.rest-work>.rest-panel:last-child{grid-column:1/-1}.rest-columns{grid-template-columns:1fr 1fr}.rest-ribbon{padding:14px}.rest-ribbon h1{font-size:20px}}@media(max-width:600px){.rest-work,.rest-columns,.rest-two,.rest-admin-grid{grid-template-columns:1fr}.rest-work>.rest-panel:last-child{grid-column:auto}.rest-metrics{grid-template-columns:1fr}.rest-top nav{width:100%}.rest-top{gap:10px}.rest-user{width:100%}.rest-qty-controls button{min-height:36px}dialog{padding:15px}}
[hidden]{display:none!important}
.rest-top nav button{display:inline-flex;align-items:center;gap:7px}.rest-top nav svg{width:17px;height:17px;flex:none}
.rest-account-list{display:grid;gap:4px;margin-top:14px;max-height:65vh;overflow:auto}.rest-account-row{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;width:100%;padding:11px 9px;border:1px solid transparent;border-bottom-color:var(--r-line);background:var(--r-panel);color:var(--r-text);border-radius:7px}.rest-account-row span:last-child{text-align:right;white-space:nowrap}.rest-account-row strong{display:block;font-size:12px}.rest-account-row small{display:block;font-size:11px;color:var(--r-muted);margin-top:4px}.rest-account-row.selected{background:var(--r-accent-soft);border-color:var(--r-accent)}
.rest-map .rest-admin-heading{justify-content:space-between;flex-wrap:wrap}.rest-map-tools{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin:22px 0}.rest-map-tools .rest-search{max-width:340px}.rest-map-legend{display:flex;gap:18px;flex-wrap:wrap;font-size:12px;font-weight:650}.rest-map-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:14px}.rest-map-grid .rest-table{min-height:130px;padding:17px}.rest-table.available{background:light-dark(#e9f8ef,#183c30);border-color:#30a36a}.rest-table.occupied{background:light-dark(#fff0ee,#482728);border-color:#d95c58}.rest-table.prebill{background:light-dark(#edf4ff,#21394f);border-color:#508ccd}.rest-map-legend .available{color:light-dark(#177849,#76dca2)}.rest-map-legend .occupied{color:light-dark(#b43131,#ff9995)}.rest-map-legend .prebill{color:light-dark(#205eab,#94c4ff)}
.rest-admin-section{--section-color:var(--r-accent);--section-bg:var(--r-accent-soft)}.rest-section-0{--section-color:light-dark(#b75c20,#f2ac79);--section-bg:light-dark(#fff1e3,#483124)}.rest-section-1{--section-color:light-dark(#157859,#78d6b3);--section-bg:light-dark(#e8f7ef,#213d33)}.rest-section-2{--section-color:light-dark(#2863a8,#92bdf3);--section-bg:light-dark(#edf3fd,#253951)}.rest-section-3{--section-color:light-dark(#7454ab,#c1a5f0);--section-bg:light-dark(#f3edfb,#372d49)}.rest-admin-section>h3{border-left:3px solid var(--section-color);padding-left:12px}.rest-admin-section .rest-admin-icon{color:var(--section-color);background:var(--section-bg)}.rest-admin-section .rest-admin-count{color:var(--section-color)}.rest-admin-section .rest-admin-item:hover{border-color:var(--section-color)}
.rest-admin-intro{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:8px 0 24px}.rest-admin-intro h2{font-size:26px;letter-spacing:-.035em;margin:5px 0}.rest-eyebrow{font-size:10px;font-weight:750;letter-spacing:.12em;color:var(--r-muted)}
.rest-admin-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.rest-admin-item{display:flex;align-items:flex-start;gap:16px;min-height:150px;padding:24px;transition:border-color .15s,transform .15s,box-shadow .15s}.rest-admin-item:hover{border-color:var(--r-accent);transform:translateY(-2px);box-shadow:0 7px 25px #10182110}.rest-admin-item strong{font-size:16px;margin-bottom:7px}.rest-admin-item small{display:block;line-height:1.65}.rest-admin-icon{width:46px;height:46px;flex:0 0 46px;display:grid;place-items:center;border-radius:12px;background:var(--r-accent-soft);color:var(--r-accent)}.rest-admin-icon svg{width:25px;height:25px}.rest-admin-count{display:block;margin-top:13px;font-size:11px;font-weight:700;color:var(--r-accent)}.rest-admin-heading{display:flex;align-items:center;gap:13px;margin-bottom:18px}.rest-admin-heading h2{margin:3px 0;font-size:22px}.rest-admin-actions{padding-bottom:14px;border-bottom:1px solid var(--r-line)}.rest-card>.rest-search{max-width:560px;margin:16px 0}.rest-data th{background:var(--r-soft);font-size:11px;letter-spacing:.035em}.rest-data td{padding:14px 10px}.rest-data tbody tr:hover{background:var(--r-soft)}
dialog{width:min(650px,calc(100% - 28px));padding:26px}.rest-field-pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rest-field{margin-bottom:17px;gap:7px}.rest-field input,.rest-field select{min-height:44px}.rest-field input:focus,.rest-field select:focus{outline:2px solid var(--r-accent);outline-offset:1px}.rest-form-help{display:block;color:var(--r-muted);font-size:11px;line-height:1.7;margin:-5px 0 17px}.rest-form-note{padding:14px;background:var(--r-soft);border:1px solid var(--r-line);border-radius:9px;font-size:12px}.rest-dialog-actions{padding-top:17px;border-top:1px solid var(--r-line);position:sticky;bottom:-26px;background:var(--r-panel)}#rest-form-error:not(:empty){padding:12px;background:var(--r-accent-soft);border-left:3px solid var(--r-accent);border-radius:7px;font-size:13px}
@media(max-width:600px){.rest-admin-intro{align-items:flex-start;flex-direction:column;gap:6px}.rest-admin-grid{grid-template-columns:1fr}.rest-field-pair{grid-template-columns:1fr;gap:0}dialog{padding:18px}.rest-dialog-actions{bottom:-18px}.rest-admin-item{min-height:120px;padding:20px}}
#rest-form-content>.rest-actions{margin-bottom:18px}
.rest-admin-section{margin:28px 0}.rest-admin-section>h3{font-size:16px;margin:0 0 14px}.rest-admin-section .rest-admin-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.rest-recipe-summary{margin:20px 0;padding:16px;border:1px solid var(--r-line);border-radius:12px}.rest-recipe-summary h3{margin:0 0 12px}.rest-recipe-summary .rest-metrics{margin:16px 0}.rest-recipe-summary .rest-data{font-size:12px}
@media(max-width:1000px){.rest-admin-section .rest-admin-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.rest-admin-section .rest-admin-grid{grid-template-columns:1fr}.rest-recipe-summary{padding:10px}}
dialog.rest-dialog-wide{width:min(900px,calc(100% - 28px))}
.rest-report-controls{display:grid;grid-template-columns:minmax(145px,1fr) minmax(145px,1fr) minmax(220px,2fr) auto auto;align-items:end;gap:14px;margin:24px 0}.rest-report-controls .rest-field{margin:0}.rest-report-tabs{flex-wrap:wrap;margin-bottom:22px}.rest-report-actions{margin:18px 0}.rest-permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0}.rest-permission-grid .check{padding:14px;border:1px solid var(--r-line);border-radius:10px}.rest-preparation{padding:16px;background:#fff5dd;border:1px solid #e9ce89;color:#523e17;margin:10px;border-radius:12px}.rest-preparation p{font-size:13px}.rest-preparation button{margin:4px}.rest-btn:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:900px){.rest-report-controls{grid-template-columns:1fr 1fr}.rest-report-controls .rest-field:nth-child(3){grid-column:1/-1}}
@media(max-width:600px){.rest-permission-grid{grid-template-columns:1fr}}
@media print{.rest-top,.rest-ribbon,.rest-alerta,.rest-report-controls,.rest-report-tabs,.rest-report-actions,#rest-main button{display:none!important}.restaurante-app,#rest-main,.rest-card{background:white!important;color:black!important;box-shadow:none!important;padding:0!important}.rest-scroll{overflow:visible}.rest-data{font-size:10px}.rest-metrics{break-inside:avoid}.rest-data tr{break-inside:avoid}}
