/* Shared web/desktop weighing workspace; scoped to preserve surrounding POS controls. */
.lq-panel,.lq-anchor,.lq-dialog{font:14px/1.45 'Segoe UI',system-ui,sans-serif;color:#193e35;box-sizing:border-box}
.lq-panel *,.lq-anchor *,.lq-dialog *{box-sizing:border-box}
.lq-panel{border:1px solid #cbded8;border-radius:14px;margin:12px 0;background:#fff;overflow:hidden;box-shadow:0 2px 6px #193e3505}
.lq-panel>summary{display:flex;align-items:center;gap:12px;padding:14px 16px;cursor:pointer;list-style:none;background:#f2f8f5}
.lq-panel>summary::-webkit-details-marker{display:none}
.lq-panel-icon,.lq-window-icon{display:grid;place-items:center;background:#dcefe5;color:#16664f;border:1px solid #bedbcd;border-radius:10px;width:38px;height:38px;font-size:13px;font-weight:750;flex-shrink:0}
.lq-panel-title{display:grid;gap:2px}.lq-panel-title strong{font-size:14px;font-weight:700}.lq-panel-title small{font-size:11px;color:#637d72}
.lq-expand-label{margin-left:auto;font-size:11px;color:#527468;white-space:nowrap}.lq-expand-label:after{content:'⌄';display:inline-block;margin-left:12px;font-size:18px}.lq-panel[open] .lq-expand-label:after{transform:rotate(180deg)}
.lq-panel-content{padding:16px}.lq-rates{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:12px}
.lq-rates label,.lq-item-rate-grid label,.lq-dialog label{display:grid;align-content:start;gap:6px;margin:0;font-size:12px;font-weight:600;color:#39594d}
.lq-rates input{width:100%;min-width:0}.lq-panel-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px}.lq-panel-status{font-size:12px;color:#17684e;margin:8px 0 0}.lq-panel-status:empty,.lq-error:empty{display:none}
.lq-anchor{min-width:150px;text-align:left;white-space:normal;margin:6px 0;font-size:12px;max-width:100%}
.lq-anchor[hidden]{display:none!important}
.lq-native-quantity[data-lq-mounted='true']{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:0!important;padding:0!important;border:0!important}
.lq-anchor button,.lq-dialog button,.lq-panel button{border:1px solid #c5d9cf;border-radius:9px;background:#fff;color:#225b47;cursor:pointer;min-height:38px;padding:8px 12px;font:600 12px/1.3 'Segoe UI',system-ui,sans-serif;transition:background .12s,border-color .12s}
.lq-anchor button:hover,.lq-dialog button:hover,.lq-panel button:hover{background:#eef7f1;border-color:#80b59a}
.lq-anchor>.lq-open{width:100%;display:block;text-align:center;background:#eaf5ef;border-color:#9ec9b1;color:#155c43;font-weight:700}
.lq-anchor>.lq-return-quantity{width:100%;margin-top:6px;background:#fff9ed;border-color:#e0ca93;color:#795511;font-size:11px}.lq-anchor>.lq-return-quantity:hover{background:#fff2d8;border-color:#ba984e}
.lq-summary{font-size:12px;font-weight:700;color:#19674d;margin:5px 0}
.lq-entry,.lq-weigh-entry{display:flex;gap:8px;align-items:end}.lq-entry input{width:80px;min-width:0;flex:1}.lq-entry button{padding:8px 13px;font-size:18px;line-height:1}
.lq-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:5px;max-height:74px;overflow:auto}.lq-tags button{min-height:25px;padding:3px 6px;background:#f1f6f3;font-size:10px;color:#4a6b5b}
.lq-dialog{border:1px solid #d4e1d9;border-radius:20px;padding:0;width:min(800px,94vw);max-width:94vw;max-height:92vh;box-shadow:0 24px 90px #102f304d;background:#fff;margin:auto}
.lq-dialog::backdrop{background:#112e3975;backdrop-filter:blur(3px)}
body:has(.lq-dialog[open]){overflow:hidden!important}
.lq-dialog[open]{display:flex;flex-direction:column;overflow:hidden}
.lq-dialog header{padding:18px 24px;border-bottom:1px solid #dfe9e3;display:flex;align-items:center;gap:13px;background:#f9fcfa;flex-shrink:0}
.lq-dialog header>div{min-width:0;flex:1}.lq-dialog h2{font-size:21px;font-weight:750;line-height:1.25;margin:3px 0 0;overflow-wrap:anywhere;color:#163e2f}
.lq-dialog header small{font-size:11px;font-weight:600;color:#688272}.lq-dialog .lq-close{min-width:36px;min-height:36px;padding:2px;font-size:25px;font-weight:400;background:transparent;border-color:transparent;color:#6e8277;flex-shrink:0}
.lq-dialog section{padding:20px 24px;min-height:0;overflow:auto;flex:1}.lq-dialog h3{font-size:14px;font-weight:750;margin:0;color:#224b38}.lq-section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.lq-help{font-size:11px;line-height:1.5;font-weight:400;color:#6b8275;margin:5px 0 0;white-space:normal}
.lq-weigh-card{border:1px solid #d9e7df;background:#f7faf8;border-radius:13px;padding:16px;margin-bottom:20px}
.lq-weigh-entry>label{flex:1;min-width:0}.lq-weigh-entry input{font-size:20px;font-weight:700;min-height:48px}.lq-weigh-entry>button{min-height:48px;background:#1a7454;color:#fff;border-color:#1a7454;padding:12px 18px;white-space:nowrap}.lq-weigh-entry>button:hover{background:#135d42}
.lq-dialog input,.lq-anchor input,.lq-panel input,.lq-dialog select{border:1px solid #bdcec3;border-radius:8px;padding:9px 10px;background:#fff;color:#233f30;font:inherit;min-height:38px;box-shadow:none;max-width:none}
.lq-dialog label>input,.lq-dialog label>select{width:100%;min-width:0}.lq-dialog input[readonly],.lq-panel input[readonly]{background:#eef3ef;color:#637a6a;border-color:#d6e0d9}
.lq-dialog .lq-weigh-entry input{font-size:20px;font-weight:700}
.lq-draft-parts{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px;max-height:155px;overflow:auto}.lq-draft-parts:empty{display:none}.lq-draft-parts button{background:#e5f2e9;border-color:#bbd9c6;color:#205b3e;padding:7px 10px;min-height:34px}
.lq-gross-row{display:flex;align-items:end;gap:12px;margin-top:14px}.lq-gross-row label{flex:1;min-width:0}.lq-gross-row input{font-size:17px;font-weight:700}.lq-gross-row button{max-width:42%;min-height:42px;font-size:11px}
.lq-container-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.lq-container-card{padding:12px;border:1px solid #dbe6de;border-radius:11px;background:#fff;min-width:0}.lq-container-title{display:grid;gap:3px;min-height:38px;margin-bottom:8px}.lq-container-title strong{font-size:12px;overflow-wrap:anywhere}.lq-override{font-size:10px;color:#737e50}.lq-container-card label{font-size:10px;font-weight:500}.lq-container-card input{font-size:17px;font-weight:650;min-height:42px}.lq-container-result{display:block;font-size:10px;line-height:1.5;color:#56715f;margin-top:7px;overflow-wrap:anywhere}
.lq-item-rates{border:1px solid #d6e4da;border-radius:11px;background:#f7faf8;padding:12px 14px;margin-top:13px}.lq-item-rates summary{cursor:pointer;font-size:12px;font-weight:700;color:#355c44}.lq-item-rate-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:13px 0}.lq-item-rate-grid label{min-width:0}.lq-item-rate-grid input{width:100%;min-width:0}
.lq-formula{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #badac8;background:#eef7f1;border-radius:13px;overflow:hidden;margin-top:20px}.lq-metric{padding:13px 15px;min-width:0;border-right:1px solid #cfe3d6}.lq-metric:last-child{border-right:0;background:#176e4e;color:#fff}.lq-metric>span{display:block;font-size:11px;margin-bottom:3px}.lq-metric>strong{font-size:24px;font-weight:750;line-height:1.25;overflow-wrap:anywhere}.lq-metric>small{display:block;font-size:10px;margin-top:2px;opacity:.75}
.lq-result-block{padding:0 24px 14px;flex-shrink:0}.lq-result-block .lq-formula{margin-top:0}
.lq-dialog footer{flex-shrink:0;background:#fff;border-top:1px solid #dde7df;padding:14px 24px;display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}.lq-dialog footer>[data-lq-action='reset-rates']{margin-right:auto;font-size:11px}.lq-dialog .lq-primary,.lq-panel [data-lq-action='apply-bill-rates']{background:#176e4e;color:#fff;border-color:#176e4e}.lq-dialog .lq-primary:hover,.lq-panel [data-lq-action='apply-bill-rates']:hover{background:#10583d}.lq-dialog .lq-primary{min-width:175px}
.lq-error{color:#b32626;font-size:12px;line-height:1.5;white-space:normal;margin-top:8px}.lq-dialog button:disabled,.lq-panel button:disabled,.lq-anchor button:disabled{opacity:.45;cursor:not-allowed}.lq-anchor :focus-visible,.lq-dialog :focus-visible,.lq-panel :focus-visible{outline:3px solid #3ca17b;outline-offset:2px}
.lq-choice{width:min(480px,94vw)}.lq-choice section{display:grid;gap:16px}.lq-choice .lq-checkbox{display:flex;align-items:start;gap:10px}.lq-choice .lq-checkbox>input{width:17px;height:17px;min-height:17px;flex-shrink:0;order:-1;margin:1px 0 0;accent-color:#176e4e}
@media(max-width:600px){.lq-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0;border:0;margin:0}.lq-dialog header{padding:14px}.lq-dialog h2{font-size:18px}.lq-dialog section{padding:14px}.lq-dialog footer{padding:12px 14px;gap:8px}.lq-dialog footer>[data-lq-action='reset-rates']{flex-basis:100%;margin:0;order:2;min-height:30px}.lq-dialog footer .lq-primary{flex:1;min-width:0}.lq-weigh-card{padding:12px}.lq-section-heading>.lq-help{display:none}.lq-weigh-entry{gap:7px}.lq-weigh-entry>button{padding:10px;font-size:11px}.lq-container-cards,.lq-item-rate-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lq-container-card{padding:10px}.lq-gross-row{gap:7px}.lq-gross-row button{padding:7px;font-size:10px}.lq-metric{padding:11px 9px}.lq-metric>span{font-size:10px}.lq-metric>strong{font-size:21px}.lq-panel>summary{padding:12px;gap:9px}.lq-panel-title strong{font-size:12px}.lq-expand-label{font-size:0}.lq-expand-label:after{font-size:20px;margin-left:0}.lq-panel-content{padding:12px}.lq-rates{grid-template-columns:repeat(2,minmax(0,1fr))}.lq-choice{height:auto;max-height:90dvh;width:94vw;margin:auto;border-radius:16px;border:1px solid #d4e1d9}}
@media(prefers-reduced-motion:reduce){.lq-dialog,.lq-panel,.lq-anchor button,.lq-dialog button,.lq-panel button{animation:none;transition:none}}
@media(max-width:600px){.lq-result-block{padding:0 14px 12px}}
@media print{.lq-anchor,.lq-panel,.lq-dialog{display:none!important}}
