.item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
}

.summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.summaryLeft {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.summaryDate {
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  white-space: nowrap;
}

.summaryRight {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.amount {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  white-space: nowrap;
}

.totalAmount {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.chevron {
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.chevronOpen {
  transform: rotate(180deg);
}

.bodyOuter {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.bodyOuterOpen {
  grid-template-rows: 1fr;
}

.bodyInner {
  overflow: hidden;
}

.body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 32px;
  padding: 4px 20px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.col {
  display: flex;
  flex-direction: column;
}

.colTitle {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary);
  margin: 14px 0 4px;
}

.infoRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 12px;
}

.infoRow:last-child {
  border-bottom: none;
}

.infoRowTotal {
  border-bottom: none;
  margin-top: 4px;
}

.infoRowTotal .infoLabel,
.infoRowTotal .infoValue {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 14px;
}

.infoLabel {
  font-size: 13px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.infoValue {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  text-align: right;
}

.infoValueRow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.infoLink {
  font-size: 13px;
  color: var(--interactive, #4a6dff);
  text-decoration: none;
  font-family: var(--font-mono);
}

.infoLink:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .summaryRight {
    gap: 10px;
  }

  .totalAmount {
    display: none;
  }
}

@media (max-width: 640px) {
  .body {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .col+.col {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: 4px;
  }
}
