/******************************/
/*   HIDE TOOLTIP ELEMENT     */
/******************************/

@media (min-width: 768px) {
    .tooltipMessage {
        display: none !important;
        background-color: inherit !important;
    }

    .showTooltip {
        position: relative;
    }

    .showTooltip:hover:after {
        background: #333;
        background: rgba(0, 0, 0, .8);
        border-radius: 5px;
        bottom: 50px;
        color: #fff;
        content: attr(data-gloss);
        left: 20%;
        padding: 5px 15px;
        position: absolute;
        z-index: 98;
        width: 500px;
    }

    .showTooltip:hover:before {
        border: solid;
        border-color: #333 transparent;
        border-width: 0 6px 6px 6px;
        bottom: -4px;
        left: 50%;
        position: absolute;
        z-index: 99;
    }

    /*
    th.views-field-nothing,
    td.views-field-nothing,
    th.views-field-nothing-1,
    td.views-field-nothing-1{
        display: none;
    }

     */
}

/**********************/
/*   MEETINGS PORTAIL */
/**********************/

.view-v1-all-meetings-portal tr:hover td, tr.even:hover td.active, tr.odd:hover td.active {
    background: #fffeee;
    text-shadow: -.25px -.25px 0 black, .25px .25px black;
    cursor: pointer;
}

/**********************/
/* MEETINGS AVAILABLE */
/**********************/

.view-v1-all-meetings-available tr:hover td, tr.even:hover td.active, tr.odd:hover td.active {
    background: #fffeee;
    text-shadow: -.25px -.25px 0 black, .25px .25px black;
    cursor: pointer;
}

/**********************/
/*   MEETINGS HISTO   */
/**********************/

.view-v1-entr-meetings tr:hover td, tr.even:hover td.active, tr.odd:hover td.active {
    background: #fffeee;
    text-shadow: -.25px -.25px 0 black, .25px .25px black;
    cursor: pointer;
}

/**********************/
/*   SUB_USERS        */
/**********************/

.view-subuser tr:hover td, tr.even:hover td.active, tr.odd:hover td.active {
    background: #fffeee;
    text-shadow: -.25px -.25px 0 black, .25px .25px black;
    cursor: pointer;
}

/******************************************/
/*     COMPTA DEMANDE DELETE               */
/******************************************/

.view-demandes-effacement-adherent tr:hover td, tr.even:hover td.active, tr.odd:hover td.active {
    background: #fffeee;
    text-shadow: -.25px -.25px 0 black, .25px .25px black;
    cursor: pointer;
}

.view-demandes-effacement-adherent caption {
    text-align: left;
}

/**********************/
/*     TRAVS           */
/**********************/

.view-v1-entr-travs tr:hover td, tr.even:hover td.active, tr.odd:hover td.active {
    background: #fffeee;
    text-shadow: -.25px -.25px 0 black, .25px .25px black;
    cursor: pointer;
}

.view-v1-entr-travs caption {
    text-align: left;
}
/**********************/
/*      POSTES        */
/**********************/

.view-v1-all-postes tr:hover td, tr.even:hover td.active, tr.odd:hover td.active {
    background: #fffeee;
    text-shadow: -.25px -.25px 0 black, .25px .25px black;
    cursor: pointer;
}

/**********************/
/*  VIEWS ADD BUTTON 0 */
/**********************/

.view-button-entete {
    color: var(--bs-btn-color) !important;
}


/**********************/
/*  ADHERENT CONTACTS */
/**********************/

.view-v1-entr-adherent-contact .bouton-conteneur a {
    color: var(--bs-btn-color) !important;
}


.view-v1-entr-adherent-contact tr:hover td, tr.even:hover td.active, tr.odd:hover td.active {
    background: #fffeee;
    text-shadow: -.25px -.25px 0 black, .25px .25px black;
    cursor: pointer;
}

.view-v1-entr-adherent-contact caption {
    text-align: left;
}

.view-v1-entr-adherent-contact thead tr th {
    background-color: lightgray;
}

.view-v1-entr-adherent-contact thead tr th:first-child {
    z-index: -1;
    border-radius: 10px 0 0 0;
    -moz-border-radius: 10px 0 0 0;
    border-radius: 10px 0 0 0;
}

