.production-theme.has-split-estimate.estimate-catalog-open::after { display: none; }
.production-theme.has-split-estimate .estimate-catalog-drawer { display: none !important; }
.production-theme.has-split-estimate #estimateSplit[hidden] { display: none; }
.production-theme #estimateSplit { display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(460px, 1.2fr); gap: 0; min-width: 0; background: white; border: 1px solid #dce2e0; border-radius: 6px; overflow: hidden; }
.production-theme #estimateSplit * { box-sizing: border-box; letter-spacing: 0; }
.production-theme #estimateSplit :is(button,input,select) { min-width: 0; max-width: 100%; font-size: 12px; }
.production-theme #estimateSplit button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.production-theme #estimateSplit svg { width: 16px; height: 16px; flex: 0 0 16px; }
.production-theme #estimateSplit :is(.split-catalog,.split-estimate) { display: flex; flex-direction: column; min-width: 0; height: 660px; max-height: 80vh; }
.production-theme #estimateSplit .split-catalog { background: #f7f8f8; border-right: 1px solid #dce2e0; }
.production-theme #estimateSplit header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px 10px; min-height: 52px; }
.production-theme #estimateSplit h3 { font-size: 15px; line-height: 22px; margin: 0; }
.production-theme #splitCatalogCount, .production-theme #splitLineCount { font-size: 12px; font-weight: 500; color: #6d7875; }
.production-theme #splitCatalogTools { padding: 0 16px 10px; }
.production-theme #splitCatalogViews { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 12px 10px; }
.production-theme #splitCatalogViews button { padding: 6px 8px; min-height: 32px; background: transparent; color: #53605c; border: 1px solid transparent; }
.production-theme #splitCatalogViews button[aria-pressed=true] { background: white; border-color: #b8c9c2; color: #126e65; }
.production-theme #estimateSplit .split-favorite { position: absolute; top: 0; right: 0; width: 32px; height: 32px; padding: 6px; background: white; border: 1px solid #dce2e0; color: #67746d; z-index: 2; }
.production-theme #estimateSplit .split-favorite[aria-pressed=true] { color: #946514; }
.production-theme #estimateSplit .split-favorite[aria-pressed=true] svg { fill: #ffde89; }
.production-theme #splitBulkToolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px 10px; flex: 0 0 auto; font-size: 11px; }
.production-theme #splitBulkToolbar > label { display: flex; align-items: center; flex-direction: row; gap: 6px; margin: 0; font-size: 11px; }
.production-theme #splitBulkCount { color: #53605c; }
.production-theme #splitBulkToolbar button { padding: 6px 8px; min-height: 32px; }
.production-theme #splitBulkToolbar button[hidden] { display: none; }
.production-theme #estimateSplit .split-line-title { display: flex; align-items: start; gap: 8px; min-width: 0; }
.production-theme #estimateSplit .split-line-check { display: grid; place-items: center; width: 22px; height: 28px; flex: 0 0 22px; margin: 0; cursor: pointer; }
.production-theme #estimateSplit :is(.split-line-select,#splitBulkSelectAll) { width: 16px; height: 16px; min-width: 16px; padding: 0; margin: 0; accent-color: #12786e; }
.production-theme #estimateSplit .split-line.is-selected { background: #edf7f3; }
.production-theme #estimateBulkEditor { padding: 22px; border-radius: 6px; width: min(540px,calc(100vw - 24px)); max-height: calc(100dvh - 36px); overflow: auto; }
.production-theme #estimateBulkForm { display: grid; gap: 16px; min-width: 0; }
.production-theme #estimateBulkEditor :is(header,footer) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.production-theme #estimateBulkEditor :is(h3,p) { margin: 0; overflow-wrap: anywhere; }
.production-theme #estimateBulkEditor h3 { font-size: 17px; }
.production-theme #estimateBulkEditor :is(label,select,input) { min-width: 0; max-width: 100%; font-size: 13px; }
.production-theme #estimateBulkEditor label { display: flex; flex-direction: column; gap: 6px; }
.production-theme #estimateBulkEditor [hidden] { display: none; }
.production-theme #estimateBulkEditor :is(select,input) { width: 100%; }
.production-theme #estimateBulkSelection { color: #58665f; font-size: 12px; }
.production-theme #estimateBulkPreview { display: grid; gap: 12px; padding-block: 14px; border-block: 1px solid #dce2e0; font-size: 13px; }
.production-theme #estimateBulkPreview:empty { display: none; }
.production-theme #estimateBulkPreview > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.production-theme #estimateBulkPreview strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.production-theme #estimateBulkError { color: #b24037; font-size: 12px; }
.production-theme #estimateSplit #estimateCatalogToolbar { display: block; margin: 0; padding: 0; }
.production-theme #estimateSplit #estimateCatalogToolbar label { display: block; font-size: 0; }
.production-theme #estimateSplit input[type=search], .production-theme #splitCatalogCategory { height: 36px; width: 100%; background: white; }
.production-theme #splitCatalogBody { overflow: auto; flex: 1; min-height: 0; padding: 0 16px 16px; }
.production-theme #estimateSplit .split-kind-tabs { display: flex; gap: 0; background: #e9eeec; padding: 3px; margin-bottom: 10px; border-radius: 4px; }
.production-theme #estimateSplit .split-kind-tabs button { flex: 1; padding: 7px 4px; border: 0; background: transparent; color: #515c58; min-height: 32px; }
.production-theme #estimateSplit .split-kind-tabs button[aria-pressed=true] { background: white; color: #126e65; box-shadow: 0 1px 3px #0001; }
.production-theme #splitCatalogCategory { margin-bottom: 12px; }
.production-theme #estimateSplit .split-product-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.production-theme #estimateSplit .split-product { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 10px; min-width: 0; background: white; border: 1px solid #dce2e0; border-radius: 5px; overflow: hidden; }
.production-theme #estimateSplit .split-product > strong { font-size: 12px; line-height: 17px; min-height: 34px; overflow-wrap: anywhere; }
.production-theme #estimateSplit .split-product > small { font-size: 11px; color: #65736c; }
.production-theme #estimateSplit .split-product > b { font-size: 13px; margin-top: auto; }
.production-theme #estimateSplit .split-product-image { position: relative; display: grid; place-items: center; aspect-ratio: 1.9; background: #fff; overflow: hidden; }
.production-theme #estimateSplit .split-product-image > svg { width: 32px; height: 32px; color: #97a39e; }
.production-theme #estimateSplit .split-product-image img { position: absolute; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; }
.production-theme #estimateSplit .split-product-image img[hidden] { display: none; }
.production-theme #estimateSplit .split-added { position: absolute; bottom: 3px; right: 3px; background: #e9f3ee; color: #247052; padding: 2px 5px; font-size: 10px; z-index: 1; }
.production-theme #estimateSplit .split-product-controls { display: flex; gap: 7px; width: 100%; margin-top: 3px; }
.production-theme #estimateSplit .catalog-qty-control { display: grid; grid-template-columns: 26px minmax(34px,1fr) 26px; flex: 1; min-width: 0; height: 32px; gap: 0; }
.production-theme #estimateSplit .catalog-qty-control :is(button,input) { height: 32px; padding: 0; min-height: 0; border: 1px solid #dce2e0; background: white; border-radius: 0; }
.production-theme #estimateSplit .catalog-qty { text-align: center; appearance: textfield; }
.production-theme #estimateSplit .catalog-qty::-webkit-inner-spin-button { appearance: none; }
.production-theme #estimateSplit .catalog-add { width: 34px; height: 32px; padding: 0; flex: 0 0 34px; }
.production-theme #splitLineSearch { margin: 0 16px 10px; width: calc(100% - 32px) !important; }
.production-theme #splitEstimateRows { flex: 1; min-height: 0; overflow: auto; }
.production-theme #estimateSplit .split-line-group h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 10px 16px; font-size: 11px; font-weight: 700; background: #f2f5f4; color: #5a6862; }
.production-theme #estimateSplit .split-line-group h4 span { flex-shrink: 0; font-weight: 500; }
.production-theme #estimateSplit .split-line { display: grid; grid-template-columns: minmax(0,1fr) 108px; align-items: center; gap: 8px 12px; padding: 11px 16px; border-bottom: 1px solid #e9edeb; }
.production-theme #estimateSplit .split-line-name { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; border: 0; background: transparent; padding: 0; gap: 4px; overflow-wrap: anywhere; color: #232b28; }
.production-theme #estimateSplit .split-line-name strong { font-size: 12px; line-height: 17px; }
.production-theme #estimateSplit .split-line-name small { font-size: 10px; color: #738078; line-height: 14px; }
.production-theme #estimateSplit .split-line-name small svg { width: 10px; height: 10px; vertical-align: middle; }
.production-theme #estimateSplit .split-line-name:disabled { opacity: 1; }
.production-theme #estimateSplit .split-line-numbers { display: grid; grid-template-columns: 72px 84px; gap: 10px; grid-column: 1; grid-row: 2; }
.production-theme #estimateSplit .split-line-numbers label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 10px; color: #65736c; }
.production-theme #estimateSplit .split-line-numbers input { width: 100%; height: 32px; padding: 4px 6px; background: white; }
.production-theme #estimateSplit .split-line-numbers input:invalid { border-color: #b24037; }
.production-theme #estimateSplit .split-line-total { grid-column: 2; grid-row: 2; align-self: end; line-height: 32px; font-size: 12px; text-align: right; white-space: nowrap; }
.production-theme #estimateSplit .split-line-actions { display: flex; gap: 2px; grid-column: 2; grid-row: 1; justify-self: end; }
.production-theme #estimateSplit .split-line-actions .icon-button { width: 29px; height: 30px; min-height: 0; padding: 5px; background: transparent; }
.production-theme #estimateSplit .split-line-actions .danger { color: #b24037; }
.production-theme #estimateSplit .split-shortage { grid-column: 1/-1; justify-self: start; padding: 0; border: 0; background: transparent; color: #ae3d30; font-size: 10px; }
.production-theme #estimateSplit .split-warning { color: #ae3d30 !important; }
.production-theme #splitEstimateTotal { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; padding: 12px 16px; background: white; border-top: 1px solid #dce2e0; }
.production-theme #splitEstimateTotal > div { display: flex; flex-direction: column; gap: 3px; }
.production-theme #splitEstimateTotal span { color: #65736c; font-size: 10px; }
.production-theme #splitEstimateTotal b { font-size: 14px; }
.production-theme #splitEstimateTotal button { grid-column: 1/-1; }
.production-theme #splitTaxSlot .estimate-tax-choice { padding: 0; border: 0; background: none; }
.production-theme #splitTaxSlot :is(label,small,p) { font-size: 10px; margin: 0; }
.production-theme #splitTaxSlot select { height: 30px; width: 100%; padding: 3px 6px; }
.production-theme.split-estimate-active #estimates .totals.estimate-compact-totals { display: none; }
.production-theme #estimateSplit .split-line-actions button:not(.danger),
.production-theme .reference-actions button:not([data-reference-item-delete]) { color: #62716b; }
.production-theme #estimateSplit .split-empty { padding: 25px 16px; font-size: 12px; color: #6d7875; }
.production-theme.has-split-estimate #estimates .totals.estimate-compact-totals { position: static; box-shadow: none; z-index: auto; }
.production-theme.split-estimate-active [data-project-panel=estimate] > .quick-tools,
.production-theme.split-estimate-active #quickSearchResults { display: none; }
.production-theme #splitLineEditor, .production-theme #referenceTransfer { width: min(520px,calc(100vw - 24px)); padding: 20px; border-radius: 6px; }
.production-theme #splitLineEditor form { display: flex; flex-direction: column; gap: 18px; }
.production-theme #splitLineEditor header, .production-theme #splitLineEditor footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.production-theme #splitLineEditor h3 { font-size: 17px; overflow-wrap: anywhere; }
.production-theme #splitLineFields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.production-theme #splitLineFields .wide { grid-column: 1/-1; }
.production-theme #referenceTransferForm { display: grid; gap: 14px; }
.production-theme #referenceTransferNote { font-size: 12px; color: #67746d; margin: 0; }
.production-theme #referenceTransferError { color: #b24037; font-size: 12px; margin: 0; }
.production-theme .reference-category-heading { font-size: 12px; margin: 0; padding: 12px; background: #f1f4f3; }
.production-theme .reference-toolbar { flex-wrap: wrap; }
.production-theme #referenceCategory { max-width: 320px; min-width: 0; }
.production-theme .reference-actions { flex-wrap: wrap; }
.production-theme #referenceBulkActions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; padding: 12px 0; border-bottom: 1px solid #dce3e0; }
.production-theme #referenceBulkActions[hidden] { display: none; }
.production-theme #referenceBulkActions .reference-select-all { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; }
.production-theme #referenceBulkActions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 12px; border: 1px solid #d5dfdc; border-radius: 4px; font-size: 12px; }
.production-theme #referenceBulkActions button.danger { border-color: #edc8c8; background: #fffafa; }
.production-theme #referenceBulkActions svg { width: 16px; height: 16px; }
.production-theme #referenceSelectedCount { font-size: 12px; margin-right: auto; white-space: nowrap; color: #52645b; }
.production-theme .reference-record.reference-selectable { grid-template-columns: 28px minmax(0,1.4fr) minmax(0,1fr) auto; gap: 12px; }
.production-theme .reference-record.is-selected { background: #edf7f3; }
.production-theme .reference-row-select { width: 28px; height: 32px; display: grid; place-items: center; margin: 0; cursor: pointer; }
.production-theme :is(.reference-row-select input,#referenceSelectAll) { width: 17px; height: 17px; min-width: 17px; margin: 0; accent-color: #12786e; }
.production-theme .reference-bulk-confirm .app-confirm-details { max-height: 40vh; overflow: auto; }
.production-theme .reference-bulk-confirm button { min-height: 36px; padding: 8px 12px; border-radius: 4px; }
.production-theme #estimateSplit { grid-template-columns: minmax(270px,.75fr) minmax(440px,1.3fr) minmax(190px,.5fr); }
.production-theme #estimateSplit .split-summary { min-width: 0; background: #fff; border-left: 1px solid #dce2e0; }
.production-theme #splitGroupTotals { padding: 4px 14px 16px; }
.production-theme #splitGroupTotals > div { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-bottom: 1px solid #edf0ef; font-size: 12px; overflow-wrap: anywhere; }
.production-theme #splitGroupTotals strong { font-variant-numeric: tabular-nums; }
.production-theme #splitEstimateTotal { grid-template-columns: minmax(0,1fr); gap: 18px; }
.production-theme #estimateSplit .split-line-numbers { grid-template-columns: minmax(50px,.8fr) minmax(80px,1.3fr) minmax(65px,1fr); }
.production-theme #splitDeletion { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: #edf7f3; font-size: 12px; }
.production-theme #splitDeletion[hidden], .production-theme .split-added[hidden] { display: none; }
.production-theme #estimateSplit .split-product { content-visibility: auto; contain-intrinsic-size: auto 260px; }
.production-theme #estimateSplit .split-assembly-button { min-height: 30px; padding: 4px 8px; }
.production-theme :is(#estimateAssembly,#inventoryMerge,#inventoryDuplicateCandidates) { padding: 22px; border-radius: 6px; width: min(720px,calc(100vw - 24px)); max-height: calc(100dvh - 36px); overflow: auto; }
.production-theme :is(#estimateAssemblyForm,#inventoryMergeForm) { display: grid; gap: 16px; }
.production-theme :is(#estimateAssembly,#inventoryMerge,#inventoryDuplicateCandidates) :is(header,footer) { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.production-theme :is(#estimateAssembly,#inventoryMerge,#inventoryDuplicateCandidates) h3 { font-size: 18px; margin: 0; }
.production-theme .assembly-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.production-theme #assemblyResult { display: flex; flex-direction: column; gap: 8px; padding-block: 14px; border-block: 1px solid #dce2e0; font-size: 13px; }
.production-theme :is(#assemblyRoundLabel,#mergeStockConsent,.role-closed-toggle) { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 12px; }
.production-theme :is(#assemblyRoundLabel,#mergeStockConsent)[hidden] { display: none; }
.production-theme :is(#assemblyRoundLabel,#mergeStockConsent,.role-closed-toggle) input { width: 16px; height: 16px; flex: 0 0 16px; }
.production-theme #mergeComparison table { width: 100%; table-layout: fixed; font-size: 12px; }
.production-theme #mergeComparison :is(td,th) { overflow-wrap: anywhere; white-space: normal; padding: 9px; }
.production-theme #mergeDetails { color: #52645b; font-size: 12px; }
.production-theme #mergeError { color: #b24037; }
.production-theme .duplicate-pair { display: grid; grid-template-columns: minmax(0,1fr) 24px; gap: 6px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid #dce2e0; border-radius: 0; text-align: left; background: white; }
.production-theme .duplicate-pair :is(strong,span) { grid-column: 1; overflow-wrap: anywhere; }
.production-theme .duplicate-pair svg { grid-column: 2; grid-row: 1; }
.production-theme #referenceFindDuplicates { display: inline-flex; align-items: center; gap: 6px; }
.production-theme #referenceFindDuplicates[hidden] { display: none; }
.production-theme .item-entry-stock { border-bottom: 1px solid #dce2e0; padding: 12px 0; }
.production-theme .item-entry-stock > summary { cursor: pointer; font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.production-theme .crew-person-summary { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid #dce2e0; }
.production-theme .crew-person-summary > div:first-child { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.production-theme .crew-person-summary span { font-size: 12px; color: #58665f; overflow-wrap: anywhere; }
.production-theme .crew-person-billing { display: grid; grid-template-columns: minmax(160px,1fr) minmax(120px,1fr); gap: 10px; align-items: end; }
.production-theme .crew-person-billing label { font-size: 12px; }
.production-theme .crew-person-billing label[hidden] { display: none; }
.production-theme .crew-overlap-warning { color: #99650d; font-size: 12px; }
@media (max-width: 1450px) and (min-width: 901px) {
  .production-theme #estimateSplit { grid-template-columns: minmax(280px,.8fr) minmax(380px,1.2fr); }
  .production-theme #estimateSplit .split-summary { grid-column: 1/-1; border-left: 0; border-top: 1px solid #dce2e0; display: grid; grid-template-columns: 90px minmax(0,1fr) minmax(260px,1fr); align-items: start; }
  .production-theme #splitEstimateTotal { border-top: 0; }
  .production-theme #splitGroupTotals { display: flex; gap: 12px; flex-wrap: wrap; }
}
@media (max-width: 700px) {
  .production-theme .crew-person-summary { flex-direction: column; }
  .production-theme .crew-person-billing { width: 100%; }
  .production-theme .assembly-fields { grid-template-columns: minmax(0,1fr); }
}
@media (min-width: 1650px) {
  .production-theme #estimateSplit .split-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 1180px) {
  .production-theme #estimateSplit { grid-template-columns: minmax(290px,0.85fr) minmax(340px,1fr); }
  .production-theme #estimateSplit .split-line { gap: 8px; }
}
@media (max-width: 900px) {
  .production-theme .reference-record.reference-selectable { grid-template-columns: 28px minmax(0,1fr); }
  .production-theme .reference-selectable .reference-row-select { grid-column: 1; grid-row: 1 / 4; align-self: start; }
  .production-theme .reference-selectable .reference-record-main { grid-column: 2; grid-row: 1; }
  .production-theme .reference-selectable .reference-record-meta { grid-column: 2; grid-row: 2; }
  .production-theme .reference-selectable .reference-actions { grid-column: 2; grid-row: 3; }
  .production-theme #referenceBulkActions { gap: 10px; }
  .production-theme #estimateSplit { grid-template-columns: minmax(0,1fr); }
  .production-theme #estimateSplit .split-catalog { height: 470px; max-height: 65vh; border-right: 0; border-bottom: 1px solid #dce2e0; }
  .production-theme #estimateSplit .split-estimate { height: 600px; max-height: none; }
  .production-theme #estimateSplit .split-summary { border-left: 0; border-top: 1px solid #dce2e0; }
  .production-theme #splitGroupTotals { display: none; }
  .production-theme #estimateSplit .split-line-numbers { grid-column: 1/-1; grid-template-columns: minmax(55px,.8fr) minmax(85px,1.2fr) minmax(65px,1fr); }
  .production-theme #estimateSplit .split-line-total { grid-row: 3; }
  .production-theme #estimateSplit .split-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .production-theme #estimateSplit .split-line { padding: 10px; grid-template-columns: minmax(0,1fr) 100px; }
  .production-theme #estimateSplit .split-line-total { font-size: 11px; }
  .production-theme #referenceCategory { max-width: 100%; width: 100%; }
  .production-theme .reference-record .reference-actions { justify-content: flex-start; }
}
