/* Enterprise shared imports and dispatch history. */
.pdd-sources-panel { display: flex; flex-direction: column; min-height: 0; flex: 1; gap: 14px; }
.pdd-sources-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pdd-sources-toolbar .en-segmented b { margin-left: 4px; font-size: 10px; font-variant-numeric: tabular-nums; opacity: .75; }
.pdd-sources-header { --pdd-header-columns: auto minmax(0, 1fr) auto; display: grid; grid-template-columns: var(--pdd-header-columns); grid-template-rows: 44px minmax(54px, auto); gap: 14px; min-width: 0; }
.pdd-sources-header > .pdd-sources-toolbar { grid-area: 1 / 1 / 2 / -1; display: grid; grid-template-columns: subgrid; gap: 14px; }
.pdd-sources-primary-actions, .pdd-sources-search-actions, .pdd-sources-selection-actions, .pdd-sources-batch-area { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pdd-sources-primary-actions { grid-column: 1; }
.pdd-sources-primary-actions > * { flex-shrink: 0; }
.pdd-sources-search-actions { grid-column: 3; justify-content: flex-end; }
.pdd-sources-header > .pdd-sources-selection { grid-area: 2 / 1 / 3 / -1; display: grid; grid-template-columns: subgrid; padding: 8px 0; gap: 14px; }
.pdd-sources-batch-area { grid-column: 1; padding-left: 12px; flex-wrap: wrap; }
.pdd-sources-selection-actions { grid-column: 3; justify-content: flex-end; padding-right: 12px; }
.pdd-sources-selection-actions > .en-select, .pdd-sources-selection-actions > .en-select-shell { width: 180px; flex: 0 0 180px; }
.pdd-sources-summary { --pdd-summary-column-gap: 10px; container: order-summary / inline-size; z-index: 1; grid-area: 1 / 2 / 3 / 3; align-self: center; min-width: 0; padding: 10px 13px; border: 1px solid var(--en-line); border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--surface-table-head) 85%, transparent), color-mix(in srgb, var(--surface-control) 88%, transparent)); box-shadow: inset 0 1px 0 var(--glass-line), 0 3px 12px color-mix(in srgb, var(--accent-shadow) 30%, transparent); color: var(--en-ink); font-size: 11px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.pdd-sources-summary dl, .pdd-sources-summary dt, .pdd-sources-summary dd { margin: 0; }
.pdd-sources-summary-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px var(--pdd-summary-column-gap); }
.pdd-sources-summary-groups > div, .pdd-sources-summary-totals > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); align-items: baseline; gap: 2px 3px; min-width: 0; max-width: 100%; }
.pdd-sources-summary dt { color: var(--en-muted); white-space: nowrap; }
.pdd-sources-summary dd { display: grid; grid-template-columns: minmax(4ch, .35fr) max-content minmax(0, 1.65fr) max-content; align-items: baseline; gap: 3px; min-width: 0; }
.pdd-sources-summary dd strong { min-width: 0; color: var(--blue-700); font-weight: 700; text-align: right; white-space: nowrap; }
.pdd-sources-summary dd span { color: var(--en-muted); font-size: 10px; }
.pdd-sources-summary :is([data-pdd-summary-count], [data-enterprise-summary-count], [data-pdd-total="count"], [data-enterprise-total="count"]) + span { margin-right: 3px; }
.pdd-sources-summary-groups [data-pdd-summary-group$="refunded"] strong, .pdd-sources-summary [data-pdd-total="refundTotal"] { color: #7654a4; }
.pdd-sources-summary-groups [data-pdd-summary-group="received"] strong { color: var(--en-success); }
.pdd-sources-summary-groups [data-pdd-summary-group="cancelled"] strong { color: var(--en-muted); }
.pdd-sources-summary-groups > [hidden] { display: none; }
.pdd-sources-summary-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: baseline; min-width: 0; max-width: 100%; gap: 5px var(--pdd-summary-column-gap); padding-top: 8px; margin-top: 8px !important; border-top: 1px solid var(--en-line); }
.pdd-sources-summary-totals > div:not(:first-child) dd > strong { grid-column: 3; }
.pdd-sources-summary-totals > div:not(:first-child) dd > span { grid-column: 4; }
.pdd-sources-summary :is([data-pdd-total="platformDiscountTotal"], [data-enterprise-total="platformDiscountTotal"]) { color: var(--blue-700); }
.pdd-sources-header .pdd-sources-selection-hint { grid-column: 1 / -1; padding: 0 12px; }
#pddSourcesCancelImportButton { flex-shrink: 0; white-space: nowrap; }
.pdd-source-cancel-summary > strong { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--blue-700); }
.pdd-sources-calendar-button { display: inline-grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 8px; }
.pdd-sources-calendar-button svg { width: 19px; height: 19px; }
.pdd-sources-calendar-button.is-active, .pdd-sources-calendar-button[aria-expanded="true"] { color: var(--blue-700); background: var(--surface-control); border-color: var(--blue-300); box-shadow: inset 0 1px 0 var(--glass-line); }
.pdd-source-periods { --pdd-period-index: 4; position: relative; display: grid; grid-template-columns: repeat(5, minmax(36px, 1fr)); flex: 0 0 auto; width: 226px; min-width: 0; padding: 4px; border: 1px solid var(--glass-line); border-radius: 13px; background: var(--surface-control); isolation: isolate; }
.pdd-source-period-indicator { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 5); border: 1px solid var(--glass-line); border-radius: 9px; background: var(--surface-table-head); box-shadow: 0 3px 9px var(--accent-shadow), inset 0 1px 0 var(--glass-line); transform: translateX(calc(var(--pdd-period-index) * 100%)); transition: transform 280ms cubic-bezier(.2,.8,.2,1), opacity 160ms ease; pointer-events: none; }
.pdd-source-periods.is-custom .pdd-source-period-indicator { opacity: 0; }
.pdd-source-periods button { display: grid; place-items: center; position: relative; min-width: 0; min-height: 29px; margin: 0; padding: 6px 5px; border: 0; border-radius: 9px; color: var(--en-muted); background: transparent; box-shadow: none; font: inherit; font-size: 12px; line-height: 1.2; white-space: nowrap; cursor: pointer; transition: color 180ms ease; }
.pdd-source-periods button[aria-pressed="true"] { color: var(--blue-700); font-weight: 700; }
.pdd-source-periods button:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -1px; }
.pdd-source-periods button:disabled { opacity: .55; cursor: wait; }
.pdd-sources-panel :is(.en-button, .en-segmented button, .pdd-source-periods button):is(:hover, :active, .pressing), #pddSourcesCalendarPopover button:is(:hover, :active, .pressing) { transform: none !important; translate: none !important; scale: none !important; }
#pddSourcesCalendarPopover { position: fixed; z-index: 1001; box-sizing: border-box; margin: 0; padding: 15px; width: 320px; max-width: calc(100vw - 24px); overflow: auto; overscroll-behavior: contain; }
.pdd-sources-calendar-connector { position: fixed; z-index: 1002; width: 22px; height: 10px; pointer-events: none; border-inline: 1px solid var(--glass-line); background: var(--surface-table-head); backdrop-filter: blur(24px); opacity: 0; transition: opacity 160ms ease; }
.pdd-sources-calendar-connector.is-open { opacity: 1; }
.pdd-sources-calendar-title, .pdd-sources-calendar-month { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pdd-sources-calendar-title { margin-bottom: 12px; font-size: 13px; }
.pdd-sources-calendar-title > span { color: var(--en-muted); font-size: 10px; }
.pdd-sources-calendar-modes { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; gap: 3px; border: 1px solid var(--en-line); border-radius: 11px; background: var(--surface-control); }
.pdd-sources-calendar-modes button { min-height: 29px; padding: 5px; border: 1px solid transparent; border-radius: 8px; color: var(--en-muted); background: transparent; font: inherit; font-size: 11px; cursor: pointer; }
.pdd-sources-calendar-modes button[aria-pressed="true"] { color: var(--blue-700); background: var(--surface-table-head); border-color: var(--glass-line); box-shadow: 0 2px 7px var(--accent-shadow); }
.pdd-sources-calendar-month { margin: 12px 0 8px; font-size: 14px; }
.pdd-sources-calendar-month > button { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--en-line); border-radius: 10px; color: var(--blue-700); background: var(--surface-control); font-size: 22px; line-height: 1; cursor: pointer; }
.pdd-sources-calendar-weekdays, .pdd-sources-calendar-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.pdd-sources-calendar-weekdays { margin-bottom: 5px; color: var(--en-muted); text-align: center; font-size: 10px; }
.pdd-sources-calendar-weekdays > span { padding: 4px 0; }
.pdd-sources-calendar-days > button { position: relative; display: grid; place-items: center; min-width: 0; height: 31px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--en-ink); font: inherit; font-size: 11px; font-variant-numeric: tabular-nums; cursor: pointer; }
.pdd-sources-calendar-days > button.outside-month { opacity: .4; }
.pdd-sources-calendar-days > button.in-range { color: var(--blue-700); background: var(--surface-control); border-radius: 4px; }
.pdd-sources-calendar-days > button.is-selected { color: white; background: var(--blue-700); box-shadow: 0 3px 7px var(--accent-shadow); opacity: 1; }
.pdd-sources-calendar-days > button.is-today::after { content: ''; position: absolute; bottom: 3px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.pdd-sources-calendar-days > button:hover:not(.is-selected) { background: var(--surface-control); border-color: var(--en-line); }
#pddSourcesCalendarPopover button:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.pdd-sources-calendar-range { display: flex; gap: 9px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--en-line); }
.pdd-sources-calendar-range label { display: flex; flex: 1; flex-direction: column; gap: 5px; min-width: 0; color: var(--en-muted); font-size: 10px; }
.pdd-sources-calendar-range input { box-sizing: border-box; min-width: 0; width: 100%; height: 32px; padding: 7px 9px; color: var(--en-ink); background: var(--surface-control); border: 1px solid var(--en-line); border-radius: 9px; font: inherit; font-size: 11px; font-variant-numeric: tabular-nums; }
.pdd-sources-calendar-range input:focus { outline: 2px solid var(--focus-ring); border-color: var(--blue-500); }
#pddSourcesCalendarHint, #pddSourcesCalendarError { margin: 9px 0 0; color: var(--en-muted); font-size: 10px; line-height: 1.5; }
#pddSourcesCalendarError { color: var(--en-danger); }
#pddSourcesCalendarPopover [hidden] { display: none; }
.pdd-sources-calendar-actions { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; }
#pddSourcesCalendarPopover .pdd-sources-calendar-actions button { min-height: 32px; }
.pdd-sources-search { margin-left: auto; width: 260px; min-width: 0; }
.pdd-sources-search input { width: 100%; }
.pdd-sources-selection { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 10px 13px; border: 1px solid var(--en-line); border-radius: 14px; background: color-mix(in srgb, var(--surface-control) 65%, transparent); font-size: 12px; }
.pdd-sources-totals { display: flex; align-items: center; min-width: 0; max-width: 100%; margin: 0; padding: 6px 0; border: 1px solid var(--en-line); border-radius: 11px; background: color-mix(in srgb, var(--surface-control) 65%, transparent); box-shadow: inset 0 1px 0 var(--glass-line); overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; scrollbar-color: var(--blue-300) transparent; }
.pdd-sources-totals > div { display: flex; flex: 0 0 auto; align-items: baseline; gap: 5px; padding: 0 10px; white-space: nowrap; }
.pdd-sources-totals > div + div { border-left: 1px solid var(--en-line); }
.pdd-sources-totals[hidden], .pdd-sources-totals > [hidden] { display: none; }
.pdd-sources-totals:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.pdd-sources-totals::-webkit-scrollbar { height: 4px; }
.pdd-sources-totals::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--blue-300); }
.pdd-sources-totals dt { margin: 0; color: var(--en-muted); font-size: 10px; line-height: 1.3; white-space: nowrap; }
.pdd-sources-totals dd { display: flex; align-items: baseline; gap: 3px; margin: 0; color: var(--blue-700); font-variant-numeric: tabular-nums; line-height: 1.3; }
.pdd-sources-totals strong { font-size: 12px; font-weight: 750; }
.pdd-sources-totals dd > span { color: var(--en-muted); font-size: 10px; font-weight: 500; }
.pdd-sources-totals [data-pdd-total^="refund"] { color: color-mix(in srgb, var(--blue-700) 45%, #9872bb); }
.pdd-sources-totals [data-pdd-total^="completed"] { color: var(--en-success); }
.pdd-sources-totals [data-pdd-total^="unfinished"] { color: var(--en-danger); }
.pdd-sources-totals-financial { flex: 1 1 0; max-width: max-content; }
.pdd-sources-totals-pending { width: max-content; }
.pdd-sources-selection-summary { flex: 1 1 240px; min-width: 0; }
.pdd-sources-selection-summary:has(.pdd-sources-totals-pending[hidden]) { flex-basis: 0; }
.pdd-sources-batch-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pdd-sources-batch-controls[hidden] { display: none; }
.pdd-sources-batch-controls > label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.pdd-sources-batch-controls input { width: 16px; height: 16px; accent-color: var(--blue-700); }
#pddSourcesBatchButton, #pddSourcesDispatchButton, #pddSourcesEnterpriseImportButton { flex-shrink: 0; white-space: nowrap; }
#pddSourcesEnterpriseImportButton[hidden] { display: none; }
#pddSourcesBatchButton[aria-pressed="true"] { color: var(--blue-700); border-color: var(--blue-300); background: var(--surface-control); }
.pdd-sources-selection-hint { flex-basis: 100%; color: var(--en-muted); line-height: 1.6; }
.pdd-sources-selection:has(.pdd-sources-selection-hint:not([hidden])) { flex-wrap: wrap; }
.pdd-sources-selection > .en-select, .pdd-sources-selection > .en-select-shell { width: 180px; flex: 0 0 180px; }
.pdd-sources-status { margin: 0 !important; }
.pdd-sources-status:empty { display: none; }
.pdd-sources-status.is-error { color: var(--en-danger); }
.pdd-sources-table-shell { position: relative; display: flex; flex: 1; min-width: 0; min-height: 250px; isolation: isolate; }
.pdd-sources-drop-overlay { position: absolute; z-index: 7; inset: 0; display: grid; align-content: center; justify-items: center; gap: 10px; border: 2px dashed var(--blue-500); border-radius: 14px; color: var(--blue-700); background: color-mix(in srgb, var(--surface-table-head) 92%, transparent); backdrop-filter: blur(7px); pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 160ms ease; }
.pdd-sources-table-shell.is-dragging .pdd-sources-drop-overlay { visibility: visible; opacity: 1; }
.pdd-sources-drop-overlay > span { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--glass-line); border-radius: 16px; background: var(--surface-control); }
.pdd-sources-drop-overlay svg { width: 25px; height: 25px; }
.pdd-sources-drop-overlay strong { font-size: 15px; }
.pdd-sources-drop-overlay small { font-size: 11px; }
.pdd-sources-table-wrap { flex: 1; min-height: 250px; overflow: auto; scroll-padding-block: 58px 20px; }
.pdd-sources-table { width: 100%; min-width: 1540px; table-layout: auto; }
.pdd-sources-table th { position: sticky; top: 0; z-index: 1; background: var(--surface-table-head); backdrop-filter: blur(8px); white-space: nowrap; }
.pdd-source-filter-trigger { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 8px; margin: -6px -8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: inherit; font: inherit; font-weight: inherit; white-space: nowrap; cursor: pointer; }
.pdd-source-filter-trigger svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--blue-700); }
.pdd-source-filter-trigger:hover:not(:disabled), .pdd-source-filter-trigger[aria-expanded="true"] { background: var(--surface-control); border-color: var(--en-line); }
.pdd-source-filter-trigger.is-active { color: var(--blue-700); background: var(--surface-control); box-shadow: inset 0 -2px 0 var(--blue-500); }
.pdd-source-filter-trigger:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.pdd-source-filter-trigger:disabled { opacity: .6; cursor: wait; }
#pddSourceFilterPopover { position: fixed; inset: auto; z-index: 1000; box-sizing: border-box; margin: 0; padding: 12px; width: 300px; max-width: calc(100vw - 24px); overflow: auto; overscroll-behavior: contain; }
.pdd-source-filter-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 8px; font-size: 13px; }
.pdd-source-filter-options { display: flex; flex-direction: column; gap: 4px; max-height: min(260px, 45dvh); overflow-y: auto; }
.pdd-source-filter-options > button { flex-shrink: 0; min-height: 36px; padding: 9px 12px; border: 1px solid transparent; border-radius: 9px; color: var(--en-ink); background: transparent; font: inherit; font-size: 12px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.pdd-source-filter-options > button:hover { background: var(--surface-control); }
.pdd-source-filter-options > button[aria-pressed="true"] { color: var(--blue-700); background: var(--surface-control); border-color: var(--en-line); font-weight: 700; }
.pdd-source-filter-options > button:focus-visible { outline: 2px solid var(--blue-700); outline-offset: -2px; }
.pdd-source-filter-check { display: flex; flex-shrink: 0; align-items: center; gap: 10px; min-height: 38px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; color: var(--en-ink); font-size: 12px; line-height: 1.5; cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }
.pdd-source-filter-check:hover, .pdd-source-filter-check:has(input:checked) { background: var(--surface-control); border-color: var(--en-line); }
.pdd-source-filter-check input { appearance: none; flex: 0 0 17px; width: 17px; height: 17px; margin: 0; border: 1px solid var(--en-line); border-radius: 5px; background: var(--surface-control); cursor: pointer; display: grid; place-content: center; transition: background 150ms ease, border-color 150ms ease; }
.pdd-source-filter-check input:checked, .pdd-source-filter-check input:indeterminate { background: var(--blue-700); border-color: var(--blue-700); }
.pdd-source-filter-check input:checked::after { content: ''; width: 7px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.pdd-source-filter-check input:indeterminate::after { content: ''; width: 7px; height: 2px; border-radius: 2px; background: #fff; }
.pdd-source-filter-check input:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 3px; }
.pdd-source-filter-check:has(input:checked) { color: var(--blue-700); }
.pdd-source-filter-hint { margin: 10px 0; color: var(--en-muted); font-size: 11px; line-height: 1.6; }
.pdd-source-filter-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 10px; border-top: 1px solid var(--en-line); }
.pdd-source-filter-actions .en-button { min-width: 64px; }
.pdd-source-filter-range { display: grid; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--en-line); }
.pdd-source-filter-range[hidden], .pdd-source-filter-error[hidden] { display: none; }
.pdd-source-filter-range p { margin: 0; color: var(--en-muted); font-size: 11px; line-height: 1.6; }
.pdd-source-filter-range .en-field { gap: 5px; min-width: 0; }
.pdd-source-filter-range :is(input, .date-picker-field) { box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
.pdd-source-filter-range .date-picker-toggle { position: absolute; top: 0; bottom: 0; right: 5px; display: grid; place-items: center; width: 32px; height: 32px; margin-block: auto; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--blue-700); cursor: pointer; }
.pdd-source-filter-range .date-picker-toggle:hover { background: var(--surface-tint); }
.pdd-source-filter-range .date-picker-toggle:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.pdd-source-filter-range .date-picker-toggle > svg { width: 15px; height: 15px; pointer-events: none; }
.pdd-source-filter-range .pdd-source-filter-error { color: var(--en-danger); }
.pdd-sources-result { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.pdd-sources-result [hidden] { display: none; }
.pdd-sources-table :is(th, td) { text-align: left; }
.pdd-sources-table td { overflow-wrap: anywhere; font-size: 12px; vertical-align: middle; }
.pdd-sources-table .pdd-source-date { min-width: 138px; white-space: nowrap; font-size: 11px; }
.pdd-source-pages { min-width: 64px; }
.pdd-sources-table :is(.pdd-source-method-cell, .pdd-source-origin-cell) { min-width: 88px; white-space: nowrap; overflow-wrap: normal; }
.pdd-sources-table :is(.pdd-source-method-cell, .pdd-source-origin-cell) > .pdd-source-field { max-width: none; white-space: nowrap; overflow-wrap: normal; flex-shrink: 0; }
.pdd-source-inline-editor { width: 112px; max-width: 100%; white-space: normal; }
.pdd-source-pages .pdd-source-inline-editor { width: 82px; }
.pdd-source-inline-number { box-sizing: border-box; display: block; width: 100%; min-width: 0; min-height: 36px; padding: 8px 9px; border: 1px solid var(--en-line); border-radius: 9px; outline: none; color: var(--blue-700); background: var(--surface-control); font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; }
.pdd-source-inline-number:focus { border-color: var(--blue-500); box-shadow: 0 0 0 2px var(--focus-ring); }
.pdd-source-inline-number[aria-invalid="true"] { border-color: var(--en-danger); }
.pdd-source-inline-number:disabled { opacity: .65; cursor: wait; }
.pdd-source-inline-error { display: block; margin-top: 6px; color: var(--en-danger); font-size: 10px; font-weight: 400; line-height: 1.5; overflow-wrap: anywhere; }
.pdd-source-inline-actions { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.pdd-source-inline-actions .en-button { min-height: 25px; padding: 4px; font-size: 10px; }
.pdd-sources-table small { display: block; margin-top: 5px; color: var(--en-muted); font-size: 10px; }
.pdd-sources-table .pdd-source-check { width: 44px; text-align: center; padding-inline: 10px; }
.pdd-source-check input { width: 17px; height: 17px; accent-color: var(--blue-700); cursor: pointer; }
.pdd-source-check input:disabled { cursor: not-allowed; }
.pdd-source-check input[data-pdd-source-select] { display: block; margin: 0 auto; }
.pdd-source-select-all { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; padding: 4px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; cursor: pointer; transition: color 160ms ease, background-color 160ms ease; }
.pdd-source-select-all > span { grid-area: 1 / 1; white-space: nowrap; transition: opacity 160ms ease; }
.pdd-source-select-all .pdd-source-select-hover { opacity: 0; }
.pdd-source-select-all:is(:hover, :focus-visible) { color: var(--blue-700); background: var(--surface-control); }
.pdd-source-select-all:is(:hover, :focus-visible) .pdd-source-select-label { opacity: 0; }
.pdd-source-select-all:is(:hover, :focus-visible) .pdd-source-select-hover { opacity: 1; }
.pdd-source-select-all[aria-pressed="true"] { color: var(--blue-700); }
.pdd-source-select-all:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.pdd-source-select-all:disabled { opacity: .5; cursor: default; }
.pdd-source-select-all:is(:hover, :active, .pressing) { transform: none !important; translate: none !important; scale: none !important; }
/* Columns are named so the persistent selection column cannot shift widths. */
table.pdd-sources-table.order-unified-table thead th[data-order-column="selection"] { width: 3%; }
table.pdd-sources-table.order-unified-table thead th[data-order-column="completed"] { width: 6%; }
table.pdd-sources-table.order-unified-table thead th[data-order-column="orderNo"] { width: 15%; }
table.pdd-sources-table.order-unified-table thead th[data-order-column="people"] { width: 9%; }
table.pdd-sources-table.order-unified-table thead th[data-order-column="total"] { width: 8%; }
table.pdd-sources-table.order-unified-table thead th[data-order-column="pages"] { width: 5%; }
table.pdd-sources-table.order-unified-table thead th:is([data-order-column="shippedAt"], [data-order-column="confirmedAt"]) { width: 10%; }
table.pdd-sources-table.order-unified-table thead th[data-order-column="method"] { width: 5%; }
table.pdd-sources-table.order-unified-table thead th[data-order-column="source"] { width: 6%; }
table.pdd-sources-table.order-unified-table thead th[data-order-column="note"] { width: 10%; }
table.pdd-sources-table.order-unified-table thead th[data-order-column="refundAmount"] { width: 6%; }
table.pdd-sources-table.order-unified-table thead th[data-order-column="received"] { width: 7%; }
.pdd-source-order-number { min-width: 175px; }
.pdd-source-order-number strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.pdd-source-order-number > input[data-pdd-source-select] { width: 17px; height: 17px; margin-right: 10px; vertical-align: middle; accent-color: var(--blue-700); cursor: pointer; }
.pdd-source-order-tools { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 5px; min-width: 0; }
.pdd-source-order-tools > input[data-pdd-source-select] { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; accent-color: var(--blue-700); cursor: pointer; }
.pdd-source-order-tools > input[data-pdd-source-select]:disabled { cursor: not-allowed; }
.pdd-sources-table .pdd-source-order-tools > .en-button { display: inline-flex; justify-content: center; align-items: center; margin: 0; min-height: 27px; padding: 4px 9px; font-size: 11px; line-height: 1.4; white-space: nowrap; }
.pdd-source-people { min-width: 110px; }
.pdd-source-people-button { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-width: 0; min-height: 48px; padding: 6px 8px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--en-ink); font: inherit; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.pdd-source-people-button > span { display: block; max-width: 100%; line-height: 1.65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdd-source-people-button > span + span { color: var(--en-muted); font-size: 11px; }
.pdd-source-people-button:hover:not(:disabled) { color: var(--blue-700); background: var(--surface-control); border-color: var(--en-line); box-shadow: inset 0 1px 0 var(--glass-line); }
.pdd-source-people-button:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 1px; }
.pdd-source-people-button:disabled { cursor: not-allowed; }
.pdd-source-people-button:is(:hover, :active, .pressing) { transform: none !important; translate: none !important; scale: none !important; }
.pdd-source-income-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pdd-source-more { display: inline-grid; place-items: center; width: 30px; min-width: 30px; height: 30px; padding: 0; color: var(--blue-700); font: inherit; font-size: 23px; line-height: 1; background: transparent; border: 1px solid transparent; border-radius: 10px; cursor: pointer; transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease; }
.pdd-source-more:hover { background: var(--surface-control); border-color: var(--en-line); box-shadow: inset 0 1px 0 var(--glass-line); }
.pdd-source-more:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.pdd-source-more:disabled { opacity: .55; cursor: wait; }
.pdd-source-completion { display: inline-flex; justify-content: center; align-items: center; gap: 4px; min-height: 32px; max-width: 100%; padding: 5px 6px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--en-ink); font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.pdd-source-completion svg { flex: 0 0 13px; width: 13px; height: 13px; transition: rotate 180ms ease; }
.pdd-source-completion.is-unfinished { color: #b32d4a; }
.pdd-source-completion.is-completed { color: #267354; }
.pdd-source-completion.is-refunded { color: #7654a4; }
.pdd-source-completion.is-cancelled { color: var(--en-muted); border-color: color-mix(in srgb, var(--en-muted) 28%, transparent); background: color-mix(in srgb, var(--surface-control) 75%, transparent); box-shadow: 0 2px 7px color-mix(in srgb, var(--en-muted) 10%, transparent), inset 0 1px 0 var(--glass-line); }
.pdd-source-completion:not(.is-readonly):hover, .pdd-source-completion[aria-expanded="true"] { border-color: var(--en-line); background: var(--surface-control); }
.pdd-source-completion[aria-expanded="true"] svg { rotate: 180deg; }
.pdd-source-completion:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.pdd-source-completion:disabled { opacity: .6; cursor: wait; }
.pdd-source-completion.is-readonly { cursor: default; }
.pdd-source-completion:is(:hover, :active, .pressing), #pddSourceStatusPopover button:is(:hover, :active, .pressing) { transform: none !important; translate: none !important; scale: none !important; }
#pddSourceStatusPopover { position: fixed; inset: auto; z-index: 1000; box-sizing: border-box; margin: 0; padding: 7px; width: 168px; max-width: calc(100vw - 24px); overflow: auto; overscroll-behavior: contain; }
#pddSourceStatusPopover > button { display: block; width: 100%; min-height: 36px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; color: var(--en-ink); background: transparent; font: inherit; font-size: 12px; line-height: 1.5; text-align: left; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease; }
#pddSourceStatusPopover > button + button { margin-top: 3px; }
#pddSourceStatusPopover > button:hover:not(:disabled), #pddSourceStatusPopover > button[aria-checked="true"] { color: var(--blue-700); background: var(--surface-control); border-color: var(--en-line); }
#pddSourceStatusPopover > button:focus-visible { outline: 2px solid var(--blue-500); outline-offset: -2px; }
#pddSourceStatusPopover > button:disabled { opacity: .5; cursor: not-allowed; }
.pdd-source-platform-status { display: grid; gap: 6px; margin: 1px 3px 7px; padding: 7px 8px 11px; border-bottom: 1px solid var(--en-line); font-size: 12px; line-height: 1.5; }
.pdd-source-platform-status small, .pdd-source-platform-status span { color: var(--en-muted); font-size: 10px; }
.pdd-source-platform-status strong { color: var(--blue-700); font-weight: 600; overflow-wrap: anywhere; }
.pdd-source-status-hint { margin: 0 0 18px !important; padding: 12px 14px; border: 1px solid var(--en-line); border-radius: 12px; color: var(--blue-700); background: var(--surface-control); font-size: 12px; line-height: 1.7; }
.pdd-sources-table .pdd-source-lease-owner { color: #996114; max-width: 190px; line-height: 1.45; }
.pdd-sources-table .pdd-source-lease-owner[hidden] { display: none; }
.pdd-source-inline-number[aria-busy="true"] { cursor: progress; }
.pdd-source-order-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.pdd-sources-table .pdd-source-order-actions :is(small, [data-pdd-source-dispatch], [data-pdd-source-reassign]) { margin-top: 0; }
.pdd-source-note-cell { min-width: 140px; max-width: 210px; }
.pdd-source-note-full { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.8; max-height: 50dvh; overflow-y: auto; padding: 14px; border: 1px solid var(--en-line); border-radius: 12px; background: var(--surface-control); }
.pdd-source-note-readonly, .pdd-source-delete-warning { margin: 14px 0 !important; line-height: 1.7; }
.pdd-source-amount { min-width: 104px; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; }
.pdd-source-state { white-space: nowrap; }
.pdd-source-deleted-label { color: var(--en-muted); font-size: 10px; line-height: 1.5; }
#pddSourcesDeleteButton[hidden] { display: none; }
.pdd-source-state.is-pending { color: #915819; background: #fff4e5; border-color: #efd4ad; }
.pdd-source-state.is-incomplete { color: #b32d4a; background: #fff0f3; border-color: #f3b4c2; }
.pdd-source-state.is-assigned { color: #267354; background: #e7f6ed; border-color: #b7dfc8; }
.pdd-source-state.is-refunded { color: #7654a4; background: #f2eafa; border-color: #dac6ed; }
.pdd-source-field { display: inline-flex; align-items: center; min-height: 34px; max-width: 100%; padding: 7px 9px; margin-inline: -9px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--blue-700); font: inherit; font-weight: inherit; text-align: inherit; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.pdd-source-field:hover:not(:disabled) { background: var(--surface-control); border-color: var(--en-line); }
.pdd-source-field:focus-visible { outline: 2px solid var(--blue-700); outline-offset: 2px; }
.pdd-source-field:disabled { opacity: .65; cursor: wait; }
.pdd-source-note-cell > .pdd-source-field { display: block; overflow: hidden; width: 190px; max-width: 190px; white-space: nowrap; text-overflow: ellipsis; }
.pdd-source-readonly { color: var(--en-ink); }
.pdd-source-lock { max-width: 180px; }
.pdd-source-refund { min-width: 90px; }
.en-dialog.pdd-source-editor-dialog { width: min(540px, calc(100vw - 32px)); }
.en-dialog.pdd-source-detail-dialog { width: min(820px, calc(100vw - 32px)); }
.pdd-source-detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; margin: 0 0 22px; padding: 16px; border: 1px solid var(--en-line); border-radius: 14px; background: var(--surface-control); }
.pdd-source-detail-meta dt { margin-bottom: 4px; color: var(--en-muted); font-size: 11px; }
.pdd-source-detail-meta dd { margin: 0; color: var(--en-ink); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.pdd-source-detail-wide { grid-column: 1 / -1; }
.pdd-source-detail-dialog .en-dialog-actions { gap: 10px; margin: 10px 14px 14px; padding: 12px; border: 1px solid var(--en-line); border-radius: 18px; box-shadow: inset 0 1px 0 var(--en-highlight), 0 5px 18px color-mix(in srgb, var(--accent-shadow) 25%, transparent); }
.pdd-source-detail-actions { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.pdd-source-detail-dialog .en-dialog-actions .en-button { white-space: nowrap; }
@media (max-width: 540px) {
  .pdd-source-detail-dialog .en-dialog-actions { gap: 8px; margin: 8px 10px 10px; padding: 10px; border-radius: 16px; }
  .pdd-source-detail-dialog .en-dialog-actions .en-button { padding-inline: 12px; font-size: 11px; }
}
@media (max-width: 360px) {
  .pdd-source-detail-actions { flex-basis: 100%; }
}
.pdd-source-detail-grid [hidden] { display: none; }
.pdd-source-detail-grid textarea { resize: vertical; line-height: 1.65; }
.pdd-source-edit-order { overflow-wrap: anywhere; margin-bottom: 18px !important; }
.pdd-source-editor { min-width: 0; }
.pdd-source-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pdd-source-editor .en-field { min-width: 0; }
.pdd-source-editor :is(input, textarea, select, .en-select-shell) { min-width: 0; max-width: 100%; }
.pdd-source-editor .pdd-source-note-input { min-height: 140px; resize: vertical; line-height: 1.7; }
.pdd-source-editor .en-muted { margin-top: 12px; line-height: 1.6; }
.pdd-source-editor-preview { margin: 16px 0 0 !important; padding: 13px 15px; border: 1px solid var(--en-line); border-radius: 12px; background: var(--surface-control); color: var(--blue-700); font-size: 13px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pdd-source-choices { display: flex; flex-wrap: wrap; gap: 6px; max-height: 140px; overflow-y: auto; margin-top: 12px; padding: 2px; }
.pdd-source-choices > button { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.pdd-source-done { color: var(--en-success); }
.pdd-sources-table [data-pdd-source-dispatch] { display: block; margin-top: 5px; min-height: 29px; }
.pdd-sources-footer { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--en-muted); }
.pdd-sources-empty { min-height: 250px; display: grid; align-content: center; justify-items: center; gap: 12px; }
.pdd-sources-empty > span { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--en-line); border-radius: 16px; background: var(--surface-control); }
.pdd-sources-empty p { color: var(--en-muted); }
.pdd-dispatch-summary { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 16px; border: 1px solid var(--en-line); border-radius: 14px; margin-bottom: 18px; }
.pdd-dispatch-summary strong { margin-left: 8px; }
.en-dialog.pdd-enterprise-import-dialog { width: min(620px, calc(100vw - 32px)); }
.pdd-enterprise-import-progress { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--en-line); border-radius: 14px; background: var(--surface-control); }
.pdd-enterprise-import-progress progress { display: block; width: 100%; height: 5px; overflow: hidden; appearance: none; border: 0; border-radius: 10px; background: var(--surface-tint); color: var(--blue-700); }
.pdd-enterprise-import-progress progress::-webkit-progress-bar { border-radius: 10px; background: var(--surface-tint); }
.pdd-enterprise-import-progress progress::-webkit-progress-value { border-radius: 10px; background: var(--blue-700); transition: width 180ms ease; }
.pdd-enterprise-import-progress progress::-moz-progress-bar { border-radius: 10px; background: var(--blue-700); }
.pdd-enterprise-import-progress p { margin: 0; color: var(--en-muted); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.6; }
.pdd-enterprise-import-progress button { justify-self: start; }
.pdd-enterprise-import-progress button[hidden] { display: none; }
.pdd-enterprise-import-dialog .pdd-dispatch-summary { margin: 0; }
.pdd-enterprise-import-dialog .en-dialog-actions { margin: 0 12px 12px; padding: 12px; border: 1px solid var(--en-line); border-radius: 16px; box-shadow: inset 0 1px 0 var(--glass-line); }
.pdd-enterprise-import-dialog .en-dialog-actions .en-button { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .pdd-enterprise-import-progress progress::-webkit-progress-value { transition: none; } }
.en-dialog.pdd-source-batch-clear-dialog { width: min(620px, calc(100vw - 32px)); }
.pdd-source-batch-clear-dialog .en-dialog-body { gap: 13px; }
.pdd-source-clear-batches { min-width: 0; padding: 14px; border: 1px solid var(--en-line); border-radius: 16px; background: color-mix(in srgb, var(--surface-control) 70%, transparent); box-shadow: inset 0 1px 0 var(--glass-line); }
.pdd-source-clear-batches-head, .pdd-source-clear-batches-head > div { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.pdd-source-clear-batches-head { justify-content: space-between; font-size: 13px; }
.pdd-source-clear-batches-head > div { gap: 10px; }
.pdd-source-clear-batches-head label { display: inline-flex; align-items: center; gap: 5px; color: var(--blue-700); font-size: 11px; white-space: nowrap; cursor: pointer; }
.pdd-source-clear-batches-head input, .pdd-source-clear-batch > input { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; accent-color: var(--blue-700); cursor: pointer; }
.pdd-source-clear-batch-hint { margin: 8px 0 10px !important; font-size: 11px; line-height: 1.65; }
.pdd-source-clear-batch-hint[hidden] { display: none; }
.pdd-source-clear-batches-list { display: grid; gap: 7px; max-height: min(228px, 29dvh); min-width: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--blue-200) transparent; padding: 2px 5px 2px 2px; }
.pdd-source-clear-batches-list:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; border-radius: 12px; }
.pdd-source-clear-batches-list::-webkit-scrollbar { width: 6px; }
.pdd-source-clear-batches-list::-webkit-scrollbar-track { background: transparent; }
.pdd-source-clear-batches-list::-webkit-scrollbar-thumb { border-radius: 8px; background: var(--blue-200); }
.pdd-source-clear-batch { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 10px 11px; border: 1px solid var(--en-line); border-radius: 12px; background: color-mix(in srgb, var(--surface-control) 70%, transparent); cursor: pointer; transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease; }
.pdd-source-clear-batch:hover { border-color: var(--blue-300); background: var(--surface-control); }
.pdd-source-clear-batch.is-selected { border-color: var(--blue-300); background: var(--surface-tint); box-shadow: inset 0 1px 0 var(--glass-line); }
.pdd-source-clear-batch:has(> input:disabled) { cursor: default; }
.pdd-source-clear-batch input:disabled { cursor: default; }
.pdd-source-clear-batch-text { display: grid; flex: 1; gap: 5px; min-width: 0; }
.pdd-source-clear-batch-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pdd-source-clear-batch-title strong { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 1.5; }
.pdd-source-clear-batch-title small { flex-shrink: 0; padding: 2px 5px; border-radius: 6px; color: var(--blue-700); background: color-mix(in srgb, var(--blue-200) 35%, transparent); font-size: 9px; line-height: 1.4; white-space: nowrap; }
.pdd-source-clear-batch-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 3px 10px; color: var(--en-muted); font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.5; }
.pdd-source-clear-batch-meta > span { white-space: nowrap; }
.pdd-source-clear-batch-meta b { color: var(--blue-700); }
.pdd-source-clear-batches .pdd-import-pager { margin-top: 10px; }
.pdd-source-batch-clear-dialog .pdd-source-cancel-summary { align-items: center; justify-content: space-between; gap: 6px; padding: 11px 14px; margin: 0; font-size: 12px; background: var(--surface-control); }
.pdd-source-batch-clear-dialog .pdd-source-cancel-summary > strong { color: var(--blue-700); font-variant-numeric: tabular-nums; font-size: 16px; }
.pdd-source-batch-clear-dialog .en-alert { padding: 10px 12px; font-size: 11px; line-height: 1.65; }
.pdd-source-batch-clear-dialog .pdd-source-delete-warning { margin: 0 !important; font-size: 11px; line-height: 1.7; }
.pdd-source-batch-clear-dialog .pdd-source-clear-password { gap: 6px; }
.pdd-source-batch-clear-dialog .pdd-source-clear-password small { font-size: 11px; line-height: 1.5; }
.pdd-source-batch-clear-dialog .en-dialog-actions { flex-wrap: nowrap; gap: 9px; margin: 0 12px 12px; padding: 12px; border: 1px solid var(--en-line); border-radius: 16px; box-shadow: inset 0 1px 0 var(--glass-line); }
.pdd-source-batch-clear-dialog .en-dialog-actions .en-button { min-width: 0; white-space: nowrap; }
@media (max-width: 540px) {
  .pdd-source-batch-clear-dialog .en-dialog-body { padding: 15px; gap: 11px; }
  .pdd-source-clear-batches { padding: 11px; }
  .pdd-source-clear-batches-head { gap: 6px; }
  .pdd-source-clear-batches-head > div { width: 100%; justify-content: space-between; }
  .pdd-source-clear-batches-list { max-height: min(210px, 26dvh); }
  .pdd-source-clear-batch { padding: 9px; gap: 8px; }
  .pdd-source-clear-batch-meta { font-size: 10px; }
  .pdd-source-batch-clear-dialog .en-dialog-actions { margin: 0 10px 10px; padding: 10px; }
  .pdd-source-batch-clear-dialog .en-dialog-actions .en-button { padding-inline: 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .pdd-source-clear-batch { transition: none; } }
.pdd-dispatch-hint { margin-block: 16px !important; }
.pdd-dispatch-details { border-top: 1px solid var(--en-line); padding-top: 14px; }
.pdd-dispatch-details summary { cursor: pointer; font-weight: 600; }
.pdd-dispatch-details ul { list-style: none; padding: 0; max-height: 220px; overflow: auto; }
.pdd-dispatch-details li { display: flex; justify-content: space-between; gap: 20px; padding: 9px 0; overflow-wrap: anywhere; }
.pdd-dispatch-details li strong { white-space: nowrap; }
.pdd-enterprise-import-dialog [data-pdd-import-review] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 8px 16px; }
.pdd-enterprise-import-dialog [data-pdd-import-review] > * { min-width: 0; overflow-wrap: anywhere; }
.pdd-enterprise-import-dialog [data-pdd-import-review] strong { white-space: normal; font-size: 12px; line-height: 1.6; text-align: right; }
.pdd-enterprise-import-dialog [data-pdd-import-review="blocked"] strong { color: var(--en-muted); font-weight: 500; }
@media (max-width: 520px) {
  .pdd-enterprise-import-dialog [data-pdd-import-review] { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pdd-enterprise-import-dialog [data-pdd-import-review] strong { text-align: left; }
}
#enterprisePddSourcesButton[aria-pressed="true"] { color: var(--blue-700); background: var(--surface-control); border-color: var(--blue-300); box-shadow: inset 0 1px 0 var(--glass-line); }
@media (max-width: 1599px) {
  .pdd-sources-header { display: flex; flex-direction: column; gap: 10px; }
  .pdd-sources-header > .pdd-sources-toolbar, .pdd-sources-header > .pdd-sources-selection { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
  .pdd-sources-header > .pdd-sources-selection { padding: 8px 10px; }
  .pdd-sources-batch-area, .pdd-sources-selection-actions { padding: 0; }
  .pdd-sources-summary { align-self: stretch; }
  .pdd-sources-summary-groups { row-gap: 7px; }
  .pdd-sources-summary-totals { row-gap: 8px; }
  .pdd-sources-selection-actions { margin-left: auto; }
}
@media (max-width: 700px) {
  .pdd-sources-panel { gap: 12px; }
  .pdd-sources-toolbar { gap: 8px; }
  .pdd-sources-toolbar .en-segmented { flex: 1 0 100%; }
  .pdd-sources-toolbar .en-segmented button { flex: 1; }
  .pdd-sources-search { flex: 1 1 180px; width: auto; min-width: 180px; margin-left: 0; }
  .pdd-sources-selection { flex-wrap: wrap; gap: 8px; padding: 10px; }
  .pdd-sources-totals-financial, .pdd-sources-selection-summary { flex: 1 0 100%; }
  .pdd-sources-selection-summary:has(.pdd-sources-totals-pending[hidden]) { display: none; }
  .pdd-source-periods { flex: 1 0 100%; width: 100%; }
  .pdd-sources-selection > .en-select, .pdd-sources-selection > .en-select-shell { width: 100%; flex: 1 0 100%; }
  .pdd-sources-primary-actions { flex-wrap: wrap; width: 100%; }
  .pdd-sources-primary-actions .en-segmented { flex: 1 0 100%; }
  .pdd-sources-primary-actions .en-segmented button { flex: 1; }
  .pdd-sources-search-actions { width: 100%; }
  .pdd-sources-search-actions .pdd-sources-search { flex: 1; width: auto; margin: 0; }
  .pdd-sources-selection-actions { flex-wrap: wrap; width: 100%; margin-left: 0; }
  .pdd-sources-selection-actions > .pdd-source-periods { flex: 1 0 100%; width: auto; }
  .pdd-sources-selection-actions > .en-select, .pdd-sources-selection-actions > .en-select-shell { flex: 1; width: auto; min-width: 130px; }
  #pddSourcesDispatchButton { flex: 1 0 100%; }
  .pdd-sources-table-wrap { flex: none; max-height: 62dvh; }
  .pdd-sources-footer { flex-wrap: wrap; }
  .pdd-source-editor-grid { grid-template-columns: 1fr; }
  .pdd-source-detail-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; gap: 12px; }
  .en-context-bar > .en-inline-actions:has(> #enterprisePddSourcesButton:not([hidden])) { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; max-width: 100%; gap: 6px; padding: 2px 0 5px; scrollbar-width: thin; }
  .en-context-bar > .en-inline-actions:has(> #enterprisePddSourcesButton:not([hidden])) > * { flex-shrink: 0; }
  .en-context-bar > .en-inline-actions:has(> #enterprisePddSourcesButton:not([hidden])) .en-segmented { margin-left: 0; }
}
/* Adapt to the card's own width: the enterprise card can be narrower than
   the viewport while sitting beside its title and actions. */
@container order-summary (max-width: 720px) {
  .pdd-sources-summary-groups > div, .pdd-sources-summary-totals > div { grid-template-columns: minmax(0, 1fr); }
  .pdd-sources-summary :is(.pdd-sources-summary-groups, .pdd-sources-summary-totals) dd { width: 100%; }
}
@container order-summary (max-width: 420px) {
  .pdd-sources-summary-groups, .pdd-sources-summary-totals { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .pdd-sources-summary-groups > div, .pdd-sources-summary-totals > div { grid-template-columns: 9em minmax(0, 1fr); }
}
@container order-summary (max-width: 300px) {
  .pdd-sources-summary-groups > div, .pdd-sources-summary-totals > div { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pdd-source-period-indicator, .pdd-sources-calendar-connector, .pdd-sources-drop-overlay { transition: none; }
  .pdd-source-completion, .pdd-source-completion svg, #pddSourceStatusPopover > button { transition: none; }
  .pdd-source-people-button, .pdd-source-select-all, .pdd-source-select-all > span { transition: none; }
}

/* Bounded list pages keep controls in the footer, without shifting the header. */
.pdd-import-pager { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; min-width: 0; color: var(--en-muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.pdd-import-pager[hidden] { display: none; }
.pdd-import-page-button { display: inline-flex; align-items: center; justify-content: center; min-height: 32px; min-width: 48px; padding: 6px 10px; border: 1px solid var(--en-line); border-radius: 10px; color: var(--blue-700); background: var(--surface-control); font: inherit; white-space: nowrap; cursor: pointer; box-shadow: inset 0 1px 0 var(--glass-line); transition: background-color 160ms ease, border-color 160ms ease; }
.pdd-import-page-button:hover:not(:disabled) { background: var(--surface-tint); border-color: var(--blue-300); }
.pdd-import-page-button:disabled { opacity: .45; cursor: default; }
.pdd-import-page-button:focus-visible, #pddSourcesPageNumber:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }
.pdd-import-page-summary { white-space: nowrap; }
.pdd-sources-pagination { margin-left: auto; flex-shrink: 0; }
.pdd-sources-page-number { display: flex; align-items: center; gap: 5px; }
#pddSourcesPageNumber { box-sizing: border-box; width: 48px; min-height: 32px; padding: 4px; border: 1px solid var(--en-line); border-radius: 9px; background: var(--surface-control); color: var(--blue-700); text-align: center; font: inherit; appearance: textfield; -moz-appearance: textfield; }
#pddSourcesPageNumber::-webkit-inner-spin-button, #pddSourcesPageNumber::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#pddSourcesPageRange { white-space: nowrap; margin-right: 3px; }
.pdd-sources-footer { align-items: center; flex-wrap: wrap; }
#pddSourcesDateSummary { margin-left: auto; }
@media (max-width: 700px) {
  .pdd-sources-panel { overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; }
  .pdd-sources-pagination { flex: 1 0 100%; justify-content: flex-start; margin-left: 0; }
  #pddSourcesDateSummary { margin-left: 0; }
  .pdd-import-pager { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { .pdd-import-page-button { transition: none; } }
