.main-content {
  padding: 30px 32px 36px;
  max-width: 1800px;
  margin: 0 auto;
}
.page-heading {
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  margin: 0 0 5px;
}
.page-heading p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  letter-spacing: 0.2px;
}
.panel {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  padding: 20px;
  min-height: 135px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}
.stat-top h2 {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin: 0;
}
.trend {
  font: 10px var(--mono);
  border-radius: 20px;
  padding: 5px 7px;
  white-space: nowrap;
}
.positive {
  background: #06312e;
  color: #00d2a0;
}
.negative {
  background: #30192d;
  color: #ff527a;
}
.stat-value {
  font: 600 24px var(--mono);
  margin: 14px 0;
  letter-spacing: -0.8px;
}
.purple {
  color: #817aff;
}
.red {
  color: #ff3867;
}
.green {
  color: #00c591;
}
.blue {
  color: #21bdff;
}
.stat-description {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.charts-grid {
  display: grid;
  grid-template-columns: 2.04fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}
.dashboard-charts-area {
  position: relative;
}
.dashboard-charts-area.is-locked > .chart-panel {
  pointer-events: none;
  user-select: none;
}
.dashboard-charts-area.is-locked > .chart-panel > :not(.dashboard-chart-lock) {
  filter: blur(3px);
  opacity: 0.38;
}
.dashboard-charts-area.is-locked > .chart-panel > .dashboard-chart-lock {
  pointer-events: auto;
}
.dashboard-chart-lock {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 24px;
}
.dashboard-chart-lock-card {
  max-width: 330px;
  padding: 24px;
  border: 1px solid #6366f188;
  border-radius: 11px;
  background: #12182aee;
  box-shadow: 0 16px 45px #0008;
  text-align: center;
}
.dashboard-chart-lock-card strong {
  display: block;
  color: #f1f5f9;
  font-size: 16px;
}
.dashboard-chart-lock-card p {
  margin: 9px 0 17px;
  color: #a1aec2;
  font-size: 12px;
  line-height: 1.5;
}
.dashboard-chart-lock-card a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 7px;
  background: #6366f1;
  color: #fff;
  font: 600 11px var(--mono);
  text-decoration: none;
}
.chart-panel {
  padding: 21px 20px 24px;
  min-width: 0;
}
.dashboard-chart-panel {
  position: relative;
}
.dashboard-chart-month {
  cursor: crosshair;
  outline: none;
}
.dashboard-chart-month:focus .chart-label,
.dashboard-chart-month:hover .chart-label {
  fill: #f1f5f9;
}
.dashboard-chart-tooltip {
  position: absolute;
  top: 54px;
  z-index: 2;
  min-width: 170px;
  padding: 12px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #1a2234;
  box-shadow: 0 12px 30px #0005;
  color: #94a3b8;
  font: 11px var(--mono);
  pointer-events: none;
}
.dashboard-chart-tooltip strong {
  display: block;
  margin-bottom: 8px;
  color: #f1f5f9;
  font-weight: 500;
}
.dashboard-chart-tooltip div {
  margin-top: 5px;
}
.dashboard-chart-tooltip b {
  color: #f1f5f9;
  font-weight: 400;
}
.panel-title {
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 10px;
}
.dashboard-chart-scroll {
  overflow-x: auto;
  overflow-y: hidden;
}
.bar-chart {
  display: block;
  width: 100%;
  height: 205px;
}
.balance-chart {
  display: block;
  width: 100%;
  height: 230px;
}
.grid-line {
  stroke: #243044;
  stroke-dasharray: 2 4;
  stroke-width: 1;
}
.chart-label {
  fill: #6681a1;
  font: 10px var(--mono);
}
.chart-legend {
  display: flex;
  justify-content: center;
  gap: 12px;
  font: 10px var(--mono);
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.chart-legend i {
  width: 13px;
  height: 10px;
}
.income-key {
  background: #6861f2;
}
.expense-key {
  background: #f43761;
}
.transactions {
  padding: 19px 20px 12px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  padding: 5px 16px 14px 0;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 400;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 15px 16px 15px 0;
  color: #98b6d6;
  border-bottom: 1px solid #1a2231;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #141e2d;
}
th:first-child {
  width: 15%;
}
th:nth-child(2) {
  width: 17%;
}
th:nth-child(3) {
  width: 15%;
}
.transaction-id {
  font: 11px var(--mono);
}
.product-name,
td.amount {
  color: var(--text);
}
.amount {
  text-align: right;
  padding-right: 0;
}
td.amount {
  font: 12px var(--mono);
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  font: 10px var(--mono);
  border-radius: 4px;
}
.empty-state {
  padding: 70px 24px;
  text-align: center;
}
.empty-icon {
  color: #817aff;
  font-size: 40px;
}
.empty-state h2 {
  font-size: 20px;
  margin: 16px 0 10px;
}
.empty-state p {
  color: var(--muted);
  font-size: 14px;
}
.button-link {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 8px;
  background: #6861f2;
  color: white;
  text-decoration: none;
  font-size: 13px;
}
@media (max-width: 1150px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .charts-grid {
    grid-template-columns: 1fr;
  }
  .balance-chart {
    height: 225px;
  }
}
@media (max-width: 600px) {
  .main-content {
    padding: 24px 16px;
  }
  .stats-grid {
    gap: 12px;
    margin-bottom: 20px;
  }
  .stat-card {
    padding: 15px 12px;
  }
  .stat-top {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .stat-top h2 {
    font-size: 9px;
    letter-spacing: 0.8px;
  }
  .stat-value {
    font-size: 21px;
  }
  .stat-description {
    font-size: 10px;
  }
  .chart-panel {
    padding: 18px 12px;
  }
  .bar-chart {
    height: auto;
  }
  .chart-legend {
    margin-top: 8px;
  }
  .transactions {
    padding: 18px 14px 10px;
  }
  table {
    min-width: 690px;
  }
}
