/* HELPERS */
.is-white-space-nowrap {
    white-space: nowrap;
}
.is-vertical-separator {
    content: '';
    height: 100%;
    border-left: 1px solid var(--bulma-border);
}
/***********/

.pageloader {
    opacity: 0.5;
}

/* .switch input[type=checkbox]+.check {
    background: rgba(62, 142, 208, 0.9) !important;
} */

.list-item-content {
    margin-bottom: 0.2rem;
}

.list-item-description {
    margin-bottom: 0.5rem;
}

.ticket-table .new-items-separator {
    position: relative;
}
.ticket-table .new-items-separator:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    transform: translateY(-50%);
    border-bottom: 1px solid
        hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l));
}
.ticket-table .new-items-separator.separator-no-color:before {
    border-bottom: 1px solid hsl(var(--bulma-text-h), var(--bulma-text-s), var(--bulma-text-l));
}

.ticket-table .tag-force-wrap {
    height: auto;
    white-space: unset;
    width: 100%;
    padding-top: 0.75em;
    padding-bottom: 0.75em;
    padding-right: 1rem;
}

.ticket-table td > .list-item-content > .title > span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 35vw;
    display: inline-block;
}

.modal-card {
    /* set width to 75% of the screen size */
    max-width: 75vw;
    width: fit-content;
    min-width: 50vw;
}

/***** Navbar principale *****/
.main-navbar {
    z-index: 1000;
}
.main-navbar .navbar-brand > .navbar-item {
    padding: 0.15rem 0.75rem;
}
.main-navbar .navbar-link {
    color: white;
}
.navbar-link .icon:only-child,
.main-navbar .navbar-item .icon:only-child {
    margin-right: 0.25rem;
}
.main-navbar .navbar-item .badge.is-top-right {
    right: 0.5rem;
    top: 0.75rem;
}
.warning-impersonation {
    text-align: center;
    max-height: var(--lacme-header-warning-impersonation);
}
.back-to-own-acc {
    margin-left: 2%;
}
.back-to-own-acc:hover:before {
    padding: 0.2rem 0.5rem;
}
#dropdownNotifications .is-flex {
    gap: 1rem;
}
/***************************/

/* remove the border-bottom from the tooltip */
span[data-tooltip] {
    border-bottom: none;
}
/* On force l'opacité des tooltips à 1 */
[data-tooltip]:not(.is-disabled):before,
[data-tooltip]:not(.is-loading):before,
[data-tooltip]:not([disabled]):before {
    background: rgba(74, 74, 74, 1);
}

[data-theme='dark'] a {
    --bulma-link-text: white;
}

[data-theme='light'] a {
    --bulma-link-text: black;
}

.ticket-filter .button {
    height: var(--bulma-control-height);
}

.ticket-id {
    width: 100%;
    height: 100%;
}
.ticket-id .badge {
    position: absolute;
}
.ticket-id .badge:not(.is-bottom-right) {
    right: 15%;
    top: 15%;
}
.ticket-id .badge.is-bottom-right {
    right: 15%;
    bottom: 15%;
}

.is-lefter {
    right: 110px;
    bottom: 60px;
}

.is-topper {
    right: 70px;
    bottom: 100px;
}

.ticket-header-column-sort {
    vertical-align: middle;
    white-space: nowrap;
}
.ticket-header-column-sort svg:last-child {
    margin-left: calc(var(--bulma-icon-dimensions) / 2 * -1);
}

.image-upload-preview-zone > *:last-child {
    margin-bottom: var(--bulma-block-spacing);
}

.driver-popover.lacme-theme {
    background-color: hsl(208.55, 100%, 32.55%);
    color: #ffffff;
    max-width: 350px;
}

.driver-popover.lacme-theme .driver-popover-title,
.driver-popover.lacme-theme .driver-popover-description,
.driver-popover.lacme-theme .driver-popover-progress-text {
    color: #ffffff;
}

.driver-popover.lacme-theme button {
    background-color: hsl(208.55, 100%, 32.55%);
    color: #ffffff;
    text-align: center;
    text-shadow: none;
}

