/* Keep the client summary at its natural height when purchase history overflows.
   Auto grid tracks otherwise shrink the overflow:hidden definition list to zero. */
.pa-drawer {
  grid-auto-rows: max-content;
}

.pa-collalift-status {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid color-mix(in srgb, #b98b5f 38%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, #b98b5f 8%, transparent);
}

.pa-collalift-status__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pa-collalift-status__head h3 { margin: 0; }
.pa-collalift-status__grid { margin: 0; }
.pa-collalift-status--error { color: #b42318; }
.pa-collalift-status--error button { justify-self: start; }

/* Project domains: fill the panel and preserve readable columns. */
.pa-domains { min-width: 0; }
.pa-domains > .pa-table-panel { min-width: 0; }
.pa-domains .pa-table-wrap { width: 100%; max-width: 100%; }
.pa-domains .pa-domains-table { width: 100%; min-width: 960px; table-layout: fixed; }
.pa-domains .pa-domains-table th,
.pa-domains .pa-domains-table td { padding: 14px 16px; vertical-align: top; }
.pa-domains .pa-domains-table th:first-child,
.pa-domains .pa-domains-table td:first-child { width: 26%; min-width: 0; position: static; }
.pa-domains .pa-domains-table th:nth-child(2) { width: 24%; }
.pa-domains .pa-domains-table th:nth-child(3),
.pa-domains .pa-domains-table td:nth-child(3) { width: 25%; min-width: 0; max-width: none; }
.pa-domains .pa-domains-table th:nth-child(4) { width: 15%; }
.pa-domains .pa-domains-table th:nth-child(5) { width: 112px; }
.pa-domains .pa-domain-chip-list { align-items: flex-start; gap: 8px; }
.pa-domains .pa-domain-chip { min-height: 28px; max-width: 100%; padding: 5px 9px; line-height: 1.35; }
.pa-domains .pa-domains-table td > small { margin-top: 0; font-size: .78rem; line-height: 1.6; white-space: pre-line; }
.pa-domains .pa-domains-table td:nth-child(4) { font-variant-numeric: tabular-nums; }
.pa-domains .pa-domain-actions { flex-wrap: nowrap; gap: 8px; }
.pa-domains .pa-domain-actions button { flex-shrink: 0; width: 34px; padding: 0; }
@media (max-width: 700px) {
  .pa-domains .pa-domains-table { min-width: 900px; }
  .pa-domains .pa-table-headline { gap: 12px; }
}

/* Other project tables: explicit columns instead of max-content shrinking. */
.pa-project-products,
.pa-project-products > .pa-table-panel { min-width: 0; }
.pa-project-products .pa-table-wrap { width: 100%; max-width: 100%; }
.pa-project-products .pa-products-table { width: 100%; min-width: 1180px; table-layout: fixed; }
.pa-project-products .pa-products-table th,
.pa-project-products .pa-products-table td { padding: 14px 16px; text-align: left; vertical-align: top; }
.pa-project-products .pa-products-table th:first-child,
.pa-project-products .pa-products-table td:first-child { width: 260px; min-width: 0; position: static; }
.pa-project-products .pa-products-table td:first-child { display: table-cell; text-align: left; }
.pa-project-products .pa-products-table th:nth-child(2),
.pa-project-products .pa-products-table td:nth-child(2) { width: 120px; }
.pa-project-products .pa-products-table th:nth-child(3),
.pa-project-products .pa-products-table td:nth-child(3),
.pa-project-products .pa-products-table th:nth-child(4),
.pa-project-products .pa-products-table td:nth-child(4) { width: 220px; min-width: 0; }
.pa-project-products .pa-products-table th:nth-child(5),
.pa-project-products .pa-products-table td:nth-child(5) { width: 100px; }
.pa-project-products .pa-products-table th:nth-child(6),
.pa-project-products .pa-products-table td:nth-child(6) { width: 148px; font-variant-numeric: tabular-nums; }
.pa-project-products .pa-products-table th:nth-child(7),
.pa-project-products .pa-products-table td:nth-child(7) { width: 112px; }
.pa-project-products .pa-products-table td > small { margin-inline: 0; font-size: .78rem; line-height: 1.6; }
.pa-project-products .pa-domain-chip-list,
.pa-project-products .pa-domain-actions { justify-content: flex-start; gap: 8px; }
.pa-project-products .pa-domain-chip { padding: 5px 9px; min-height: 28px; line-height: 1.35; }
.pa-project-products .pa-domain-actions { flex-wrap: nowrap; }
.pa-project-products .pa-domain-actions button { flex-shrink: 0; width: 34px; padding: 0; }

.pa-project-sheets-panel .pa-project-sheets-list { min-width: 0; max-width: 100%; }
.pa-project-sheets-panel .pa-project-sheets-list-head,
.pa-project-sheets-panel .pa-project-sheet-row {
  grid-template-columns: minmax(280px, 1.4fr) minmax(170px, .8fr) minmax(160px, .7fr) 216px;
  min-width: 862px;
  gap: 12px;
}
.pa-project-sheets-panel .pa-project-sheets-list-head { padding: 10px 0; }
.pa-project-sheets-panel .pa-project-sheet-row { padding: 12px 0; }
.pa-project-sheets-panel .pa-project-sheet-row > small { overflow-wrap: anywhere; line-height: 1.6; font-size: .78rem; }
.pa-project-sheets-panel .pa-project-sheet-actions { flex-wrap: nowrap; gap: 8px; }
.pa-project-sheets-panel .pa-project-sheet-actions button { flex-shrink: 0; }
