/* AquaForm purple desktop workspace, based on the user's visual reference. */
:root{--navy:#472259;--teal:#7c368e;--line:#e6ddec;--muted:#786784;color:#432c51;background:#f7f4f9;font-family:"Segoe UI",Arial,sans-serif;font-size:14px}
.suite-bar{height:34px;position:fixed;inset:0 0 auto;z-index:12;display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:linear-gradient(100deg,#321047,#772576 70%,#662050);color:#fff;font-size:11px;letter-spacing:.03em}.suite-bar strong{font-size:14px}.suite-bar strong span{font-weight:400;margin-left:8px;opacity:.86}.suite-bar>span{opacity:.8;font-size:10px}.module-bar{position:fixed;inset:34px 0 auto;height:43px;display:flex;align-items:stretch;background:#faf6fc;border-bottom:1px solid var(--line);z-index:11;padding-left:12px}.module-bar>button{min-width:115px;background:transparent;color:#623277;font-weight:600;font-size:12px;border-right:1px solid #eee7f2}.module-bar>button:hover,.module-bar>button.selected{background:#eee3f3;box-shadow:inset 0 -2px #7c368e}.suite-context{display:flex;align-items:center;gap:12px;margin-left:auto;padding:0 18px;color:#765682;font-size:11px}.suite-context>span{padding:5px 12px;border:1px solid #e7ddec;border-radius:4px;background:white}.suite-context button{background:none;color:#663278;font-size:12px}
.sidebar{inset:77px auto 0 0;width:222px;background:#fff;color:#563466;padding:14px 10px 8px;border-right:1px solid var(--line);z-index:9;overflow-y:auto}.brand{color:#52266b;font-size:19px;gap:9px;padding:0 7px 12px}.brand-mark{background:#eee0f5;color:#783e8c;width:34px;height:34px;border-radius:6px;font-size:14px;letter-spacing:-.06em}.brand small{color:#9b7da9;font-size:8px;letter-spacing:.08em}.nav-caption{font-size:9px;color:#a48bab;margin:14px 10px 5px;letter-spacing:.09em}.menu-search{margin:0 5px 8px}.menu-search input{min-height:30px!important;padding:6px 9px!important;font-size:11px;background:#faf8fc!important;border-color:#ede5f1!important}.nav-button{gap:9px;min-height:32px;padding:7px 10px;margin:1px 0;border-radius:4px;color:#654970;font-size:12px;line-height:1.3}.nav-button span{font-size:12px}.nav-button .menu-icon{color:#925ba8;flex:0 0 16px;font-size:17px;line-height:17px;text-align:center}.nav-button:hover{background:#f7f1fa;color:#6a2886}.nav-button.active,.nav-button.selected{background:#eee4f4;color:#6e2b88;font-weight:600}.sidebar-bottom{padding:14px 9px 0;margin-top:18px;border-top:1px solid var(--line)}.sidebar-bottom p{color:#826b8c;font-size:11px;margin:8px 0 0}.sidebar .pill{border:0;color:#8e699e;background:#f5eff8;font-size:10px;padding:4px 7px}.sidebar-bottom .text-button{color:#7c368e}#technical-nav{border:0;padding:0;margin:8px 0}#technical-nav summary{font-size:9px;color:#9679a4;padding:9px 10px;letter-spacing:.05em;margin:0}.sidebar nav{display:block}
main{margin-left:222px;padding:77px 18px 32px;min-width:0}header{height:36px;min-height:36px;font-size:10px;border-bottom:1px solid var(--line);color:#8f719e;letter-spacing:.04em}header strong{color:#6f3b82}.header-meta{font-size:10px}.command-ribbon{display:flex;gap:2px;padding:10px 0 8px;margin:0 -4px 0;border-bottom:1px solid var(--line);overflow-x:auto;background:#fff}.command-ribbon button{background:none;color:#744185;min-width:76px;max-width:105px;min-height:64px;padding:4px 9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:10px;white-space:nowrap;border-radius:4px}.command-ribbon button>span{font-size:28px;height:31px;line-height:31px;color:#7e398f;font-weight:600}.command-ribbon button:hover:not(:disabled){background:#f1e7f7}.command-ribbon i{flex:0 0 1px;background:#eee6f2;margin:7px 6px}.command-ribbon button:disabled{opacity:.32}.page-heading{margin:17px 0 12px;gap:12px}.page-heading .eyebrow{font-size:9px;letter-spacing:.07em;margin-bottom:4px}.page-heading h1{font-size:21px;letter-spacing:-.02em;margin-bottom:4px}.page-heading p:last-child{font-size:12px}.accent{display:none}h2{font-size:14px}h3{font-size:13px}p{line-height:1.55}.panel{padding:14px;border-radius:5px;margin-bottom:12px;border-color:#e8e0ed;box-shadow:0 1px 2px #4b165404}.panel-title{margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid #f0eaf4}.panel-title>span{color:#ae8aba;font-size:10px}.primary,.secondary{min-height:32px;padding:7px 13px;border-radius:4px;gap:7px;font-size:12px}.primary{background:#7d3b91}.primary:hover:not(:disabled){background:#662978}.secondary{color:#79448a;border-color:#e2d5ea;background:#fff}.secondary:hover{background:#f8f3fa}.text-button{color:#7f438f}.pill{font-size:10px;padding:3px 6px}.helper{font-size:11px}.sample-banner{padding:8px 11px;font-size:11px;margin-bottom:12px;border-radius:4px}.status-note{background:#f3edf8!important;color:#68347d!important;border-color:#dfcfe9!important}.operator-instructions{background:#f5eff8}.operator-steps{margin:14px 0;gap:16px}.operator-steps span{font-size:12px}.operator-steps b{background:#eee1f5;color:#76328b;width:26px;height:26px}.analysis-metrics>div{background:#f5eef9}.analysis-metrics small{color:#896395}.optimal{background:#f1e9f7;color:#77358d!important}#notice{background:#f4edf8;border-color:#cdb3da;color:#623775}
label{font-size:12px;gap:5px;margin-bottom:12px}input:not([type=checkbox]),select,textarea{font-size:12px;color:#4f365e;border-color:#dfd2e6;border-radius:4px;background:#fff;min-height:32px;padding:7px 9px}input[type=checkbox]{accent-color:#864499;width:15px;height:15px}input:focus,select:focus,textarea:focus{outline:2px solid #ba8cce;outline-offset:1px;border-color:#9154a6}table{font-size:12px}th{background:#faf7fc;color:#79558b;font-weight:600;font-size:10px;padding:7px 8px;border:1px solid #eee7f3}td{padding:7px 8px;border:1px solid #f0eaf4;line-height:1.4}td:first-child,th:first-child{padding-left:8px}td:last-child,th:last-child{padding-right:8px}tbody tr:nth-child(even){background:#fcfafd}tbody tr:hover{background:#f6eef9}td input[type=number]{min-width:58px;min-height:28px;padding:4px 6px;background:#fff7db;border-color:#eadfad}table .ingredient-choice{font-size:12px;min-width:138px}.subtext{font-size:10px}.ingredient-lot{font-size:10px}.lab-layout{grid-template-columns:minmax(0,1.2fr) minmax(320px,1fr);gap:12px}.lab-inputs .form-grid{gap:12px}.results{top:87px;border-top:2px solid #9452a6}.result-empty{padding:22px 9px}.result-symbol{color:#bd9bce;font-size:36px;margin-bottom:14px}.cost-value{font-size:28px;color:#74348c}.cost-unit{font-size:11px;margin-bottom:14px}.result-nutrient{font-size:12px;padding:6px 0}.result-nutrients{margin:10px 0}.workflow-steps{gap:4px;margin-bottom:8px}.workflow-steps button{border-radius:4px 4px 0 0;background:#f8f3fb;border-color:#e8dcef;color:#7a458c;font-size:11px}.reference-tabs{gap:5px}.reference-tabs button{font-size:11px}dialog{border-color:#ddcce7;border-radius:8px;color:#4b2c5b}dialog::backdrop{background:#2e163d66;backdrop-filter:blur(2px)}.login-brand{background:linear-gradient(145deg,#341046,#7d347f)}.login-brand .lead{color:#decae9}.login-brand .eyebrow{color:#d5b8e1}
@media(min-width:1500px){.lab-layout{grid-template-columns:minmax(0,1.35fr) minmax(390px,1fr)}main{padding-right:24px;padding-left:24px}}
@media(max-width:900px){.sidebar{position:fixed;width:192px}.nav-button span{font-size:11px}main{margin-left:192px;padding-left:12px;padding-right:12px}.suite-context>span{display:none}.lab-layout{grid-template-columns:1fr}.results{position:static}.command-ribbon button{min-width:69px}.module-bar>button{min-width:95px}}
@media(max-width:640px){.suite-bar{position:relative;height:34px;padding:0 12px}.suite-bar>span{display:none}.module-bar{position:relative;inset:auto;height:42px;padding-left:0;overflow-x:auto}.module-bar>button{min-width:85px;flex:1}.suite-context{display:none}.sidebar{position:relative;inset:auto;width:100%;padding:10px 12px;max-height:260px;border-right:0;border-bottom:1px solid var(--line);overflow:auto}.sidebar .brand{display:none}.sidebar nav{display:block;overflow:visible}.sidebar .nav-button{display:flex;width:100%;min-height:34px}.sidebar .nav-caption{margin-top:9px}.sidebar-bottom{display:none}#technical-nav summary{font-size:10px}.menu-search{margin-bottom:0}main{margin:0;padding:0 12px 24px}.command-ribbon{padding:6px 0}.command-ribbon button{min-height:53px;min-width:67px;font-size:9px}.command-ribbon button>span{font-size:23px;height:25px;line-height:25px}.header-meta{display:none}.page-heading{margin:14px 0;align-items:flex-start}.page-heading h1{font-size:23px}.panel{padding:12px}.primary,.secondary{min-height:40px}.form-grid{grid-template-columns:1fr}.operator-steps{gap:10px}.operator-steps span{font-size:11px}#orders-list table,#orders-list tbody,#orders-list tr,#orders-list td{display:block;width:100%}#orders-list td{border:0;padding:7px 0}#orders-list tbody tr{background:transparent}#orders-list td:last-child button{width:100%}header{font-size:9px}.lab-layout{display:block}}
@media print{.suite-bar,.module-bar,.command-ribbon{display:none!important}:root{background:#fff;color:#222}#print-ticket table{font-size:10px}#print-ticket th{background:#f7f3fa}#print-ticket h1{font-size:20px}}
@media(min-width:1100px){.lab-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start}.lab-inputs{display:contents}.lab-inputs>.panel:first-child{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 14px;padding:11px 14px;margin-bottom:0}.lab-inputs>.panel:first-child .panel-title{grid-column:1/-1;margin-bottom:3px}.lab-inputs>.panel:first-child .form-grid{display:contents}.lab-inputs>.panel:first-child label{margin-bottom:2px}.lab-inputs>.panel:first-child .helper{grid-column:span 2;font-size:10px;margin-top:2px}.lab-inputs>.panel:nth-child(2){grid-column:1;grid-row:2}.lab-inputs>.panel:nth-child(3){grid-column:2;grid-row:2;max-height:620px;overflow:auto}.lab-inputs>.panel:nth-child(2)>.table-scroll{max-height:520px;overflow:auto}.lab-inputs>.panel:nth-child(2) th{position:sticky;top:0;z-index:1}.lab-inputs>.panel:nth-child(2) td{padding-top:5px;padding-bottom:5px}.lab-inputs>.panel:nth-child(2) .subtext{font-size:9px}.lab-layout>.results{grid-column:1/-1;grid-row:3;position:static;max-width:none}.lab-layout>.results .result-empty{padding:12px}.lab-layout>.results .result-symbol{display:none}.lab-layout>.results .result-empty h3{margin-bottom:4px}.lab-layout>.results .result-empty p{margin-bottom:4px}}

#mfg-dialog{width:min(960px,95vw);max-width:95vw}#mfg-error,#mfg-page-error{color:#a42828}.premix-tree{border-left:2px solid #e5d8ee;padding-left:22px;line-height:1.8}.premix-component{padding:12px;border:1px solid #e5d8ee;margin:10px 0;border-radius:5px}#mfg-body>button,#mfg-content>button{margin:4px}#mfg-json{font-family:monospace;font-size:12px}
#biz-dialog {width:min(760px,95vw);max-height:90vh} #biz-body select[multiple]{min-height:130px} #biz-print p {white-space:pre-wrap;overflow-wrap:anywhere} #biz-pagination {display:flex;gap:8px;margin-top:16px}
@media print {body.business-print > * {display:none!important}body.business-print > #biz-dialog {display:block!important;position:static;width:100%;max-height:none;max-width:none;border:0;box-shadow:none}body.business-print #biz-dialog .panel-title,body.business-print #biz-print-button,body.business-print #biz-dialog-error{display:none!important}body.business-print #biz-dialog::backdrop {background:white}}
#adv-dialog{width:min(1000px,95vw);max-height:90vh}#adv-dialog select[multiple]{min-height:100px}.adv-group,.adv-scenario{border:1px solid var(--line);padding:16px;margin:12px 0;min-width:0}.adv-change{align-items:end}#adv-error,#adv-page-error{color:#a43723;white-space:pre-line}
.desk-guide{padding:18px;background:#f7f3fa;border:1px solid #e3d8ec;border-radius:8px;margin-bottom:18px}.desk-guide h2{font-size:17px;margin:0 0 8px}.desk-steps,.desk-actions,.desk-pager{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.desk-filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:18px 0}.desk-filters label{flex:1;min-width:150px;margin:0}.desk-filters button{margin-bottom:0}.desk-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.desk-stats>div{border:1px solid #e3d8ec;padding:16px;border-radius:8px;background:#faf8fc}.desk-stats span{display:block;color:#74677e;font-size:12px}.desk-stats strong{display:block;font-size:20px;margin-top:8px}.desk-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.desk-facts>div{min-width:0;border-bottom:1px solid #e9e0ef;padding-bottom:10px}.desk-facts dt{font-size:12px;color:#74677e}.desk-facts dd{margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}#desk-detail h2{margin:0}#desk-detail .reference-tabs{margin:16px 0}@media(max-width:760px){.desk-stats,.desk-facts{grid-template-columns:1fr}.desk-filters{display:grid;grid-template-columns:1fr}.desk-filters label{min-width:0}}@media print{#print-ticket .desk-facts{display:grid;grid-template-columns:1fr 1fr;font-size:11pt}#print-ticket .desk-facts dt{color:#333}#print-ticket .desk-facts dd{color:#111}}
@media print {
 body.finance-printing * { visibility: hidden; }
 body.finance-printing #finance-print, body.finance-printing #finance-print * { visibility: visible; }
 body.finance-printing #finance-print { position: absolute; left: 0; top: 0; width: 100%; background: white; }
 body.finance-printing #finance-print button { display: none; }
 body.finance-printing #finance-print .table-scroll { max-height: none; overflow: visible; }
}
