.accounting-page { color: #10213d; }

.accounting-page .btn { min-height: 40px; padding-inline: 16px; border-radius: 8px; }

.accounting-page .accounting-month-toolbar {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.accounting-page .accounting-month-toolbar label,
.accounting-page .accounting-month-toolbar aside {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accounting-page .accounting-month-toolbar label > span {
  color: #526278;
  font-size: 12px;
}

.accounting-page .accounting-year-label {
  color: #10213d;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.accounting-page .accounting-month-toolbar select {
  height: 40px;
  padding: 0 32px 0 12px;
  color: #10213d;
  font-size: 14px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
}

.accounting-page .accounting-month-list { display: grid; gap: 12px; }

.accounting-page .accounting-month-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: border-color 160ms ease;
}

.accounting-page .accounting-month-card.is-open { border-color: #91caff; }

.accounting-page .accounting-month-summary {
  display: grid;
  min-height: 88px;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 12px 16px;
}

.accounting-page .month-summary-primary { display: flex; min-width: 0; align-items: center; gap: 12px; }

.accounting-page .month-calendar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: none;
  place-content: center;
  text-align: center;
  background: #f0f6ff;
  border: 1px solid #cfe0ff;
  border-radius: 8px;
}

.accounting-page .month-calendar b {
  color: #1677ff;
  font-family: Bahnschrift, "DIN Alternate", sans-serif;
  font-size: 20px;
  line-height: 22px;
}

.accounting-page .month-calendar small {
  margin-top: 2px;
  color: #526278;
  font-size: 12px;
  line-height: 16px;
}

.accounting-page .month-summary-title,
.accounting-page .month-summary-title b,
.accounting-page .month-summary-title small {
  display: block;
  min-width: 0;
}

.accounting-page .month-summary-title b {
  color: #10213d;
  font-size: 16px;
  line-height: 24px;
}

.accounting-page .month-summary-title small {
  margin-top: 4px;
  overflow: hidden;
  color: #526278;
  font-size: 12px;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accounting-page .month-summary-metrics { display: flex; align-items: center; gap: 24px; }

.accounting-page .month-summary-metrics span,
.accounting-page .month-summary-metrics small,
.accounting-page .month-summary-metrics b {
  display: block;
}

.accounting-page .month-summary-metrics span { min-width: 104px; }

.accounting-page .month-summary-metrics small {
  color: #7a889c;
  font-size: 12px;
  line-height: 18px;
}

.accounting-page .month-summary-metrics b {
  margin-top: 2px;
  color: #10213d;
  font-size: 14px;
  line-height: 22px;
}

.accounting-page .month-summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  white-space: nowrap;
}

.accounting-page .month-summary-actions > a:not(.month-expand-action),
.accounting-page .month-summary-actions > em {
  color: #1677ff;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
}

.accounting-page .month-expand-action {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: #526278;
  font-size: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.accounting-page .month-expand-action i {
  font-size: 14px;
  font-style: normal;
  transition: transform 160ms ease;
}

.accounting-page .is-open .month-expand-action i { transform: rotate(180deg); }

.accounting-page .accounting-month-expanded {
  padding: 0 16px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.accounting-page .month-stage-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  padding: 16px 0 8px;
}

.accounting-page .month-stage {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 8px;
  color: #7a889c;
  border: 1px solid transparent;
  border-radius: 8px;
}

.accounting-page .month-stage:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -4px;
  width: 8px;
  height: 1px;
  content: "";
  background: #cbd5e1;
}

.accounting-page .month-stage > i {
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  flex: none;
  place-items: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  background: #e9eef5;
  border-radius: 50%;
}

.accounting-page .month-stage span,
.accounting-page .month-stage b,
.accounting-page .month-stage small { display: block; min-width: 0; }
.accounting-page .month-stage b { color: #526278; font-size: 13px; line-height: 18px; }
.accounting-page .month-stage small { margin-top: 2px; font-size: 12px; line-height: 16px; }
.accounting-page .month-stage.complete > i { color: #fff; background: #16a474; }
.accounting-page .month-stage.complete small { color: #087f61; }
.accounting-page .month-stage.current > i { color: #fff; background: #1677ff; }
.accounting-page .month-stage.current small { color: #1677ff; }
.accounting-page .month-stage.selected { background: #f0f6ff; border-color: #91caff; }
.accounting-page .month-stage.selected b { color: #10213d; }

.accounting-page .month-stage-work,
.accounting-page .month-result-card,
.accounting-page .month-pdf-card,
.accounting-page .month-archive-card {
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.accounting-page .month-stage-work > header,
.accounting-page .month-result-card > header {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.accounting-page .month-stage-work > header div > b,
.accounting-page .month-stage-work > header div > span,
.accounting-page .month-result-card > header div > b,
.accounting-page .month-result-card > header div > span { display: block; }
.accounting-page .month-stage-work > header div > b,
.accounting-page .month-result-card > header div > b { color: #10213d; font-size: 16px; line-height: 24px; }
.accounting-page .month-stage-work > header div > span,
.accounting-page .month-result-card > header div > span { margin-top: 2px; color: #526278; font-size: 12px; line-height: 18px; }

.accounting-page .month-energy-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.accounting-page .month-energy-card,
.accounting-page .usage-confirm-card {
  min-width: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.accounting-page .month-energy-card > header,
.accounting-page .usage-confirm-card > header { display: flex; align-items: center; gap: 8px; }

.accounting-page .month-energy-card > header > i,
.accounting-page .usage-confirm-card .energy-name > i {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  color: #2468f2;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  background: #edf4ff;
  border-radius: 8px;
}

.accounting-page .month-energy-card.red > header > i,
.accounting-page .energy-name > i.red { color: #ef5261; background: #fff0f2; }
.accounting-page .month-energy-card.cyan > header > i,
.accounting-page .energy-name > i.cyan { color: #16a9b8; background: #eafafb; }
.accounting-page .month-energy-card.orange > header > i,
.accounting-page .energy-name > i.orange { color: #d88400; background: #fff7e9; }
.accounting-page .month-energy-card.purple > header > i,
.accounting-page .energy-name > i.purple { color: #7557e8; background: #f2efff; }

.accounting-page .month-energy-card > header > span { min-width: 0; flex: 1; }
.accounting-page .month-energy-card > header b,
.accounting-page .month-energy-card > header small { display: block; }
.accounting-page .month-energy-card > header b { color: #10213d; font-size: 14px; line-height: 22px; }
.accounting-page .month-energy-card > header small { margin-top: 2px; color: #526278; font-size: 12px; line-height: 18px; }
.accounting-page .month-energy-card > strong { display: block; margin-top: 16px; color: #1677ff; font-size: 24px; line-height: 32px; }

.accounting-page .energy-card-progress { margin-top: 8px; }
.accounting-page .energy-card-progress > span { display: block; height: 6px; overflow: hidden; background: #e9eef5; border-radius: 4px; }
.accounting-page .energy-card-progress > span i { display: block; height: 100%; background: #1677ff; border-radius: inherit; }
.accounting-page .energy-card-progress > em { display: block; margin-top: 6px; color: #7a889c; font-size: 12px; font-style: normal; line-height: 18px; }

.accounting-page .month-energy-card dl,
.accounting-page .usage-confirm-card dl {
  padding: 8px 0;
  margin: 10px 0 0;
  border-top: 1px solid #e2e8f0;
}

.accounting-page .month-energy-card dl div,
.accounting-page .usage-confirm-card dl div { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 12px; line-height: 18px; }
.accounting-page .month-energy-card dt,
.accounting-page .usage-confirm-card dt { color: #7a889c; }
.accounting-page .month-energy-card dd,
.accounting-page .usage-confirm-card dd { margin: 0; color: #526278; text-align: right; }
.accounting-page .month-energy-card footer,
.accounting-page .usage-confirm-card footer { display: flex; justify-content: flex-end; gap: 12px; padding-top: 8px; border-top: 1px solid #e2e8f0; }
.accounting-page .month-energy-card footer a,
.accounting-page .usage-confirm-card footer a { color: #1677ff; font-size: 13px; font-weight: 600; }

.accounting-page .confirmation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.accounting-page .usage-confirm-card.is-pending { background: #fffaf0; border-color: #f0c36b; }
.accounting-page .usage-confirm-card .energy-name { display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; }
.accounting-page .usage-confirm-card .energy-name b,
.accounting-page .usage-confirm-card .energy-name small { display: block; }
.accounting-page .usage-confirm-card .energy-name b { color: #10213d; font-size: 14px; line-height: 22px; }
.accounting-page .usage-confirm-card .energy-name small { margin-top: 2px; color: #526278; font-size: 12px; line-height: 18px; }
.accounting-page .usage-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.accounting-page .usage-values span { min-width: 0; padding: 10px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.accounting-page .usage-values span.adopted { background: #f0f6ff; border-color: #cfe0ff; }
.accounting-page .usage-values small,
.accounting-page .usage-values b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accounting-page .usage-values small { color: #7a889c; font-size: 12px; line-height: 18px; }
.accounting-page .usage-values b { margin-top: 4px; color: #10213d; font-size: 14px; line-height: 22px; }
.accounting-page .usage-values .adopted b { color: #1677ff; }

.accounting-page .month-result-metrics { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px; }
.accounting-page .month-result-metrics article { padding: 4px 16px; border-right: 1px solid #e2e8f0; }
.accounting-page .month-result-metrics article:last-child { border-right: 0; }
.accounting-page .month-result-metrics small,
.accounting-page .month-result-metrics strong { display: block; }
.accounting-page .month-result-metrics small { color: #7a889c; font-size: 12px; line-height: 18px; }
.accounting-page .month-result-metrics strong { margin-top: 8px; color: #1677ff; font-family: Bahnschrift, "DIN Alternate", sans-serif; font-size: 26px; line-height: 34px; }
.accounting-page .month-result-metrics em { color: #526278; font-size: 12px; font-style: normal; font-weight: 500; }
.accounting-page .month-result-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 0 32px 16px; }
.accounting-page .month-result-breakdown div { display: grid; grid-template-columns: 24px 1fr 32px; align-items: center; gap: 8px; color: #526278; font-size: 12px; }
.accounting-page .month-result-breakdown i { height: 6px; overflow: hidden; background: #e9eef5; border-radius: 4px; }
.accounting-page .month-result-breakdown em { display: block; height: 100%; background: #2468f2; border-radius: inherit; }
.accounting-page .month-result-breakdown div:nth-child(2) em { background: #ef5261; }
.accounting-page .month-result-breakdown div:nth-child(3) em { background: #f59e0b; }
.accounting-page .month-result-breakdown div:nth-child(4) em { background: #7557e8; }
.accounting-page .month-result-breakdown b { color: #10213d; text-align: right; }

.accounting-page .month-pdf-card,
.accounting-page .month-archive-card { display: flex; align-items: center; gap: 16px; padding: 16px; }
.accounting-page .month-pdf-card > i { display: grid; width: 48px; height: 56px; flex: none; place-items: center; color: #d94453; font-size: 12px; font-style: normal; font-weight: 700; background: #fff0f2; border-radius: 8px; }
.accounting-page .month-pdf-card > div { min-width: 0; flex: 1; }
.accounting-page .month-pdf-card small,
.accounting-page .month-pdf-card b,
.accounting-page .month-pdf-card span { display: block; }
.accounting-page .month-pdf-card small { color: #1677ff; font-size: 12px; line-height: 18px; }
.accounting-page .month-pdf-card b { margin-top: 4px; color: #10213d; font-size: 14px; line-height: 22px; }
.accounting-page .month-pdf-card span { margin-top: 4px; color: #526278; font-size: 12px; line-height: 18px; }
.accounting-page .month-pdf-card aside,
.accounting-page .month-archive-card aside { display: flex; flex: none; gap: 8px; }

.accounting-page .month-archive-card { justify-content: space-between; }
.accounting-page .archive-state { display: flex; min-width: 260px; align-items: center; gap: 12px; }
.accounting-page .archive-state > i { display: grid; width: 40px; height: 40px; flex: none; place-items: center; color: #fff; font-size: 14px; font-style: normal; font-weight: 700; background: #1677ff; border-radius: 50%; }
.accounting-page .is-archived .archive-state > i { background: #16a474; }
.accounting-page .archive-state span,
.accounting-page .archive-state small,
.accounting-page .archive-state b,
.accounting-page .archive-state em { display: block; }
.accounting-page .archive-state small { color: #1677ff; font-size: 12px; line-height: 18px; }
.accounting-page .archive-state b { margin-top: 2px; color: #10213d; font-size: 14px; line-height: 22px; }
.accounting-page .archive-state em { margin-top: 2px; color: #526278; font-size: 12px; font-style: normal; line-height: 18px; }
.accounting-page .month-archive-card dl { display: flex; gap: 24px; margin: 0; }
.accounting-page .month-archive-card dl div { min-width: 80px; }
.accounting-page .month-archive-card dt { color: #7a889c; font-size: 12px; line-height: 18px; }
.accounting-page .month-archive-card dd { margin: 4px 0 0; color: #10213d; font-size: 13px; line-height: 20px; }

.accounting-page .month-source-summary,
.accounting-page .usage-evidence-compare { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.accounting-page .month-source-summary div,
.accounting-page .usage-evidence-compare article { padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; }
.accounting-page .month-source-summary small,
.accounting-page .month-source-summary b,
.accounting-page .usage-evidence-compare small,
.accounting-page .usage-evidence-compare b,
.accounting-page .usage-evidence-compare span { display: block; }
.accounting-page .month-source-summary small,
.accounting-page .usage-evidence-compare small { color: #7a889c; font-size: 12px; line-height: 18px; }
.accounting-page .month-source-summary b,
.accounting-page .usage-evidence-compare b { margin-top: 6px; color: #10213d; font-size: 14px; line-height: 22px; }
.accounting-page .usage-evidence-compare { grid-template-columns: repeat(3, 1fr); }
.accounting-page .usage-evidence-compare article.is-adopted { background: #f0f6ff; border-color: #cfe0ff; }
.accounting-page .usage-evidence-compare span { margin-top: 4px; color: #526278; font-size: 12px; line-height: 18px; }
.accounting-page .month-source-records { margin-top: 12px; overflow-x: auto; border: 1px solid #e2e8f0; border-radius: 8px; }
.accounting-page .month-source-records header,
.accounting-page .month-source-records > div { display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; min-width: 680px; min-height: 40px; padding: 0 12px; font-size: 12px; }
.accounting-page .month-source-records header { color: #526278; background: #f8fafc; }
.accounting-page .month-source-records > div { color: #10213d; border-top: 1px solid #e2e8f0; }

.accounting-page .usage-adjustment-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.accounting-page .usage-adjustment-fields label > span { display: block; margin-bottom: 6px; color: #526278; font-size: 12px; line-height: 18px; }
.accounting-page .usage-adjustment-fields input,
.accounting-page .usage-adjustment-fields select,
.accounting-page .usage-adjustment-fields textarea { width: 100%; min-height: 40px; padding: 8px 12px; color: #10213d; font-size: 14px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; }
.accounting-page .usage-adjustment-fields textarea { min-height: 88px; resize: vertical; }
.accounting-page .usage-adjustment-fields .span-2 { grid-column: 1 / -1; }
.accounting-page .usage-evidence-file { display: flex; min-height: 56px; align-items: center; gap: 12px; padding: 8px 12px; background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 8px; }
.accounting-page .usage-evidence-file > i { display: grid; width: 32px; height: 36px; place-items: center; color: #d94453; font-size: 12px; font-style: normal; font-weight: 700; background: #fff0f2; border-radius: 6px; }
.accounting-page .usage-evidence-file > span { min-width: 0; flex: 1; }
.accounting-page .usage-evidence-file b,
.accounting-page .usage-evidence-file small { display: block; }
.accounting-page .usage-evidence-file b { color: #10213d; font-size: 13px; line-height: 20px; }
.accounting-page .usage-evidence-file small { margin-top: 2px; color: #526278; font-size: 12px; line-height: 18px; }
.accounting-page .usage-evidence-file input { width: 180px; min-height: auto; padding: 0; border: 0; }

@media (max-width: 1360px) {
  .accounting-page .month-energy-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .accounting-page .confirmation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accounting-page .month-summary-metrics span:nth-child(2) { display: none; }
  .accounting-page .month-archive-card { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 1120px) {
  .accounting-page .accounting-month-summary { grid-template-columns: minmax(220px, 1fr) auto; gap: 12px; }
  .accounting-page .month-summary-metrics { display: none; }
  .accounting-page .month-stage { padding-inline: 6px; }
  .accounting-page .month-stage small { display: none; }
  .accounting-page .month-energy-grid,
  .accounting-page .confirmation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .accounting-page .month-result-metrics { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .accounting-page .month-result-metrics article:nth-child(2) { border-right: 0; }
  .accounting-page .month-result-breakdown { grid-template-columns: repeat(2, 1fr); }
  .accounting-page .month-pdf-card { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 960px) {
  .accounting-page .month-stage-timeline { grid-template-columns: 1fr; }
  .accounting-page .month-stage:not(:last-child)::after { display: none; }
  .accounting-page .month-energy-grid,
  .accounting-page .confirmation-grid { grid-template-columns: 1fr; }
  .accounting-page .month-source-summary,
  .accounting-page .usage-evidence-compare { grid-template-columns: repeat(2, 1fr); }
  .accounting-page .month-archive-card dl { width: 100%; }
}

@media (max-width: 760px) {
  .accounting-page .accounting-month-toolbar,
  .accounting-page .accounting-month-summary,
  .accounting-page .month-pdf-card,
  .accounting-page .month-archive-card { align-items: stretch; flex-direction: column; }
  .accounting-page .accounting-month-toolbar { display: flex; }
  .accounting-page .accounting-month-toolbar aside { width: 100%; flex-direction: column; }
  .accounting-page .accounting-month-toolbar .btn { width: 100%; }
  .accounting-page .accounting-month-summary { display: flex; }
  .accounting-page .month-summary-actions { justify-content: flex-start; flex-wrap: wrap; }
  .accounting-page .month-result-metrics,
  .accounting-page .month-result-breakdown,
  .accounting-page .month-source-summary,
  .accounting-page .usage-evidence-compare,
  .accounting-page .usage-values,
  .accounting-page .usage-adjustment-fields { grid-template-columns: 1fr; }
  .accounting-page .month-result-metrics article { border-right: 0; border-bottom: 1px solid #e2e8f0; }
  .accounting-page .month-result-metrics article:last-child { border-bottom: 0; }
  .accounting-page .usage-adjustment-fields .span-2 { grid-column: auto; }
  .accounting-page .usage-evidence-file { align-items: flex-start; flex-direction: column; }
  .accounting-page .usage-evidence-file input { width: 100%; }
  .accounting-page .month-archive-card dl { flex-wrap: wrap; }
  .accounting-page :is(.month-pdf-card, .month-archive-card) aside { width: 100%; flex-wrap: wrap; }
}
