.accounting-dashboard {
  padding: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #111827;
}

.accounting-dashboard__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.accounting-dashboard__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.accounting-dashboard__subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.accounting-dashboard__period-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0.2rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.accounting-dashboard__period-btn {
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.accounting-dashboard__period-btn:hover {
  color: #111827;
}

.accounting-dashboard__period-btn.is-active {
  background: #3b82f6;
  color: #fff;
}

.accounting-dashboard__kpi-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 1199.98px) {
  .accounting-dashboard__kpi-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .accounting-dashboard__kpi-row {
    grid-template-columns: 1fr;
  }
}

.accounting-dashboard__kpi {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 1.1rem 1.25rem;
  min-height: 100%;
}

.accounting-dashboard__kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.accounting-dashboard__kpi-value-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.accounting-dashboard__kpi-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.accounting-dashboard__kpi-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.accounting-dashboard__kpi-pill--up {
  background: #dcfce7;
  color: #15803d;
}

.accounting-dashboard__kpi-pill--down {
  background: #fee2e2;
  color: #b91c1c;
}

.accounting-dashboard__kpi-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid #f3f4f6;
  padding-top: 0.75rem;
}

.accounting-dashboard__kpi-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
}

.accounting-dashboard__kpi-line-label {
  color: #6b7280;
}

.accounting-dashboard__kpi-line-value {
  font-weight: 600;
  color: #374151;
}

.accounting-dashboard__kpi-line-value.is-positive { color: #16a34a; }
.accounting-dashboard__kpi-line-value.is-negative { color: #dc2626; }
.accounting-dashboard__kpi-line-value.is-info { color: #2563eb; }

.accounting-dashboard__grid {
  display: grid;
  gap: 1rem;
}

.accounting-dashboard__grid--main {
  grid-template-columns: 2fr 1fr;
  margin-bottom: 1rem;
}

.accounting-dashboard__grid--half {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 1rem;
}

.accounting-dashboard__grid--triple {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1rem;
  align-items: stretch;
}

.accounting-dashboard__insight-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  min-height: 360px;
}

.accounting-dashboard__insight-card .accounting-dashboard__card-title {
  padding: 1rem 1.25rem 0.35rem;
  flex-shrink: 0;
}

.accounting-dashboard__insight-chart {
  flex: 1 1 auto;
  padding: 0 0.5rem 0.75rem;
  min-height: 280px;
}

.accounting-dashboard__insight-chart--compact {
  min-height: 190px;
  flex: 0 0 auto;
}

.accounting-dashboard__insight-card--suppliers {
  justify-content: flex-start;
}

.accounting-dashboard__empty-chart {
  margin: 0;
  padding: 1.5rem 1.25rem;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.accounting-dashboard__card-title {
  margin: 0;
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}

.accounting-dashboard__card-body {
  padding: 0 1rem 1rem;
}

.accounting-dashboard__card-body--chart {
  min-height: 280px;
}

.accounting-dashboard__card-body--chart-sm {
  min-height: 240px;
}

.accounting-dashboard__chart-canvas {
  width: 100%;
  background: transparent;
  box-shadow: none;
}

.accounting-dashboard__donut-center {
  text-align: center;
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: -0.5rem;
  margin-bottom: 0.5rem;
}

.accounting-dashboard__rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0 0.25rem 0.5rem;
}

.accounting-dashboard__specific-list {
  border-top: 1px solid #f0f1f3;
  margin-top: auto;
  padding: 0.85rem 1.25rem 1rem;
  flex-shrink: 0;
}

.accounting-dashboard__specific-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 0.75rem;
}

.accounting-dashboard__specific-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  padding: 0.35rem 0;
}

.accounting-dashboard__specific-label {
  color: #6b7280;
}

.accounting-dashboard__specific-value {
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}

.accounting-dashboard__specific-value.is-positive {
  color: #16a34a;
}

.accounting-dashboard__specific-value.is-zero {
  color: #9ca3af;
}

@media (max-width: 1199.98px) {
  .accounting-dashboard__grid--main,
  .accounting-dashboard__grid--triple {
    grid-template-columns: 1fr;
  }

  .accounting-dashboard__insight-card {
    min-height: 0;
  }
}

@media (max-width: 767.98px) {
  .accounting-dashboard__grid--half {
    grid-template-columns: 1fr;
  }
}

.accounting-dashboard__card {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  min-height: 100%;
}

.accounting-dashboard__card--chart {
  padding: 0.75rem 1rem 1rem;
}

.accounting-dashboard__card--chart-sm {
  padding: 0.75rem 1rem 1rem;
  min-height: 260px;
}

.accounting-dashboard__card--chart-lg {
  padding: 0.75rem 1rem 1rem;
  min-height: 300px;
}

.accounting-dashboard__chart-host {
  width: 100%;
}

.accounting-dashboard__chart-host > div,
.accounting-dashboard__chart-canvas {
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
}

.accounting-dashboard .highcharts-container,
.accounting-dashboard .highcharts-root {
  width: 100% !important;
}

.accounting-dashboard .highcharts-background {
  fill: transparent;
}
