.modal .nk-split-page {
    min-height: auto;
}

.loader {
    height: 40vh;
}

.loader .spinner-border {
    left: calc(50% - 60px / 2);
    top: calc(50% - 60px / 2);
    --bs-spinner-width: 60px;
    --bs-spinner-height: 60px;
    position: absolute;
}

.tri-ring {
    width: 120px;
    height: 120px;
}

.loading-animation {
    left: calc(50% - 120px / 2);
    top: calc(50% - 120px / 2);
}

.tri-ring {
    border-top-color: #e6ab0b;
}

.tri-ring:before {
    border-top-color: #a6aaa8;
}

.tri-ring:after {
    border-top-color: #181818;
}

.hide {
    display: none !important;
}

.highlighted {
    animation: flash-bg-danger 0.5s ease-in-out 0s 3 alternate;
}

.highlighted.danger {
    animation: flash-bg-danger 0.5s ease-in-out 0s 3 alternate;
    background-color: #f9e5e5;
}

@keyframes flash-bg-danger {
    from { background-color: #f9e5e5; }
    to   { background-color: #ffffff; }
}

button.no-style {
    border: none;
    background: none;
    color: inherit;
    padding: inherit;
    margin: inherit;
}

.pointer {
    cursor: pointer;
}

.nk-tb-head .nk-tb-col .sub-text {
    display: inline-block;
}

.modal:not(.free-height) .modal-dialog {
    min-height: calc(100% - 3.5rem) !important;
}

/*.modal:not(.free-height) .modal-body {
    height: calc(100vh - 7rem) !important;
    overflow: auto;
}*/

.select-ajax.d-none + .select2-container {
    display: none !important;
}

/*CUSTOM*/

.header-return-btn {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.5rem 0.5rem 0;
    font-size: 1rem;
    cursor: pointer;
}

.header-return-btn em {
    font-size: 1.25rem;
}

.form-submit-btn-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    bottom: 1rem;
    left: 0;
    right: 0;
    padding: 0;
}

.form-submit-btn-container .btn {
    justify-content: center;
    width: 100%;
}

.color-red {
    color: #FF0000;
}

.color-green {
    color: #0FCA7A;
}

.font-weight-bold {
    font-weight: bold;
}

.alert-input-unique {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;

    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
    flex-wrap: wrap;

    animation: fadeInOpacity 1s ease forwards;
}

@keyframes fadeInOpacity {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-input-unique span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-input-unique span em {
    font-size: 1.2rem;
    color: #fd9722;
}

.alert-input-unique.fade-out {
    animation: fadeOutOpacity 0.5s ease forwards;
}

@keyframes fadeOutOpacity {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-5px);
    }
}

.team-members {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.team-members .user-avatar:not(:first-child) {
    margin-left: -1rem;
}

.nk-content-body {
    position: relative;
}

.nk-content-body.fade-out {
    animation: fadeOutOpacity .3s ease forwards;
}

.nk-content-body.fade-in {
    animation: fadeInOpacity .3s ease forwards;
}

@keyframes fadeOutOpacity {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fadeInOpacity {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table-rows {
    opacity: 0;
    transition: opacity 1s ease;
}

.table-rows.loaded {
    opacity: 1;
}

.nk-tb-head > .nk-tb-col, .nk-tb-head > .nk-tb-col .sub-text {
    text-transform: uppercase;
    font-weight: 700;
}

.loader {
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.nk-tb-list.loader {
    position: absolute;
    top: 0;
    left: 0;
}

.card-inner {
    position: relative;
}

.btn-purple {
    --bs-btn-color: #fff;
    --bs-btn-bg: #733AEA;
    --bs-btn-border-color: #733AEA;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #6231c7;
    --bs-btn-hover-border-color: #5c2ebb;
    --bs-btn-focus-shadow-rgb: 136, 88, 237;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #5c2ebb;
    --bs-btn-active-border-color: #562cb0;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(16, 25, 36, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #733AEA;
    --bs-btn-disabled-border-color: #733AEA;
}

.action-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.action-status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    opacity: 0.25;
    color: #FFFFFF;
    width: 100%;
    border-radius: 0.25rem;
    font-size: 1rem;
    transition: opacity 0.2s ease-in-out;
}

.action-status-item.active {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.bg-light-gray {
    background: #8094AE;
}

.form-check-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    opacity: 0.25;
    transition: opacity 0.2s ease-in-out;
}

.form-check-btn-active {
    opacity: 1;
    transition: opacity 0.2s ease-in-out;
}

.action-form-tab {
    display: none !important;
}

.action-form-tab.active {
    display: flex !important;
}

/* .table-responsive .table-rows {
    min-width: 1000px;
} */

.ventes-card-details {
    display: flex;
    border-radius: 0.5rem;
    border: 1px solid #D8DFEA;
    padding: 0.5rem 1rem;
    gap: 1rem;
    width: fit-content;
}

.ventes-card-details h5 {
    margin: 0;
}

.ventes-card-details-green {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    border: 2px solid #0FCA7A;
    padding: 0.75rem 1rem;
    width: 100%;
    gap: 0.25rem;
}

/*MAP*/
.osm-map {
    border-radius: 0.5rem;
}

.leaflet-bottom.leaflet-right {
    display: none;
}

.map-filters, .main-filters {
    display: flex;
    align-items: center;
}

.filter-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 50%;
}

.action-businessman-filter-container {
    position: absolute;
    top: 3rem;
    right: 1rem;
    background: #FFFFFF;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    z-index: 999;
}

.reset-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border-radius: 6px;
}

.team-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.fixed-actions-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1;
}

