/* Customer UI review patch — 2026-09-11
   Scope: presentation and browser-side interaction only. */

.u-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Compact page heads ------------------------------------------------------ */
.pm-page-head {
    margin-bottom: 16px;
    gap: 18px;
}

.pm-page-head-copy h1 {
    margin-bottom: 4px;
}

.pm-page-head-copy p {
    margin-top: 0;
}

.dashboard-business-head {
    align-items: end;
    padding-top: 0;
    margin-top: -4px;
    margin-bottom: 12px;
}

.dashboard-head-actions,
.dashboard-region-form {
    align-items: end;
}

.dashboard-region-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dashboard-region-form .dashboard-filter-field {
    min-width: 210px;
}

/* Sidebar hierarchy ------------------------------------------------------- */
.nav-tree {
    margin: 0;
    padding: 0;
}

.nav-tree > summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.nav-tree > summary::-webkit-details-marker {
    display: none;
}

.nav-tree-summary {
    position: relative;
}

.nav-tree-chevron {
    margin-left: auto;
    font-size: 16px;
    line-height: 1;
    transition: transform .16s ease;
}

.nav-tree[open] .nav-tree-chevron {
    transform: rotate(180deg);
}

.nav-tree-items {
    display: grid;
    gap: 2px;
    margin: 2px 0 6px;
}

.nav-tree-items .nav-subitem {
    min-height: 34px;
}

.nav-tree-items .nav-icon {
    display: none;
}

.is-sidebar-collapsed .nav-tree-items,
.is-sidebar-collapsed .nav-tree-chevron {
    display: none;
}

.is-sidebar-collapsed .nav-tree-summary {
    justify-content: center;
}

/* Searchable selects: keep a common field footprint ---------------------- */
.pm-filter-field .pm-search-select,
.analytics-filter-field .pm-search-select,
.report-negotiation-form .pm-search-select,
.request-new-filters .pm-search-select,
.product360-context-form .pm-search-select,
.matching-filter-form .pm-search-select,
.manual-filter-form .pm-search-select {
    width: 100%;
    min-width: 0;
}

.pm-search-select-trigger,
.pm-filter-field > select,
.analytics-filter-field > select,
.report-negotiation-form select,
.request-new-filters select,
.product360-context-form select,
.matching-filter-form select,
.manual-filter-form select {
    min-height: 38px;
}

/* Pagination -------------------------------------------------------------- */
.pm-pagination {
    gap: 10px 14px;
    flex-wrap: wrap;
}

.pm-page-jump {
    display: inline-flex;
    align-items: end;
    gap: 6px;
    margin-left: auto;
}

