body {
    padding-bottom: 30px;
}

.bloc-signature {
    min-width: 270px;
}

.table-equipe {
    font-weight: 500;
}

.table-equipe .col-12 {
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 15px;
    margin-bottom: 15px !important;
}

.datatable .btn {
    font-size: 16px;
}

.table-bapa-prec,
table.dataTable {
    border-radius: 5px;
    overflow: hidden;
    font-weight: 500;
}

div.dt-container .dt-search input[type="search"].dt-input {
    border: 1px solid #e9ecef;
    border-radius: 5px;
}

div.dt-container.dt-empty-footer tbody>tr:last-child>* {
    border-bottom: 1px solid rgb(216 226 239);
}

.emma40.my-5{
    margin:0.5rem;
}

.btn-container .btn {
    max-width: 48%;
    margin-top: 0;
    margin-bottom: -15px;
    margin-left: 13px;
}

.mb-4 .just-validate-error-label[data-tooltip="true"] {
    margin-left: 4%;
    background-color: #ee002C;
    color: white;
}

.mb-4 .just-validate-error-label[data-tooltip="true"]::before {
    border-bottom: solid 5px #ee002c;
}

.user-info {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: white;
}

.profil-manager {
    margin-top: 50px;
}

.btn-retour .btn {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.btn-envoyer .btn {
    display: flex;
    justify-content: center;
}

.btn-container {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
}
.card .card-body>select {
    margin-right: 10px;
    margin-bottom: 15px;
}

.form-reini-mdp label {
    width: 100%;
    font-size: 16px;
    margin-bottom: 0;
}

.form-reini-mdp button {
    margin-top: 15px;
}

.change-mdp h2 {
    font-size: 28px;
    margin: 10px 0 20px 0;
}

.change-mdp form ul li {
    margin-top: 12px;
    color: red;
    font-weight: 600;
}

#email-preview-content {
    background-color: rgb(216, 243, 255);
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid rgb(169, 228, 254);
    border-radius: 4px;
}

.printemploy .table-bordered th {
    vertical-align: middle;
}

.tableappreci th {
    background: #efefef;
    font-size: 15px;
}

.table-bordered.tableappreci td {
    padding: 6px 8px;
    vertical-align: middle;
}

.tableappreci .cases-na {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tableappreci .cases-na div {
    min-height: 17px;
}

.tableappreci .case-na {
    width: 100%;
    border-top: 1px solid #dee2e6;
}

.printemploy h4 {
    font-size: 18px;
}

.printemploy p {
    margin-bottom: 0;
}

.table-lowpadding td,
.table-lowpadding th {
    padding: 8px;
}

.table-infostop th {
    padding: 2px 12px;
}

.table-valcomp td {
    text-align: left !important;
    padding: 8px !important;
}

.table-valcomp {
    margin-top: 15px;
}

.printemploy .leg-na {
    margin-top: -16px;
    font-size: 14px;
    margin-bottom: 18px;
}
.charac-spec {
    padding-left: 26px;
}

#password-criteria {
    margin-bottom: 0;
}
.filtres {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    width: auto;
    margin: auto;
}

.date-select {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 10px;
}

.date-select label {
    font-weight: bold;
}

.trimestre-select {
    display: flex;
    font-weight: bold;
    flex-wrap: wrap;
    margin-bottom: 10px;
    flex-direction: column;
    justify-content: space-between;
}

.manager-select,
.service-select {
    display: flex;
    font-weight: bold;
    flex-wrap: wrap;
    margin-bottom: 10px;
    flex-direction: column;
    justify-content: space-between;
}

.ou {
    font-weight: bold;
}

.extractions {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    width: 40%;
    margin: 1rem auto auto;
    text-align: center;
}

