/* Remplit tout le recuadro utile (sous menubar, à droite du rail Contenu) */
#gestion-fichiers-modal.trazabilidad-assign-modal {
  z-index: 21010 !important;
  box-sizing: border-box;
  position: fixed !important;
  top: var(--bimtraza-menubar-h, 38px) !important;
  left: var(--bimtraza-shell-width, 148px) !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  overflow: hidden;
}

#gestion-fichiers-modal.trazabilidad-assign-modal.hidden {
  display: none !important;
}

#gestion-fichiers-modal > .trazabilidad-assign-modal-backdrop {
  position: absolute;
  inset: 0;
}

#gestion-fichiers-modal .gestion-fichiers-dialog {
  position: relative !important;
  z-index: 1;
  flex: 1 1 auto !important;
  align-self: stretch !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

#gestion-fichiers-modal .gestion-fichiers-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 14px 14px 10px;
  border-bottom: 1px solid #b9c9dc;
}

#gestion-fichiers-modal .gestion-fichiers-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

#gestion-fichiers-obra-meta {
  flex: 1 1 220px;
  margin: 2px 12px 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#gestion-fichiers-modal #btn-gestion-fichiers-close.btn.small {
  flex: 0 0 auto;
  width: auto !important;
  margin: 0;
}

.gestion-fichiers-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 0;
  flex-shrink: 0;
}

.gestion-fichiers-tab-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 8px;
}

.gestion-fichiers-tab-actions .gf-tab-action.btn.small {
  width: auto !important;
  min-width: 128px;
  max-width: 148px;
  margin: 0 !important;
  padding: 6px 10px !important;
  border: 1px solid #38bdf8;
  background: #f0f9ff;
  color: #0c4a6e;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  text-align: center;
}

.gestion-fichiers-tab-actions .gf-tab-action.btn.small:hover {
  background: #e0f2fe;
}

.gestion-fichiers-tab {
  border: 1px solid #b9c9dc;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.gestion-fichiers-tab.is-active {
  background: #0ea5e9;
  border-color: #0284c7;
  color: #fff;
}

.gestion-fichiers-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 14px 8px;
  flex-shrink: 0;
  min-height: 20px;
}

.gestion-fichiers-status {
  margin: 0;
  font-size: 12px;
  color: #5c6b7d;
}

.gestion-fichiers-status.is-ok { color: #0f766e; }
.gestion-fichiers-status.is-err { color: #b91c1c; }

.gestion-fichiers-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 14px 12px;
}

.gestion-fichiers-folder {
  margin: 0 0 12px;
}

.gestion-fichiers-table {
  width: max-content;
  max-width: 100%;
  min-width: 0;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 12px;
  background: #fff;
}

.gestion-fichiers-table col.gf-col-code { width: 108px; }
.gestion-fichiers-table col.gf-col-doc { width: 220px; }
.gestion-fichiers-table col.gf-col-fmt { width: 56px; }
.gestion-fichiers-table col.gf-col-stat { width: 72px; }
.gestion-fichiers-table col.gf-col-act { width: 110px; }

.gestion-fichiers-table th.gf-th-select,
.gestion-fichiers-table td.gf-td-select {
  width: 52px;
  min-width: 52px;
  max-width: 58px;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  padding: 4px 2px;
}

.gestion-fichiers-table th.gf-th-select {
  background: #e0f2fe;
}

.gestion-fichiers-table .gf-select-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.gestion-fichiers-table .gf-filter-selected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  line-height: 0;
}

