:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1d231d;background:#eef0eb;font-synthesis:none;--ink:#1d231d;--muted:#6c746b;--line:#dfe3da;--paper:#f9faf7;--white:#fff;--dark:#182017;--dark2:#222b20;--accent:#b8924a;--accent2:#d9c18d;--red:#b9423f;--green:#357452;--amber:#9a6a1d}*{box-sizing:border-box}body{margin:0;min-width:0;background:#eef0eb}button,input,select,textarea{font:inherit}.app-shell{display:flex;min-height:100vh}.sidebar{width:238px;position:fixed;inset:0 auto 0 0;background:linear-gradient(180deg,#172016,#20291e);color:#f3f1e9;padding:22px 14px;display:flex;flex-direction:column;z-index:20;box-shadow:8px 0 30px #18201714}.brand{display:flex;gap:11px;align-items:center;padding:0 8px 22px;border-bottom:1px solid rgba(255,255,255,.09)}.brand-mark{height:40px;width:40px;border:1px solid rgba(217,193,141,.65);display:grid;place-items:center;font-family:Georgia,serif;font-size:23px;color:var(--accent2);background:#ffffff08}.brand strong{font-size:13px;letter-spacing:2.2px;display:block}.brand span{display:block;font-size:10px;color:#aeb6a9;margin-top:3px;letter-spacing:.4px}.rail-label{font-size:9px;letter-spacing:1.7px;color:#71806e;padding:23px 11px 9px}.nav-item{display:flex;align-items:center;gap:10px;color:#bfc7ba;text-decoration:none;padding:10px;margin:3px 0;border-radius:6px;font-size:13px;transition:.15s;position:relative}.nav-item:hover{background:#ffffff0b;color:#fff}.nav-item.active{background:#2c3729;color:#fff;box-shadow:inset 2px 0 0 var(--accent)}.nav-item.active svg:first-child{color:var(--accent2)}.nav-arrow{margin-left:auto;opacity:.2}.sidebar-foot{margin-top:auto;border-top:1px solid rgba(255,255,255,.08);padding:16px 10px 0;display:flex;flex-direction:column}.sidebar-foot span{font-size:11px;color:#d9ded5}.sidebar-foot small{font-size:9px;color:#73806f;margin-top:2px}.mini-grid{height:34px;margin-bottom:10px;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:8px 8px}.workspace{margin-left:238px;min-height:100vh;width:calc(100% - 238px)}.page-header{height:126px;background:#f7f8f4;border-bottom:1px solid var(--line);padding:26px 32px 22px;display:flex;align-items:flex-end;justify-content:space-between;position:relative}.page-header:after{content:"";position:absolute;right:0;bottom:0;width:230px;height:56px;background-image:linear-gradient(135deg,transparent 49%,rgba(184,146,74,.12) 50%,transparent 51%);background-size:14px 14px;pointer-events:none}.eyebrow{font-size:9px;letter-spacing:1.6px;color:#8b9387;font-weight:700;text-transform:uppercase}.page-header h1{font-size:27px;line-height:1.1;margin:6px 0 4px;letter-spacing:-.5px}.page-header p{margin:0;color:var(--muted);font-size:12px}.header-actions{display:flex;gap:8px;z-index:1}.content{padding:22px 28px 48px}.btn{border:1px solid transparent;border-radius:5px;min-height:34px;padding:7px 12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:700;letter-spacing:.2px;cursor:pointer;background:var(--dark);color:#fff}.btn:hover{filter:brightness(1.06)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.secondary{background:#fff;color:#293128;border-color:#d5d9d0}.btn.table{min-height:28px;padding:5px 8px;background:#f0f2ed;color:#263025;border-color:#d9ded4;font-size:10px}.icon-btn{height:29px;width:29px;border:1px solid #d9ddd4;background:#fff;border-radius:4px;display:inline-grid;place-items:center;color:#50594f;cursor:pointer}.icon-btn:hover{background:#f1f3ee}.icon-btn.danger:hover{color:var(--red);border-color:#e0bbb9;background:#fff7f7}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:13px}.searchbox{height:36px;min-width:320px;max-width:480px;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #d8ddd3;border-radius:5px;padding:0 10px;color:#8d9589}.searchbox input{border:0;outline:0;flex:1;font-size:12px;background:transparent}.panel{background:#fff;border:1px solid var(--line);border-radius:6px;margin-bottom:16px;box-shadow:0 5px 18px #21291e08;overflow:hidden}.panel-head{height:49px;border-bottom:1px solid #e6e9e2;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;background:#fcfcfa}.panel-head h3{margin:0;font-size:12px;letter-spacing:.15px}.panel-head span{font-size:10px;color:#8b9388}.table-wrap{overflow:auto;max-width:100%}table{width:100%;border-collapse:separate;border-spacing:0;font-size:11px}thead th{position:sticky;top:0;z-index:2;background:#f2f4ef;color:#6f776d;font-size:9px;text-transform:uppercase;letter-spacing:.55px;text-align:left;border-bottom:1px solid #dce1d7;padding:9px 10px;white-space:nowrap}tbody td,tfoot td{border-bottom:1px solid #edf0ea;padding:9px 10px;vertical-align:middle}tbody tr:hover{background:#fafbf8}tbody tr:last-child td{border-bottom:0}tfoot td{background:#f6f7f3}.num{text-align:right}.actions{text-align:right;white-space:nowrap}.actions>*{margin-left:4px}.cell-note{display:block;color:#8b9189;margin-top:2px;font-size:9px}.code-chip{display:inline-block;min-width:46px;text-align:center;padding:3px 6px;background:#282f27;color:#e8dfcb;border-radius:3px;font-size:10px;font-weight:800;letter-spacing:.5px}.badge{display:inline-flex;align-items:center;border:1px solid #d8ddd3;background:#f2f4ef;color:#5e675d;border-radius:20px;padding:3px 7px;font-size:8.5px;font-weight:800;letter-spacing:.55px;white-space:nowrap}.badge.good{background:#edf6ef;border-color:#cde4d4;color:#2f6a48}.badge.warning{background:#fff5e6;border-color:#ecd5a8;color:#8a5d17}.badge.danger{background:#fff0ef;border-color:#edc4c1;color:#a33a37}.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px}.stat-card{height:118px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:17px;position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;right:-18px;bottom:-25px;width:95px;height:95px;border:14px solid #f0f2ed;transform:rotate(18deg)}.stat-card>svg{position:absolute;right:17px;top:18px;color:#a5aea1}.stat-card>span{font-size:9px;letter-spacing:1px;color:#858e82;font-weight:800}.stat-card strong{display:block;font-size:31px;margin-top:9px}.stat-card small{color:#7d857a;font-size:10px}.stat-card.warning{border-top:2px solid #a97420}.stat-card.accent{border-top:2px solid var(--accent)}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}.empty{text-align:center;padding:28px;color:#98a094}.empty p{font-size:11px;margin:7px 0}.errorbar,.warning-callout{display:flex;gap:9px;align-items:center;background:#fff2f1;border:1px solid #efc9c6;color:#9b3b38;padding:9px 11px;border-radius:5px;font-size:11px;margin-bottom:12px}.errorbar button{margin-left:auto;border:0;background:transparent;color:inherit;cursor:pointer}.warning-callout{margin:14px;background:#fff8eb;color:#815a1f;border-color:#ead5aa}.warning-callout div{display:flex;flex-direction:column}.warning-callout span{font-size:10px;margin-top:2px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f140f8f;display:grid;place-items:center;z-index:100;padding:28px}.modal{width:580px;max-height:92vh;overflow:auto;background:#fdfdfa;border-radius:8px;border:1px solid #d8ddd3;box-shadow:0 28px 80px #0000003d;padding:18px}.modal.wide{width:min(1080px,92vw)}.modal-head{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e5e8e1;padding-bottom:12px;margin-bottom:15px}.modal-head h2{font-size:17px;margin:4px 0 0}.field{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}.field>span{font-size:9px;text-transform:uppercase;letter-spacing:.55px;font-weight:800;color:#697268}.field input,.field select,.field textarea,.ingredient-editor select,.ingredient-editor input{width:100%;border:1px solid #d7dcd2;border-radius:4px;background:#fff;min-height:34px;padding:7px 9px;outline:none;font-size:11px;color:#242b23}.field textarea{resize:vertical}.field input:focus,.field select:focus,.field textarea:focus,.ingredient-editor select:focus,.ingredient-editor input:focus{border-color:#9caa95;box-shadow:0 0 0 2px #5b705214}.form-grid{display:grid;gap:0 12px}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid.three{grid-template-columns:repeat(3,1fr)}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:12px;margin-top:5px;border-top:1px solid #e6e9e2}.formula-hero{display:flex;gap:1px;background:#dfe3da;border:1px solid #dfe3da;border-radius:6px;overflow:hidden;margin-bottom:16px}.formula-hero>div{background:#fbfcf9;padding:13px 16px;flex:1}.formula-hero span{display:block;font-size:8px;letter-spacing:.7px;font-weight:800;color:#818a7e;margin-bottom:5px}.formula-hero strong{font-size:14px}.panel-footer{display:flex;justify-content:flex-end;padding:10px;border-top:1px solid #e7eae4}.cost-strip{display:flex;gap:1px;background:#dfe3da;border-top:1px solid #dfe3da}.cost-strip>div{background:#f8f9f5;padding:12px 15px;flex:1}.cost-strip span{display:block;font-size:8px;color:#7e877c;letter-spacing:.55px;font-weight:800}.cost-strip strong{font-size:14px;display:block;margin-top:3px}.cost-strip>.btn{margin:12px}.ingredient-editor{border:1px solid #dfe3da;border-radius:5px;margin:4px 0 14px;overflow:hidden}.ingredient-head{height:44px;background:#f4f6f1;display:flex;align-items:center;justify-content:space-between;padding:8px 10px;border-bottom:1px solid #dfe3da}.ingredient-head h3{font-size:11px;margin:0}.ingredient-editor td select{min-width:240px}.pct-input{width:100px!important;text-align:right}.total-box{border:1px solid #ddd;padding:9px 11px;border-radius:5px;height:69px}.total-box span{font-size:8px;display:block;font-weight:800;letter-spacing:.6px}.total-box strong{font-size:20px;display:block}.total-box small{font-size:9px}.total-box.ok{border-color:#bdd9c6;background:#f1f8f3;color:#326a49}.total-box.bad{border-color:#ebc2bf;background:#fff5f4;color:#9e423e}.calculation-box{padding:13px;border:1px dashed #cbd2c6;background:#f7f8f4;border-radius:5px;margin-bottom:12px}.calculation-box span{font-size:9px;font-weight:800;letter-spacing:.6px;color:#7a8277}.calculation-box strong{font-size:28px;display:block}.calculation-box small{color:#879083;font-size:9px}.big-number{font-size:13px}.row-danger{background:#fff3f2!important}.red{color:var(--red)}.batch-print-row{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:12px 0}.batch-print-row>span{font-size:10px;font-weight:800;margin-right:5px}.batch-print-row button{border:1px solid #d8ddd3;background:#fff;border-radius:4px;padding:5px 8px;font-size:9px;cursor:pointer}.batch-print-row button:hover{background:#f0f2ed}.clickable{cursor:pointer}@media (max-width:1300px){.sidebar{width:210px}.workspace{margin-left:210px;width:calc(100% - 210px)}.content{padding:20px}.page-header{padding-left:24px}.two-col{grid-template-columns:1fr}}@media print{.sidebar,.page-header,.toolbar,.btn,.icon-btn{display:none!important}.workspace{margin:0;width:100%}.content{padding:0}.panel{box-shadow:none;border:0}body{background:#fff;min-width:0}}.batch-entry-section{margin-top:16px;border:1px solid #dfe3da;border-radius:6px;overflow:hidden;background:#fff}.batch-entry-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 14px;background:#f5f7f2;border-bottom:1px solid #dfe3da}.batch-entry-head>div:first-child{display:flex;flex-direction:column;gap:3px}.batch-entry-head span{font-size:8px;letter-spacing:.8px;font-weight:800;color:#7e877b}.batch-entry-head strong{font-size:14px}.batch-entry-head small{font-size:10px;color:#7d857b}.batch-progress{min-width:110px;text-align:center;border-left:1px solid #dce1d7;padding-left:18px}.batch-progress b{display:block;font-size:22px}.batch-progress span{display:block;font-size:8px}.batch-date-input{height:28px;border:1px solid #d7dcd2;border-radius:4px;padding:4px 7px;font-size:10px;background:#fff;color:#242b23}.batch-entry-section .badge{min-width:66px;justify-content:center}.info-strip,.warning-strip{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-radius:8px;margin:0 0 14px;font-size:12px;line-height:1.45}.info-strip{background:#eef6ff;border:1px solid #cfe3fb;color:#24415f}.warning-strip{background:#fff7e8;border:1px solid #f0d39c;color:#6e4d12}.info-strip svg,.warning-strip svg{flex:0 0 auto;margin-top:1px}.formula-library-row td{padding-top:12px;padding-bottom:12px}.formula-library-row:hover{background:#f8faf6}.formula-name-cell{display:flex;align-items:center;gap:10px}.formula-name-cell small{display:block;color:#8b9189;font-size:9px;margin-top:2px}.formula-mini-icon{height:32px;width:32px;border:1px solid #d9ded4;border-radius:7px;background:#f3f5f0;display:grid;place-items:center;color:#667060}.approved-link{font-weight:800;color:#356447;background:#edf6ef;border:1px solid #cde4d4;padding:3px 7px;border-radius:14px;font-size:9px}.trial-workspace-banner{display:grid;grid-template-columns:2fr 1fr 1.2fr 1fr;border:1px solid #dfe3da;border-radius:8px;overflow:hidden;margin-bottom:16px;background:#dfe3da;gap:1px}.trial-workspace-banner>div{background:linear-gradient(180deg,#fff,#f8f9f6);padding:14px 16px;min-height:76px}.trial-workspace-banner span,.trial-record-head span,.trial-record-notes span{display:block;font-size:8px;letter-spacing:.8px;font-weight:800;color:#7d867a;text-transform:uppercase;margin-bottom:5px}.trial-workspace-banner strong{font-size:15px;display:block}.trial-workspace-banner small{display:block;color:#8b9388;font-size:9px;margin-top:4px}.trial-help-strip{display:flex;align-items:center;gap:10px;margin:12px 14px;padding:10px 12px;border:1px solid #dfdfc7;background:#fbfaef;border-radius:6px;color:#5f5a39}.trial-help-strip div{display:flex;flex-direction:column;gap:2px}.trial-help-strip b{font-size:10px}.trial-help-strip span{font-size:9px;color:#80785a}.trial-register td{padding-top:11px;padding-bottom:11px}.trial-number{display:flex;align-items:center;gap:8px}.trial-number>span{height:28px;width:28px;border-radius:50%;display:grid;place-items:center;background:#222b20;color:#e6d7b3;font-size:10px;font-weight:900}.trial-number small{display:block;color:#8b9189;font-size:8px;margin-top:2px}.trial-text-preview{display:block;max-width:210px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#586057}.trial-actions .btn.table{margin-top:2px;margin-bottom:2px}.approved-trial-row{background:#f3faf5!important;box-shadow:inset 3px 0 #4a8a63}.approved-trial-row:hover{background:#eef8f1!important}.trial-record-head{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#dfe3da;border:1px solid #dfe3da;border-radius:7px;overflow:hidden;margin-bottom:12px}.trial-record-head>div{background:#f9faf7;padding:11px 12px}.trial-record-head strong{font-size:13px}.record-action-bar{display:flex;gap:8px;justify-content:flex-end;margin-bottom:12px}.trial-record-notes{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.trial-record-notes>div{border:1px solid #dfe3da;border-radius:7px;background:#fafbf8;padding:11px;min-height:95px}.trial-record-notes p{font-size:11px;line-height:1.55;margin:0;white-space:pre-wrap}.produced-stats .stat-card strong{font-size:26px}.stock-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#dfe3da;border:1px solid #dfe3da;border-radius:7px;overflow:hidden;margin:2px 0 14px}.stock-preview>div{background:#f7faf5;padding:12px 14px}.stock-preview span{display:block;font-size:8px;letter-spacing:.75px;color:#7b8578;font-weight:800;margin-bottom:4px}.stock-preview strong{display:block;font-size:17px}.stock-preview.danger{background:#e7c0bd;border-color:#e7c0bd}.stock-preview.danger>div{background:#fff4f3}.stock-preview.danger>div:last-child strong{color:var(--red)}.part-card,.part-editor{border:1px solid #dfe3da;border-radius:8px;margin:12px;overflow:hidden;background:#fff}.part-card-head,.part-editor-title{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;background:#f5f7f2;border-bottom:1px solid #dfe3da}.part-card-head>div,.part-editor-title>div{display:flex;flex-direction:column;gap:2px}.part-card-head small,.part-editor-title small{color:#858e82;font-size:9px}.part-card-head span,.part-editor-title span,.component-cost span,.component-requirement-grid span,.ratio-builder span{font-size:8px;letter-spacing:.7px;color:#7b8478;font-weight:800}.part-editor table{margin:0}.part-editor>.btn{margin:10px}.direct-material-box{display:flex;align-items:center;gap:14px;padding:18px;background:#fafbf8}.ratio-builder{display:grid;grid-template-columns:1fr 60px 1fr 1.2fr 1.4fr;gap:10px;align-items:center;border:1px solid #d7dfcf;background:#f6f9f2;border-radius:8px;padding:12px;margin:14px 0}.ratio-builder>div{display:flex;flex-direction:column}.ratio-builder>div:nth-child(2){text-align:center}.ratio-builder strong{font-size:18px}.cost-component-grid,.component-requirement-grid,.component-dispatch-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;padding:12px}.component-cost,.component-requirement-grid>div,.component-dispatch-preview>div{border:1px solid #dde2d8;border-radius:7px;background:#fafbf8;padding:11px 12px}.component-cost strong,.component-requirement-grid strong,.component-dispatch-preview strong{display:block;font-size:16px;margin:4px 0}.component-cost small,.component-requirement-grid small,.component-dispatch-preview small{display:block;color:#80887c;font-size:9px}.component-dispatch-preview{grid-template-columns:repeat(2,1fr);margin:0 0 14px;padding:0}.component-dispatch-preview.danger>div{background:#fff4f3;border-color:#e6c0bd}.component-stock-list{display:flex;gap:8px;flex-wrap:wrap}.component-stock-list>div{min-width:150px;border:1px solid #dfe3da;border-radius:6px;padding:7px 9px;background:#fafbf8}.component-stock-list span,.component-stock-list strong{display:block;font-size:9px;margin-top:2px}.component-stock-list strong{font-size:11px;color:#2f6a48}.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border-top:1px solid var(--line,#dde3da);background:#fafbf8;font-size:12px;color:#657064}.pagination-size,.pagination-info{display:flex;align-items:center;gap:8px}.pagination-size span{font-weight:600;white-space:nowrap}.pagination-size select{height:30px;min-width:62px;border:1px solid #d5dbd1;border-radius:7px;background:#fff;padding:0 8px;font:inherit}.pagination-info button{width:30px;height:30px;border:1px solid #d5dbd1;border-radius:7px;background:#fff;cursor:pointer;font-size:16px;line-height:1}.pagination-info button:hover:not(:disabled){background:#eef2ea}.pagination-info button:disabled{opacity:.38;cursor:not-allowed}.pagination-info b{min-width:56px;text-align:center;color:#283126}@media (max-width:1100px){.pagination-bar{align-items:flex-start;flex-direction:column}}body:has(.login-shell){min-width:0}.login-loading{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#182117;color:#c5cec0;font-size:11px;letter-spacing:.4px}.login-loading .brand-mark{height:48px;width:48px;font-size:27px;margin-bottom:8px}.login-loading>svg{color:#d6bd84}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(420px,1.08fr) minmax(420px,.92fr);background:#f5f6f1;color:#20271f}.login-intro{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:42px clamp(42px,6vw,90px);color:#f6f5ee;background:linear-gradient(145deg,#131b13,#202b1e 58%,#33402f)}.login-intro:before{content:"";position:absolute;top:0;right:0;bottom:0;left:0;opacity:.13;background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px);background-size:44px 44px;-webkit-mask-image:linear-gradient(to bottom right,transparent 5%,#000 90%);mask-image:linear-gradient(to bottom right,transparent 5%,#000 90%)}.login-intro:after{content:"";position:absolute;width:380px;height:380px;right:-180px;bottom:-170px;border:1px solid rgba(218,193,139,.26);border-radius:50%;box-shadow:0 0 0 58px #dac18b09,0 0 0 116px #dac18b06}.login-brand,.login-mobile-brand{position:relative;z-index:1;display:flex;align-items:center;gap:12px}.login-brand .brand-mark{height:46px;width:46px;font-size:26px}.login-brand strong{display:block;font-size:14px;letter-spacing:2.6px}.login-brand span{display:block;color:#aeb7a9;font-size:10px;margin-top:4px;letter-spacing:.5px}.login-message{position:relative;z-index:1;margin:auto 0;max-width:620px}.login-eyebrow,.login-kicker{color:#d6bd84;font-size:10px;font-weight:800;letter-spacing:2px}.login-message h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(40px,4.2vw,64px);line-height:1.08;letter-spacing:-1.8px;margin:20px 0}.login-message p{max-width:520px;color:#bdc5b8;font-size:14px;line-height:1.8;margin:0}.login-trust{position:relative;z-index:1;display:flex;align-items:center;gap:12px;color:#d6bd84}.login-trust span{display:flex;flex-direction:column}.login-trust b{color:#e7e7df;font-size:11px;letter-spacing:.3px}.login-trust small{color:#99a494;font-size:9px;margin-top:3px}.login-panel{display:grid;place-items:center;padding:48px clamp(28px,6vw,82px)}.login-box{width:min(100%,420px)}.login-mobile-brand{display:none}.login-box h2{font-size:30px;letter-spacing:-.7px;margin:10px 0 8px}.login-subtitle{font-size:12px;line-height:1.6;color:#778074;margin:0 0 30px}.login-box .errorbar{margin-bottom:18px;padding:11px 12px;line-height:1.4}.login-field{margin-bottom:17px}.login-field>span{font-size:10px;color:#596257;margin-bottom:2px}.login-input{height:46px;display:flex;align-items:center;gap:10px;border:1px solid #ced5ca;border-radius:7px;background:#fff;padding:0 13px;color:#879083;transition:.18s}.login-input:focus-within{border-color:#6f8068;box-shadow:0 0 0 3px #536a4b1a;color:#4e6148}.login-input input{height:100%;min-width:0;flex:1;border:0!important;box-shadow:none!important;padding:0!important;font-size:13px!important;background:transparent!important}.login-input input::placeholder{color:#a3aaa0}.password-toggle{border:0;background:transparent;color:#7d8779;display:grid;place-items:center;padding:5px;cursor:pointer;border-radius:4px}.password-toggle:hover{background:#f0f3ed;color:#384435}.login-submit{width:100%;height:46px;margin-top:5px;border:0;border-radius:7px;background:#202a1e;color:#fff;display:flex;align-items:center;justify-content:center;gap:9px;font-size:12px;font-weight:800;letter-spacing:.3px;cursor:pointer;box-shadow:0 8px 20px #1e281c24;transition:.18s}.login-submit:hover:not(:disabled){background:#2c3929;transform:translateY(-1px)}.login-submit:disabled{opacity:.58;cursor:not-allowed;box-shadow:none}.login-help{text-align:center;color:#8b9388;font-size:10px;line-height:1.5;margin:24px 0 0}.spin{animation:login-spin .8s linear infinite}@keyframes login-spin{to{transform:rotate(360deg)}}@media (max-width:860px){.login-shell{grid-template-columns:minmax(0,1fr);background:linear-gradient(160deg,#182117 0,#2d392a 38%,#f5f6f1 38%)}.login-intro{display:none}.login-panel{grid-template-columns:minmax(0,1fr);min-width:0;width:100%;padding:28px 20px;overflow:hidden}.login-box{justify-self:start;width:calc(100vw - 40px);max-width:420px;min-width:0;background:#fbfcf8;border:1px solid #dde2d8;border-radius:12px;padding:30px 26px;box-shadow:0 24px 65px #141c1333}.login-mobile-brand{display:flex;margin-bottom:34px}.login-mobile-brand .brand-mark{background:#202a1e}.login-mobile-brand strong{font-size:12px;letter-spacing:2px}.login-box h2{font-size:25px}}.module-chips{display:flex;flex-wrap:wrap;gap:4px;max-width:520px}.module-chips span{border:1px solid #d9dfd4;background:#f4f6f1;border-radius:12px;padding:3px 7px;font-size:8px;font-weight:700;color:#596456}.module-chips small{color:#9a625f}.user-password{max-width:480px}.access-section{border:1px solid #dde2d8;border-radius:8px;background:#fafbf8;padding:14px;margin:4px 0 15px}.access-section h3{font-size:13px;margin:4px 0 13px}.access-section .info-strip{margin-bottom:0}.module-access-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.module-option{min-height:48px;display:flex;align-items:center;gap:8px;border:1px solid #d9ded4;border-radius:6px;padding:9px 10px;background:#fff;color:#697268;cursor:pointer;transition:.15s}.module-option:hover{border-color:#aebba8}.module-option input{position:absolute;opacity:0;pointer-events:none}.module-option span{font-size:10px;font-weight:700}.module-option>svg:last-child{margin-left:auto;opacity:0}.module-option.selected{border-color:#94a78d;background:#f0f6ed;color:#33482f;box-shadow:inset 3px 0 #647e5b}.module-option.selected>svg:last-child{opacity:1;color:#4e7148}@media (max-width:760px){.module-access-grid{grid-template-columns:1fr 1fr}}.mobile-menu-btn,.sidebar-overlay{display:none}.global-logout-btn{position:fixed;top:14px;right:18px;z-index:18;display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 11px;border:1px solid #d4d9d0;border-radius:6px;background:#fff;color:#374035;font-size:10px;font-weight:800;letter-spacing:.25px;cursor:pointer;box-shadow:0 4px 14px #1e281c14}.global-logout-btn:hover{color:#9b3b38;border-color:#dfbbb8;background:#fff8f7}@media (max-width:1100px){body{min-width:0;overflow-x:hidden}.app-shell{display:block}.workspace{margin-left:0;width:100%;min-width:0}.sidebar{width:min(280px,86vw);transform:translate(-105%);transition:transform .22s ease;z-index:60;box-shadow:14px 0 40px #0c120b47}.sidebar.open{transform:translate(0)}.sidebar-overlay{display:block;position:fixed;top:0;right:0;bottom:0;left:0;border:0;background:#0d120d80;z-index:50}.mobile-menu-btn{display:grid;place-items:center;position:fixed;top:14px;left:14px;width:38px;height:38px;border:1px solid #d1d7cd;border-radius:7px;background:#fff;color:#283126;z-index:40;box-shadow:0 5px 16px #1e281c24;cursor:pointer}.global-logout-btn{top:14px;right:14px;z-index:40;height:38px}.page-header{height:auto;min-height:128px;padding:64px 16px 17px;align-items:flex-start;flex-direction:column;gap:14px}.page-header:after{width:120px}.page-header h1{font-size:23px}.page-header p{line-height:1.5}.header-actions{width:100%;flex-wrap:wrap}.header-actions .btn{flex:1}.content{padding:13px 12px 38px}.toolbar{align-items:stretch;flex-direction:column}.searchbox{width:100%;min-width:0;max-width:none}.toolbar>.btn{width:100%}.stat-grid,.two-col{grid-template-columns:1fr}.stat-card{height:105px}.panel{border-radius:7px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.table-wrap table{min-width:700px}.panel-head{height:auto;min-height:49px}.form-grid.two,.form-grid.three{grid-template-columns:1fr}.modal-backdrop{padding:0;place-items:end center}.modal,.modal.wide{width:100%;max-width:none;max-height:94vh;border-radius:12px 12px 0 0;padding:15px}.modal-actions{position:sticky;bottom:-15px;background:#fdfdfa;padding:12px 0 15px;z-index:5}.modal-actions .btn{flex:1}.formula-hero{display:grid;grid-template-columns:1fr 1fr}.trial-workspace-banner,.trial-record-head{grid-template-columns:1fr 1fr}.trial-record-notes{grid-template-columns:1fr}.record-action-bar{justify-content:flex-start;flex-wrap:wrap}.ratio-builder{grid-template-columns:1fr}.ratio-builder>div:nth-child(2){display:none}.cost-component-grid,.component-requirement-grid{grid-template-columns:1fr 1fr}.component-dispatch-preview{grid-template-columns:1fr}.cost-strip{flex-wrap:wrap}.cost-strip>div{flex:1 1 45%}.cost-strip>.btn{width:calc(100% - 24px)}.part-card,.part-editor{margin:9px}.part-card-head,.part-editor-title,.direct-material-box,.batch-entry-head{align-items:flex-start;flex-direction:column}.batch-progress{border-left:0;border-top:1px solid #dce1d7;padding:9px 0 0;width:100%}.ingredient-editor{overflow-x:auto}.ingredient-editor table{min-width:650px}.module-access-grid{grid-template-columns:1fr 1fr}.access-section{padding:11px}.pagination-info{max-width:100%;flex-wrap:wrap}.pagination-bar{padding:10px}}@media (max-width:520px){.module-access-grid,.cost-component-grid,.component-requirement-grid,.trial-workspace-banner,.trial-record-head,.formula-hero{grid-template-columns:1fr}.cost-strip>div{flex-basis:100%}.login-box{padding:26px 20px}.page-header h1{font-size:21px}.modal-actions{flex-wrap:wrap}.modal-actions .btn{flex-basis:45%}}.field-help{font-size:9px;color:#7d8779;line-height:1.4}.field .auto-number-input{font-family:Consolas,Courier New,monospace;font-weight:800;letter-spacing:.45px;border-color:#b9c6b3;background:linear-gradient(90deg,#f5f8f2,#fff)}.stock-filter-panel{background:#fff;border:1px solid var(--line);border-radius:7px;padding:14px 15px;margin-bottom:16px;box-shadow:0 5px 18px #21291e08}.stock-filter-title{display:flex;align-items:center;gap:9px;margin-bottom:12px;color:#596356}.stock-filter-title>div{display:flex;flex-direction:column}.stock-filter-title b{font-size:12px}.stock-filter-title span{font-size:9px;color:#8a9287;margin-top:2px}.stock-filter-grid{display:grid;grid-template-columns:minmax(230px,1.6fr) repeat(5,minmax(120px,1fr)) auto;gap:10px;align-items:end}.stock-filter-grid .searchbox{min-width:0;max-width:none;margin-bottom:12px}.stock-filter-grid .field{margin-bottom:12px}.stock-filter-grid>.btn{margin-bottom:12px;white-space:nowrap}@media (max-width:1180px){.stock-filter-grid{grid-template-columns:repeat(3,1fr)}.stock-filter-grid .searchbox{grid-column:span 2}}@media (max-width:760px){.stock-filter-grid{grid-template-columns:1fr}.stock-filter-grid .searchbox{grid-column:auto}}:root{--shadow-sm:0 3px 12px rgba(27,37,25,.055);--shadow-md:0 12px 32px rgba(25,34,23,.09);--shadow-lg:0 28px 80px rgba(14,21,13,.24);--ease-premium:cubic-bezier(.22,1,.36,1)}body{background-color:#edf0e9;background-image:radial-gradient(circle at 88% 4%,rgba(184,146,74,.1),transparent 24rem),linear-gradient(rgba(32,43,30,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(32,43,30,.025) 1px,transparent 1px);background-size:auto,32px 32px,32px 32px;background-attachment:fixed}.workspace{animation:workspace-reveal .55s var(--ease-premium) both}.content>*{animation:content-rise .46s var(--ease-premium) both}.content>*:nth-child(2){animation-delay:45ms}.content>*:nth-child(3){animation-delay:.09s}.content>*:nth-child(4){animation-delay:.135s}.content>*:nth-child(5){animation-delay:.18s}.page-header{background:linear-gradient(118deg,#ffffffeb,#f6f8f2f0);box-shadow:0 1px #ffffffe6,0 10px 30px #1f291d09;overflow:hidden}.page-header:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:linear-gradient(180deg,var(--accent2),var(--accent),#755d2d)}.page-header h1{font-weight:750;text-shadow:0 1px 0 #fff}.eyebrow{color:#90743e}.sidebar{background:radial-gradient(circle at 50% -10%,rgba(217,193,141,.13),transparent 16rem),linear-gradient(180deg,#131b13,#202a1e 62%,#151d14);border-right:1px solid rgba(217,193,141,.12)}.brand-mark{position:relative;box-shadow:inset 0 0 18px #d9c18d14,0 7px 18px #00000029;transition:transform .35s var(--ease-premium),box-shadow .35s}.brand:hover .brand-mark{transform:rotate(-3deg) scale(1.04);box-shadow:inset 0 0 20px #d9c18d24,0 9px 22px #00000038}.nav-item{transition:color .2s,background .2s,transform .2s var(--ease-premium),box-shadow .2s}.nav-item:hover{transform:translate(3px);background:linear-gradient(90deg,#d9c18d1a,#ffffff09)}.nav-item.active{background:linear-gradient(90deg,#34422f,#293526);box-shadow:inset 3px 0 0 var(--accent),0 7px 18px #0000001f}.panel,.stock-filter-panel,.stat-card,.part-card,.part-editor,.calculation-box{border-color:#d9dfd4;box-shadow:var(--shadow-sm);transition:transform .28s var(--ease-premium),box-shadow .28s,border-color .28s}.panel:hover,.stock-filter-panel:hover{box-shadow:var(--shadow-md);border-color:#ced6c8}.stat-card:hover,.component-cost:hover,.component-requirement-grid>div:hover,.component-stock-list>div:hover{transform:translateY(-3px);box-shadow:var(--shadow-md);border-color:#c8d2c2}.stat-card:after{transition:transform .5s var(--ease-premium),border-color .4s}.stat-card:hover:after{transform:rotate(27deg) scale(1.08);border-color:#e7eadf}.stat-card>svg{transition:transform .35s var(--ease-premium),color .35s}.stat-card:hover>svg{transform:scale(1.12) rotate(-4deg);color:var(--accent)}.panel-head{background:linear-gradient(180deg,#fff,#f8faf5);box-shadow:inset 0 -1px #2a372706}.panel-head h3{font-weight:800;color:#293228}.table-wrap tbody tr{transition:background .16s,box-shadow .16s,transform .16s}.table-wrap tbody tr:hover{background:#f6f9f3;box-shadow:inset 3px 0 #b8924abf}.code-chip{box-shadow:inset 0 1px #ffffff14;transition:transform .18s,box-shadow .18s}.table-wrap tbody tr:hover .code-chip{transform:translateY(-1px);box-shadow:0 4px 10px #1a231929}.btn{border-radius:6px;box-shadow:0 4px 12px #18201721;transition:transform .18s var(--ease-premium),box-shadow .18s,filter .18s}.btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 8px 20px #1820172e}.btn:active:not(:disabled){transform:translateY(0) scale(.985)}.btn.secondary,.btn.table{box-shadow:0 2px 7px #1c251a0e}.icon-btn{transition:transform .18s var(--ease-premium),box-shadow .18s,background .18s}.icon-btn:hover{transform:translateY(-1px);box-shadow:0 6px 14px #1c251a1f}.searchbox,.field input,.field select,.field textarea,.ingredient-editor select,.ingredient-editor input{transition:border-color .2s,box-shadow .2s,background .2s}.searchbox:focus-within{border-color:#93a18d;box-shadow:0 0 0 3px #485e4117,var(--shadow-sm);background:#fff}.field input:focus,.field select:focus,.field textarea:focus,.ingredient-editor select:focus,.ingredient-editor input:focus{box-shadow:0 0 0 3px #5b70521a,0 6px 16px #1c261a0e}.modal-backdrop{animation:backdrop-in .22s ease-out both;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#0b110b94}.modal{animation:modal-enter .38s var(--ease-premium) both;border-color:#d9c18d5c;box-shadow:var(--shadow-lg)}.modal-head{position:relative}.modal-head:after{content:"";position:absolute;left:0;bottom:-1px;width:72px;height:2px;background:linear-gradient(90deg,var(--accent),transparent)}.badge{transition:transform .16s,box-shadow .16s}.badge:hover{transform:translateY(-1px);box-shadow:0 3px 8px #1e281c14}@keyframes workspace-reveal{0%{opacity:0}to{opacity:1}}@keyframes content-rise{0%{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}@keyframes backdrop-in{0%{opacity:0}to{opacity:1}}@keyframes modal-enter{0%{opacity:0;transform:translateY(16px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}@media (prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}.modal-backdrop{z-index:1000;padding:32px;background:#0b110ba3}.modal{width:min(620px,calc(100vw - 64px));max-height:calc(100vh - 64px);display:flex;flex-direction:column;overflow:hidden;padding:0;border-radius:12px;box-shadow:0 32px 90px #00000052}.modal.wide{width:min(1100px,calc(100vw - 64px))}.modal-head{flex:0 0 auto;margin:0;padding:18px 22px 16px;background:linear-gradient(180deg,#fff,#fafbf8)}.modal-head h2{font-size:18px;letter-spacing:-.2px}.modal-head .icon-btn{width:34px;height:34px;border-radius:7px}.modal-body{overflow:auto;padding:20px 22px 22px;overscroll-behavior:contain}@media (max-width:1100px){.modal-backdrop{padding:0;place-items:end center}.modal,.modal.wide{width:100%;max-width:none;max-height:94vh;border-radius:14px 14px 0 0;padding:0}.modal-head{padding:16px 16px 14px}.modal-body{padding:16px}.modal-actions{bottom:-16px;padding-bottom:16px}}@media print{.workspace,.content>*{animation:none!important}.panel,.stock-filter-panel,.stat-card{box-shadow:none!important;transform:none!important}}.brand-mark.company-logo{font-family:Inter,Segoe UI,sans-serif;font-size:13px;font-weight:900;letter-spacing:-.5px}.toolbar{align-items:flex-end;padding:13px 14px;margin-bottom:16px;background:linear-gradient(135deg,#fff,#f7f9f4);border:1px solid #d9dfd4;border-radius:8px;box-shadow:0 6px 22px #21291e0d}.searchbox{height:38px;border-color:#cfd6ca;border-radius:6px;color:#71806e}.searchbox input{min-width:0}.search-clear{width:25px;height:25px;border:0;border-radius:50%;display:grid;place-items:center;background:#edf0e9;color:#697267;cursor:pointer}.search-clear:hover{background:#dfe5da;color:#253023}.icon-btn{height:32px;width:32px;border-radius:7px}.icon-btn.edit{color:#245b8f;border-color:#bcd3e8;background:#f2f8fd}.icon-btn.edit:hover{color:#fff;border-color:#245b8f;background:#245b8f}.icon-btn.danger{color:#a33a37;border-color:#edc4c1;background:#fff5f4}.icon-btn.danger:hover{color:#fff;border-color:#a33a37;background:#a33a37}.btn.table:has(.lucide-pencil){color:#245b8f;border-color:#bcd3e8;background:#f2f8fd}.btn.table:has(.lucide-pencil):hover{color:#fff;background:#245b8f}.btn.table:has(.lucide-trash-2){color:#a33a37;border-color:#edc4c1;background:#fff5f4}.filter-panel{background:linear-gradient(135deg,#fff,#f7f9f4);border:1px solid #d9dfd4;border-radius:8px;padding:14px 15px;margin-bottom:16px;box-shadow:0 6px 22px #21291e0d}.filter-panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.filter-panel-head>div{display:flex;align-items:center;gap:9px;color:#53604f}.filter-panel-head span{display:flex;flex-direction:column}.filter-panel-head b{font-size:12px}.filter-panel-head small{font-size:9px;color:#899285;margin-top:2px}.filter-grid{display:grid;grid-template-columns:minmax(250px,1.8fr) repeat(auto-fit,minmax(135px,1fr)) auto;gap:10px;align-items:end}.filter-grid .searchbox{min-width:0;max-width:none;margin-bottom:12px}.filter-grid .field,.filter-grid>.btn{margin-bottom:12px}.filter-result{height:34px;margin-bottom:12px;padding:0 12px;border-left:2px solid var(--accent);display:flex;flex-direction:column;justify-content:center}.filter-result b{font-size:13px}.filter-result span{font-size:9px;color:#818a7e}@media (max-width:760px){.filter-grid{grid-template-columns:1fr}.filter-grid .searchbox{grid-column:auto}}.company-switcher{position:fixed;right:112px;top:18px;z-index:31;height:35px;display:flex;align-items:center;gap:7px;padding:0 9px;background:#fff;border:1px solid #d5dcd0;border-radius:7px;box-shadow:0 5px 16px #19221717;color:#53604f}.company-switcher select{border:0;outline:0;background:transparent;color:#293128;font-size:11px;font-weight:800;min-width:130px}.company-save-confirmation{width:min(480px,calc(100vw - 32px));box-sizing:border-box;border:2px solid #b88622;border-radius:16px;padding:28px;background:#fffdf6;color:#242b23;box-shadow:0 24px 80px #0006;text-align:center}.company-save-confirmation::backdrop{background:#0b110bb8;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.company-save-confirmation h2{font-size:21px;margin:0 0 18px}.company-save-confirmation p{font-size:15px;line-height:1.5;margin:14px 0}.company-save-name{display:block;padding:18px 12px;border:2px solid #b88622;border-radius:10px;background:#fff0b3;color:#543400;font-size:clamp(30px,8vw,44px);font-weight:900;line-height:1.2;overflow-wrap:anywhere}.company-save-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-top:24px}.company-save-actions .btn{min-height:44px;font-size:14px}.company-save-actions .btn:focus-visible{outline:3px solid #946500;outline-offset:3px}.workspace,.content,.panel,.form-grid>*{min-width:0}.sidebar{overflow-y:auto;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.sidebar>.brand,.sidebar>.rail-label,.sidebar>nav,.sidebar>.sidebar-foot{flex-shrink:0}.modal-body{min-height:0;flex:1 1 auto;-webkit-overflow-scrolling:touch}.modal{max-height:calc(100dvh - 64px)}@media (max-width:1100px){body{background-attachment:scroll}.workspace,.content>*{animation:none}.sidebar{padding-top:72px;visibility:hidden;transition:transform .22s ease,visibility .22s}.sidebar.open{visibility:visible}.mobile-menu-btn{z-index:70;width:44px;height:44px;top:10px;left:10px}.company-switcher{left:64px;right:104px;top:10px;height:44px;min-width:0}.company-switcher select{width:100%;min-width:0;text-overflow:ellipsis}.company-switcher svg{flex-shrink:0}.global-logout-btn{top:10px;right:10px;height:44px}.toolbar{align-items:stretch}.header-actions,.panel-head,.pagination-bar{flex-wrap:wrap;gap:8px}.panel-head,.page-header p{overflow-wrap:anywhere}.filter-grid{grid-template-columns:1fr}.part-editor{overflow-x:auto;-webkit-overflow-scrolling:touch}.part-editor table{min-width:700px}.table-wrap,.ingredient-editor,.part-editor{overscroll-behavior-x:contain}.modal,.modal.wide{max-height:94dvh}.modal-body{padding-bottom:calc(16px + env(safe-area-inset-bottom))}.modal-head{gap:12px}.modal-head>div{min-width:0}.modal-head h2{overflow-wrap:anywhere}.modal-head .icon-btn{flex-shrink:0;width:44px;height:44px}.field input,.field select,.field textarea,.searchbox input,.part-editor input,.part-editor select{font-size:16px}.btn,.nav-item{min-height:44px}.stock-preview{grid-template-columns:1fr}}@media print{.mobile-menu-btn,.sidebar-overlay,.company-switcher,.global-logout-btn{display:none!important}}.material-select{min-width:220px;width:100%}.trial-comparison .comparison-scroll{overflow-x:auto;margin-bottom:22px;border:1px solid #dce3eb;border-radius:10px;background:#fff}.trial-comparison table{width:100%}.trial-comparison td{white-space:pre-wrap;min-width:110px;vertical-align:top}.trial-comparison th{min-width:150px}.trial-comparison .comparison-changed{background:#fff9e9}.trial-comparison h2{margin:24px 0 12px}.trial-comparison p{line-height:1.6}.trial-comparison .paired-material-table{table-layout:fixed;min-width:760px}.trial-comparison .paired-material-table th,.trial-comparison .paired-material-table td{min-width:0;white-space:normal;overflow-wrap:anywhere;padding:10px 8px;vertical-align:top}.trial-comparison .paired-material-table th{text-align:left}.trial-comparison .paired-material-table small{display:block;color:var(--muted);font-size:10px;font-weight:400;margin:3px 0 8px}.trial-comparison .paired-material-table td span{display:block}.trial-comparison .paired-material-table .comparison-divider{border-left:3px solid var(--accent)}.trial-comparison .paired-material-table thead tr:first-child th{background:#e9eee5;font-size:12px}.comparison-controls{display:flex;align-items:center;gap:12px;margin-bottom:16px}.comparison-controls.form-grid{display:grid}.comparison-controls>span{color:var(--muted);font-size:12px}.comparison-print-heading{display:none}.trial-comparison .paired-material-table{min-width:1080px;font-size:11px}.trial-comparison .paired-material-table th,.trial-comparison .paired-material-table td{padding:6px 5px;line-height:1.3}.trial-comparison .paired-material-table small{font-size:9px;margin:0 0 2px}.trial-comparison .paired-material-table tbody tr:nth-child(2n){background:#f5f7f2}.trial-comparison .paired-material-table td.num{text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:normal}@page trial-comparison{size:A4 landscape;margin:10mm}@media print{body.printing-trial-comparison{background:#fff}body.printing-trial-comparison .workspace{margin:0!important;width:100%!important;padding:0!important}body.printing-trial-comparison .workspace>:not(.trial-comparison),body.printing-trial-comparison .sidebar,body.printing-trial-comparison .sidebar-overlay,body.printing-trial-comparison .mobile-menu-btn,.trial-comparison .comparison-controls{display:none!important}.trial-comparison{page:trial-comparison;padding:0;color:#111;font-size:9pt}.comparison-print-heading{display:block;border-bottom:2px solid #333;margin-bottom:8px}.comparison-print-heading h1{font-size:16pt;margin:0 0 4px}.trial-comparison h2{font-size:12pt;margin:12px 0 6px;break-after:avoid}.trial-comparison p{font-size:8pt;line-height:1.35;margin:5px 0 8px}.trial-comparison .comparison-scroll{overflow:visible;border-radius:0;margin-bottom:10px;border:0}.trial-comparison table{width:100%;min-width:0!important;border-collapse:collapse}.trial-comparison table th,.trial-comparison table td{min-width:0;padding:4px 5px;border:1px solid #b7b7b7;font-size:8pt}.trial-comparison thead{display:table-header-group}.trial-comparison tr{break-inside:avoid;page-break-inside:avoid}.trial-comparison .paired-material-table th,.trial-comparison .paired-material-table td{font-size:7.5pt;padding:4px 3px}.trial-comparison .paired-material-table small{font-size:6.5pt;color:#444}.trial-comparison .paired-material-table thead tr:first-child th{font-size:9pt}.trial-comparison .paired-material-table .comparison-divider{border-left:2px solid #333}}.powder-order-settings{padding:14px;margin:12px 0;border:1px solid var(--accent);border-radius:8px;background:#fff9ea}.powder-order-settings p{font-size:12px;line-height:1.5}.powder-material-option{display:flex;align-items:center;gap:8px;margin:9px 0;font-size:13px}.powder-material-option input{width:auto}.weight-controls>p{line-height:1.5;color:var(--muted)}.weight-selections{display:grid;gap:10px;margin:18px 0}.weight-selection{display:grid;grid-template-columns:30px 2fr 1.4fr 1fr auto;gap:12px;align-items:end;padding:14px;background:#fff;border:1px solid #dce3d8;border-radius:10px}.weight-selection .field{min-width:0}.weight-selection select,.weight-selection input{width:100%}.weight-slot{align-self:center;color:#53654b}.weight-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.weight-sheet{max-width:900px;margin:24px auto;padding:28px;background:#fff;color:#17251d;box-shadow:0 5px 24px #0001}.weight-sheet-heading{display:flex;justify-content:space-between;align-items:center;border-bottom:3px solid #263f31;padding-bottom:10px;margin-bottom:14px}.weight-sheet-heading span{font-size:10px;letter-spacing:2px;font-weight:800}.weight-sheet-heading h2{margin:5px 0 0;font-size:24px}.weight-sheet-heading p{text-align:right;font-size:11px;line-height:1.5}.weight-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.weight-card{border:1px solid #87958c;border-radius:8px;overflow:hidden}.weight-card header{display:flex;gap:10px;padding:10px;border-bottom:1px solid #b7c1ba;background:#f0f4ee}.weight-card-number{font-size:20px;font-weight:800;color:#546850}.weight-card h3{font-size:14px;margin:0 0 4px;overflow-wrap:anywhere}.weight-card header p{font-size:10px;margin:0;overflow-wrap:anywhere}.weight-basis{display:flex;justify-content:space-between;padding:7px 10px;font-size:12px}.weight-card table{width:100%;border-collapse:collapse;table-layout:fixed}.weight-card table th,.weight-card table td{padding:4px 10px;font-size:11px;white-space:normal;overflow-wrap:anywhere;border-bottom:1px solid #e1e5df}.weight-card table th{text-align:left}.weight-card table th:last-child:not([colspan]),.weight-card table td:last-child{width:42%;text-align:right;font-variant-numeric:tabular-nums}.weight-card .weight-part th{background:#f0f4ee;font-size:10px}.weight-card footer{display:flex;justify-content:space-between;border-top:1px solid #87958c;padding:7px 10px;font-size:12px}.weight-sheet-footer{display:flex;justify-content:space-between;margin-top:12px;font-size:9px;letter-spacing:1px}@media (max-width:800px){.weight-selection,.weight-card-grid{grid-template-columns:1fr}.weight-sheet{padding:15px}}@page formula-weights{size:A4 portrait;margin:8mm}@media print{body.printing-formula-weights .workspace{width:100%!important;margin:0!important;padding:0!important}body.printing-formula-weights .workspace>:not(.formula-weight-page),.weight-controls{display:none!important}.formula-weight-page{page:formula-weights;padding:0!important}.weight-sheet{margin:0;padding:0;max-width:none;box-shadow:none;break-after:page}.weight-sheet:last-child{break-after:auto}.weight-sheet-heading{margin-bottom:3mm;padding-bottom:2mm}.weight-sheet-heading h2{font-size:16pt}.weight-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:3mm}.weight-card{break-inside:avoid;border-radius:2mm}.weight-card header{padding:2mm;gap:2mm}.weight-card h3{font-size:10pt}.weight-card header p{font-size:7.5pt}.weight-card-number{font-size:15pt}.weight-basis,.weight-card footer{padding:1.5mm 2mm;font-size:9pt}.weight-card table th,.weight-card table td{padding:.7mm 2mm;font-size:8.5pt;line-height:1.15}.weight-card .weight-part th{font-size:8pt}.weight-card tr{break-inside:avoid}.weight-sheet-footer{margin-top:3mm}}.weight-water{display:flex;justify-content:space-between;gap:8px;border-top:1px dashed #87958c;padding:7px 10px;font-size:12px;background:#f0f4ee}.weight-water strong{text-align:right}@media print{.weight-water{padding:1.5mm 2mm;font-size:8.5pt}}.weight-sheets{overflow-x:auto}.weight-sheet{box-sizing:border-box;width:194mm;height:280mm;max-width:none;padding:0;display:flex;flex-direction:column}.weight-sheet-heading{flex:none;margin:0 0 3mm;padding:0 0 2mm}.weight-sheet-heading h2{font-size:16pt}.weight-sheet-heading p{margin:0}.weight-card-grid{flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:3mm;align-items:stretch}.weight-card-slot{min-width:0;min-height:0}.weight-card{box-sizing:border-box;width:auto;border-radius:2mm}.weight-card header{padding:2mm;gap:2mm}.weight-card header>div{min-width:0}.weight-card h3{font-size:10pt}.weight-card header p{font-size:7.5pt}.weight-card-number{font-size:15pt}.weight-basis,.weight-card footer{padding:1.5mm 2mm;font-size:9pt}.weight-card table th,.weight-card table td{padding:.7mm 2mm;font-size:8.5pt;line-height:1.15}.weight-card .weight-part th{font-size:8pt}.weight-water{padding:1.5mm 2mm;font-size:8.5pt}.weight-sheet-footer{flex:none;margin-top:3mm}@media print{.weight-sheets{overflow:visible}.weight-sheet{width:194mm;height:280mm;break-inside:avoid}.weight-card-slot{break-inside:avoid}}
