.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.5vw, 24px);
}

/* ======== BANDEAU : KPI (grille large) | NOTIFS ======== */

.dashboard-mid-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, min(400px, 28vw));
  gap: clamp(14px, 1.8vw, 22px);
  align-items: stretch;
}

.dashboard-mid-band > .dashboard-main-column,
.dashboard-mid-band > .dashboard-side-rail {
  min-height: 0;
}

/* Colonne gauche : KPI puis pilotage — plus de vide sous les KPI */
.dashboard-main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.5vw, 20px);
}

/* 4 colonnes = cartes plus larges qu’avant la colonne étroite */
.dashboard-kpis-wide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-content: start;
}

.dashboard-main-column .dashboard-kpi-card {
  min-height: 0;
  padding: 16px 14px;
  gap: 10px;
}

.dashboard-main-column .dashboard-kpi-card h3 {
  font-size: 13px;
  line-height: 1.25;
}

.dashboard-main-column .dashboard-kpi-card p {
  font-size: 22px;
}

.dashboard-main-column .dashboard-kpi-foot {
  font-size: 11px;
  line-height: 1.35;
}

/* Synthèse dépenses année (tableau de bord) */
.dash-year-expenses {
  padding: 20px 20px 18px;
}

.dash-year-expenses-head {
  align-items: flex-start;
}

.dash-year-expenses-badge {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
}

.dash-year-expenses-ca {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.22) 0%, rgba(41, 128, 185, 0.12) 100%);
  border: 1px solid rgba(93, 173, 226, 0.45);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(52, 152, 219, 0.12);
}

.dash-year-expenses-ca-lab {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.01em;
  max-width: min(100%, 22rem);
}

.dash-year-expenses-ca-val {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 14px rgba(52, 152, 219, 0.35);
  line-height: 1.15;
}

.dash-year-expenses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.dash-year-expenses-cell {
  padding: 12px 12px 11px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 0;
}

.dash-year-expenses-cell-lab {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.52);
}

.dash-year-expenses-cell-val {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.dash-year-expenses-total {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid rgba(236, 72, 153, 0.42);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 12px 32px rgba(236, 72, 153, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.dash-year-expenses-total-lab {
  font-size: 17px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.02em;
  line-height: 1.25;
  max-width: min(100%, 20rem);
}

.dash-year-expenses-total-val {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-shadow: 0 1px 16px rgba(236, 72, 153, 0.45);
}

/* Graphiques en bas de page (sous le hub) */
.dashboard-graphs-bottom {
  min-width: 0;
}

.dashboard-graphs-bottom .dashboard-graphs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.dashboard-graphs-bottom .dashboard-graph-card {
  height: auto;
  min-height: 360px;
  max-height: 520px;
}

.dashboard-side-rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  align-self: stretch;
  height: 100%;
}

.dashboard-side-rail .dash-side-card-fixed {
  flex-shrink: 0;
}

.dashboard-side-rail .card.dash-panel {
  padding: 16px 14px 14px;
}

.dashboard-side-rail .dash-panel-title {
  font-size: 16px;
  line-height: 1.25;
}

.dashboard-side-rail .dash-panel-desc {
  font-size: 12px;
}

.dashboard-side-rail .dash-expense-kpis {
  margin-top: 0;
}

.dashboard-side-rail .dash-expense-kpis-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dashboard-side-rail .dash-expense-kpi-val {
  font-size: 20px;
}

.dashboard-side-rail .dash-alert-list {
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
}

.dashboard-side-rail .dash-mini-list {
  max-height: 200px;
}

.dashboard-side-rail .dash-mini-main,
.dashboard-side-rail .dash-mini-sub {
  word-break: break-word;
}

.dash-side-card {
  min-height: 0;
}

.dash-side-card-head {
  margin-bottom: 12px;
}

.dash-side-card-head .dash-panel-title {
  margin-top: 6px;
}

.dash-side-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(251, 191, 36, 0.95);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.dash-side-badge-priority {
  color: rgba(236, 72, 153, 0.95);
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(236, 72, 153, 0.3);
}

.dash-side-badge-task {
  color: rgba(147, 197, 253, 0.95);
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
}

.dash-side-badge-declaration {
  color: rgba(251, 146, 60, 0.98);
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.35);
}

.dashboard-side-rail .dash-panel-declaration {
  flex: 1 1 0;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dash-panel-declaration-head {
  flex-shrink: 0;
}

#dashDeclarationList.dash-declaration-scroll,
.dash-declaration-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
}

.dash-declaration-empty {
  font-size: 12px;
  line-height: 1.45;
}

.dash-declaration-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 10px;
  margin-bottom: 8px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.15s ease, transform 0.15s ease;
}