.container-cta-pwa {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.cta-pwa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.quick-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.fc-event.pulse-highlight {
    animation: pulse 1s ease-in-out 3;
    transition-timing-function: ease-in-out;
    box-shadow: 0 0 12px #FFD700;
    z-index: 10;
}

.fc .fc-toolbar-title {
    width: 130px;
}

.fc-event.fc-event-draggable {
    color: #fff;
}

.highlighted {
    animation: flash-bg-danger 0.5s ease-in-out 0s 3 alternate;
}

.highlighted.danger {
    animation: flash-bg-danger 0.5s ease-in-out 0s 3 alternate;
    background-color: #f9e5e5;
}

.custom-div-icon {
    position: relative;
}

.custom-div-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
    z-index: -1;
}

.leaflet-popup-content a {
    color: #fff !important;
}

.leaflet-popup-content a:hover {
    color: #000 !important;
}

.prospect-select-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prospect-select-container .select2{
    width: calc(100% - 4rem) !important;
}

.card-team {
    width: 100%;
    max-width: 250px;
    margin-top: 0 !important;
}

.card-team-container {
    display: flex;
    align-items: start;
    gap: 1rem;
    flex-wrap: wrap;
}

.address-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.address-container-col {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
}

.address-container .numero-rue {
    max-width: 50px;
    padding: 0.4375rem 0.5rem;
    text-align: center;
}

.address-container input#address {
    padding: 0.4375rem 0.5rem;
}

.address-container .select2 {
    width: 100%;
    height: 0;
    overflow: hidden;
}

.address-container .select2 span {
    width: 100%;
    height: 0;
    padding: 0 !important;
}

.close {
    align-items: center;
    background-color: red;
    border-radius: 20px;
    color: #fff;
    display: flex;
    float: right;
    font-size: 1.2rem;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    line-height: 1;
    margin: .25rem 0;
    opacity: .75;
    width: 40px;
    transition: all ease-in-out 0.3s;
}

.close:hover {
    color: #fff;
    opacity: 0.5;
}

.action-row-lisere {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 10px;
    border-radius: 1px;
    padding: 0 !important;
}

.action-row-lisere.bg-red {
    background: #F2426E;
}

.action-row-lisere.bg-green {
    background: #0FCA7A;
}

.nk-tb-item {
    position: relative;
}

#already-prospected-alert .badge {
    width: fit-content;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.4);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

@keyframes flash-bg-danger {
    from { background-color: #f9e5e5; }
    to   { background-color: #ffffff; }
}

@media screen and (max-width: 991px) {
    .table-responsive .table-rows {
        min-width: unset;
    }

    .card-team-container {
        justify-content: center;
    }
}

@media (max-width: 500px) {
    .modal-dialog {
        margin: 0;
    }

    .main-filters, .map-filters {
        flex-wrap: wrap;
        gap: 1rem;
        position: relative;
    }

    .map-filters {
        margin-bottom: 2rem;
    }

    .filter-group {
        width: 100% !important;
        flex-wrap: wrap;
    }

    #reset-filter {
        position: absolute;
        bottom: -3rem;
    }
}

.card-documents .dropdown-menu button {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    font-size: 13px;
    width: 100%;
    transition: all 0.2s ease-in-out;
}

.card-documents .dropdown-menu button:hover {
    background: #f5f6fa;
}

.card-documents .dropdown-menu button .icon {
    font-size: 1.125rem;
    width: 1.75rem;
    opacity: 0.8;
    text-align: left;
}


.side-modal-container .backdrop {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s linear;
}
.side-modal-container .backdrop.show {
    opacity: 1;
    z-index: 1090;
}

.side-modal {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 600px;
    max-width: 100%;
    background: #fff;
    z-index: 1100;
    border-left: 1px solid #e5e9f2;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s linear, transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.side-modal.show, .side-modal.show.hide {
    opacity: 1;
    transform: translateX(0);
    overflow-y: auto;
    display: flex !important;
}

.side-modal .header {
    border-bottom: 1px solid #e5e9f2;
    padding: 19.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-modal .close-modal {
    font-size: 18px;
    cursor: pointer;
}

.side-modal .body {
    background: var(--bs-body-bg);
    padding: 16px;
    overflow-y: auto;
    flex: 1 0 auto;
}

#saveFilterModal .filters .filter {
    padding: 8px 16px;
    background-color: #fff;
    color: #000;
    border: 2px solid #00000023;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
}

#saveFilterModal .filters .filter:hover {
    border-color: #1ab6ff67;
}

#saveMappingModal .mappings .mapping {
    padding: 8px 16px;
    background-color: #fff;
    color: #000;
    border: 2px solid #00000023;
    border-radius: 4px;
    margin: 8px 0;
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
}

#saveMappingModal .mappings .mapping:hover {
    border-color: #1ab6ff67;
}

.form-group .form-label-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-group .form-label-group .buttons-container > button {
    margin-left: 0.5rem;
    padding: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 40px;
}
