/* dashboard-cu3.css — Styles spécifiques au panneau CU3 (sous-onglets + veille mensuelle) */

/* ── Sous-onglets CU3 ── */
.cu3-subtabs {
  display: flex;
  flex-shrink: 0;
  border-bottom: 1px solid var(--bd);
  background: var(--wh);
  padding: 0 6px;
}

.cu3-subtabs button {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--tx2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  font-family: var(--font);
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}

.cu3-subtabs button:hover {
  color: var(--pri);
}

.cu3-subtabs button.on {
  color: var(--pri);
  border-bottom-color: var(--pri);
}

/* ── Sous-panneaux ── */
.cu3-subpanel {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.cu3-subpanel.on {
  display: flex;
}

/* ── Barre d'outils veille mensuelle ── */
.cu3-vm-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 16px;
  background: var(--pbg);
  border-bottom: 1px solid var(--pbd);
  flex-shrink: 0;
  min-height: 36px;
}

.cu3-vm-period {
  font-size: 11px;
  font-weight: 600;
  color: var(--tx2);
  text-transform: uppercase;
  letter-spacing: .6px;
}

/* Bouton Refresh (discret, icône + texte) */
.cu3-vm-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--wh);
  color: var(--pri);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--pbd);
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font);
  transition: background .15s, color .15s, border-color .15s;
}

.cu3-vm-refresh:hover {
  background: var(--pri);
  color: var(--wh);
  border-color: var(--pri);
}

.cu3-vm-refresh:disabled {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Zone de défilement du contenu mensuel ── */
.cu3-vm-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  min-height: 0;
}

/* ── Loader (3 points animés) ── */
.cu3-vm-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 24px;
  color: var(--tx2);
  font-size: 13px;
}

.cu3-vm-loader-dot {
  width: 7px;
  height: 7px;
  background: var(--pri);
  border-radius: 50%;
  animation: cu3-pulse 1.2s ease-in-out infinite;
}

.cu3-vm-loader-dot:nth-child(2) { animation-delay: .2s; }
.cu3-vm-loader-dot:nth-child(3) { animation-delay: .4s; }

@keyframes cu3-pulse {
  0%, 80%, 100% { transform: scale(.65); opacity: .35; }
  40%           { transform: scale(1);   opacity: 1;   }
}

/* ── Message "aucune veille disponible" ── */
.cu3-vm-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--tx2);
  font-size: 13px;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto;
}
