.table__wrapper,
.main__wrp {
    min-height: calc(100vh - 25px);
}

.access__ctr {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    min-height: 82vh;
    max-height: 82vh;
}

.form__wrp {
    flex: .33;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 16px;
    background-color: #fff;
    margin: 20px auto 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
    .form__wrp .form-group {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        text-align: left;
    }
        .form-group label {
            font-weight: bold;
        }
        .form-group input,
        .form-group select {
            padding: 8px;
            border: 1px solid #ccc;
            border-radius: 4px;
            width: calc(100% - 20px);
        }

.access__wrp {
    flex: .66;
}

body:has(.access__ctr) #main_title,
body:has(.table__clients) .mnemosyne_titre2 {
    display: none;
}

body:has(.access__ctr) #main_main {
    overflow: hidden;
}

/* Accès */
/* Conteneur principal */
.access__wrp {
    max-width: 625px;
    margin: 20px auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-family: 'Arial', sans-serif;
}

/* Message d'absence d'accès */
.access__empty {
    text-align: center;
    justify-content: center;
    color: #888;
    font-size: 1.2em;
    padding: 20px 0;
}

/* Table stylisée */
.access__table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Entête du tableau */
.access__table thead {
    background-color: #3024b2;
    color: white;
    text-align: left;
}

.access__table th, .access__table td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

.access__table th {
    font-size: 1em;
}

/* Corps du tableau */
.access__table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.access__table tbody tr:hover {
    background-color: #f1f1f1;
}

/* Bouton afficher le mot de passe */
.edit__access,
.reveal__pwd,
.remove__access {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.2em;
    color: #3024b2;
    transition: color 0.3s ease;
}

.edit__access:hover,
.reveal__pwd:hover {
    color: #251b8e;
}

.remove__access:hover {
    color: #f00;
}

.active {
    display: flex;
}

.not-active,
.hidden {
    display: none;
}

.access__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.access__header input {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-width: 200px;
}

/* Icône oeil */
.edit__access i,
.reveal__pwd i {
    pointer-events: none;
}

.access__table input {
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-width: 120px;
}

.access__table .actions {
    white-space: nowrap;
}

/* Responsive design */
@media (max-width: 600px) {
    .access__wrp {
        padding: 15px;
    }

    .access__table th, .access__table td {
        font-size: 0.9em;
    }
}

/* Champs de formulaire */
.access__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.form-control {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #3024b2;
    outline: none;
}

/* Bouton de soumission */
.btn-primary {
    background-color: #ec735e;
    border: none;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.btn-primary.cancel {
    background-color: indianred;
}

.btn-primary.cancel:hover {
    background-color: #d65a44;
}

.btn-primary:not(:disabled):hover {
    background-color: #d65a44;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
    }

    .access__wrp, .form__wrp {
        flex: 1;
        width: 100%;
    }
}
/* Fin accès */

.header__infos, 
.client__exercices {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.client__exercices {
    display: none;
    justify-content: flex-end;
    gap: 10px;
}

.clients__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
}

.clients__options__item {
    position: relative;
    border: 1px solid #80C5DD;
    border-radius: 5px;
}

.clients__options__item i {
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.is-admin .clients__options__item {
    /* pointer-events: none; */
}

.clients__options__item label {
    display: flex;
    align-items: stretch;
    cursor: pointer;
}

.clients__options__item label span {
    border-left: 1px solid #80C5DD;
    padding: 4px;
}

.clients__option__checkbox {
    display: none;
}

.clients__options__item:has(.clients__option__date:not(:empty)) {
    margin-bottom: 20px;
}

.clients__option__date {
    position: absolute;
    font-size: 12px;
    top: 107%;
}

#main_title .cercle_rubriques {
    transform: translateY(5px);
  display: inline-block;
  border-radius: 50%;
  aspect-ratio: 1/1;
  box-sizing: border-box;
}

/* Client comment */
.client__comment__wrp {
    display: inline-block;
}
.client__comment__opener {
    display: inline-block;
    cursor: pointer;
    font-size: 1rem;
    color: #3024b2;
    transition: color 0.3s ease;
    background: none;
    border: none;
}

.client__comment__wrp {
    position: relative;
    display: inline-block;
}

.client__comment__content {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    filter: drop-shadow(0 0 0.75rem rgba(0, 0, 0, 0.1));
    padding: 10px;
    display: none;
    width: 250px;
    z-index: 1000;
}

.client__comment__content:not([style])::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #fff;
}
  
  /* Affichage du contenu quand la modal est active */
  .client__comment__wrp.is-active .client__comment__content {
    display: block;
  }
  
  /* Header du contenu (pour les icônes de statut et d'action) */
  .client__comment__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 8px;
  }
  
  /* Zone de statut */
  .client__comment__status {
    font-size: 18px;
    color: green;
  }
  .client__comment__status .fa-ellipsis-h {
    color: #5e5e5e;
  }
  
  /* Zone des actions */
  .client__comment__actions {
    display: flex;
    gap: 10px;
    font-size: 18px;
  }
  
  /* Style commun pour les icônes d'action */
  .client__comment__actions i {
    cursor: pointer;
  }
  
  /* Icône de drag */
  .client__comment__drag {
    color: #333;
  }
  
  /* Icône de fermeture */
  .client__comment__close {
    color: #d00;
  }
  
  /* Style du textarea */
  .client__comment__textarea {
    width: 100%;
    min-height: 100px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 6px;
    box-sizing: border-box;
    resize: vertical;
    font-family:Verdana, Geneva, sans-serif;
    font-size: 14px;
  }

.client-edit-dialog,
.client-import-dialog,
.option-confirm-dialog {
    border: 1px solid #80C5DD;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 80%;
}

.save-client {
    width: 100%;
}

.to-import {
    border: 1px solid #80C5DD; 
    cursor: pointer; 
    border-radius: 5px;
    background-color: transparent;
    padding: 3px;
}

/* Titre du dialog */
dialog.client-import-dialog h3 {
    margin-top: 0;
    color: #333;
}
  
/* Style de la table dans la modal */
dialog.client-import-dialog table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 15px;
}

dialog.client-import-dialog th,
dialog.client-import-dialog td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

dialog.client-import-dialog th {
    background-color: #f4f4f4;
    font-weight: bold;
    color: #555;
}
dialog.client-import-dialog button {
    font-size: .9rem;
    padding: 10px;
}

.legal {
    padding-top: 30px;
}

.legal__links {
    padding-top: 20px;
}

.legal a,
.legal__links a {
    color: #fff;
    font-size: 12px;
    padding: 10px 5px;
}

.legal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal__header a,
.legal__links a {
    color: #3024b2;
}

.container--legal {
    text-align: left;
    padding: 10px 20px;
}
.container--legal p {
    white-space: pre-line;
}

body:has(.container--legal) #main_title,
body:has(.container--legal) #main_title + td,
body:has(.container--legal) #header {
    display: none;
}

:has(.legal__header) .container--legal {
    max-width: 700px;
    margin: 0 auto;
}