.gestion-fichiers-table .gf-filter-selected:hover {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

.gestion-fichiers-table .gf-filter-selected.is-on {
  border-color: #0369a1;
  background: #0284c7;
  color: #fff;
}

.gestion-fichiers-table .gf-row-check {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
  accent-color: #0284c7;
  vertical-align: middle;
}

.gestion-fichiers-table .gf-check-all {
  width: 17px;
  height: 17px;
}

.gestion-fichiers-table tr.is-selected td {
  background: #f0f9ff;
}

.gestion-fichiers-table tr.is-selected .gf-folder-row td {
  background: #f1f5f9;
}

.gf-table-revs th.gf-th-rev,
.gf-table-revs td.gf-td-rev {
  text-align: center;
  width: 1%;
  min-width: 52px;
  max-width: 96px;
  white-space: nowrap;
  padding: 4px 6px;
}

.gf-rev-pair {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
  min-height: 28px;
}

.gf-rev-pair.is-empty {
  color: #cbd5e1;
}

.gf-th-rev,
.gf-td-rev {
  min-width: 56px !important;
}

.gf-rev-chip {
  display: inline-block;
  border: 1px solid #0284c7;
  background: #e0f2fe;
  color: #0c4a6e;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}

.gf-rev-chip.gf-rev-gen.is-current {
  background: #0ea5e9;
  border-color: #0369a1;
  color: #fff;
}

.gf-rev-chip.gf-rev-gen.is-old {
  background: #e0f2fe;
  border-color: #38bdf8;
  color: #075985;
}

.gf-rev-chip.gf-rev-signed {
  min-width: 22px;
  padding: 3px 6px;
  border-color: #16a34a;
  background: #dcfce7;
  color: #166534;
}

.gf-rev-chip.gf-rev-signed.has-file {
  background: #16a34a;
  border-color: #15803d;
  color: #fff;
}

.gf-rev-chip.gf-rev-signed.is-empty {
  background: #f0fdf4;
  border-style: dashed;
  color: #16a34a;
}

.gf-rev-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.gf-rev-chip:not(:disabled):hover {
  filter: brightness(0.95);
}

.gestion-fichiers-badge.is-signe { background: #86efac; }
.gestion-fichiers-badge.is-genere { background: #bae6fd; }

/* ——— Éditeur modèle interne ——— */
.gf-editor {
  position: fixed;
  inset: 0;
  z-index: 22050;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.gf-editor.hidden { display: none !important; }
.gf-editor-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.gf-editor-dialog {
  position: relative;
  z-index: 1;
  margin: 18px;
  width: min(920px, 100%);
  max-height: calc(100vh - 36px);
  background: #f8fafc;
  border-radius: 10px;
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gf-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #cbd5e1;
  background: #fff;
  flex-shrink: 0;
}
.gf-editor-toolbar h2 {
  margin: 0;
  font-size: 15px;
}
.gf-editor-rev {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
}
.gf-editor-toolbar-actions {
  display: flex;
  gap: 8px;
}
.gf-editor-toolbar-actions .btn.small {
  width: auto !important;
}
.gf-editor-scroll {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px;
}
.gf-editor-status {
  margin: 0;
  padding: 8px 14px;
  font-size: 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.gf-editor-status.is-ok { color: #0f766e; }
.gf-editor-status.is-err { color: #b91c1c; }

.gf-doc-page {
  background: #fff;
  border: 1px solid #cbd5e1;
  padding: 18px 20px 24px;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.gf-doc-brand {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid #0ea5e9;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.gf-doc-logo {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.04em;
  color: #0f172a;
}
.gf-doc-meta-line {
  font-size: 11px;
  color: #334155;
  margin-top: 2px;
}
.gf-doc-scai-org {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.gf-doc-main-title {
  margin: 8px 0 4px;
  padding: 10px 12px;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  font-size: 18px;
  font-weight: 700;
}
.gf-doc-code-line {
  font-weight: 700;
  margin-bottom: 8px;
  color: #0c4a6e;
}
.gf-doc-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
  margin: 10px 0 14px;
}
.gf-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
}
.gf-field input,
.gf-field textarea,
.gf-field select,
.gf-doc-table input {
  font: 12px/1.35 "Segoe UI", system-ui, sans-serif;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 5px 7px;
  color: #0f172a;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.gf-doc-section {
  margin: 16px 0 6px;
  font-size: 13px;
  color: #0f172a;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}
.gf-doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 6px 0 10px;
}
.gf-doc-table th,
.gf-doc-table td {
  border: 1px solid #94a3b8;
  padding: 5px 6px;
  text-align: left;
  vertical-align: middle;
}
.gf-doc-table th {
  background: #e0f2fe;
  font-weight: 700;
}
.gf-doc-text {
  font-size: 12px;
  line-height: 1.45;
  color: #334155;
}
.gf-doc-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid #cbd5e1;
  font-size: 10px;
  color: #64748b;
}

/* ——— Visionneuse PDF lecture seule ——— */
.gf-pdf-viewer {
  position: fixed;
  inset: 0;
  z-index: 22100;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.gf-pdf-viewer.hidden { display: none !important; }
.gf-pdf-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}
.gf-pdf-viewer-dialog {
  position: relative;
  z-index: 1;
  margin: 16px;
  width: min(960px, 100%);
  max-height: calc(100vh - 32px);
  background: #0b1220;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.gf-pdf-viewer-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.gf-pdf-viewer-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 420px;
  border: 0;
  background: #525659;
}
.gf-pdf-obsolete-mark {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gf-pdf-obsolete-mark.hidden {
  display: none !important;
}
.gf-pdf-obsolete-mark span {
  display: block;
  font-family: Helvetica, Arial, sans-serif;
  font-size: clamp(34px, 7vw, 64px);
  font-weight: 800;
  letter-spacing: 0.03em;
  color: rgba(185, 28, 28, 0.4);
  white-space: nowrap;
  transform: rotate(-35deg);
  user-select: none;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.35);
}
.gf-pdf-viewer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid #cbd5e1;
  flex-shrink: 0;
}
.gf-pdf-viewer-head h2 {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}
.gf-pdf-viewer-actions {
  display: flex;
  gap: 8px;
}
.gf-pdf-viewer-actions .btn.small {
  width: auto !important;
}
.gf-pdf-viewer-status {
  margin: 0;
  padding: 8px 14px;
  font-size: 12px;
  background: #fff;
  color: #475569;
  border-top: 1px solid #e2e8f0;
}
.gf-pdf-viewer-status.is-err { color: #b91c1c; }

.gf-dossier-choice {
  position: fixed;
  inset: 0;
  z-index: 23000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.gf-dossier-choice.hidden { display: none !important; }
.gf-dossier-choice-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.gf-dossier-choice-dialog {
  position: relative;
  z-index: 1;
  width: min(420px, 94vw);
  padding: 18px 18px 14px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #94a3b8;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}
.gf-dossier-choice-dialog h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #0f172a;
}
.gf-dossier-choice-hint {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
}
.gf-dossier-choice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gf-dossier-choice-actions .btn.small {
  min-width: 0;
  flex: 1 1 auto;
}
.gf-dossier-choice-both {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  color: #0c4a6e !important;
  font-weight: 700 !important;
}
.gf-dossier-choice-cancel {
  flex: 0 0 100% !important;
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #334155 !important;
}

@media (max-width: 720px) {
  .gf-doc-grid2 { grid-template-columns: 1fr; }
  .gf-doc-brand { flex-direction: column; }
}

.gestion-fichiers-table th,
.gestion-fichiers-table td {
  border: 1px solid #d5deea;
  padding: 4px 6px;
  text-align: left;
  vertical-align: middle;
}

.gestion-fichiers-table th {
  background: #eef3f8;
  font-weight: 700;
}

.gestion-fichiers-table .gf-folder-row td {
  background: #f1f5f9;
  font-weight: 700;
  padding: 6px 8px;
}

/* Code — compacto */
.gestion-fichiers-table .gf-th-code,
.gestion-fichiers-table .gf-td-code {
  width: 1%;
  white-space: nowrap;
  padding-right: 8px;
}

/* Document — sin espacio vacío grande */
.gestion-fichiers-table .gf-th-doc,
.gestion-fichiers-table .gf-td-doc {
  width: auto;
  max-width: 260px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}

/* Statut — compacto */
.gestion-fichiers-table .gf-th-stat,
.gestion-fichiers-table .gf-td-stat {
  width: 1%;
  white-space: nowrap;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}

/* Actions — pegado al statut */
.gestion-fichiers-table .gf-th-act,
.gestion-fichiers-table td.gestion-fichiers-actions {
  width: 1%;
  white-space: nowrap;
  padding-left: 6px;
  padding-right: 6px;
}

.gestion-fichiers-actions {
  white-space: nowrap;
  text-align: left;
}

.gestion-fichiers-actions .btn.small {
  width: auto !important;
  min-width: 58px;
  margin: 0 0 0 3px;
  padding: 3px 5px;
  font-size: 11px;
}

/* Ligne non cochée : boutons clairement bloqués */
.gestion-fichiers-actions.is-locked,
.gestion-fichiers-table tr:not(.is-selected) .gestion-fichiers-actions {
  opacity: 0.55;
}

.gestion-fichiers-actions .btn.small:disabled,
.gestion-fichiers-actions .btn.small.is-locked,
.gestion-fichiers-actions .btn.small[aria-disabled="true"] {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  opacity: 1;
  filter: grayscale(0.35);
}

.gestion-fichiers-table tr.is-selected .gestion-fichiers-actions:not(.is-locked) {
  opacity: 1;
}

.gestion-fichiers-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #e2e8f0;
}

.gestion-fichiers-badge.is-genere { background: #bae6fd; }
.gestion-fichiers-badge.is-en_revue { background: #fde68a; }
.gestion-fichiers-badge.is-valide { background: #bbf7d0; }

.gestion-fichiers-soon {
  padding: 24px 8px;
  color: #5c6b7d;
}

.gestion-fichiers-hint,
.gestion-fichiers-register-note {
  margin: 0 0 10px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.gestion-fichiers-register h3 {
  margin: 8px 0;
  font-size: 13px;
}

.gestion-fichiers-register-table {
  width: 100%;
  max-width: none;
}

.gestion-fichiers-table tr.gf-rev-current td {
  background: #f0fdf4;
}

.gestion-fichiers-table tr.gf-rev-old td {
  color: #64748b;
}

.gf-rev-tag {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #15803d;
  text-transform: uppercase;
}

.gestion-fichiers-table col.gf-col-act { width: 110px; }

.gestion-fichiers-table th.gf-th-collapse,
.gestion-fichiers-table td.gf-td-collapse {
  width: 26px;
  min-width: 26px;
  max-width: 28px;
  padding: 2px !important;
  text-align: center;
  vertical-align: middle;
  background: #e2e8f0;
}
.gf-collapse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid #64748b;
  border-radius: 3px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.gf-collapse-btn:hover {
  background: #e0f2fe;
  border-color: #0284c7;
  color: #0369a1;
}
.gestion-fichiers-table.is-dates-off .gf-th-date,
.gestion-fichiers-table.is-dates-off .gf-td-date {
  display: none;
}
.gf-gantt-head {
  display: flex;
  align-items: stretch;
  min-height: 22px;
}
.gf-gantt-head .gf-collapse-btn {
  flex: 0 0 18px;
  margin: 2px;
  align-self: center;
}
.gf-gantt-head .gf-gantt-weeks {
  flex: 1 1 auto;
  min-width: 0;
}
.gestion-fichiers-table.is-gantt-off th.gf-th-gantt,
.gestion-fichiers-table.is-gantt-off td.gf-td-gantt {
  min-width: 28px;
  width: 28px;
  max-width: 32px;
}
.gestion-fichiers-table.is-gantt-off .gf-gantt-weeks,
.gestion-fichiers-table.is-gantt-off .gf-gantt-lane {
  display: none;
}
.gestion-fichiers-table.is-gantt-off .gf-gantt-head {
  justify-content: center;
}

.gestion-fichiers-table th.gf-th-date,
.gestion-fichiers-table td.gf-td-date {
  min-width: 102px;
  width: 102px;
  max-width: 110px;
  padding: 2px 3px !important;
  text-align: center;
  vertical-align: middle;
}
.gestion-fichiers-table th.gf-th-date {
  font-size: 12px;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.gf-date-input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 0 2px 0 3px;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  font-size: 10px !important;
  line-height: 16px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
  background: #fff;
}
.gf-date-input::-webkit-datetime-edit,
.gf-date-input::-webkit-datetime-edit-fields-wrapper,
.gf-date-input::-webkit-datetime-edit-text,
.gf-date-input::-webkit-datetime-edit-month-field,
.gf-date-input::-webkit-datetime-edit-day-field,
.gf-date-input::-webkit-datetime-edit-year-field {
  padding: 0;
  margin: 0;
  font-size: 10px !important;
  line-height: 1.1;
}
.gf-date-input::-webkit-calendar-picker-indicator {
  width: 11px;
  height: 11px;
  padding: 0;
  margin: 0 0 0 2px;
  flex-shrink: 0;
  cursor: pointer;
}
.gf-date-auto {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.gestion-fichiers-table td.gf-td-date.is-auto {
  background: #f8fafc;
}
.gestion-fichiers-table th.gf-th-gantt,
.gestion-fichiers-table td.gf-td-gantt {
  min-width: 280px;
  width: 320px;
  padding: 0 !important;
  vertical-align: middle;
}
.gf-gantt-weeks,
.gf-gantt-lane {
  --gf-weeks: 4;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--gf-weeks), minmax(0, 1fr));
  min-height: 28px;
  background-color: #eef2f7;
  background-image: linear-gradient(to right, rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: calc(100% / var(--gf-weeks)) 100%;
}
.gf-gantt-weeks {
  min-height: 22px;
  background-color: #1e3a5f;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  color: #f8fafc;
  font-size: 10px;
  font-weight: 700;
}
.gf-gantt-weeks span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}
.gf-gantt-lane {
  height: 34px;
  overflow: hidden;
}
.gestion-fichiers-table tr:nth-child(even) .gf-gantt-lane {
  background-color: #e2e8f0;
}
.gf-gantt-bar {
  position: absolute;
  left: 0;
  height: 7px;
  min-width: 4px;
  border-radius: 3px;
  box-sizing: border-box;
  pointer-events: none;
}
.gf-gantt-bar.is-plan {
  top: 4px;
  background: linear-gradient(180deg, #fecaca 0%, #f87171 100%);
  box-shadow: 0 0 0 1px #dc2626;
}
.gf-gantt-bar.is-real,
.gf-gantt-bar.is-real-in {
  top: 13px;
  background: linear-gradient(180deg, #ccff00 0%, #39ff14 45%, #00e676 100%);
  border: 1px solid #adff2f;
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.75);
}
.gf-gantt-bar.is-real-out {
  top: 13px;
  background: linear-gradient(180deg, #ffe066 0%, #ffb300 42%, #ff6f00 100%);
  border: 1px solid #ff9800;
  box-shadow: 0 0 6px rgba(255, 179, 0, 0.75);
}
.gf-gantt-bar.is-sign {
  top: 23px;
  background: linear-gradient(180deg, #93c5fd 0%, #2563eb 100%);
  box-shadow: 0 0 0 1px #1d4ed8;
}
