:root{--bg:#dcede4;--bar:#484848;--save:#2ecc71;--tab:#51c4d4;--panel:#fff;--text:#333;--error:#c83c4b}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font:13px Arial,sans-serif}.topbar{background:var(--bar);color:#fff;align-items:center;gap:16px;height:48px;padding:0 16px;display:flex}.topbar-title{font-size:15px;font-weight:700}.topbar-nav{flex-shrink:0;gap:2px;height:100%;display:flex}.topbar-link{color:#fff;font:inherit;cursor:pointer;background:0 0;border:0;padding:0 12px}.topbar-link:hover,.topbar-link.active{background:#ffffff29}.topbar-user{text-overflow:ellipsis;white-space:nowrap;flex-shrink:1;min-width:0;margin-left:auto;overflow:hidden}.topbar-exit{flex-shrink:0}@media (width<=720px){.topbar{gap:8px;padding:0 8px;overflow-x:auto}.topbar-title,.topbar-user{display:none}.topbar-exit{margin-left:auto}}.topbar-exit{color:#fff;font:inherit;cursor:pointer;background:0 0;border:0;text-decoration:underline}.note{margin:16px}.page{padding:16px}.page h1{margin:0 0 4px;font-size:18px}.page-hint{color:#666;margin:0 0 12px}.filters{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:12px;display:flex}.filters input[type=search],.filters select{background:var(--panel);height:32px;font:inherit;border:1px solid #bbb;border-radius:2px;padding:0 8px}.filters input[type=search]{width:260px;max-width:100%}.filters label{align-items:center;gap:4px;display:flex}.table-wrap{background:var(--panel);border-radius:2px;overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;white-space:nowrap;border-bottom:1px solid #e6e6e6;padding:7px 10px}th{background:#f4f4f4}.num{text-align:right}.row-hidden{color:#999}.no-price{color:var(--error)}.muted-text{color:#999}.saved-text{color:#1c6b3d}.tile-red{background:#f4959d}.tile-blue{background:#96d2f5}.tile-navy{background:#95add7}.tile-turquoise{background:#88e2e2}.tile-green{background:#83d160}.tile-yellow{background:#fff58e}.tile-pink{background:#eab4d1}.tile-violet{background:#a398c4}.tile-biege{background:#eaccc2}.tile-none{background:#dfe4e9}.pos{grid-template-columns:430px 131px minmax(0,1fr);align-items:start;padding:15px;display:grid}.pos-cats{margin-top:36px;margin-left:9px}.pos-right{min-width:0;margin-left:13px}.pos-search{width:264px;max-width:100%;margin:2px 0 12px 2px;position:relative}.pos-search input{background:var(--panel);color:#000;width:100%;height:22px;font:inherit;border:0;border-radius:2px 0 0 2px;padding:1px 7px}.pos-search input::placeholder{color:#aaa}.pos-search-results{z-index:10;background:#f7f7f7;width:100%;margin:0;padding:0;list-style:none;position:absolute;top:22px;left:0;box-shadow:0 2px 6px #00000059}.pos-search-results button{width:100%;min-height:31px;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-bottom:1px solid #e6e6e6;padding:6px 8px;display:block}.pos-search-results button:hover,.pos-search-results button:focus-visible{background:#e4f2ea}.pos-search-empty{color:#888;padding:8px}.front-tabs{padding-left:20px;display:flex}.front-tab{background:var(--tab);color:#fff;font:inherit;cursor:pointer;border:0;border-radius:3px 3px 0 0;padding:8px 25px}.front-tab.selected{background:var(--panel);color:#000}.pos-panel-body{background:var(--panel);border-radius:2px;gap:10px;padding:10px;display:grid}.pos-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.pos-row select,.pos-row input,.pos-sum select,.pos-details input{background:var(--panel);height:30px;font:inherit;border:1px solid #bbb;border-radius:2px;padding:0 6px}.pos-row label{align-items:center;gap:6px;display:flex}.pos-row input{width:110px}.pos-lines th,.pos-lines td{white-space:normal;border-bottom:1px solid #ddd;padding:8px 2px}.pos-lines th{background:0 0}.pos-option{color:#666;font-size:12px;display:block}.pos-qty{white-space:nowrap;align-items:center;gap:6px;display:inline-flex}.pos-qty button{cursor:pointer;background:#f4f4f4;border:1px solid #bbb;border-radius:2px;width:22px;height:22px;padding:0}.pos-empty{color:#888;text-align:center}.pos-sum{grid-template-columns:1fr auto;align-items:center;gap:4px 10px;display:grid}.pos-sum select{justify-self:end}.pos-sum b{font-size:16px}.pos-pays{flex-wrap:wrap;gap:4px;display:flex}.pos-pay{background:var(--panel);height:30px;font:inherit;cursor:pointer;border:1px solid #bbb;border-radius:2px;padding:0 9px}.pos-pay.selected{color:#fff;background:#484848;border-color:#484848}.pos-change,.pos-branch{font-weight:700}.modal-box.client-form{max-width:480px;max-height:calc(100vh - 32px);overflow-y:auto}.client-check{flex-direction:row;align-items:center}.modal-box.import-box{max-width:640px;max-height:calc(100vh - 32px);overflow-y:auto}.import-summary td{padding:4px 6px}.import-skipped{border:1px solid #eee;max-height:260px;overflow-y:auto}.import-skipped td,.import-skipped th{white-space:normal;padding:3px 6px}.client-addr-title{margin-top:8px!important}.client-addr{border-bottom:1px solid #eee;align-items:center;gap:6px;padding:4px 0;display:flex}.client-addr>span{flex:1}.client-addr .btn-plain{height:28px}.client-addr-form{background:#f7f7f7;border-radius:2px;padding:8px}.pos-client{background:#e4f2ea;border-radius:2px;margin:0;padding:6px 8px;line-height:1.4}.pos-client.muted-text{background:#f4f4f4}.client-card{gap:2px;display:grid}.pos-client-suggest{border:1px solid #ddd;border-radius:2px;margin:0;padding:0;list-style:none}.pos-client-suggest button{background:var(--panel);width:100%;font:inherit;text-align:left;cursor:pointer;border:0;border-bottom:1px solid #eee;padding:6px 8px;display:block}.pos-client-suggest button:hover,.pos-client-suggest button:focus-visible{background:#e4f2ea}.pos-client-comment{color:var(--error);display:block}.pos-client-box:empty{display:none}.pos-client-box{gap:6px;display:grid}.pos-addresses{flex-wrap:wrap;gap:4px;display:flex}.pos-addresses .pos-pay{text-align:left;height:auto;min-height:30px;padding:4px 9px}.pos-editing{background:#ffe28f;border-radius:2px;justify-content:space-between;padding:6px 8px}.pos-panel-body .ok-message{margin:0}.pos-actions{justify-content:flex-end;display:flex}.pos-actions .btn-save{padding:0 24px}.pos-details{grid-template-columns:1fr 1fr;gap:8px;display:grid}.pos-details label{color:#555;flex-direction:column;gap:3px;min-width:0;display:flex}.pos-details .wide{grid-column:1/-1}.pos-cats{flex-direction:column;gap:4px;display:flex}.fr-cat{color:#222;width:122px;min-height:48px;font:inherit;cursor:pointer;border:0;border-radius:2px;padding:2px 4px}.fr-cat.cat-red{background:#f4959d}.fr-cat.cat-green{background:#83d160}.fr-cat.cat-red.selected{color:#fff;background:#e7707d}.fr-cat.cat-green.selected{color:#fff;background:#57b846}.pos-tiles{flex-wrap:wrap;align-content:flex-start;gap:4px;display:flex}.fr-tile{color:#111;width:122px;height:48px;font:inherit;text-align:left;cursor:pointer;border:0;border-radius:2px;flex-direction:column;justify-content:space-between;padding:3px 2px 1px;font-size:12px;line-height:13px;display:flex}.fr-tile-name{max-height:26px;overflow:hidden}.fr-tile-price{text-align:center;font-size:14px;font-weight:700;line-height:normal}.fr-tile-price span{font-weight:400}.fr-back{justify-content:center;align-items:center;font-size:20px}.modal-back{z-index:20;background:#1e282380;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal-box{background:var(--panel);border-radius:2px;gap:8px;width:100%;max-width:340px;max-height:calc(100vh - 32px);padding:16px;display:grid;overflow-y:auto}.modal-box h2{margin:0;font-size:15px}.modal-choice{background:var(--panel);height:44px;font:inherit;text-align:left;cursor:pointer;border:1px solid #bbb;border-radius:2px;padding:0 12px;font-size:15px}.modal-text{color:#444;margin:0;line-height:1.4}.orders-summary{flex-wrap:wrap;gap:4px 20px;margin-bottom:12px;font-size:14px;display:flex}.filters input[type=date]{background:var(--panel);height:32px;font:inherit;border:1px solid #bbb;border-radius:2px;padding:0 8px}.orders-error{margin-bottom:10px}.order-list{gap:10px;display:grid}.order-card{color:#111;border-radius:2px;overflow:hidden}.order-head,.order-body{flex-wrap:wrap;align-items:center;gap:4px 16px;padding:6px 10px;display:flex}.order-no{font-size:15px}.order-sum{margin-left:auto}.order-status{color:#111;height:28px;font:inherit;background:#fff;border:1px solid #00000040;border-radius:2px;padding:0 4px}.order-body{line-height:1.4}.order-deleted{opacity:.6}.order-time{border-bottom:1px dotted #111;font-size:18px;font-weight:700}.order-date{border-bottom:1px dotted #111}.order-small{color:#555;font-size:12px}.order-head-right{gap:8px;margin-left:auto;display:flex}.order-pill{color:#111;white-space:nowrap;background:#fff;border:1px solid #0000002e;border-radius:2px;min-height:28px;padding:5px 10px;line-height:16px;display:inline-block}.order-row{grid-template-columns:minmax(240px,2.3fr) 80px 56px 150px 150px minmax(120px,2fr) 170px 44px;align-items:stretch;gap:0;padding:0;display:grid}.oc{border-left:1px solid #00000014;align-items:center;padding:6px 8px;display:flex}.oc-items{border-left:0;display:block}.oc-sum,.oc-disc,.oc-branch,.oc-pay,.oc-del{text-align:center;flex-direction:column;justify-content:center}.oc-info{white-space:normal;align-self:stretch;display:block}.oc-phone{white-space:nowrap;gap:6px}.order-phone-icon{color:#2bb24c;flex-shrink:0}.order-items{width:100%}.order-items td{white-space:normal;background:0 0;border:0;padding:1px 4px 1px 0}.order-items td.num{white-space:nowrap;width:52px}.link-btn{color:#1a6fd1;font:inherit;cursor:pointer;background:0 0;border:0;padding:0}.order-x{color:#e74c3c;cursor:pointer;background:0 0;border:0;padding:0 6px;font-size:22px;line-height:1}@media (width<=1000px){.order-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.oc-items,.oc-info{grid-column:1/-1}.oc{border-top:1px solid #00000014;border-left:0}}.cash-card{margin-bottom:12px}.cash-card h2+.table-wrap,.cash-card .table-wrap+h2{margin-top:8px}.cash-card h2:not(:first-child){margin-top:16px}.cash-by{color:#555;white-space:normal}.cash-hint{margin:8px 0 0}.cash-note{white-space:normal}.diff-plus{color:#1c6b3d;font-weight:700}.order-btn{color:#333;height:28px;font:inherit;cursor:pointer;background:#e8e8e8;border:1px solid #d0d0d0;border-radius:2px;padding:0 10px}.order-btn:hover{background:#dcdcdc}.receipt{color:#111;background:#fff;width:70mm;font:14px Arial,Helvetica,sans-serif}.receipt table{border-collapse:separate;border-spacing:0;width:100%}.receipt td{text-align:left;vertical-align:middle;white-space:normal;background:0 0;border:0;padding:0}.receipt .trp td{padding:3px 0}.receipt .trp_title td{text-align:center;border-top:3px solid #000;border-bottom:3px solid #000;font-size:36px;overflow:hidden}.receipt .trp_head td{text-align:center;border-bottom:1px dashed #000;padding:3px 0}.receipt .trp_border td{border-bottom:1px solid #000}.receipt .trp_sep td{border-bottom:1px solid #000;padding:0}.receipt .trp_promo td{text-align:center;padding:20px 10px}.receipt .col-qty{text-align:center;width:40px}.receipt .col-sum{text-align:right;width:50px}.receipt .receipt-item td,.receipt .receipt-client td{vertical-align:top}.receipt .receipt-client{width:auto}.receipt-box{justify-items:center;width:auto;max-width:none}.receipt-box button{width:100%}.receipt-actions{background:var(--panel);border-top:1px solid #eee;gap:8px;width:100%;margin-bottom:-16px;padding:8px 0 16px;display:grid;position:sticky;bottom:-16px}.receipt-print{display:none}@page{margin:0}@media print{body{background:#fff}#root{display:none}.receipt-print{display:block}.receipt{margin:0 auto}}.st-new .order-head{background:#e7707d}.st-new .order-body{background:#f4959d}.st-cooking .order-head{background:#28cacc}.st-cooking .order-body{background:#88e2e2}.st-cooked .order-head{background:#83d160}.st-cooked .order-body{background:#b5e39f}.st-road .order-head{background:#ffce45}.st-road .order-body{background:#ffe28f}.st-done .order-head{background:#f1f1f1}.st-done .order-body{background:#fff}.st-written .order-head{background:#959fac}.st-written .order-body{background:#c5cbd3}.st-cancelled .order-head{background:#a398c4}.st-cancelled .order-body{background:#d4cfe6}@media (width<=1000px){.pos{grid-template-columns:minmax(0,1fr);gap:10px}.pos-cats,.pos-right{margin:0}.pos-cats{flex-flow:wrap}.pos-panel{order:3}}.swatch-label{align-items:center;gap:6px;display:inline-flex}.swatch{border:1px solid #0003;border-radius:2px;width:16px;height:16px;display:inline-block}.dish-cell{flex-wrap:wrap;align-items:center;gap:4px 8px;display:flex}.dish-cell input{width:240px;max-width:100%;height:28px;font:inherit;border:1px solid #bbb;border-radius:2px;padding:0 6px}.dish-cell input.no-dish{background:#fff9e8;border-color:#e0b04a}.check-cell{cursor:pointer;align-items:center;gap:6px;display:inline-flex}.row-open{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0}.row-open:hover{text-decoration:underline}.detail-row>td{background:#fafafa;padding:6px 10px 12px 24px}.detail-table{background:var(--panel);border:1px solid #e6e6e6;width:auto;min-width:420px}.detail-note{color:#666;margin:4px 0}.card{background:var(--panel);border-radius:2px;margin:0;padding:12px}.card h2{margin:0 0 10px;font-size:15px}.subtabs{gap:4px;display:flex}.subtab{background:var(--tab);color:#06343b;height:32px;font:inherit;cursor:pointer;border:0;border-radius:2px;padding:0 14px}.subtab.active{background:var(--panel);font-weight:700}.minus{color:var(--error);font-weight:700}.total-row td{background:#f4f4f4;font-weight:700}.ok-message{color:#1c6b3d;background:#e1f5e8;border-radius:2px;margin:0 0 12px;padding:8px 12px}.stock-docs{grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:start;gap:12px;display:grid}.doc-form label{color:#555;flex-direction:column;gap:3px;min-width:0;display:flex}.doc-form input,.doc-form select{background:var(--panel);height:32px;color:var(--text);font:inherit;border:1px solid #bbb;border-radius:2px;padding:0 8px}.doc-form-head{grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:12px;display:grid}.doc-form-head .wide{grid-column:1/-1}.doc-rows{gap:10px;display:grid}.doc-row{border-bottom:1px solid #eee;grid-template-columns:minmax(0,1fr) 120px 28px;align-items:end;gap:8px;padding-bottom:8px;display:grid}.doc-row.with-price{grid-template-columns:minmax(0,1fr) 110px 130px 100px 28px}.doc-row.with-kind{grid-template-columns:140px minmax(0,1fr) 120px 28px}.doc-row.has-problem input{border-color:var(--error)}.doc-row-sum{text-align:right;white-space:nowrap;height:32px;line-height:32px}.row-problem{color:var(--error);grid-column:1/-1;margin:0}.doc-form-foot,.doc-form-actions{justify-content:space-between;align-items:center;gap:10px;margin-top:12px;display:flex}.doc-form-actions{justify-content:flex-end}.doc-form-actions .btn-save{padding:0 18px}.doc-form-total{font-size:15px;font-weight:700}.doc-form .page-hint{margin:8px 0 0}.doc-note{color:#555;margin:0 0 6px}.doc-form .fact-input{width:90px}.doc-form .fact-input.has-error{border-color:var(--error)}.btn-plain{background:var(--panel);height:32px;color:var(--text);font:inherit;cursor:pointer;border:1px solid #bbb;border-radius:2px;padding:0 10px}.btn-danger{background:var(--error);color:#fff;height:32px;font:inherit;cursor:pointer;border:0;border-radius:2px;padding:0 12px}.doc-list{gap:10px;display:grid}.doc{background:var(--panel);border-radius:2px;min-width:0;padding:10px 12px}.doc-cancelled{opacity:.6}.doc-head{flex-wrap:wrap;gap:4px 12px;display:flex}.doc-total{margin-left:auto}.doc-items{margin:6px 0;padding-left:18px}.doc-status{color:var(--error);margin:0}.doc-cancel{flex-wrap:wrap;gap:6px;display:flex}.doc-cancel input{height:32px;font:inherit;border:1px solid #bbb;border-radius:2px;flex:200px;padding:0 8px}@media (width<=1000px){.stock-docs{grid-template-columns:minmax(0,1fr)}}@media (width<=640px){.doc-row,.doc-row.with-price,.doc-row.with-kind{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.doc-row .grow{grid-column:1/-1}.subtabs{flex-wrap:wrap}}.login{justify-content:center;padding:80px 16px 16px;display:flex}.login-card{background:var(--panel);border-radius:2px;flex-direction:column;gap:12px;width:100%;max-width:320px;padding:20px;display:flex}.login-card h1{text-align:center;margin:0;font-size:18px}.login-card label{flex-direction:column;gap:4px;display:flex}.login-card input{height:32px;font:inherit;border:1px solid #bbb;border-radius:2px;padding:0 8px}.login-error{color:var(--error);margin:0}.btn-save{background:var(--save);color:#fff;height:36px;font:inherit;cursor:pointer;border:0;border-radius:2px;font-weight:700}.btn-save:disabled{opacity:.6;cursor:default}
