
.purchase-review-panel,
.purchase-list-panel {
  overflow: visible;
}

.purchase-review-panel--collapsible {
  padding: 0;
}

.purchase-review-panel-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  cursor: pointer;
}

.purchase-review-panel-summary::-webkit-details-marker {
  display: none;
}

.purchase-review-panel-summary::marker {
  display: none;
  content: "";
}

.purchase-review-panel-summary-copy {
  min-width: 0;
}

.purchase-review-panel-summary-copy h3 {
  margin-bottom: 4px;
}

.purchase-review-panel-summary-side {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.purchase-review-panel-summary-hint {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.purchase-review-panel-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: #475569;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.purchase-review-panel-summary:hover .purchase-review-panel-chevron {
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
}

.purchase-review-panel--collapsible[open] .purchase-review-panel-chevron {
  transform: rotate(180deg);
}

.purchase-review-panel-body {
  padding: 0 26px 24px;
}

.purchases-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.purchases-section-head h3 {
  margin-bottom: 4px;
}

.purchase-review-note,
.purchase-mini-line {
  font-size: 12px;
}

.purchase-extracted-block,
.purchase-status-stack,
.purchase-pdf-state {
  display: grid;
  gap: 6px;
}

.purchase-match-summary strong {
  display: block;
}

.purchase-status-stack {
  justify-items: flex-start;
}

.purchase-review-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.purchase-review-table {
  width: 100%;
  min-width: 960px;
  table-layout: fixed;
}

.purchase-review-col--file { width: 24%; }
.purchase-review-col--extracted { width: 22%; }
.purchase-review-col--match { width: 18%; }
.purchase-review-col--status { width: 12%; }
.purchase-review-col--actions { width: 24%; }

.purchase-review-table td,
.purchase-review-table th,
.purchase-review-cell,
.purchase-extracted-block,
.purchase-match-summary,
.purchase-status-stack {
  min-width: 0;
}

.purchase-match-summary {
  display: grid;
  gap: 4px;
}

.purchase-review-truncate {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.purchase-review-file-link {
  font-weight: 800;
}

.purchase-review-meta,
.purchase-review-line,
.purchase-review-error {
  max-width: 100%;
}

.purchase-review-meta {
  margin-top: 4px;
}

.purchase-review-error {
  margin-top: 4px;
}

.purchase-review-inline-panel {
  margin: 8px 0 2px;
  padding: 12px 14px;
  border: 1px solid rgba(219, 208, 184, 0.9);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(250, 248, 242, 0.98), rgba(247, 243, 232, 0.96));
}

.purchase-review-inline-summary {
  cursor: pointer;
}

.purchase-review-inline-hint {
  margin-left: 8px;
}

.purchase-review-inline-scroll {
  margin-top: 12px;
}
