body.sign-in-bg{
  min-height: 100vh;
  background: linear-gradient(
    90deg,
    #FFFFFF 0%,
    #FFFFFF 50%,
    #fca62944 50%,
    #fca62944 100%
  )!important;
  background-repeat: no-repeat!important;
  background-size: cover!important;
}


.select2-selection.select2-selection--multiple {
	padding: 0.8rem 0.75rem;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
	margin-right: 3px;
}

.app-datatable-default .dataTables_wrapper .dataTables_paginate {
    padding: 0.8rem 0.6rem 0 1rem!important;
}

.dataTables_wrapper.no-footer .dataTables_scrollBody {
	border-bottom: 1px dashed rgba(var(--secondary), 0.4)
}
.app-datatable-default .dataTables_wrapper table.dataTable.display > tbody > tr.odd {
      background-color: rgba(var(--secondary), 0.5)!important;
}
.app-datatable-default .dataTables_wrapper table tbody tr.odd td {
	  color: #FFF!important;
}

.pilot-popup b { font-size: 14px; }
.pilot-popup { line-height: 1.25; }

#weekN{
	position: absolute;
    right: 310px;
    top: 180px;
    background: rgba(var(--dark), 1);
    color: #FFF;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 44px;
    width: auto;
    height: 32px;
    padding: 0 14px 0 14px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 19999;
}
#weekN span.s {
	font-size: 10px;
}
#weekN span.w {
	font-size: 14px;
}
.form-control:focus {
    outline: 0!important;
    box-shadow: none!important;
	border-color: var(--bs-border-color)!important;
}

table .card {
	margin-top: 1.25rem;
}
table .card .card-body, .leafLetMap .card .card-body {
	padding: 0;
	border-radius: var(--app-border-radius);
}
table .card .card-body .leaflet-container, .leafLetMap .card .card-body .leaflet-container {
	border-radius: var(--app-border-radius);
}
form#userForm, form#missionForm, form#uasForm, form#vehicleForm, form#batteryForm, #formFake {
	padding: 10px;
}

nav {
	box-sizing: border-box;
    border-bottom: 10px solid rgba(var(--primary), 1);
	box-shadow: none!important;
	border-bottom-right-radius: 110px!important;
	border-top-right-radius: 0!important;
	overflow: hidden;
}

nav .menuInactive {
	opacity: 0.5;
	padding: 0.6rem 1rem;
    font-weight: 500;
    color: rgba(var(--dark), 1);
    width: 100%;
    display: inline-flex;
    font-size: 16px;
    align-items: center;
    text-transform: capitalize;
    border-radius: var(--app-border-radius);
}
nav .menuInactive i {
	font-size: 1.3rem;
    margin-right: 0.3rem;
    margin-top: 0;
}

.glightbox-clean .gdesc-inner { padding: 5px; }
.glightbox-clean h4.gslide-title { margin-bottom: 0; }

.message.show {
    display: block;
    opacity: 1;
}
.missionName {
	font-weight: bold;
	font-size: 19px!important;
	padding-left: 0;
}
form#userForm .btn, form#missionForm .btn, form#uasForm .btn, form#batteryForm .btn, form#vehicleForm  .btn, button.add.btn, button.massupdate.btn, button.massremove.btn, button.export.btn, button.updateBriefing.btn, button.briefing-save.btn, button.briefing-undo.btn {
	font-size: 28px;
	border: 0;
	width: 53px;
    height: 53px;
}

button.massupdate.btn:disabled {
	background: #ccc;
}

table.dataTable thead>tr>th.sorting, table.dataTable thead>tr>th.sorting_asc, table.dataTable thead>tr>th.sorting_desc, table.dataTable thead>tr>th.sorting_asc_disabled, table.dataTable thead>tr>th.sorting_desc_disabled, table.dataTable thead>tr>td.sorting, table.dataTable thead>tr>td.sorting_asc, table.dataTable thead>tr>td.sorting_desc, table.dataTable thead>tr>td.sorting_asc_disabled, table.dataTable thead>tr>td.sorting_desc_disabled {
	padding-left: 0;
}

table.dataTable td.dt-control { width: 40px; padding-left: 0!important; }

.flight-photo-thumb { cursor: zoom-in; }

