.pd-module { color: #253c35; padding: 22px; background: #fff; border: 1px solid #dbe5df; border-radius: 12px; font-size: 14px; }
.pd-module *, .pd-overlay * { box-sizing: border-box; }
.pd-module h2, .pd-overlay h2 { margin: 0 0 7px; font-size: 22px; color: #163c2d; }
.pd-module h3, .pd-overlay h3 { margin: 8px 0; font-size: 16px; }
.pd-header, .pd-toolbar, .pd-selection, .pd-pagination, .pd-drawer header, .pd-drawer footer, .pd-modal footer { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-header { justify-content: space-between; }
.pd-header p { color: #687c72; margin: 0; }
.pd-scope { color: #65786d; background: #f3f7f4; padding: 11px 13px; line-height: 1.65; border-radius: 6px; }
.pd-module button, .pd-overlay button, .pd-download { min-height: 36px; border: 1px solid #cbd9d0; border-radius: 6px; padding: 7px 12px; font: inherit; cursor: pointer; background: #fff; color: #294a39; text-decoration: none; box-shadow: none; }
.pd-module button:hover, .pd-overlay button:hover { background: #edf5ef; }
.pd-module button:disabled, .pd-overlay button:disabled { opacity: .5; cursor: default; }
.pd-module .pd-primary, .pd-overlay .pd-primary, .pd-module .pd-active, .pd-download { background: #218451; border-color: #218451; color: #fff; box-shadow: none; }
.pd-module .pd-primary:hover, .pd-overlay .pd-primary:hover, .pd-download:hover { background: #196f42; }
.pd-module input, .pd-module select, .pd-overlay input, .pd-overlay select, .pd-overlay textarea { min-height: 36px; border: 1px solid #cbd9d0; border-radius: 5px; padding: 7px 9px; background: #fff; color: #253c35; font: inherit; max-width: 100%; }
.pd-module input:focus-visible, .pd-module select:focus-visible, .pd-overlay input:focus-visible, .pd-overlay select:focus-visible, .pd-overlay textarea:focus-visible, .pd-module button:focus-visible, .pd-overlay button:focus-visible, .pd-table-scroll:focus-visible { outline: 2px solid #218451; outline-offset: 2px; }
.pd-module input[type=checkbox], .pd-overlay input[type=checkbox] { accent-color: #218451; min-height: 0; width: 17px; height: 17px; padding: 0; cursor: pointer; }
.pd-tabs { display: flex; gap: 8px; margin: 16px 0; flex-wrap: wrap; }
.pd-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; padding: 14px; border: 1px solid #e0e8e2; border-radius: 8px; margin-bottom: 12px; }
.pd-filters label, .pd-product-fields label { display: grid; gap: 6px; }
.pd-filters label:first-child { flex: 1; min-width: 180px; }
.pd-selection { padding: 12px 0; }
.pd-selection small { flex-basis: 100%; color: #728277; }
.pd-table-scroll { max-width: 100%; overflow: auto; border: 1px solid #e0e8e2; border-radius: 7px; }
.pd-module table, .pd-overlay table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.pd-module th, .pd-overlay th { background: #f1f6f2; color: #42654c; font-weight: 600; padding: 11px; white-space: nowrap; border-bottom: 1px solid #dbe5dd; }
.pd-module td, .pd-overlay td { padding: 11px; border-bottom: 1px solid #e8eee9; vertical-align: middle; }
.pd-module tr:last-child td, .pd-overlay tr:last-child td { border-bottom: 0; }
.pd-module td small, .pd-edit-table td small { display: block; margin-top: 5px; color: #74847b; }
.pd-module .pd-selected td { background: #218451; color: #fff; box-shadow: none; }
.pd-module .pd-selected td small, .pd-module .pd-selected .pd-link { color: #fff; }
.pd-module .pd-link { border: 0; background: transparent; padding: 0; min-height: 24px; text-align: left; color: #177749; }
.pd-badge { padding: 4px 7px; background: #eef3ef; border-radius: 4px; white-space: nowrap; }
.pd-approved { color: #14733f; background: #e6f5eb; }
.pd-submitted { color: #325486; background: #e9f0fa; }
.pd-returned { color: #a4383c; background: #f9ecec; }
.pd-pagination { margin-top: 14px; justify-content: end; }
.pd-pagination span { margin-right: auto; }
.pd-empty { text-align: center; padding: 32px !important; color: #74847b; }
.pd-error { background: #fff0ef; color: #a53032; padding: 12px; border-radius: 6px; }
.pd-notice { background: #edf8ef; color: #23683e; padding: 12px; border-radius: 6px; }
.pd-warning { color: #805216; background: #fff9e9; border-radius: 5px; padding: 9px; line-height: 1.6; }
.pd-overlay { position: fixed; inset: 0; z-index: 150; display: flex; justify-content: end; background: #172d235e; color: #253c35; font-size: 14px; }
.pd-drawer { width: min(1180px, 96vw); height: 100%; overflow: auto; background: #fff; padding: 22px; box-shadow: -10px 0 30px #10201825; }
.pd-drawer header { justify-content: space-between; }
.pd-drawer header span { color: #728277; }
.pd-product-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.pd-product-fields label:last-child { grid-column: 1 / -1; }
.pd-product-fields textarea { min-height: 65px; resize: vertical; }
.pd-drawer .pd-toolbar { margin: 12px 0; }
.pd-edit-table { min-width: 2520px; }
.pd-edit-table td { padding: 8px; min-width: 140px; }
.pd-edit-table td:first-child { min-width: 150px; }
.pd-edit-table td input { width: 140px; }
.pd-edit-table td:nth-child(6) input { width: 220px; }
.pd-edit-table td:nth-child(8), .pd-edit-table td:nth-child(10) { min-width: 92px; }
.pd-transport { border: 0; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; width: 245px; }
.pd-transport label { white-space: nowrap; display: flex; gap: 4px; align-items: center; font-size: 12px; }
.pd-edit-table td .pd-transport input { width: 16px; }
.pd-drawer footer { margin-top: 20px; position: sticky; bottom: -22px; padding: 14px 0; background: #fff; border-top: 1px solid #e2ebe4; }
.pd-approval, .pd-approved-tools { margin-top: 18px; padding: 15px; background: #f4f8f5; border: 1px solid #dce8df; border-radius: 8px; }
.pd-approval-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 9px 0; border-bottom: 1px solid #dce8df; }
.pd-approval-row strong { flex: 1; min-width: 180px; }
.pd-approval-row select { max-width: 360px; }
.pd-approved-tools > div { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.pd-approved-tools > div span { font-size: 12px; color: #667b6e; }
.pd-front { z-index: 151; align-items: center; justify-content: center; }
.pd-modal { width: min(820px, 92vw); max-height: 88vh; overflow: auto; background: #fff; padding: 24px; border-radius: 12px; box-shadow: 0 16px 60px #1622193d; }
.pd-modal p { line-height: 1.7; }
.pd-modal textarea { width: 100%; margin-top: 8px; resize: vertical; }
.pd-modal > select { width: 100%; }
.pd-modal footer { justify-content: end; margin-top: 20px; }
.pd-batch > button { margin-top: 16px; }
.pd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
@media (max-width: 600px) {
  .pd-module { padding: 12px; border-radius: 8px; }
  .pd-header { align-items: start; }
  .pd-header h2 { font-size: 20px; }
  .pd-filters { padding: 10px; gap: 10px; }
  .pd-filters label { width: 100%; }
  .pd-filters button { width: 100%; }
  .pd-module button, .pd-overlay button { min-height: 42px; }
  .pd-selection label { width: 100%; display: grid; gap: 6px; }
  .pd-selection select { width: 100%; }
  .pd-drawer { width: 100vw; padding: 14px; }
  .pd-product-fields { grid-template-columns: 1fr; }
  .pd-drawer footer { bottom: -14px; }
  .pd-modal { padding: 16px; width: 96vw; max-height: 92vh; }
  .pd-modal footer button { flex: 1; }
  .pd-approval-row select { width: 100%; max-width: 100%; }
  .pd-approved-tools > div { padding: 10px 0; border-bottom: 1px solid #dce8df; }
}

.pd-evidence-summary { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px; margin-top: 10px; border-radius: 6px; background: #f3f8f4; }
.pd-evidence-summary strong { margin-left: 7px; }
.pd-evidence-summary small { flex-basis: 100%; color: #728277; }

/* One column geometry for headers, input rows and read-only rows. */
.pd-module .pd-list { display: table; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; border-spacing: 0; }
.pd-module .pd-list thead { display: table-header-group; }
.pd-module .pd-list tbody { display: table-row-group; width: auto; }
.pd-module .pd-list tr { display: table-row; width: auto; border: 0; border-radius: 0; overflow: visible; }
.pd-module .pd-list th, .pd-module .pd-list td { display: table-cell; width: auto; min-width: 0; padding: 6px 5px; font-size: 13px; }
.pd-module .pd-list td::before { content: none; display: none; }
.pd-module .pd-list th { height: 37px; overflow: hidden; text-overflow: ellipsis; }
.pd-list .pd-inline-sku, .pd-list .pd-read-sku { height: 44px; }
.pd-list .pd-inline-sku > td, .pd-list .pd-read-sku > td { vertical-align: top; }
.pd-list td input:not([type=checkbox]), .pd-list td select { width: 100%; min-width: 0; height: 32px; min-height: 32px; padding: 5px; font-size: 13px; line-height: 20px; }
.pd-list td input { text-overflow: ellipsis; }
.pd-list td input:focus { text-overflow: clip; }
.pd-list input:disabled, .pd-list select:disabled { background: #f0f3f1; color: #74847b; }
.pd-list td small { height: 16px; margin-top: 3px; font-size: 13px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-code, .pd-read-value { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-code { font-size: 13px; line-height: 20px; }
.pd-read-value { height: 32px; line-height: 32px; }
.pd-code:focus, .pd-read-value:focus { outline: 2px solid #218451; outline-offset: 1px; }
.pd-spu-row > td { background: #f1f7f3; border-top: 2px solid #d6e4db; }
.pd-inline-heading, .pd-parent-bar, .pd-inline-actions { display: flex; align-items: center; gap: 7px; min-width: 0; }
.pd-inline-heading { flex-wrap: wrap; }
.pd-inline-heading .pd-link { max-width: 36%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-inline-heading > strong, .pd-inline-heading > span { white-space: nowrap; }
.pd-parent-bar { min-height: 36px; }
.pd-parent-name { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 150px; }
.pd-parent-name > span { flex: 0 0 auto; }
.pd-inline-actions { flex: 0 0 auto; }
.pd-list .pd-inline-actions button { min-height: 32px; height: 32px; padding: 4px 8px; font-size: 13px; white-space: nowrap; }
.pd-inline-actions [data-pd-dirty-status] { max-width: 92px; color: #65786d; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-inline-parent .pd-badge { flex: 0 0 auto; font-size: 13px; }
.pd-list [data-pd-popover] > summary { list-style: none; border: 1px solid #cbd9d0; border-radius: 5px; min-height: 32px; padding: 5px 7px; cursor: pointer; white-space: nowrap; background: #fff; color: #294a39; font-size: 13px; line-height: 20px; }
.pd-list [data-pd-popover] > summary::-webkit-details-marker { display: none; }
.pd-list [data-pd-popover] > summary:focus-visible { outline: 2px solid #218451; }
.pd-list .pd-row-actions summary { text-align: center; font-weight: 700; }
.pd-list .pd-popover { position: fixed; z-index: 140; padding: 10px; max-height: calc(100vh - 24px); overflow: auto; border: 1px solid #cbd9d0; border-radius: 7px; background: #fff; color: #253c35; box-shadow: 0 8px 24px #163c2d20; white-space: normal; }
.pd-list .pd-row-actions .pd-popover { display: grid; gap: 6px; }
.pd-list .pd-popover button { width: 100%; min-height: 34px; padding: 6px; text-align: left; font-size: 13px; }
.pd-list .pd-popover p { line-height: 1.6; margin: 0 0 10px; }
.pd-list .pd-popover .pd-product-fields { grid-template-columns: 1fr; margin: 10px 0; }
.pd-module textarea { min-height: 58px; border: 1px solid #cbd9d0; border-radius: 5px; padding: 7px 9px; color: #253c35; background: #fff; font: inherit; resize: vertical; }
.pd-grid-help { color: #65786d; font-size: 13px; line-height: 1.7; }
.pd-module .pd-cell-selected { outline: 2px solid #218451; outline-offset: -2px; background: #eef8f1; }
.pd-module .pd-selected .pd-cell-selected { background: #186d42; }
.pd-cell-error[hidden] { display: none; }
.pd-secondary-fields { display: flex; flex-wrap: wrap; gap: 12px; }
.pd-secondary-fields label { display: grid; gap: 7px; min-width: 160px; flex: 1; }
.pd-list .pd-product-code { flex: 0 0 116px; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 4px; }
.pd-list .pd-code-label { font-size: 13px; white-space: nowrap; }
.pd-list .pd-product-code .pd-code-error { grid-column: 1 / -1; }
.pd-list .pd-full-code { font-weight: 600; background: transparent; border-color: transparent; }
.pd-list .pd-selected .pd-full-code { color: #fff; }
.pd-sku-identity { display: flex; align-items: center; gap: 6px; min-width: 0; }
.pd-list .pd-sku-identity input:not([type=checkbox]) { flex: 1; min-width: 0; width: 0; }
.pd-no-source { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; white-space: nowrap; font-size: 13px; }
.pd-list .pd-code-error { color: #a53032; }
.pd-list .pd-code-error[hidden] { display: none; }
.pd-list [data-pd-code][aria-invalid="true"] { border-color: #a53032; }
/* SPU headers and their SKU children form explicit, collapsible row groups. */
.pd-module .pd-list .pd-group[data-collapsed="true"] > tr:not(.pd-spu-row) { display: none; }
.pd-list .pd-spu-row > td { background: #e8f2ec; border-top-color: #94b6a0; }
.pd-list .pd-group > tr:last-child > td { box-shadow: inset 0 -1px #94b6a0; }
.pd-list .pd-group > tr > td:first-child { box-shadow: inset 2px 0 #94b6a0; }
.pd-list .pd-parent-kind { flex: 0 0 auto; color: #1b5935; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pd-list .pd-sku-count { flex: 0 0 auto; color: #476b55; font-size: 13px; white-space: nowrap; }
.pd-list .pd-group-toggle { flex: 0 0 auto; min-height: 32px; height: 32px; padding: 4px 6px; font-size: 13px; white-space: nowrap; }
.pd-list .pd-parent-title { flex: 1; min-width: 0; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; font-weight: 600; }
.pd-list .pd-read-parent > button:not(.pd-link) { min-height: 32px; height: 32px; padding: 4px 8px; font-size: 13px; white-space: nowrap; }
.pd-module .pd-list .pd-child-code { position: relative; padding-left: 18px; }
.pd-child-mark { position: absolute; left: 5px; top: 7px; color: #6b9a7c; font-size: 15px; line-height: 20px; }
@media (max-width: 900px) {
  .pd-module .pd-list { min-width: 820px; }
  .pd-inline-parent .pd-parent-bar { width: calc(100vw - 100px); max-width: 100%; flex-wrap: wrap; position: sticky; left: 5px; }
  .pd-parent-name { flex-basis: calc(100% - 90px); }
  .pd-read-parent { width: calc(100vw - 100px); flex-wrap: wrap; position: sticky; left: 5px; }
  .pd-read-parent .pd-parent-title { flex-basis: 55%; }
  .pd-inline-actions { flex-wrap: wrap; }
  .pd-inline-parent > td > .pd-error { max-width: calc(100vw - 100px); position: sticky; left: 5px; }
  .pd-secondary-fields, .pd-list .pd-approved-tools, .pd-list .pd-approval { max-width: calc(100vw - 100px); position: sticky; left: 5px; }
}

/* Export history stays visible while approved SKUs remain selectable. */
.pd-export-mark { flex: 0 0 auto; font-size: 12px; color: #496754; white-space: nowrap; }
