tr[data-parent] td {
  padding-left: 20px;
  font-style: italic;
  color: #666;
}

/* Espacement et aération du tableau */
.table-fixe-scroll td {
  padding: 12px 10px;
  vertical-align: middle;
  transition: background-color 0.2s ease;
}

.table-fixe-scroll tr:hover td {
  background-color: #f8f9fa !important;
}

/* Actions au survol : masquer par défaut, montrer au hover */
.edit i,
.edit a {
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.edit i:hover {
  transform: scale(1.2);
}

tr:hover .edit i,
tr:hover .edit a {
  opacity: 1;
}

/* --- Sober & Elegant Switch Override --- */
#switch_container {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    background: #fdfdfd;
    border-radius: 50px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
    cursor: default;
}

#switch_container:hover {
    border-color: #ddd;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

#switch_container .form-check-input {
    width: 30px !important;
    height: 16px !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e") !important;
    background-color: #ddd !important;
    border-color: transparent !important;
    transition: background-color 0.2s ease, background-position 0.2s ease;
    cursor: pointer;
    margin: 0 !important;
    box-shadow: none !important;
}

#switch_container .form-check-input:checked {
    background-color: #b10023 !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e") !important;
    box-shadow: 0 2px 8px rgba(177, 0, 35, 0.2) !important;
}

#switch_label {
    font-size: 0.7rem;
    letter-spacing: 0.4px;
    font-weight: 700;
    transition: color 0.2s ease;
    width: 60px; /* Largeur réduite */
    text-align: left;
    margin: 0;
    user-select: none;
}

.btn-xs {
  padding: 0.1rem 0.3rem;
  font-size: 0.65rem;
  line-height: 1;
  border-radius: 0.2rem;
}


.rubrique-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  background-color: #f4f4f4;
}

.rubrique-card {
  width: 140px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.rubrique-image {
  width: 120px;
  height: 180px;
  object-fit: contain;
  margin: 0 auto 10px;
  cursor: pointer;
}

.rubrique-title {
  font-weight: bold;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  margin-bottom: 6px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rubrique-meta {
  font-size: 10px;
  color: #777;
  margin-top: 6px;
}

.rubrique-pdf {
  margin: 5px 0;
  color: red;
  font-size: 20px;
  text-decoration: none;
}


td.pointille-vertical {
  position: relative;
  height: 100px;
  /* ou plus selon ton contenu */
}

td.pointille-vertical::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dotted black;
  transform: translateX(-50%);
}


td.folder:hover {
  background-color: #EEEEEE
}




.table-fixe-scroll-container {
  display: block;
}

.table-fixe-scroll {
  width: 100%;
  border-collapse: collapse;
}

.table-fixe-scroll thead th {
  position: sticky;
  top: 58px;
  z-index: 90;
}


.table-fixe-scroll thead th {
  border-bottom: 2px solid #eee;
  padding: 12px 10px;
  color: #444;
  background-color: #fff;
  text-align: left;
  vertical-align: middle;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Styles pour le Zebra Striping (Bootstrap override) */
.table-striped>tbody>tr:nth-of-type(odd)>* {
  --bs-table-accent-bg: rgba(0, 0, 0, 0.015) !important;
}

/* Nouvel en-tête flexible - Évite les chevauchements */
.documentation-header {
  display: flex;
  align-items: center;
  padding: 0 15px !important;
  background-color: #F4F4F1;
  border: 1px solid #D9D9D9;
  border-radius: 10px;
  height: 48px !important;
  /* Légèrement plus grand pour le confort */
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 -50px 0 0 #FFFFFF;
  /* Masque blanc pour le contenu qui défile au-dessus */
}

#path_line {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  flex: 1;
  height: 32px !important;
  background-color: #FCFCFB;
  border: 1px solid #D9D9D9;
  border-radius: 6px;
  margin: 0 12px;
  overflow: hidden;
  min-width: 150px;
}

#path_line table {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 5px;
}

#header_right_group {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}

#selection,
#reorganise_button {
  display: flex;
  align-items: center;
  gap: 8px;
}

#reorganise_button {
  background-color: #ffc107;
  color: #212529;
  border: 1px solid #dee2e6;
  font-weight: 600;
  height: 32px;
  border-radius: 8px;
  padding: 0 12px;
}

