:root {
  --bg-app: #f1f4f9;
  --bg-sidebar: #252b36;
  --bg-sidebar-accent: #2f3643;
  --bg-surface: #ffffff;
  --bg-surface-muted: #f9fafb;
  --bg-soft: #f3f4f6;
  --bg-overlay: rgba(15, 23, 42, 0.56);
  --border: #d1d5db;
  --border-strong: #c6ccd6;
  --text: #1f2937;
  --text-muted: #6b7280;
  --text-soft: #9ca3af;
  --primary: #0c83ff;
  --primary-strong: #0962bf;
  --primary-soft: rgba(12, 131, 255, 0.1);
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.1);
  --warning: #f58646;
  --warning-soft: rgba(245, 134, 70, 0.14);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.125);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.1);
  --radius-xl: 1rem;
  --radius-lg: 0.5rem;
  --radius-md: 0.375rem;
  --radius-sm: 0.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.limitless-onboarding,
body.limitless-onboarding button,
body.limitless-onboarding input,
body.limitless-onboarding select,
body.limitless-onboarding textarea {
  font-family: "Inter", "Segoe UI", sans-serif;
}

body.limitless-onboarding {
  background: var(--bg-app);
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5715;
  overflow-x: hidden;
  overflow-y: auto;
}

body.limitless-onboarding.ui-modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: var(--primary);
}

.cursor-pointer {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

.cachee {
  display: none !important;
}

body.app-booting #app,
body.app-booting #login {
  display: none !important;
}

body.app-booting #sessionBoot {
  display: grid !important;
}

.application {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: auto;
}

.page-content,
.content-wrapper,
.content-inner {
  min-height: 0;
}

.page-content {
  display: flex;
  flex: 1 1 auto;
  min-height: calc(100vh - 3.5rem);
  overflow: visible;
}

.content-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  min-height: calc(100vh - 3.5rem);
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.content-inner {
  display: block;
  flex: 1 0 auto;
  min-height: calc(100vh - 3.5rem);
  overflow: visible;
  padding-bottom: 2rem;
}

#app,
.application,
.content,
.content-inner,
.content-wrapper {
  overflow: visible;
}

.session-boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--bg-app);
}

.session-boot-card {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  color: var(--text-muted);
}

.entete-page {
  display: grid;
  gap: 6px;
}

.sur-titre {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #64748b;
}

.entete-page h2 {
  font-size: 2rem;
  line-height: 1.2;
}

.sous-titre,
.texte-secondaire {
  color: var(--text-muted);
  line-height: 1.55;
}

