/* ============================================================================
   HRMP — Design system « Vantage »
   Surcouche chargée APRÈS le CSS Sneat : elle rethème l'ensemble de
   l'application (couleurs, arrondis, ombres, composants) sans toucher à la
   mécanique du layout ni aux fonctionnalités.
   ========================================================================== */

/* ------------------------------------------- Polices auto-hébergées -- */
/* Quicksand — police de toute l'application, auto-hébergée en WOFF2
   (15 Ko par graisse, contre 77 Ko en TTF). font-display: swap pour que
   le texte s'affiche tout de suite avec la police système, puis bascule. */
@font-face {
  font-family: 'Quicksand'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('fonts/quicksand-latin-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/quicksand-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('fonts/quicksand-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('fonts/quicksand-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/quicksand-latin-700.woff2') format('woff2');
}

/* Boxicons : redéclaration woff2 uniquement avec font-display block —
   les glyphes restent invisibles (pas de carrés ☐) le court instant du
   chargement ; la police est de plus préchargée par les layouts. */
@font-face {
  font-family: 'boxicons'; font-style: normal; font-weight: normal; font-display: block;
  src: url('../admin-assets/vendor/fonts/boxicons/boxicons.woff2') format('woff2');
}

:root {
  --vt-primary: #2563eb;
  --vt-primary-dark: #1d4ed8;
  --vt-primary-soft: #e8efff;
  --vt-bg: #eef2f8;
  --vt-card: #ffffff;
  --vt-text: #1e2a3b;
  --vt-muted: #6b7787;
  --vt-border: #e7ecf3;
  --vt-success: #166534;
  --vt-success-soft: #e5f7ec;
  --vt-warning: #92400e;
  --vt-warning-soft: #fdf0d9;
  --vt-danger: #b91c1c;
  --vt-danger-soft: #fde8e8;
  --vt-info: #0e7490;
  --vt-info-soft: #e0f4fa;
  --vt-radius-lg: 16px;
  --vt-radius: 12px;
  --vt-radius-sm: 10px;
  --vt-shadow: 0 8px 24px rgba(15, 42, 90, 0.06);
  --vt-shadow-hover: 0 12px 32px rgba(15, 42, 90, 0.1);
}

/* ---------------------------------------------------------------- Base -- */
body {
  font-family: 'Quicksand', system-ui, -apple-system, 'Segoe UI', sans-serif !important;
  background: var(--vt-bg) !important;
  color: var(--vt-text) !important;
}
h1, h2, h3, h4, h5, h6, .card-title, .fw-bold, .fw-semibold {
  color: var(--vt-text);
  font-family: inherit;
}
a { color: var(--vt-primary); }
a:hover { color: var(--vt-primary-dark); }
.text-primary { color: var(--vt-primary) !important; }
.text-muted { color: var(--vt-muted) !important; }
.bg-primary { background-color: var(--vt-primary) !important; }

/* ------------------------------------------------------------- Sidebar -- */
.bg-menu-theme {
  background: var(--vt-card) !important;
  box-shadow: 4px 0 24px rgba(15, 42, 90, 0.04) !important;
}
.layout-menu { border-right: 1px solid var(--vt-border); }
.app-brand.demo { height: 72px; padding-left: 22px; }
.vt-logo-dot {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--vt-primary);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px; box-shadow: 0 6px 14px rgba(37, 99, 235, .35);
}
/* Marque : image reelle du logo, a la place de l ancien badge a glyphe. */
.vt-logo-mark {
  width: 32px; height: 34px; flex-shrink: 0;
  object-fit: contain;
}
.vt-aside-logo { width: 200px; max-width: 55%; height: auto; display: block; margin: -14px 0 10px; }

.vt-brand-text {
  font-weight: 700; letter-spacing: 2.5px; font-size: 17px;
  color: var(--vt-primary); margin-left: 10px;
}
.bg-menu-theme .menu-header { margin: 18px 0 4px; }
.bg-menu-theme .menu-header-text {
  color: var(--vt-muted) !important; font-weight: 600;
  letter-spacing: .8px; font-size: 12px;
}
.bg-menu-theme .menu-inner > .menu-item { margin: 2px 12px; }
.bg-menu-theme .menu-inner > .menu-item > .menu-link {
  border-radius: var(--vt-radius); color: #5a6b85;
  font-weight: 500; padding-top: 9px; padding-bottom: 9px;
}
.bg-menu-theme .menu-inner > .menu-item > .menu-link .menu-icon { color: #9aa7ba; }
.bg-menu-theme .menu-inner > .menu-item > .menu-link:hover {
  background: var(--vt-primary-soft); color: var(--vt-primary);
}
.bg-menu-theme .menu-inner > .menu-item > .menu-link:hover .menu-icon { color: var(--vt-primary); }
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle) {
  background: var(--vt-primary) !important; color: #fff !important;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .35);
}
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle) .menu-icon { color: #fff !important; }
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link.menu-toggle {
  background: var(--vt-primary-soft) !important; color: var(--vt-primary) !important;
}
.bg-menu-theme .menu-inner > .menu-item.active > .menu-link.menu-toggle .menu-icon { color: var(--vt-primary) !important; }
.bg-menu-theme .menu-sub .menu-item { margin: 1px 0; }
.bg-menu-theme .menu-sub .menu-link {
  border-radius: var(--vt-radius-sm); color: #5a6b85; font-size: 0.92rem;
}
.bg-menu-theme .menu-sub .menu-item.active > .menu-link {
  background: var(--vt-primary-soft) !important; color: var(--vt-primary) !important;
  font-weight: 600;
}
.bg-menu-theme .menu-sub .menu-link:hover { background: #f2f6fc; color: var(--vt-primary); }
.bg-menu-theme .menu-item.active:before { display: none !important; }

/* -------------------------------------------------------------- Navbar -- */
.layout-navbar,
.bg-navbar-theme {
  background: var(--vt-card) !important;
  box-shadow: var(--vt-shadow) !important;
  border-radius: var(--vt-radius-lg) !important;
}
.layout-navbar.navbar-detached { border: 0 !important; }
.vt-welcome {
  font-size: 11.5px; letter-spacing: 1.2px; color: var(--vt-muted);
  font-weight: 600; line-height: 1.2;
}
.vt-username { font-size: 14px; color: var(--vt-text); line-height: 1.25; }
.vt-page-title { font-weight: 700; font-size: 17px; color: var(--vt-text); }
.avatar img { border: 2px solid var(--vt-primary-soft); }

/* --------------------------------------------------------------- Cards -- */
.card {
  border: 0 !important;
  border-radius: var(--vt-radius-lg) !important;
  box-shadow: var(--vt-shadow) !important;
  transition: box-shadow .18s ease;
}
.card[style*="cursor:pointer"]:hover, a > .card:hover { box-shadow: var(--vt-shadow-hover) !important; }
.card-header {
  background: transparent !important;
  border-bottom: 1px solid var(--vt-border) !important;
  font-weight: 700; color: var(--vt-text);
  border-radius: var(--vt-radius-lg) var(--vt-radius-lg) 0 0 !important;
}
/* Cartes accolées (fiche de paie) : conserver leurs arrondis dédiés */
.card[style*="border-radius: 10px 10px 0px 0px"] { border-radius: var(--vt-radius-lg) var(--vt-radius-lg) 0 0 !important; }
.card[style*="border-radius: 0px 0px 10px 10px"] { border-radius: 0 0 var(--vt-radius-lg) var(--vt-radius-lg) !important; }

/* Pastille d'icône des cartes statistiques */
.vt-stat-icon {
  width: 46px; height: 46px; border-radius: 13px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 12px;
  background: var(--vt-primary-soft); color: var(--vt-primary);
}
.vt-stat-icon.green { background: var(--vt-success-soft); color: var(--vt-success); }
.vt-stat-icon.amber { background: var(--vt-warning-soft); color: var(--vt-warning); }
.vt-stat-icon.red { background: var(--vt-danger-soft); color: var(--vt-danger); }
.vt-stat-icon.cyan { background: var(--vt-info-soft); color: var(--vt-info); }
.vt-stat-label { color: var(--vt-muted); font-size: 13px; font-weight: 500; }
.vt-stat-value { font-size: 30px; font-weight: 700; color: var(--vt-text); line-height: 1.15; }

/* ------------------------------------------------------------- Buttons -- */
/* Les libellés de bouton ne se coupent jamais au milieu : le bouton
   s'ajuste à son texte. Combiné aux barres d'outils qui peuvent passer à
   la ligne (flex-wrap), cela évite tout débordement/troncature. */
.btn { border-radius: var(--vt-radius-sm) !important; font-weight: 600; white-space: nowrap; }
.btn-primary {
  background: var(--vt-primary) !important; border-color: var(--vt-primary) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .3) !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--vt-primary-dark) !important; border-color: var(--vt-primary-dark) !important;
  color: #fff !important;
}
/* Boutons « contour » : le thème de base remplit le fond en couleur pleine au
   focus et à l'activation (texte blanc), alors que la charte garde ici un texte
   coloré : sans ces règles, après un clic le texte rouge restait sur fond rouge. */
