:root {
    /* ANCIENNES COULEURS */
    --color-primary: #c47f77;
    --color-secondary: #b3282d;
    --color-success: #72d477;
    --color-warning: #dd1c1a;
    --color-bg-primary: #fbfbfb;
    --color-bg-secondary: #b3282d;
    --color-bg-secondary-light: #d9a7a9;
    --txt-color-white: #f6fafb;
    --color-bg-listing: #e7e7e7;

    /* NOUVELLES COULEURS */
    --text: #ffffff !important; /* La couleur du texte sur le background primaire*/
    --text-variant: #ffffff !important; /* La couleur du texte sur le background secondaire*/
    --text-background: #565656 !important;

    --primary-lighter: #d7787a !important;
    --primary: #c7474b !important;
    --primary-darker: #a4272b !important;

    --secondary-lighter: #aac2e2 !important;
    --secondary: #617999 !important;
    --secondary-darker: #436a9c !important;

    --accent1: #70ee9c !important;
    --accent2: #b5f44a !important;

    --error-lighter: #ce392e !important;
    --error: #b9342a !important;
    --error-darker: #9a2a22 !important;

    --success-lighter: #3cb95c !important;
    --success: #329d4e !important;
    --success-darker: #29803f !important;

    --table-row-color: #efefef !important;

    /*** FullCalendar ***/
    --fc-button-bg-color: var(--color-primary);
    --fc-button-border-color: var(--color-primary);
    --fc-small-font-size: 12px;
    font-size: 12px;
}
.fc-license-message{
    display: none;
}

html,
body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
}
body {
    display: flex;
    flex-direction: column;
    font-family: "Montserrat", sans-serif;
    color: var(--text-background);
    background-color: var(--color-bg-primary);
}
main {
    flex: 1;
    display: flex !important;
    position: relative;
}
main > .content {
    flex: 1;
    margin-left: 32px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 6rem);
    overflow: auto;
}

/* ======================= MESSAGES FLASH ====================================== */

