/* 25.3.46. Last-loaded, deliberately scoped to the live portal components. */
html body #eoApp .eo-native-form[data-module="arrange"] .eo-proof-select-label{display:flex!important;flex-direction:row!important;align-items:center!important;gap:8px!important;min-height:28px!important;cursor:pointer!important;padding:4px!important}
html body #eoApp .eo-native-form[data-module="arrange"] input.eo-proof-checkbox46[type="checkbox"][data-proof-select]{display:inline-block!important;position:static!important;visibility:visible!important;opacity:1!important;appearance:auto!important;-webkit-appearance:checkbox!important;inline-size:20px!important;block-size:20px!important;width:20px!important;min-width:20px!important;max-width:20px!important;height:20px!important;min-height:20px!important;max-height:20px!important;padding:0!important;margin:0!important;clip:auto!important;clip-path:none!important;transform:none!important;flex:0 0 20px!important;accent-color:#d6ad59!important;cursor:pointer!important}
html body #eoApp .eo-native-form[data-module="arrange"] .eo-proof-card.selected{outline:2px solid #dab461!important;outline-offset:-2px!important;background:#19150c!important}
html body #eoApp .eo-native-form[data-module="arrange"] .eo-proof-select-label span{font:700 11px/1.2 Arial,sans-serif!important;color:#f1ddb0!important}
html body .eo-native-form[data-module="qc"] .eo-qc-source46{font:12px/1.45 Arial,sans-serif;color:#cbb57e;grid-column:1/-1;margin:8px 0 12px}
html body .eo-native-form[data-module="qc"] .eo-qc-source46.error{color:#edb59b}
html body .eo-native-form[data-module="qc"] .eo-qc-summary input{font-variant-numeric:tabular-nums}
/* Narrow button grids used to inherit full-size theme padding and clip their text. */
html body #eoApp [data-eo-consumables] .eo-machine-card{min-width:0;overflow-x:auto!important}
html body #eoApp [data-eo-consumables] .eo-machine-heads{min-width:max-content!important;gap:4px!important}
html body #eoApp [data-eo-consumables] .eo-machine-head{grid-template-columns:26px repeat(var(--eo-needles,15),36px)!important;gap:2px!important}
html body #eoApp [data-eo-consumables] button.eo-machine-slot{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center!important;width:36px!important;min-width:36px!important;height:30px!important;min-height:30px!important;padding:0 1px 3px!important;margin:0!important;font:700 10px/1 Arial,sans-serif!important;text-indent:0!important;letter-spacing:0!important;white-space:nowrap!important;color:#eee!important;background:#141414!important;border:1px solid #35332c!important;overflow:visible!important}
html body #eoApp [data-eo-consumables] button.eo-machine-slot .eo-slot-code46{display:block!important;opacity:1!important;visibility:visible!important;font:inherit!important;color:inherit!important;max-width:100%;overflow:hidden;text-overflow:ellipsis}
html body #eoApp [data-eo-consumables] .eo-machine-head>span{display:flex;align-items:center;font-size:9px!important}
html body #eoApp [data-eo-consumables] .eo-machine-card header>span{display:grid;gap:3px}
html body #eoApp [data-eo-consumables] .eo-machine-card header b{font-size:14px!important}
html body #eoApp [data-eo-consumables] .eo-cons-title h3{font:800 21px/1.3 Arial,sans-serif!important}
html body .eo-pw-thread-heading46{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
html body .eo-pw-thread-heading46 h4{margin:0!important}
html body [data-pw-change-thread],html body [data-pw-change-code]{background:#1b170d!important;color:#e9c772!important;border:1px solid #77602d!important;border-radius:5px!important;padding:8px 10px!important;font:700 11px/1.2 Arial,sans-serif!important;cursor:pointer}
html body .eo-pw-thread-row{grid-template-columns:30px minmax(130px,1fr) 80px minmax(130px,1fr) auto!important}
/* Shared live stock-change dialog. showModal puts it above the Production iframe/modal. */
#eoThreadChange46{box-sizing:border-box;width:min(1050px,96vw);max-height:93vh;margin:auto;padding:0;border:1px solid #8a7139;border-radius:10px;background:#0d0d0c;color:#eee;font:13px/1.4 Arial,sans-serif;box-shadow:0 20px 90px #0009}
#eoThreadChange46::backdrop{background:#000a}
#eoThreadChange46 [hidden]{display:none!important}
#eoThreadChange46 header{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px;background:#17140e;border-bottom:1px solid #493d28}
#eoThreadChange46 h3,#eoThreadChange46 p{margin:0}#eoThreadChange46 h3{font-size:16px;color:#efcb7f}
#eoThreadChange46 button{background:#17140e;color:#e4c584;border:1px solid #62502c;border-radius:5px;padding:8px 12px;font:700 12px/1.2 Arial,sans-serif;cursor:pointer}
#eoThreadChange46 button:disabled{opacity:.5;cursor:default}
#eoThreadChange46 .mt46-body{padding:15px}#eoThreadChange46 .mt46-top{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
#eoThreadChange46 label{display:grid;gap:5px;font-size:11px;color:#a89c85}
#eoThreadChange46 input,#eoThreadChange46 select{box-sizing:border-box;width:100%;min-width:0;min-height:36px;background:#090909;color:#eee;border:1px solid #494133;border-radius:5px;padding:7px;font:13px/1.2 Arial,sans-serif;color-scheme:dark}
#eoThreadChange46 .mt46-heads{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#eoThreadChange46 .mt46-head{border:1px solid #373126;padding:10px;border-radius:7px}
#eoThreadChange46 .mt46-head.suggested{border-color:#b3934d}
#eoThreadChange46 .mt46-head-title{display:flex;justify-content:space-between;font-weight:700;margin-bottom:8px}
#eoThreadChange46 .mt46-head-title small{color:#a48f5e;font-size:10px}
#eoThreadChange46 .mt46-slots{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px}
#eoThreadChange46 .mt46-slot{display:grid;place-items:center;gap:3px;padding:8px 2px;background:#111;min-height:68px;border-color:#39342a}
#eoThreadChange46 .mt46-slot strong{font-size:12px}#eoThreadChange46 .mt46-slot small{font-size:9px;color:#aaa}
#eoThreadChange46 .mt46-dot{display:block;width:17px;height:17px;border-radius:50%;border:1px solid #8888}
#eoThreadChange46 .mt46-editor{border:1px solid #806333;padding:12px;margin:0 0 12px;background:#17130c;border-radius:8px}
#eoThreadChange46 .mt46-editor-fields{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:10px;margin:10px 0}
#eoThreadChange46 .mt46-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
#eoThreadChange46 .mt46-primary{background:#ceaa5b;color:#111}
#eoThreadChange46 .mt46-message{font-size:12px;color:#ddbf73;margin:10px 0;white-space:pre-line}
/* Pickup: compact selector with true Sub Job count and explicit selected state. */
html body #eoApp .eo-pickup-split{display:grid!important;grid-template-columns:minmax(250px,34%) minmax(0,1fr)!important;gap:12px!important;min-height:0!important}
html body .eo-pickup-selector{display:flex;flex-direction:column;gap:6px;max-height:72vh!important;overflow-y:auto;padding:2px}
html body .eo-pickup-select{display:grid!important;gap:5px!important;box-sizing:border-box!important;width:100%!important;padding:10px!important;background:#10100e!important;border:1px solid #332e20!important;border-radius:7px!important;text-align:left!important;color:#ddd!important;text-transform:none!important}
html body .eo-pickup-select[aria-selected="true"]{border-color:#c2a156!important;background:#1a170f!important;box-shadow:inset 3px 0 #c2a156}
html body .eo-pickup-selector-title{display:flex!important;justify-content:space-between;gap:8px;align-items:center}
html body .eo-pickup-selector-title strong{font:700 11px/1.3 Arial,sans-serif!important;overflow-wrap:anywhere}
html body .eo-pickup-sub-count{display:grid;place-items:center;min-width:23px;height:23px;border:1px solid #5e4d27;border-radius:6px;font:700 12px/1 Arial,sans-serif;color:#e4c474}
html body .eo-pickup-selector-ref{font:11px/1.35 Arial,sans-serif!important;color:#b7ac96!important}
html body .eo-pickup-selector-meta{display:flex;gap:4px;align-items:center;flex-wrap:wrap}
html body .eo-pickup-selector-meta small{font:9px/1.3 Arial,sans-serif!important;border:1px solid #353022;border-radius:3px;padding:2px 3px;margin:0!important;color:#999!important}
html body .eo-pickup-selected-mark{margin-left:auto;font:700 8px/1.2 Arial,sans-serif;color:#e6bf65;visibility:hidden}
html body .eo-pickup-select[aria-selected="true"] .eo-pickup-selected-mark{visibility:visible}
html body .eo-pickup-job[hidden],html body .eo-pickup-select[hidden]{display:none!important}
html body .eo-pickup-selected .eo-pickup-detail{padding:0!important}
html body .eo-pickup-job-title{display:flex;justify-content:space-between;gap:8px;margin-bottom:12px;font:700 14px/1.4 Arial,sans-serif}
html body .eo-pickup-job-title span{font-size:10px;color:#cbb57c}
html body .eo-pickup-tools46{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin:10px 0}
html body .eo-pickup-tools46 input{flex:1;min-width:160px;min-height:34px;background:#080808;color:#eee;border:1px solid #383023;border-radius:5px;padding:6px 9px;font-size:12px}
html body .eo-pickup-tools46 button{font-size:10px!important;padding:6px 8px!important;border:1px solid #51452b;background:#12100b;color:#d9c089;border-radius:5px}
html body .eo-pickup-tools46 button[aria-pressed="true"]{border-color:#d5ac52}
/* Receipts are an actual wide working list, not a narrow preview card. */
html body .er-receipts{box-sizing:border-box!important;max-width:100%!important;min-width:0;background:#0c0c0b;border:1px solid #514127;border-radius:10px;padding:14px;font:12px/1.4 Arial,sans-serif;color:#eee}
html body .er-receipts [hidden]{display:none!important}
html body .er-receipts header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:12px}
html body .er-receipts h2{font:800 17px/1.3 Arial,sans-serif!important;margin:2px 0!important;color:#eee!important}
html body .er-receipts small{display:block;font:9px/1.35 Arial,sans-serif!important;color:#928d80!important;margin:3px 0!important}
html body .er-receipts button,html body .er-receipts .er-row-actions a,html body .er-receipts .er-period-actions a,html body .er-doc a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;background:#16130c;color:#e2c27a;border:1px solid #65522b;border-radius:4px;padding:6px 8px;font:700 10px/1.2 Arial,sans-serif;text-decoration:none;cursor:pointer;white-space:nowrap}
html body .er-receipts button:disabled{opacity:.45;cursor:not-allowed}
html body .er-receipts .primary{background:#cba757;color:#090909}
html body .er-toolbar{display:grid!important;grid-template-columns:minmax(180px,2fr) repeat(4,minmax(90px,1fr)) auto auto!important;gap:6px!important;margin:10px 0 12px!important;padding:0!important}
html body .er-toolbar input,html body .er-toolbar select{box-sizing:border-box;width:100%;min-width:0!important;height:34px;background:#101010;color:#eee;border:1px solid #39352b;border-radius:5px;padding:6px 8px;font:11px Arial,sans-serif!important;color-scheme:dark}
html body .er-current,html body .er-summary{display:grid;grid-template-columns:1.7fr repeat(4,1fr);border:1px solid #53462b;border-radius:8px;background:#12100c}
html body .er-current>div,html body .er-summary>div{padding:9px 10px;border-right:1px solid #2f291f}
html body .er-current strong,html body .er-summary strong{font:700 12px/1.4 Arial,sans-serif;color:#edca7b}
html body [data-er-current="paid"],html body [data-er-total="paid"]{color:#91bd97}.er-receipts [data-er-count]{font-size:10px;color:#c8ad6d}
html body .er-period{border:1px solid #3b3322;border-radius:8px;margin:10px 0;background:#0e0e0c;overflow:hidden}
html body .er-period>summary{display:grid;grid-template-columns:minmax(250px,2.5fr) repeat(4,minmax(65px,1fr)) auto;gap:10px;align-items:center;padding:11px 10px;list-style:none;cursor:pointer}
html body .er-period>summary>div:not(:first-child){text-align:right}
html body .er-period>summary strong{font:700 11px/1.35 Arial,sans-serif}
html body .er-statement-ref{font:8px/1.3 Arial,sans-serif;color:#a38c56}
html body .er-period-actions{display:flex;gap:5px;flex-wrap:wrap;align-items:center;padding:8px 10px;border-top:1px solid #30291d;border-bottom:1px solid #30291d}
html body .er-period-note{font-size:9px;color:#9a8970}.er-period-actions .er-period-note{flex-basis:100%}
html body .er-invoices{overflow-x:auto}
html body .er-receipts .er-invoice-columns,html body .er-receipts .er-invoice>summary{display:grid!important;grid-template-columns:minmax(115px,1.1fr) minmax(70px,.7fr) minmax(75px,.7fr) minmax(140px,1.5fr) minmax(82px,.85fr) minmax(85px,.8fr) minmax(75px,.75fr) 78px 126px!important;gap:9px!important;align-items:center;padding:11px 10px;box-sizing:border-box;min-width:1020px}
html body .er-receipts .er-invoice-columns{font:700 8px/1.2 Arial,sans-serif;color:#8e826b;padding-top:8px;padding-bottom:8px}
html body .er-invoice{border-top:1px solid #2b2820}
html body .er-receipts .er-invoice>summary{list-style:none;cursor:pointer;font:11px/1.45 Arial,sans-serif;text-transform:none}
html body .er-invoice>summary:hover,html body .er-invoice[open]>summary{background:#19160f}
html body .er-payment-status,html body [data-er-group-status]{font:700 9px/1.3 Arial,sans-serif;padding:4px 5px;border:1px solid #6a5630;border-radius:12px;color:#e4c578;justify-self:start;white-space:nowrap}
html body .er-row-actions{display:flex;gap:5px}
html body .er-receipts .er-row-actions button,html body .er-receipts .er-row-actions a{font-size:9px;padding:5px 6px}
html body .er-invoice-detail{padding:12px;min-width:0;border-top:1px solid #352c1d}
html body .er-invoice-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
html body .er-invoice-meta>div{padding:8px;border:1px solid #312b20;border-radius:5px}
html body .er-invoice-meta strong{font-size:11px;overflow-wrap:anywhere}
html body .er-invoice-detail h4{font:700 11px/1.3 Arial,sans-serif;color:#d8b666;margin:14px 0 8px}
html body .er-breakdown{overflow:auto;border:1px solid #312b20;border-radius:5px}
html body .er-breakdown table{width:100%;border-collapse:collapse;font-size:11px;color:#eee}
html body .er-breakdown th,html body .er-breakdown td{padding:9px;border-bottom:1px solid #2b261f;text-align:left;vertical-align:top}
html body .er-breakdown th{font-size:9px;color:#a78e5d}
html body .er-detail-totals{display:flex;justify-content:flex-end;gap:20px;margin:10px 0;font-size:11px;color:#e4c478}
html body .er-docs{display:flex;flex-wrap:wrap;gap:6px}
html body .er-doc{display:flex;align-items:center;gap:6px;border:1px solid #3d3322;border-radius:5px;padding:7px}
html body .er-doc>span{font-size:10px;font-weight:700;color:#d9bd81}
html body .er-one-preview{margin:10px 0;padding:8px;border:1px solid #5c4a2b;border-radius:7px}
html body .er-one-preview>div{display:flex;justify-content:space-between;margin-bottom:8px}
html body .er-one-preview iframe{width:100%;height:520px;border:0;background:#fff}
html body .er-summary{position:sticky;bottom:0;z-index:2;grid-template-columns:repeat(6,minmax(0,1fr));box-shadow:0 -4px 16px #0007}
html body .er-payment-entry{border:1px solid #534427;padding:9px;margin:10px 0;border-radius:5px}
html body .er-payment-entry>summary{cursor:pointer;color:#d3b568}
html body .er-payment-fields{display:grid;grid-template-columns:1fr 1fr 1fr 2fr;gap:8px;margin:10px 0}
html body .er-payment-form input,html body .er-payment-form select,html body .er-payment-form textarea{box-sizing:border-box;min-width:0;background:#080808;color:#eee;border:1px solid #443b2b;border-radius:4px;padding:6px;width:100%;font:12px Arial,sans-serif}
html body .er-payment-form input[type=checkbox]{appearance:auto;width:18px;height:18px;min-height:18px;padding:0;display:inline-block;margin-right:6px}
html body dialog.er-settle46{width:min(640px,92vw);max-height:88vh;overflow:auto;border:1px solid #8a7138;border-radius:10px;background:#12110d;color:#eee;font:13px/1.4 Arial,sans-serif;padding:20px}
html body dialog.er-settle46::backdrop{background:#000b}
html body dialog.er-settle46 button{margin:5px;padding:8px 12px;background:#302519;color:#f2d48d;border:1px solid #7b6231;border-radius:5px;cursor:pointer}
@media(max-width:1000px){html body .er-toolbar{grid-template-columns:2fr 1fr 1fr!important}html body .er-period>summary{grid-template-columns:2fr repeat(2,1fr)}html body .er-current{grid-template-columns:1.5fr repeat(2,1fr)}html body .er-invoice-meta{grid-template-columns:1fr 1fr}}
@media(max-width:720px){html body #eoApp .eo-pickup-split{grid-template-columns:1fr!important}html body .eo-pickup-selector{max-height:250px!important}#eoThreadChange46 .mt46-heads,#eoThreadChange46 .mt46-editor-fields{grid-template-columns:1fr}html body .er-summary{position:static;grid-template-columns:repeat(3,1fr)}html body .eo-pw-thread-row{grid-template-columns:26px 1fr 80px!important}html body .eo-pw-thread-row .colour,html body .eo-pw-thread-row button{grid-column:2/-1}}

/* Unpaid is moved out of #eoApp into a top-layer dialog at runtime. */
html body dialog.eo-workspace-dialog.eo-invoice-dialog{position:fixed!important;inset:0!important;transform:none!important;width:min(1440px,97vw)!important;max-width:97vw!important;height:93vh!important;max-height:93vh!important;padding:0!important;margin:auto!important;box-sizing:border-box!important}
html body dialog.eo-invoice-dialog .eo-invoice-dialog-content{width:100%!important;height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;padding:10px!important;box-sizing:border-box!important}
html body .eo-ar-window46{width:min(1440px,97vw)!important;max-width:97vw!important}
html body .er-settle46 label{display:block;margin:10px 0}
html body .er-settle46 input:not([type=checkbox]),html body .er-settle46 select{display:block;width:100%;box-sizing:border-box;background:#080808;color:#eee;border:1px solid #625235;padding:8px}
html body .er-settle46 input[type=checkbox]{width:18px;height:18px;appearance:auto}
html body .er-settle46 [role=status]{white-space:pre-line}

/* Proof labels must not inherit the generic Arrange field minimum width. */
html body #eoApp .eo-native-form[data-module="arrange"] .eo-proof-card .eo-proof-select-label{min-width:0!important;max-width:100%!important;width:fit-content!important;box-sizing:border-box!important;}
html body #eoApp [data-eo-consumables] .eo-machine-scroll46{font:10px/1.4 Arial,sans-serif!important;color:#9c917b!important;margin:6px 0!important;}

/* 25.3.47: nested QC content cannot leak below a collapsed parent. */
html body #eoApp details.eo-qc-job-card:not([open]) > .eo-qc-sub-list,
html body #eoApp details.eo-qc-sub-card:not([open]) > .eo-qc-sub-body47 {display:none!important}
html body #eoApp details.eo-qc-sub-card{padding:0!important;min-width:0}
html body #eoApp .eo-qc-sub-summary47{display:block!important;list-style:none!important;cursor:pointer;padding:12px 14px;border:0;background:#0d0d0c}
html body #eoApp .eo-qc-sub-summary47::-webkit-details-marker{display:none}
html body #eoApp .eo-qc-sub-card[open]>.eo-qc-sub-summary47{background:#19150d;border-bottom:1px solid #514127}
html body #eoApp .eo-qc-sub-chevron47{display:inline-block!important;margin-right:8px;color:#d6b567;font-size:18px!important}
html body #eoApp .eo-qc-sub-card[open]>.eo-qc-sub-summary47 .eo-qc-sub-chevron47{transform:rotate(90deg)}
html body #eoApp .eo-qc-sub-summary47 .eo-qc-sub-context{margin-top:7px}
html body #eoApp .eo-qc-sub-summary47 .eo-qc-summary-qty47{margin-left:auto}
html body #eoApp .eo-qc-sub-body47{min-width:0;padding:10px 12px 12px}
html body #eoApp .eo-qc-sub-body47 [data-qc-editor]{width:100%;min-width:0;margin:0}
html body #eoApp .eo-qc-sub-body47 .eo-native-form[data-module=qc]{margin:0!important;width:100%;box-sizing:border-box}
html body #eoApp .eo-qc-sub-body47 .eo-native-form[data-module=qc]>h3{font-size:18px!important}
html body #eoApp .eo-qc-history-local47{margin-top:10px}
html body #eoApp .eo-qc-history-body{overflow-x:auto}
html body #eoApp .eo-qc-history-fold:not([open])>.eo-qc-history-body{display:none!important}
html body .er-read-note47{font:12px/1.45 Arial,sans-serif!important;color:#ac9e83!important;margin:10px 0}
html body .er-read-error,html body .er-empty47{padding:14px;border:1px solid #9b6d3f;border-radius:6px;color:#ead7b2;background:#1c150f}
html body .er-empty47[hidden]{display:none!important}
html body .er-review47{padding:10px;color:#e8c18a;border:1px solid #675334;border-radius:5px;font:12px/1.5 Arial,sans-serif!important}
html body .er-review-badge47{color:#e8b77a!important;font-size:10px!important}
@media(max-width:800px){html body #eoApp .eo-qc-sub-summary47 .eo-qc-summary-qty47{margin-left:0}}

/* 25.3.47: physically swap loaded threads without a warehouse round trip. */
#eoThreadChange46 .mt47-source{outline:2px solid #d5ac52;outline-offset:-2px;background:#2a2111}
#eoThreadChange46 .mt47-target{outline:2px solid #94c5b4;outline-offset:-2px;background:#13251f}
#eoThreadChange46 .mt47-transfer-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}
#eoThreadChange46 .mt47-transfer-pair>div{display:grid;gap:6px;padding:12px;border:1px solid #806337;border-radius:6px;background:#0c0c0b}
#eoThreadChange46 .mt47-transfer-pair small{font-size:10px;color:#d2b77f}
#eoThreadChange46 .mt47-stock-note{margin-top:8px;color:#dbc18c;font-size:12px}
@media(max-width:700px){#eoThreadChange46 .mt47-transfer-pair{grid-template-columns:1fr}}
