:root{--ink:#203b43;--muted:#76878b;--green:#246c5d;--pale:#eaf3ef;--line:#dfe7e4;--bg:#f4f6f3}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px -apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC',sans-serif}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:7px;padding:10px 15px;cursor:pointer;transition:.15s}button:hover{border-color:var(--green);background:var(--pale)}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#194e43}button:disabled{opacity:.5;cursor:not-allowed}.danger{color:#a84435}a{color:var(--green)}.shell{display:grid;grid-template-columns:215px 1fr;min-height:100vh}aside{background:#193d39;color:#dbe9e2;padding:33px 22px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{font-size:29px;letter-spacing:5px;font-weight:750;color:#fff}.brand small{display:block;font-size:10px;letter-spacing:2px;font-weight:400;margin-top:8px;color:#a4c4b6}.side-title{font-size:10px;letter-spacing:2px;color:#87ac9b;margin-top:45px;margin-bottom:14px}nav button{display:block;width:100%;text-align:left;color:#dce9e2;border:0;background:none;padding:13px 12px;margin:5px 0}nav button.on,nav button:hover{background:#31584f;color:white}.profile{margin-top:auto;font-size:12px;line-height:2;color:#aac1b7}.profile button{background:transparent;color:#dbe9e2;padding:5px 8px;border-color:#527266;margin-top:10px}main{padding:30px 38px;min-width:0}.topline{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;color:var(--muted);font-size:12px}.dot{display:inline-block;background:#3f9a6d;width:7px;height:7px;border-radius:50%;margin-right:7px}.pagehead{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:25px}h1{font-size:27px;font-weight:650;margin:0 0 8px;letter-spacing:-.6px}h2{font-size:17px;margin:0 0 16px}h3{font-size:14px}.sub{color:var(--muted);line-height:1.7;margin:0}.actions{display:flex;gap:8px;flex-wrap:wrap}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:17px;margin:25px 0}.stat{background:#fff;border:1px solid var(--line);border-radius:10px;padding:22px}.stat b{font-size:30px;display:block;margin-top:13px;font-weight:550}.stat span{font-size:12px;color:var(--muted)}.card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:23px;margin:18px 0}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.search{max-width:330px}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.full{grid-column:1/-1}label{display:block;font-size:12px;color:#607777;line-height:1.6}input,select,textarea{width:100%;padding:10px 11px;border:1px solid #d7e1dc;border-radius:6px;background:#fff;color:#203b43;margin-top:6px;outline:none}input:focus,select:focus,textarea:focus{border-color:#428d75;box-shadow:0 0 0 3px #eaf3ef}textarea{min-height:78px;resize:vertical}input[type=checkbox]{width:auto;margin:0 8px 0 0}table{border-collapse:collapse;width:100%;font-size:12px}th{font-weight:500;text-align:left;color:#6c807c;background:#f8faf8;padding:13px 10px;white-space:nowrap}td{border-bottom:1px solid #ecf0ed;padding:14px 10px;vertical-align:top}td small{display:block;color:var(--muted);margin-top:5px}td button{padding:6px 10px;font-size:12px}.scroll{overflow:auto}table input,table select{min-width:85px;margin:0;padding:8px}table textarea{min-width:180px;margin:0;min-height:58px}.badge{font-size:11px;background:#edf4ef;color:#39745c;padding:4px 9px;border-radius:20px;display:inline-block;white-space:nowrap}.empty{text-align:center;padding:55px 20px;color:var(--muted)}.empty strong{display:block;color:var(--ink);font-size:18px;font-weight:500;margin-bottom:10px}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin:25px 0 20px;overflow:auto}.tabs button{background:transparent;border:0;border-bottom:3px solid transparent;border-radius:0;padding:13px 20px;white-space:nowrap}.tabs button.on{border-color:var(--green);color:var(--green);font-weight:600}.note{background:#f0f6f2;border:1px solid #dce9de;color:#577265;border-radius:6px;padding:13px 16px;font-size:12px;line-height:1.8}.warning{background:#fff7e9;border-color:#efdfbc;color:#866424}.box{border:1px solid var(--line);border-radius:8px;padding:18px;margin:15px 0}.box-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.docgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.doccard{border:1px solid var(--line);border-radius:9px;padding:22px 14px;background:#fff}.doccard b{display:block;font-size:21px;margin:10px 0}.doccard p{color:var(--muted);font-size:12px;line-height:1.8;min-height:44px}.doccard button{width:100%;font-size:12px}.bottom{display:flex;justify-content:flex-end;margin-top:20px;gap:10px}.login{max-width:440px;margin:9vh auto;background:white;padding:36px;border-radius:15px;border:1px solid var(--line);box-shadow:0 20px 70px #153d3910}.login .brand{color:var(--green);margin-bottom:35px}.login label{margin:15px 0}.login button{width:100%;margin-top:16px}.login h1{font-size:23px}.error{color:#a43f32;line-height:1.7;font-size:13px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#173c35;color:white;padding:14px 22px;border-radius:8px;box-shadow:0 5px 30px #0002;z-index:100;display:none;max-width:90%;white-space:pre-wrap}.loading{padding:60px;text-align:center;color:var(--green)}.qty{font-variant-numeric:tabular-nums}.mini{font-size:11px;color:var(--muted)}.check{padding:15px 0;display:flex;align-items:center}dialog{border:1px solid var(--line);border-radius:12px;padding:26px;width:min(650px,94vw);max-height:90vh;overflow:auto}dialog::backdrop{background:#102b2c66}.sticky{position:sticky;bottom:0;background:#f4f6f3e8;padding:15px 0;backdrop-filter:blur(10px)}@media(max-width:1050px){main{padding:25px}.shell{grid-template-columns:175px 1fr}aside{padding:28px 15px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.docgrid{grid-template-columns:repeat(3,1fr)}}@media(max-width:700px){.shell{display:block}aside{position:static;height:auto;padding:18px}.brand{font-size:23px}.brand small,.side-title,.profile{display:none}nav{display:flex;overflow:auto;margin-top:14px}nav button{width:auto;white-space:nowrap;margin:0;padding:10px}.topline{margin-bottom:20px}main{padding:20px 15px}.pagehead{align-items:flex-start;flex-direction:column}.stats{gap:8px}.stat{padding:15px 10px}.stat b{font-size:23px}.grid,.grid.two{grid-template-columns:1fr}.docgrid{grid-template-columns:repeat(2,1fr)}.card{padding:17px}.login{margin:30px 15px}.toolbar{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.profile{display:block;margin-top:12px;font-size:11px;line-height:1.6}.profile br{display:none}.profile button{margin:0 0 0 10px;font-size:11px}.profile{color:#aac1b7}}

.order-products .toolbar{margin-bottom:12px;align-items:center}.order-products h2{margin:0;white-space:nowrap}.product-tools{display:grid;grid-template-columns:minmax(180px,1fr) minmax(200px,1.2fr) auto;align-items:center;flex:1;max-width:800px}.product-tools input,.product-tools select{max-width:none!important;height:40px}.product-tools button{white-space:nowrap;height:40px}.order-products>.mini{margin:12px 0 18px;line-height:1.6}.product-lines{min-width:930px;table-layout:fixed}.product-lines th:nth-child(1){width:12%}.product-lines th:nth-child(2){width:19%}.product-lines th:nth-child(3){width:12%}.product-lines th:nth-child(4){width:6%}.product-lines th:nth-child(5){width:10%}.product-lines th:nth-child(6){width:9%}.product-lines th:nth-child(7){width:7%}.product-lines th:nth-child(8){width:13%}.product-lines th:nth-child(9){width:12%}.product-lines th{padding:12px 8px;font-size:12px}.product-lines td{padding:12px 8px;vertical-align:top}.product-lines input,.product-lines select,.product-lines textarea{margin:0;width:100%;min-width:0;height:40px;min-height:40px;padding:9px 8px;line-height:20px}.product-lines td:last-child{white-space:nowrap}.product-lines td button{height:40px;padding:8px}.product-lines tbody tr:focus-within{background:#f5faf7}.legacy-spec{margin-top:8px;font-size:11px;color:var(--muted)}.legacy-spec textarea{margin-top:6px;height:65px}.order-charges{grid-template-columns:repeat(3,minmax(0,220px));justify-content:end;margin-top:22px;gap:14px}.order-total{margin-top:16px;text-align:right}.order-total #calculated{font-size:16px;font-weight:600}.order-products .scroll{border:1px solid var(--line);border-radius:8px}@media(max-width:1100px){.order-products .toolbar{align-items:stretch;flex-direction:column}.product-tools{max-width:none;width:100%}}@media(max-width:700px){.product-tools{grid-template-columns:1fr auto}.product-tools input{grid-column:1/-1}.order-charges{grid-template-columns:1fr}.order-total{text-align:left}}

.product-lines [data-key=pressure]:not([hidden]){margin-top:6px}.product-lines [hidden]{display:none}