.form-acces-service {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.table-acces-service {
    margin-top: 30px;
}

.form-group-service {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.form-group-service .btn {
    margin-top: 10px;
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.ui-menu .ui-menu-item {
    padding: 12px 16px;
    font-size: 16px;
    color: #125555;
}

.ui-menu .ui-menu-item:hover {
    background-color: #e8f4ff;
    color: #125555;
    border-left: 2px solid #125555;
}

.ui-menu .ui-menu-item.ui-state-focus {
    background-color: #007e80;
    color: #fff;
    font-weight: bold;
}

input.ui-autocomplete-input {
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #ccc;
    font-size: 16px;
    color: #333;
}

input.ui-autocomplete-input:focus {
    border-color: #125555;
    outline: none;
}

.green-modal .modal-content {
    background-color: #D9F8EB;
    border: 1px solid #99EDCA;
    color: #00894f;
}

.table .thead-light th {
    vertical-align: middle;
}

/* Styles "Historique des BAPA de vos Équipes indirectes" */
.filtres-bei {
    margin-bottom: -52px !important;
    margin-top: 28px;
    width: 66%;
    z-index: 999;
    position: relative;
}

/** * Styles pour le spinner de chargement */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
    font-family: sans-serif;
}

.spinner-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #125555;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.spinner-text {
    font-size: 1.1rem;
    color: #333;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.filtre-container {
    padding: 1rem;
    background-color: #f4f4f4;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

.groupes {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}

.filtre-groupe {
    display: flex;
    box-sizing: border-box;
    padding: 0.5rem;
    background-color: white;
    border-radius: 5px;
    flex-direction: column;
}

.filtre-groupe label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: #333;
}

.filtre-groupe input,
.filtre-groupe select {
    padding: 0.4rem 0.6rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.filtre-separateur {
    align-self: center;
    font-weight: bold;
    color: #777;
    margin: 0 0.5rem;
}

.filtre-separateur.large {
    padding: 1rem;
}

/* âœ… Responsive */
@media (max-width: 768px) {
    .filtres {
        flex-direction: column;
    }

    .filtre-groupe {
        width: 100%;
    }

    .filtre-separateur {
        align-self: flex-start;
        margin: 0.5rem 0;
    }
}

#header_emma40 {
    background-color: #125555;
    color: white;
}



#mdp_header_emma40 {
    color: #125555;
}
/* Hauteur de la navbar */
.navbar,
.container-fluid {
  padding: 0;
  margin: 0;
  height: 100px; /* ajuste ici la hauteur */
}

/* Bloc logo sur 1/3 */
.logo-container {
  width: 33.33%;
  height: 100%;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Bloc liens sur 2/3 */
.navbar-nav {
  width: 66.66%;
  height: 100%;
  display: flex;
  justify-content: flex-end; /* ✅ alignement à droite */
  align-items: center;
  padding-right: 2rem;
}

/* Si Bootstrap écrase ton justify-content avec flex-direction */
.navbar-expand .navbar-nav {
  flex-direction: row !important;
  justify-content: flex-end !important;
}

/* Image responsive */
#logo-emma40 {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

#navbar_emma40 {
    background-color: #125555;
}

#navbarNav a.nav-link {
    color: white;
}

#texte_emma40 {
    color: white
}

.iframes-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

#btn_emma40_white {
    background-color: white;
    color: #007e80;
}

.btn-custom {
    background-color: #125555;
    border-color: #125555;
    color: #fff;
    margin-right: 5px;
    margin-top: 5px;
}

.btn-custom-primary {
    background-color: #0b5ed7;
    border-color: #0b5ed7;
    color: #fff;
    margin-right: 5px;
    margin-top: 5px;
}

.btn-custom i{
    color: #a1b50c;
}

.btn-success-custom i{
    color: #a1b50c;
}

.page-form .form-label{
    color: #125555;
}

.btn-custom:hover,
.btn-custom:focus {
    color: black;
}

.btn-custom-user {
    background-color: #125555;
    border-color: #125555;
    color: #fff;
    margin-right: 5px;
    margin-top: 5px;
    font-size: 1rem;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
}

#btn-logout {
    background-color: #fff;
    border-color: #125555;
    color: #125555;
    transition: all 0.2s ease-in-out;
}

#btn-logout:hover {
    background-color: #00666b;
    border-color: #005c60;
    color: #fff;
    box-shadow: 0 0 5px rgba(0, 126, 128, 0.3);
}

.user-edit-form h1 {
    font-weight: 700;
    font-size: 2rem;
    color: #125555;
}

.user-edit-form .form-label {
    color: #125555;
    font-size: 1rem;
}

.user-edit-form .form-control {
    border-radius: 8px;
    border: 1px solid #125555;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.3s ease;
}

.user-edit-form .form-check {
    color: #125555;
}

.user-edit-form .form-control:focus {
    border-color: #125555;
    box-shadow: 0 0 5px rgba(0, 126, 128, 0.5);
}

.user-edit-form .form-check-input {
    width: 1.25em;
    height: 1.25em;
    cursor: pointer;
    border-color: 1px #125555;
}

.user-edit-form .form-check-label {
    cursor: pointer;
}

.user-edit-form .btn-outline-secondary {
    border-radius: 8px;
    padding: 0.4rem 1rem;
}

.user-edit-form .btn-success {
    background-color: #125555;
    border: none;
    border-radius: 8px;
    padding: 0.4rem 1.5rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.user-edit-form .btn-success:hover {
    background-color: #125555;
}

/* Section de fond */
.allowed-users-section {
    padding: 1.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.allowed-users-section .form-label {
    color: #125555;
    font-weight: 600;
}

.style_twig{
    width: 100%;
    max-width: 1000px;
}

.style_twig h1 h2{
    color: #125555;
}

.container my-5 h1{
    color: #125555;
}

.mb-4, .my-4 h1{
    color: #125555;
}

#collaborateursTable th{
    white-space: nowrap;
    width: 124px;
}

#PagesTable th{
    white-space: nowrap;
    width: 124px;
}


