.ops-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:24px;border-bottom:1px solid #d6e2e4;padding-bottom:12px}.ops-tabs button{border:0;background:transparent;padding:10px 14px;border-radius:7px;color:#45616a;cursor:pointer;font:inherit;font-size:13px}.ops-tabs button.active{background:#113f4b;color:white}.ops-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0}.ops-toolbar h2{margin:0;font-size:22px}.ops-toolbar p{margin:6px 0;color:#637b82;font-size:13px}.ops-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.ops-kpi,.ops-card{background:white;border:1px solid #dae5e7;border-radius:12px;padding:20px}.ops-kpi strong{display:block;font-size:28px;color:#123f4a;margin:8px 0}.ops-kpi span{font-size:12px;color:#617b83}.ops-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ops-card h3{font-size:16px;margin:0 0 12px}.ops-card p{font-size:13px;color:#536f77;line-height:1.7}.ops-warning{background:#fff3d7;color:#78510b;border:1px solid #eed39b;border-radius:8px;padding:12px 16px;font-size:13px;margin:12px 0;line-height:1.6}.ops-notice{background:#e9f5f6;border:1px solid #bedfe4;border-radius:8px;padding:12px 16px;font-size:13px;color:#255a65;margin:12px 0;line-height:1.6}.ops-muted{color:#6a7e83;font-size:12px}.ops-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ops-pill{display:inline-block;border-radius:20px;background:#e7f4ed;color:#266045;font-size:11px;padding:5px 9px;white-space:nowrap}.ops-pill.waiting{background:#fff1d2;color:#7e5915}.ops-pill.sample{background:#e9f4f8;color:#37677c}.ops-dialog{border:0;border-radius:16px;max-width:1050px;width:calc(calc(100vw / var(--ui-zoom,1)) - 48px);max-height:91vh;padding:0;color:#173f4a;box-shadow:0 18px 70px #123d4c40}.ops-dialog::backdrop{background:#11384488}.ops-dialog header,.ops-dialog footer{display:flex;justify-content:space-between;align-items:center;padding:20px 26px;border-bottom:1px solid #e0e9ea;gap:16px}.ops-dialog h2{margin:0;font-size:23px}.ops-dialog footer{border-bottom:0;border-top:1px solid #e0e9ea;position:sticky;bottom:0;background:white}.ops-form-body{padding:22px 26px;max-height:68vh;overflow:auto}.ops-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ops-fields .wide{grid-column:1/-1}.ops-fields label,.ops-line label{display:block;font-size:12px;font-weight:600;margin:0 0 7px}.ops-fields input,.ops-fields select,.ops-fields textarea,.ops-line input,.ops-line select,.ops-line textarea,.ops-search{box-sizing:border-box;width:100%;border:1px solid #cbdadd;border-radius:7px;padding:10px 12px;font:inherit;font-size:13px;background:white;color:#173f4a}.ops-fields input[type=checkbox],.ops-line input[type=checkbox]{width:auto}.ops-fields small{display:block;margin:6px 0;color:#6b8087;font-size:11px}.ops-form-section{margin:24px 0 12px;padding-top:18px;border-top:1px solid #dce6e8;font-size:16px}.ops-line{border:1px solid #d5e2e4;border-radius:10px;background:#f8fbfb;padding:15px;margin:14px 0}.ops-line-head{display:grid;grid-template-columns:90px 1fr 120px 100px auto;gap:12px;align-items:end}.ops-line-meta{display:flex;gap:20px;flex-wrap:wrap;font-size:12px;margin:12px 0}.ops-line textarea{min-height:60px}.ops-message{font-size:13px;line-height:1.6;color:#933e2c;white-space:pre-line}.ops-split{display:grid;grid-template-columns:240px 1fr;gap:20px}.ops-summary{background:#123f4a;color:white;border-radius:12px;padding:20px;margin:16px 0;display:flex;justify-content:space-between;align-items:center}.ops-summary strong{font-size:25px}.ops-summary small{display:block;opacity:.75;margin-top:6px}.ops-comment{border-bottom:1px solid #dce7e9;padding:16px 0;font-size:13px}.ops-comment p{white-space:pre-wrap;line-height:1.65}.ops-schedule-row{display:grid;grid-template-columns:1fr 130px 120px 110px auto;gap:8px;align-items:center;padding:14px;border-bottom:1px solid #dbe5e7;font-size:13px}.ops-schedule-row input,.ops-schedule-row select{width:100%;min-width:0;padding:8px;border:1px solid #c8dadd;border-radius:6px}.ops-empty{padding:50px 20px;text-align:center;color:#5c757c;border:1px dashed #bfced2;border-radius:12px}.ops-print{display:none}@media(max-width:900px){.ops-line-head{grid-template-columns:70px 1fr}.ops-kpis{grid-template-columns:repeat(2,1fr)}.ops-grid,.ops-fields,.ops-split{grid-template-columns:1fr}.ops-schedule-row{grid-template-columns:1fr 1fr}.ops-toolbar{flex-wrap:wrap}}@media print{body>*{display:none!important}body>.ops-print{display:block!important;color:black;padding:20px}.ops-print table{width:100%;border-collapse:collapse;font-size:12px}.ops-print th,.ops-print td{padding:10px;border-bottom:1px solid #bbb;text-align:left}.ops-print h1{font-size:22px}.ops-print p{font-size:12px;white-space:pre-line}}
.ops-help{font-size:12px;line-height:1.6;color:#617780;margin:10px 0 16px}.ops-help:empty{display:none}
.ops-order-line{padding:12px 14px;margin:10px 0;border-radius:8px}.ops-order-line .ops-line-head{grid-template-columns:72px minmax(170px,1fr) 110px 110px 94px 30px;gap:10px;align-items:end}.ops-order-line .ops-line-head>div{min-width:0}.ops-order-line .ops-line-head label{font-size:11px;margin-bottom:6px}.ops-order-line .ops-line-head input:not([type=checkbox]):not([type=hidden]),.ops-order-line .ops-line-head select{height:40px;padding:8px 10px;border-radius:5px;font-size:12px}.ops-order-line .ops-line-meta{font-size:11px;gap:14px;margin:10px 0 0;align-items:center;line-height:1.5}.line-item-picker{position:relative}.line-combobox{position:relative}.line-combobox input{padding-right:28px!important;text-overflow:ellipsis}.line-combobox>span{position:absolute;right:10px;top:10px;font-size:14px;color:#627c86;pointer-events:none}.line-item-options{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:6;max-height:180px;overflow-y:auto;background:white;border:1px solid #bdd4dd;border-radius:7px;box-shadow:0 8px 24px #123f4b24;padding:5px}.line-item-picker.opens-up .line-item-options{top:auto;bottom:calc(100% - 14px)}.line-item-options button{display:flex;flex-direction:column;gap:4px;align-items:flex-start;width:100%;border:0;background:white;text-align:left;padding:9px;border-radius:4px;color:#264f5e;font-size:12px}.line-item-options button:hover,.line-item-options button.active{background:#eaf5f8}.line-item-options strong{font-size:10px;color:#18748e}.line-item-options small{font-size:10px;color:#718992}.line-no-items{padding:12px;font-size:12px;color:#738a93}.line-instructions{position:relative;align-self:end}.line-instructions>summary{height:40px;display:flex;justify-content:center;align-items:center;list-style:none;border:1px solid #ccdce2;border-radius:5px;background:white;font-size:11px;color:#57747f;cursor:pointer;white-space:nowrap}.line-instructions>summary.has-notes{border-color:#7fb9c7;color:#146f86;background:#edf8fa}.line-instructions-panel{position:absolute;right:0;top:calc(100% + 6px);width:330px;max-width:calc(calc(100vw / var(--ui-zoom,1)) - 75px);padding:15px;background:white;border:1px solid #c4dbe3;border-radius:8px;z-index:7;box-shadow:0 8px 24px #123f4b24}.line-instructions.opens-up .line-instructions-panel{top:auto;bottom:calc(100% + 6px)}.ops-order-line .line-instructions-panel textarea{font-size:12px;min-height:72px;padding:9px;resize:vertical}.ops-order-line .line-save-instructions{display:flex;align-items:center;gap:8px;margin:10px 0 0;font-size:11px;font-weight:400}.ops-order-line .line-save-instructions input{width:15px;height:15px;min-height:0;margin:0;flex:none;accent-color:#087e9c}.line-remove{border:0;background:transparent;font-size:22px;color:#7f929a;height:40px;padding:0}.line-remove:hover{color:#a34435}@media(max-width:760px){.ops-order-line .ops-line-head{grid-template-columns:65px minmax(0,1fr) minmax(0,1fr) 28px;gap:10px}.ops-order-line .line-item-picker{grid-column:2/4}.ops-order-line .ops-line-head>div:nth-child(3){grid-column:1/2;grid-row:2}.ops-order-line .ops-line-head>div:nth-child(4){grid-column:2/3;grid-row:2}.ops-order-line .line-instructions{grid-column:3/4;grid-row:2}.ops-order-line .line-remove{grid-column:4;grid-row:1}.line-instructions-panel{right:-28px}}
.order-entry-screen{width:100%;min-width:0}.order-entry-screen[hidden]{display:none}.order-entry-screen>form>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.order-entry-screen h2{margin:0;font-size:24px}.order-entry-screen .ops-form-body{padding:0;max-height:none;overflow:visible}.order-entry-screen>form>footer{position:sticky;bottom:0;z-index:5;background:#f5fafb;border-top:1px solid #cbdfe5;padding:16px 0;display:flex;align-items:center;justify-content:space-between;margin-top:24px}.order-customer-tabs{background:white;border:1px solid #cbdfe5;border-radius:10px;margin-bottom:24px}.order-customer-tabs [role=tablist]{display:flex;border-bottom:1px solid #d9e7eb;padding:0 18px;gap:24px}.order-customer-tabs [role=tab]{border:0;border-bottom:3px solid transparent;background:none;color:#496a75;padding:16px 4px;font:inherit;cursor:pointer}.order-customer-tabs [aria-selected=true]{border-bottom-color:#0785a1;color:#123f4a;font-weight:700}.order-customer-tabs [role=tabpanel]{padding:22px}.order-customer-tabs [hidden]{display:none}.order-entry-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.order-entry-fields label{display:block;font-size:12px;color:#527680;margin-bottom:7px}.order-entry-fields input:not([type=checkbox]),.order-entry-fields select{width:100%;height:40px;box-sizing:border-box;border:1px solid #c4dce3;border-radius:5px;padding:8px 11px;background:white;color:#123f4a;font:inherit;font-size:13px}.entry-customer-select{grid-column:span 2}.entry-full{grid-column:1/-1}.order-entry-fields .entry-checkbox{display:flex;align-items:center;gap:9px;margin:0}.entry-checkbox input{width:16px;height:16px}.entry-readonly-value{padding:11px 0;font-size:13px;color:#123f4a}.order-lines-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}.order-lines-heading h3{margin:0}.order-lines-heading span{font-size:12px;color:#527680}.order-entry-notes{margin-top:20px}.order-entry-notes summary{cursor:pointer;font-size:13px;color:#527680}.order-entry-notes textarea{width:100%;box-sizing:border-box;margin-top:10px;border:1px solid #c4dce3;border-radius:5px;padding:10px;font:inherit}.order-entry-screen .ops-order-line{background:#fff}
@media(max-width:900px){.order-entry-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.order-lines-heading{align-items:flex-start;flex-direction:column;gap:5px}}
@media(max-width:600px){.order-entry-fields{grid-template-columns:1fr}.entry-customer-select{grid-column:auto}.order-customer-tabs [role=tabpanel]{padding:16px}.order-entry-screen>form>footer{align-items:flex-start;gap:10px;flex-direction:column}}
.workspace-content.order-entry-active{max-width:none;padding:20px 28px}.workspace-content.order-entry-active h1{font-size:28px;margin-bottom:14px}.order-entry-screen>form>header{margin-bottom:12px}.order-entry-screen h2{font-size:16px}.order-customer-tabs{margin-bottom:18px;border-radius:7px}.order-customer-tabs [role=tablist]{gap:20px;padding:0 16px}.order-customer-tabs [role=tab]{padding:11px 3px;font-size:13px}.order-customer-tabs [role=tabpanel]{padding:16px}.order-entry-fields{gap:12px 22px}.order-entry-fields>div{display:grid;grid-template-columns:110px minmax(0,1fr);align-items:center;gap:8px}.order-entry-fields label{margin:0;font-size:11px}.order-entry-fields input:not([type=checkbox]),.order-entry-fields select{height:33px;padding:6px 9px;font-size:12px}.order-entry-fields .entry-customer-select{grid-column:auto}.order-entry-fields .entry-customer-select>div,.order-entry-fields .entry-full>div{display:contents}.entry-readonly-value{padding:7px 0;font-size:12px}.order-lines-heading{margin-bottom:10px}.order-lines-heading h3{font-size:15px}.order-grid-heading,.order-entry-screen .ops-order-line .ops-line-head{display:grid;grid-template-columns:60px minmax(180px,1fr) 90px 90px 95px 100px 90px 26px;gap:10px;align-items:center}.order-grid-heading{background:#e9f3f6;border:1px solid #ccdfe5;border-radius:6px 6px 0 0;padding:10px 12px;font-size:11px;color:#527680}.order-entry-screen .ops-order-line{border-radius:0;border-top:0;margin:0;padding:9px 12px}.order-entry-screen .ops-order-line:last-child{border-radius:0 0 6px 6px}.order-entry-screen .ops-line-head>div>label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.order-entry-screen .ops-order-line .ops-line-head input:not([type=checkbox]):not([type=hidden]),.order-entry-screen .ops-order-line .ops-line-head select,.order-entry-screen .line-instructions>summary,.order-entry-screen .line-remove{height:34px}.line-price output,.line-total output{display:block;font-size:12px;padding:9px 0;white-space:nowrap}.line-total output{font-weight:700}.order-entry-screen .ops-line-meta{margin-top:5px;font-size:10px}.order-entry-screen .ops-line-meta>span:nth-child(2),.order-entry-screen .ops-line-meta>strong{display:none}.order-entry-screen #ops-add-line{margin-top:10px;font-size:12px;padding:8px 12px}.order-entry-bottom{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px;align-items:start;margin-top:16px}.order-entry-notes{margin:0}.order-entry-bottom .ops-summary{margin:0;padding:14px 18px;border-radius:7px}.order-entry-bottom .ops-summary strong{font-size:20px}.order-entry-bottom .ops-summary small{font-size:10px}.order-entry-screen>form>footer{padding:12px 0;margin-top:18px}
@media(max-width:1150px){.order-entry-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.order-grid-heading,.order-entry-screen .ops-order-line .ops-line-head{grid-template-columns:55px minmax(150px,1fr) 80px 80px 80px 85px 80px 24px;gap:7px}}
@media(max-width:1000px){.order-grid-heading{display:none}.order-entry-screen .ops-order-line .ops-line-head{grid-template-columns:60px minmax(160px,1fr) 90px 90px;gap:10px;align-items:end}.order-entry-screen .ops-line-head>div>label{position:static;width:auto;height:auto;clip-path:none;display:block}.order-entry-screen .ops-order-line{border-top:1px solid #ccdfe5;margin:8px 0;border-radius:6px}.order-entry-screen .line-instructions,.order-entry-screen .line-remove,.order-entry-screen .ops-line-head>div{grid-column:auto;grid-row:auto}.order-entry-screen .line-item-picker{grid-column:auto}.order-entry-screen .line-instructions{align-self:end}}
@media(max-width:700px){.workspace-content.order-entry-active{padding:18px 14px}.order-entry-fields{grid-template-columns:1fr}.order-entry-fields>div{grid-template-columns:100px minmax(0,1fr)}.order-entry-screen .ops-order-line .ops-line-head{grid-template-columns:60px minmax(0,1fr)}.order-entry-bottom{grid-template-columns:1fr;gap:16px}}
@media(max-width:1000px){.order-entry-screen .ops-order-line .ops-line-head>div:nth-child(3),.order-entry-screen .ops-order-line .ops-line-head>div:nth-child(4),.order-entry-screen .ops-order-line .line-item-picker,.order-entry-screen .ops-order-line .line-instructions,.order-entry-screen .ops-order-line .line-remove{grid-column:auto;grid-row:auto}}
/* Order screen: header, customer strip, tabs; items with totals at the bottom. */
.order-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 10px}
.order-head-title{display:flex;align-items:center;gap:10px}
.order-head-title strong{font-size:20px;color:var(--ink)}
.order-info{display:grid;grid-template-columns:2fr 2fr 1fr 1fr 1fr;gap:1px;background:var(--line);border:1px solid var(--line);border-radius:6px;overflow:hidden;margin:0 0 12px}
.order-info>div{background:#fff;padding:8px 12px;min-width:0}
.order-info span{display:block;font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:#63808b;margin-bottom:2px}
.order-info strong{display:block;font-size:13.5px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-info small{display:block;font-size:12px;color:#587e84;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.order-tabs button span{display:inline-block;margin-left:4px;font-size:11px;background:var(--paper);border-radius:8px;padding:0 6px}
.order-tab-body .crm-table td.num,.order-tab-body .crm-table th:nth-child(n+3){text-align:right}
.order-tab-body .crm-table td.num small{text-align:right}
.order-line-note{color:#7a4d05!important}
.order-bottom{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-top:10px}
.order-notes span{display:block;font-size:10.5px;letter-spacing:.05em;text-transform:uppercase;color:#63808b}
.order-notes p{margin:2px 0 0;font-size:12.5px;color:#40555b;max-width:640px}
.order-totals{border-collapse:collapse;min-width:300px;background:#fff;border:1px solid var(--line);border-radius:6px;font-size:13px}
.order-totals th,.order-totals td{padding:6px 14px;border-top:1px solid #edf3f4}
.order-totals th{text-align:left;font-weight:400;color:#587e84}
.order-totals td{text-align:right;color:var(--ink)}
.order-totals tr:first-child th,.order-totals tr:first-child td{border-top:0}
.order-totals .order-total th,.order-totals .order-total td{font-weight:700;font-size:15px;color:var(--ink);border-top:2px solid var(--ink)}
@media(max-width:900px){.order-info{grid-template-columns:1fr 1fr}.order-bottom{flex-direction:column}}
/* Receiving */
.rcv-heading{margin:14px 0 6px}
.rcv-line{display:grid;grid-template-columns:minmax(220px,2.2fr) 110px 110px 150px 130px 32px;gap:6px;align-items:center;margin:0 0 6px}
.rcv-line .crm-close{width:32px;height:32px}
.rcv-info{grid-template-columns:2fr 1fr 1fr 1.2fr 1.2fr}
.rcv-voided td{opacity:.6}
@media(max-width:900px){.rcv-line{grid-template-columns:1fr 1fr}}
.rcv-line select,.rcv-line input{height:34px!important;min-height:0;box-sizing:border-box;border:1px solid #c8dadd;border-radius:5px;background:#fff;padding:4px 8px;font:inherit;font-size:12.5px;color:var(--ink);width:100%}
