:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#17243a;background:#f4f7fb;font-size:14px}*{box-sizing:border-box}body{margin:0}a{color:#2563eb;text-decoration:none}a:hover{text-decoration:underline}.shell{width:calc(100% - 60px);max-width:1600px;margin:auto}header{background:#fff;border-bottom:1px solid #e6ebf2;position:sticky;top:0;z-index:5}header .shell{display:flex;align-items:center;gap:28px;min-height:66px}.brand{font-size:18px;font-weight:800;letter-spacing:.02em;color:#172b4d;white-space:nowrap}nav{display:flex;align-items:center;gap:5px;flex-wrap:wrap}nav a,nav .link{display:inline-flex;align-items:center;padding:9px 13px;color:#53627a;border-radius:8px;font-weight:600}nav a:hover,nav .link:hover{background:#eff4fc;color:#1554b8;text-decoration:none}nav a.active{background:#e8f0ff;color:#1854b5}.header-spacer{flex:1}.header-user{font-size:12px;color:#738198}main{padding:30px 0 72px}.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:22px}.eyebrow{font-size:12px;color:#8190a5;letter-spacing:.08em;text-transform:uppercase;font-weight:700;margin-bottom:6px}h1{font-size:26px;line-height:1.2;margin:0}h2{font-size:17px;margin:0 0 18px}h3{font-size:14px;margin:0 0 12px;color:#475569}.muted{color:#76849b}.card{background:#fff;border:1px solid #e2e8f1;border-radius:12px;padding:22px;margin:0 0 20px;box-shadow:0 2px 10px rgba(19,42,80,.035)}.grid,.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(255px,1fr));gap:18px}.stats .card{min-height:130px;display:flex;flex-direction:column;justify-content:space-between;border-top:3px solid #3d78e7}.stats strong{font-size:29px;line-height:1;font-variant-numeric:tabular-nums}.stats span{font-size:13px;color:#718099;font-weight:600}.stats small{font-size:12px;color:#94a2b5}.toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.toolbar label{min-width:150px;flex:1;margin:0}.toolbar button{margin-bottom:1px}.section-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.section-title h2{margin:0}.pill{display:inline-block;border-radius:99px;padding:4px 9px;font-size:12px;font-weight:700;background:#eff2f6;color:#52627b}.pill.ok{background:#e8f8ef;color:#137a46}.pill.warn{background:#fff4e6;color:#a56509}.pill.bad{background:#ffeded;color:#b84242}label{display:block;font-size:13px;font-weight:600;color:#4d5b70;margin:0 0 15px}input,textarea,select{display:block;width:100%;border:1px solid #cbd5e1;border-radius:8px;padding:9px 11px;margin-top:6px;font:inherit;color:#17243a;background:#fff;outline:none}input:focus,textarea:focus,select:focus{border-color:#4983e6;box-shadow:0 0 0 3px #dfeaff}input[type=checkbox]{display:inline-block;width:auto;margin:0 5px 0 0}.check{white-space:nowrap;margin:9px 0 0}button{border:0;background:#2563d9;color:white;border-radius:8px;padding:10px 16px;font:inherit;font-weight:700;cursor:pointer}button:hover{background:#1d55c5}.secondary{background:#edf3fc;color:#28549d}.secondary:hover{background:#dce9fa}.danger{background:#fff0ef;color:#ad3a36}.link{background:transparent;padding:0}.inline{display:inline-block}.notice{padding:14px 17px;border-radius:9px;margin:0 0 20px}.success{background:#e9f7ee;color:#145d38}.error{background:#fff0eb;color:#a32c17}code{font-family:ui-monospace,Consolas,monospace;overflow-wrap:anywhere}.notice code{display:block;margin-top:8px;font-size:1rem}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;min-width:770px}th,td{border-bottom:1px solid #edf1f6;text-align:left;vertical-align:middle;padding:13px 11px}th{color:#77849a;font-size:12px;font-weight:700;background:#f9fbfe;white-space:nowrap}td{font-size:13px}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafcff}td form input[type=number]{min-width:110px}td textarea{min-width:200px}.money{font-variant-numeric:tabular-nums;font-weight:700}.right{text-align:right}.actions{display:flex;gap:7px;flex-wrap:wrap}.actions button{padding:7px 9px;font-size:12px}.empty{padding:28px;text-align:center;color:#92a0b3}.hint{background:#eef4fd;border-left:3px solid #4280e8;padding:14px 16px;color:#49617f;border-radius:0 8px 8px 0}.login-shell{max-width:440px;margin:8vh auto}.login-shell .card{padding:30px}.login-shell .brand{display:block;text-align:center;margin-bottom:30px;font-size:23px}@media(max-width:760px){.shell{width:calc(100% - 28px)}header .shell{align-items:flex-start;flex-direction:column;gap:4px;padding:13px 0}nav{width:100%;overflow:auto;flex-wrap:nowrap}nav a,nav .link{white-space:nowrap;padding:8px}.header-spacer,.header-user{display:none}main{padding-top:22px}h1{font-size:23px}.card{padding:17px}.page-head{align-items:flex-start}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats strong{font-size:23px}}
body.console header{position:fixed;inset:0 auto 0 0;width:226px;border-right:1px solid #e2e8f1;border-bottom:0;box-shadow:2px 0 14px rgba(24,44,80,.025)}
body.console header .shell{width:100%;height:100%;padding:26px 14px;display:flex;align-items:stretch;flex-direction:column;gap:30px}
body.console .brand{display:block;padding:0 12px;font-size:18px;line-height:1.4}
body.console nav{display:flex;align-items:stretch;flex-direction:column;flex-wrap:nowrap;gap:4px}
body.console nav a,body.console nav .link{display:block;width:100%;padding:12px 14px;text-align:left}
body.console nav form{display:block;width:100%;margin-top:12px}
body.console main.shell{max-width:none;width:calc(100% - 226px);margin-left:226px;padding:34px 36px 72px}
body.login main.login-shell{max-width:460px;width:calc(100% - 28px);margin:7vh auto 0;padding:0}
body.login main .card{padding:28px}
@media(max-width:760px){body.console header{position:static;width:auto;border-right:0;border-bottom:1px solid #e2e8f1}body.console header .shell{height:auto;padding:12px 14px;gap:8px}body.console .brand{padding:0}body.console nav{width:100%;flex-direction:row;align-items:center;overflow-x:auto;gap:4px}body.console nav a,body.console nav .link{width:auto;white-space:nowrap;padding:8px 10px}body.console nav form{width:auto;margin:0}body.console main.shell{width:calc(100% - 28px);margin:0 auto;padding:24px 0 60px}}
.order-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px;align-items:end}.order-filters label{margin:0}.order-filter-actions{display:flex;gap:8px;align-items:end}.order-filter-actions button{white-space:nowrap}.order-list>.muted{font-size:12px;margin:18px 0}.order-totals{line-height:1.9;margin:16px 0 20px;font-size:13px}.order-table{min-width:1450px}.order-table th,.order-table td{border:1px solid #e5ebf5}.order-table th{background:#f8fbff}.order-table td{font-size:12px}.order-table details{min-width:130px}.order-table summary{cursor:pointer;color:#2563eb;font-weight:700;white-space:nowrap}.order-detail{max-width:340px;padding:9px 0 2px;line-height:1.6}.order-detail p{margin:5px 0;overflow-wrap:anywhere}.order-detail form{margin-top:12px}.order-detail textarea{min-width:220px}.order-detail button{padding:7px 10px;font-size:12px}.order-pager{display:flex;justify-content:space-between;gap:14px;align-items:center;margin:20px 0 0;color:#718099;font-size:12px}.order-pager a{padding:5px 8px;border:1px solid #d8e2f2;border-radius:5px;margin-right:5px;background:#fff}
pre{max-width:100%;overflow:auto;background:#f6f8fc;border:1px solid #e2e8f1;border-radius:8px;padding:14px 16px;line-height:1.55;font-size:12px}code{overflow-wrap:anywhere}
.product-level{border:1px solid #e2e8f1;border-radius:10px;margin:12px 0;background:#fff}.product-level>summary{cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;list-style:none}.product-level>summary::-webkit-details-marker{display:none}.product-level>summary:before{content:"›";font-size:22px;color:#6e7e95;transition:transform .15s}.product-level[open]>summary:before{transform:rotate(90deg)}.product-level>summary strong{flex:1}.product-children{padding:0 16px 12px 32px}.product-level .table-wrap{border-top:1px solid #edf1f6;padding:0 12px 12px}.product-level table{min-width:900px}
.supplier-controls{display:grid;grid-template-columns:minmax(220px,1fr) minmax(180px,260px) auto;gap:14px;align-items:end;padding:16px;margin:0 0 14px;background:#f5f8fd;border:1px solid #dce6f4;border-radius:9px}.supplier-controls label{margin:0}.supplier-controls button{margin-bottom:1px;white-space:nowrap}@media(max-width:760px){.supplier-controls{grid-template-columns:1fr}.supplier-controls button{width:100%}.product-children{padding-left:10px;padding-right:10px}}
.button-link{display:inline-block;border-radius:8px;padding:10px 16px;font-weight:700;text-decoration:none}.button-link:hover{text-decoration:none}
.type-tools{display:flex;justify-content:flex-end;padding:0 12px 10px}.type-tools form{margin:0}.type-tools button{font-size:12px;padding:8px 11px}
