/* --- SHARED CARD STYLES --- */
.status-budget-portlet-card {
  border: 1px solid #dee2e6;
  background-color: #fff;
  margin: 0 auto;
  position: relative; /* For absolute footer */
  min-height: 450px; /* Adjusted height for this specific content */
  padding-bottom: 70px; /* Space for footer */
}

.budget-header {
  background-color: #e8eff7;
  color: #2c3e50;
  font-weight: 700;
  text-align: center;
  padding: 15px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.card-body {
  padding: 20px;
}

/* --- TOP BAR (Filter & Legend) --- */
.top-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

/* Filter Section */
.filter-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-weight: 600;
  color: #2c3e50;
}

.custom-select {
  padding: 5px 10px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  color: #495057;
  background-color: #fff;
  outline: none;
}

/* Legend Section (Top Right) */
.mini-legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mini-legend-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #666;
}

.dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  margin-right: 8px;
}

.dot-green {
  background-color: #00b84f;
}

.dot-blue {
  background-color: #2d55ea;
}

/* --- CHART GRID --- */
.chart-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.chart-col {
  width: 48%; /* 2 columns */
  text-align: center;
}

.dual-chart-wrapper {
  position: relative;
  height: 180px; /* Height for these smaller donuts */
  width: 100%;
  margin-bottom: 10px;
}

.chart-label {
  font-weight: 700;
  color: #000;
  font-size: 1rem;
}

/* --- FOOTER BUTTON --- */
.footer-btn-container {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  text-align: center;
}