:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:#392313;background:#faf8f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}.app{display:flex;min-height:100vh}.sidebar{width:258px;background:#4a1f00;color:#fff;display:flex;flex-direction:column;flex-shrink:0;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:12px;padding:28px 18px;border-bottom:1px solid #ffffff20}.brand strong{font-size:15px}.brand small{display:block;color:#e9cba5;font-size:12px;margin-top:4px}.brand-icon{width:48px;height:48px;background:#f5a000;border-radius:13px;display:grid;place-items:center;color:#4a1f00;font-weight:1000;letter-spacing:-2px;font-size:22px;flex-shrink:0}.sidebar nav{padding:22px 12px;display:grid;gap:6px}.sidebar button{background:none;color:#f7e9d9;border:0;text-align:left;border-radius:10px;padding:13px 14px;display:flex;align-items:center;gap:12px}.sidebar button:hover,.sidebar button.active{background:#f5a000;color:#4a1f00;font-weight:700}.sidebar-bottom{margin-top:auto;padding:18px 12px;border-top:1px solid #ffffff25}.sidebar-bottom span{font-size:12px;color:#e9cba5;display:flex;align-items:center;gap:7px;padding:9px}.main{flex:1;min-width:0}header{height:96px;background:#fff;border-bottom:1px solid #eee5da;display:flex;align-items:center;justify-content:space-between;padding:20px 32px;gap:15px}header h1{font-size:24px;margin:0}header p{margin:5px 0 0;color:#8c7b70;font-size:13px}.header-actions{display:flex;gap:10px;align-items:center}select,input{padding:12px;border:1px solid #e3d9cc;border-radius:9px;background:#fff;max-width:100%}.refresh,.hamburger{border:1px solid #e3d9cc;border-radius:9px;background:#fff;padding:10px;display:grid;place-items:center}.hamburger{display:none}.content{padding:30px;max-width:1500px;margin:auto}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat,.panel{background:#fff;border:1px solid #eee5da;border-radius:16px;box-shadow:0 2px 12px #43200008}.stat{padding:24px}.stat small,.stat span{color:#857469;font-size:12px}.stat strong{display:block;font-size:36px;margin:10px 0;color:#4a1f00}.panel{padding:23px;margin-bottom:22px}.panel h2{margin:0 0 18px;font-size:19px}.count{color:#9c8b7b;font-size:14px}.branch-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.branch-card{border:1px solid #ebdcc8;border-radius:12px;background:#fffaf0;padding:17px;text-align:left;display:grid;gap:8px;color:#4a1f00}.branch-card span{color:#88756b;font-size:12px}.tablewrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;font-size:13px;min-width:760px}th{color:#8d7d70;font-size:11px;text-transform:uppercase;letter-spacing:.04em;padding:13px 12px;border-bottom:1px solid #eee5da}td{padding:14px 12px;border-bottom:1px solid #f2ebe2}tr:last-child td{border-bottom:0}.pill{display:inline-block;background:#f4eee6;color:#6c5036;padding:6px 9px;border-radius:999px;font-size:11px;font-weight:650;white-space:nowrap}.pill.good{background:#e9f5eb;color:#26713a}.pill.warn{background:#fff0d2;color:#986300}.small-btn{background:#f5a000;border:0;border-radius:8px;padding:9px 11px;font-size:12px;font-weight:700;color:#4a1f00}.actions{display:flex;gap:5px}.sub{color:#8d7d70;margin:-5px 0 22px;font-size:13px}.empty{padding:38px;text-align:center;color:#a09488;display:grid;justify-items:center}.notice{padding:13px 16px;background:#fff2d5;border:1px solid #f7d48e;border-radius:10px;margin:0 0 18px;color:#704800}.trip{border:1px solid #eae1d7;border-radius:12px;padding:16px;margin-bottom:12px}.trip-head{display:flex;justify-content:space-between;gap:12px}.trip-head small{display:block;color:#8d7d70;margin-top:4px}.trip-order{padding:13px 0;border-bottom:1px solid #f0e9df;display:flex;justify-content:space-between;align-items:center}.auth{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top,#ffda81,#f8f4ec 50%)}.login{width:min(100%,420px);background:#fff;border-radius:22px;padding:36px;box-shadow:0 20px 65px #4a1f0022}.login h1{font-size:26px;margin:22px 0 10px}.login p{color:#76685f;line-height:1.6}.login form{display:grid;gap:10px;margin-top:24px}.login label{font-size:13px;font-weight:700}.login input{width:100%;margin-bottom:9px}.primary{border:0;background:#f5a000;border-radius:10px;padding:14px;font-weight:800;color:#4a1f00}.link{border:0;background:none;color:#9d5100;margin:15px 0;cursor:pointer}.login small{display:block;color:#9e9085}.center{display:grid;place-items:center;min-height:100vh}.login .notice{margin-top:14px}.auth code{overflow-wrap:anywhere}@media (max-width:1050px){.stats,.branch-grid{grid-template-columns:repeat(2,1fr)}}@media (max-width:750px){.sidebar{position:fixed;z-index:20;left:-270px;transition:left .2s}.sidebar.open{left:0}.hamburger{display:grid}header{padding:16px;height:auto;min-height:90px}header h1{font-size:20px}header p{display:none}.header-actions select{width:135px}.content{padding:16px}.stats{gap:9px}.stat{padding:16px}.stat strong{font-size:28px}.panel{padding:15px}.branch-grid{gap:8px}.branch-card{padding:12px}}:where(.secondary){border:1px solid #d7c4ae;background:#fff;color:#5a351d;border-radius:9px;padding:10px 13px;font-weight:700}.danger{background:#ffe5df;color:#982d1d}.print{display:inline-flex;align-items:center;gap:5px;background:#f3eee7;color:#523927}.daily-order{font-size:18px;color:#4a1f00}.section-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:20px}.section-head .actions{flex-wrap:wrap;justify-content:flex-end}.cash-actions{margin:18px 0 28px;flex-wrap:wrap}.cash-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.report-card{background:#fff8e9;border:1px solid #ecd9bc;border-radius:12px;padding:18px;display:grid;gap:8px}.report-card span{color:#806c5e;font-size:12px}.report-card strong{font-size:24px}.cash-form label{display:grid;gap:7px;margin:12px 0;font-weight:700;font-size:13px}.cash-form input,.cash-form select{width:100%}@media (max-width:750px){.section-head{display:grid}.section-head .actions{justify-content:flex-start}.report-grid,.cash-stats{grid-template-columns:1fr}.actions{flex-wrap:wrap}}.notice.offline{display:flex;align-items:center;gap:10px;background:#fff0dd;border-color:#f59e0b}.kitchen-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}.kitchen-card{padding:18px;border:1px solid #eadfce;border-radius:16px;background:#fff}.kitchen-card.late{border:2px solid #d94841;background:#fff7f6}.kitchen-card p{color:#76695d}.item-note{grid-column:1/-1;width:100%;margin-top:8px}@media print{.sidebar,header,.actions,.refresh,.hamburger{display:none!important}.main{margin:0!important}.content{padding:0!important}.panel{box-shadow:none;border:0}}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.panel-title h2{margin:0}.compact{padding:10px 14px;display:flex;align-items:center;gap:7px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#2c1600a8;display:grid;place-items:center;padding:20px}.modal{width:min(1180px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:18px;padding:24px;box-shadow:0 24px 80px #1e0d0066}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.modal-head h2{margin:0}.modal-head p{margin:5px 0 20px;color:#8d7d70}.icon-btn,.delete-btn{border:0;background:#f4eee6;color:#6c5036;border-radius:9px;padding:9px;display:grid;place-items:center}.modal form{display:grid;gap:18px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label,.item-row label{display:grid;gap:7px;font-size:12px;font-weight:700}.form-grid input,.form-grid select,.item-row input{width:100%}.delivery-fields{grid-template-columns:2fr 1fr}.items-title{display:flex;justify-content:space-between;align-items:center}.items-title h3{margin:0}.items-title span,.catalog-note{color:#8d7d70;font-size:12px}.catalog-sections{display:grid;gap:1.25rem}.order-builder{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.48fr);gap:1.25rem;align-items:start}.menu-pane{grid-column:1;grid-row:1;min-width:0}.cart-panel{grid-column:2;grid-row:1;position:sticky;top:0;display:grid;gap:.9rem;max-height:calc(92vh - 150px);overflow:auto;padding:1rem;border:1px solid #ead9c2;border-radius:14px;background:#fffaf0;box-shadow:0 8px 24px #4a1f0010}.cart-panel .items{max-height:calc(92vh - 330px);overflow:auto}.cart-panel .cart-row{grid-template-columns:minmax(0,1fr) auto auto}.cart-panel .cart-row>div:first-child{grid-column:1 / -1}.catalog-section h4{margin:0 0 .65rem;color:var(--ink);font-size:1rem}.catalog-form{max-width:940px}.menu-editor-lock{display:flex;align-items:center;gap:.6rem;margin:0 0 1rem;padding:.8rem 1rem;border:1px solid #ead9c2;border-radius:12px;background:#fffaf0;color:#735c49;font-size:.86rem}.menu-editor-layout{display:grid;grid-template-columns:minmax(230px,.34fr) minmax(0,1fr);gap:1rem;align-items:start}.category-editor,.product-editor{min-width:0;border:1px solid #eee2d3;border-radius:14px;background:#fffdf9}.category-editor{overflow:hidden}.menu-editor-title,.menu-product-toolbar{padding:1rem;border-bottom:1px solid #eee2d3}.menu-editor-title div,.menu-product-toolbar>div{display:grid;gap:.2rem}.menu-editor-title small,.menu-product-toolbar small{color:#8d7d70;font-size:.75rem}.category-editor-list{display:grid;max-height:620px;overflow:auto}.category-editor-item{display:flex;align-items:center;justify-content:space-between;gap:.65rem;padding:.9rem .8rem .9rem 1rem;border:0;border-bottom:1px solid #f1e9de;background:#fff;color:#4a1f00;cursor:pointer}.category-editor-item:last-child{border-bottom:0}.category-editor-item.selected{background:#fff2d5;box-shadow:inset 4px 0 #f5a000}.category-editor-item>span:first-child{display:grid;gap:.25rem;min-width:0}.category-editor-item strong,.category-editor-item small{overflow:hidden;text-overflow:ellipsis}.category-editor-item small{color:#8d7d70;font-size:.72rem;white-space:nowrap}.reorder-controls{display:inline-flex;gap:.25rem;flex-shrink:0}.reorder-controls button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #e6d8c7;border-radius:8px;background:#fff;color:#6c5036}.menu-product-toolbar{display:flex;justify-content:space-between;align-items:center;gap:1rem}.menu-search{display:flex;align-items:center;gap:.45rem;min-width:min(260px,100%);padding-left:.7rem;border:1px solid #e3d9cc;border-radius:9px;background:#fff;color:#8d7d70}.menu-search input{min-width:0;width:100%;padding-left:0;border:0;outline:0}.menu-product-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;max-height:620px;overflow:auto;padding:1rem}.menu-product-editor-card{display:grid;grid-template-columns:104px minmax(0,1fr);gap:.8rem;align-items:start;padding:.75rem;border:1px solid #eadfce;border-radius:13px;background:#fff}.product-thumbnail{display:grid;place-items:center;aspect-ratio:4 / 3;overflow:hidden;border-radius:10px;background:#f4eee6;color:#a18b76}.product-thumbnail img,.product-card-image img,.image-preview img{width:100%;height:100%;object-fit:cover}.menu-product-copy{display:grid;gap:.3rem;min-width:0}.menu-product-copy>small{color:#927c68;font-size:.7rem}.menu-product-copy>strong{line-height:1.25}.menu-product-copy>b{color:#7e3900}.menu-product-copy .pill{justify-self:start}.menu-product-actions{grid-column:1 / -1;display:flex;align-items:center;justify-content:flex-end;gap:.4rem;padding-top:.65rem;border-top:1px solid #f1e9de}.catalog-form-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:1.25rem;align-items:start}.image-editor{display:grid;gap:.7rem}.image-preview{display:grid;place-items:center;aspect-ratio:4 / 3;overflow:hidden;border:1px solid #ead9c2;border-radius:14px;background:#f7f1e9;color:#9b8775}.image-preview>span{display:grid;justify-items:center;gap:.45rem}.image-upload-zone{display:grid;justify-items:center;gap:.25rem;padding:.9rem;border:1px dashed #d5b78f;border-radius:12px;background:#fffaf0;color:#7e460d;text-align:center;cursor:pointer}.image-upload-zone small{color:#8d7d70;font-size:.7rem}.image-upload-zone input{position:absolute;width:1px;height:1px;overflow:hidden;opacity:0}.image-alt-field,.category-form>label{display:grid;gap:.45rem;margin-top:.8rem;font-size:.78rem;font-weight:700}.image-alt-field input,.category-form input{width:100%}.catalog-checks{display:flex;flex-wrap:wrap;gap:1rem}.category-form{max-width:520px}.product-card-image{display:grid;place-items:center;width:100%;aspect-ratio:4 / 3;overflow:hidden;border-radius:9px;background:#f3eadf;color:#a18b76}.checkbox-row{display:flex;align-items:center;gap:.6rem;margin-top:1rem}.checkbox-row input{width:auto}.delivery-info{display:grid;gap:.3rem;min-width:0}.delivery-info a{color:#9a3b12;font-weight:700;overflow-wrap:anywhere}.delivery-info ul{margin:.35rem 0 0;padding-left:1.2rem}.order-service{display:block;margin-top:.3rem;color:#8d7d70;font-weight:600}.delivery-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin:1rem 0 1.5rem}.delivery-card{display:grid;gap:.8rem;padding:1rem;border:1px solid #ead9c2;border-radius:16px;background:#fffdf9}.delivery-card .primary{justify-self:start}.legacy-trips-title{margin:1.5rem 0 .8rem}.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-height:300px;overflow:auto}.product-card{border:1px solid #ead9c2;border-radius:12px;background:#fffaf0;color:#4a1f00;padding:14px;display:grid;gap:7px;text-align:left}.product-card:hover{border-color:#f5a000;box-shadow:0 3px 12px #4a1f0012}.product-card strong{font-size:18px}.product-card small{display:flex;align-items:center;gap:4px;color:#9d5100;font-weight:700}.catalog-empty,.cart-empty{padding:22px;border:1px dashed #dccfbe;border-radius:11px;color:#8d7d70;text-align:center}.items{display:grid;gap:10px}.cart-row{display:grid;grid-template-columns:minmax(180px,1fr) auto 110px auto;gap:14px;align-items:center;padding:12px;background:#fffaf0;border:1px solid #efe2cf;border-radius:11px}.cart-row small{display:block;color:#8d7d70;margin-top:4px}.quantity{display:flex;align-items:center;gap:10px}.quantity button{width:32px;height:32px;border:1px solid #e3d9cc;border-radius:8px;background:#fff;color:#4a1f00;font-weight:800}.item-row{display:grid;grid-template-columns:minmax(220px,1fr) 90px 150px auto;gap:10px;align-items:end;padding:12px;background:#fffaf0;border:1px solid #efe2cf;border-radius:11px}.delete-btn{margin-bottom:2px}.order-total{display:flex;justify-content:flex-end;align-items:flex-end;gap:18px;border-top:1px solid #eee5da;padding-top:16px}.order-total span{color:#8d7d70;font-size:13px}.order-total strong{font-size:21px}.modal-actions{display:flex;justify-content:flex-end;gap:10px}.secondary{border:1px solid #dccfbe;background:#fff;border-radius:10px;padding:13px 18px;color:#60452f}.modal-actions .primary{padding:13px 20px}@media (max-width: 750px){.panel-title{align-items:stretch;flex-direction:column}.panel-title .compact{justify-content:center}.modal-backdrop{padding:0}.modal{height:100vh;max-height:none;border-radius:0;padding:18px}.form-grid,.delivery-fields{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-builder{display:flex;flex-direction:column}.cart-panel{position:sticky;top:-18px;z-index:5;width:100%;max-height:44vh;order:-1;box-shadow:0 8px 22px #4a1f0026}.cart-panel .items{max-height:22vh}.cart-row{grid-template-columns:1fr auto auto}.cart-row>div:first-child{grid-column:1/-1}.item-row{grid-template-columns:1fr 80px 1fr auto}.item-row label:first-child{grid-column:1/-1}.order-total{display:grid;justify-content:stretch;text-align:right}.modal-actions{position:sticky;bottom:-18px;background:#fff;padding:14px 0 18px}.menu-editor-layout,.catalog-form-layout{grid-template-columns:1fr}.category-editor-list,.menu-product-editor-grid{max-height:none}.menu-product-toolbar{align-items:stretch;flex-direction:column}.menu-search{width:100%}.menu-product-editor-grid{grid-template-columns:1fr}}@media (min-width: 751px) and (max-width: 1120px){.menu-product-editor-grid{grid-template-columns:1fr}}
