@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

.financial-page {
  --finance-mono: 'JetBrains Mono', var(--mono);
  --finance-muted: #64748b;
  font-family: 'Inter', system-ui, sans-serif;
  color: #f1f5f9;
}
.financial-page .page-heading {
  margin-bottom: 24px;
}
.financial-page .page-heading p {
  color: var(--finance-muted);
}
.financial-page .finance-kpis {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.movement-filter {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 24px 0;
}
.movement-filter .entry-field {
  flex: 0 1 220px;
}
.movement-filter .entry-button {
  margin-bottom: 0;
}
.financial-page .finance-kpis--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.financial-page .finance-kpis--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.expenses-table-wrap {
  margin-top: 24px;
}
.expense-status {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid;
  border-radius: 4px;
  font: 10px var(--finance-mono);
}
.expense-status--paid {
  color: #34d399;
  border-color: #10b98166;
  background: #10b9811a;
}
.expense-status--pending {
  color: #fbbf24;
  border-color: #f59e0b66;
  background: #f59e0b1a;
}
.financial-page .finance-kpi {
  padding: 20px;
  border: 1px solid #1f2937;
  border-radius: 12px;
  background: #111827;
  transition: border-color 0.15s;
}
.financial-page .finance-kpi:hover {
  border-color: #6366f166;
}
.financial-page .finance-kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 20px;
}
.financial-page .finance-kpi h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  color: var(--finance-muted);
}
.financial-page .finance-kpi-value {
  font: 600 clamp(18px, 1.6vw, 24px) var(--finance-mono);
  letter-spacing: -0.6px;
  margin: 12px 0 0;
  white-space: nowrap;
}
.financial-page .finance-kpi-sub {
  font-size: 12px;
  color: var(--finance-muted);
  margin: 12px 0 0;
}
.financial-page .finance-trend {
  padding: 3px 8px;
  border-radius: 20px;
  font: 11px var(--finance-mono);
  white-space: nowrap;
}
.financial-page .finance-trend--up {
  color: #34d399;
  background: #10b9811a;
}
.financial-page .finance-trend--down {
  color: #fb7185;
  background: #f43f5e1a;
}
.financial-page .finance-table-wrap {
  overflow-x: auto;
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 12px;
}
.financial-page .finance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.financial-page .movement-table {
  min-width: 1150px;
}
.financial-page .values-table {
  min-width: 740px;
}
.values-table-section {
  margin-top: 28px;
}
.values-table-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}
.values-table-heading h2 {
  margin: 0;
  color: #f1f5f9;
  font-size: 14px;
  font-weight: 600;
}
.values-table-heading p {
  margin: 4px 0 0;
  color: var(--finance-muted);
  font-size: 12px;
}
.values-table-wrap[data-table-preview] {
  position: relative;
}
.values-table-wrap[data-table-preview]:not(.is-expanded)
  tbody
  tr:nth-child(n + 11),
