.energy-cost-page { color: #10213d; }

.energy-cost-page .page-toolbar { min-height: 40px; margin-bottom: 16px; }
.energy-cost-page .page-actions { flex-wrap: wrap; gap: 8px; }
.energy-cost-page .btn { min-height: 40px; height: 40px; padding-inline: 16px; font-size: 14px; border-radius: 6px; }

.energy-cost-page .kpi-grid.five {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.energy-cost-page .kpi-card {
  min-width: 0;
  min-height: 116px;
  padding: 18px 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}

.energy-cost-page .kpi-card::after { display: none; }
.energy-cost-page .kpi-top { color: #526278; font-size: 14px; line-height: 22px; }
.energy-cost-page .kpi-icon { width: 28px; height: 28px; color: #1677ff; background: transparent; border-radius: 0; }
.energy-cost-page .kpi-value { gap: 8px; margin-top: 8px; }
.energy-cost-page .kpi-value strong {
  color: #1677ff;
  font-family: inherit;
  font-size: 30px;
  font-weight: 650;
  line-height: 40px;
  font-variant-numeric: tabular-nums;
}
.energy-cost-page .kpi-value small { color: #526278; font-size: 13px; line-height: 20px; }
.energy-cost-page .kpi-foot { margin-top: 4px; color: #7a889c; font-size: 12px; line-height: 18px; }
.energy-cost-page .kpi-foot.trend-up { color: #087f61; }

.energy-cost-page .panel-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.energy-cost-page .panel-grid:last-child { margin-bottom: 0; }
.energy-cost-page .panel {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: none;
}
.energy-cost-page .panel-head { min-height: 52px; padding: 0 20px; border-bottom-color: #e2e8f0; }
.energy-cost-page .panel-head h3 { color: #10213d; font-size: 16px; line-height: 24px; }
.energy-cost-page .panel-head > span { color: #526278; font-size: 12px; line-height: 18px; }
.energy-cost-page .panel-body { padding: 20px; }

.energy-cost-page .energy-cost-trend .chart-wrap { min-height: 236px; }
.energy-cost-page .energy-cost-trend .chart-wrap svg { height: 210px; }
.energy-cost-page .chart-grid line { stroke: #e2e8f0; }
.energy-cost-page .chart-axis { margin-top: 8px; color: #7a889c; font-size: 12px; line-height: 18px; }

.energy-cost-page .energy-cost-breakdown .panel-body {
  display: grid;
  min-height: 276px;
  align-items: center;
}
.energy-cost-page .donut-wrap { display: flex; justify-content: center; gap: 24px; }
.energy-cost-page .donut { width: 160px; height: 160px; flex: none; }
.energy-cost-page .donut::after { width: 96px; height: 96px; background: #fff; }
.energy-cost-page .donut-center strong { color: #10213d; font-family: inherit; font-size: 24px; line-height: 32px; }
.energy-cost-page .donut-center small { color: #526278; font-size: 12px; line-height: 18px; }
.energy-cost-page .legend-list { min-width: 160px; }
.energy-cost-page .legend-item {
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 7px 0;
  color: #526278;
  font-size: 12px;
  line-height: 18px;
}
.energy-cost-page .legend-item i { width: 8px; height: 8px; }
.energy-cost-page .legend-item b { color: #10213d; font-size: 13px; }

.energy-cost-page .energy-cost-bills .panel-body { padding: 0; overflow-x: auto; }
.energy-cost-page .energy-cost-bills .data-table { min-width: 780px; table-layout: fixed; }
.energy-cost-page .energy-cost-bills .data-table :is(th, td) {
  height: 52px;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom-color: #e2e8f0;
}
.energy-cost-page .energy-cost-bills .data-table th {
  height: 44px;
  color: #526278;
  font-size: 13px;
  font-weight: 600;
  background: #f8fafc;
}
.energy-cost-page .energy-cost-bills .data-table td { color: #34465f; }
.energy-cost-page .energy-cost-bills .data-table tr:hover td { background: #f7fbff; }
.energy-cost-page .energy-cost-bills .badge { min-height: 24px; height: 24px; padding-inline: 8px; font-size: 12px; border-radius: 12px; }

.energy-cost-page .energy-cost-actions .recommend-list { display: grid; gap: 12px; }
.energy-cost-page .energy-cost-actions .recommend-item {
  display: grid;
  min-height: 72px;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.energy-cost-page .energy-cost-actions .recommend-item i {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #1677ff;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  background: #e6f4ff;
  border-radius: 6px;
}
.energy-cost-page .energy-cost-actions .recommend-item b { color: #10213d; font-size: 14px; font-weight: 600; line-height: 22px; }
.energy-cost-page .energy-cost-actions .recommend-item small { margin-top: 2px; color: #526278; font-size: 12px; line-height: 18px; }
.energy-cost-page .energy-cost-actions .recommend-item .badge { min-height: 24px; height: 24px; padding-inline: 8px; font-size: 12px; border-radius: 12px; }

@media (max-width: 1439px) {
  .energy-cost-page .kpi-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1180px) {
  .energy-cost-page .panel-grid { grid-template-columns: 1fr; }
  .energy-cost-page .energy-cost-breakdown .panel-body { min-height: 240px; }
}

@media (max-width: 960px) {
  .energy-cost-page .kpi-grid.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .energy-cost-page .page-actions,
  .energy-cost-page .page-actions .btn { width: 100%; }
  .energy-cost-page .kpi-grid.five { grid-template-columns: 1fr; }
  .energy-cost-page .donut-wrap { align-items: center; flex-direction: column; }
  .energy-cost-page .legend-list { width: min(280px, 100%); }
  .energy-cost-page .energy-cost-bills .data-table :is(th:first-child, td:first-child) { position: sticky; left: 0; z-index: 1; background: #fff; }
  .energy-cost-page .energy-cost-bills .data-table th:first-child { z-index: 2; background: #f8fafc; }
  .energy-cost-page .energy-cost-actions .recommend-item { grid-template-columns: 36px minmax(0, 1fr); }
  .energy-cost-page .energy-cost-actions .recommend-item .badge { grid-column: 2; justify-self: start; }
}
