.rincian-summary-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.rincian-summary-card {
  background: var(--bg-card, #fff);
  border-radius: 16px;
  padding: 16px 18px;
  border: 1px solid rgba(0,0,0,0.06);
}

.rincian-summary-card[data-tipe="pemasukan"]  { --rincian-accent: #3a9a62; }
.rincian-summary-card[data-tipe="pengeluaran"] { --rincian-accent: #d05050; }
.rincian-summary-card[data-tipe="selisih"]     { --rincian-accent: #3f7a8c; }

.rincian-summary-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--rincian-accent);
  margin-bottom: 6px;
}

.rincian-summary-total {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary, #2d2d2d);
}

.rincian-tabel-wrap {
  margin-bottom: 22px;
}

.rincian-tabel-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #2d2d2d);
  margin-bottom: 10px;
}

.rincian-tabel {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card, #fff);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}

.rincian-tabel thead th {
  background: var(--bg-hover, #f5ede3);
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary, #7a6a5a);
}

.rincian-tabel tbody td {
  padding: 10px 14px;
  border-top: 1px solid rgba(0,0,0,0.06);
  color: var(--text-primary, #2d2d2d);
}
.rincian-tabel thead th:nth-child(2),
.rincian-tabel tbody td:nth-child(2) {
  text-align: center;
}
.rincian-tabel thead th:nth-child(3),
.rincian-tabel tbody td:nth-child(3) {
  text-align: right;
}
.rincian-tabel tbody tr:last-child td {
  font-weight: 700;
}
.rekap-dist-table thead th:nth-child(2),
.rekap-dist-table tbody td:nth-child(2) {
  text-align: center;
}
.rekap-dist-table thead th:nth-child(3),
.rekap-dist-table tbody td:nth-child(3) {
  text-align: right;
}

@media (max-width: 640px) {
  .rincian-summary-row {
    grid-template-columns: 1fr;
  }
}