.dash-declaration-row:last-child {
  margin-bottom: 0;
}

.dash-declaration-row:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.dash-declaration-row--warn {
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(251, 146, 60, 0.08);
}

.dash-declaration-row--crit {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(239, 68, 68, 0.12);
}

.dash-declaration-pill {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.25);
  color: rgba(255, 255, 255, 0.92);
}

.dash-declaration-row--warn .dash-declaration-pill {
  color: rgba(254, 215, 170, 0.98);
}

.dash-declaration-row--crit .dash-declaration-pill {
  color: rgba(254, 202, 202, 0.98);
}

.dash-declaration-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.dash-declaration-sub {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
}

.dash-declaration-limit {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  font-variant-numeric: tabular-nums;
}

.dash-side-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 14px;
  box-sizing: border-box;
}

.dashboard-side-rail .dash-mini-row-stack {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.dashboard-side-rail .dash-mini-row-stack .dash-mini-amt {
  align-self: flex-end;
}

/* Ancienne grille KPI pleine largeur — conservée si réutilisée ailleurs */
.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.dashboard-kpi-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 168px;
}

.dashboard-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-kpi-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-kpi-card p {
  margin: 0;
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.dashboard-kpi-foot {
  margin-top: auto;
  font-size: 12px;
  color: rgba(255,255,255,0.50);
  line-height: 1.5;
}

.progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(236,72,153,0.9), rgba(139,92,246,0.9));
  border-radius: 999px;
  width: 0%;
  transition: width 0.35s ease;
}

/* ======== GRAPHS ======== */

.dashboard-graphs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}

/* Graphiques : 2 en haut (CA + statut), bénéfice en pleine largeur dessous */
.dashboard-graphs-split {
  grid-template-columns: 1.22fr 1fr;
  grid-template-rows: auto auto;
  margin-top: 0;
}

.dashboard-graphs-split .dashboard-graph-tall {
  min-height: 360px;
  height: auto;
}

.dashboard-graphs-split .dashboard-graph-span-full {
  grid-column: 1 / -1;
  min-height: 300px;
  height: auto;
}

.dashboard-graph-card {
  padding: 20px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  height: 580px;
  min-height: 580px;
  overflow: hidden;
}

.dashboard-graphs-split .dashboard-graph-card {
  min-height: 0;
}

.dashboard-graph-large {
  min-width: 0;
}

.dashboard-graph-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.dashboard-graph-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  text-transform: none;
}

.dashboard-graph-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.58);
  line-height: 1.5;
}

.dashboard-chart-wrap {
  flex: 1;
  position: relative;
  min-height: 0;
}

.dashboard-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* Donut un peu plus gros comme avant */
#statusChart {
  max-width: 100% !important;
  max-height: 100% !important;
}

/* neutralise les anciens blocs si jamais */
.graph-box,
.graph-container,
.graphs-row,
.chart-wrapper {
  all: unset;
}

/* ======== RESPONSIVE ======== */

@media (max-width: 1400px) {
  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-graphs {
    grid-template-columns: 1fr;
  }

  .dashboard-graphs-split {
    grid-template-columns: 1fr;
  }

  .dashboard-graphs-split .dashboard-graph-span-full {
    grid-column: 1;
  }

  .dashboard-kpis-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Bandeau du bas : 3 graphiques sur une ligne tant que la place suffit */
  .dashboard-graphs-bottom .dashboard-graphs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-graph-card {
    height: 480px;
    min-height: 480px;
  }

  .dashboard-graphs-split .dashboard-graph-card {
    height: auto;
    min-height: 400px;
  }

  .dashboard-graphs-split .dashboard-graph-span-full {
    min-height: 360px;
  }

  .dashboard-graphs-bottom .dashboard-graph-card {
    height: auto;
    min-height: 320px;
    max-height: 480px;
  }
}

