.financial-dashboard {
  color: var(--ink, #12384d);
}
.financial-dashboard [hidden] {
  display: none;
}
.financial-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  padding: 14px 0;
  border-block: 1px solid var(--line, #d9e5eb);
}
.financial-filters label {
  display: grid;
  gap: 5px;
  font-weight: 600;
  font-size: 13px;
}
.financial-filters select {
  min-width: 110px;
  padding: 8px 10px;
  background: var(--paper, #fff);
  color: inherit;
  border: 1px solid var(--line, #d9e5eb);
  border-radius: 5px;
  font: inherit;
}
.financial-chart-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.financial-chart {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line, #d9e5eb);
  border-radius: 8px;
  background: var(--paper, #fff);
}
.financial-chart header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line, #d9e5eb);
}
.financial-chart h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.35;
}
.financial-chart [data-financial-value] {
  display: block;
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.financial-chart [data-financial-growth] {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted, #294d60);
}
.financial-chart .chart-period {
  margin: 12px 0 4px;
  font-size: 12px;
  color: var(--muted, #294d60);
}
.financial-bar-scroll {
  overflow-x: auto;
}
.financial-bar-scroll svg {
  display: block;
  width: 100%;
  min-width: 270px;
  height: 202px;
}
.financial-chart svg text {
  fill: currentColor;
  font-family: inherit;
}
.financial-axis {
  font-size: 10px;
}
[data-financial-pie] {
  display: block;
  width: 130px;
  height: 130px;
  margin: 0 auto;
}
.financial-pie-title {
  font-size: 13px;
}
.financial-pie-total {
  font-size: 24px;
  font-weight: 800;
}
[data-financial-legend] {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}
[data-financial-legend] li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-size: 11px;
}
[data-financial-legend] span {
  padding-left: 6px;
}
[data-financial-legend] strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.financial-chart .source-line {
  font-size: 11px;
  margin: 8px 0 0;
}
.financial-data-table {
  margin: 18px 0;
}
.financial-data-table summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.financial-data-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}
.financial-data-table th,
.financial-data-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line, #d9e5eb);
  text-align: left;
  white-space: nowrap;
}
.financial-dashboard .portal-table-wrap {
  overflow-x: auto;
}
.financial-dashboard [data-financial-empty] {
  padding: 12px;
  background: var(--wash, #eef6fa);
  border-radius: 6px;
}
.charts-visible .financial-bar {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: financial-bar-grow 0.65s cubic-bezier(0.2, 0.6, 0.3, 1) both;
}
.charts-visible .financial-line {
  stroke-dasharray: 1;
  animation: financial-line-draw 0.85s ease-out both;
}
.charts-visible [data-financial-pie] {
  animation: financial-pie-reveal 0.65s ease-out both;
}
@keyframes financial-bar-grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}
@keyframes financial-line-draw {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes financial-pie-reveal {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 1300px) {
  .financial-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 650px) {
  .financial-chart-grid {
    grid-template-columns: 1fr;
  }
  .financial-filters label {
    flex: 1 1 42%;
  }
  .financial-filters select {
    min-width: 0;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .charts-visible .financial-bar,
  .charts-visible .financial-line,
  .charts-visible [data-financial-pie] {
    animation: none;
  }
}
