.accounting_reports_root {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 14px;
  box-sizing: border-box;
  background: #f5f7fb;
  color: #172033;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.accounting_reports_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.accounting_reports_title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.accounting_reports_scope {
  margin-top: 4px;
  font-size: 13px;
  color: #61708a;
}

.accounting_reports_actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.accounting_reports_button {
  border: 1px solid #cfd8e6;
  border-radius: 6px;
  background: #ffffff;
  color: #172033;
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.accounting_reports_button:hover {
  background: #eef4ff;
  border-color: #9fb7dd;
}

.accounting_reports_button img {
  width: 18px;
  height: 18px;
}

.accounting_reports_grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}

.accounting_reports_panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.accounting_reports_panel_header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 6px 12px;
}

.accounting_reports_panel_title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.accounting_reports_panel_metric {
  margin-top: 4px;
  color: #61708a;
  font-size: 12px;
}

.accounting_reports_chart_wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 4px 12px 12px 12px;
}

.accounting_reports_chart {
  width: 100%;
  height: 100%;
  display: block;
}

.accounting_reports_message {
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 18px;
  color: #61708a;
}

@media (max-width: 900px) {
  .accounting_reports_header {
    align-items: flex-start;
    flex-direction: column;
  }

  .accounting_reports_grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    flex: none;
  }

  .accounting_reports_panel {
    min-height: 300px;
  }

  .accounting_reports_root {
    overflow: auto;
  }
}