.pm-page-jump label {
    display: inline-grid;
    gap: 3px;
    font-size: 12px;
    color: var(--muted, #6b7280);
}

.pm-page-jump input {
    width: 78px;
    min-height: 32px;
    padding: 5px 8px;
}

/* Analytics --------------------------------------------------------------- */
.analytics-saved-view-controls {
    align-items: center;
    row-gap: 6px;
}

.analytics-saved-view-hint {
    font-size: 12px;
    color: var(--muted, #6b7280);
    white-space: nowrap;
}

.analytics-table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.analytics-horizontal-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.analytics-horizontal-table th,
.analytics-horizontal-table td {
    vertical-align: middle;
}

.analytics-horizontal-table th {
    white-space: normal;
    line-height: 1.18;
}

.analytics-horizontal-table th.num,
.analytics-horizontal-table td.num {
    min-width: 112px;
    white-space: nowrap;
}

.analytics-horizontal-table .analytics-sticky-code {
    position: sticky;
    left: 0;
    z-index: 5;
    width: 92px;
    min-width: 92px;
    max-width: 92px;
    background: var(--surface, #fff);
}

.analytics-horizontal-table .analytics-sticky-product {
    position: sticky;
    left: 92px;
    z-index: 5;
    width: 290px;
    min-width: 290px;
    max-width: 290px;
    background: var(--surface, #fff);
    box-shadow: 8px 0 12px -12px rgba(17, 24, 39, .48);
}

.analytics-horizontal-table thead .analytics-sticky-code,
.analytics-horizontal-table thead .analytics-sticky-product {
    z-index: 8;
    background: var(--surface-subtle, #f6f7f8);
}

.analytics-horizontal-table .analytics-recommendation-cell {
    min-width: 170px;
    max-width: 220px;
    white-space: normal;
}

.analytics-horizontal-table .analytics-recommendation-cell strong,
.analytics-horizontal-table .analytics-recommendation-cell span {
    display: block;
    line-height: 1.25;
}

#analytics-insights-panel .analytics-panel-head {
    margin-bottom: 12px;
}

.analytics-position-help {
    max-width: 620px;
    margin: 5px 0 0;
    color: var(--muted, #6b7280);
    font-size: 13px;
    line-height: 1.35;
}

.analytics-position-bar {
    margin-top: 4px;
}

.analytics-breakdown-empty-network {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) repeat(4, minmax(76px, auto)) 24px;
    gap: 12px;
    align-items: center;
    min-height: 52px;
    padding: 8px 12px;
    border-top: 1px solid var(--border, #e5e7eb);
    color: var(--muted, #6b7280);
}

.analytics-breakdown-empty-network > span:first-child {
    display: grid;
    gap: 2px;
}

.analytics-breakdown-empty-network strong {
    color: var(--text, #111827);
}

/* Assortment -------------------------------------------------------------- */
.products-data-table-scroll {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.our-products-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}
.our-products-table th,
.our-products-table td {
    vertical-align: middle;
}

.our-products-table th:first-child,
.our-products-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    width: 96px;
    min-width: 96px;
    background: var(--surface, #fff);
}

.our-products-table th:nth-child(2),
.our-products-table td:nth-child(2) {
    position: sticky;
    left: 96px;
    z-index: 5;
    width: 310px;
    min-width: 310px;
    max-width: 310px;
    background: var(--surface, #fff);
    box-shadow: 8px 0 12px -12px rgba(17, 24, 39, .48);
}

.our-products-table thead th:first-child,
.our-products-table thead th:nth-child(2) {
    z-index: 8;
    background: var(--surface-subtle, #f6f7f8);
}

.our-products-table th:nth-child(6) { min-width: 142px; }
.our-products-table th:nth-child(7) { min-width: 130px; }
.our-products-table th:nth-child(8) { min-width: 136px; }
.our-products-table th:nth-child(9),
.our-products-table td:nth-child(9) {
    min-width: 126px;
    max-width: 142px;
}

.our-products-table td:nth-child(9) {
    color: var(--muted, #6b7280);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.25;
}

/* Product 360 ------------------------------------------------------------- */
.product360-context-form {
    align-items: end;
    gap: 8px;
}

.product360-context-form > div {
    min-width: 170px;
}

.product360-context-form > div:has(#product360-period) {
    min-width: auto;
}

.pm-segmented-source {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.pm-period-segments {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--border, #d9dde3);
    border-radius: 9px;
    background: var(--surface-subtle, #f6f7f8);
}

.pm-period-segment {
    min-width: 42px;
    min-height: 32px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted-strong, #4b5563);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.pm-period-segment:hover,
.pm-period-segment:focus-visible {
    background: rgba(17, 24, 39, .06);
}

.pm-period-segment.is-active {
    background: var(--surface, #fff);
    color: var(--text, #111827);
    box-shadow: 0 1px 3px rgba(17, 24, 39, .12);
}

/* Request registry/editor ------------------------------------------------- */
.request-history-search {
    display: flex;
    align-items: end;
    gap: 10px;
    margin: 12px 0;
    padding: 10px 12px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    background: var(--surface, #fff);
}

.request-history-search label {
    display: grid;
    gap: 4px;
    width: min(520px, 100%);
}

.request-history-search label > span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-strong, #4b5563);
}

.request-history-search input {
    min-height: 38px;
}

.request-history-search-state {
    padding-bottom: 8px;
    color: var(--muted, #6b7280);
    font-size: 12px;
}

.request-summary-strip {
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 6px;
}

.request-summary-strip article {
    min-height: 66px;
    padding: 9px 11px;
}

.request-summary-strip article span {
    line-height: 1.15;
}

.request-editor-bulk-panel .request-editor-panel-head {
    align-items: center;
    gap: 10px;
}

.request-editor-select-actions,
.request-editor-primary-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.request-editor-primary-actions {
    margin-top: 8px;
}

.request-editor-paste textarea {
    min-height: 84px;
    max-height: 132px;
    resize: vertical;
}

.request-editor-excel-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
}

.request-editor-excel-controls > label {
    margin: 0;
}

.request-editor-file input[type="file"] {
    max-width: 320px;
    min-height: 38px;
    font: inherit;
    font-size: 13px;
}

.request-editor-file input[type="file"]::file-selector-button {
    min-height: 34px;
    margin-right: 8px;
    padding: 6px 10px;
    border: 1px solid var(--border, #d9dde3);
    border-radius: 7px;
    background: var(--surface, #fff);
    color: var(--text, #111827);
    font: inherit;
    cursor: pointer;
}

.request-editor-table-wrap {
    overflow-x: auto;
}

.request-editor-table {
    min-width: 1240px;
}

.request-editor-table th,
.request-editor-table td {
    vertical-align: middle;
}

.request-editor-table th:nth-child(2),
.request-editor-table td:nth-child(2) {
    min-width: 240px;
}

.request-editor-table th:nth-child(3),
.request-editor-table th:nth-child(4),
.request-editor-table th:nth-child(5) {
    min-width: 104px;
}

.request-validation-details {
    display: grid;
    gap: 3px;
    margin: 6px 0 0;
    padding-left: 16px;
    color: var(--danger, #b42318);
    font-size: 12px;
    line-height: 1.3;
}

.request-editor-table [aria-invalid="true"] {
    border-color: var(--danger, #b42318) !important;
    box-shadow: 0 0 0 2px rgba(180, 35, 24, .08);
}

/* Reports ----------------------------------------------------------------- */
.report-negotiation-primary .pm-filter-field,
.report-negotiation-advanced-grid > div {
    min-width: 0;
}

.report-negotiation-form .pm-search-select-trigger {
    width: 100%;
}

/* Run history ------------------------------------------------------------- */
.run-history-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--border, #e5e7eb);
    border-bottom: 1px solid var(--border, #e5e7eb);
    background: var(--surface-subtle, #f8f9fa);
}

.run-history-filters label {
    display: grid;
    gap: 4px;
    min-width: 190px;
}

.run-history-filters label > span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-strong, #4b5563);
}

.run-history-filters input,
.run-history-filters select,
.run-history-filters .pm-search-select-trigger {
    min-height: 36px;
}

.run-history-filter-state {
    margin-left: auto;
    padding-bottom: 8px;
    color: var(--muted, #6b7280);
    font-size: 12px;
}

/* Matching ---------------------------------------------------------------- */
.matching-filter-form > div {
    min-width: 190px;
}

.matching-confidence-field {
    display: grid;
    grid-template-columns: auto 76px auto;
    align-items: center;
    gap: 6px;
}

.matching-confidence-field > span:first-child {
    align-self: center;
    margin: 0;
}

.matching-confidence-unit {
    color: var(--muted-strong, #4b5563);
    font-weight: 600;
}

.matching-data-table-scroll {
    overflow-x: auto;
}

.matching-table {
    min-width: 980px;
    table-layout: auto;
}

.matching-table th:nth-last-child(3),
.matching-table td:nth-last-child(3) {
    min-width: 280px;
}

.matching-table th:last-child,
.matching-table td:last-child {
    min-width: 190px;
    text-align: left;
}

.matching-product-cell strong {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.28;
}

.matching-action-grid {
    justify-content: flex-start;
}

.matching-log-details > summary span:first-child {
    font-weight: 600;
}

/* Competitor catalog/card ------------------------------------------------- */
.competitor-products-table {
    width: max-content;
    min-width: 100%;
    table-layout: auto;
}

.competitor-products-table th:first-child,
.competitor-products-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 5;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    background: var(--surface, #fff);
    box-shadow: 8px 0 12px -12px rgba(17, 24, 39, .48);
}

.competitor-products-table thead th:first-child {
    z-index: 8;
    background: var(--surface-subtle, #f6f7f8);
}

.competitor-products-table th:nth-child(3),
.competitor-products-table td:nth-child(3) {
    min-width: 220px;
    max-width: 280px;
}

.competitor-products-table th:nth-child(4),
.competitor-products-table th:nth-child(5),
.competitor-products-table th:nth-child(6),
.competitor-products-table td:nth-child(4),
.competitor-products-table td:nth-child(5),
.competitor-products-table td:nth-child(6) {
    min-width: 104px;
    text-align: center !important;
}

.competitor-products-table th:nth-child(8),
.competitor-products-table td:nth-child(8) {
    min-width: 142px;
}

.competitor-products-table th:nth-child(9),
.competitor-products-table td:nth-child(9) {
    min-width: 132px;
}

#product-modal-content .hero-price-card {
    display: grid;
    gap: 5px;
    align-content: center;
    min-width: 190px;
}

#product-modal-content .hero-price-card > span,
#product-modal-content .hero-price-card > strong,
#product-modal-content .hero-price-card > small {
    display: block;
}

#product-modal-content .hero-price-card > strong {
    line-height: 1.05;
}

#product-modal-content .info-card > span .metric-help {
    margin-left: 5px;
}

#product-modal-content .history-values-details th:nth-child(2),
#product-modal-content .history-values-details td:nth-child(2) {
    min-width: 150px;
}

#product-modal-content .store-price-table th:nth-child(3),
#product-modal-content .store-price-table td:nth-child(3) {
    text-align: center;
}

/* Access / roles ---------------------------------------------------------- */
.role-access-table-wrap {
    overflow-x: auto;
}

.role-access-table {
    width: 100%;
    min-width: 680px;
    table-layout: fixed;
}

.role-access-table th:first-child,
.role-access-table td:first-child {
    width: 52%;
}

.role-access-table th:nth-child(2),
.role-access-table td:nth-child(2) {
    width: 14%;
}

.role-access-table th:nth-child(3),
.role-access-table td:nth-child(3) {
    width: 10%;
}

.role-access-table th:nth-child(4),
.role-access-table td:nth-child(4) {
    width: 14%;
}

.role-access-table th:nth-child(5),
.role-access-table td:nth-child(5) {
    width: 10%;
}

.role-name-cell strong,
.role-name-cell span {
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .analytics-horizontal-table .analytics-sticky-product {
        width: 250px;
        min-width: 250px;
        max-width: 250px;
    }

    .our-products-table th:nth-child(2),
    .our-products-table td:nth-child(2) {
        width: 260px;
        min-width: 260px;
        max-width: 260px;
    }

    .competitor-products-table th:first-child,
    .competitor-products-table td:first-child {
        width: 270px;
        min-width: 270px;
        max-width: 270px;
    }
}

@media (max-width: 820px) {
    .dashboard-business-head,
    .product360-head {
        align-items: stretch;
    }

    .dashboard-region-form,
    .product360-context-form,
    .request-history-search,
    .run-history-filters {
        align-items: stretch;
    }

    .pm-page-jump {
        width: 100%;
        margin-left: 0;
    }

    .analytics-horizontal-table .analytics-sticky-code,
    .analytics-horizontal-table .analytics-sticky-product,
    .our-products-table th:first-child,
    .our-products-table td:first-child,
    .our-products-table th:nth-child(2),
    .our-products-table td:nth-child(2),
    .competitor-products-table th:first-child,
    .competitor-products-table td:first-child {
        position: static;
        box-shadow: none;
    }
}

/* Accepted UI review refinements: formerly round 2 ----------------------- */
.report-negotiation-form .pm-search-select,
.product-modal .history-control .pm-search-select {
    width: 100%;
}

.report-negotiation-form .pm-search-select-trigger,
.product-modal .history-control .pm-search-select-trigger {
    width: 100%;
    min-height: 40px;
    justify-content: space-between;
}

.control-stores-table-compact {
    table-layout: fixed;
    width: 100%;
}

.control-stores-table-compact th:first-child,
.control-stores-table-compact td:first-child {
    width: 24%;
}

.control-stores-table-compact th:last-child,
.control-stores-table-compact td:last-child {
    width: 76%;
}

.control-store-source {
    vertical-align: middle;
}

.control-store-source > strong,
.control-store-source > span,
.control-store-source > small {
    display: block;
}

.control-store-source > strong {
    margin-bottom: 4px;
}

.control-store-source > span {
    margin-top: 2px;
    color: var(--text-muted, #6b7280);
}

.control-store-source > small {
    margin-top: 6px;
    color: var(--text-muted, #6b7280);
}

.control-store-settings-form {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto minmax(180px, 220px) auto;
    align-items: end;
    gap: 12px;
}

.control-store-settings-form .settings-form-actions,
.control-store-settings-form .pm-form-actions {
    margin: 0;
    align-self: end;
}

.control-store-settings-form .settings-field-checkbox {
    min-height: 40px;
    margin: 0;
    align-self: end;
}

.run-history-filters {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.run-history-filters > label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.run-history-filters > label > span {
    line-height: 1.2;
}

.run-history-filters input,
.run-history-filters select,
.run-history-filters .pm-search-select-trigger,
.run-history-filters > .btn {
    min-height: 40px;
}

.run-history-filters > .btn {
    align-self: flex-end;
    margin: 0;
}

.run-history-filter-state {
    align-self: center;
    color: var(--text-muted, #6b7280);
}

.matching-quality-panel[data-round2-moved="1"] {
    margin-bottom: 16px;
}

.matching-quality-panel[data-round2-moved="1"] .matching-quality-cards {
    margin-top: 12px;
}

.matching-queue-head {
    align-items: end;
    gap: 16px;
}

.matching-table-tools {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) auto 128px;
    align-items: end;
    gap: 12px;
    width: min(760px, 100%);
}

.matching-table-tools > input[type="search"],
.matching-table-tools > select,
.matching-confidence-field input {
    min-height: 40px;
}

.matching-confidence-field {
    display: grid;
    grid-template-columns: auto 82px auto;
    align-items: center;
    gap: 8px;
    margin: 0;
    white-space: nowrap;
}

.matching-confidence-field > span:first-child,
.matching-confidence-unit {
    align-self: center;
    line-height: 40px;
    margin: 0;
}

.matching-confidence-field input {
    width: 82px;
    min-width: 82px;
    margin: 0;
}

.matching-confidence-unit {
    min-width: 12px;
    text-align: left;
}

.matching-table {
    table-layout: fixed;
    width: 100%;
}

.matching-table .matching-select-col {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding-left: 8px !important;
    padding-right: 8px !important;
    text-align: center;
}

.matching-table th:nth-child(2) {
    width: 132px;
}

.matching-table th:nth-child(3),
.matching-table th:nth-child(4) {
    width: 31%;
}

.matching-table th:nth-child(5) {
    width: 112px;
    text-align: center;
}

.matching-table th:last-child {
    width: 286px;
    text-align: center;
}

.matching-table td:nth-child(5) {
    text-align: center;
}

.matching-table td.actions-cell,
.matching-table .matching-action-grid {
    text-align: center;
}

.matching-table .matching-action-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.matching-table .matching-action-primary,
.matching-table .matching-action-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.matching-pagination {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
}

.matching-pagination .pm-pagination-meta {
    align-self: center;
    margin: 0;
}

.matching-pagination .pm-page-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.matching-pagination .pm-page-jump label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    white-space: nowrap;
}

.matching-pagination .pm-page-jump input {
    width: 76px;
    height: 40px;
    min-height: 40px;
    margin: 0;
}

.matching-pagination .pm-page-jump .btn,
.matching-pagination .pm-pagination-actions .btn {
    height: 40px;
    min-height: 40px;
    margin: 0;
}

.matching-pagination .pm-pagination-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.product-modal .history-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.product-modal .history-control {
    min-width: 0;
}

.product-modal .history-control > label {
    display: block;
    margin-bottom: 6px;
}

.product-modal .pm-search-select-popover {
    z-index: 30;
}

.product-modal .price-chart-latest {
    display: block;
    margin: 12px 0 14px;
}

.product-modal .price-chart-latest-title {
    display: none;
}

.product-modal .price-chart-latest-list {
    display: grid;
    gap: 8px;
}

.product-modal .price-chart-latest-item {
    display: grid !important;
    grid-template-columns: 10px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 10px;
    background: var(--surface-muted, #f8fafc);
}

.product-modal .price-chart-latest-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}

.product-modal .price-chart-latest-label {
    min-width: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-modal .price-chart-latest-item > strong {
    white-space: nowrap;
    font-size: 1.05rem;
}

.product-modal .price-chart-latest-item > small {
    white-space: nowrap;
    color: var(--text-muted, #6b7280);
}

.access-table {
    width: 100%;
    table-layout: fixed;
}

.access-table th:nth-child(1),
.access-table td:nth-child(1) {
    width: 24%;
}

.access-table th:nth-child(2),
.access-table td:nth-child(2) {
    width: 14%;
}

.access-table th:nth-child(3),
.access-table td:nth-child(3) {
    width: 28%;
}

.access-table th:nth-child(4),
.access-table td:nth-child(4) {
    width: 18%;
    padding-right: 22px;
}

.access-table th:nth-child(5),
.access-table td:nth-child(5) {
    width: 9%;
    text-align: center;
}

.access-table th:nth-child(6),
.access-table td:nth-child(6) {
    width: 7%;
    text-align: right;
}

.access-table td:nth-child(1),
.access-table td:nth-child(2),
.access-table td:nth-child(3),
.access-table td:nth-child(4) {
    overflow-wrap: anywhere;
}

.role-access-table {
    width: 100%;
    table-layout: fixed;
}

.role-access-table th:nth-child(1),
.role-access-table td:nth-child(1) {
    width: 58%;
}

.role-access-table th:nth-child(2),
.role-access-table td:nth-child(2) {
    width: 12%;
    text-align: center !important;
}

.role-access-table th:nth-child(3),
.role-access-table td:nth-child(3) {
    width: 9%;
    text-align: center !important;
}

.role-access-table th:nth-child(4),
.role-access-table td:nth-child(4) {
    width: 11%;
    text-align: center;
}

.role-access-table th:nth-child(5),
.role-access-table td:nth-child(5) {
    width: 10%;
    text-align: right;
}

.role-access-table td:nth-child(4) .badge {
    display: inline-flex;
}

@media (max-width: 1180px) {
    .control-store-settings-form {
        grid-template-columns: minmax(220px, 1fr) auto minmax(170px, 1fr);
    }

    .control-store-settings-form .settings-form-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .matching-table-tools {
        grid-template-columns: minmax(220px, 1fr) auto;
    }

    .matching-table-tools > select {
        grid-column: 2;
    }

    .matching-pagination {
        grid-template-columns: 1fr auto;
    }

    .matching-pagination .pm-pagination-actions {
        grid-column: 2;
    }

    .product-modal .history-controls {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 820px) {
    .control-stores-table-compact,
    .matching-table,
    .access-table,
    .role-access-table {
        table-layout: auto;
    }

    .matching-table-tools,
    .product-modal .history-controls {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .matching-table-tools > select {
        grid-column: auto;
    }

    .matching-pagination {
        grid-template-columns: 1fr;
    }

    .matching-pagination .pm-page-jump,
    .matching-pagination .pm-pagination-actions {
        grid-column: 1;
        justify-content: flex-start;
    }

    .product-modal .price-chart-latest-item {
        grid-template-columns: 10px minmax(0, 1fr) auto;
    }

    .product-modal .price-chart-latest-item > small {
        grid-column: 2 / -1;
    }
}

/* Accepted UI review refinements: formerly round 3 ----------------------- */
.matching-quality-panel-2026 {
    overflow: hidden;
}

.matching-quality-panel-2026 > summary {
    min-height: 44px;
    padding: 10px 14px;
    align-items: center;
}

.matching-quality-panel-2026 .matching-quality-cards-2026,
.matching-quality-panel-2026 .matching-summary-cards {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(128px, 1fr)) !important;
    gap: 0 !important;
    min-width: 768px;
    overflow-x: auto;
    border-top: 1px solid var(--border, #e5e7eb);
}

.matching-quality-panel-2026 .matching-quality-cards-2026 .card,
.matching-quality-panel-2026 .matching-summary-cards .card {
    min-height: 74px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 0 !important;
    border-right: 1px solid var(--border, #e5e7eb) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.matching-quality-panel-2026 .matching-quality-cards-2026 .card:last-child,
.matching-quality-panel-2026 .matching-summary-cards .card:last-child {
    border-right: 0 !important;
}

.matching-quality-panel-2026 .matching-quality-cards-2026 .label,
.matching-quality-panel-2026 .matching-summary-cards .label {
    font-size: 12px !important;
    line-height: 1.2;
    font-weight: 500 !important;
    color: var(--muted, #6b7280);
    white-space: nowrap;
}

.matching-quality-panel-2026 .matching-quality-cards-2026 .value,
.matching-quality-panel-2026 .matching-summary-cards .value {
    font-size: 22px !important;
    line-height: 1;
    font-weight: 650 !important;
    letter-spacing: -0.02em;
}

.parser-run-history-panel .pm-table-viewport {
    overflow-x: auto;
}

.run-history-table-compact {
    width: 100%;
    min-width: 1180px;
    table-layout: fixed;
    border-collapse: collapse;
}

.run-history-table-compact thead th {
    padding: 9px 10px;
    font-size: 10.5px;
    line-height: 1.15;
    font-weight: 650;
    letter-spacing: 0.035em;
    color: var(--muted, #6b7280);
    white-space: nowrap;
    vertical-align: middle;
}

.run-history-table-compact tbody > .run-history-row > td {
    padding: 9px 10px;
    min-height: 42px;
    font-size: 12.5px;
    line-height: 1.2;
    font-weight: 400;
    vertical-align: middle;
    color: var(--text, #111827);
    white-space: nowrap;
}

.run-history-table-compact tbody > .run-history-row > td strong {
    font-size: inherit;
    line-height: inherit;
    font-weight: 600;
}

.run-history-table-compact .run-history-source {
    width: 15%;
    min-width: 150px;
}

.run-history-table-compact .run-history-source strong {
    display: inline-block !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

.run-history-table-compact .run-history-region {
    width: 8%;
    color: var(--muted-strong, #4b5563);
}

.run-history-table-compact th:nth-child(3),
.run-history-table-compact td:nth-child(3) {
    width: 10%;
}

.run-history-table-compact th:nth-child(4),
.run-history-table-compact th:nth-child(5),
.run-history-table-compact th:nth-child(6),
.run-history-table-compact th:nth-child(7),
.run-history-table-compact td:nth-child(4),
.run-history-table-compact td:nth-child(5),
.run-history-table-compact td:nth-child(6),
.run-history-table-compact td:nth-child(7) {
    width: 7.5%;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.run-history-table-compact th:nth-child(8),
.run-history-table-compact th:nth-child(9),
.run-history-table-compact td:nth-child(8),
.run-history-table-compact td:nth-child(9) {
    width: 14%;
}

.run-history-table-compact .run-history-date {
    font-size: 12px !important;
    color: var(--muted-strong, #4b5563) !important;
    font-variant-numeric: tabular-nums;
}

.run-history-table-compact .run-history-number {
    font-weight: 600 !important;
}

.run-history-table-compact .run-history-detail-col {
    width: 42px !important;
    min-width: 42px;
    max-width: 42px;
    padding-left: 4px !important;
    padding-right: 4px !important;
    text-align: center;
}

.run-history-table-compact .badge {
    font-size: 10.5px;
    font-weight: 550;
    white-space: nowrap;
}

.run-history-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.run-history-toggle-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .16s ease;
}

.run-history-toggle[aria-expanded="true"] .run-history-toggle-icon {
    transform: rotate(180deg);
}

.run-history-running {
    font-weight: 550;
    color: var(--text, #111827);
}

.nav-tree-summary {
    display: flex !important;
    align-items: center !important;
}

.nav-tree-chevron {
    margin-left: auto;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: var(--muted-strong, #4b5563);
}

.nav-tree-chevron svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .16s ease;
}

.nav-tree[open] > .nav-tree-summary .nav-tree-chevron svg {
    transform: rotate(180deg);
}

.nav-tree-summary:hover .nav-tree-chevron {
    color: var(--text, #111827);
}

@media (max-width: 1200px) {
    .matching-quality-panel-2026 .matching-quality-cards-2026,
    .matching-quality-panel-2026 .matching-summary-cards {
        overflow-x: auto;
    }
}
