.migration-batch { background: var(--px-surface); margin-bottom: 24px; }
.migration-batch > summary { font-size: 23px; font-weight: 650; min-height: 44px; cursor: pointer; padding: 8px 0; }
.migration-batch p { color: var(--px-muted); line-height: 1.5; }
.migration-batch h3 { font-size: 19px; }
.batch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.migration-batch button, .migration-batch .batch-actions a { min-height: 44px; border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); padding: 11px 15px; background: white; color: var(--px-accent); font: inherit; cursor: pointer; }
.migration-batch button:disabled { opacity: .55; cursor: default; }
.migration-batch button:focus-visible, .migration-batch a:focus-visible, .migration-batch input:focus-visible, .migration-batch select:focus-visible, .migration-batch summary:focus-visible { outline: 3px solid var(--px-accent); outline-offset: 3px; }
.migration-batch label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.migration-batch input:not([type=checkbox]), .migration-batch select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--px-line-strong); border-radius: var(--px-radius); padding: 9px; font: inherit; color: var(--px-ink); background: white; }
.migration-batch input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--px-accent); }
.migration-batch .batch-check { display: flex; gap: 10px; align-items: start; padding: 10px 0; }
.batch-mapping, .batch-row-fields { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
#batchRows { list-style: none; padding: 0; }
#batchRows > li { border: 1px solid var(--px-line); padding: 16px; border-radius: var(--px-radius-panel); margin: 12px 0; overflow-wrap: anywhere; }
#batchRows > li[hidden] { display: none; }
#batchRows > li > h4 { margin: 0; }
.batch-row-identity { margin: 6px 0; }
.batch-row-details > summary { min-height: 44px; padding: 12px 0; cursor: pointer; font-weight: 600; }
.batch-row-details .batch-row-fields { padding-top: 12px; }
.batch-row-fields > label[hidden] { display: none; }
.batch-filter { max-width: 320px; }
#batchIdentifierTools { min-width: 0; padding: 14px; margin: 18px 0; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); background: var(--px-canvas); }
#batchIdentifierTools legend { max-width: 100%; padding: 0 6px; font-weight: 650; }
#batchIdentifierTools .batch-actions > label { flex: 1 1 240px; min-width: 0; max-width: 100%; }
#batchIdentifierConfirm { padding: 12px; border-left: 3px solid #b48734; }
#batchIdentifierConfirm button { margin: 4px 8px 4px 0; }
#batchSavedProducts { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--px-line); }
#batchSavedRows { list-style: none; padding: 0; }
#batchSavedRows > li { padding: 12px; margin: 10px 0; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); overflow-wrap: anywhere; }
#batchSavedRows a { display: inline-block; min-height: 44px; padding: 12px 0; }
#batchPacketDownload { background: var(--px-accent); color: white; }
#batchPublication { margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--px-line); }
#batchPublicationOrganization { max-width: 460px; }
#batchPublicationRows, #batchPublicationOutcomes { list-style: none; padding: 0; }
#batchPublicationRows > li, #batchPublicationOutcomes > li { border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); padding: 14px; margin: 12px 0; overflow-wrap: anywhere; }
#batchPublicationRows h5 { font-size: 16px; margin: 0 0 10px; }
#batchPublicationRows summary { min-height: 44px; padding: 12px 0; cursor: pointer; }
#batchPublicationApply { background: var(--px-accent); color: white; }
#batchPublicationUncertain { padding: 12px; border-left: 3px solid #b48734; }
#batchPublicationOutcomes a { display: inline-block; min-height: 44px; padding: 12px 0; }
@media(min-width:901px) { #batchRows > li { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 18px; padding: 12px 16px; } #batchRows > li > h4 { grid-column: 1; } #batchRows > li > .batch-row-identity { grid-column: 1; } #batchRows > li > .batch-check { grid-column: 2; grid-row: 1 / span 2; } #batchRows > li > .batch-row-details, #batchRows > li > div { grid-column: 1 / -1; } }
#batchRows .batch-errors { color: #9b2424; padding-left: 20px; }
.batch-draft-comparison { padding: 12px; margin: 12px 0; background: var(--px-canvas); border-radius: var(--px-radius); }
.batch-draft-comparison dt { font-weight: 600; margin-top: 10px; }
.batch-draft-comparison dd { margin: 4px 0; line-height: 1.5; overflow-wrap: anywhere; }
#batchApply { background: var(--px-accent); color: white; }
#batchContinue { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 12px; color: var(--px-accent); font-weight: 600; overflow-wrap: anywhere; }
#batchContinue[hidden] { display: none; }
#batchContinue[aria-disabled=true] { opacity: .55; cursor: default; }
#batchReplace { padding: 16px; border-left: 3px solid #b48734; }
#batchPreview img { display: block; max-width: 100%; max-height: 450px; background: white; }
#batchPreview { margin: 20px 0; }
#batchLists { padding-left: 20px; }
#batchLists li { margin: 8px 0; }
#batchFile, #batchReuseFile, #batchSetupFile { max-width: 100%; }
#batchSetups { list-style: none; margin: 16px 0; padding: 0; }
#batchSetups:empty { display: none; }
#batchSetups > li, #batchChosenSetup { padding: 16px; margin: 12px 0; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); background: var(--px-canvas); }
#batchSetups strong { display: block; overflow-wrap: anywhere; }
#batchSetups p { margin: 8px 0; }
#batchChosenSetup h3 { margin-top: 0; }
#batchSetupName { max-width: 100%; min-width: 0; }
#batchReuse { padding: 16px; margin: 16px 0; border: 1px solid var(--px-line); border-radius: var(--px-radius-panel); background: var(--px-canvas); }
#batchReuse h3 { margin-top: 0; }
#batchReuseAvailability:empty { display: none; }
@media(max-width:800px) { .batch-mapping, .batch-row-fields { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:430px) { .batch-mapping, .batch-row-fields { grid-template-columns: 1fr; } .batch-actions { align-items: stretch; } .batch-actions > * { flex: 1 1 auto; } }
