.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;
}

.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.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;
}

.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;
}

.select2-container {
    width: 100px !important;
}

@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;
    }
}