@media (max-width: 1100px) {
  .dashboard-graphs-bottom .dashboard-graphs {
    grid-template-columns: 1fr;
  }
}

/* Laptop / HD étroit : pile KPI + colonne droite avant le passage mobile (≤1200px) */
@media (max-width: 1440px) {
  .dashboard-mid-band {
    grid-template-columns: 1fr;
  }

  .dashboard-side-rail {
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .dashboard-side-rail {
    grid-template-columns: 1fr;
  }

  .dashboard-kpis-wide {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .dashboard-kpi-card p {
    font-size: 26px;
  }

  .dashboard-graph-card {
    height: 380px;
    min-height: 380px;
  }
}

.dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-year-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dashboard-year-toolbar-lab {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  white-space: nowrap;
}

.dashboard-year-select {
  min-width: 88px;
  height: 36px;
  padding: 0 28px 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' fill-opacity='0.75' d='M1.4 0L6 4.6 10.6 0 12 1.4l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.dashboard-year-select:focus {
  outline: 2px solid rgba(236, 72, 153, 0.55);
  outline-offset: 2px;
}

.dashboard-year-select option {
  color: #111;
  background: #fff;
}

.dashboard-task-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-task-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: all 0.2s ease;
}

.dashboard-task-btn:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.22);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.dashboard-task-btn:visited,
.dashboard-task-btn:focus,
.dashboard-task-btn:active {
  color: #ffffff;
  text-decoration: none;
}

.dashboard-task-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(20, 150, 255, 0.35);
  color: #ffffff !important;
}

.dashboard-task-btn:visited,
.dashboard-task-btn:active,
.dashboard-task-btn:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

/* ======== CENTRE DE PILOTAGE ======== */

.dash-hub {
  margin-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dash-hub-in-band {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-hub-grid-tight {
  gap: 14px;
}

/* Cartes pilotage : hauteurs voisines pour aspect “grille carrée” */
.dash-hub-in-band .dash-panel {
  min-height: 168px;
}

.dash-hub-grid {
  display: grid;
  gap: 18px;
}

.dash-hub-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dash-hub-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-panel {
  padding: 20px 20px 18px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dash-panel-accent {
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: 0 12px 36px rgba(236, 72, 153, 0.12);
}

.dash-panel-warn {
  border-color: rgba(251, 191, 36, 0.25);
}

.dash-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dash-panel-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.dash-panel-desc {
  margin: 4px 0 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.45;
}

.dash-panel-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.dash-panel-foot {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: auto;
}

.dash-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dash-chip strong {
  font-weight: 700;
  color: #fff;
}

.dash-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dash-bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 2fr) auto;
  align-items: center;
  gap: 10px;
}

.dash-bar-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-bar-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.85), rgba(139, 92, 246, 0.75));
  transition: width 0.4s ease;
}

.dash-bar-fill-ca {
  background: linear-gradient(90deg, rgba(52, 152, 219, 0.75), rgba(46, 204, 113, 0.65));
}

.dash-bar-num {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  min-width: 2ch;
  text-align: right;
}

.dash-bar-num-money {
  font-variant-numeric: tabular-nums;
  min-width: 88px;
}

.dash-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 220px;
  overflow-y: auto;
}

.dash-mini-list-tight {
  max-height: 160px;
}

.dash-mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-mini-list .dash-mini-row:last-child {
  border-bottom: none;
}

.dash-mini-row-stack {
  align-items: flex-start;
}