.flash-container {
    position: absolute;
    left: 25px;
    bottom: 0px;
    width: fit-content;
    z-index: 100;
    animation: fromBottomAnimation ease 1s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

.flash {
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 10px;
    box-shadow: rgb(0 0 0 / 20%) 0px 3px 5px -1px, rgb(0 0 0 / 14%) 0px 6px 10px 0px, rgb(0 0 0 / 12%) 0px 1px 18px 0px;
}

.flash:hover {
    opacity: 0.8;
    cursor: pointer;
}

.form-errors {
    color: red;
}
.form-errors ul {
    text-align: left;
}
.form-errors ul li {
    list-style-type: none;
}

@keyframes fromBottomAnimation {
    0% {
        bottom: -50px;
    }
    100% {
        bottom: 25px;
    }
}

/**************************
COMPOSANT
**************************/
.button:hover{
    text-decoration: none;
    filter: drop-shadow(0px 0px 2px grey);
}

.button {
    border-style: solid;
    border-width: 2px;
    padding: 5px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    height: fit-content;
    display: inline-block;
}

.primary {
    background-color: var(--color-bg-primary);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.primary:hover{
    color: var(--color-primary);
}

.secondary {
    background-color: var(--color-secondary);
    border-color: transparent;
    color: var(--txt-color-white);
}

.secondary:hover{
    color: var(--txt-color-white);
}


.warning {
    color: var(--txt-color-white);
    border-color: var(--color-warning);
    background-color: var(--color-warning);
}

.info {
    color: #969696;
    background-color: #ffefd8;
    border-color: burlywood;
}

.disabled {
    color: grey;
    cursor:default !important;
}

.disabled:hover {
    filter: none !important;
    Text-Decoration: None !important;
}

.success {
    border-color: var(--color-success);
    background-color: var(--color-success);
}

.form-group {
    margin-bottom: 1rem;
    width: 100%;
}

.form-group label {
    display: block;
}

.table {
    margin-top: 1rem;
    border-collapse: collapse;
}

.table thead {
    border: solid 1px #c3b9b9;
}

.table tbody {
    text-align: center;
}

.table thead tr th {
    font-size: 17px;
    padding: 4px 8px;
}

.table.teamWeekPoseModal thead tr th {
    font-size: 12px;
    padding: 4px 8px;
  }

.table.teamWeekPoseModal tbody tr td{
    border: solid 1px #c3b9b9;
}

.table tbody tr:nth-child(even) {
    background-color: var(--color-bg-listing);
}
.table tbody tr:nth-child(odd) {
    background-color: var(--color-bg-primary);
}

.row:hover:not(.notHoverRow){
    background-color: #c47f77 !important;
    color: white;
    z-index: 2;
}

.row:hover:not(.notHoverRow) .cell{
    color: white;
}

.row:hover:not(.notHoverRow) i{
    color: white !important;
}

.row:hover:not(.notHoverRow) a{
    color: white !important;
}

.table tbody tr.listing-table-row:hover{
    background-color: var(--color-bg-secondary-light);
}

.table td {
    padding: 1rem;
    vertical-align: top;
}

.tableGrid {
    display: flex;
    flex-direction: column;
}

.tableGrid .headerRow {
    display: grid;
    outline: solid 1px #c3b9b9;
    grid-gap: 1px;
    background-color: var(--color-secondary);
    color: white;
}

.tableGrid .cell,
.tableGrid .headerCell {
    text-align: center;
    font-size: 17px;
    padding: 4px 8px;
}

.tableGrid .row {
    display: grid;
    grid-gap: 1px;
}

.tableGrid .row:nth-of-type(even) {
    background-color: #fff;
}

.tableGrid .row:nth-of-type(odd) {
    background-color: var(--color-bg-listing);
}

.tableGrid.secondaryDark .row:nth-child(odd) {
    background-color: #dadada !important;
}

.tableGrid .cell,
.tableGrid .headerCell {
    padding: 1rem;
    vertical-align: top;
    outline: solid 1px #c3b9b9
}

.ellipsis {
    cursor: pointer;
    display: block;
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ellipsisExpandable {
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ellipsisExpandable:hover {
    overflow: visible;
}

.ellipsisExpandable:hover span {
    position: relative;
    /*background-color: white;*/

    box-shadow: 0 0 4px 0 black;
    border-radius: 1px;
}

.card {
    background-color: white;
    border-radius: 8px;
    padding: 3rem;
    justify-content: center;
    width: fit-content;
    margin: auto;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

.card form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.tooltipped {
    position: relative;
}

.tooltipped .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;

    /* Position the tooltip */
    position: absolute;
    z-index: 1;
}

.tooltipped:hover .tooltiptext {
    visibility: visible;
}

.form-errors {
    color: red;
}
.form-errors ul {
    text-align: left;
}
.form-errors ul li {
    list-style-type: none;
}

.hidden {
    display: none;
}

.statsHeader{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.statsHeader > div{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.statsHeader > div > a{
    margin: 5px;
}

@keyframes fromBottomAnimation {
    0% {
        bottom: -50px;
    }
    100% {
        bottom: 25px;
    }
}

.listing-table-cell input {
    box-sizing: border-box;
    border-radius: 5px;
    padding-left: 15px;
    background-color: white;
    color: black;
    border: none;
}


.listing-table-cell input:disabled {    
    background-color: -internal-light-dark(rgba(239, 239, 239, 0.3), rgba(59, 59, 59, 0.3)) !important;
    color: -internal-light-dark(rgb(84, 84, 84), rgb(170, 170, 170)) !important;
    border-color: rgba(118, 118, 118, 0.3) !important;
}

.listing-table-div {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-sort {
    cursor: pointer;
}

button.calendar {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    margin: 0 5px;
    background-color: var(--color-primary);
    color: #ffffff;
    border: none;
}

button.calendar img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(5752%) hue-rotate(86deg) brightness(108%) contrast(101%);
}

.clearable-cross {
    color: white;
}

.listing-table-searchIcon {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(5752%) hue-rotate(86deg) brightness(108%) contrast(101%);
}

.accordion {
    -webkit-transform: translate3d(0, 0, 0);
}

.accordion.open .accordionPlaceholder {
    display: none !important;
}

.accordion.open .accordionContentContainer {
    display: block !important;
}

.accordion.open .accordionContent {
    overflow: hidden;
    animation: accordionAnimation .7s;
}

.accordion:not(.open) .accordionPlaceholder {
    display: block !important;
}

.accordion:not(.open) .accordionContentContainer {
    display: none !important;
}


@keyframes accordionAnimation {
    from{
        opacity: 0;
    }
    to{
        opacity: 1;
    }
}

.leftMenuItem {
    text-decoration: none
}

.pastilleForcePose {
    display: flex;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    color: white;
    width: 14px;
    min-width: 14px;
    height: 14px;
    background-color: var(--color-primary);
    border-radius: 7px;
    font-size: 10px;
    top: 0;
    left: 0;
}

.listing-cell-selectable {
    -webkit-user-select: text;
    -moz-user-select: text;
    -khtml-user-select: text;
    -ms-user-select: text;
    user-select: text;
    cursor: text;
}

.d-none{
    display: none !important;
}

.option:checked{
    color: white;
}

ckt-date-picker:disabled, ckt-select:disabled{
    pointer-events: none !important;
}

.ckt-checkbox {
    display: inline-flex;
    cursor: pointer;
    position: relative;
    margin: auto;
}

.ckt-checkbox > input {
    height: 25px;
    width: 25px;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
    border: 1px solid black;
    border-radius: 4px;
    outline: none;
    transition-duration: 0.3s;
    background-color: white;
    cursor: pointer;
  }

.ckt-checkbox > input:checked {
    border: 1px solid black;
    background-color: var(--secondary);
}

.ckt-checkbox > input:checked + span::before{
    content: '\2713';
    display: block;
    text-align: center;
    position: absolute;
    left: 0.4rem;
    top: 0.2rem;
}

.ckt-checkbox > input.disabled{
    background-color: #E0E0E0;
}

.ckt-checkbox > span{
    color: white;
    pointer-events: none;
    font-size: 20px;
}

.button.success{
    color: white;
}

.page-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 2rem 10%;
}

.page-header h2 {
    font-size: 2.3rem;
    font-weight: 500;
    color: #666666 !important;
    margin: 0 !important;
}

.page-header .ckt-button {
    flex-shrink: 0;
}

.page-header-right-placeholder {
    flex-shrink: 0;
    height: 100%;
}

.main_buttons_panel {
    display: flex;
}

.main_buttons_panel .ckt-button {
    margin: 0;
    height: max-content;
}

.chargeOverflow {
    background-color: var(--primary);
    color: white;
    font-weight: bold;
}