#selection .btn {
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  height: 32px;
  width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#selection .btn:hover {
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.edition-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.edition-actions .btn {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.85rem;
  border-radius: 8px;
  padding: 0 12px;
  transition: all 0.2s ease;
  border: none;
  background-color: #0061f2;
  color: white;
}

.edition-actions .btn:hover {
  background-color: #0052cc;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 97, 242, 0.2);
}

.edition-actions .btn i {
  font-size: 1rem;
}

#directory_parent,
#reload {
  position: static !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  top: auto !important;
}


/* --- Global Search Pill Design --- */
.search-wrapper {
    flex: 1;
    max-width: 450px;
    margin: 0 15px;
}

.search-pill {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50px;
    padding: 2px 6px 2px 14px;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.search-pill:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.search-icon {
    color: #999;
    font-size: 0.9rem;
    margin-right: 10px;
}

.search-pill input {
    border: none !important;
    background: transparent !important;
    outline: none !important;
    flex: 1;
    height: 32px;
    font-size: 0.85rem;
    color: #333;
    padding: 0;
}

.search-pill input::placeholder {
    color: #bbb;
    font-style: italic;
}

.search-btn {
    border: none;
    background: #f8f9fa;
    color: #666;
    width: 28px;
    height: 28px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-btn:hover {
    background: #0d6efd;
    color: #fff;
}

.search-btn i {
    font-size: 0.8rem;
}

.path-folder {
  cursor: pointer;
  border: none;
  height: 24px;
  padding: 0 4px !important;
  color: #191919;
  border-radius: 5px;
  transition: background-color 0.2s ease;
  white-space: nowrap;
  font-size: 0.9rem;
}

.path-folder:hover {
  background-color: rgba(0, 0, 0, 0.08) !important;
}

.path-folder i {
  margin-left: 2px;
  font-size: 0.75rem;
}

/* --- Framework Modern Modal --- */
.modern-modal {
  background: white !important;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex !important;
  flex-direction: column;
  padding: 0 !important;
}

/* Fancybox overrides for modern modals */
.modern-modal-fancybox .fancybox__content {
  padding: 0 !important;
  background: transparent !important;
}

.modern-modal-fancybox .f-button.is-close-btn {
  display: none !important;
}

.modern-table {
  border-collapse: separate;
  border-spacing: 0 8px;
  width: 100%;
}

.modern-table tr {
  background: #f8f9fa;
  border-radius: 8px;
  vertical-align: middle !important;
}

.modern-table td {
  padding: 12px 15px;
  border: none;
  vertical-align: middle !important;
}

/* On force tous les enfants directs à s'aligner au milieu */
.modern-table td > * {
  vertical-align: middle !important;
  display: inline-block;
}
/* --- Documentation Editor Header Enhancements --- */
.orientation-icon {
    font-size: 1.5rem;
    color: #cbd5e0;
    transition: all 0.2s ease;
    cursor: pointer;
}

.orientation-icon:hover {
    color: #4a5568;
}

/* Coloration de l'icône quand le radio associé est coché */
input[name="orientation"]:checked + i {
    color: #4299e1 !important;
}

#titre, #proc_titre {
    transition: all 0.2s ease !important;
    background-color: #fff !important;
    border: 1px solid #e2e8f0 !important;
}

#titre:focus, #proc_titre:focus {
    background-color: #fff !important;
    border-color: #4299e1 !important;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15) !important;
}

.level-up-down:hover {
    color: #2b6cb0 !important;
    transform: scale(1.1);
}

#documentation_index_element, #proc_documentation_index_element {
    max-height: 32px;
    overflow-y: auto;
    font-size: 0.8rem;
}

/* Suppression des bordures par défaut sur les selects du header */
#id_format_papier, #proc_id_format_papier {
    border-color: #e2e8f0;
}

/* Animation douce pour les éléments du header */
#header_bar_std i, #header_bar_proc i {
    transition: all 0.2s ease;
}

.img-preview-table {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid #e0e0e0;
    cursor: zoom-in;
    display: inline-block;
    vertical-align: middle !important;
}

.img-preview-table:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}