.sw {  }
#filters {
	position: absolute;
	z-index: 10000;
	height: 200px;
	width: 120px;
	bottom: 65px;
    left: 255px;
	padding: 30px 10px 10px 10px;
	border-radius: var(--app-border-radius);
	background-color: #FFFFFFBB;
	border: 1.5px solid rgba(var(--dark), 1);
}
#filters .card {
	margin-bottom: 0.25rem;
}
.main-switch input[type=checkbox].toggle + label {
    padding-right: 0.75rem;
}
#pilotFilters {
    position: absolute;
    z-index: 10000;
	min-width: 110px;
    height: 200px;
    bottom: 65px;
    left: 385px;
    padding: 30px 10px 10px 10px;
    border-radius: var(--app-border-radius);
    background-color: #FFFFFFBB;

    /* --- GRILLE AVEC REMPLISSAGE PAR COLONNES --- */
    display: grid;
    grid-auto-flow: column;            /* ⬅️ remplissage vertical */
    grid-auto-columns: 41px;           /* largeur de chaque colonne */
    grid-template-rows: repeat(3, 41px); /* 3 lignes max (170px ≈ 3 lignes) */
    gap: 4px;
    overflow: hidden;
    width: auto;                       /* largeur flexible */
    max-width: none;
	
	border: 1.5px solid rgba(var(--dark), 1);
}

/* Container */
.pilot-item {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
}

/* Avatar */
.pilot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid rgba(var(--primary), 1);
}

/* Trigramme : caché par défaut */
.pilot-label {
    display: none;
    font-size: 11px;
    margin-top: -28px;
    font-weight: 600;
    text-transform: uppercase;
    color: #333;
    text-align: center;
    width: 100%;
}

/* 🔥 Afficher le trigramme si image manquante */
.avatar-missing + .pilot-label {
    display: block;
}

/* États actif/inactif */
.pilot-active .pilot-avatar {
    filter: none;
    border-color: rgba(var(--primary), 1);
	background-color: rgba(var(--primary), 0.15);
}

.pilot-inactive .pilot-avatar {
    filter: grayscale(100%);
    border-color: #666;
	background-color: rgba(var(--secondary), 0.3);
}

#massUpdateModal span.select2-container { width: 100%!important; }

#dateFilters {
    position: absolute;
    z-index: 10000;
    top: 160px;
    right: 30px;
    padding: 0;
}
#dateFilters input { 
	text-align: center;
	width: 280px;
	height: 32px;
	border-top-right-radius: var(--app-border-radius);
	border-bottom-right-radius: var(--app-border-radius);
	border-top-left-radius: 0; 
	border-bottom-left-radius: 0; 
}

.app-datatable-default .dataTables_wrapper table thead th {
    padding: 0 0.25rem!important;
	height: 50px;
}



.flatpickr-day.today {
    background-color: rgba(var(--dark), 1)!important;
    color: var(--white);
    border: none;
}

.proContent {
	margin-bottom: 30px;
}



div > footer a.link { color: var(--secondary)!important; }

.proContent .cardColored {
	background-color: #ccc;
}

h7 { font-size: 11px; margin: 0; }
.text-muted { font-size: 10px; margin: 0; }

.tt_missionTitle {     
	position: absolute;
	text-align: center;
	width: 120px;
    z-index: 20000;
    bottom: 245px;
    left: 255px;
    background: rgba(var(--dark), 1);
    color: var(--white);
    padding: 5px;
    border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-top-left-radius: var(--app-border-radius);
	border-top-right-radius: var(--app-border-radius);
}
.tt_userTitle {
	text-align: center;
	min-width: 110px;
	position: absolute;
    z-index: 20000;
    bottom: 245px;
    left: 385px;
    background: rgba(var(--dark), 1);
    color: var(--white);
    padding: 5px;
    border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
	border-top-left-radius: var(--app-border-radius);
	border-top-right-radius: var(--app-border-radius);
}

.tt_userActions {
	text-align: center;
	min-width: 110px;
	position: absolute;
    z-index: 20000;
    bottom: 65px;
	font-size : 11px;
    left: 385px;
    background: rgba(var(--dark), 1);
    color: var(--white);
    padding: 5px;
    border-top-left-radius: 0;
	border-top-right-radius: 0;
	border-bottom-left-radius: var(--app-border-radius);
	border-bottom-right-radius: var(--app-border-radius);
}
.tt_userActions span {
	padding: 1px 7px;
	cursor: pointer;
}
.tt_userActions span.active {
	background: #FFF;
	color: rgba(var(--dark), 1);
	border-radius: 10px;
}

.tt_dateRangeTitle { 
	position: absolute;
    z-index: 20000;
    top: 160px;
	height: 32px;
    right: 310px;
    background: rgba(var(--dark), 1);
    color: var(--white);
    padding: 5px 14px 5px 14px;
    border-top-left-radius: var(--app-border-radius);
	border-bottom-left-radius: var(--app-border-radius);
}

