:root{--ink:#34251f;--muted:#766b62;--paper:#f5f2ec;--white:#fffcf7;--line:#dfd8ce;--red:#b7472b;--red-bg:#f9e9e1;--wheat:#ead9b9;--green:#436347;--green-bg:#e7eddf;--radius:12px;font-family:'Avenir Next','PingFang SC','Microsoft YaHei',sans-serif;color:var(--ink);background:var(--paper);font-size:14px;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.42}button,input,select,textarea,a{-webkit-tap-highlight-color:transparent}button,a,input,select,textarea:focus-visible{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b7472b;outline-offset:3px}::selection{background:#ead9b9;color:#34251f}input,textarea{caret-color:var(--red)}::-webkit-scrollbar{height:7px;width:7px}::-webkit-scrollbar-thumb{background:#b9ac9c;border-radius:5px}h1,h2,h3,p{margin:0}h1{font-size:34px;font-weight:600;letter-spacing:-.025em;line-height:1.35;text-wrap:balance}h2{font-size:19px;font-weight:600;line-height:1.4}h3{font-size:15px;font-weight:600}p{line-height:1.7}svg{display:block;flex-shrink:0}.icon{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.muted{color:var(--muted)}.small{font-size:12px}.num{font-variant-numeric:tabular-nums}.brand{display:flex;align-items:center;gap:11px}.brand-word{font-family:Georgia,'Times New Roman',serif;font-size:29px;letter-spacing:-.04em;font-weight:400}.brand-icon{width:37px;height:37px;border:1px solid #ad9582;border-radius:50%;display:grid;place-items:center;color:var(--wheat)}.brand-icon .icon{width:22px;height:22px}.brand-caption{font-size:10px;color:#dbcbbd;margin-left:15px;padding-left:17px;border-left:1px solid #766054;letter-spacing:.1em}.masthead{height:84px;background:var(--ink);color:var(--white);display:flex;justify-content:space-between;align-items:center;padding:0 42px;gap:20px}.mast-actions{display:flex;gap:16px;align-items:center}.mast-actions select{background:#4a3830;color:#fff6e9;border:1px solid #756052;border-radius:7px;min-height:40px;padding:7px 30px 7px 10px;font-size:12px}.demo-chip{color:#dac6b1;font-size:11px;display:flex;align-items:center;gap:7px}.demo-chip:before{content:'';width:5px;height:5px;border-radius:50%;background:#ceac74}.mast-btn{border:1px solid #756052;background:transparent;color:#e9d9c6;width:40px;height:40px;border-radius:7px;display:grid;place-items:center;position:relative}.mast-btn:hover{background:#523d31}.notif-dot{position:absolute;top:6px;right:7px;width:5px;height:5px;border-radius:50%;background:#eeac74}.user{display:grid;place-items:center;background:var(--wheat);color:var(--ink);width:37px;height:37px;border-radius:50%;font-size:12px;font-weight:600}.navline{display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--white);border-bottom:1px solid var(--line);padding:0 42px;height:66px}.nav{display:flex;gap:30px;height:100%;min-width:0}.nav button{height:100%;border:0;border-bottom:2px solid transparent;background:none;padding:0 2px;display:flex;align-items:center;gap:8px;color:var(--muted);white-space:nowrap;font-size:13px}.nav button.active{color:var(--red);border-bottom-color:var(--red);font-weight:600}.nav button:hover{color:var(--red)}.nav .icon{width:16px;height:16px}.nav-meta{font-size:11px;color:var(--muted);white-space:nowrap}.main{max-width:1560px;padding:31px 42px 40px;margin:auto;min-height:calc(100dvh - 150px)}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:27px}.page-head p{font-size:13px;color:var(--muted);margin-top:8px}.actions{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:10px 16px;border:1px solid var(--line);background:var(--white);border-radius:7px;font-size:12px;font-weight:500;white-space:nowrap;transition:background .16s,color .16s}.btn:hover{background:#ede7dc}.btn.primary{background:var(--red);border-color:var(--red);color:white}.btn.primary:hover{background:#983b23}.btn.dark{background:var(--ink);color:var(--white);border-color:var(--ink)}.btn.dark:hover{background:#503a2e}.btn.soft{background:var(--red-bg);border-color:transparent;color:#9d3c24}.btn.text{background:none;border-color:transparent;padding:8px;color:var(--red)}.btn.danger{color:var(--red)}.btn .icon{width:16px;height:16px}.input,select.field,textarea{border:1px solid var(--line);background:var(--white);border-radius:7px;padding:11px 12px;min-height:44px;width:100%;outline-offset:2px}.date-control{display:flex;gap:10px;align-items:center;border:1px solid var(--line);background:var(--white);padding:0 11px;border-radius:7px;min-height:44px}.date-control .icon{width:17px;height:17px;color:var(--muted)}.date-control input{background:transparent;border:0;font-size:12px;min-height:42px;max-width:142px}.status{display:inline-flex;align-items:center;gap:6px;font-size:11px;padding:5px 8px;border-radius:5px;white-space:nowrap;background:#eee8dc;color:#726146}.status:before{content:'';width:5px;height:5px;background:currentColor;border-radius:50%}.status.good{color:#436347;background:var(--green-bg)}.status.wait{color:#a1482b;background:var(--red-bg)}.status.dark{color:#eee1cb;background:#594236}.close{display:grid;place-items:center;min-width:44px;min-height:44px;border:0;background:#f1eade;border-radius:7px}.close .icon{width:18px;height:18px}.shift{display:grid;grid-template-columns:1fr auto;align-items:center;gap:20px;padding:23px 28px;background:var(--wheat);border-radius:var(--radius);margin-bottom:23px}.shift-title{font-size:23px;font-weight:550;letter-spacing:-.02em}.shift-title span{font-family:Georgia,serif;font-size:30px;margin-right:13px}.shift p{font-size:12px;color:#6b513d;margin-top:7px}.shift-side{display:flex;align-items:center;gap:28px}.shift-stat{padding-right:28px;border-right:1px solid #c8b28c}.shift-stat strong{font-family:Georgia,serif;font-size:35px;font-weight:400;display:block;line-height:1}.shift-stat span{font-size:11px;display:block;margin-top:7px;color:#6c543b}.shift-progress{display:flex;gap:5px;margin-top:13px}.shift-progress i{display:block;width:25px;height:5px;background:#cbbb9d;border-radius:2px}.shift-progress i.filled{background:var(--ink)}.overview-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.sheet{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}.sheet-head{padding:22px 24px 17px;display:flex;justify-content:space-between;align-items:center;gap:12px}.sheet-head p{margin-top:5px;font-size:11px;color:var(--muted)}.sheet-tools{display:flex;align-items:center;gap:13px;padding:0 24px 17px}.search{position:relative;flex:1;max-width:280px}.search .icon{position:absolute;left:12px;top:12px;width:17px;height:17px;color:var(--muted)}.search input{padding-left:38px;min-height:41px;font-size:12px}.filters{display:flex;gap:5px;flex-wrap:wrap}.filters button{border:1px solid transparent;background:transparent;min-height:38px;border-radius:5px;padding:7px 10px;font-size:11px;color:var(--muted);white-space:nowrap}.filters button.active{background:#eee6d9;color:var(--ink)}.filters button:hover{background:#f2ece0}.table-wrap{overflow:auto;max-width:100%;overscroll-behavior-x:contain}.matrix{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.matrix th{background:#f4f0e7;color:#817364;font-size:10px;font-weight:500;padding:13px 13px;text-align:right;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.matrix th:first-child{text-align:left;padding-left:24px}.matrix td{padding:13px 13px;border-bottom:1px solid #ebe5db;text-align:right;height:59px;font-variant-numeric:tabular-nums}.matrix td:first-child{text-align:left;padding-left:24px}.matrix tr:last-child td{border-bottom:0}.matrix .total{background:#f9f2e7;font-weight:650;color:var(--ink);min-width:67px}.matrix .total-head{background:#e9dcc5;color:#634c34}.matrix tr:hover td{background:#f6f0e5}.matrix tr:hover td.total{background:#efe3ce}.sku{font-size:10px;color:var(--muted);margin-top:4px;letter-spacing:.02em}.product-name{font-weight:550;font-size:12px;display:flex;align-items:center;gap:9px}.product-mark{width:27px;height:29px;border-radius:5px;background:#ede3cc;color:#927341;display:grid;place-items:center;font-size:11px;font-weight:500}.product-mark.pastry{background:#f2ded2;color:#9b583c}.product-mark.toast{background:#e5e6d8;color:#65714b}.product-mark.euro{background:#e9e2de;color:#75615c}.matrix .draft-cell{color:#a99787;font-size:11px}.table-foot{border-top:1px solid var(--line);padding:17px 24px;display:flex;justify-content:space-between;gap:15px;font-size:11px;color:var(--muted)}.table-foot strong{color:var(--ink);font-size:17px;margin:0 4px}.receipt{background:#eee4d2;border-radius:12px;padding:24px 21px;border:1px solid #d9ccb8;position:relative}.receipt h2{font-size:19px}.receipt-top{display:flex;justify-content:space-between;align-items:center}.receipt-top span{font-family:Georgia,serif;font-size:24px}.receipt p{font-size:11px;color:#76634f;margin-top:8px}.branch-list{margin-top:19px;border-top:1px dashed #bfad95}.branch-row{display:flex;align-items:center;gap:11px;width:100%;padding:17px 0;border:0;border-bottom:1px dashed #bfad95;background:transparent;text-align:left}.branch-row:hover .branch-name{color:var(--red)}.branch-code{font-size:10px;border:1px solid #cdbca1;background:#f6eddd;border-radius:5px;width:33px;height:36px;display:grid;place-items:center;flex-shrink:0}.branch-name{font-size:13px;font-weight:550;display:block}.branch-detail{font-size:10px;color:#7d6a55;display:block;margin-top:5px}.branch-state{margin-left:auto}.branch-state .icon{width:18px;height:18px;color:var(--green)}.branch-state.wait .icon{color:var(--red)}.receipt .btn{width:100%;margin-top:21px}.next-note{margin-top:16px;padding:18px 3px}.next-note h3{font-size:13px;display:flex;gap:8px;align-items:center}.next-note p{font-size:11px;margin-top:8px;color:var(--muted)}.timeline{margin-top:23px}.timeline h3{font-size:13px;margin-bottom:13px}.event{display:flex;align-items:flex-start;gap:13px;padding:11px 0;border-top:1px solid var(--line);font-size:11px;line-height:1.6}.event time{color:var(--muted);font-size:10px;min-width:35px;padding-top:1px}.event p{font-size:11px}.event-dot{width:6px;height:6px;background:#bca583;border-radius:50%;margin-top:6px;flex-shrink:0}.footer{margin-top:27px;display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:10px}.footer span{display:flex;gap:6px;align-items:center}.footer .icon{width:13px;height:13px}.store-tabs{display:flex;gap:8px;margin-bottom:21px;overflow:auto;scrollbar-width:thin;padding-bottom:4px}.store-tabs button{border:1px solid var(--line);background:var(--white);padding:13px 17px;min-width:148px;flex:1;text-align:left;border-radius:8px}.store-tabs button.active{border-color:var(--ink);background:var(--ink);color:#fff5e5}.store-tabs strong{display:block;font-size:13px}.store-tabs span{display:block;font-size:10px;margin-top:6px;color:var(--muted)}.store-tabs button.active span{color:#dac6b1}.order-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}.store-info{padding:19px 24px;background:#f2eadb;display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line)}.store-info h2{font-size:17px}.store-info p{font-size:11px;margin-top:6px;color:var(--muted)}.order-tools{display:flex;gap:10px;justify-content:space-between;padding:17px 24px}.order-list{padding:0 24px}.order-labels{display:grid;grid-template-columns:minmax(160px,1fr) 80px 74px 132px;gap:15px;padding:8px 0 14px;color:var(--muted);font-size:10px;border-bottom:1px solid var(--line)}.order-labels span:not(:first-child){text-align:center}.order-row{display:grid;grid-template-columns:minmax(160px,1fr) 80px 74px 132px;gap:15px;align-items:center;padding:15px 0;border-bottom:1px solid #ebe5db}.order-row:last-child{border-bottom:0}.order-row .product-name{font-size:13px}.order-row .product-mark{width:36px;height:40px;margin-right:2px}.stock-input{width:70px;min-height:42px;border:1px solid var(--line);border-radius:6px;text-align:center;background:#fffefa;font-variant-numeric:tabular-nums}.suggested{font-size:13px;text-align:center;color:#877760}.stepper{display:flex;align-items:center;border:1px solid #cabfae;border-radius:7px;background:white;height:44px;overflow:hidden}.stepper button{min-width:40px;height:42px;border:0;background:#f7f1e5;display:grid;place-items:center}.stepper button:hover{background:var(--wheat)}.stepper .icon{width:14px;height:14px}.stepper input{min-width:0;width:50px;flex:1;height:42px;border:0;text-align:center;background:white;font-size:14px;font-variant-numeric:tabular-nums}.stepper input::-webkit-inner-spin-button,.stock-input::-webkit-inner-spin-button{appearance:none}.note-field{padding:20px 24px;border-top:1px solid var(--line)}label{display:block;font-size:12px;font-weight:500;margin-bottom:8px}.note-field textarea{min-height:85px;resize:vertical;font-size:12px}.order-summary{background:var(--ink);border-radius:12px;color:#fff4e4;padding:26px 23px;position:sticky;top:20px}.order-summary h2{font-size:19px}.order-summary p{color:#cbbba7;font-size:11px;margin-top:9px}.order-total{padding:25px 0 20px;display:flex;align-items:baseline;gap:8px}.order-total strong{font-family:Georgia,serif;font-size:56px;font-weight:400;line-height:1}.order-total span{font-size:12px;color:#cbbba7}.summary-line{display:flex;justify-content:space-between;gap:10px;font-size:12px;padding:13px 0;border-top:1px solid #695144}.summary-line span{color:#cbbba7}.order-summary .btn{width:100%;margin-top:13px}.order-summary .btn:not(.primary){background:#4b382e;color:#e8d9c5;border-color:#796152}.order-summary .status{margin-top:20px}.order-help{margin-top:18px;border:1px solid var(--line);border-radius:8px;padding:17px 18px}.order-help h3{font-size:12px}.order-help p{font-size:11px;color:var(--muted);margin-top:7px}.notice{border:1px solid #dacbb3;background:#f2e8d5;border-radius:8px;display:flex;align-items:flex-start;gap:11px;padding:15px 18px;margin-bottom:20px;font-size:12px;line-height:1.7}.notice .icon{margin-top:2px;color:#8a633a;width:18px;height:18px}.notice.good{background:#e7eddf;border-color:#c8d4bd;color:#3b593b}.notice.error{background:#f9e9e1;border-color:#ddb7a3;color:#963b25}.production-banner{background:var(--ink);color:var(--white);padding:25px 28px;border-radius:12px;display:flex;justify-content:space-between;gap:25px;align-items:center;margin-bottom:23px}.production-banner h2{font-size:24px;font-weight:500}.production-banner p{font-size:12px;color:#d6c6af;margin-top:9px}.production-stats{display:flex;gap:32px}.production-stats strong{font-family:Georgia,serif;font-size:32px;font-weight:400;display:block}.production-stats span{font-size:10px;color:#d6c6af;display:block;margin-top:7px}.plan-input{width:78px;min-height:40px;background:#fff;border:1px solid #cfc3b0;border-radius:6px;text-align:center;font-variant-numeric:tabular-nums}.production-table td{padding-top:14px;padding-bottom:14px}.production-table td .btn{min-height:40px;font-size:11px}.batch-hint{font-size:10px;color:var(--muted);margin-top:5px}.delivery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:19px}.delivery-card{padding:23px;background:var(--white);border:1px solid var(--line);border-radius:12px}.delivery-head{display:flex;align-items:center;gap:13px}.delivery-head .branch-code{height:42px;width:42px;font-size:12px}.delivery-head h2{font-size:19px}.delivery-head p{font-size:11px;color:var(--muted);margin-top:5px}.delivery-body{display:flex;justify-content:space-between;align-items:baseline;padding:25px 0 20px}.delivery-body strong{font-family:Georgia,serif;font-size:36px;font-weight:400}.delivery-body strong span{font-family:inherit;font-size:12px;color:var(--muted);margin-left:6px}.delivery-body>span{font-size:12px;color:var(--muted)}.delivery-info{font-size:11px;line-height:1.7;color:var(--muted);padding:15px 0;border-top:1px solid var(--line);min-height:66px}.delivery-actions{display:flex;gap:8px;margin-top:17px}.delivery-actions .btn{flex:1;font-size:11px;padding:10px 9px}.delivery-card.completed{background:#f0f2e8}.history-toolbar{display:flex;align-items:center;gap:12px;margin-bottom:20px}.history-toolbar .field{max-width:210px}.catalog-toolbar{display:flex;align-items:center;gap:17px;margin-bottom:20px;flex-wrap:wrap}.catalog-toolbar .search{max-width:310px;min-width:220px}.catalog-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.catalog-item{border:1px solid var(--line);background:var(--white);border-radius:12px;overflow:hidden}.catalog-top{background:#e9dfc9;min-height:96px;display:flex;align-items:center;justify-content:space-between;padding:21px 22px;color:#78633e}.catalog-top.pastry{background:#f1ddce;color:#8e5239}.catalog-top.toast{background:#e1e4d3;color:#667248}.catalog-top.euro{background:#e6deda;color:#76605a}.catalog-top .icon{width:45px;height:45px;stroke-width:1}.catalog-top span{font-size:10px;letter-spacing:.08em}.catalog-body{padding:18px 20px 20px}.catalog-body h3{font-size:16px}.catalog-body p{font-size:11px;color:var(--muted);margin-top:8px}.catalog-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:17px}.catalog-bottom .btn{min-height:38px;padding:8px 12px;font-size:11px}.catalog-item.inactive{opacity:.65}.empty{padding:55px 24px;text-align:center}.empty .icon{width:31px;height:31px;color:#a79479;margin:0 auto 16px}.empty p{font-size:12px;color:var(--muted);margin-top:9px}.empty .btn{margin-top:19px}.mobile-label{display:none}.settings-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:24px}.settings-content{padding:23px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid .full{grid-column:1/-1}.field-help{font-size:11px;color:var(--muted);margin-top:7px}.settings-content .actions{margin-top:23px}.settings-content p{font-size:12px;color:var(--muted);margin-bottom:19px}.settings-row{padding:14px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:12px;gap:15px}.settings-row span{color:var(--muted)}dialog{border:0;border-radius:14px;background:var(--white);color:var(--ink);width:570px;max-width:calc(100vw - 32px);max-height:88dvh;padding:28px;box-shadow:0 24px 90px #261b1840}dialog::backdrop{background:#2f201fa6;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.modal-head h2{font-size:24px}.modal-desc{font-size:12px;color:var(--muted);margin-bottom:20px;line-height:1.8}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:23px}.modal-scroll{max-height:45dvh;overflow:auto}.modal-line{display:flex;justify-content:space-between;gap:15px;font-size:12px;padding:12px 0;border-bottom:1px solid var(--line)}.modal-line strong{font-variant-numeric:tabular-nums}.modal-total{display:flex;justify-content:space-between;padding:19px 0 0;font-size:14px;font-weight:600}.form-error{color:#a03d24;font-size:12px;margin-top:14px;min-height:18px}.confirm-sheet{padding:20px;background:#efe4ce;border-radius:8px;display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.confirm-sheet strong{font-family:Georgia,serif;font-weight:400;font-size:36px}.confirm-sheet span{font-size:12px}.reminder-list{display:flex;gap:8px;flex-wrap:wrap;padding:15px 0}.reminder-list span{border:1px solid var(--line);padding:8px 12px;border-radius:6px;font-size:12px}.notify-date{font-size:10px;color:var(--muted);padding:14px 0 5px}#toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,15px);background:var(--ink);color:#fff4e5;padding:14px 21px;border-radius:8px;font-size:12px;max-width:calc(100vw - 32px);opacity:0;visibility:hidden;z-index:999;box-shadow:0 6px 24px #34251f22;transition:transform .22s,opacity .22s}#toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}.print-head{display:none}.loading-banner{padding:20px;color:#766b62}
@media(min-width:1500px){.matrix th,.matrix td{padding-left:18px;padding-right:18px}.main{padding-top:36px}.overview-grid{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:1099px){.masthead{padding:0 26px;height:77px}.brand-caption{display:none}.mast-actions{gap:10px}.navline{padding:0 26px;gap:10px}.nav{gap:24px;overflow-x:auto;scrollbar-width:none}.nav-meta{display:none}.main{padding:27px 26px 35px}.overview-grid{grid-template-columns:minmax(0,1fr) 245px;gap:19px}.sheet-head{padding:20px}.sheet-tools{padding:0 20px 15px;flex-wrap:wrap;gap:8px}.receipt{padding:22px 17px}.matrix{min-width:625px}.matrix th,.matrix td{padding:12px 11px}.matrix td:first-child,.matrix th:first-child{padding-left:20px}.matrix .product-mark{display:none}.order-grid{grid-template-columns:minmax(0,1fr) 245px;gap:18px}.order-row,.order-labels{grid-template-columns:minmax(140px,1fr) 66px 55px 120px;gap:9px}.order-list{padding:0 18px}.order-row .product-mark{display:none}.stock-input{width:60px}.stepper button{min-width:36px}.order-tools{padding:17px 18px;flex-wrap:wrap}.store-info{padding:19px 18px}.order-summary{padding:23px 18px}.delivery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.page-head h1{font-size:30px}.page-head{align-items:flex-start}.page-head .actions{justify-content:flex-end}.shift{padding:22px;gap:18px}.shift-side{gap:20px}.shift-stat{padding-right:20px}.production-stats{gap:24px}.settings-grid{grid-template-columns:1fr}}
@media(max-width:850px) and (min-width:700px){.overview-grid{grid-template-columns:minmax(0,1fr)}.side-stack{display:grid;grid-template-columns:1.1fr 1fr;gap:24px}.receipt .branch-list{display:grid;grid-template-columns:1fr 1fr;column-gap:20px}.receipt .btn{margin-top:16px}.next-note{margin-top:0}.side-secondary{padding-top:5px}.timeline{margin-top:17px}.order-grid{grid-template-columns:1fr}.order-side{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}.order-summary{position:static}.order-help{margin:0}.order-total{padding:18px 0}.order-row,.order-labels{grid-template-columns:minmax(160px,1fr) 80px 74px 132px;gap:15px}}
@media(max-width:699px){:root{font-size:13px}.masthead{height:72px;padding:0 18px;gap:12px}.brand-word{font-size:25px}.brand-icon{width:31px;height:31px}.brand-icon .icon{width:19px;height:19px}.brand{gap:8px}.mast-actions{gap:8px}.mast-actions select{font-size:10px;max-width:105px;padding:6px;min-height:36px}.demo-chip,.user{display:none}.mast-btn{width:34px;height:36px}.mast-btn .icon{width:17px;height:17px}.navline{height:54px;padding:0 18px;display:block}.nav{gap:23px;overflow:auto;scrollbar-width:none;margin-right:-18px;padding-right:18px}.nav button{font-size:12px;gap:6px}.nav .icon{width:15px;height:15px}.main{padding:23px 18px 25px;min-height:calc(100dvh - 126px)}.page-head{display:block;margin-bottom:20px}.page-head h1{font-size:28px}.page-head p{font-size:12px;margin-top:7px}.page-head .actions{justify-content:flex-start;margin-top:17px;gap:8px}.page-head .actions>.btn{flex:1;padding:10px 12px}.page-head .date-control{flex:1;justify-content:center;min-width:154px}.date-control input{max-width:136px}.btn{font-size:11px;padding:10px 13px}.shift{grid-template-columns:1fr;padding:20px;gap:20px;margin-bottom:19px}.shift-title{font-size:20px}.shift-title span{font-size:27px;margin-right:9px}.shift p{font-size:11px;max-width:34ch}.shift-side{justify-content:space-between}.shift-stat{display:flex;gap:12px;align-items:center;padding-right:20px}.shift-stat strong{font-size:30px}.shift-stat span{margin:0;font-size:10px;line-height:1.7}.shift-progress{margin-top:6px}.shift-side>.btn{min-height:44px}.overview-grid,.order-grid{grid-template-columns:1fr;gap:19px}.sheet-head{padding:20px 18px 15px;align-items:flex-start}.sheet-head h2{font-size:18px}.sheet-head p{font-size:10px;max-width:29ch;line-height:1.6}.sheet-head>.btn{padding:7px;min-height:36px;font-size:10px}.sheet-tools{padding:0 18px 14px;display:block}.search{max-width:none}.filters{margin-top:11px;gap:3px}.filters button{font-size:10px;padding:7px 9px}.matrix{min-width:675px}.matrix th,.matrix td{padding:12px 14px}.table-wrap{scrollbar-width:thin}.table-foot{padding:15px 18px;font-size:10px}.table-foot strong{font-size:14px}.receipt{padding:22px}.side-secondary{display:none}.receipt .branch-list{display:grid;grid-template-columns:1fr 1fr;column-gap:17px}.branch-row{padding:16px 0;gap:9px}.branch-code{width:28px;height:32px;font-size:9px}.branch-name{font-size:11px}.branch-detail{font-size:9px}.branch-state .icon{width:15px;height:15px}.footer{flex-direction:column;gap:8px;font-size:9px}.store-tabs{margin-right:-18px;padding-right:18px;gap:7px}.store-tabs button{min-width:128px;padding:13px 14px}.store-tabs strong{font-size:12px}.store-tabs span{font-size:9px}.store-info{padding:19px 18px;align-items:flex-start}.store-info h2{font-size:17px}.store-info p{font-size:10px;max-width:24ch}.store-info>.status{font-size:9px}.order-tools{display:grid;grid-template-columns:1fr 1fr;padding:15px 18px;gap:8px}.order-tools .btn{font-size:10px;padding:10px 5px}.order-list{padding:0 18px}.order-labels{display:none}.order-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:19px 0}.order-row>.product-name{grid-column:1/-1;font-size:14px}.order-row .product-mark{display:grid;width:29px;height:31px;font-size:10px}.order-row .sku{margin-top:2px}.mobile-label{display:block;font-size:10px;color:var(--muted);margin-bottom:7px;font-weight:400}.order-row .stock-wrap{grid-column:1;grid-row:2}.order-row .stock-input{width:100%;height:44px;font-size:13px;background:#f7f3eb}.order-row .suggested{grid-column:1;grid-row:3;text-align:left;display:flex;align-items:center;gap:7px;font-size:11px;margin-top:-7px}.order-row .suggested .mobile-label{margin:0}.order-row .quantity-wrap{grid-column:2;grid-row:2}.stepper{width:100%}.stepper button{min-width:40px}.stepper input{font-size:15px}.order-summary{position:static;padding:24px}.order-total{padding:19px 0}.order-total strong{font-size:50px}.order-help{padding:16px 18px;margin-top:15px}.note-field{padding:19px 18px}.notice{font-size:11px;padding:14px;gap:9px}.production-banner{display:block;padding:23px}.production-banner h2{font-size:22px}.production-banner p{font-size:11px}.production-stats{margin-top:23px;gap:0;justify-content:space-between}.production-stats strong{font-size:29px}.production-stats span{font-size:10px}.production-table{min-width:620px}.delivery-grid{grid-template-columns:1fr;gap:15px}.delivery-card{padding:22px}.delivery-body{padding:21px 0 16px}.delivery-actions .btn{font-size:11px}.history-toolbar{flex-wrap:wrap;gap:9px}.history-toolbar .field{max-width:none;flex:1;min-width:150px}.history-table{min-width:710px}.catalog-toolbar{display:block}.catalog-toolbar .search{min-width:0;max-width:none}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.catalog-top{min-height:81px;padding:17px 14px}.catalog-top .icon{width:33px;height:33px}.catalog-top span{font-size:8px}.catalog-body{padding:16px 13px}.catalog-body h3{font-size:13px}.catalog-body p{font-size:10px}.catalog-bottom{align-items:flex-start;gap:5px;margin-top:14px}.catalog-bottom .btn{font-size:10px;padding:8px;min-height:37px}.catalog-bottom .status{font-size:9px;padding:5px}.settings-content{padding:20px 18px}.form-grid{grid-template-columns:1fr;gap:17px}.form-grid .full{grid-column:auto}dialog{padding:23px 20px;max-height:90dvh}.modal-head{margin-bottom:19px}.modal-head h2{font-size:22px}.modal-actions{flex-wrap:wrap}.modal-actions .btn{flex:1;font-size:11px}.modal-desc{font-size:11px}.modal-line{font-size:11px}.confirm-sheet{padding:18px}.notify-date{font-size:10px}.modal-scroll{max-height:43dvh}#toast{bottom:19px;width:max-content;font-size:11px}.empty{padding:45px 20px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media print{.masthead,.navline,.page-head,.shift,.side-stack,.footer,.btn,.sheet-tools,.order-tools,.note-field,.order-side,.notice,.store-tabs,#toast,dialog{display:none!important}body{background:white;color:black}.main{padding:0;max-width:none}.print-head{display:block;margin-bottom:20px;font-size:22px}.print-head p{font-size:12px;margin-top:7px}.overview-grid,.order-grid{display:block}.sheet{border:0;border-radius:0}.table-wrap{overflow:visible}.matrix{min-width:0;width:100%;font-size:10px}.matrix th,.matrix td{padding:9px 8px!important}.matrix .product-mark{display:none}.sheet-head{padding-left:0}.delivery-grid{grid-template-columns:repeat(2,1fr)}.delivery-card{break-inside:avoid}.production-banner{background:none;color:black;padding:0;margin-bottom:20px}.production-banner p,.production-stats span{color:#555}.production-stats strong{font-size:24px}.plan-input{border:0;background:none}.catalog-grid{grid-template-columns:repeat(4,1fr)}}
/* Device composition: compact shift controls and a pinned product column. */
.sheet,.side-stack,.order-side,.shift>div{min-width:0}.scroll-hint{display:none}
@media(max-width:699px){.shift-side{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}.shift-stat{padding-right:0;border:0;gap:9px}.shift-stat strong{font-size:27px}.shift-stat span{font-size:9px}.shift-progress{gap:3px}.shift-progress i{width:15px;height:4px}.shift-side>.btn{padding:10px 12px;font-size:10px}.scroll-hint{display:block;font-size:10px;color:var(--muted);padding:0 18px 13px}.matrix th:first-child{position:sticky;left:0;z-index:2;background:#f4f0e7}.matrix td:first-child{position:sticky;left:0;z-index:1;background:var(--white);box-shadow:3px 0 5px #34251f06}.mast-btn{width:44px;height:44px}.mast-actions select{min-height:44px}.mast-actions{gap:7px}}
@media(max-width:410px){.brand-icon{display:none}.brand-word{font-size:26px}.masthead{gap:8px}.mast-actions select{max-width:89px}}
@media print{.scroll-hint{display:none}.matrix td:first-child,.matrix th:first-child{position:static;box-shadow:none}}
.delivery-print-only{display:none}.delivery-print-heading{display:flex;justify-content:space-between;font-size:11px;padding:12px 0;border-bottom:1px solid var(--line)}
@media print{.delivery-print-only{display:block}.delivery-print-only .modal-line{font-size:11px;padding:8px 0}.delivery-card{padding:18px}.delivery-grid{gap:15px}.delivery-info{min-height:0}}
