:root{font:14px/1.5 'Segoe UI',system-ui,sans-serif;color:#253247;background:#f4f6fa;font-synthesis:none;--line:#e4e9f1;--muted:#7a879b;--accent:#177767}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,select,input{border:1px solid #dce3ed;border-radius:10px;padding:10px 13px;background:#fff}button,a,select{cursor:pointer}button:hover{background:#edf5f2;border-color:#b1d3c7}button:disabled{opacity:.4;cursor:default}:focus-visible{outline:3px solid #8ccfc0;outline-offset:3px}[hidden]{display:none!important}aside{position:fixed;inset:0 auto 0 0;width:224px;background:#fff;border-right:1px solid var(--line);padding:30px 20px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;padding:0 6px;font-weight:700;font-size:14px;line-height:1.35}.brand img{width:42px;height:50px;object-fit:contain}.brand small{display:block;color:var(--muted);font-size:10px;font-weight:500;margin-top:4px}nav{display:grid;gap:8px;margin-top:42px}nav a{text-decoration:none;color:#647187;padding:13px 16px;border-radius:11px;font-weight:600;display:flex;gap:12px;align-items:center}nav a:before{content:'◉';font-size:15px;opacity:.6}nav a[href='#orders']:before{content:'▤'}nav a[href='#devices']:before{content:'↻'}nav a:hover{background:#f5f7fa}nav a[aria-current=page]{color:#146d5e;background:#eaf5f0}.aside-note{margin-top:auto;padding:20px 8px 0;color:#8b95a5;font-size:11px}main{margin-left:224px;padding:32px clamp(20px,3vw,48px);max-width:1900px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}h1{font-size:30px;line-height:1.2;letter-spacing:-.8px;margin:6px 0 10px}h2{font-size:19px;letter-spacing:-.3px;margin:0 0 6px}h3{font-size:15px;margin:0 0 12px}p{color:var(--muted);margin:4px 0 14px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.7px;color:#8b97a9}.pill{background:#eaf5ef;color:#23765d;border:1px solid #d8ebdf;border-radius:30px;padding:8px 13px;font-size:11px;white-space:nowrap}.branch-picker{display:flex;align-items:center;gap:16px;background:#fff;border:1px solid var(--line);padding:14px 18px;border-radius:14px;margin-bottom:14px}.branch-picker label{font-size:12px;color:var(--muted);font-weight:600}.branch-picker select{font-weight:700;min-width:230px;border:0;background:#f3f6fa}.notice{color:#718096;font-size:11px;padding:0 4px;margin:10px 0 16px}.filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;background:#fff;border:1px solid var(--line);padding:16px 18px;border-radius:14px;margin-bottom:12px}.filters label{display:grid;gap:6px;color:#6a778a;font-size:11px}.filters select{min-width:180px;color:#334258;font-size:12px}.filters small{flex-basis:100%;font-size:10px;color:#929daf}#orderTools{margin:12px 0 22px}.actions{display:flex;align-items:center;gap:10px;margin:12px 0;color:var(--muted);font-size:11px}.section-head{display:flex;align-items:center;gap:15px;justify-content:space-between;margin:24px 0 16px;flex-wrap:wrap}.section-head span{color:var(--muted);font-size:12px}.section-head button[aria-pressed=true]{background:#213e37;color:white;border-color:#213e37}article{background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;min-width:0;box-shadow:0 3px 10px #20365303}.current-panel{margin-bottom:24px}.current-panel>p,.current-panel>small{font-size:11px;color:var(--muted)}.current-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0 16px}.current-card{padding:18px;background:#f6f9fb;border:1px solid #edf1f5;border-radius:13px;min-width:0}.current-card:nth-child(2){background:#f0f7f3}.current-card:nth-child(4){background:#f0f5fc}.caption{font-size:12px;color:#69788d}.value{font-size:29px;letter-spacing:-1px;font-weight:700;margin:10px 0;line-height:1.2;font-variant-numeric:tabular-nums}.current-card small{font-size:10px;color:#8a96a6}.branch-reports{display:grid;gap:22px;margin:16px 0 24px}.branch-block>h2{font-size:21px}.branch-block>p{font-size:11px}.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:22px 0 28px}.summary-group{background:#fafbfd;border:1px solid #e9edf4;border-radius:13px;padding:18px;min-width:0}.summary-group h3{color:#54647b;font-size:13px;margin-bottom:16px}.metric{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;border-bottom:1px solid #e9eef4;padding:10px 0;font-size:12px}.metric:last-child{border-bottom:0}.metric strong{font-size:17px;font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right;color:#263e50}.metric small{display:block;color:#929cad;font-size:10px;line-height:1.45;margin-top:4px}.summary-group .metric:first-of-type strong{font-size:23px;color:#176f5c}.summary-group p{font-size:10px;line-height:1.6;margin:12px 0 0}.branch-block>h3{margin:24px 0 14px}.table-wrap{width:100%;max-height:none;overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:#fff}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{background:#f5f7fb;color:#8591a2;font-size:10px;font-weight:650;letter-spacing:.3px;padding:14px 15px;border-bottom:1px solid var(--line)}td{padding:15px;border-bottom:1px solid #eef1f6;font-size:12px;font-variant-numeric:tabular-nums}td small{display:block;color:#99a2b1;font-size:10px;margin-top:4px}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#f8fbfa}tr.order-alert>td{background:#fff4ef;border-bottom-color:#f3ded3}tr.order-alert>td:first-child{box-shadow:inset 3px 0 #d97753}td small.alert-reason{color:#b65b3e;font-weight:600;white-space:normal;min-width:145px;max-width:235px}.late{color:#bd654a}.early{color:#238c73}.muted{color:#9aa4b3}#search{margin-left:auto}#devices{background:white;padding:24px;border:1px solid var(--line);border-radius:18px;margin-top:22px}#devices p{font-size:11px;margin-top:16px}footer{border-top:1px solid var(--line);padding-top:18px;color:#98a2b2;font-size:10px;line-height:1.7;margin-top:30px}.day{border:0;color:#177767;background:none}section{scroll-margin-top:20px}@media(min-width:1500px){.summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1100px){aside{width:190px;padding:24px 14px}main{margin-left:190px;padding:24px}.current-grid{grid-template-columns:1fr 1fr}.summary-grid{grid-template-columns:1fr 1fr}}@media(max-width:700px){aside{position:static;width:auto;padding:16px;border-right:0;border-bottom:1px solid var(--line)}.brand img{height:36px;width:32px}.brand small,.aside-note{display:none}nav{display:flex;margin-top:16px;gap:6px}nav a{font-size:12px;padding:9px 12px}main{margin:0;padding:18px 12px}header{align-items:start}h1{font-size:24px}.eyebrow{font-size:9px}.pill{font-size:10px;padding:7px}.summary-grid{grid-template-columns:1fr}.current-grid{gap:9px}.current-card{padding:13px}.value{font-size:24px}article{padding:16px}.branch-picker select{min-width:0;flex:1}.filters label{flex:1}.filters select{min-width:0;width:100%}#search{margin-left:0;width:100%}}
/* Верхняя навигация */
aside{position:sticky;top:0;inset:auto;z-index:20;width:100%;height:76px;padding:0 32px;flex-direction:row;align-items:center;gap:40px;border-right:0;border-bottom:1px solid var(--line);box-shadow:0 2px 12px #20365305}.brand{flex-shrink:0;font-size:12px}.brand img{width:34px;height:44px}.brand small{display:none}nav{display:flex;align-self:stretch;align-items:stretch;gap:8px;margin:0}nav a{display:flex;align-items:center;border-radius:0;padding:0 22px;border-bottom:3px solid transparent;font-size:13px}nav a[aria-current=page]{background:#f2f8f5;border-bottom-color:#177767}.aside-note{margin:0 0 0 auto;padding:0;font-size:10px}main{margin-left:auto;margin-right:auto;max-width:1700px;padding:28px clamp(20px,3vw,48px)}@media(max-width:1100px){aside{width:100%;padding:0 20px;gap:24px}main{margin:0 auto;padding:24px}.aside-note{display:none}}@media(max-width:700px){aside{position:sticky;height:auto;min-height:64px;padding:10px 12px;gap:12px;flex-wrap:wrap}.brand{font-size:11px}.brand img{height:32px;width:27px}nav{flex:1;margin:0;gap:0;justify-content:flex-end;align-self:center}nav a{font-size:11px;padding:12px 9px;border-radius:7px;border-bottom-width:2px;gap:5px}nav a:before{display:none}main{margin:0;padding:20px 12px}}@media(max-width:420px){nav{flex-basis:100%;justify-content:flex-start}nav a{flex:1;justify-content:center}}

.brand img{width:66px;height:50px;object-fit:contain}@media(max-width:700px){.brand img{width:48px;height:36px}}

.brand img{width:112px;height:68px;object-fit:contain}.brand{padding:0}@media(max-width:700px){.brand img{width:88px;height:54px}}

.type-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:8px 0 24px}.type-total{display:flex;flex-direction:column;padding:18px 20px;border:1px solid #e4e9f1;border-radius:13px;background:#f6f9fb}.type-total .value{display:block;margin:9px 0;font-size:28px;color:#263e50}.type-total small{font-size:10px;color:#8a96a6}@media(max-width:700px){.type-totals{grid-template-columns:1fr}}

.table-filters{gap:14px}.filter-heading{width:100%;display:flex;align-items:center;justify-content:space-between}.column-filters{width:100%;display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px}.column-filters label{min-width:0}.column-filters input,.column-filters select{width:100%;box-sizing:border-box}@media(max-width:900px){.column-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.column-filters{grid-template-columns:1fr}}

.point-moved{color:#94620a;background:#fff4d8;border-radius:4px;padding:2px 5px;display:inline-block}

#deviceRows{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px;align-items:start}.device-card{min-width:0;border:1px solid #d6e2dd;border-radius:14px;background:#fff;padding:20px;box-shadow:0 3px 14px #18382b08}.device-card>.metric{border:0;padding:0;background:transparent;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.device-card>.metric>span{font-weight:700;font-size:16px}.device-card .metric small{font-weight:400;font-size:12px;line-height:1.7;display:block;margin-top:8px}.device-card .metric strong{font-size:16px}.device-card p{overflow-wrap:anywhere}.device-actions{border-top:1px solid #e7ede9;padding-top:14px;margin-top:16px;display:flex;flex-wrap:wrap;gap:8px}.device-actions button{flex:1 1 160px;font-size:12px;white-space:normal}@media(max-width:480px){#deviceRows{grid-template-columns:1fr}}

/* Compact live overview: six cards across on desktop. */
.current-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.current-card{min-width:0;padding:13px 14px}.current-card .caption{font-size:11px;line-height:1.4}.current-card .value{font-size:clamp(17px,1.45vw,24px);line-height:1.3;margin:9px 0;white-space:nowrap;font-variant-numeric:tabular-nums}.current-card small{font-size:10px;line-height:1.4}@media(max-width:1199px){.current-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:650px){.current-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.current-card{padding:11px}.current-card .value{font-size:18px}}


.floating-order-header{position:fixed;z-index:19;overflow:hidden;background:#f5f7fb;pointer-events:none;box-shadow:0 3px 6px #20365318}.floating-order-header table{margin:0;border-collapse:collapse}.floating-order-header th{background:#f5f7fb}@media print{.floating-order-header{display:none!important}}

/* Shared panel navigation */
body>aside,body>aside.site-nav{height:88px;min-height:88px;padding:0 28px;gap:28px;flex-wrap:nowrap;background:#fff}
body>aside .brand{flex:0 0 160px;padding:0}
body>aside .brand a{display:flex;align-items:center}
body>aside .brand img{width:160px;height:82px;object-fit:contain}
body>aside nav{display:flex;margin:0;gap:4px;align-self:stretch;align-items:stretch;flex:1;justify-content:flex-start;min-width:0}
body>aside nav a{padding:0 clamp(12px,1.5vw,24px);font-size:14px;white-space:nowrap;gap:0;border-radius:0;border-bottom:3px solid transparent;transition:background .15s,color .15s}
body>aside nav a:before{display:none}
body>aside nav a[aria-current=page]{background:#eef7f4;color:#146d5e;border-bottom-color:#177767}
body>aside nav a:last-child{margin-left:auto;color:#738195}
body>aside nav a:last-child[aria-current=page]{color:#146d5e}
body>aside .aside-note{display:none}
@media(max-width:900px){body>aside,body>aside.site-nav{padding:0 16px;gap:14px}body>aside .brand{flex-basis:130px}body>aside .brand img{width:130px;height:76px}body>aside nav a{font-size:12px;padding:0 10px}}
@media(max-width:650px){body>aside,body>aside.site-nav{height:auto;min-height:0;padding:6px 12px 0;gap:0;flex-wrap:wrap}body>aside .brand{flex-basis:100%;justify-content:center}body>aside .brand img{width:130px;height:64px}body>aside nav{flex-basis:100%;overflow-x:auto;align-self:auto;scrollbar-width:none}body>aside nav a{flex:0 0 auto;padding:12px 10px;font-size:12px}body>aside nav a:last-child{margin-left:0}}
/* Larger visible brand, preserving the original logo proportions. */
body>aside .brand{flex-basis:240px}
body>aside .brand img{width:240px;height:78px}
@media(max-width:1050px){body>aside,body>aside.site-nav{gap:16px;padding:0 18px}body>aside nav a{padding:0 11px;font-size:13px}body>aside .brand{flex-basis:210px}body>aside .brand img{width:210px;height:70px}}
@media(max-width:750px){body>aside,body>aside.site-nav{height:auto;min-height:0;flex-wrap:wrap;padding:8px 12px 0;gap:0}body>aside .brand{flex-basis:100%;justify-content:center}body>aside .brand img{width:220px;height:72px}body>aside nav{flex-basis:100%;overflow-x:auto;align-self:auto;scrollbar-width:none}body>aside nav a{flex:0 0 auto;padding:12px 11px;font-size:12px}body>aside nav a:last-child{margin-left:0}}
