/* Transparansi Anggaran — public landing page */

.anggaran-section {
  background: #f8fafd;
}

.anggaran-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.anggaran-stat {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  min-width: 0;
  text-align: center;
  box-shadow: 0 2px 14px rgba(38, 55, 70, 0.08);
  border: 1px solid #eef2f7;
}

.anggaran-stat-accent {
  background: linear-gradient(135deg, #263746 0%, #16a085 100%);
  border: none;
}

.anggaran-stat-label {
  display: block;
  font-size: 0.85rem;
  color: #7f8c9b;
  margin-bottom: 0.4rem;
}

.anggaran-stat-accent .anggaran-stat-label {
  color: rgba(255, 255, 255, 0.75);
}

.anggaran-stat-label i {
  margin-right: 0.35rem;
}

.anggaran-stat-value {
  display: block;
  font-size: 1.45rem;
  color: #263746;
}

.anggaran-stat-accent .anggaran-stat-value {
  color: #fff;
}

.anggaran-grid {
  margin-bottom: 2.5rem;
}

.anggaran-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 14px rgba(38, 55, 70, 0.08);
  border: 1px solid #eef2f7;
  height: 100%;
}

.anggaran-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: #263746;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #eef2f7;
}

.anggaran-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 2px solid #eef2f7;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
}

.anggaran-card-head .anggaran-card-title {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.anggaran-card-head + .anggaran-chart-wrap { margin-top: 0; }

.anggaran-month-select {
  min-width: 160px;
  border-radius: 8px;
  border: 1px solid #dbe4ee;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  color: #263746;
  background: #fff;
}

.anggaran-card-head .select2-container--default .select2-selection--single {
  height: 38px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  padding: 4px 8px;
}

.anggaran-card-head .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 28px;
  color: #263746;
  font-size: 0.9rem;
}

.anggaran-card-head .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
}

.anggaran-chart-wrap {
  position: relative;
  height: 320px;
}

.anggaran-chart-wrap-doughnut {
  height: 260px;
}

.anggaran-tabs {
  margin-bottom: 0;
  border-bottom: none;
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.anggaran-tabs .nav-item {
  flex: 0 0 auto;
}

.anggaran-tabs .nav-link {
  border: 1px solid #eef2f7;
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  color: #7f8c9b;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.6rem 1.4rem;
  background: #fff;
}

.anggaran-tabs .nav-link.active {
  color: #16a085;
  background: #fff;
  border-color: #16a085;
}

.anggaran-tab-content {
  border-radius: 0 16px 16px 16px;
}

.anggaran-table-wrap {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 2px 14px rgba(38, 55, 70, 0.08);
  border: 1px solid #eef2f7;
  overflow-x: auto;
}

.anggaran-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7f8c9b;
  border-bottom: 2px solid #eef2f7;
}

.anggaran-table td {
  font-size: 0.95rem;
  color: #263746;
  padding: 0.85rem 0.6rem;
}

.anggaran-table td .rp {
  color: #7f8c9b;
  font-size: 0.8rem;
  margin-right: 0.25rem;
}

.anggaran-table td .rp-num {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  gap: 0.5rem;
}

.anggaran-table td .rp-num .nominal {
  flex: 1 1 auto;
  text-align: right;
  display: block;
}

.anggaran-table td .nominal {
  font-variant-numeric: tabular-nums;
}

.anggaran-table td.selisih-plus .nominal { color: #1f7a5c; font-weight: 700; }
.anggaran-table td.selisih-minus .nominal { color: #c0392b; font-weight: 700; }

.anggan-badge,
.anggaran-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 991px) {
  .anggaran-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .anggaran-chart-wrap {
    height: 260px;
  }
}

.anggaran-table tr.anggaran-row-total > td {
  font-weight: 700;
  background: #f4f8f7;
  border-top: 2px solid #1f7a5c;
}
