/* Dashboard rollback: restore a quiet, simple operational dashboard. */
body[data-route="/"] .dashboard-page {
  gap: 16px !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

body[data-route="/"] .dashboard-page > .panel:first-child,
body[data-route="/"] .dashboard-hero {
  display: none !important;
}

body[data-route="/"] .premium-page-brief {
  display: none !important;
}

body[data-route="/"] .dashboard-page .panel {
  border: 1px solid #d8e0eb !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  gap: 10px !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card,
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn {
  min-height: 96px !important;
  border: 1px solid #d8e0eb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
  transform: none !important;
  position: relative !important;
  overflow: hidden !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card::after,
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn::after {
  display: block !important;
  content: "" !important;
  position: absolute !important;
  inset: auto 14px 0 14px !important;
  height: 3px !important;
  border-radius: 999px 999px 0 0 !important;
  background: #2f7d73 !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card:nth-child(1),
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn:nth-child(1) {
  border-color: #efc7cf !important;
  background: linear-gradient(180deg, #fff8f9, #ffffff) !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card:nth-child(1)::after,
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn:nth-child(1)::after {
  background: #c2415a !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card:nth-child(2),
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn:nth-child(2) {
  border-color: #efc7cf !important;
  background: linear-gradient(180deg, #fff8f9, #ffffff) !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card:nth-child(2)::after,
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn:nth-child(2)::after {
  background: #c2415a !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card:nth-child(3),
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn:nth-child(3) {
  border-color: #ead29b !important;
  background: linear-gradient(180deg, #fffaf0, #ffffff) !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card:nth-child(3)::after,
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn:nth-child(3)::after {
  background: #b7791f !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card:nth-child(4),
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn:nth-child(4) {
  border-color: #bfd8f0 !important;
  background: linear-gradient(180deg, #f4f9ff, #ffffff) !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card:nth-child(4)::after,
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn:nth-child(4)::after {
  background: #2f6da8 !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card:nth-child(5),
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn:nth-child(5) {
  border-color: #bfe3db !important;
  background: linear-gradient(180deg, #f3fbf8, #ffffff) !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card:nth-child(5)::after,
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn:nth-child(5)::after {
  background: #2f7d73 !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card p,
body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi-card-btn p {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
}

body[data-route="/"] .dashboard-page .dashboard-kpi-grid .kpi {
  color: #0f172a !important;
  font-size: 34px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

body[data-route="/"] .aging-card-row {
  gap: 8px !important;
}

body[data-route="/"] .aging-card,
body[data-route="/"] .notice-aging-card {
  min-height: 74px !important;
  border: 1px solid #d8e0eb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #111827 !important;
  box-shadow: none !important;
}

body[data-route="/"] .aging-bucket-0_7,
body[data-route="/"] .notice-aging-0_5 {
  border-color: #c4dfd4 !important;
  background: linear-gradient(180deg, #f5fbf8, #ffffff) !important;
}

body[data-route="/"] .aging-bucket-8_15,
body[data-route="/"] .notice-aging-6_10 {
  border-color: #ead9a8 !important;
  background: linear-gradient(180deg, #fffaf0, #ffffff) !important;
}

body[data-route="/"] .aging-bucket-16_30,
body[data-route="/"] .notice-aging-11_20,
body[data-route="/"] .notice-aging-21_30 {
  border-color: #edc5ad !important;
  background: linear-gradient(180deg, #fff7f1, #ffffff) !important;
}

body[data-route="/"] .aging-bucket-30_plus,
body[data-route="/"] .notice-aging-30_plus {
  border-color: #efc7cf !important;
  background: linear-gradient(180deg, #fff7f8, #ffffff) !important;
}

body[data-route="/"] .aging-card strong,
body[data-route="/"] .notice-aging-card strong {
  color: #0f172a !important;
  font-size: 30px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

body[data-route="/"] .aging-bucket-0_7 strong,
body[data-route="/"] .notice-aging-0_5 strong {
  color: #24715f !important;
}

body[data-route="/"] .aging-bucket-8_15 strong,
body[data-route="/"] .notice-aging-6_10 strong {
  color: #9a6a16 !important;
}

body[data-route="/"] .aging-bucket-16_30 strong,
body[data-route="/"] .notice-aging-11_20 strong,
body[data-route="/"] .notice-aging-21_30 strong {
  color: #a95522 !important;
}

body[data-route="/"] .aging-bucket-30_plus strong,
body[data-route="/"] .notice-aging-30_plus strong {
  color: #b4233c !important;
}

body[data-route="/"] .aging-card span,
body[data-route="/"] .notice-aging-card span {
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
}

body[data-route="/"] .dashboard-section-head,
body[data-route="/"] .dashboard-wide-section h3,
body[data-route="/"] .panel > h3 {
  margin-bottom: 10px !important;
}

body[data-route="/"] .dashboard-section-head h3,
body[data-route="/"] .dashboard-wide-section h3,
body[data-route="/"] .panel > h3 {
  color: #111827 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

body[data-route="/"] .matrix-wrap {
  border: 1px solid #d8e0eb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  overflow: auto !important;
}

body[data-route="/"] .matrix-wrap table {
  min-width: 780px !important;
  border-collapse: collapse !important;
}

body[data-route="/"] .matrix-wrap table th,
body[data-route="/"] .matrix-wrap table td {
  border-bottom: 1px solid #edf1f6 !important;
  background: #ffffff !important;
  color: #111827 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

body[data-route="/"] .matrix-wrap table th {
  background: #f6f8fb !important;
  color: #475569 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}

body[data-route="/"] .matrix-wrap table th:first-child,
body[data-route="/"] .matrix-wrap table td:first-child,
body[data-route="/"] .matrix-wrap table th:nth-child(2),
body[data-route="/"] .matrix-wrap table td:nth-child(2) {
  position: static !important;
  left: auto !important;
  z-index: auto !important;
  min-width: 0 !important;
  box-shadow: none !important;
}

body[data-route="/"] .matrix-wrap table td:not(:first-child):not(:nth-child(2)),
body[data-route="/"] .matrix-wrap table th:not(:first-child):not(:nth-child(2)) {
  text-align: center !important;
}

body[data-route="/"] .matrix-count-btn,
body[data-route="/"] .matrix-total-btn {
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #111827 !important;
  box-shadow: none !important;
  font: inherit !important;
  cursor: default !important;
}

body[data-route="/"] .dashboard-simple-workload-table th:first-child,
body[data-route="/"] .dashboard-simple-workload-table td:first-child {
  text-align: left !important;
  font-weight: 700 !important;
}

body[data-route="/"] .dashboard-simple-workload-table th:not(:first-child),
body[data-route="/"] .dashboard-simple-workload-table td:not(:first-child) {
  text-align: center !important;
}

body[data-route="/"] .dashboard-simple-workload-table tfoot th,
body[data-route="/"] .dashboard-simple-workload-table tfoot td {
  border-top: 1px solid #cfd8e6 !important;
  background: #f8fafc !important;
}

body[data-route="/"] .premium-matrix-total-row {
  display: none !important;
}

body[data-route="/"] .dashboard-page table th {
  background: #f6f8fb !important;
  color: #475569 !important;
}

body[data-route="/"] .dashboard-page tbody tr:nth-child(even) {
  background: #fafbfc !important;
}

body[data-route="/"] .dashboard-page tbody tr:hover {
  background: #f3f6fa !important;
}

@media (max-width: 1100px) {
  body[data-route="/"] .dashboard-page .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 820px) {
  body[data-route="/"] .dashboard-page .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