.movement-table-wrap[data-table-preview]:not(.is-expanded)
  tbody
  tr:nth-child(n + 11) {
  display: none;
}
.values-table-more {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-top: 1px solid #243044;
  background: #151e30;
  color: #a5b4fc;
  font: 600 11px var(--finance-mono);
  cursor: pointer;
}
.values-table-more:hover {
  background: #1a263c;
  color: #c7d2fe;
}
.financial-page .finance-table th {
  width: auto;
}
.financial-page .finance-table thead th {
  padding: 12px 16px;
  color: var(--finance-muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid #1f2937;
}
.financial-page .finance-table tbody td,
.financial-page .finance-table tbody th {
  padding: 14px 16px;
  color: #94a3b8;
  border-bottom: 1px solid #1f293766;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}
.financial-page .finance-table tbody tr:hover {
  background: #1a2234;
}
.financial-page .finance-table tfoot {
  background: #1a2234;
}
.financial-page .finance-table tfoot td,
.financial-page .finance-table tfoot th {
  padding: 12px 16px;
  border-top: 1px solid #243044;
  border-bottom: 0;
  color: #94a3b8;
}
.financial-page .finance-table tfoot th {
  font:
    500 12px 'Inter',
    system-ui,
    sans-serif;
  letter-spacing: normal;
  text-transform: none;
}
.financial-page .finance-table tfoot td {
  font-size: 14px;
}
.financial-page .values-table th,
.financial-page .values-table td {
  padding-left: 20px;
  padding-right: 20px;
}
.financial-page .finance-mono {
  font-family: var(--finance-mono);
  font-size: 12px;
}
.financial-page .finance-table .finance-partner {
  color: #f1f5f9;
  font-weight: 500;
}
.financial-page .finance-table .finance-muted {
  color: var(--finance-muted);
}
.financial-page .finance-table .finance-invoice {
  font: 10px var(--finance-mono);
  color: var(--finance-muted);
}
.financial-page .finance-table .finance-semibold {
  font-weight: 600;
}
.financial-page .finance-table .finance-text {
  color: #f1f5f9;
}
.financial-page .finance-primary {
  color: #6366f1;
}
.financial-page .finance-danger {
  color: #f43f5e;
}
.financial-page .finance-success {
  color: #10b981;
}
.financial-page .finance-warning {
  color: #f59e0b;
}
.financial-page .finance-info {
  color: #38bdf8;
}
.financial-page .finance-table .finance-primary {
  color: #818cf8;
}
.financial-page .finance-table .finance-danger {
  color: #f43f5e;
}
.financial-page .finance-table .finance-success {
  color: #34d399;
}
.financial-page .finance-margin {
  display: flex;
  align-items: center;
  gap: 8px;
}
.financial-page .finance-margin-track {
  display: block;
  width: 80px;
  height: 6px;
  border-radius: 8px;
  background: #1f2937;
  overflow: hidden;
}
.financial-page .finance-margin-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #10b981;
}
.financial-page .finance-chart-panel {
  position: relative;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  background: #111827;
}
.financial-page .finance-chart-panel h2 {
  margin: 0 0 16px;
  color: var(--finance-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.financial-page .finance-chart-locked {
  position: relative;
  overflow: hidden;
}
.financial-page .finance-chart-locked .finance-chart-scroll,
.financial-page .finance-chart-locked .finance-chart-legend {
  filter: blur(4px);
  opacity: .35;
}
.financial-page .finance-chart-lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 20px;
  background: #090d1277;
  text-align: center;
}
.financial-page .finance-chart-lock-overlay strong {
  font-size: 14px;
}
.financial-page .finance-chart-lock-overlay p {
  margin: 8px 0 14px;
  color: var(--finance-muted);
  font-size: 12px;
}
.financial-page .finance-chart-lock-overlay a {
  padding: 9px 15px;
  border-radius: 7px;
  background: #6366f1;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.financial-page .finance-chart {
  display: block;
  width: 100%;
  height: 236px;
}
.financial-page .finance-grid-line {
  stroke: #1f2937;
  stroke-dasharray: 3 3;
}
.financial-page .finance-chart-label {
  fill: var(--finance-muted);
  font: 11px var(--finance-mono);
}
.financial-page .finance-chart-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  font: 11px var(--finance-mono);
}
.financial-page .finance-chart-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.financial-page .finance-chart-legend i {
  width: 13px;
  border-top: 2px solid currentColor;
}
.financial-page .finance-chart-legend .finance-legend-dashed {
  border-top-style: dashed;
}
.financial-page .finance-chart-cursor {
  stroke: #475569;
  stroke-dasharray: 3 3;
  opacity: 0;
}
.financial-page .finance-chart-month:hover .finance-chart-cursor,
.financial-page .finance-chart-month:focus .finance-chart-cursor {
  opacity: 1;
}
.financial-page .finance-chart-tooltip {
  position: absolute;
  top: 55px;
  z-index: 2;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1a2234;
  box-shadow: 0 12px 30px #0005;
  color: #94a3b8;
  font: 11px var(--finance-mono);
  pointer-events: none;
}
.financial-page .finance-chart-tooltip strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}
.financial-page .finance-chart-tooltip div {
  margin-top: 5px;
}
.financial-page .finance-chart-tooltip b {
  color: #f1f5f9;
  font-weight: 400;
}
@media (max-width: 1200px) {
  .financial-page .finance-kpis--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .movement-filter {
    align-items: stretch;
    flex-wrap: wrap;
  }
  .financial-page .finance-kpis--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .financial-page .finance-kpis--three > :last-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .financial-page .finance-kpis {
    gap: 12px;
  }
  .financial-page .finance-kpi {
    padding: 16px 12px;
  }
  .financial-page .finance-kpi-top {
    flex-wrap: wrap;
  }
  .financial-page .finance-kpi h2 {
    font-size: 9px;
    letter-spacing: 0.6px;
  }
  .financial-page .finance-kpi-value {
    font-size: 16px;
    letter-spacing: -0.8px;
  }
  .financial-page .finance-kpi-sub {
    font-size: 10px;
  }
  .financial-page .finance-trend {
    font-size: 9px;
  }
  .financial-page .finance-chart-panel {
    padding: 16px 12px;
  }
  .financial-page .finance-chart-scroll {
    overflow-x: auto;
  }
  .financial-page .finance-chart {
    min-width: 600px;
    height: 225px;
  }
  .financial-page .finance-chart-tooltip {
    font-size: 10px;
  }
}
