/* 25.3.48. Last-loaded overrides are scoped to live components, including moved dialogs. */
html body .eo-native-form[data-module="qc"] .eo-qc-summary{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important;max-width:100%!important;min-width:0!important}
html body .eo-native-form[data-module="qc"] .eo-qc-summary>label{display:flex!important;flex-direction:column!important;gap:7px!important;min-width:0!important;width:auto!important;max-width:100%!important;margin:0!important;box-sizing:border-box!important;align-self:stretch!important}
html body .eo-native-form[data-module="qc"] .eo-qc-summary input{display:block!important;box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;height:44px!important;padding:9px 10px!important;margin:0!important;font:700 14px/1.4 Arial,sans-serif!important}
html body #eoApp .eo-qc-job-summary{flex-wrap:wrap!important;min-width:0}
html body #eoApp .eo-qc-main-identity48{grid-column:1/-1;flex:1 0 100%;display:flex;flex-wrap:wrap;gap:6px 16px;padding-top:10px;min-width:0;color:#e0d7c3;font:12px/1.45 Arial,sans-serif;white-space:normal}
html body #eoApp .eo-qc-main-identity48>span{display:flex;gap:5px;align-items:baseline;max-width:100%;overflow-wrap:anywhere}
html body #eoApp .eo-qc-main-identity48 small{font:700 9px/1.4 Arial,sans-serif;color:#aa9977;white-space:nowrap}
/* Each machine gets the whole available row. Header=Head, row=Needle, cell=Code. */
html body #eoApp [data-eo-consumables] .eo-machines,html body #eoApp [data-eo-consumables] [data-machine-summary]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:14px!important}
html body #eoApp [data-eo-consumables] .eo-machine-card.eo-machine-wide48{width:100%!important;box-sizing:border-box!important;padding:14px!important;min-width:0!important;overflow:visible!important}
html body #eoApp [data-eo-consumables] .eo-machine-wide48 header{margin-bottom:10px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;flex-wrap:wrap!important}
html body #eoApp [data-eo-consumables] .eo-machine-matrix48{display:grid!important;grid-template-columns:52px repeat(var(--head-count),minmax(0,1fr))!important;gap:3px!important;min-width:0!important;width:100%!important}
html body #eoApp [data-eo-consumables] .eo-machine-matrix48>strong,html body #eoApp [data-eo-consumables] .eo-machine-matrix48>small{display:grid;place-items:center;padding:5px 2px;font:700 12px/1.3 Arial,sans-serif;color:#d9be7b;background:#15130f;min-width:0}
html body #eoApp [data-eo-consumables] .eo-machine-matrix48>small{font-size:10px}
html body #eoApp [data-eo-consumables] .eo-machine-matrix48>button.eo-machine-slot{width:100%!important;min-width:0!important;max-width:100%!important;height:34px!important;min-height:34px!important;padding:0 2px 4px!important;font:700 12px/1.2 Arial,sans-serif!important;overflow:hidden!important;border-radius:3px!important}
html body #eoApp [data-eo-consumables] .eo-machine-matrix48>button.eo-machine-slot:hover{outline:1px solid #d5b46b;outline-offset:-1px}
/* Production: inner sections always start closed. No duplicate frame around image/buttons. */
html body form[data-module="production"] details.eo-production-fold48{padding:0!important;margin:0 0 10px!important;border:1px solid #403724!important;border-radius:8px!important;min-width:0!important;background:#0d0d0b!important;overflow:hidden!important}
html body form[data-module="production"] details.eo-production-fold48>summary{list-style:none!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;padding:12px!important;cursor:pointer!important;font:700 12px/1.4 Arial,sans-serif!important;color:#e4c271!important;min-width:0!important}
html body form[data-module="production"] details.eo-production-fold48>summary::before{content:'▸';color:#d9b365;margin-right:5px}
html body form[data-module="production"] details.eo-production-fold48[open]>summary::before{content:'▾'}
html body form[data-module="production"] details.eo-production-fold48>summary::-webkit-details-marker{display:none}
html body form[data-module="production"] details.eo-production-fold48>summary h4{font:700 12px/1.3 Arial,sans-serif!important;margin:0!important;color:#e8d7af!important}
html body form[data-module="production"] details.eo-production-fold48>summary>.eo-pw-thread-heading46{display:flex!important;flex:1!important;align-items:center!important;margin:0!important}
html body form[data-module="production"] details.eo-production-fold48>summary>.eo-fold-count48{margin-left:auto;font:11px/1.3 Arial,sans-serif;color:#a89976;white-space:nowrap}
html body form[data-module="production"] details.eo-production-fold48:not([open])>.eo-production-fold-body48{display:none!important}
html body form[data-module="production"] .eo-production-fold-body48{padding:12px!important;border-top:1px solid #30291e;min-width:0!important}
html body form[data-module="production"] .eo-pw-reference{grid-template-columns:minmax(0,1fr) minmax(160px,24%)!important}
html body form[data-module="production"] [data-pw-files]{display:flex!important;flex-wrap:wrap!important;gap:10px!important;min-width:0!important}
html body form[data-module="production"] .eo-pw-file{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:150px!important;min-width:0!important;max-width:100%!important;padding:7px!important;margin:0!important;border:1px solid #4b3d23!important;border-radius:6px!important;background:#10100e!important;box-shadow:none!important;box-sizing:border-box!important;overflow:hidden!important}
html body form[data-module="production"] .eo-pw-file .eo-pw-file-thumb{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:7px!important;position:static!important;width:100%!important;height:auto!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;outline:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;box-sizing:border-box!important}
html body form[data-module="production"] .eo-pw-file img{display:block!important;position:static!important;width:100%!important;height:155px!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;background:#1b1a17!important;border:0!important;border-radius:0!important;margin:0!important;transform:none!important}
html body form[data-module="production"] .eo-pw-file .eo-pw-file-name{display:block!important;position:static!important;width:100%!important;min-width:0!important;margin:0!important;padding:0!important;white-space:normal!important;overflow-wrap:anywhere!important;font:11px/1.35 Arial,sans-serif!important;color:#e5dfd1!important;background:transparent!important;max-height:none!important;transform:none!important}
html body form[data-module="production"] .eo-production-colours48{display:block!important;width:100%;min-width:0}
html body .eo-thread-edit-row48{display:grid!important;grid-template-columns:30px minmax(130px,1fr) minmax(130px,1fr) minmax(90px,.7fr) 32px!important;gap:10px!important;align-items:end!important;margin:0 0 10px;min-width:0}
html body .eo-thread-edit-row48>label{display:grid!important;gap:5px!important;min-width:0!important;font:700 10px/1.3 Arial,sans-serif!important;color:#a89979!important}
html body .eo-thread-edit-row48 select{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;height:38px!important;font:13px/1.3 Arial,sans-serif!important;padding:6px!important;border:1px solid #463b29!important;border-radius:5px;background:#090909!important;color:#eee!important;color-scheme:dark}
html body .eo-colour-display48{display:flex;gap:7px;align-items:center;min-height:38px;font:12px/1.3 Arial,sans-serif;overflow-wrap:anywhere}
html body .eo-colour-display48 i{width:17px;height:17px;border-radius:50%;border:1px solid #888;flex-shrink:0}
html body .eo-thread-seq48{align-self:center;color:#e1bc6a;font-size:14px;font-weight:bold}
html body .eo-thread-edit-row48 button{width:32px!important;height:32px!important;min-width:0!important;padding:0!important;border:1px solid #743d32!important;border-radius:5px!important;background:#1c110c!important;color:#e78774!important}
html body .eo-colour-actions48{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html body .eo-colour-actions48 button{padding:8px 10px!important;font:700 11px/1.3 Arial,sans-serif!important;border:1px solid #796234!important;border-radius:5px!important;background:#1b170e!important;color:#e5c271!important}
html body .eo-colour-actions48 button:disabled{opacity:.4;cursor:default}
html body [data-thread-msg48]{font:12px/1.4 Arial,sans-serif;color:#a8bc96}html body [data-thread-msg48].error{color:#e8a596}
/* AR table uses its container width, never the inherited table min-width. */
html body .er-receipts,html body .er-receipts *{box-sizing:border-box}
html body .er-receipts .er-invoices{overflow-x:visible!important;min-width:0!important}
html body .er-receipts .er-invoice-columns,html body .er-receipts .er-invoice>summary{min-width:0!important;width:100%!important;grid-template-columns:1.1fr .8fr .8fr 1.45fr .85fr .85fr .75fr .8fr 1fr!important;gap:8px!important}
html body .er-receipts .er-invoice>summary>*{min-width:0!important;overflow-wrap:anywhere!important;white-space:normal!important}
html body .er-receipts .er-breakdown{overflow:visible!important;min-width:0!important;max-width:100%!important}
html body .er-receipts .er-breakdown table{width:100%!important;min-width:0!important;max-width:100%!important;table-layout:fixed!important;margin:0!important;border-collapse:collapse!important;font:12px/1.45 Arial,sans-serif!important}
html body .er-receipts .er-breakdown th,html body .er-receipts .er-breakdown td{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important;padding:9px!important;font-size:inherit!important}
html body .er-receipts .er-breakdown th{font-size:10px!important}
html body .er-receipts .er-breakdown th:nth-child(1){width:14%}html body .er-receipts .er-breakdown th:nth-child(2){width:46%}html body .er-receipts .er-breakdown th:nth-child(3){width:8%}html body .er-receipts .er-breakdown th:nth-child(4),html body .er-receipts .er-breakdown th:nth-child(5){width:16%}
html body .er-receipts .er-breakdown td:nth-child(n+3),html body .er-receipts .er-breakdown th:nth-child(n+3){text-align:right!important;font-variant-numeric:tabular-nums}
html body .er-receipts .er-period>summary{min-width:0!important;grid-template-columns:minmax(0,2fr) repeat(4,minmax(0,1fr)) auto!important}
html body .er-receipts .er-period>summary>*{min-width:0;overflow-wrap:anywhere}
html body .er-receipts .er-row-actions{flex-wrap:wrap}
html body .er-billing-tabs48{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
html body .er-billing-tabs48 button{padding:9px 12px!important;font:700 12px Arial,sans-serif!important}
html body .er-billing-tabs48 button[aria-selected="true"]{background:#c5a252!important;color:#111!important;border-color:#c5a252!important}
html body .er-receipts .er-docs48{display:flex!important;flex-wrap:wrap!important;gap:10px!important}
html body .er-receipts .er-docs48 .er-doc{display:flex!important;flex-direction:column!important;gap:6px!important;align-items:stretch!important;width:155px!important;min-width:0!important;max-width:100%!important;padding:7px!important;border:1px solid #4b3d26!important;border-radius:6px!important;background:#11100c!important}
html body .er-receipts .er-docs48 .er-doc>span{font:700 10px/1.3 Arial,sans-serif!important;min-width:0!important}
html body .er-receipts .er-docs48 .er-doc button.er-doc-thumb48{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:6px!important;width:100%!important;min-width:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html body .er-receipts .er-doc-thumb48 img{display:block!important;width:100%!important;height:153px!important;object-fit:contain!important;background:#1c1b17!important;border:0!important;border-radius:0!important}
html body .er-receipts .er-doc-thumb48 small{font:10px/1.35 Arial,sans-serif!important;color:#cac1af!important;overflow-wrap:anywhere!important;white-space:normal!important;text-align:left}
html body .er-receipts .er-doc a{min-width:0!important;text-align:center;font:700 10px/1.3 Arial,sans-serif!important}
html body .er-receipts .er-detail-totals{flex-wrap:wrap!important}
/* Full Invoice Manager is isolated from theme rules in its own iframe. */
html body .eo-invoice-manager48{width:100%!important;height:100%!important;min-height:640px!important;display:block!important;border:0!important;border-radius:8px;background:#0c0d0f}
html body .eo-accounting-pane[data-accounting-pane="invoice_manager"].eo-invoice-modal-pane{padding:0!important;width:min(1800px,98vw)!important;height:94vh!important;max-height:94vh!important;overflow:hidden!important}
html body .eo-accounting-pane[data-accounting-pane="invoice_manager"]>.eo-invoice-modal-close{display:none!important}
html body .eo-finance-tools48{margin:15px 0;padding:12px;border:1px solid #463b24;border-radius:7px}
html body .eo-finance-tools48>summary{cursor:pointer;color:#d5b66d}
@media(max-width:1000px){html body .er-receipts .er-invoice-columns{display:none!important}html body .er-receipts .er-invoice>summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}html body .er-receipts .er-invoice>summary>*::before{content:attr(data-label);display:block;font:9px Arial,sans-serif;color:#938367}html body .eo-thread-edit-row48{grid-template-columns:26px minmax(0,1fr) minmax(0,1fr) 32px!important}html body .eo-thread-edit-row48>.eo-colour-display48{grid-column:2/4;grid-row:2}html body .eo-thread-edit-row48>button{grid-column:4;grid-row:1}html body .eo-native-form[data-module="qc"] .eo-qc-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:650px){html body .eo-native-form[data-module="qc"] .eo-qc-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body .er-receipts .er-period>summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}html body .er-receipts .er-period>summary>div:first-child{grid-column:1/-1}html body .er-receipts .er-breakdown table{font-size:11px!important}html body .er-receipts .er-breakdown th,html body .er-receipts .er-breakdown td{padding:6px 3px!important}html body form[data-module="production"] .eo-pw-reference{grid-template-columns:1fr!important}html body #eoApp [data-eo-consumables] .eo-machine-matrix48{grid-template-columns:32px repeat(var(--head-count),minmax(0,1fr))!important;gap:2px!important}html body #eoApp [data-eo-consumables] .eo-machine-matrix48>button.eo-machine-slot{font-size:10px!important}}

html body #eoApp [data-eo-consumables] .eo-machine-axis48,html body #eoApp [data-eo-consumables] .eo-machine-needle48{display:grid;place-items:center;min-height:28px;font:700 12px Arial,sans-serif;color:#d7bd7e;background:#16130f}
html body .er-flat48{padding:10px}html body .er-flat-title48{font:700 15px Arial,sans-serif!important;color:#e2c274!important;margin:8px 0 12px!important}html body .er-doc-no-thumb48{display:grid;place-items:center;height:153px;background:#201b13;font:10px Arial,sans-serif;color:#b6a88e}
html body .eo-finance-tools-dialog48{width:min(1250px,96vw);max-height:92vh;overflow:auto;margin:auto;padding:20px;background:#10100d;color:#eee;border:1px solid #8d7137;border-radius:8px;font:13px/1.5 Arial,sans-serif}
html body .eo-finance-tools-dialog48::backdrop{background:#000b}html body .eo-finance-tools-dialog48 h2,html body .eo-finance-tools-dialog48 h3{color:#d6b968!important;font-size:18px!important}
html body form[data-module="production"] details.eo-production-fold48{display:block!important}
html body form[data-module="production"] details.eo-production-fold48[hidden]{display:none!important}
html body form[data-module="production"] [data-pw-files]{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(150px,23%)!important;gap:15px!important}
html body form[data-module="production"] .eo-pw-proof-list{display:flex!important;flex-wrap:wrap!important;gap:10px!important;min-width:0!important}
html body form[data-module="production"] .eo-pw-proof-area,html body form[data-module="production"] .eo-pw-machine-files{min-width:0!important}
@media(max-width:650px){html body form[data-module="production"] [data-pw-files]{grid-template-columns:1fr!important}}

html body .eo-production-history-list48>div{display:grid;grid-template-columns:1fr 1fr 1.2fr 1fr;gap:8px;padding:10px;border-bottom:1px solid #363025;font:12px Arial,sans-serif}html body .eo-production-history-list48 p{grid-column:1/-1;margin:0;color:#a99c83;overflow-wrap:anywhere}
html body #eoApp [data-eo-consumables] .eo-machine-matrix48{max-width:calc(52px + var(--head-count)*150px)!important}
html body .er-receipts .er-period:not([open]).er-company48>.er-period-actions,html body .er-receipts .er-period:not([open]).er-company48>.er-invoices{display:none!important}
/* Keep list summaries compact while detail text remains fully readable. */
.er-receipts .er-invoice > summary > span:nth-child(4){display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:3;overflow:hidden!important;max-height:4.5em!important}
.er-receipts .er-company48 > summary > div:first-child > strong::before{content:'▸';display:inline-block;width:16px;color:#d6b76b}
.er-receipts .er-company48[open] > summary > div:first-child > strong::before{content:'▾'}
.er-receipts .er-invoice > summary > span:first-child > b::before{content:'▸ ';color:#d6b76b}
.er-receipts .er-invoice[open] > summary > span:first-child > b::before{content:'▾ '}