.view-v1-entr-adherent-contact thead tr th:last-child {
    z-index: -1;
    border-radius: 0 10px 0 0;
    -moz-border-radius: 0 10px 0 0;
    border-radius: 0 10px 0 0;
}

@media (min-width: 768px) {

    .view-v1-entr-adherent-contact .views-field-ROLE-LABEL-1 {
        width: 200px !important;
    }

    .view-v1-entr-adherent-contact .views-field-PERS-TITRE {
        width: 150px !important;
    }

    .view-v1-entr-adherent-contact .views-field-PERS-NAME {
        width: 200px !important;
    }

    .view-v1-entr-adherent-contact .views-field-PERS-FIRST-NAME {
        width: 200px !important;
    }

    .view-v1-entr-adherent-contact .views-field-FONCTION {
        width: 200px !important;
    }

    .view-v1-entr-adherent-contact .views-field-ADR-TYPE-LABEL {
        width: 250px !important;
    }

    .view-v1-entr-adherent-contact .views-field-E-MAIL {
        width: 250px !important;
    }
}
/**********************/
/*     ADRESSES       */
/**********************/

.view-button-add {
    color: var(--bs-btn-color) !important;
}

.view-v1-entr-adresses tr:hover td, tr.even:hover td.active, tr.odd:hover td.active {
    background: #fffeee;
    text-shadow: -.25px -.25px 0 black, .25px .25px black;
    cursor: pointer;
}

.view-v1-entr-adresses caption {
    text-align: left;
}

.view-v1-entr-adresses thead tr th {
    background-color: lightgray;
}

.view-v1-entr-adresses thead tr th:first-child {
    z-index: -1;
    border-radius: 10px 0 0 0;
    -moz-border-radius: 10px 0 0 0;
    border-radius: 10px 0 0 0;
}

.view-v1-entr-adresses thead tr th:last-child {
    z-index: -1;
    border-radius: 0 10px 0 0;
    -moz-border-radius: 0 10px 0 0;
    border-radius: 0 10px 0 0;
}

@media (min-width: 768px) {
    .view-v1-entr-adresses .views-field-ADR-CITY-LABEL {
        width: 400px !important;
    }

    .view-v1-entr-adresses .views-field-ADR-CITY-CODE {
        width: 250px !important;
    }

    .view-v1-entr-adresses .views-field-VOIE-NO {
        width: 100px !important;
    }

    .view-v1-entr-adresses .views-field-VOIE-TYP {
        width: 150px !important;
    }
}

/****************************/
/*   DIALOG FIX NON-ADMIN  */
/****************************/

/* gin/variables.css n'est chargé que pour les admins.
   gin/dialog.css est chargé pour tous et utilise ces variables.
   Sans les variables, padding/background/etc. sont undefined pour les non-admins.
   On déclare ici les valeurs light-mode comme fallback. */
:root {
    --gin-bg-layer: #fff;
    --gin-bg-app: #f5f5f5;
    --gin-color-text: #222330;
    --gin-font: sans-serif;
    --gin-font-size-l: 1.125rem;
    --gin-font-weight-normal: 400;
    --gin-spacing-s: .75rem;
    --gin-spacing-m: 1rem;
    --gin-spacing-l: 1.5rem;
    --gin-spacing-xl: 2rem;
    --gin-border-m: .5rem;
    --gin-border-color-layer: rgba(0, 0, 0, .08);
    --gin-shadow-l1: 0 1px 2px rgb(20 45 82 / 2%), 0 3px 4px rgb(20 45 82 / 3%), 0 5px 8px rgb(20 45 82 / 4%);
}

/* Fix: ui-widget-overlay est inséré après ui-dialog dans le DOM
   (tous deux avec z-index: auto), ce qui le place par-dessus le dialog.
   Sans barre admin (non-admin), jQuery UI ne booste pas les z-index. */
.ui-widget-overlay {
    z-index: 1000 !important;
    background: #000000 !important;
    opacity: 0.5 !important;
}
.ui-dialog {
    z-index: 1001 !important;
}
