:root{--bg:#f5f6f3;--ink:#21372f;--muted:#7b867e;--green:#244b3c;--lime:#d9ee88;--line:#e2e7df;--white:#fff;--red:#b84e43;font-family:Segoe UI,Arial,sans-serif;color:var(--ink);background:var(--bg);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:0;border-radius:9px;padding:11px 16px;background:var(--green);color:white;font-weight:600}button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:wait}button.secondary{background:white;color:var(--ink);border:1px solid var(--line)}button.quiet{background:transparent;color:var(--muted);padding:7px 10px}button.danger{background:#fbece9;color:var(--red)}input,select,textarea{border:1px solid #d9e0d6;border-radius:8px;padding:11px 12px;width:100%;background:white;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:#487a55;box-shadow:0 0 0 3px #e8efdf}textarea{min-height:78px;resize:vertical}label{display:block;font-size:12px;font-weight:600;color:#68766b;margin-bottom:6px}a{color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:600;letter-spacing:-1px}h2{font-size:21px;font-weight:600}h3{font-size:16px;font-weight:600}.muted{color:var(--muted)}.small{font-size:12px}.shell{display:grid;grid-template-columns:235px 1fr;min-height:100vh}.sidebar{background:#173d30;color:#dce9df;padding:31px 20px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;width:235px}.brand{display:flex;gap:12px;align-items:center;font-size:23px;font-weight:650;letter-spacing:-.8px}.brand-icon{width:38px;height:38px;background:var(--lime);color:var(--green);display:grid;place-items:center;border-radius:12px;font-size:26px}.tagline{color:#9bb7a8;font-size:11px;letter-spacing:1.1px;margin:10px 0 39px}.nav-label{font-size:10px;color:#95b0a1;text-transform:uppercase;letter-spacing:1.5px;margin:0 12px 14px}.nav{display:grid;gap:7px}.nav button{display:flex;gap:14px;align-items:center;text-align:left;background:transparent;color:#bdd0c3;padding:13px;font-weight:400}.nav button.active{background:#2b5341;color:#edffc2}.nav button span:first-child{font-size:18px;width:22px}.nav-count{margin-left:auto;font-size:10px;border-radius:5px;background:#456044;padding:3px 6px}.sidebar-bottom{margin-top:auto;border-top:1px solid #315442;padding-top:20px}.avatar{background:#e5eccf;border-radius:50%;width:35px;height:35px;color:var(--green);display:grid;place-items:center;font-weight:600}.identity{display:flex;align-items:center;gap:10px}.main{grid-column:2;padding:0 38px 36px;min-width:0}.topbar{height:79px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:30px;font-size:12px}.topbar strong{color:#5d6b5c;font-weight:500}.local-indicator{display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:#6a9764}.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:25px}.heading p{margin-top:8px;font-size:13px}.actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:25px}.stat{background:white;border:1px solid var(--line);padding:20px;border-radius:13px}.stat.accent{background:var(--lime);border-color:var(--lime)}.stat-title{font-size:12px;color:#6e7c69;margin-bottom:16px;display:flex;justify-content:space-between}.stat-value{font-size:31px;letter-spacing:-1px;font-weight:600}.stat-foot{font-size:11px;color:#7a8676;margin-top:10px}.panel{background:white;border:1px solid var(--line);border-radius:13px;margin-bottom:20px;overflow:hidden}.panel-head{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.panel-body{padding:22px}.toolbar{display:flex;gap:10px;padding:16px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.toolbar input{max-width:270px;background:#f8f9f6}.toolbar select{max-width:180px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#87917f;font-weight:600;text-align:left;background:#fafbf8;padding:14px 20px}td{padding:17px 20px;border-top:1px solid #eef0ea;font-size:12px}tbody tr.clickable{cursor:pointer}tbody tr.clickable:hover{background:#f8faf3}.cell-title{font-weight:600;margin-bottom:5px;font-size:13px}.cell-sub{font-size:11px;color:#8b9487;max-width:245px;overflow:hidden;text-overflow:ellipsis}.badge{display:inline-flex;align-items:center;gap:6px;background:#f0f2ed;color:#6e796a;border-radius:6px;padding:6px 9px;font-size:10px;white-space:nowrap}.badge.assigned{background:#ecf1fb;color:#5b6b9c}.badge.transit{background:#fff3dc;color:#a28331}.badge.delivered{background:#e9f2df;color:#5b813f}.badge.partial{background:#f0eafa;color:#8566a8}.badge.refused{background:#fbece9;color:#b45d51}.empty{padding:55px 20px;text-align:center}.empty-symbol{width:60px;height:60px;border-radius:17px;background:#eff3e7;display:grid;place-items:center;margin:0 auto 18px;font-size:28px;color:#6e8758}.empty p{color:var(--muted);margin:10px auto 20px;max-width:430px;line-height:1.6}.split{display:grid;grid-template-columns:1.6fr 1fr;gap:20px}.flow-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font-size:12px}.flow-bar{height:7px;background:#f0f3eb;border-radius:10px;margin-top:8px;overflow:hidden}.flow-fill{height:100%;background:#92ac68;border-radius:10px}.flow-item{margin-bottom:21px}.note{background:#f4f7ec;border:1px solid #e6ecd8;padding:15px;border-radius:9px;font-size:12px;color:#6b7b5c;line-height:1.6}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.entity-card{padding:22px;background:white;border:1px solid var(--line);border-radius:13px}.entity-card h3{margin:14px 0 7px}.entity-card p{line-height:1.7}.entity-top{display:flex;justify-content:space-between;align-items:center}.metric-row{display:flex;justify-content:space-between;padding-top:18px;border-top:1px solid var(--line);margin-top:18px;font-size:12px}.auth{min-height:100vh;display:grid;grid-template-columns:1.15fr 1fr}.auth-art{padding:60px;background:#173d30;color:white;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-art h1{font-size:53px;line-height:1.1;max-width:500px;letter-spacing:-2px}.auth-art p{color:#b5cbb8;line-height:1.7;margin-top:23px;max-width:360px}.auth-route{position:absolute;right:-40px;bottom:130px;border:1px solid #456949;border-radius:100%;width:390px;height:390px;opacity:.45}.auth-route:after{content:'';position:absolute;inset:65px;border:1px dashed #829665;border-radius:100%}.auth-form{display:flex;align-items:center;justify-content:center;padding:40px}.auth-box{width:360px}.auth-box h2{font-size:27px;margin-bottom:10px}.auth-box>p{margin-bottom:30px;line-height:1.6}.field{margin-bottom:16px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}.form-error{color:var(--red);background:#fbece9;border-radius:8px;padding:11px;margin:12px 0;font-size:12px}.modal-backdrop{position:fixed;inset:0;background:#12241c60;z-index:10;display:flex;align-items:center;justify-content:center;padding:20px}.modal{background:#fff;width:780px;max-width:100%;max-height:92vh;overflow:auto;border-radius:16px;box-shadow:0 25px 100px #11221930}.modal.small-modal{width:480px}.modal-header{padding:23px 26px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:1}.modal-content{padding:25px 26px}.modal-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.section-label{font-size:11px;text-transform:uppercase;letter-spacing:1px;color:#86917f;margin:24px 0 15px}.item-row{display:grid;grid-template-columns:1fr 80px 110px 35px;gap:8px;margin-bottom:9px;align-items:center}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.detail-field span{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}.detail-field strong{font-weight:500;line-height:1.6}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.timeline{margin-top:15px}.timeline-entry{border-left:2px solid #e7ecdf;padding:0 0 18px 17px;font-size:12px}.timeline-entry .muted{margin-top:5px;font-size:10px}.suggestion{padding:14px;border:1px dashed #bbceaa;border-radius:9px;margin:15px 0;background:#fbfdf6}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#224935;color:white;padding:14px 23px;border-radius:10px;z-index:30;box-shadow:0 10px 40px #0002}.late{color:#b66d45}.money-value{font-variant-numeric:tabular-nums}.inline-link{border:0;background:transparent;padding:0;color:#64864b}.status-count{font-size:11px;color:#8a957f}.footer-note{font-size:11px;color:#9ba491;margin-top:24px}.report-filter{display:flex;gap:12px;align-items:center;margin-bottom:20px}.report-filter input{width:160px}.report-filter span{color:var(--muted);font-size:12px}
@media(min-width:1500px){.main{padding-left:50px;padding-right:50px}}@media(max-width:1050px){.shell{grid-template-columns:190px 1fr}.sidebar{width:190px;padding:25px 15px}.main{padding:0 22px 25px}.stats{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}.heading{align-items:flex-start}.brand{font-size:20px}}@media(max-width:700px){.shell{display:block}.sidebar{position:static;width:auto;padding:17px}.tagline,.nav-label,.sidebar-bottom{display:none}.nav{display:flex;overflow:auto;margin-top:15px}.nav button{padding:10px;white-space:nowrap;font-size:12px}.nav-count{display:none}.main{padding:0 16px 25px}.topbar{height:55px;margin-bottom:22px}.heading{flex-direction:column}h1{font-size:25px}.stat{padding:16px}.stat-value{font-size:25px}.cards{grid-template-columns:1fr}.auth{display:block}.auth-art{padding:30px;min-height:260px}.auth-art h1{font-size:34px;margin-top:35px}.auth-art p,.auth-art .small{display:none}.auth-route{display:none}.auth-form{padding:35px 22px}.form-grid,.detail-grid{grid-template-columns:1fr}.full{grid-column:auto}.modal-backdrop{padding:8px}.modal-content{padding:18px}.modal-header{padding:18px}.item-row{grid-template-columns:1fr 55px 80px 25px}.item-row input{padding:9px 7px}.report-filter{flex-wrap:wrap}.toolbar input,.toolbar select{max-width:none}}
 .inline-rates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px;min-width:0;width:100%}
 .inline-rates label{font-size:12px;color:#66786c;display:flex;flex-direction:column;gap:3px}
 .inline-rates input{width:100%;min-width:0;padding:7px 9px;height:35px}
 .inline-rates button{padding:7px 10px;font-size:12px;grid-column:1/-1}
 .inline-rates .rate-result{white-space:normal;grid-column:1/-1}
 .inline-courier{min-width:0;width:100%;display:flex;flex-direction:column;gap:5px}
 .inline-courier select{width:100%;padding:8px;font-size:13px}
 .inline-courier .courier-result{white-space:normal}
 .inline-courier .courier-result:empty,.inline-rates .rate-result:empty{display:none}
 .orders-table{table-layout:fixed;white-space:normal;min-width:960px}
 .orders-table th,.orders-table td{padding:12px 8px;vertical-align:middle;overflow-wrap:anywhere}
 .orders-table th{letter-spacing:.3px;font-size:9px}
 .orders-table .cell-title{font-size:12px;line-height:1.4}
 .orders-table .cell-sub{max-width:none;white-space:normal;line-height:1.4;overflow:visible}
 .orders-table .badge{white-space:normal;max-width:100%;line-height:1.35;padding:5px 6px}
 .orders-table .receipt-check{width:17px;height:17px;margin:0;padding:0;box-shadow:none}
 .orders-table .inline-rates label{font-size:10px;margin:0}
 .orders-table .inline-rates input{padding:6px 4px;font-size:12px}
 .orders-table .inline-courier select{min-width:0;max-width:100%;font-size:12px;text-overflow:ellipsis}
 .orders-table .money-value{font-size:11px}
 .staff-orders th:nth-child(1){width:3%}
 .staff-orders th:nth-child(2){width:14%}
 .staff-orders th:nth-child(3){width:18%}
 .staff-orders th:nth-child(4){width:11%}
 .staff-orders th:nth-child(5){width:9%}
 .staff-orders th:nth-child(6){width:9%}
 .staff-orders th:nth-child(7){width:12%}
 .staff-orders th:nth-child(8){width:15%}
 .staff-orders th:nth-child(9){width:9%}
 .store-orders th:nth-child(1){width:14%}
 .store-orders th:nth-child(2){width:25%}
 .store-orders th:nth-child(3){width:13%}
 .store-orders th:nth-child(4){width:13%}
 .store-orders th:nth-child(5){width:11%}
 .store-orders th:nth-child(6){width:13%}
 .store-orders th:nth-child(7){width:11%}
