/* ========= MODE offline ========= */

/* desactiver le menu ceux qui reste authorise */
.is-offline .nav-link:not(.allow-offline) {
    pointer-events: none;
    opacity: 0.5;
}

#offline-banner {
    background-color: #ffc107;
    text-align: center;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ========= VARIABLES GLOBALES ========= */

:root {
  --ms-bg: #e6f3f3;
  --ms-white: #ffffff;
  --ms-text: #4a4d4f;
  --ms-primary: #8dc63f;
  --ms-accent: #f5a623;
  --ms-secondary: #00b5dc;
  --ms-danger: #e05a4f;
  --ms-muted: #9ba3aa;
  --ms-border: #dfe6ea;
  --ms-soft: #f7fafc;
  --ms-orange: #da8e0b;
  --ms-blue: #052a2d;
  --ms-green: #7daf23;
}

/* ========= RESET SIMPLE ========= */

* {
  box-sizing: border-box;
}

body {
  background-color: var(--ms-bg);
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ms-text);
}

body.d-flex {
  min-height: 100vh;
}

/* ========= NAVBAR COMMUNE (toutes les pages) ========= */

.navbar {
  background-color: var(--ms-white) !important;
  border-bottom: 1px solid var(--ms-border);
}

.navbar-brand-text {
  font-size: 1.3rem;
  letter-spacing: .1rem;
  font-weight: 600;
  color: var(--ms-text);
  text-transform: uppercase;
  line-height: 1.1;
}

.navbar-brand-text span {
  color: var(--ms-primary);
}

.navbar-nav .nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ms-muted);
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--ms-text);
}

.user-avatar {
  width: 32px;
  height: 32px;
}

/* Logo "constellation" optionnel (si utilisé) */
.brand-mark line {
  stroke: #555;
  stroke-width: 2;
}
.brand-mark circle.node {
  fill: #555;
}
.brand-mark circle.node-accent {
  fill: var(--ms-accent);
}

/* ========= FOOTER COMMUN ========= */

footer {
  background-color: var(--ms-white);
  border-top: 1px solid var(--ms-border);
  color: var(--ms-muted);
  font-size: .8rem;
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
  color: var(--ms-primary);
}

/* =========================================================================
   PAGE LOGIN
   ========================================================================= */

.login-page {
  min-height: 100vh;
}

.login-left {
  background-image: url("../img/IMG-20190709-WA0007.jpg");
  background-size: cover;
  background-position: center;
  min-height: 40vh;
}

@media (min-width: 992px) {
  .login-left {
    min-height: 100vh;
  }
}

.login-right {
  min-height: 100vh;
}

.login-card {
  max-width: 420px;
  width: 100%;
  background-color: var(--ms-white);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
  padding: 2.5rem 2.25rem 2rem;
  border: 1px solid var(--ms-border);
}

.brand-logo {
  font-size: 1.7rem;
  letter-spacing: .12rem;
  font-weight: 600;
  color: var(--ms-text);
  text-transform: uppercase;
}

.brand-logo span.text-primary {
  color: var(--ms-primary) !important;
}

.subtitle {
  color: var(--ms-muted);
  font-size: .85rem;
}

.form-label {
  font-size: .8rem;
  text-transform: uppercase;
  color: var(--ms-muted);
  letter-spacing: .05em;
}

.form-control {
  border: none;
  border-bottom: 1px solid var(--ms-border);
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  box-shadow: none !important;
  font-size: .95rem;
  background-color: transparent;
}

.form-control:focus {
  border-color: var(--ms-primary);
}