#flightList td.flight-child-row textarea:focus-visible {
	border-color: color: rgba(var(--secondary), 0.5)!important;
	outline: unset;
}

#flightList td.flight-child-row {
	padding-right: 5px;
	margin-left: 0;
}
#flightList td.flight-child-row table, #flightList td.flight-child-row table tr td {
	border: 0!important;
}

.userList thead tr td:nth-child(2),
.userList .child-row-datatable thead tr th:nth-child(2),
.flightList thead tr td:nth-child(2),
.flightList .child-row-datatable thead tr th:nth-child(2) {
    width: 60px!important;
	min-width: 20px!important;
	max-width: 200px!important;
    text-align: left;
}



/* Carte calendrier full-height */
.calendar-card {
    height: calc(100vh - 200px);   /* 150 = marge en pixels à ajuster */
    display: flex;
    flex-direction: column;
}

.calendar-card .card-body {
    flex: 1;
    overflow: hidden; /* évite les scrolls parasites */
}

#calendar {
    height: 100% !important;
}

.fc-button-disabled {
	opacity: 0!important;
}

#resultCount {
	padding-left: 30px;
	font-size: 16px;
	font-weight: bold;
	color: rgba(var(--primary));
}

/* S'assurer que le backdrop passe au-dessus du header */
.modal-backdrop.show {
    z-index: 30010 !important;
}

/* Et que la fenêtre modale est encore au-dessus du backdrop */
.modal.show {
    z-index: 30020 !important;
}
.fc .fc-daygrid-event {
	margin-top: 3px; height: 53px;
}
.fc-h-event .fc-event-main {
    line-height: 32px;
}
.app-calendar .fc-daygrid-day.fc-day-today, .fc .fc-daygrid-day.fc-day-today {
	background-color: transparent!important;
}

.pilot-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-right: 8px;
    cursor: pointer;
}

/* A un rôle dans au moins une mission + sélectionné dans les filtres */
.pilot-active .pilot-avatar {
    opacity: 1;
    filter: none;
    border: 2px solid rgba(var(--primary),1);
}

/* A des missions pour les filtres dates/states, mais retiré du filtre */
.pilot-unselected .pilot-avatar {
    opacity: 0.6;
    filter: grayscale(0.3);
    border: 2px dashed rgba(var(--secondary),1);
}

.pilot-inactive {
	display: none;
}

/* Aucun vol pour lui sur ces dates/states */
.pilot-inactive .pilot-avatar, .pilot-inactive .pilot-label {
    opacity: 0.15;
    filter: grayscale(1);
    border: 1px solid transparent;
    cursor: default;
}


/* sidebar */
nav .app-nav .main-nav > li:not(.menu-title) > a.active {
	background: rgba(var(--primary), 1);
    color: white;
}

nav ul li.active2 {
	background: #b7b7b7;
	padding: 5px 0;
	text-align: center;
    font-size: 18px;
}
nav ul li.active2 a {
    color: white!important;
}
nav ul li.active3 {
	text-align: center;
    color: #ededed;
    font-size: 30px;
    font-weight: bold;
}

.popup-table { width: 100%; border-collapse: collapse; }
.popup-table th { text-align: left; padding: 4px 8px 4px 0; vertical-align: top; white-space: nowrap; }
.popup-table td { padding: 4px 0; }
.popup-title { font-weight: 700; margin-bottom: 4px; }
.popup-sub { margin-bottom: 6px; }
.popup-section-title { font-weight: 600; margin: 8px 0 4px; }




.instantView .pilot-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #333333;
    color: #ffffff;

    font-weight: 700;
    font-size: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;

    border: 2px solid #ffffff;
    box-sizing: border-box;
  }

.instantView .pilot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

.instantView .pilot-avatar.has-photo span {
    display: none;
  }
.instantView .pilot-marker i{
    font-size: 20px;
    line-height: 20px;
}

.mapSelector {
	width: 63px;
    height: 63px;
    box-sizing: border-box;
    border: 5px solid #FFF;
    position: absolute;
    z-index: 100000;
    top: 11px;
    left: 56px;
    border-radius: 10px;
	cursor: pointer;
	background-size: cover;
}

.mapSelector#tomtom {
	background: url('../images/ui/ic_menu_sat.png') no-repeat center;
	
}
.mapSelector#osm {
	background: url('../images/ui/ic_menu_osm.png') no-repeat center;
}