.dash-mini-stack {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-mini-row-feux {
  align-items: flex-start;
}

.dash-mini-row-feux > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dash-mini-date {
  font-size: 11px;
  font-weight: 700;
  color: rgba(236, 72, 153, 0.95);
  letter-spacing: 0.02em;
}

.dash-mini-main {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

a.dash-mini-main-link {
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

a.dash-mini-main-link:hover {
  text-decoration: underline;
}

.dash-mini-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.dash-mini-amt {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.dash-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  flex-shrink: 0;
}

.dash-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  flex-shrink: 0;
}

.dash-empty {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  padding: 8px 0;
}

.dash-expense-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.dash-expense-kpi-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.dash-expense-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.dash-doc-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 4px;
}

.dash-doc-kpi {
  padding: 12px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.dash-doc-kpi-label {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

.dash-doc-kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.dash-big-stat {
  margin: 8px 0 0 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
}

.dash-big-stat-unit {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.dash-panel-artificiers .dash-arti-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.dash-arti-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.dash-arti-hero-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.dash-arti-hero-label {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
}

.dash-arti-quals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dash-arti-chip {
  border-radius: 14px;
  padding: 12px 10px 12px 14px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.dash-arti-chip::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px 0 0 4px;
}

.dash-arti-chip--n1::before {
  background: linear-gradient(180deg, #6ee7b7, #059669);
}

.dash-arti-chip--n2::before {
  background: linear-gradient(180deg, #c4b5fd, #7c3aed);
}

.dash-arti-chip--nf::before {
  background: linear-gradient(180deg, #fdba74, #ea580c);
}

.dash-arti-chip-val {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.dash-arti-chip-lab {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.52);
  line-height: 1.35;
}

.dash-arti-bar {
  display: flex;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-arti-bar-seg {
  height: 100%;
  min-width: 0;
  transition: width 0.4s ease;
}

.dash-arti-bar-seg--n1 {
  background: linear-gradient(90deg, #059669, #34d399);
}

.dash-arti-bar-seg--n2 {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.dash-arti-bar-seg--nf {
  background: linear-gradient(90deg, #c2410c, #fb923c);
}

.dash-arti-extras {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 2px;
}

.dash-arti-extra {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.dash-arti-extra-ico {
  font-size: 15px;
  opacity: 0.75;
  line-height: 1.4;
}

.dash-arti-extra-val {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.dash-arti-extra-lab {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.48);
  margin-top: 2px;
}

.dash-arti-roles-line {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
}

.dash-arti-extra--dept {
  align-items: flex-start;
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.1),
    rgba(139, 92, 246, 0.08)
  );
  border-color: rgba(236, 72, 153, 0.22);
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.08);
}

.dash-arti-extra--dept .dash-arti-extra-ico {
  opacity: 1;
  filter: drop-shadow(0 0 10px rgba(236, 72, 153, 0.35));
}

.dash-arti-dept-block {
  flex: 1;
  min-width: 0;
}

.dash-arti-extra--dept .dash-arti-dept-heading.dash-arti-extra-lab {
  display: block;
  margin-bottom: 8px;
  margin-top: 0;
  color: rgba(251, 182, 206, 0.95);
  font-weight: 600;
}

.dash-arti-dept-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-arti-dept-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(236, 72, 153, 0.22),
    rgba(139, 92, 246, 0.16)
  );
  border: 1px solid rgba(236, 72, 153, 0.38);
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.12);
}

.dash-arti-dept-num {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
  min-width: 1.2em;
  text-align: center;
  text-shadow: 0 0 20px rgba(236, 72, 153, 0.45);
}

.dash-arti-dept-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(252, 211, 232, 0.95);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .dash-arti-quals {
    grid-template-columns: 1fr;
  }
}

.dash-task-summary {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.dash-task-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}

.dash-inline-stat {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.dash-inline-stat strong {
  color: #fff;
  font-weight: 700;
}

.dash-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.dash-tag {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.dash-tag:hover {
  background: rgba(236, 72, 153, 0.18);
  border-color: rgba(236, 72, 153, 0.35);
  color: #fff;
  text-decoration: none;
}

.dash-alert-list {
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.dash-alert-list a {
  color: rgba(236, 72, 153, 0.95);
  font-weight: 600;
  text-decoration: none;
}

.dash-alert-list a:hover {
  text-decoration: underline;
}

.dash-modal-table-wrap {
  overflow-x: auto;
}

.dash-modal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
}

.dash-modal-table th,
.dash-modal-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dash-modal-table th {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-td-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

@media (max-width: 1200px) {
  .dash-hub-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .dash-hub-grid-2 {
    grid-template-columns: 1fr;
  }

  .dash-doc-kpis {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .dash-bar-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .dash-bar-num {
    text-align: left;
  }
}