.inv-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  background: #f0f7ff;
  border: 1px solid #b3d4f5;
  border-radius: 6px;
  margin-bottom: 1.75rem;
}

.inv-summary .label {
  font-weight: 600;
  font-size: 1rem;
}

.inv-summary .amount {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a6bbf;
}

.inv-section {
  margin-bottom: 0.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.inv-section summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #f5f5f5;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.inv-section summary::-webkit-details-marker {
  display: none;
}

.inv-section summary::before {
  content: '▶';
  font-size: 0.65rem;
  color: #888;
  transition: transform 0.15s;
  flex-shrink: 0;
}

.inv-section[open] summary::before {
  transform: rotate(90deg);
}

.inv-cat-name {
  flex: 1;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #555;
}

.inv-cat-total {
  font-weight: 700;
  font-size: 0.95rem;
  color: #1a6bbf;
}

.inv-section .inv-table {
  border-top: 1px solid #e0e0e0;
  border-radius: 0;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.inv-table th,
.inv-table td {
  padding: 0.4rem 0.6rem;
  border: 1px solid #ddd;
  text-align: right;
  white-space: nowrap;
}

.inv-table th:nth-child(-n+3),
.inv-table td:nth-child(-n+3) {
  text-align: left;
}

.inv-table th:first-child,
.inv-table td:first-child {
  width: 40px;
  padding: 0.2rem 0.4rem;
}

.inv-item-icon {
  width: 36px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.inv-table thead th {
  background: #f0f0f0;
  font-weight: 600;
}

.inv-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.inv-table .cat-total td {
  background: #f0f0f0;
  font-weight: 600;
  border-top: 2px solid #ccc;
}

.inv-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #999;
}
