/* Panneau latéral */
#sidePanel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 0;
    /* width: 600px; */
    background-color: white;
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: width 0.2s ease;
    z-index: 1000;
}

/* Onglet pour ouvrir le panneau */
#panelTab {
    position: fixed;
    top: 50%;
    right: 0px;
    /* dépasse à gauche du panneau */
    transform: translateY(-50%);
    right: 0;
    width: 40px;
    height: 40px;
    background-color: #4E4E4E;
    border-radius: 15px 0 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: right 0.2s ease;
}

#panelTab svg {
    fill: white;
    width: 24px;
    height: 24px;
}

.et-tabs {
    overflow: hidden;
    min-height: 48px;
    display: flex;
    background-color: rgb(78, 78, 78);
    font-family: sans-serif;
    font-size: 0.875rem;
    height: 50px;
}

.et-tabs-tab {
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    outline: 0px;
    border-width: 0px 3px 0px 0px;
    border-top-style: initial;
    border-bottom-style: initial;
    border-left-style: initial;
    border-top-color: initial;
    border-bottom-color: initial;
    border-left-color: initial;
    border-image: initial;
    margin: 0px;
    border-radius: 0px 10px 0px 0px;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    appearance: none;
    text-decoration: none;
    font-family: RoundedElegance, Roboto, Arial;
    font-weight: 500;
    line-height: 1.25;
    text-transform: uppercase;
    max-width: 360px;
    min-width: 90px;
    position: relative;
    min-height: 48px;
    flex-shrink: 0;
    padding: 12px 16px;
    overflow: hidden;
    white-space: normal;
    text-align: center;
    flex-direction: column;
    border-right-style: solid;
    border-right-color: white;
    background-color: var(--onglet);
    font-size: 0.875rem;
    color: white;
}

.et-tabs-tab:hover {
    background-color: var(--onglet-select);
    border-right-color: white;
    color: black;
    cursor: pointer;
}

.et-tab-bouton {
    display: inline-flex;
    -webkit-box-align: center;
    align-items: center;
    -webkit-box-pack: center;
    justify-content: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none;
    vertical-align: middle;
    appearance: none;
    font-family: RoundedElegance, Roboto, Arial;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 1.75;
    text-transform: uppercase;
    min-height: 36px;
    min-width: 0px;
    width: 56px;
    height: 56px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 3px 5px -1px, rgba(0, 0, 0, 0.14) 0px 6px 10px 0px, rgba(0, 0, 0, 0.12) 0px 1px 18px 0px;
    z-index: 10;
    position: absolute;
    top: 15px;
    background-color: rgb(78, 78, 78);
    outline: 0px;
    border-width: 0px;
    border-style: initial;
    border-color: initial;
    border-image: initial;
    margin: 0px;
    text-decoration: none;
    transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1), border-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    padding: 0px;
}

.et-tab-bouton:hover {
    background-color: white;
}

.et-tab-icone {
    user-select: none;
    width: 1em;
    height: 1em;
    display: inline-block;
    fill: currentcolor;
    flex-shrink: 0;
    font-size: 1.5rem;
    transition: fill 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

.table-pl {
    display: table;
    width: 100%;
    padding-left: 4px;
    padding-right: 4px;
    border-collapse: separate;
    border-spacing: 0px 8px;
    /* espacement vertical entre les lignes */
    min-width: 500px;
}

.table-pl th {
    font-family: RoundedElegance, Roboto, Arial;
    font-weight: bold;
    font-size: 16px;
    line-height: 14px;
    display: table-cell;
    vertical-align: inherit;
    border-bottom: 1px solid rgb(224, 224, 224);
    text-align: left;
    padding: 2px;
    position: sticky;
    top: 0px;
    z-index: 2;
    background-color: rgb(255, 255, 255);
    color: var(--et-item-pl);
}

.table-pl tr {
    color: inherit;
    display: table-row;
    vertical-align: middle;
    outline: 0px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
    /* ombre douce */
    border-radius: 8px;
}

.table-pl td {
    font-family: RoundedElegance, Roboto, Arial;
    font-size: 13px;
    line-height: 12px;
    display: table-cell;
    vertical-align: inherit;
    border-bottom: 1px solid rgb(224, 224, 224);
    text-align: left;
    padding: 1px;
    color: rgba(0, 0, 0, 0.87);
}

/* Coins arrondis sur la première et dernière cellule */
.table-pl tr td:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.table-pl tr td:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.table-pl-input {
    cursor: inherit;
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
    z-index: 1;
}

.titre-section-tab {
    margin-left: 10px;
    color: var(--titre-item-pl);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    height: 34px;
}

.section-header:hover {
    background-color: black;
}

.toggle-icon {
    width: 30px;
    height: 30px;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.section-content {
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.2s ease, opacity 0.2s ease;
    opacity: 1;
}

.section-content.collapsed {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    /* empêche les interactions avec le contenu masqué */
}

.toggle-icon.rotate {
    transform: rotate(180deg);
}

.section {
    padding-bottom: 16px;
}

/* Ajoute un style de scroll uniquement si le contenu est trop grand */
.table-scrollable {
    overflow-y: auto;
    max-height: 50vh;
    /* Ajustable : ici on limite à 50% de la hauteur de la fenêtre */
}