.shell-panel[data-tab-panel="dashboard"],
.shell-panel[data-tab-panel="dashboard"] .shell-panel__body {
  width: 100%;
  min-width: 0;
}

.shell-panel[data-tab-panel="dashboard"] .shell-panel__body {
  gap: 0;
}

.dashboard-kpi-grid {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.dashboard-kpi-card {
  background: var(--shell-surface);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shell-shadow);
  text-align: center;
}

.dashboard-kpi-card--profit {
  background: linear-gradient(135deg, var(--shell-primary), #3367d6);
  color: #fff;
}

.dashboard-kpi-card__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--shell-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-kpi-card--profit .dashboard-kpi-card__title {
  color: rgba(255, 255, 255, 0.8);
}

.dashboard-kpi-card__value {
  margin: 0 0 2px;
  font-size: 28px;
  font-weight: 700;
  color: var(--shell-text);
  line-height: 1.2;
}

.dashboard-kpi-card--profit .dashboard-kpi-card__value {
  color: #fff;
}

.dashboard-kpi-card__unit {
  margin: 0;
  font-size: 12px;
  color: var(--shell-text-muted);
}

.dashboard-kpi-card--profit .dashboard-kpi-card__unit {
  color: rgba(255, 255, 255, 0.7);
}

.dashboard-section {
  width: 100%;
  min-width: 0;
  background: var(--shell-surface);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shell-shadow);
}

.dashboard-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.dashboard-section__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--shell-text);
}

.dashboard-horizon {
  display: flex;
  gap: 4px;
}

.dashboard-horizon__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--shell-border);
  background: #fff;
  color: var(--shell-text-muted);
  border-radius: 20px;
  text-decoration: none;
  transition: 0.2s;
}

.dashboard-horizon__button:hover {
  background: rgba(66, 133, 244, 0.06);
  border-color: var(--shell-primary);
  color: var(--shell-primary);
  text-decoration: none;
}

.dashboard-horizon__button.is-active {
  background: var(--shell-primary);
  color: #fff;
  border-color: var(--shell-primary);
}

.dashboard-notes {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.dashboard-notes__tax {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  color: #2e7d32;
}

.dashboard-notes__unit {
  margin: 0;
  font-size: 11px;
  color: #888;
}

.dashboard-table-scroll {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.dashboard-table {
  min-width: 100%;
  width: auto;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}

.dashboard-table th,
.dashboard-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--shell-border);
  text-align: right;
  vertical-align: middle;
  font-variant-numeric: tabular-nums;
}

.dashboard-table thead th {
  background: var(--shell-bg);
  font-weight: 600;
  color: var(--shell-text-muted);
  font-size: 11px;
  letter-spacing: 0.3px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.dashboard-table__sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
  text-align: left !important;
  font-weight: 600;
  min-width: 78px;
}

.dashboard-table thead .dashboard-table__sticky {
  background: var(--shell-bg);
  z-index: 3;
}

.dashboard-table tbody tr:hover td,
.dashboard-table tbody tr:hover .dashboard-table__sticky {
  background: rgba(66, 133, 244, 0.04);
}

.dashboard-table__group {
  text-align: center !important;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 2px solid;
}

.dashboard-table thead .dashboard-table__group--revenue {
  background: rgba(52, 168, 83, 0.08);
  color: #1e7e34;
  border-color: #34a853;
}

.dashboard-table thead .dashboard-table__group--exec {
  background: rgba(13, 71, 161, 0.1);
  color: #0d47a1;
  border-color: #1565c0;
}

.dashboard-table thead .dashboard-table__group--staff {
  background: rgba(230, 81, 0, 0.08);
  color: #e65100;
  border-color: #ef6c00;
}

.dashboard-table thead .dashboard-table__group--expense {
  background: rgba(106, 27, 154, 0.1);
  color: #6a1b9a;
  border-color: #8e24aa;
}

.dashboard-table thead .dashboard-table__group--cost {
  background: rgba(234, 67, 53, 0.06);
  color: #c0392b;
  border-color: #ea4335;
}

.dashboard-table thead .dashboard-table__group--net {
  background: rgba(66, 133, 244, 0.08);
  color: #1a5276;
  border-color: var(--shell-primary);
}

.dashboard-table__sub {
  font-size: 10px;
  text-align: center !important;
}

.dashboard-table thead .dashboard-table__sub--revenue {
  background: rgba(52, 168, 83, 0.06);
  color: #2e7d32;
}

.dashboard-table thead .dashboard-table__sub--exec {
  background: rgba(13, 71, 161, 0.06);
  color: #0d47a1;
}

.dashboard-table thead .dashboard-table__sub--staff {
  background: rgba(230, 81, 0, 0.06);
  color: #e65100;
}

.dashboard-table thead .dashboard-table__sub--expense {
  background: rgba(106, 27, 154, 0.06);
  color: #6a1b9a;
}

.dashboard-table thead .dashboard-table__sub--net {
  background: rgba(66, 133, 244, 0.06);
  color: #1a5276;
}

.dashboard-table__total-label {
  font-weight: 700;
}

.dashboard-table__tax-mark {
  font-size: 10px;
  font-weight: 600;
}

.dashboard-table__tax-sub {
  font-size: 9px;
}

.dashboard-table__cell--revenue {
  color: #2e7d32;
}

.dashboard-table__cell--revenue-total {
  color: #1a6b2a;
  font-weight: 700;
}

.dashboard-table__cell--exec {
  color: #0d47a1;
  font-size: 12px;
}

.dashboard-table__cell--staff {
  color: #e65100;
  font-size: 12px;
}

.dashboard-table__cell--expense {
  color: #6a1b9a;
  font-size: 12px;
}

.dashboard-table__cell--cost-total {
  color: #a93226;
  font-weight: 700;
}

.dashboard-table__cell--profit.is-positive {
  color: var(--shell-success);
  font-weight: 700;
}

.dashboard-table__cell--profit.is-negative {
  color: var(--shell-danger);
  font-weight: 700;
}

.dashboard-table__cell--annual {
  font-weight: 700;
  color: #1565c0;
}

.dashboard-table__cell--annual.is-positive {
  color: var(--shell-success);
}

.dashboard-table__cell--annual.is-negative {
  color: var(--shell-danger);
}

.dashboard-table__cell--annual.is-empty {
  color: transparent;
}

.dashboard-table__cell--cumulative.is-positive {
  color: #1565c0;
  font-weight: 700;
}

.dashboard-table__cell--cumulative.is-negative {
  color: var(--shell-danger);
  font-weight: 700;
}

.dashboard-table__cell--zero {
  color: #ccc;
}

.dashboard-table__row--annual {
  background: #e3f2fd;
}

.dashboard-table__row--annual .dashboard-table__sticky {
  background: #e3f2fd;
}

.dashboard-month__calendar {
  display: block;
  color: var(--shell-text);
  font-weight: 600;
  line-height: 1.25;
}

.dashboard-month__relative {
  display: block;
  color: #888;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.25;
}

@media (max-width: 560px) {
  .dashboard-section {
    padding: 16px;
  }

  .dashboard-section__header {
    align-items: flex-start;
  }
}