.btn-outline-primary { color: var(--vt-primary) !important; border-color: #bcd0f7 !important; background: transparent !important; }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active,
.btn-check:active + .btn-outline-primary, .show > .btn-outline-primary.dropdown-toggle {
  background: var(--vt-primary-soft) !important; color: var(--vt-primary) !important;
  border-color: var(--vt-primary) !important;
}
.btn-outline-primary:focus-visible { box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .25) !important; }
.btn-warning {
  background: var(--vt-warning-soft) !important; border-color: var(--vt-warning-soft) !important;
  color: var(--vt-warning) !important; box-shadow: none !important;
}
.btn-warning:hover { background: #f8e3bb !important; border-color: #f8e3bb !important; }
.btn-danger {
  background: var(--vt-danger) !important; border-color: var(--vt-danger) !important;
  color: #fff !important;
  box-shadow: 0 6px 14px rgba(220, 38, 38, .25) !important;
}
.btn-outline-danger { color: var(--vt-danger) !important; border-color: #f3c2c2 !important; background: transparent !important; }
.btn-outline-danger:hover, .btn-outline-danger:focus, .btn-outline-danger:active, .btn-outline-danger.active,
.btn-check:active + .btn-outline-danger, .show > .btn-outline-danger.dropdown-toggle {
  background: var(--vt-danger-soft) !important; color: var(--vt-danger) !important;
  border-color: var(--vt-danger) !important;
}
.btn-outline-danger:focus-visible { box-shadow: 0 0 0 .2rem rgba(185, 28, 28, .25) !important; }
.btn-success { background: var(--vt-success) !important; border-color: var(--vt-success) !important; color: #fff !important; }
.btn-secondary, .btn-outline-secondary {
  color: #5a6b85 !important; border-color: var(--vt-border) !important; background: #f4f7fb !important;
  box-shadow: none !important;
}
.btn-secondary:hover, .btn-outline-secondary:hover { background: #e9eef6 !important; }
.btn-icon { border-radius: var(--vt-radius-sm) !important; }

/* « Add User » / « Ajouter un gardien » : pilule d'action */
.nav-pills .nav-link.active, .nav-pills button.nav-link.active {
  background: var(--vt-primary) !important; border-radius: var(--vt-radius-sm);
  box-shadow: 0 6px 14px rgba(37, 99, 235, .3); font-weight: 600;
}

/* --------------------------------------------------------------- Forms -- */
.form-control, .form-select, .form-control-sm, .form-select-sm,
input[type="month"], input[type="date"], input[type="text"], input[type="email"],
input[type="password"], input[type="number"], input[type="search"], textarea, select {
  border-radius: var(--vt-radius-sm) !important;
  border: 1px solid #dfe6ef !important;
  color: var(--vt-text) !important;
  background-color: #fff !important;
}
.form-control:focus, .form-select:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--vt-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15) !important;
  outline: none;
}
.form-label, .col-form-label { font-weight: 600; color: #47556b; font-size: 13px; text-transform: none; }
/* Masque le bouton natif de révélation du mot de passe (Edge/IE) : l'app a
   déjà son propre bouton œil, celui du navigateur faisait doublon. */
input::-ms-reveal, input::-ms-clear { display: none; }
.input-group-text { border-radius: 0 var(--vt-radius-sm) var(--vt-radius-sm) 0 !important; border-color: #dfe6ef !important; }
.form-check-input:checked { background-color: var(--vt-primary) !important; border-color: var(--vt-primary) !important; }

/* -------------------------------------------------------------- Tables -- */
.table { color: var(--vt-text); }
.table thead th, table.dataTable thead th {
  text-transform: none !important; /* neutralise le uppercase forcé par Sneat (.table th) */
  font-size: 12px; letter-spacing: .2px;
  color: var(--vt-muted) !important; font-weight: 700;
  border-bottom: 1px solid var(--vt-border) !important;
  background: transparent;
}
.table tbody td { border-color: #f0f4f9 !important; vertical-align: middle; }
.table-bordered, .table-bordered td, .table-bordered th { border-color: #eef2f8 !important; }
.table-hover tbody tr:hover, table.dataTable tbody tr:hover { background: #f7faff; }
.table-active, .table-active th { background: #f2f6fc !important; }

/* ------------------------------------------------------------ DataTables -- */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid #dfe6ef !important; border-radius: var(--vt-radius-sm) !important;
  padding: 6px 12px; background: #fff;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: var(--vt-radius-sm) !important; border: 0 !important;
  color: #5a6b85 !important; background: transparent !important; margin: 0 2px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--vt-primary) !important; color: #fff !important;
  box-shadow: 0 4px 10px rgba(37, 99, 235, .3);
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--vt-primary-soft) !important; color: var(--vt-primary) !important;
}
.dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter { color: var(--vt-muted) !important; font-size: 13px; }
table.dataTable.no-footer { border-bottom: 1px solid var(--vt-border) !important; }

/* -------------------------------------------------------------- Badges -- */
.badge { border-radius: 999px !important; font-weight: 600; padding: 5px 11px; }
.badge.bg-success { background: var(--vt-success-soft) !important; color: var(--vt-success) !important; }
.badge.bg-danger { background: var(--vt-danger-soft) !important; color: var(--vt-danger) !important; }
.badge.bg-warning { background: var(--vt-warning-soft) !important; color: var(--vt-warning) !important; }
.badge.bg-secondary { background: #eef1f6 !important; color: #5a6b85 !important; }
.badge.bg-label-success { background: var(--vt-success-soft) !important; color: var(--vt-success) !important; }
.badge.bg-label-secondary { background: #eef1f6 !important; color: #5a6b85 !important; }
.badge.bg-label-primary { background: var(--vt-primary-soft) !important; color: var(--vt-primary) !important; }

/* Statuts historiques affichés via .alert-* inline (listes de congés) */
span.alert-success, td .alert-success {
  background: var(--vt-success-soft); color: var(--vt-success);
  border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 12.5px; border: 0;
}
span.alert-danger, td .alert-danger {
  background: var(--vt-danger-soft); color: var(--vt-danger);
  border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 12.5px; border: 0;
}
span.alert-warning, td .alert-warning {
  background: var(--vt-warning-soft); color: var(--vt-warning);
  border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 12.5px; border: 0;
}

/* -------------------------------------------------------------- Modals -- */
.modal-content {
  border: 0 !important; border-radius: var(--vt-radius-lg) !important;
  box-shadow: 0 24px 64px rgba(15, 42, 90, .18) !important;
}
.modal-header { border-bottom: 1px solid var(--vt-border) !important; }
.modal-footer { border-top: 1px solid var(--vt-border) !important; }
.modal-title { font-weight: 700; }

/* ---------------------------------------------------------- SweetAlert -- */
.swal2-popup { border-radius: 20px !important; font-family: inherit !important; }
.swal2-title { color: var(--vt-text) !important; font-weight: 700 !important; }
.swal2-styled.swal2-confirm {
  background: var(--vt-primary) !important; border-radius: var(--vt-radius-sm) !important;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .3) !important;
}
.swal2-styled.swal2-cancel { border-radius: var(--vt-radius-sm) !important; }

/* ------------------------------------------------------- jQuery UI date -- */
.ui-datepicker {
  border: 0 !important; border-radius: var(--vt-radius) !important;
  box-shadow: var(--vt-shadow-hover) !important; font-family: inherit !important;
  background: #fff !important; padding: 10px !important;
}
.ui-datepicker .ui-datepicker-header {
  background: var(--vt-primary-soft) !important; border: 0 !important;
  border-radius: var(--vt-radius-sm) !important; color: var(--vt-primary) !important;
}
.ui-datepicker td a {
  border-radius: 8px !important; text-align: center !important; border: 0 !important;
  background: transparent !important;
}
.ui-datepicker td a.ui-state-active {
  background: var(--vt-primary) !important; color: #fff !important;
}
.ui-datepicker td a.ui-state-hover { background: var(--vt-primary-soft) !important; }

/* ------------------------------------------- Compat classes Star (emp) -- */
.btn-inverse-primary {
  background: var(--vt-primary-soft) !important; color: var(--vt-primary) !important;
  border: 0 !important;
}
.btn-inverse-primary:hover { background: #d8e5ff !important; color: var(--vt-primary-dark) !important; }
.btn-rounded { border-radius: 999px !important; }
.nav-tabs { border-bottom: 1px solid var(--vt-border); }
.nav-tabs .nav-link {
  border: 0 !important; border-radius: var(--vt-radius-sm) var(--vt-radius-sm) 0 0 !important;
  color: #5a6b85; font-weight: 600;
}
.nav-tabs .nav-link.active {
  color: var(--vt-primary) !important; background: #fff !important;
  box-shadow: inset 0 -2px 0 var(--vt-primary);
}
.tab-content.bg-white {
  border-radius: 0 0 var(--vt-radius-lg) var(--vt-radius-lg) !important;
  border-color: var(--vt-border) !important;
  box-shadow: var(--vt-shadow);
}

/* ---------------------------------------------------------------- Auth -- */
.vt-auth-body {
  min-height: 100vh;
  background:
    radial-gradient(600px 400px at 8% -5%, rgba(37, 99, 235, .14), transparent 60%),
    radial-gradient(700px 500px at 105% 108%, rgba(37, 99, 235, .12), transparent 60%),
    var(--vt-bg) !important;
}
.vt-auth-wrapper {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.vt-auth-card {
  width: 100%; max-width: 440px;
  border-radius: 22px !important;
  box-shadow: 0 24px 64px rgba(15, 42, 90, .14) !important;
}
.vt-auth-card.vt-auth-wide { max-width: 820px; }
.vt-auth-back {
  color: var(--vt-muted); font-size: 13px; font-weight: 600; text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.vt-auth-back:hover { color: var(--vt-primary); }
.vt-auth-title { font-weight: 700; font-size: 22px; margin-bottom: 4px; }
.vt-auth-subtitle { color: var(--vt-muted); margin-bottom: 26px; font-size: 14px; }
.vt-auth-card .form-control, .vt-auth-card .form-control-lg { padding: 11px 15px; font-size: 14.5px; }
.vt-auth-card .btn-lg, .vt-auth-card .btn { padding-top: 11px; padding-bottom: 11px; }
.vt-auth-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--vt-primary-soft); color: var(--vt-primary);
  border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700;
  margin-bottom: 14px;
}

/* ------------------------------------- Coquille applicative (vt-shell) -- */
.vt-body { background: var(--vt-bg) !important; }

.vt-topbar {
  position: sticky; top: 0; z-index: 1030;
  height: 72px; background: var(--vt-card);
  display: flex; align-items: center; gap: 0;
  padding: 0 22px 0 0;
  box-shadow: 0 2px 16px rgba(15, 42, 90, .07);
}
/* Bloc marque = sommet de la colonne du sidebar : même largeur (258px) et
   bordure droite qui prolonge celle du sidebar, pour une ligne verticale
   continue du haut en bas. Logo à gauche, bouton de repli à droite. */
.vt-topbar-brand {
  display: flex; align-items: center; gap: 10px;
  width: 258px; flex-shrink: 0; align-self: stretch;
  padding: 0 12px 0 22px;
  border-right: 1px solid var(--vt-border);
}
.vt-brand-link { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.vt-brand-link .vt-brand-text { margin-left: 10px; }
.vt-burger {
  border: 0; background: #f2f6fc; border-radius: 10px;
  width: 40px; height: 40px; font-size: 22px; color: #5a6b85;
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
}

.vt-search { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.vt-search > i.bx-search {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--vt-muted); font-size: 18px; pointer-events: none;
}
.vt-search input {
  width: 100%; height: 44px; border-radius: 12px !important;
  border: 1px solid var(--vt-border) !important; background: #f7f9fc !important;
  padding: 0 16px 0 40px !important; font-size: 14px;
}
.vt-search input:focus { background: #fff !important; }
.vt-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 20px 48px rgba(15, 42, 90, .18);
  padding: 6px; z-index: 1040; max-height: 330px; overflow-y: auto;
}
.vt-search-results a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 9px;
  color: var(--vt-text); text-decoration: none; font-size: 14px;
}
.vt-search-results a i { color: #9aa7ba; }
.vt-search-results a:hover { background: var(--vt-primary-soft); color: var(--vt-primary); }
.vt-search-results a:hover i { color: var(--vt-primary); }
.vt-search-results .vt-sr-section { font-size: 12px; color: var(--vt-muted); margin-left: auto; padding-left: 12px; white-space: nowrap; }
/* En-têtes de groupe dans les résultats de recherche (Pages / Collaborateurs). */
.vt-sr-group { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--vt-muted); padding: 8px 12px 4px; }
.vt-sr-empty { padding: 12px; color: var(--vt-muted); font-size: 14px; text-align: center; }

.vt-topbar-right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-shrink: 0; }

/* ------------------------------------------------ Notifications -- */
.vt-notif { position: relative; }
.vt-notif-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; color: #5a6b85;
  background: #f2f6fc; font-size: 21px; text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.vt-notif-btn:hover { background: var(--vt-primary-soft); color: var(--vt-primary); }
.vt-notif-badge {
  position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--vt-danger); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 18px; text-align: center;
  border: 2px solid var(--vt-card);
}
.vt-notif-menu { width: 340px; max-width: 92vw; padding: 6px; border: 0;
  box-shadow: 0 20px 48px rgba(15, 42, 90, .18); border-radius: 14px; max-height: 420px; overflow-y: auto; }
.vt-notif-head { display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; font-weight: 700; font-size: 14px; color: var(--vt-text); }
.vt-notif-count { background: var(--vt-primary-soft); color: var(--vt-primary);
  font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 8px; }
.vt-notif-item { display: flex; align-items: flex-start; gap: 10px; padding: 10px 10px;
  border-radius: 10px; color: var(--vt-text); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.vt-notif-item:hover { background: #f2f6fc; }
.vt-notif-item i { font-size: 18px; flex-shrink: 0; margin-top: 1px; color: var(--vt-primary); }
.vt-notif-item.vt-notif-ok i { color: var(--vt-success); }
.vt-notif-item.vt-notif-danger i { color: var(--vt-danger); }
.vt-notif-item.vt-notif-muted i { color: var(--vt-muted); }
.vt-notif-empty { display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 12px; color: var(--vt-muted); font-size: 13.5px; text-align: center; }
.vt-notif-empty i { font-size: 26px; opacity: .6; }
/* Lu / non lu : une notification lue s'estompe ; une non lue porte un point. */
.vt-notif-item.vt-notif-lu { opacity: .55; }
.vt-notif-point {
  width: 8px; height: 8px; border-radius: 50%; background: var(--vt-primary);
  flex-shrink: 0; margin-left: auto; margin-top: 6px;
}
.vt-notif-toutlu {
  border: 0; background: transparent; color: var(--vt-primary);
  font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 2px 4px;
}
.vt-notif-toutlu:hover { text-decoration: underline; }

/* ------------------------------------- Calendrier des vacances -- */
/* Légende en pastilles */
.cal-legende { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin-bottom: 14px; }
.cal-leg { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--vt-muted); }
.cal-leg-echantillon { width: 22px; height: 14px; border-radius: 5px; display: inline-flex; flex-shrink: 0; }
.cal-leg-auj { background: var(--vt-primary); color: #fff; width: 24px; height: 19px; border-radius: 6px; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.cal-leg-conge { background: #5f8ef3; border-radius: 999px; }
.cal-leg-demi { background: linear-gradient(to right, transparent 50%, #5f8ef3 50%); border: 1px solid #d9e4f8; border-radius: 999px; }
.cal-leg-we { background: #eef1f6; }
.cal-leg-jf { background: #fdecc8; }

/* Barre d'outils */
.cal-outils { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.cal-nav { display: flex; align-items: center; gap: 8px; margin: 0; }
.cal-nav-btn, .cal-nav-auj {
  border: 1px solid var(--vt-border); background: #fff; border-radius: 10px;
  height: 34px; color: #5a6b85; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.cal-nav-btn { width: 34px; font-size: 18px; }
.cal-nav-auj { padding: 0 12px; font-size: 13px; font-weight: 600; }
.cal-nav-btn:hover, .cal-nav-auj:hover { background: var(--vt-primary-soft); color: var(--vt-primary); border-color: #bcd0f7; }
/* Mois entre les flèches, sur une largeur fixe pour qu'elles ne bougent pas
   d'un mois à l'autre (« Septembre 2026 » est le plus long). */
.cal-mois { font-size: 19px; font-weight: 700; color: var(--vt-text); min-width: 172px; text-align: center; white-space: nowrap; }
.cal-nav-auj { margin-left: 8px; }
.cal-recherche { max-width: 300px; }

/* Grille : largeur FLUIDE (table-layout fixed) pour que le mois entier
   tienne sans défilement horizontal sur un écran de bureau ; en dessous
   de 760px (mobile), le défilement reprend avec la colonne des noms figée. */
.cal-scroll { overflow-x: auto; }
.cal-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 760px; table-layout: fixed; }
.cal-table th, .cal-table td { padding: 0; border: 0; }
.cal-jour { text-align: center; padding-bottom: 8px; }
.cal-jour-int { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; width: 100%; max-width: 34px; padding: 3px 0; border-radius: 8px; }
.cal-jnom { font-size: 11px; font-weight: 700; letter-spacing: .2px; text-transform: uppercase; color: var(--vt-muted); }
.cal-jnum { font-size: 12px; font-weight: 700; color: var(--vt-text); }
.cal-jour-int.cal-auj { background: var(--vt-primary); }
.cal-jour-int.cal-auj .cal-jnom, .cal-jour-int.cal-auj .cal-jnum { color: #fff; }
.cal-jour.cal-jf .cal-jnom, .cal-jour.cal-jf .cal-jnum { color: #b4871e; }

/* Colonne collaborateur, figée au défilement horizontal */
.cal-emp {
  position: sticky; left: 0; z-index: 2; background: var(--vt-card);
  width: 200px; text-align: left; white-space: nowrap;
  padding: 6px 10px 6px 2px;
}
.cal-emp-tete { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--vt-muted); vertical-align: bottom; padding-bottom: 12px; }
.cal-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--vt-primary-soft);
  color: var(--vt-primary); font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; vertical-align: middle;
}
.cal-emp-infos { display: inline-flex; flex-direction: column; vertical-align: middle; margin-left: 9px; line-height: 1.25; max-width: 150px; }
.cal-emp-nom { font-size: 13px; font-weight: 600; color: var(--vt-text); display: block; overflow: hidden; text-overflow: ellipsis; }
.cal-emp-solde { font-size: 12px; color: var(--vt-muted); }
.cal-vous { background: var(--vt-primary-soft); color: var(--vt-primary); font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 7px; margin-left: 6px; vertical-align: 1px; }

/* Cellules : jour = 1 colonne ; congé = barre continue arrondie */
.cal-cell { height: 42px; vertical-align: middle; }
tbody .cal-cell, tbody .cal-emp { border-top: 1px solid #f0f3f8; }
.cal-cell.cal-we { background: #f4f6fa; }
.cal-cell.cal-jf { background: #fdf3dd; }
.cal-cell.cal-col-auj { background: var(--vt-primary-soft); }
.cal-barre { display: block; height: 18px; background: #5f8ef3; }
.cal-b-debut { border-top-left-radius: 999px; border-bottom-left-radius: 999px; margin-left: 3px; }
.cal-b-fin { border-top-right-radius: 999px; border-bottom-right-radius: 999px; margin-right: 3px; }
.cal-b-demi-debut { width: 50%; margin-left: auto; border-top-left-radius: 999px; border-bottom-left-radius: 999px; }
.cal-b-demi-fin { width: 50%; margin-right: auto; border-top-right-radius: 999px; border-bottom-right-radius: 999px; }

/* ------------------------------------- Rapports mensuels (fidèles) -- */
/* Icône d'aide « ? » des rapports — reprise de l'original. */
.help-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: #6c757d; color: #fff; font-size: 10px;
  cursor: pointer; margin-left: 6px;
}
/* Titres de sections et carte identité. */
.rap-titre { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.rap-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--vt-primary-soft); color: var(--vt-primary);
  font-size: 15px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
/* Lignes libellé / valeur des sections 1-3 : structurées et alignées. */
.rap-dl > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 7px 0; border-bottom: 1px solid #f0f3f8; font-size: 13.5px;
}
.rap-dl > div:last-child { border-bottom: 0; }
.rap-l { color: #5a6b85; }
.rap-v { font-weight: 600; color: var(--vt-text); text-align: right; white-space: nowrap; }
/* En-tête collaborateur des rapports (une ligne, 4 cellules). */
.rap-entete-emp th { font-size: 13px; }
/* Détail des présences : largeur FIXE, colonnes équitablement réparties —
   tout est visible sans défilement et rien ne passe à la ligne. */
.rap-detail { table-layout: fixed; width: 100%; }
.rap-detail th { font-size: 12px; white-space: nowrap; text-align: center; vertical-align: middle; }
.rap-detail td { font-size: 12.5px; white-space: nowrap; text-align: center; }
.rap-we td { background: #eef1f6 !important; color: #5a6b85; }
.rap-ferie td { background: #efe9fb !important; color: #5b3fa8; font-weight: 600; }
.rap-total td { font-weight: 700; background: #f7f9fd; }
/* Infobulles des rapports : lisibles, alignées à gauche. */
.tooltip-inner { max-width: 300px; text-align: left; }
/* Synthèse mensuelle de présence : tableau compact et centré (comme
   l'original), types de congé en texte vertical pour tenir en largeur. */
.rap-synthese th, .rap-synthese td {
  text-align: center; vertical-align: middle;
  padding: .35rem .45rem; font-size: 12.5px;
}
.rap-synthese .vertical-text {
  writing-mode: sideways-rl; text-orientation: mixed; white-space: nowrap;
}
.rap-synthese .rap-bande th {
  background: #1f2532; color: #fff; text-align: left; font-size: 13px;
}
.rap-synthese .rap-ouvrables th { text-align: left; font-size: 12.5px; }
.vt-avatar-link {
  position: relative; display: inline-block; width: 42px; height: 42px;
}
/* Initiales par défaut ; la photo, si elle existe, se pose par-dessus et
   se retire (onerror) si elle échoue, révélant les initiales. */
.vt-avatar-initials {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--vt-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; letter-spacing: .5px;
  border: 2px solid var(--vt-primary-soft);
}
.vt-avatar-link img {
  position: absolute; inset: 0;
  width: 42px; height: 42px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--vt-primary-soft); background: var(--vt-card);
}

.vt-shell { display: flex; align-items: flex-start; }
.vt-sidebar {
  width: 258px; flex-shrink: 0; background: var(--vt-card);
  border-right: 1px solid var(--vt-border);
  position: sticky; top: 72px; height: calc(100vh - 72px);
  overflow-y: auto; padding: 10px 12px 24px;
}
/* Colonne d'au moins la hauteur de l'écran : le footer, poussé par
   margin-top:auto, reste toujours en bas même quand le contenu est court. */
.vt-main {
  flex: 1; min-width: 0; padding: 24px 26px 6px;
  display: flex; flex-direction: column; min-height: calc(100vh - 72px);
}
.vt-footer { color: var(--vt-muted); font-size: 13px; padding: 20px 4px 14px; margin-top: auto; }

/* Flèche « Retour » en tête des pages de détail/formulaire. */
.vt-back {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px;
  color: var(--vt-muted); font-weight: 600; font-size: 14px; text-decoration: none;
}
.vt-back:hover { color: var(--vt-primary); }
.vt-back i { font-size: 18px; }

.vt-menu-header {
  font-size: 12px; letter-spacing: .9px; font-weight: 700;
  color: var(--vt-muted); text-transform: uppercase;
  padding: 16px 12px 7px;
}
.vt-menu-link {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border-radius: 12px; border: 0; background: transparent;
  color: #5a6b85; font-weight: 500; font-size: 14.5px; text-decoration: none;
  margin-bottom: 2px; text-align: left; cursor: pointer;
}
.vt-menu-link i:first-child { font-size: 19px; color: #9aa7ba; }
.vt-menu-link:hover { background: var(--vt-primary-soft); color: var(--vt-primary); }
.vt-menu-link:hover i { color: var(--vt-primary); }
/* Un seul état visible à la fois, en bleu clair (comme les sous-liens). */
.vt-menu-link.active {
  background: var(--vt-primary-soft); color: var(--vt-primary);
  font-weight: 600;
}
.vt-menu-link.active i { color: var(--vt-primary); }
.vt-caret { margin-left: auto; transition: transform .18s ease; font-size: 16px !important; }
.vt-menu-group.open .vt-caret { transform: rotate(180deg); }
.vt-menu-sub { display: none; padding: 2px 0 6px 12px; }
.vt-menu-group.open .vt-menu-sub { display: block; }
/* Un groupe simplement déplié n'est PAS un état actif : seul le caret
   tourne, aucun fond coloré — l'unique surlignage est réservé à la page
   courante (lien ou sous-lien .active). */
.vt-sub-link {
  display: block; padding: 8px 12px 8px 28px; border-radius: 10px;
  color: #5a6b85; font-size: 13.5px; text-decoration: none;
  margin-bottom: 1px; position: relative;
}
.vt-sub-link::before {
  content: ''; position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: #c3cdda;
}
.vt-sub-link:hover { background: #f2f6fc; color: var(--vt-primary); }
.vt-sub-link.active { background: var(--vt-primary-soft); color: var(--vt-primary); font-weight: 600; }
.vt-sub-link.active::before { background: var(--vt-primary); }

.vt-backdrop { display: none; }
@media (max-width: 991.98px) {
  .vt-burger { display: inline-flex; }
  .vt-topbar { padding: 0 14px; gap: 12px; }
  /* Sur mobile le menu est un tiroir : le bloc marque redevient normal,
     sans largeur fixe ni bordure de colonne. */
  .vt-topbar-brand { width: auto; border-right: none; padding: 0; align-self: center; }
  .vt-topbar-brand .vt-brand-text { display: none; }
  .vt-sidebar {
    position: fixed; left: 0; top: 0; height: 100vh; z-index: 1055;
    transform: translateX(-105%); transition: transform .22s ease;
    box-shadow: 12px 0 40px rgba(15, 42, 90, .18);
  }
  body.vt-sidebar-open .vt-sidebar { transform: none; }
  body.vt-sidebar-open .vt-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(15, 23, 42, .45); z-index: 1054;
  }
  .vt-main { padding: 18px 14px 6px; }
}

/* ------------------------------------------------ Menu repliable -- */
/* Bouton de repli : sur la ligne du logo, poussé au bord droit du bloc
   marque (donc contre la bordure de la colonne du sidebar). */
.vt-collapse {
  border: 0; background: #f2f6fc; border-radius: 10px;
  width: 34px; height: 34px; font-size: 20px; color: #5a6b85;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: auto;
  transition: background .15s ease;
}
.vt-collapse:hover { background: var(--vt-primary-soft); color: var(--vt-primary); }
.vt-collapse i { transition: transform .22s ease; }

/* Etat replie : le menu devient un rail d'icones. La classe est portee par
   <html>, ce qui permet de l'appliquer avant le premier rendu. */
.vt-collapsed .vt-sidebar { width: 78px; }
.vt-collapsed .vt-menu-link { justify-content: center; padding-left: 0; padding-right: 0; }
.vt-collapsed .vt-menu-link > span,
.vt-collapsed .vt-menu-header,
.vt-collapsed .vt-caret { display: none; }
.vt-collapsed .vt-menu-sub { display: none !important; }
.vt-collapsed .vt-menu-link i:first-child { font-size: 21px; }
.vt-collapsed .vt-collapse i { transform: rotate(180deg); }
/* Replié : la colonne passe à 78px ; on masque le logo et on centre le
   bouton d'expansion dans le rail. */
.vt-collapsed .vt-topbar-brand { width: 78px; padding: 0; justify-content: center; }
.vt-collapsed .vt-brand-link { display: none; }
.vt-collapsed .vt-collapse { margin-left: 0; }
/* Sur mobile le menu est deja un tiroir : le repli n'a pas de sens et rendrait
   le tiroir illisible. Ce bloc vient APRES les regles de repli pour les
   neutraliser — a specificite egale, c'est le dernier declare qui l'emporte. */
@media (max-width: 991.98px) {
  .vt-collapse { display: none; }
  .vt-collapsed .vt-sidebar { width: 258px; }
  .vt-collapsed .vt-menu-link { justify-content: flex-start; padding-left: 12px; padding-right: 12px; }
  .vt-collapsed .vt-menu-link > span,
  .vt-collapsed .vt-menu-header { display: block; }
  .vt-collapsed .vt-caret { display: block; }
  .vt-collapsed .vt-menu-group.open .vt-menu-sub { display: block !important; }
  .vt-collapsed .vt-topbar-brand { width: auto; padding: 0; justify-content: flex-start; }
  .vt-collapsed .vt-brand-link { display: flex; }
  .vt-collapsed .vt-topbar-brand .vt-brand-text { display: none; }
}
/* ------------------------------------------------------- Kiosque garde -- */
.vt-guard-body { background: var(--vt-bg) !important; }
.vt-guard-topbar {
  background: var(--vt-card);
  border-radius: var(--vt-radius-lg);
  box-shadow: var(--vt-shadow);
  padding: 12px 20px;
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
}
.vt-guard-topbar .vt-auth-badge { margin-bottom: 0; }

/* ------------------------------------------------------------- Divers -- */
.footer, .content-footer { color: var(--vt-muted); }
hr { border-color: var(--vt-border); opacity: 1; }
.help-icon { background: #c3cdda !important; }
.dropdown-menu {
  border: 0 !important; border-radius: var(--vt-radius) !important;
  box-shadow: 0 16px 40px rgba(15, 42, 90, .14) !important;
}
.dropdown-item:hover { background: var(--vt-primary-soft); color: var(--vt-primary); }
::selection { background: rgba(37, 99, 235, .18); }
iframe#\:1\.container { display: none !important; }

/* ------------------------------------------------- Connexion en deux volets -- */
.vt-auth-split {
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(255, 255, 255, .14), transparent 55%),
    linear-gradient(135deg, #4f46e5 0%, #2563eb 52%, #1d4ed8 100%) !important;
}
.vt-auth-split .vt-auth-wrapper {
  /* Le volet blanc descend jusqu'au bas de l'écran : pas de marge basse,
     et des angles arrondis seulement en haut. */
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
  padding: 0 6vw;
}
.vt-auth-split .vt-auth-aside { align-self: center; padding: 40px 0; }
.vt-auth-aside {
  flex: 1 1 auto;
  max-width: 520px;
  color: #fff;
}
.vt-auth-aside .vt-brand-text { color: #fff; }
.vt-auth-aside .vt-logo-dot {
  background: rgba(255, 255, 255, .18);
  box-shadow: none;
  backdrop-filter: blur(2px);
}
.vt-aside-title {
  /* La regle globale des titres impose la couleur du texte sombre :
     sur le volet colore, il faut la reprendre explicitement. */
  color: #fff;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  margin: 28px 0 14px;
}
.vt-aside-lead { font-size: 17px; font-weight: 600; opacity: .95; margin-bottom: 10px; }
.vt-aside-text { font-size: 15px; line-height: 1.65; opacity: .8; max-width: 46ch; }
.vt-auth-split .vt-auth-card {
  flex: 0 0 470px;
  margin-top: 72px;
  border-radius: 28px 28px 0 0 !important;
  /* .card de Bootstrap est un flex en COLONNE : c est donc
     justify-content qui centre verticalement, pas align-items. */
  display: flex;
  justify-content: center;
}
.vt-auth-split .vt-auth-card > .card-body {
  /* .card-body de Bootstrap porte flex:1 1 auto et remplit toute la
     hauteur, ce qui neutralise le centrage : on lui rend sa taille. */
  flex: 0 0 auto;
  width: 100%;
  padding: 8px 48px !important;
}

@media (max-width: 991.98px) {
  .vt-auth-aside { display: none; }
  .vt-auth-split .vt-auth-wrapper { justify-content: center; align-items: center; padding: 24px; }
  .vt-auth-split .vt-auth-card {
    flex: 1 1 auto;
    margin-top: 0;
    border-radius: 22px !important;
    display: block;
  }
  .vt-auth-split .vt-auth-card > .card-body { padding: 32px 28px !important; }
}
/* ------------------------------------------------------ Feuille de temps --
   En-tête avec navigation de semaine (flèches autour du libellé), résumé en
   tuiles, sept jours sur une ligne SANS défilement (grille), liste des
   tâches en lignes et non en tableau, pour que tout reste lisible et
   cliquable jusqu'au téléphone. */
.vt-ts-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.vt-ts-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vt-ts-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.vt-ts-nav-libelle { font-weight: 700; font-size: 16px; color: var(--vt-text); min-width: 250px; text-align: center; white-space: nowrap; }
.vt-ts-nav-courante { font-size: 13px; font-weight: 600; color: var(--vt-primary); background: var(--vt-primary-soft); border-radius: 10px; padding: 0 12px; height: 34px; display: inline-flex; align-items: center; margin-left: 8px; }
.vt-ts-nav .cal-nav-auj { margin-left: 8px; }

.vt-ts-resume { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.vt-ts-tuile { background: #fff; border-radius: var(--vt-radius); box-shadow: var(--vt-shadow); padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; }
.vt-ts-tuile-val { font-size: 22px; font-weight: 700; color: var(--vt-primary); line-height: 1.1; }
.vt-ts-tuile-lib { font-size: 12px; color: var(--vt-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.vt-ts-tuile .badge,
.vt-ts-tache-statut.badge { align-self: flex-start; font-size: 12.5px; white-space: normal; text-align: left; line-height: 1.3; max-width: 100%; }

.vt-ts-bandeau { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--vt-radius); padding: 12px 14px; margin-bottom: 16px; font-size: 14px; line-height: 1.5; }
.vt-ts-bandeau .bx { font-size: 20px; line-height: 1.1; flex: none; }
.vt-ts-bandeau-attente { background: var(--vt-warning-soft); color: var(--vt-warning); }
.vt-ts-bandeau-ok { background: var(--vt-success-soft); color: var(--vt-success); }
.vt-ts-bandeau-retour { background: var(--vt-danger-soft); color: var(--vt-danger); }
.vt-ts-bandeau-info { background: var(--vt-primary-soft); color: var(--vt-primary-dark); }

.vt-ts-jours { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; border: 0; margin: 0 0 12px; padding: 0; list-style: none; }
.vt-ts-jours .nav-item { min-width: 0; }
.vt-ts-jour {
  width: 100%; min-width: 0; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 4px 8px !important;
  border: 1px solid var(--vt-border) !important; border-radius: var(--vt-radius) !important;
  background: #fff; color: #5a6b85;
  transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.vt-ts-jour:hover { border-color: #bcd0f7 !important; color: var(--vt-primary); }
.vt-ts-jour.active { background: var(--vt-primary) !important; border-color: var(--vt-primary) !important; color: #fff !important; box-shadow: 0 8px 20px rgba(37, 99, 235, .25); }
.vt-ts-jour-nom { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.vt-ts-jour-num { font-size: 22px; font-weight: 700; line-height: 1.1; }
.vt-ts-jour-info { font-size: 12px; font-weight: 600; opacity: .85; white-space: nowrap; }
.vt-ts-jour-we:not(.active) { background: #f6f8fb; }
.vt-ts-jour-auj:not(.active) { border-color: var(--vt-primary) !important; color: var(--vt-primary); }
.vt-ts-jour-auj::after { content: ""; position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.vt-ts-contenu { background: #fff; border-radius: var(--vt-radius-lg); box-shadow: var(--vt-shadow); padding: 18px 20px; margin-bottom: 16px; }
.vt-ts-jour-entete { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.vt-ts-jour-total { color: var(--vt-muted); font-size: 14px; }
.vt-ts-jour-total strong { color: var(--vt-primary); }
.vt-ts-vide { text-align: center; padding: 28px 12px; color: var(--vt-muted); }
.vt-ts-vide .bx { font-size: 40px; color: #bcd0f7; display: block; margin-bottom: 6px; }
.vt-ts-vide p { margin: 0 0 12px; }
.vt-ts-liste { display: flex; flex-direction: column; gap: 8px; }
.vt-ts-tache { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--vt-border); border-radius: var(--vt-radius); }
.vt-ts-tache-texte { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vt-ts-tache-titre { font-weight: 600; color: var(--vt-text); overflow-wrap: anywhere; }
.vt-ts-tache-note { color: var(--vt-muted); font-size: 13.5px; white-space: pre-line; overflow-wrap: anywhere; }
.vt-ts-tache-heures { font-weight: 700; color: var(--vt-primary); background: var(--vt-primary-soft); border-radius: 999px; padding: 4px 12px; font-size: 13.5px; white-space: nowrap; }
.vt-ts-tache-actions { display: flex; gap: 6px; }
.vt-ts-jour-pied { margin-top: 12px; display: flex; justify-content: flex-end; }
.vt-ts-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

@media (max-width: 991.98px) {
  .vt-ts-nav-libelle { min-width: 0; }
}
@media (max-width: 767.98px) {
  .vt-ts-resume { grid-template-columns: 1fr 1fr; }
  .vt-ts-resume .vt-ts-tuile:last-child { grid-column: 1 / -1; }
  .vt-ts-contenu { padding: 14px; }
  .vt-ts-tache { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .vt-ts-tache-statut { grid-column: 1 / -1; justify-self: start; }
  .vt-ts-tache-statut:empty { display: none; }
  .vt-ts-tache-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
@media (max-width: 575.98px) {
  .vt-ts-actions { width: 100%; }
  .vt-ts-actions .btn { flex: 1 1 auto; }
  .vt-ts-nav-libelle { font-size: 15px; }
  .vt-ts-jours { gap: 4px; }
  .vt-ts-jour { padding: 8px 2px 6px !important; }
  .vt-ts-jour-nom, .vt-ts-jour-info { font-size: 10.5px; }
  .vt-ts-jour-num { font-size: 18px; }
  .vt-ts-jour-auj::after { top: 4px; right: 4px; width: 6px; height: 6px; }
}

/* ---------------------------------------------- Demandes de congé (liste) --
   Une ligne par demande (type, durée, période, objet, commentaire du
   validateur, pièce jointe | statut, date, actions) au lieu d'un tableau à
   neuf colonnes qui débordait ; filtres par statut en pastilles. */
.vt-cg-entete { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.vt-cg-filtres { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.vt-cg-filtre {
  border: 1px solid var(--vt-border); background: #fff; color: #5a6b85;
  border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.vt-cg-filtre:hover { border-color: #bcd0f7; color: var(--vt-primary); }
.vt-cg-filtre.active { background: var(--vt-primary); border-color: var(--vt-primary); color: #fff; }
.vt-cg-nb { background: rgba(0, 0, 0, .06); border-radius: 999px; padding: 0 7px; font-size: 12px; }
.vt-cg-filtre.active .vt-cg-nb { background: rgba(255, 255, 255, .22); }
.vt-cg-corps { padding: 12px !important; }
.vt-cg-liste { display: flex; flex-direction: column; gap: 10px; }
.vt-cg-demande {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px;
  padding: 14px 16px; border: 1px solid var(--vt-border); border-radius: var(--vt-radius);
}
.vt-cg-demande[hidden] { display: none; }
.vt-cg-principal { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vt-cg-titre { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vt-cg-type { font-weight: 700; color: var(--vt-text); font-size: 15px; }
.vt-cg-jours { font-weight: 700; color: var(--vt-primary); background: var(--vt-primary-soft); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; white-space: nowrap; }
.vt-cg-periode { margin: 0; font-size: 14px; color: var(--vt-text); display: flex; align-items: flex-start; gap: 6px; }
.vt-cg-periode .bx { color: var(--vt-primary); font-size: 17px; line-height: 1.3; flex: none; }
.vt-cg-objet { margin: 2px 0 0; color: var(--vt-muted); font-size: 13.5px; white-space: pre-line; overflow-wrap: anywhere; }
.vt-cg-commentaire {
  margin: 6px 0 0; padding: 8px 12px; border-left: 3px solid #bcd0f7; background: #f6f8fb;
  border-radius: 0 8px 8px 0; font-size: 13.5px; color: var(--vt-text); overflow-wrap: anywhere;
}
.vt-cg-commentaire-lib { display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--vt-muted); margin-bottom: 2px; }
.vt-cg-piece { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; text-decoration: none; margin-top: 4px; align-self: flex-start; }
.vt-cg-cote { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.vt-cg-cote .badge { white-space: normal; text-align: right; line-height: 1.3; max-width: 220px; }
.vt-cg-creee { font-size: 12.5px; color: var(--vt-muted); white-space: nowrap; }
.vt-cg-actions { display: flex; gap: 6px; }
.vt-cg-vide { text-align: center; padding: 36px 12px; color: var(--vt-muted); }
.vt-cg-vide .bx { font-size: 44px; color: #bcd0f7; display: block; margin-bottom: 6px; }
@media (max-width: 767.98px) {
  .vt-cg-demande { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .vt-cg-cote { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; }
  .vt-cg-cote .badge { text-align: left; }
  .vt-cg-actions { width: 100%; }
  .vt-cg-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 575.98px) {
  .vt-cg-entete .btn { width: 100%; }
}

/* Modification d'une demande : formulaire à gauche, récapitulatif à droite. */
.vt-cg-edit { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.vt-cg-edit-statut { font-size: 13px; }
.vt-cg-periode-fs { border: 1px solid var(--vt-border); border-radius: var(--vt-radius); padding: 14px 16px; margin: 0; min-width: 0; }
.vt-cg-legende { float: none; width: auto; padding: 0; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; color: var(--vt-muted); margin: 0 0 10px; }
.vt-cg-jours-calc { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 14px; line-height: 1.5; }
.vt-cg-jours-calc .bx { font-size: 18px; line-height: 1.3; flex: none; }
.vt-cg-fichier {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  background: #f6f8fb; border: 1px solid var(--vt-border); border-radius: 10px;
  padding: 8px 12px; font-size: 13.5px; margin-bottom: 10px; color: var(--vt-text);
}
.vt-cg-fichier .bx { color: var(--vt-primary); font-size: 18px; flex: none; }
.vt-cg-fichier-nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.vt-cg-edit-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--vt-border); }
.vt-cg-recap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.vt-cg-recap dt { color: var(--vt-muted); font-weight: 600; }
.vt-cg-recap dd { margin: 0; color: var(--vt-text); overflow-wrap: anywhere; }
.vt-cg-edit-note {
  display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px;
  border-radius: 10px; background: var(--vt-primary-soft); color: var(--vt-primary-dark); font-size: 13.5px; line-height: 1.5;
}
.vt-cg-edit-note .bx { font-size: 18px; flex: none; line-height: 1.3; }
@media (max-width: 991.98px) {
  .vt-cg-edit { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .vt-cg-edit-actions .btn { flex: 1 1 auto; }
  .vt-cg-fichier-nom { max-width: 160px; }
}

/* ------------------------------------------------ Listes d'administration --
   Lignes génériques (types de congé, jours fériés) et compléments de la
   liste des demandes côté administration. */
.vt-lst { display: flex; flex-direction: column; gap: 10px; }
.vt-lst-ligne {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 16px; border: 1px solid var(--vt-border); border-radius: var(--vt-radius);
}
.vt-lst-ligne[hidden] { display: none; }
.vt-lst-principal { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.vt-lst-titre { font-weight: 700; color: var(--vt-text); font-size: 15px; overflow-wrap: anywhere; }
.vt-lst-sous { font-size: 13px; color: var(--vt-muted); }
.vt-lst-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.vt-lst-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.vt-lst-passe .vt-lst-titre { color: var(--vt-muted); font-weight: 600; }
.vt-lst-vide { text-align: center; padding: 36px 12px; color: var(--vt-muted); }
.vt-lst-vide .bx { font-size: 44px; color: #bcd0f7; display: block; margin-bottom: 6px; }
.vt-lst-note {
  display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin: 0 0 14px;
  border-radius: 10px; background: var(--vt-primary-soft); color: var(--vt-primary-dark); font-size: 13.5px; line-height: 1.5;
}
.vt-lst-note .bx { font-size: 18px; flex: none; line-height: 1.3; }
.vt-lst-outils { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.vt-lst-recherche { max-width: 360px; }
/* Jours fériés : tuile de date */
.vt-jf-ligne { grid-template-columns: auto minmax(0, 1fr) auto; }
.vt-jf-date {
  width: 54px; height: 54px; border-radius: 12px; flex: none;
  background: var(--vt-primary-soft); color: var(--vt-primary);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
}
.vt-jf-jour { font-size: 20px; font-weight: 700; }
.vt-jf-mois { font-size: 11px; font-weight: 700; text-transform: uppercase; margin-top: 3px; }
.vt-lst-passe .vt-jf-date { background: #f0f3f8; color: var(--vt-muted); }
.vt-jf-auj .vt-jf-date { background: var(--vt-primary); color: #fff; }
/* Demandes de congé (administration) : collaborateur et décision du connecté */
.vt-adm-personne { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.vt-adm-personne .cal-avatar { flex: none; }
.vt-adm-sous { display: block; font-size: 12.5px; color: var(--vt-muted); }
.vt-adm-type { font-weight: 600; color: var(--vt-text); }
.vt-adm-decision { font-size: 12.5px; color: var(--vt-muted); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 767.98px) {
  .vt-lst-ligne { grid-template-columns: 1fr; }
  .vt-jf-ligne { grid-template-columns: auto minmax(0, 1fr); }
  .vt-jf-ligne .vt-lst-actions { grid-column: 1 / -1; }
  .vt-lst-actions { justify-content: flex-start; }
  .vt-lst-actions .btn { flex: 1 1 auto; }
  .vt-lst-recherche { max-width: none; width: 100%; }
}

/* ----------------------------------------------------- Photo de profil --
   Aperçu rond, boutons Choisir / Recadrer / Supprimer, et modale de
   recadrage de hrmp-photo.js (cadre carré, masque rond, zoom). */
.vt-photo { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vt-photo-apercu { flex: none; }
.vt-photo-apercu img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid var(--vt-primary-soft); background: #fff; display: block; }
.vt-photo-actions { min-width: 0; flex: 1 1 260px; max-width: 460px; }
.vt-photo-boutons { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.vt-photo-etat { margin: 6px 0 0; font-size: 13px; color: var(--vt-primary-dark); font-weight: 600; }
.vt-photo-compacte { gap: 12px; }
.vt-photo-compacte .vt-photo-apercu img { width: 64px; height: 64px; border-width: 2px; }
.vt-photo-compacte .vt-photo-actions { flex: 1 1 140px; }

.vt-rogne-cadre {
  position: relative; margin: 0 auto; overflow: hidden; border-radius: 12px;
  background: #1e2a3b; cursor: grab; touch-action: none; user-select: none;
}
.vt-rogne-cadre.vt-rogne-glisse { cursor: grabbing; }
.vt-rogne-cadre img { position: absolute; max-width: none; pointer-events: none; }
/* Masque : tout ce qui est hors du cercle est assombri. */
.vt-rogne-masque {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at center, transparent 0, transparent 49.5%, rgba(10, 20, 40, .55) 50.5%);
}
.vt-rogne-zoom { max-width: 280px; margin: 14px auto 0; }

/* ---------------------------------------------------------- Impression -- */
@media print {
  body { background: #fff !important; }
  .layout-menu, #layout-menu, .layout-navbar, .content-footer,
  .vt-topbar, .vt-sidebar, .vt-footer, .vt-backdrop, .vt-back,
  .vt-guard-topbar, .no-print, .noprint { display: none !important; }
  .layout-wrapper .layout-page { margin-left: 0 !important; padding-left: 0 !important; }
  .vt-main { padding: 0 !important; }
  .card { box-shadow: none !important; border: 1px solid #dfe3ea !important; }
}

/* ------------------------------------------------- Accessibilité (audit) -- */
/* Focus clavier visible : Sneat supprime l'outline des boutons et les ombres
   Vantage sont figées en !important, donc rien ne signalait le focus. */
.btn:focus-visible, .vt-menu-link:focus-visible, .vt-sub-link:focus-visible,
.vt-notif-btn:focus-visible, .vt-avatar-link:focus-visible, .nav-link:focus-visible,
.page-link:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--vt-primary) !important;
  outline-offset: 2px;
}
/* Champ en erreur : la couleur de bordure survit au focus (les règles
   :focus ci-dessus écrasaient .is-invalid). */
.form-control.is-invalid, .form-select.is-invalid, input.is-invalid, select.is-invalid, textarea.is-invalid,
.form-control.is-invalid:focus, .form-select.is-invalid:focus, input.is-invalid:focus, select.is-invalid:focus, textarea.is-invalid:focus {
  border-color: var(--vt-danger) !important;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, .15) !important;
}
.invalid-feedback { color: var(--vt-danger); font-size: 12.5px; font-weight: 500; margin-top: 4px; }
/* Champ verrouillé reconnaissable (le fond blanc forcé masquait l'état). */
.form-control:disabled, .form-control[readonly], .form-select:disabled,
input:disabled, select:disabled, textarea:disabled {
  background-color: #f1f4f8 !important;
  color: #5a6b85 !important;
}

/* Champ obligatoire : les vues ajoutent la classe « requis » au label. */
.form-label.requis::after, .requis > legend::after { content: " *"; color: var(--vt-danger); font-weight: 700; }
.vt-legende-requis { color: var(--vt-muted); font-size: 12.5px; }

/* Cibles tactiles : au moins 40 px, 44 px sur écran tactile. */
.vt-collapse, .cal-nav-btn, .cal-nav-auj, .vt-burger { min-width: 40px; min-height: 40px; }
@media (pointer: coarse) {
  .btn:not(.btn-icon), .form-control, .form-select { min-height: 44px; }
  .btn-sm:not(.btn-icon) { min-height: 40px; }
  .btn-icon { min-width: 44px; min-height: 44px; }
}

/* Libellés longs de boutons sur petit écran : retour à la ligne autorisé. */
@media (max-width: 575.98px) { .btn { white-space: normal; } }

/* Impression : contrôles masqués, fonds des en-têtes conservés. */
@media print {
  .btn, .dataTables_filter, .dataTables_length, .dataTables_paginate, .dataTables_info,
  .vt-search, .modal, .swal2-container { display: none !important; }
  .rap-bande th, .cal-auj, .badge, .vt-stat-icon, .progress-bar { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a[href]::after { content: none !important; }
}

/* ------------------------------------------------------ Espace éditeur -- */
.vt-editeur-badge {
  align-items: center; margin-right: 14px; padding: 4px 12px; border-radius: 999px;
  background: var(--vt-primary-soft); color: var(--vt-primary); font-size: 12px; font-weight: 700;
  letter-spacing: .3px; text-transform: uppercase; white-space: nowrap;
}
.vt-sa-resume { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vt-sa-sur { font-size: 14px; font-weight: 600; color: var(--vt-muted); margin-left: 4px; }
.vt-sa-tuile-lien { color: inherit; transition: box-shadow .18s ease; }
.vt-sa-tuile-lien:hover { box-shadow: var(--vt-shadow-hover); }
@media (max-width: 767.98px) {
  .vt-sa-resume { grid-template-columns: 1fr 1fr; }
  .vt-sa-resume .vt-ts-tuile:last-child { grid-column: auto; }
}

/* ------------------------------------------------ Collaborateurs (liste) --
   Repères RH en tuiles qui servent de filtres, barre d'outils (recherche,
   états du compte, listes déroulantes), tableau trié et filtré dans la page,
   barre de sélection collée en bas pour la réinitialisation des congés. Sous
   768 px, chaque ligne du tableau devient une carte. */
.vt-col-entete-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Toujours sur une seule ligne, à largeur égale, quel que soit leur nombre. */
.vt-col-tuiles { display: flex; gap: 12px; margin-bottom: 16px; }
.vt-col-tuile {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  background: var(--vt-card); border: 1px solid #d6dee9; border-radius: var(--vt-radius);
  box-shadow: var(--vt-shadow); padding: 14px 16px; cursor: pointer; color: var(--vt-text); font: inherit;
  transition: box-shadow .18s ease, border-color .15s ease, transform .15s ease, background .15s ease;
}
.vt-col-tuile:hover { box-shadow: var(--vt-shadow-hover); transform: translateY(-1px); border-color: #bcd0f7; }
.vt-col-tuile[aria-pressed="true"] {
  border-color: var(--vt-primary); background: var(--vt-primary-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .18);
}
.vt-col-tuile .vt-stat-icon { width: 40px; height: 40px; font-size: 21px; margin-bottom: 8px; border-radius: 11px; }
.vt-col-tuile-val { font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--vt-text); }
.vt-col-tuile-lib { font-size: 13.5px; font-weight: 700; color: var(--vt-text); }
.vt-col-tuile-aide { font-size: 12.5px; color: #5f6e84; line-height: 1.35; }
.vt-col-tuile-zero .vt-col-tuile-val { color: var(--vt-muted); }
.vt-col-tuile-zero .vt-stat-icon { background: #f0f3f8; color: #9aa7ba; }

/* Bandeau gris des outils (recherche, états, listes), à ras du haut de la
   carte : les commandes se détachent nettement des données en dessous. */
.vt-col-outils {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin: -12px -12px 0; padding: 14px 16px; background: #f1f4f9;
  border-bottom: 1px solid #d6dee9; border-radius: var(--vt-radius-lg) var(--vt-radius-lg) 0 0;
}
.vt-col-outils .vt-cg-filtre { background: #fff; border-color: #cfd9e6; color: #47556b; }
.vt-col-outils .vt-cg-filtre:hover { border-color: #bcd0f7; color: var(--vt-primary); }
.vt-col-outils .vt-cg-filtre.active { background: var(--vt-primary); border-color: var(--vt-primary); color: #fff; }
.vt-col-outils .form-select { border-color: #cfd9e6 !important; }
.vt-col-recherche { position: relative; flex: 1 1 260px; max-width: 440px; }
.vt-col-recherche .bx-search {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--vt-muted); font-size: 18px; pointer-events: none;
}
.vt-col-recherche input { padding-left: 38px !important; }
.vt-col-outils .vt-cg-filtres { margin: 0; }
.vt-col-outils .vt-cg-filtre { font-family: inherit; }
.vt-col-selects { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.vt-col-selects .form-select { width: auto; min-width: 160px; }
.vt-col-etat {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 4px 10px; font-size: 13.5px; color: var(--vt-muted);
}
#colCompte { font-weight: 700; color: var(--vt-text); }
.vt-col-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.vt-col-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--vt-primary-soft); color: var(--vt-primary);
  border-radius: 999px; padding: 3px 4px 3px 12px; font-weight: 600; font-size: 13px;
}
.vt-col-chip button {
  border: 0; background: transparent; color: inherit; width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; padding: 0;
}
.vt-col-chip button:hover { background: rgba(37, 99, 235, .15); }

/* Jamais de défilement horizontal : colonnes fixes en pourcentage (colgroup
   de la vue) et, quand la place manque, pile de cartes (classes
   vt-col-cartes / vt-col-cartes-large posées par la page selon sa largeur).
   position: relative — l'intitulé masqué de la colonne Actions, positionné
   en absolu, reste dans ce bloc au lieu d'élargir la page. */
.vt-col-liste { position: relative; }
.vt-col-table { width: 100%; margin: 0; table-layout: fixed; }
.vt-col-table[hidden] { display: none; }
/* En-tête sur fond gris, lignes alternées (classe posée par la page sur les
   lignes visibles), séparateurs de lignes et de colonnes marqués : les
   informations ne se mélangent plus dans le blanc. */
.vt-col-table thead th {
  padding: 10px; vertical-align: bottom;
  background: #e8edf5; color: #3b4a60 !important; font-size: 11.5px !important;
  text-transform: uppercase !important; letter-spacing: .5px;
  border-bottom: 2px solid #cbd5e3 !important;
}
.vt-col-table thead th:first-child { border-top-left-radius: 10px; }
.vt-col-table thead th:last-child { border-top-right-radius: 10px; }
.vt-col-table tbody td {
  padding: 10px; vertical-align: middle;
  border-bottom: 1px solid #dde4ee !important;
  box-shadow: inset 1px 0 0 #e9eef5;
}
.vt-col-table tbody td:first-child { box-shadow: none; }
.vt-col-table tbody tr.vt-col-paire td { background: #f5f7fb; }
.vt-col-table tbody tr:hover td { background: #e9f0fd; }
.vt-col-table tbody tr[hidden] { display: none; }
.vt-col-c-solde { white-space: nowrap; }
.vt-col-c-compte .badge { white-space: normal; }
.vt-col-tri {
  border: 0; background: transparent; padding: 0; font: inherit; color: inherit;
  display: inline-flex; align-items: center; gap: 4px; cursor: pointer; white-space: nowrap;
}
.vt-col-tri:hover { color: var(--vt-primary); }
.vt-col-tri::after { content: "\2195"; opacity: .4; font-size: 12px; }
th[aria-sort="ascending"] .vt-col-tri::after { content: "\2191"; opacity: 1; color: var(--vt-primary); }
th[aria-sort="descending"] .vt-col-tri::after { content: "\2193"; opacity: 1; color: var(--vt-primary); }
th[aria-sort] .vt-col-tri { color: var(--vt-primary); }
.vt-col-case { width: 36px; }
.vt-col-identite { display: flex; align-items: center; gap: 10px; min-width: 0; }
/* Le bloc nom / courriel peut rétrécir (sinon le courriel, insécable, déborde sur la colonne voisine). */
.vt-col-identite > div { min-width: 0; flex: 1 1 auto; }
.vt-col-avatar { position: relative; width: 38px; height: 38px; flex: none; }
.vt-col-initiales {
  width: 38px; height: 38px; border-radius: 50%; background: var(--vt-primary-soft); color: var(--vt-primary);
  font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.vt-col-avatar img { position: absolute; inset: 0; width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: #fff; }
.vt-col-nom { font-weight: 700; color: var(--vt-text); text-decoration: none; font-size: 14.5px; }
.vt-col-nom:hover { color: var(--vt-primary); text-decoration: underline; }
.vt-col-courriel {
  display: block; font-size: 12.5px; color: #5f6e84;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.vt-col-role { font-size: 11px; padding: 2px 8px; vertical-align: 1px; margin-left: 4px; }
.vt-col-principal { display: block; font-weight: 600; color: var(--vt-text); font-size: 14px; overflow-wrap: anywhere; }
.vt-col-sous { display: block; font-size: 12.5px; color: #5f6e84; margin-top: 1px; overflow-wrap: anywhere; }
.vt-col-attention { color: var(--vt-warning) !important; font-weight: 600; }
.vt-col-urgent { color: var(--vt-danger) !important; font-weight: 600; }
.vt-col-solde { display: block; font-weight: 700; font-size: 15px; color: var(--vt-text); white-space: nowrap; }
.vt-col-solde.vt-col-negatif { color: var(--vt-danger); }
.vt-col-actions { text-align: right; }
/* Les boutons passent à la ligne plutôt que d'élargir le tableau. */
.vt-col-actions-int { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.vt-col-actions .dropdown { display: inline-block; }
.vt-col-actions .dropdown-menu { font-size: 14px; }
.vt-col-actions .dropdown-item { display: flex; align-items: center; }
.vt-col-actions .dropdown-item .bx { font-size: 17px; color: var(--vt-muted); }
.vt-col-actions .dropdown-item.text-danger .bx { color: inherit; }
.vt-col-ligne-inactive .vt-col-nom, .vt-col-ligne-inactive .vt-col-principal { color: var(--vt-muted); }
.vt-col-ligne-inactive .vt-col-initiales { background: #eef1f6; color: #8b97a8; }
.vt-col-ligne-inactive .vt-col-avatar img { filter: grayscale(1); opacity: .7; }
.vt-col-selection {
  position: sticky; bottom: 12px; z-index: 5; margin-top: 12px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: var(--vt-text); color: #fff; border-radius: var(--vt-radius); padding: 10px 14px;
  box-shadow: 0 12px 32px rgba(15, 42, 90, .28);
}
.vt-col-selection[hidden] { display: none; }
.vt-col-selection-nb { font-weight: 700; margin-right: auto; }
.vt-col-selection .btn-outline-secondary {
  background: rgba(255, 255, 255, .1) !important; color: #fff !important; border-color: rgba(255, 255, 255, .3) !important;
}
.vt-col-selection .btn-outline-secondary:hover { background: rgba(255, 255, 255, .2) !important; }
#resetAucun[hidden] { display: none; }

/* Cartes (place insuffisante pour le tableau) : l'en-tête disparaît, chaque
   cellule porte son libellé, la case à cocher va en haut à droite. */
.vt-col-cartes .vt-col-table colgroup, .vt-col-cartes .vt-col-table thead { display: none; }
.vt-col-cartes .vt-col-table, .vt-col-cartes .vt-col-table tbody { display: block; }
.vt-col-cartes .vt-col-table[hidden] { display: none; }
.vt-col-cartes .vt-col-table tbody tr {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px;
  background: #f6f8fc; border: 1px solid #d6dee9; border-radius: var(--vt-radius);
  padding: 12px; margin-bottom: 10px; position: relative;
}
.vt-col-cartes .vt-col-table tbody tr[hidden] { display: none !important; }
.vt-col-cartes .vt-col-table tbody tr.vt-col-paire td, .vt-col-cartes .vt-col-table tbody tr:hover td { background: transparent; }
.vt-col-cartes .vt-col-table tbody td { display: block; padding: 4px 0; border: 0 !important; min-width: 0; box-shadow: none; }
.vt-col-cartes .vt-col-table td[data-libelle]::before {
  content: attr(data-libelle); display: block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px; color: #5a6b85; margin-bottom: 2px;
}
.vt-col-cartes .vt-col-personne { grid-column: 1 / -1; padding-right: 36px !important; }
.vt-col-cartes .vt-col-c-solde { white-space: normal; }
.vt-col-cartes .vt-col-case { position: absolute; top: 12px; right: 12px; width: auto; padding: 0 !important; }
.vt-col-cartes .vt-col-courriel { white-space: normal; overflow-wrap: anywhere; }
.vt-col-cartes .vt-col-actions {
  grid-column: 1 / -1; text-align: left;
  padding-top: 10px !important; margin-top: 4px; border-top: 1px solid #dde4ee !important;
}
.vt-col-cartes .vt-col-actions-int { display: flex; width: 100%; gap: 6px; justify-content: flex-start; align-items: center; }
.vt-col-cartes .vt-col-actions .btn:not(.btn-icon) { flex: 1 1 auto; }
/* Cartes larges (620 à 900 px) : les cellules d'une carte se rangent sur une ligne. */
.vt-col-cartes-large .vt-col-table tbody tr { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.vt-col-cartes-large .vt-col-table tbody td { flex: 1 1 110px; }
.vt-col-cartes-large .vt-col-table tbody td.vt-col-personne,
.vt-col-cartes-large .vt-col-table tbody td.vt-col-actions { flex-basis: 100%; }
.vt-col-cartes-large .vt-col-actions .btn:not(.btn-icon) { flex: 0 0 auto; }

@media (max-width: 1199.98px) {
  .vt-col-tuile { padding: 12px 14px; }
  .vt-col-tuile-aide { display: none; }
}
@media (max-width: 991.98px) {
  .vt-col-selects { margin-left: 0; }
}
@media (max-width: 767.98px) {
  .vt-col-tuiles { flex-wrap: wrap; gap: 8px; }
  .vt-col-tuile { flex: 1 1 calc(50% - 4px); }
  .vt-col-recherche { max-width: none; flex-basis: 100%; }
  .vt-col-selects { width: 100%; }
  .vt-col-selects .form-select { flex: 1 1 140px; min-width: 0; }
  .vt-col-etat .ms-auto { margin-left: 0 !important; }
  .vt-col-selection { bottom: 8px; }
  .vt-col-selection-nb { width: 100%; margin-right: 0; }
  .vt-col-selection .btn { flex: 1 1 auto; }
}
@media (max-width: 575.98px) {
  .vt-col-entete-actions { width: 100%; }
  .vt-col-entete-actions .btn { flex: 1 1 auto; }
  .vt-col-tuile-val { font-size: 22px; }
}

/* ------------------------------------------ Formulaire collaborateur --
   Création et modification complète : largeur de lecture bornée, et barre
   d'actions collée en bas de l'écran tant que le formulaire est visible. */
.vt-form { max-width: 1100px; }
.vt-form .form-text { font-size: 12.5px; }
.vt-form-actions {
  position: sticky; bottom: 0; z-index: 4;
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin: 20px -24px -24px; padding: 14px 24px;
  background: #fff; border-top: 1px solid var(--vt-border);
  border-radius: 0 0 var(--vt-radius-lg) var(--vt-radius-lg);
  box-shadow: 0 -8px 24px rgba(15, 42, 90, .06);
}
.vt-form-actions-note { margin-left: auto; font-size: 12.5px; color: var(--vt-muted); }
@media (max-width: 575.98px) {
  .vt-form-actions .btn { flex: 1 1 auto; }
  .vt-form-actions-note { margin-left: 0; width: 100%; }
}

/* ------------------------------------- Mesures disciplinaires -- */
/* Zone de dépôt du document justificatif (formulaire de sanction). */
.vt-dropzone {
  position: relative; border: 2px dashed var(--vt-border); border-radius: 12px;
  padding: 18px 16px; text-align: center; color: var(--vt-muted); background: #fafbfd;
  transition: border-color .15s, background .15s;
}
.vt-dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.vt-dropzone i { font-size: 26px; display: block; color: var(--vt-primary); margin-bottom: 4px; }
.vt-dropzone-lien { color: var(--vt-primary); font-weight: 600; text-decoration: underline; }
.vt-dropzone-fichier { display: block; margin-top: 6px; font-weight: 600; color: var(--vt-text); }
.vt-dropzone-survol, .vt-dropzone:focus-within { border-color: var(--vt-primary); background: var(--vt-primary-soft); }
.vt-dropzone-rempli { border-style: solid; }
/* Calendrier : barre de mise à pied (administration et intéressé). */
.cal-leg-sanction { background: #ef6b6b; border-radius: 999px; }
.cal-barre-sanction { background: #ef6b6b; }
/* Rapport de présence : jour de mise à pied ; synthèse : colonne « Jours d'exclusion ». */
.rap-sanction td { background: #fde8e8 !important; color: #b91c1c; font-weight: 600; }
.rap-synthese td.rap-exclusion { color: #b91c1c; font-weight: 600; }

/* ------------------------------------------------------- Mode intérim --
   Bannière persistante au-dessus de la barre du haut, avatar du
   responsable marqué « P.O. », mandats à basculer, mentions « pour
   ordre » à côté des validations. Couleur distincte (ambre) pour qu'on ne
   confonde jamais le mode intérim avec son propre compte. */
.vt-interim-bar {
  position: sticky; top: 0; z-index: 1031;
  display: flex; align-items: center; gap: 12px;
  height: 42px; padding: 0 22px;
  background: #b45309; color: #fff; font-size: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}
.vt-interim-bar .bx { font-size: 20px; flex: none; }
.vt-interim-texte { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-interim-detail { opacity: .9; }
.vt-interim-quitter {
  border: 1px solid rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .12); color: #fff;
  border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 13px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px;
}
.vt-interim-quitter:hover, .vt-interim-quitter:focus-visible { background: #fff; color: #b45309; }
.vt-en-interim .vt-topbar { top: 42px; border-top: 3px solid #b45309; }
.vt-en-interim .vt-sidebar { top: 117px; height: calc(100vh - 117px); }
.vt-avatar-interim .vt-avatar-initials { background: #b45309; border-color: #fde68a; }
.vt-avatar-interim img { border-color: #fde68a; }
.vt-avatar-badge {
  position: absolute; right: -8px; bottom: -5px; z-index: 2;
  background: #b45309; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .3px;
  border-radius: 999px; padding: 1px 5px; border: 2px solid #fff; line-height: 1.3;
}
.vt-menu-pastille {
  margin-left: auto; background: #b45309; color: #fff; border-radius: 999px;
  font-size: 11px; font-weight: 700; padding: 1px 7px; line-height: 1.5;
}
.vt-collapsed .vt-menu-pastille { display: none; }
.vt-po {
  display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 8px;
  border-radius: 999px; background: #fdf0d9; color: #92400e; font-size: 12px; font-weight: 700;
  white-space: nowrap; cursor: help; vertical-align: middle;
}
.vt-po .bx { font-size: 13px; }
.vt-mandats { border-left: 4px solid #b45309; }
.vt-mandats h2 .bx { color: #b45309; vertical-align: -2px; }
.vt-mandats-liste { display: flex; flex-direction: column; gap: 10px; }
.vt-mandat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--vt-border); border-radius: var(--vt-radius-sm); background: #fffaf2;
}
.vt-delegation-signature { padding: 12px 14px; border-radius: 10px; background: #f6f8fb; border: 1px dashed #bcd0f7; }
@media (max-width: 767.98px) {
  .vt-interim-bar { padding: 0 12px; gap: 8px; }
  .vt-interim-detail { display: none; }
}
.vt-mandat-invitation { background: #fffbeb; border-color: #fde68a; }

/* ------------------------------------------- Acquisition des congés --
   Registre RH (mise en route, tuiles d'état, tableau de contrôle), détail
   d'un collaborateur et carte « mon solde » de l'espace collaborateur :
   la décomposition solde initial + acquis − consommés = solde se lit d'un
   coup d'œil, et l'historique des écritures reste sobre. */
.vt-acq-activation { border-left: 4px solid var(--vt-primary); }
.vt-acq-apercu {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 10px 12px; border-radius: 10px;
  background: var(--vt-primary-soft); color: var(--vt-text); font-size: 14px;
}
.vt-acq-apercu .bx { font-size: 18px; color: var(--vt-primary); flex: none; line-height: 1.3; }
.vt-acq-valeur { font-size: 18px; font-weight: 700; color: var(--vt-text); line-height: 1.25; margin: 2px 0; }
.vt-stat-value.vt-acq-tuile-valeur { font-size: 20px; }
.vt-acq-table th { white-space: nowrap; }
.vt-acq-table tbody tr.vt-acq-probleme td { background: #fff8e6; }
.vt-acq-table tbody tr.vt-lst-passe td { color: var(--vt-muted); }
.vt-acq-decomposition {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.vt-acq-decomposition > div { display: flex; flex-direction: column; align-items: center; min-width: 72px; }
.vt-acq-chiffre { font-size: 24px; font-weight: 700; color: var(--vt-text); line-height: 1.15; }
.vt-acq-chiffre.vt-acq-total { color: var(--vt-primary); font-size: 30px; }
.vt-acq-legende { font-size: 12px; color: var(--vt-muted); font-weight: 500; white-space: nowrap; }
.vt-acq-op { font-size: 22px; color: var(--vt-muted); font-weight: 600; }
.vt-acq-prochain {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  margin-top: 12px; padding: 8px 12px; border-radius: 10px;
  background: var(--vt-success-soft); color: var(--vt-text); font-size: 14px;
}
.vt-acq-prochain .bx { font-size: 18px; color: var(--vt-success); }
.vt-acq-details summary { cursor: pointer; font-weight: 600; color: var(--vt-primary); font-size: 14px; }
.vt-acq-historique td, .vt-acq-historique th { font-size: 13.5px; }
.vt-acq-aide summary { cursor: pointer; list-style: none; }
.vt-acq-aide summary::-webkit-details-marker { display: none; }
.vt-acq-aide summary .bx { font-size: 18px; vertical-align: -3px; margin-right: 4px; }
.vt-acq-aide[open] summary { border-bottom: 1px solid var(--vt-border); }
@media (max-width: 575.98px) {
  .vt-acq-decomposition { gap: 8px; }
  .vt-acq-decomposition > div { min-width: 56px; }
  .vt-acq-chiffre { font-size: 20px; }
  .vt-acq-chiffre.vt-acq-total { font-size: 24px; }
}