.btn-ms-primary {
  background-color: var(--ms-primary);
  border-color: var(--ms-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .8rem;
}

.btn-ms-primary:hover {
  background-color: #79b12f;
  border-color: #79b12f;
}

.small-link {
  font-size: .8rem;
  color: var(--ms-text);
}

.small-link:hover {
  color: var(--ms-primary);
}

.footer-links {
  font-size: .75rem;
  color: var(--ms-muted);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  color: var(--ms-primary);
}

/* =========================================================================
   DASHBOARD / CONGÉS (cartes carrées + bannière)
   ========================================================================= */

/* Bannière info turquoise (congés) */
.info-banner-wrapper {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.info-banner {
  background-color: var(--ms-secondary);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  text-align: center;
}

.info-banner-icon {
  font-size: 2.2rem;
  margin-right: 1rem;
}

.info-banner-count {
  font-size: 2.4rem;
  font-weight: 700;
  margin-right: .75rem;
}

.info-banner-text {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Cartes carrées d’action */
.main-actions {
  margin-bottom: 3rem;
}

.action-card {
  width: 190px;
  height: 190px;
  border-radius: 18px;
  background-color: var(--ms-white);
  border: 1px solid var(--ms-border);
  color: var(--ms-text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem auto;
  text-align: center;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .04);
  text-decoration: none;
}

.action-card i {
  font-size: 2.6rem;
  margin-bottom: 1rem;
}

.action-card span {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.action-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
  border-color: var(--ms-primary);
}

.quick-actions {
}

/* Couleurs d’icône pour les actions (congés dashboard) */
.icon-suivi      { color: #f5a623; }
.icon-conges     { color: #00b5dc; }
.icon-incidents  { color: #ef7f2c; }
.icon-planning   { color: #8dc63f; }
.icon-backoffice { color: #e05a4f; }

/* Stat cards (dashboard / congés / incidents) */
.stats-row {
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.stat-card {
  background-color: var(--ms-white);
  border-radius: 12px;
  padding: 1.4rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--ms-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .04);
}

.stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  color: var(--ms-muted);
  letter-spacing: .06em;
  margin-bottom: .2rem;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--ms-text);
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background-color: var(--ms-secondary);
  color: #fff;
  font-weight: 600;
}

.stat-icon {
  font-size: 2.4rem;
  color: var(--ms-secondary);
}

/* =========================================================================
   PAGE INCIDENTS
   ========================================================================= */

/* body.page-incidents pour ne pas affecter les autres pages */
.page-incidents main {
  background: linear-gradient(to bottom, #f9fcfd 0, #e6f3f3 380px);
}

/* Fil d’Ariane sous la navbar si utilisé dans main */
.breadcrumb-light {
  font-size: .9rem;
  color: var(--ms-muted);
}

.breadcrumb-light .current {
  color: var(--ms-text);
  font-weight: 500;
}

/* Panneaux génériques */

.panel-card {
  background-color: var(--ms-white);
  border-radius: 16px;
  border: 1px solid var(--ms-border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .05);
  padding: 1.4rem 1.6rem;
}

.panel-header {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* Filtres dropdown */

.filter-card {
  background-color: var(--ms-white);
  border-radius: 999px;
  border: 1px solid var(--ms-border);
  padding: .55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: .85rem;
  color: var(--ms-text);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
}

.filter-select {
  height: 3.6em;
  padding-top: 1.8em;
  font-size: 0.9rem;
  font-weight: 500;
}
.filter-select-group {
  position: relative;
}
.filter-select-label {
  position: absolute; 
  top:0px; 
  padding: 0.8em 1.2em 0em 1.4em; 
  pointer-events: none; 
}

.filter-label {
  color: var(--ms-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-right: .25rem;
  z-index: 1;
}

.filter-value {
  font-weight: 500;
}

/* CTA incidents */

.btn-ms-incident {
  background-color: #ff8a1f;
  border-color: #ff8a1f;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: .75rem 1.6rem;
  font-size: .9rem; 
}

.btn-ms-incident.blue {
  background-color: #1fa5ff;
  border-color: #1fa5ff;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: .75rem 1.6rem;
  font-size: .9rem; 
}

.btn-ms-incident.green {
  background-color: #81c784;
  border-color: #81c784;
  color: #fff;
  font-weight: 600;
  border-radius: 999px;
  padding: .75rem 1.6rem;
  font-size: .9rem; 
}

.btn-ms-incident:hover {
  background-color: #f47a0a;
  border-color: #f47a0a;
  color: #fff;
}
.btn-ms-incident.blue:hover {
  background-color: #0a6ff4;
  border-color: #0a6ff4;
  color: #fff;
}
.btn-ms-incident.green:hover {
  background-color: #068b23;
  border-color: #068b23;
  color: #fff;
}

/* Bloc "Actions incidents" */

.incident-actions-main {
  background: linear-gradient(120deg, #ffe8c9 0%, #fff3dd 100%);
  border-radius: 14px;
  padding: 1.3rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.incident-actions-main .btn {
  border-radius: 999px;
  font-weight: 600;
  text-transform: none;
  font-size: .95rem;
  padding: .7rem 1.1rem;
}

.incident-actions-main .btn span.badge {
  background-color: rgba(255, 255, 255, .2);
  border-radius: 999px;
  margin-right: .6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: .8rem;
}

.incident-actions-main p {
  margin-top: .75rem;
  margin-bottom: 0;
  font-size: .8rem;
  color: var(--ms-muted);
}

/* Petits compteurs */

.incident-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem;
}

.metric-pill {
  border-radius: 12px;
  padding: .6rem .7rem;
  display: flex;
  align-items: center; 
}

.metric-pill:nth-child(1) { background-color: #fff2f0; }
.metric-pill:nth-child(2) { background-color:  #fff7ea;}
.metric-pill:nth-child(3) { background-color: #e9f7ff; }
.metric-pill:nth-child(4) { background-color: #eef9e7; }

.metric-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 600;
  margin-right: .5rem;
}

.metric-number.orange { background-color: #ffb74d; color: #fff; }
.metric-number.red    { background-color: #ff7043; color: #fff; }
.metric-number.blue   { background-color: #29b6f6; color: #fff; }
.metric-number.green  { background-color: #81c784; color: #fff; }

.metric-label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--ms-text);
}

/* Mes incidents / Gestion des interruptions */

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: .6rem;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: #fff;
}

.icon-orange { background-color: #ff8a1f; }
.icon-amber  { background-color: #ffb74d; }
.icon-red    { background-color: #ef6c57; }
.icon-green  { background-color: #8dc63f; }

.link-row {
  border-radius: 999px;
  background-color: var(--ms-soft);
  padding: .6rem .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .6rem;
  font-size: .85rem;
  cursor: pointer;
}

.link-row span.label {
  font-weight: 500;
}

.link-row span.helper {
  font-size: .78rem;
  color: var(--ms-muted);
}

/* Tableau derniers incidents */

.table-incidents {
  width: 100%;
  font-size: .86rem;
}

.table-incidents th {
  font-weight: 500;
  color: var(--ms-muted);
  border-bottom: 1px solid var(--ms-border);
  padding-bottom: .35rem;
}

.table-incidents td {
  padding: .5rem 0;
  vertical-align: middle;
  border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.lvl-badge {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
}

.lvl-critical { background-color: #ff7043; }
.lvl-user     { background-color: #ffb74d; }
.lvl-ok       { background-color: #8bc34a; }
.lvl-neutral       { background-color: #b7b7b7; }

.status-pill {
  padding: .25rem .65rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 500;
}

.status-open     { background-color: #ffebee; color: #d32f2f; }
.status-progress { background-color: #fff3e0; color: #f57c00; }
.status-closed   { background-color: #e8f5e9; color: #2e7d32; }
.status-initial   { background-color: #eff2ef; color: #6d726e; }

/* Diagramme barres */

.bar-wrapper {
  height: 130px;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}

.bar {
  width: 22px;
  border-radius: 999px;
  background-color: #dfe6ea;
}

.bar.orange { background-color: #ffb74d; }
.bar.short  { height: 50px; }
.bar.mid    { height: 80px; }
.bar.tall   { height: 110px; }


/* =========================================================================
   FORMULAIRE : DECLARER UN INCIDENT
   ========================================================================= */

.incident-form-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 2.2rem 2.4rem;
}

/* Espacement plus régulier entre les champs */
.incident-form-card .row.g-3 > [class*="col-"] {
  margin-bottom: .25rem;
}

/* Titres et labels plus propres */
.incident-form-card h1 {
  font-size: 1.1rem;
  font-weight: 600;
}

.incident-form-card .form-label {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ms-muted);
  margin-bottom: .2rem;
}

/* Champs de saisie */
.incident-form-card .form-control,
.incident-form-card .form-select {
  border-radius: 10px;
  border: 1px solid var(--ms-border);
  background-color: #fdfefe;
  padding: .45rem .75rem;
  font-size: .9rem;
}

.incident-form-card textarea.form-control {
  min-height: 80px;
}

/* Focus plus visible mais doux */
.incident-form-card .form-control:focus,
.incident-form-card .form-select:focus {
  border-color: var(--ms-primary);
  box-shadow: 0 0 0 .15rem rgba(141, 198, 63, .18);
}

/* Placeholders plus discrets */
.incident-form-card .form-control::placeholder {
  color: var(--ms-muted);
  opacity: .7;
}

/* Switch de services externes */
.incident-form-card .form-check-input {
  cursor: pointer;
  width: 2.4rem;
  height: 1.3rem;
}

.incident-form-card .form-check-input:checked {
  background-color: var(--ms-primary);
  border-color: var(--ms-primary);
}

.incident-form-card .form-check-label {
  font-size: .8rem;
  color: var(--ms-text);
}

/* Section services externes : resserrer la grille sur mobile */
@media (max-width: 767.98px) {
  .incident-form-card .form-check.form-switch {
    padding-left: 2.15rem;
  }
}

/* Ligne "Trajets non réalisés" plus visible */
.incident-form-card .form-check-input#trajetsNonRealises {
  width: 1.1rem;
  height: 1.1rem;
}

.incident-form-card .form-check-label[for="trajetsNonRealises"] {
  font-size: .9rem;
  font-weight: 500;
}

/* Barre de boutons en bas */
.incident-form-card .form-actions {
  margin-top: 2rem;
}

/* Bouton annuler plus discret (style outline) */
.incident-form-card .btn-cancel {
  background-color: transparent;
  color: var(--ms-text);
  border-radius: 999px;
  border: 1px solid var(--ms-border);
  font-weight: 500;
}

.incident-form-card .btn-cancel:hover {
  border-color: var(--ms-danger);
  color: var(--ms-danger);
}

/* Titre principal de la page "Déclarer un incident" */
.page-incidents .page-title,
.page-incidents main h1 {
  color: var(--ms-primary);
  font-weight: 600;
  letter-spacing: .04em;
}

/* =========================================================================
   FORMULAIRE INCIDENT : couleurs des labels
   ========================================================================= */

/* Labels des champs du formulaire d'incident */
.incident-form-card .form-label {
  color: var(--ms-blue);          /* turquoise Mobilité Sud */
  font-weight: 600;
}

/* Astérisque des champs obligatoires dans la charte (orange) */
.incident-form-card .form-label .text-danger {
  color: var(--ms-accent) !important;  /* remplace le rouge Bootstrap */
}

/* Label de la case "Trajets non réalisés" */
.incident-form-card .form-check-label[for="trajetsNonRealises"] {
  color: var(--ms-blue);
}

/* =========================================================================
   PAGE CONGES : dashboard validation + archives
   ========================================================================= */

.page-conges main {
  background: linear-gradient(to bottom, #f9fcfd 0, #e6f3f3 380px);
}

/* Titre de page Congés */
.page-title {
  color: var(--ms-primary);
  font-weight: 600;
  letter-spacing: .04em;
}

/* Onglets "Demandes / Archives" */

.conges-tabs {
  border-bottom: none;
  margin-bottom: 1.25rem;
  gap: .5rem;
}

.conges-tabs .nav-link {
  border-radius: 999px;
  padding: .45rem 1.2rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--ms-muted);
  background-color: transparent;
  border: none;
}

.conges-tabs .nav-link.active {
  background-color: var(--ms-white);
  color: var(--ms-text);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
  border: 1px solid var(--ms-border);
}

/* Filtres de période avec "OU" */

.period-filter-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  font-size: .85rem;
}

.period-option {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background-color: var(--ms-soft);
  cursor: pointer;
}

.period-option input[type="radio"] {
  margin: 0;
  accent-color: var(--ms-primary);
}

.period-or {
  font-size: .75rem;
  font-weight: 600;
  color: var(--ms-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Tableaux de congés */

.conges-table {
  font-size: .85rem;
}

.conges-table thead th {
  font-weight: 500;
  color: var(--ms-muted);
  border-bottom: 1px solid var(--ms-border);
}

.conges-table tbody td {
  padding: .45rem 0;
  vertical-align: middle;
  border-top: 1px solid rgba(0, 0, 0, .03);
}

.conges-table .form-check-input {
  margin-top: 0;
}

/* Badges de statut */

.badge-status {
  border-radius: 999px;
  font-size: .75rem;
  padding: .15rem .55rem;
  font-weight: 500;
}

.badge-status.waiting {
  background-color: #fff3e0;
  color: #f57c00;
}

.badge-status.approved {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.badge-status.refused {
  background-color: #ffebee;
  color: #c62828;
}

.badge-status.cancelled {
  background-color: #eceff1;
  color: #546e7a;
}

/* Actions de masse */

.conges-bulk-actions {
  border-top: 1px dashed var(--ms-border);
  padding-top: .75rem;
  margin-top: 1rem;
}

.conges-bulk-actions .btn {
  border-radius: 999px;
  font-size: .78rem;
  padding: .25rem .7rem;
}

/* =========================================================================
   CONGES : onglets Vue liste / Vue calendrier
   ========================================================================= */

.conges-view-tabs {
  border-bottom: none;
  margin-top: .25rem;
  margin-bottom: 1rem;
  gap: .5rem;
}

.conges-view-tabs .nav-link {
  border-radius: 999px;
  padding: .4rem 1.1rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--ms-muted);
  background-color: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
}

.conges-view-tabs .nav-link i {
  font-size: 1rem;
}

.conges-view-tabs .nav-link.active {
  background-color: var(--ms-white);
  color: var(--ms-text);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .06);
  border: 1px solid var(--ms-border);
}

/* =========================================================================
   VUE CALENDRIER CONGES
   ========================================================================= */

.conges-calendar-card {
  padding: 1.5rem 1.3rem;
}

.calendar-toolbar .btn-group .btn {
  border-radius: 999px !important;
}

.calendar-toolbar .btn-group .btn.active {
  background-color: var(--ms-secondary);
  color: #fff;
  border-color: var(--ms-secondary);
}

.calendar-title {
  font-weight: 600;
  font-size: 1rem;
}

/* Layout grille + sidebar */

.conges-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1rem;
}

@media (max-width: 992px) {
  .conges-calendar-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Grille calendrier */

.calendar-grid-wrapper {
  overflow-x: auto;
}

.calendar-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: .8rem;
  background-color: #f5f8fa;
}

.calendar-grid thead th {
  text-align: center;
  padding: .35rem .25rem;
  border-bottom: 1px solid #d7e0e6;
  background-color: #e9f1f4;
  font-weight: 500;
}

.calendar-grid tbody th.time-col {
  width: 60px;
  text-align: right;
  padding-right: .4rem;
  color: var(--ms-muted);
  background-color: #f0f4f7;
  font-weight: 500;
}

.calendar-grid td,
.calendar-grid th.time-col {
  border-bottom: 1px solid rgba(0, 0, 0, .03);
  border-right: 1px solid rgba(0, 0, 0, .03);
  height: 36px;
}

/* Bloc d'absence rouge rayé */

.calendar-event-block {
  background-image: repeating-linear-gradient( -45deg, #ffb74d, #ffb74d 8px, #ffecec 8px, #ffecec 16px );
  border-radius: 6px;
  color: #000;
  font-size: .75rem;
  padding: .15rem .3rem;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
}

/* Sidebar événements */

.calendar-sidebar {
  background-color: #fafcfd;
  border-radius: 14px;
  border: 1px solid var(--ms-border);
  padding: 1rem 1rem;
}

.calendar-sidebar-header {
  display: flex;
  align-items: center;
  font-size: .9rem;
}

.calendar-sidebar-section {
  font-size: .8rem;
}

.calendar-sidebar-section .sidebar-section-title {
  font-weight: 600;
  margin-bottom: .5rem;
}

.calendar-legend-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .25rem 0;
}

.legend-color {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  margin-right: .5rem;
}

/* couleurs type absence */
.legend-color.cpa { background-color: #f06292; }
.legend-color.cpe { background-color: #ffb74d; }
.legend-color.rcr { background-color: #4fc3f7; }
.legend-color.rtt { background-color: #81c784; }

.legend-code {
  font-size: .72rem;
  font-weight: 600;
  color: var(--ms-muted);
  margin-left: .3rem;
}

/* =========================================================================
   Congés – lisibilité du tableau d'archives
   ========================================================================= */

/* Plus de padding horizontal/vertical dans les cellules */
.conges-table th,
.conges-table td {
  padding: 0.55rem 1.5rem;
  line-height: 1.35;
}

/* Spécifique à l’onglet Archives : texte un peu aéré et aligné en haut */
#tab-archives .conges-table td {
  vertical-align: top;
}

/* Colonne "Message envoyé au salarié" plus large + retour à la ligne correct */
#tab-archives .conges-table td:last-child {
  min-width: 280px;
  white-space: normal;
  word-break: break-word;
}







input[type="checkbox"].icheck-hidden {
    display: none !important;
}