.inventory-summary-document {
  display: grid;
  gap: var(--space-4);
  max-width: 52rem;
  margin: 0 auto;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
}

.inventory-summary-document__intro {
  margin: 0;
  color: var(--color-muted);
}

.inventory-summary-pdf-header {
  display: grid;
  gap: var(--space-1);
}

.inventory-summary-pdf-header h1,
.inventory-summary-pdf-header p {
  margin: 0;
}

.inventory-summary-pdf-header p {
  color: var(--color-muted);
}

.inventory-summary-move {
  display: grid;
  gap: var(--space-2);
}

.inventory-summary-move__title {
  margin: 0;
  font-size: var(--font-size-2);
}

.inventory-summary-move__details {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2);
}

.inventory-summary-move__row {
  display: grid;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-1);
  background: color-mix(in srgb, var(--color-surface) 95%, var(--color-bg));
}

.inventory-summary-move__row dt,
.inventory-summary-move__row dd {
  margin: 0;
}

.inventory-summary-move__row dt {
  color: var(--color-muted);
  font-size: var(--font-size-1);
}

.inventory-summary-move__row dd {
  font-weight: 600;
}

.inventory-summary-section {
  display: grid;
  gap: var(--space-3);
}

.inventory-summary-section__title {
  margin: 0;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid var(--color-border);
  font-size: var(--font-size-3);
}

.inventory-summary-section__empty {
  margin: 0;
  color: var(--color-muted);
}

.inventory-summary-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-1);
  background: var(--color-surface);
}

.inventory-summary-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 34rem;
}

.inventory-summary-table th,
.inventory-summary-table td {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.inventory-summary-table tbody th {
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  text-align: left;
}

.inventory-summary-table th {
  color: var(--color-muted);
  font-size: var(--font-size-1);
  font-weight: 600;
  white-space: nowrap;
  background: color-mix(in srgb, var(--color-surface) 94%, var(--color-bg));
}

.inventory-summary-table tbody tr:last-child th,
.inventory-summary-table tbody tr:last-child td {
  border-bottom: 0;
}

.inventory-summary-table th.inventory-summary-table__quantity-header,
.inventory-summary-table td.box-type-summary-row__quantity,
.inventory-summary-table td.room-item-summary-row__quantity {
  width: 5.5rem;
  text-align: center;
  white-space: nowrap;
}

.box-type-summary-row__name,
.room-item-summary-row__name {
  width: 15rem;
  font-weight: 600;
  color: var(--color-text);
}

.box-type-summary-row__dimensions,
.room-item-summary-row__handling {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--font-size-1);
}

.box-type-summary-row__dimensions {
  display: block;
}

.box-type-summary-row__quantity,
.room-item-summary-row__quantity {
  margin: 0;
  font-size: var(--font-size-1);
  font-weight: 600;
  line-height: 1.4;
}

.box-type-summary-row__handling {
  color: var(--color-muted);
  font-size: var(--font-size-1);
}

.room-item-summary-row__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-round);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: var(--font-size-1);
}

@media (min-width: 48rem) {
  .inventory-summary-document {
    padding: var(--space-5);
    gap: var(--space-5);
  }

  .inventory-summary-table {
    min-width: 100%;
  }
}