.actions-superieures {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vue {
  min-height: auto;
  padding-bottom: 1.5rem;
}

.page-dashboard,
.page-simple,
.page-admin {
  display: grid;
  gap: 22px;
}

.page-cas {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.page-admin {
  grid-template-columns: 320px minmax(0, 1fr);
}

.colonne {
  min-width: 0;
}

.colonne-gauche,
.colonne-centre,
.bloc-contenu,
.ligne-item,
.carte-cas,
.sp-item,
.carte-connexion,
.connexion-panneau,
.panneau-edition,
.panneau-formulaire {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.colonne-gauche,
.colonne-centre,
.bloc-contenu {
  padding: 22px;
}

.colonne-gauche,
.colonne-centre,
.bloc-contenu {
  display: grid;
  gap: 1.25rem;
}

.entete-colonne {
  display: grid;
  gap: 0.375rem;
  margin-bottom: 0.25rem;
}

.entete-colonne h3 {
  font-size: 1.125rem;
  line-height: 1.35;
}

.entete-colonne p {
  color: var(--text-muted);
  line-height: 1.5;
}

.grille-resume {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.grille-visualisations,
.grille-dashboard-secondaire {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tuile {
  padding: 20px;
}

.tuile p,
.tuile-legende {
  color: var(--text-muted);
}

.tuile p {
  font-weight: 700;
  margin-bottom: 12px;
}

.tuile-valeur {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
}

.ligne-item-entete,
.ligne-tags {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.liste-lignes,
.liste-cas {
  display: grid;
  gap: 14px;
}

.ligne-item,
.carte-cas,
.sp-item {
  padding: 18px;
}

.workflow-step-card {
  border-color: #e8edf5;
  background: #fbfcfe;
  position: relative;
  padding: 0.95rem 1rem;
  border-top-width: 3px;
}

.workflow-step-heading {
  min-width: 0;
}

.workflow-step-card .infos-cle {
  margin-top: 0.8rem;
}

.workflow-step-card .champ-cle small {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
}

.workflow-step-card + .workflow-step-card {
  margin-top: 1.6rem;
}

.workflow-step-card + .workflow-step-card::before {
  content: "\2193";
  position: absolute;
  top: -1.2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1.9rem;
  height: 1.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  border: 1px solid #d8e2f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  font-size: 1rem;
  z-index: 1;
}

.workflow-step-title-row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.workflow-step-title-row strong {
  font-size: 1rem;
  line-height: 1.35;
}

.workflow-step-index {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.workflow-step-meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.82rem;
}

.workflow-kind-task {
  border-top-color: #0d6efd;
}

.workflow-kind-form {
  border-top-color: #f59e0b;
}

.workflow-kind-validation {
  border-top-color: #0ea5e9;
}

.workflow-kind-document {
  border-top-color: #10b981;
}

.workflow-kind-signature {
  border-top-color: #ef4444;
}

.workflow-kind-notification {
  border-top-color: #6b7280;
}

.ligne-cliquable {
  cursor: pointer;
}

.ligne-cliquable:hover,
.carte-cas:hover,
.sp-item:hover {
  border-color: rgba(12, 131, 255, 0.28);
  box-shadow: var(--shadow-soft);
}

.carte-cas.selectionnee {
  border-color: rgba(12, 131, 255, 0.46);
  box-shadow: 0 0 0 0.125rem rgba(12, 131, 255, 0.16);
}

.carte-titre {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.carte-titre h4 {
  font-size: 1.08rem;
}

.carte-meta,
.carte-ligne,
.resume-kpi,
.mini-kpi {
  color: var(--text-muted);
}

.carte-ligne {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 8px;
}

.resume-kpi {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mini-kpi,
.pastille {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 0.88rem;
  font-weight: 700;
}

.pastille-prete {
  border-color: rgba(22, 163, 74, 0.24);
  background: var(--success-soft);
  color: #15803d;
}

.pastille-attente {
  border-color: rgba(217, 119, 6, 0.24);
  background: var(--warning-soft);
  color: #c26a00;
}

.pastille-bloquee {
  border-color: rgba(220, 38, 38, 0.2);
  background: var(--danger-soft);
  color: #b42318;
}

.pastille-neutre {
  background: var(--bg-soft);
  color: var(--text-muted);
}

.graphique-barres {
  display: grid;
  gap: 16px;
}

.barre-graphique {
  display: grid;
  gap: 8px;
}

.barre-graphique-entete {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-weight: 700;
}

.barre-graphique-piste,
.barre-progression {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.barre-graphique-remplissage {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.barre-ready {
  background: linear-gradient(135deg, #4ade80, #16a34a);
}

.barre-partially {
  background: linear-gradient(135deg, #facc15, #f59e0b);
}

.barre-waiting {
  background: linear-gradient(135deg, #fb923c, #ea580c);
}

.barre-blocked {
  background: linear-gradient(135deg, #fb7185, #dc2626);
}

.barre-service {
  background: var(--primary);
}

.tableau {
  width: 100%;
  border-collapse: collapse;
}

.table-responsive {
  overflow-x: auto;
}

.tableau tbody tr {
  transition: background-color 0.15s ease;
}

.tableau tbody tr:hover {
  background: rgba(12, 131, 255, 0.03);
}

.tableau th,
.tableau td {
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e8edf5;
}

.tableau th {
  color: var(--text-muted);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0;
}

.zone-filtres,
.zone-filtres-interne {
  display: grid;
  gap: 14px;
}

.ligne-filtres,
.infos-cle,
.infos-cle-2b,
.infos-cle-3,
.formulaire-dossier,
.formulaire-inline {
  display: grid;
  gap: 16px;
}

.ligne-filtres,
.infos-cle-2b {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.champ-cle,
.champ-cle-large {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.champ-cle strong {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}

.champ-cle small,
.libelle-aide {
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.champ-cle-large {
  grid-column: 1 / -1;
}

.champ-cle input:not([type="checkbox"]):not([type="radio"]),
.champ-cle select,
.champ-cle textarea,
.zone-filtres input,
.zone-filtres select,
.zone-filtres-interne input,
.zone-filtres-interne select {
  width: 100%;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 0.625rem 0.875rem;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.champ-cle textarea {
  min-height: 120px;
  resize: vertical;
}

.champ-cle input:not([type="checkbox"]):not([type="radio"]):focus,
.champ-cle select:focus,
.champ-cle textarea:focus,
.zone-filtres input:focus,
.zone-filtres select:focus,
.zone-filtres-interne input:focus,
.zone-filtres-interne select:focus {
  border-color: rgba(12, 131, 255, 0.54);
  box-shadow: 0 0 0 0.125rem rgba(12, 131, 255, 0.25);
}

.libelle-aide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.aide-bulle-declencheur {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid #b5c3da;
  background: #f3f4f6;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0;
}

.bloc-code {
  border-radius: 14px;
  background: #111827;
  color: #e5eefb;
  padding: 14px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
}

.onglets {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.onglets button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.onglets button.actif {
  border-color: rgba(12, 131, 255, 0.26);
  background: var(--primary-soft);
  color: var(--primary);
}

.panneau-edition,
.panneau-formulaire {
  width: min(1120px, calc(100vw - 2rem));
  max-width: 100%;
  height: fit-content;
  min-height: calc(100vh - 5.5rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px;
  margin-left: auto;
  border-radius: var(--radius-lg);
  align-self: flex-start;
}

.fiche-header {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.fiche-header h3 {
  font-size: 1.625rem;
}

.groupe-cartes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.groupe-carte {
  position: relative;
}

.groupe-carte input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.groupe-carte-coche {
  min-height: 100%;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-surface-muted);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.groupe-carte input:checked + .groupe-carte-coche {
  border-color: rgba(12, 131, 255, 0.32);
  background: var(--primary-soft);
}

.groupe-carte-texte strong {
  display: block;
  margin-bottom: 6px;
}

.roles-utilisateur {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sp-explorer {
  border: 1px solid #e8edf5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.documents-meta-table th {
  width: 9rem;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fbfcfe;
}

.documents-meta-table th,
.documents-meta-table td {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.sp-tree-header,
.sp-tree-row,
.sp-folder-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5rem 7rem 5rem;
  gap: 0.5rem;
  align-items: center;
}

.sp-tree-header {
  padding: 0.45rem 0.85rem;
  background: #f8fafc;
  color: var(--text-muted);
  font-size: 0.625rem;
  font-weight: 700;
  border-bottom: 1px solid #e8edf5;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sp-tree-row,
.sp-folder-summary {
  padding: 0.45rem 0.85rem;
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.sp-tree-row:last-child,
.sp-folder-group:last-child > .sp-folder-summary {
  border-bottom: 0;
}

.sp-folder-group {
  border-bottom: 1px solid #eef2f7;
}

.sp-folder-group:last-child {
  border-bottom: 0;
}

.sp-folder-group[open] > .sp-folder-summary {
  background: #f8fafc;
}

.sp-folder-summary {
  list-style: none;
  cursor: pointer;
}

.sp-folder-summary::-webkit-details-marker {
  display: none;
}

.sp-tree-name {
  min-width: 0;
  padding-left: calc(var(--sp-depth, 0) * 0.9rem);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.78125rem;
}

.sp-tree-name a,
.sp-tree-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-tree-type,
.sp-tree-date,
.sp-tree-status {
  color: var(--text-muted);
  font-size: 0.6875rem;
  text-align: right;
}

.sp-tree-children {
  display: block;
  position: relative;
  background: #fcfdff;
}

.sp-tree-children::before {
  content: "";
  position: absolute;
  left: 1.25rem;
  top: 0;
  bottom: 0.4rem;
  width: 1px;
  background: #e8edf5;
}

.sp-empty-state {
  padding: 1rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  background: #f8fafc;
}

.sp-folder-meta {
  color: var(--text-muted);
  font-size: 0.75rem;
}

.sp-folder-summary .ph-caret-right {
  transition: transform 0.18s ease;
}

.sp-folder-group[open] > .sp-folder-summary .ph-caret-right {
  transform: rotate(90deg);
}

.carte-repliable {
  overflow: hidden;
}

.resume-repliable {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.resume-repliable::-webkit-details-marker {
  display: none;
}

.repliable-chevron {
  color: var(--text-soft);
}

.carte-repliable[open] .repliable-chevron {
  transform: rotate(180deg);
}

.section-formulaire {
  display: grid;
  gap: 16px;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-muted);
  border: 1px solid var(--border);
}

.section-formulaire-entete {
  display: grid;
  gap: 6px;
}

.section-formulaire-entete h4 {
  font-size: 1rem;
}

.section-formulaire-entete p {
  color: var(--text-muted);
  line-height: 1.5;
}

.sp-tree,
.sp-children,
.sp-root-files {
  display: grid;
  gap: 12px;
}

.sp-item-head,
.sp-item-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.sp-item-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.sp-children {
  margin-top: 14px;
  padding-top: 14px;
  padding-left: 16px;
  border-top: 1px dashed var(--border);
  border-left: 1px dashed var(--border);
}

.sp-empty,
.sp-empty-state,
.etat-vide-formulaire {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface-muted);
  border: 1px dashed var(--border-strong);
  color: var(--text-muted);
}

.bouton-connexion {
  width: 100%;
}

.limitless-onboarding .navbar .dropdown-menu {
  min-width: 18rem;
}

.limitless-onboarding .sidebar .nav-link span > span {
  display: none;
}

.limitless-onboarding .sidebar .sidebar-section:first-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.limitless-onboarding .sidebar .sidebar-section-body h5 {
  color: rgba(255, 255, 255, 0.95);
}

.limitless-onboarding .sidebar .nav-link .nav-link-subtitle {
  color: rgba(255, 255, 255, 0.55);
}

.limitless-onboarding .sidebar .nav-link {
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.limitless-onboarding .sidebar .nav-item-open > .nav-link,
.limitless-onboarding .sidebar .nav-link.active,
.limitless-onboarding .sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.content-inner {
  min-width: 0;
}

.content {
  padding: 0 0.875rem 0.875rem;
}

.card {
  overflow: hidden;
}

.limitless-section-card {
  border-radius: 0.75rem;
  border-color: #e8edf5;
  box-shadow: var(--shadow-card);
}

.limitless-section-card > .card-header {
  padding: 0.85rem 1rem;
}

.limitless-section-card > .card-body {
  padding: 0.95rem 1rem;
}

.limitless-card-toolbar {
  padding: 0.8rem 1rem;
  border-top: 1px solid #e8edf5;
  border-bottom: 1px solid #e8edf5;
  background: #fbfcfe;
}

.limitless-empty-state {
  padding: 1rem;
  border: 1px dashed #d9e2f1;
  border-radius: 0.75rem;
  background: #fbfcfe;
  color: var(--text-muted);
}

.dashboard-kpi-card {
  border-color: #e8edf5;
  border-radius: 0.75rem;
}

.dashboard-kpi-card .card-body {
  padding: 1rem 1rem 0.95rem;
}

.dashboard-kpi-card .display-5 {
  font-size: 2.65rem;
  line-height: 1;
}

.dashboard-signal-card {
  border-color: #e8edf5;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
}

.dashboard-signal-card .card-body {
  padding: 0.95rem 1rem;
}

.page-dashboard {
  gap: 0.9rem;
}

.page-dashboard > .row {
  --bs-gutter-x: 0.9rem;
  --bs-gutter-y: 0.9rem;
}

.page-dashboard > .row,
.page-identities-limitless,
.page-documents-limitless,
.page-administration-limitless,
.admin-overview-grid,
.new-employee-body > .row {
  margin: 0;
  --bs-gutter-x: 0.9rem;
  --bs-gutter-y: 0.9rem;
}

.page-dashboard > .row > [class*="col-"],
.page-identities-limitless > [class*="col-"],
.page-documents-limitless > [class*="col-"],
.page-administration-limitless > [class*="col-"],
.admin-overview-grid > [class*="col-"],
.new-employee-body > .row > [class*="col-"] {
  padding-left: calc(var(--bs-gutter-x) * 0.5);
  padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.dashboard-kpi-icon {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(12, 131, 255, 0.08);
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.dashboard-list-group .list-group-item {
  padding: 0.7rem 0.9rem;
}

.limitless-dense-table thead th {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  background: #fbfcfe;
  border-bottom-color: #e8edf5;
}

.limitless-dense-table tbody td {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  border-bottom-color: #eef2f7;
}

.document-workflow-table td:last-child,
.document-workflow-table th:last-child {
  text-align: right;
}

.case-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.case-summary-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #e8edf5;
  border-radius: 0.75rem;
  background: #fbfcfe;
}

.case-summary-label {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-summary-value {
  margin-top: 0.45rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.case-summary-kpi {
  margin-top: 0.45rem;
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.case-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
}

.case-fact-item {
  min-width: 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eef2f7;
}

.case-fact-label {
  color: var(--text-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-fact-value {
  margin-top: 0.35rem;
  color: var(--text);
  font-weight: 600;
  line-height: 1.45;
  word-break: break-word;
}

.identite-table td,
.identite-table th {
  white-space: normal;
}

.identite-table td:last-child {
  max-width: 16rem;
}

.identite-table-limitless td,
.identite-table-limitless th {
  vertical-align: top;
}

.identite-table-limitless td:last-child {
  max-width: 14rem;
}

.identite-table-limitless .badge {
  font-weight: 600;
}

.list-group-item.active .text-muted,
.list-group-item.active .fs-sm {
  color: rgba(255,255,255,0.78) !important;
}

.page-administration-limitless > .col-xl-8 > .d-grid,
.page-administration-limitless > .col-xl-4 > .card,
.page-administration-limitless .card {
  overflow: hidden;
}

.page-administration-limitless .collapse.show > .card-body,
.page-administration-limitless .card-body {
  overflow: visible;
}

#notificationsPanel .offcanvas-header {
  padding: 1rem 1.25rem;
}

#notificationsPanel .offcanvas-body {
  padding: 1rem 1.25rem;
}

.page-header {
  margin: 0.75rem 0.875rem 0;
}

.page-header .page-header-content {
  padding: 0.8rem 1rem;
}

.page-header .page-title h4 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.15;
}

.page-header #viewSubtitle {
  margin-top: 0.35rem !important;
}

.page-header .breadcrumb {
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
  margin-bottom: 0;
}

#pageHeaderStats .badge,
#pageHeaderActions .badge {
  font-weight: 600;
}

#pageHeaderActions:empty,
#pageHeaderStats:empty {
  display: none !important;
}

.page-admin-panels {
  min-width: 0;
}

.workflow-admin-shell .list-group-item {
  padding: 0.85rem 1rem;
}

.workflow-overview-card {
  border-color: #e8edf5;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
}

.identite-overview-card {
  border-color: #e8edf5;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-card);
}

.admin-overview-grid {
  margin-bottom: 0;
}

.admin-overview-card {
  border-color: #e8edf5;
  border-radius: 0.75rem;
}

.page-admin-panels > .card,
.page-admin-panels .card,
.page-admin-panels .accordion {
  min-width: 0;
}

.page-admin-panels .accordion-item {
  border: 1px solid #e8edf5;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}

.page-admin-panels .accordion-button {
  padding: 0.95rem 1.1rem;
  align-items: flex-start;
}

.page-admin-panels .accordion-button span {
  min-width: 0;
}

.page-admin-panels .accordion-body {
  padding: 1rem 1.1rem 1.1rem;
  overflow: hidden;
}

.page-administration-limitless .list-group-item {
  padding: 0.9rem 1rem;
}

.page-identities-limitless .card,
.page-documents-limitless .card,
.page-administration-limitless .card {
  border-radius: 0.5rem;
}

.page-identities-limitless .table {
  table-layout: fixed;
}

.page-identities-limitless .table td:first-child,
.page-identities-limitless .table th:first-child {
  width: 24%;
}

.page-identities-limitless .table td:nth-child(2),
.page-identities-limitless .table th:nth-child(2) {
  width: 16%;
}

.page-identities-limitless .table td:nth-child(3),
.page-identities-limitless .table th:nth-child(3) {
  width: 9%;
}

.page-identities-limitless .table td:nth-child(4),
.page-identities-limitless .table th:nth-child(4) {
  width: 8%;
}

.page-identities-limitless .table td:last-child,
.page-identities-limitless .table th:last-child {
  width: 43%;
}

.page-identities-limitless .table td,
.page-identities-limitless .table th,
.page-documents-limitless .table td,
.page-documents-limitless .table th {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}

.page-documents-limitless .border.rounded {
  border-color: #e8edf5 !important;
  background: #f8fafc;
}

.documents-explorer .accordion-item {
  border: 1px solid #e8edf5;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: none;
}

.documents-explorer .accordion-item + .accordion-item {
  margin-top: 0.875rem;
}

.documents-explorer .accordion-button {
  padding: 0.875rem 1rem;
  background: #fff;
  box-shadow: none !important;
}

.documents-explorer .accordion-button:not(.collapsed) {
  color: inherit;
  background: #fff;
}

.documents-explorer .accordion-button::after {
  margin-left: 1rem;
}

.sp-folder-table td,
.sp-folder-table th {
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.sp-folder-table td:first-child {
  width: 70%;
}

.sp-folder-table td:nth-child(2) {
  width: 18%;
}

.sp-folder-table td:last-child {
  width: 12%;
}

.document-workflow-table td:first-child {
  min-width: 18rem;
}

.document-workflow-table td,
.document-workflow-table th {
  font-size: 0.875rem;
}

.documents-explorer .sp-explorer {
  border-color: #e8edf5;
}

.documents-explorer .sp-tree-header {
  position: sticky;
  top: 0;
  z-index: 1;
}

.documents-explorer .sp-tree-row:hover,
.documents-explorer .sp-folder-summary:hover {
  background: #f8fbff;
}

.documents-explorer .sp-tree-status .badge,
.documents-explorer .sp-folder-summary .badge {
  font-size: 0.6875rem;
}

.identity-groups-list .list-group-item {
  padding: 0.75rem 1rem;
}

.identity-group-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.identity-group-row > :last-child {
  min-width: 0;
  text-align: right;
}

.admin-inline-stat {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 2.875rem;
  align-items: center;
}

.page-documents-limitless .card-header .badge,
.page-identities-limitless .card-header .badge,
.page-administration-limitless .card-header .badge {
  font-weight: 600;
}

.page-administration-limitless .card-header + .card-body,
.page-administration-limitless .card-header + .list-group {
  border-top: 1px solid #e8edf5;
}

.limitless-onboarding .accordion-button {
  box-shadow: none !important;
}

.limitless-onboarding .accordion-button:not(.collapsed) {
  color: inherit;
  background-color: transparent;
}

.nav-tabs-responsive .nav-tabs {
  margin-bottom: 0;
}

.nav-tabs-responsive .nav-link {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.6rem 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-tabs-responsive .nav-link.active {
  border-color: rgba(12, 131, 255, 0.22);
  background: rgba(12, 131, 255, 0.08);
  color: var(--primary);
}

.sur-titre {
  margin-bottom: 0.35rem;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-shell {
  min-height: 100vh;
  background: #252b36;
}

.login-shell .navbar {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-content-area {
  min-height: calc(100vh - 4rem);
  padding: 2rem 1rem;
}

.login-hero-title {
  color: #fff;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
  max-width: 10ch;
}

.login-hero-copy {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.login-hero-list li + li {
  margin-top: 0.45rem;
}

.login-shell .card {
  border-radius: 1rem;
}

.login-shell .content {
  overflow: visible;
}

.login-form {
  width: 100%;
}

.login-form h2,
#login h2 {
  font-size: 3.25rem;
  line-height: 1;
}

.admin-action-bar,
.form-footer-sticky {
  position: static;
  background: #fff;
  border-top: 1px solid #e8edf5;
  padding-top: 1rem;
}

.form-footer-sticky {
  margin-top: auto;
  padding-bottom: 0.25rem;
}

.modal-new-employee {
  width: min(1380px, calc(100vw - 1rem)) !important;
  z-index: 1055;
  border-left: 1px solid #e8edf5;
  box-shadow: -18px 0 48px rgba(15, 23, 42, 0.16);
}

.modal-new-employee .offcanvas-header {
  padding: 0.85rem 1rem;
  align-items: flex-start;
}

.modal-new-employee .offcanvas-header.border-top {
  align-items: center;
}

.modal-new-employee .offcanvas-body,
.new-employee-body {
  padding: 0.95rem;
  background: #f8fafc;
  overflow-y: auto;
}

.modal-new-employee .card {
  margin-bottom: 0;
}

.compact-form-card .card-header {
  padding: 0.85rem 1rem;
}

.compact-form-card .card-body {
  padding: 0.95rem 1rem;
}

.compact-form-card .form-label {
  margin-bottom: 0.35rem;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.compact-form-card .form-control,
.compact-form-card .form-select {
  min-height: 2.45rem;
  padding: 0.55rem 0.75rem;
}

.group-choice-card {
  display: block;
  height: 100%;
  border: 1px solid #e8edf5;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.8rem !important;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.group-choice-card:hover {
  border-color: rgba(12, 131, 255, 0.3);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.group-choice-card .form-check-input:checked + span {
  color: var(--primary);
}

.group-choice-card .form-check-input:checked ~ .group-choice-content {
  border-color: rgba(12, 131, 255, 0.36);
}

.group-choice-content {
  min-width: 0;
}

.group-choice-content .fw-semibold {
  font-size: 0.95rem;
  line-height: 1.25;
}

.group-choice-content .text-muted {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  line-height: 1.35;
}

.onboarding-modal-shell {
  background: rgba(15, 23, 42, 0.28);
}

.onboarding-modal-shell .modal-dialog {
  margin: 1rem 1rem 1rem auto;
  max-width: min(1180px, calc(100vw - 2rem));
}

.onboarding-modal-shell .modal-content {
  min-height: calc(100vh - 2rem);
  border-radius: 1rem;
  overflow: hidden;
}

.onboarding-modal-shell .modal-header {
  padding: 1rem 1.25rem;
  border-bottom-color: #e8edf5;
}

.onboarding-modal-shell .modal-body {
  padding: 1.25rem;
  background: #f8fafc;
}

.onboarding-modal-shell .card {
  overflow: visible;
}

.overlay-main-column {
  min-width: 0;
}

@media (max-width: 991.98px) {
  .login-shell {
    background: #252b36;
  }

  .case-summary-grid,
  .case-facts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .page-header .page-title h4 {
    font-size: 1.55rem;
  }

  .login-hero-title {
    font-size: 2.45rem;
    max-width: none;
  }

  .login-content-area {
    align-items: flex-start !important;
    padding: 1.25rem 0.75rem 2rem;
  }

  .onboarding-modal-shell .modal-dialog {
    margin: 0;
    max-width: 100vw;
  }

  .onboarding-modal-shell .modal-content {
    min-height: 100vh;
    border-radius: 0;
  }

  .onboarding-modal-shell .modal-body {
    padding: 1rem;
  }

  .content {
    padding: 0 0.5rem 0.5rem;
  }

  .page-header {
    margin: 0.5rem 0.5rem 0;
  }

  .page-header .page-header-content {
    padding: 0.75rem 0.85rem;
  }
}


@media (max-width: 1024px) {
  .infos-cle,
  .infos-cle-2b,
  .infos-cle-3,
  .ligne-filtres {
    grid-template-columns: 1fr;
  }

  .modal-new-employee {
    width: 100vw !important;
  }
}

@media (max-width: 720px) {
  .colonne-gauche,
  .colonne-centre,
  .bloc-contenu,
  .carte-connexion,
  .connexion-panneau {
    border-radius: var(--radius-lg);
  }

  .connexion-mise-en-scene {
    padding: 1rem;
    min-height: 100vh;
    grid-template-columns: 1fr;
  }

  .connexion-colonne-marque {
    display: none;
  }

  .carte-connexion {
    padding: 24px;
  }
}