/* Recherche */
.allowed-users-section .form-control {
    border-radius: 20px;
    padding-left: 1rem;
}

/* Boîte utilisateur */
.user-box {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s, background-color 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.user-box:hover {
    background-color: #f1fbfb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.user-box .form-check-input {
    transform: scale(1.2);
    margin: 0;
}

/* Nom d’utilisateur */
.user-box .user-name {
    font-weight: 500;
    color: #125555;
    font-size: 1rem;
    margin-left: 20px;
    display: inline-block;
}

.heading-with-icon {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 2rem;
    color: #125555;
}

.heading-with-icon i {
    font-size: inherit;
    line-height: 1;
    vertical-align: middle;
}

.btn-danger-custom {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
    margin-right: 5px;
    margin-top: 5px;
}

.btn-warning-custom {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #fff;
    margin-right: 5px;
    margin-top: 5px;
}

.btn-success-custom {
    background-color: #125555;
    border-color: #125555;
    color: #fff;
    margin-right: 5px;
    margin-top: 5px;
}

.btn-dark-custom {
    background-color: #343a40;
    border-color: #343a40;
    color: #fff;
    margin-right: 5px;
    margin-top: 5px;
}

.btn-dark-custom:hover {
    color: #212529;
    background-color: grey;
    border-color: grey;
}

/* Navbar globale */
.navbar {
    background-color: #125555;
    color: #fff;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-brand img {
    height: 70px;
    width: auto;
    border-radius: 4px;
}

.navbar-text {
    font-size: 0.95rem;
    color: #fff;
}

/* Liens de la navbar */
.navbar-nav .nav-link {
    color: #fff;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}

.navbar-nav .nav-link i {
    color: #a1b50c;
}

.navbar-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(0, 176, 179, 0.1);
    border-radius: 6px;
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: 600;
    border-bottom: 2px solid #a1b50c;
}

/* Menu déroulant Superadmin */
.nav-item.dropdown .nav-link {
    color: #fff;
    font-weight: 500;
}

.nav-item.dropdown .nav-link:hover {
    background-color: rgba(0, 176, 179, 0.1);
    border-radius: 6px;
}

/* Style de la dropdown menu */
.nav-item.dropdown .dropdown-menu {
    background-color: #125555;
    border: none;
    border-radius: 6px;
}

.nav-item.dropdown .dropdown-menu .dropdown-item {
    color: #fff;
    font-weight: 500;
    transition: background 0.2s ease;
}

.nav-item.dropdown .dropdown-menu .dropdown-item i {
    color: #a1b50c;
}

.nav-item.dropdown .dropdown-menu .dropdown-item:hover {
    background-color: rgba(0, 176, 179, 0.2);
    color: #fff;
}

.nav-item.dropdown .dropdown-menu .dropdown-item.active {
    background-color: rgba(0, 176, 179, 0.3);
    color: #fff;
    font-weight: 600;
}

/* Activer l'élément de la dropdown active */
.nav-item.dropdown .nav-link.active {
    color: #fff !important;
    font-weight: 600;
    border-bottom: 2px solid #a1b50c;
}

/* L'icône du dropdown */
.navbar-nav .nav-link.dropdown-toggle i {
    color: #a1b50c;
}

.navbar-nav .nav-link.dropdown-toggle:hover i {
    color: #fff;
}


.btn-outline-light {
    border-color: #00b0b3;
    color: #00b0b3;
}

.btn-outline-light:hover {
    background-color: #00b0b3;
    color: #fff;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1200px) {
    .btn-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .iframe-container {
        height: 100vh;
    }
}

@media (max-width: 992px) {
    .heading-with-icon {
        font-size: 1.6rem;
    }

    .filtres, .groupes {
        flex-direction: column;
        align-items: stretch;
    }

    .filtre-groupe {
        width: 100% !important;
    }

    .iframe-container {
        height: 60vh;
        width: 100%;
    }

    .btn-container .btn {
        max-width: 100%;
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .extractions {
        width: 100%;
    }

    .allowed-users-section {
        padding: 1rem;
    }

    .navbar-brand img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .filtres,
    .groupes,
    .btn-container {
        flex-direction: column !important;
        align-items: stretch;
    }

    .filtre-groupe {
        width: 100% !important;
    }

    .btn-container .btn {
        width: 100%;
        margin-left: 0;
        margin-bottom: 10px;
    }

    .iframe-container {
        height: 50vh;
        width: 100%;
    }

    .heading-with-icon {
        font-size: 1.4rem;
    }

    th, td {
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .navbar-nav .nav-link {
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .btn {
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 10px;
    }

    .iframe-container {
        height: 45vh;
        width: 100%;
    }

    .user-box .user-name {
        font-size: 0.9rem;
    }

    .heading-with-icon {
        font-size: 1.2rem;
    }

    .navbar-brand img {
        height: 40px;
    }
}
