﻿.µ-text-mini {
    font-size:0.750em;
}

.µ-accordion-a{
    color:  rgb(54, 79, 140);
    text-decoration: none;
}

.handsontable th {
    white-space: normal!important;
}

.handsontable td, .handsontable tr, .handsontable th
{
       min-width: 10px;
       overflow: hidden;
       text-overflow: ellipsis;
       white-space: nowrap !important;

}

.table-grey{
    background-color: rgb(71, 101, 128);
}

.cell-realtime-green {
  background-color: #B6F5B6 !important;
}

.htCore td.cell-realtime-green, .htCore td.cell-realtime-green, td.cell-realtime-green {
  background-color: #B6F5B6 !important;
}

.htCore td {
  white-space: normal !important;
  word-break: break-word;
}

#handsontable-changelogs .htCore tr {
  height: 40px !important;
}

#handsontable .htCore td {
  white-space: nowrap !important;
  word-break: normal !important;
}

.ss-main .ss-list {
  max-height: 250px;
  overflow-y: auto !important;
}

.ss-content {
  max-height: 250px !important;
  overflow-y: auto !important;
}

.ss-open-above .ss-content,
.ss-open-below .ss-content {
  max-height: 250px !important;
  overflow-y: auto !important;
}

/* .ss-list {
  max-height: 250px !important;
  overflow-y: auto !important;
} */

/* Dataset Hierarchy Styles with Tree Structure */

/* Container pour toute l'arborescence */
.tree-structure {
  position: relative;
}

/* Conteneur d'objectif (niveau 0) */
.objective-container {
  position: relative;
  margin: 30px 0 20px 0;
}

/* Objective Header (H2) */
.objective-header {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: #fff;
  padding: 15px 20px;
  border-radius: 6px;
  margin: 0;
}

.objective-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
}

/* Conteneur de sous-objectifs (niveau 1) */
.subobjective-container {
  position: relative;
  margin-left: 40px;
  padding-left: 20px;
  border-left: 2px solid #95a5a6;
  margin-top: 20px;
}

.subobjective-container:last-child {
  border-left-color: transparent;
}

.subobjective-container::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 25px;
  width: 20px;
  height: 2px;
  background-color: #95a5a6;
}

.subobjective-container:last-child::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 25px;
  background-color: #95a5a6;
}

/* Subobjective Header (H3) */
.subobjective-header {
  background-color: #3f719a;
  color: #fff;
  padding: 12px 18px;
  border-radius: 5px;
  margin: 0;
  border-left: 4px solid #3498db;
}

.subobjective-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Conteneur de KPI (niveau 2) */
.kpi-container {
  position: relative;
  margin-left: 40px;
  padding-left: 20px;
  border-left: 2px solid #95a5a6;
  margin-top: 15px;
}

.kpi-container:last-child {
  border-left-color: transparent;
}

.kpi-container::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 25px;
  width: 20px;
  height: 2px;
  background-color: #95a5a6;
}

.kpi-container:last-child::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 0;
  width: 2px;
  height: 25px;
  background-color: #95a5a6;
}

/* KPI Header (H4) */
.dataset-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #d4edf4;
  color: #224d64;
  padding: 10px 15px;
  border-radius: 4px;
  margin: 0;
  min-height: 50px;
}

.dataset-title {
  margin: 0;
  font-size: 0.9rem;
  font-family: 'Courier New', Courier, monospace;
  font-weight: 600;
  flex: 1;
}

.dataset-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* Réduction des marges de la navbar */
.navbar .navbar-menu-wrapper {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  height: 70px !important;
}

.navbar .navbar-brand-wrapper {
  height: 70px !important;
  padding: 10px 35px !important;
}

/* Ajustement du padding-top pour correspondre à la nouvelle hauteur de navbar */
.page-body-wrapper {
  padding-top: 70px !important;
  min-height: calc(100vh - 70px) !important;
}

.main-panel {
  min-height: calc(100vh - 70px) !important;
}

.sidebar {
  min-height: calc(100vh - 70px) !important;
}

/* ========================================
   Styles pour le plan d'action
   ======================================== */

/* Permettre le scroll horizontal pour les tableaux avec beaucoup de colonnes */
#handsontable {
  overflow-x: auto !important;
  overflow-y: visible !important;
  max-width: 100%;
  position: relative;
}

/* S'assurer que les en-têtes des colonnes sont lisibles */
#handsontable .handsontable th {
  white-space: normal !important;
  word-wrap: break-word;
  vertical-align: middle;
  padding: 8px 4px;
  min-width: 80px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

/* Container du tableau Handsontable */
#handsontable .ht_master .wtHolder {
  overflow: auto !important;
}

/* Permettre au tableau de dépasser la largeur du conteneur */
#handsontable .handsontable.ht_master {
  max-width: none !important;
}

/* Améliorer l'affichage des colonnes figées */
#handsontable .ht_clone_left {
  box-shadow: 2px 0 4px rgba(0,0,0,0.1);
  z-index: 101;
}

#handsontable .ht_clone_left th,
#handsontable .ht_clone_left td {
  background-color: #fafafa;
}

/* ========================================
   Styles pour le badge KRI
   ======================================== */

.kri-badge {
  display: inline-flex !important;
  align-items: center;
  max-width: 100%;
  transition: transform 0.2s ease;
}

.kri-badge:hover {
  transform: scale(1.02);
}

/* Placeholder pour cellules KRI vides */
#handsontable td span[style*="font-style: italic"] {
  user-select: none;
}

/* ========================================
   Styles pour la modale de sélection KRI
   ======================================== */

#kri-selector-modal .modal-xl {
  max-width: 900px;
}

#kri-selector-tree-container {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
}

/* Améliorer l'apparence de l'arbre en mode selector */
.impact-tree-selector .node-container {
  transition: all 0.2s ease !important;
}

.impact-tree-selector .node-container:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.15) !important;
}