.driver-popover.lacme-theme button:hover {
    background-color: hsl(208.55, 100%, 42.55%);
    color: #ffffff;
}

.driver-popover.lacme-theme button:focus {
    background-color: hsl(208.55, 100%, 62.55%);
    color: #ffffff;
}

.opacity-transition {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.has-opacity-0 {
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
}

.pageloader.is-primary {
    background-color: var(--bulma-primary);
}

button.filter-label {
    font-weight: 400;
}

.is-display-group {
    position: relative;
    border: 2px solid hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l)); /* Couleur primaire */
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.is-display-group .group-title {
    position: absolute;
    top: -1rem;
    left: 1rem;
    background-color: hsl(
        var(--bulma-primary-h),
        var(--bulma-primary-s),
        var(--bulma-primary-l)
    ); /* Couleur primaire */
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.horizontal-separator {
    border: 0;
    height: 1px;
    background-color: hsl(
        var(--bulma-primary-h),
        var(--bulma-primary-s),
        var(--bulma-primary-l)
    ); /* Couleur primaire */
    margin-top: -1.5rem;
    width: 5%;
}

.horizontal-separator.is-right {
    border: 0;
    height: 1px;
    background-color: hsl(
        var(--bulma-primary-h),
        var(--bulma-primary-s),
        var(--bulma-primary-l)
    ); /* Couleur primaire */
    margin: 1rem 95%;
    width: 5%;
}

/* HTML: <div class="loader"></div> */
.custom-loader {
    width: 120px;
    height: 20px;
    -webkit-mask:
        linear-gradient(
            90deg,
            hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l)) 70%,
            #0000 0
        )
        0 / 20%;
    background:
        linear-gradient(
            hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l)) 0 0
        )
        0 / 0% no-repeat #ddd;
    animation: l4 2s infinite steps(6);
}

@keyframes l4 {
    100% {
        background-size: 120%;
    }
}

/* HTML: <div class="loader"></div> */
.loader-button {
    width: 60px;
    aspect-ratio: 1;
    border: 15px solid #ddd;
    border-radius: 50%;
    position: relative;
    transform: rotate(45deg);
}
.loader-button::before {
    content: '';
    position: absolute;
    inset: -15px;
    border-radius: 50%;
    border: 15px solid hsl(var(--bulma-primary-h), var(--bulma-primary-s), var(--bulma-primary-l));
    animation: l18 2s infinite linear;
}

@keyframes l18 {
    0% {
        clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0);
    }
    25% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0);
    }
    50% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%);
    }
    75% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 100%);
    }
    100% {
        clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 0 100%, 0 0);
    }
}

.is-disabled {
    pointer-events: none;
}

.column .textwrap {
    white-space: wrap; /* Prevents the text from wrapping to the next line */
    overflow: hidden; /* Hides any overflowed text */
    text-overflow: ellipsis; /* Adds an ellipsis (...) to indicate cut-off text */
    width: 200px;
}

.card h1 {
    font-size: 1.5rem;
}

.card strong {
    font-weight: bolder;
}

.card.short-link ul li {
    margin-bottom: 0.5rem;
    list-style-type: disc;
    list-style-position: inside;
}

.is-cloture {
    border: 2px solid #205791;
}

.is-outillage {
    border: 2px solid #456;
}

.is-education {
    border: 2px solid #81ca5f;
}

.is-chargeur {
    border: 2px solid #d00215;
}

.is-autre {
    border: 2px solid lightgray;
}

.is-cloture-tag {
    background-color: #205791;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.is-outillage-tag {
    background-color: #456;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.is-education-tag {
    background-color: #81ca5f;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
}

.is-chargeur-tag {
    background-color: #d00215;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    height: auto;
}

.is-autre-tag {
    background-color: lightgray;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: bold;
    height: auto;
}

.is-filter {
    width: 20rem;
}

.is-filter-content {
    padding: 1rem;
}

.description {
    max-height: 150px;
    overflow-y: scroll;
    overflow-x: hidden;
}
