/*Root variables for activitystatus*/
:root {
    --purple: #7E57C2;
    --cyan: #0dcaf0;
    --yellow: #ffc107;
    --green: #4CAF50;
    --gray: #BDBDBD;
}

/* #region Logo */

#anchor-logo {
    color: rgb(171, 185, 232); /*Colore di default non selezionato*/
}

    #anchor-logo:has(:hover) {
        color: rgb(255, 255, 255);
    }

/* #endregion Logo */


/* #region Loader */
#loader-container {
    position: fixed; /* Posiziona il loader sopra tutto il contenuto */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Usa flex per centrare il loader */
    justify-content: center;
    align-items: center;
    background-color: rgba(33, 37, 41, 0.35); /* Fondo semi-trasparente */
    z-index: 9999; /* Assicurati che il loader stia sopra gli altri contenuti */
}

#loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    border: 3px solid;
    border-color: #2D6BCF #2D6BCF transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

    #loader::after {
        content: '';
        box-sizing: border-box;
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        margin: auto;
        border: 3px solid;
        border-color: transparent #FF3D00 #FF3D00;
        width: 24px;
        height: 24px;
        border-radius: 50%;
        animation: rotationBack 0.5s linear infinite;
        transform-origin: center center;
    }

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotationBack {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

    

/* #endregion Loader */

#logo-image {
    object-fit: cover;
    object-position: center;
    width: 80px;
    height: 80px;
}

.logoImageDiv {
    position: relative;
    width: 80px;
    height: 80px;
    overflow: hidden;
}

    .logoImageDiv:hover .changeImage {
        display: flex;
        cursor: pointer;
    }

.changeImage {
    display: none;
    position: absolute;
    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    background-color: rgba(0,0,0,0.5);
    color: #FFF;
    /*transition: all .5s linear;*/
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    .responsive-span {
        display: none;
    }
}

@media screen and (max-height: 650px) {
    .customFBoxImg {
        max-height: 50vh !important;
    }
}

.customFBoxImg {
    max-height: 70vh;
    width: 100%;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.flex-fill-equals {
    flex: 1 1 0px !important;
}

/*Full calendar*/
.fc-button {
    background-color: #0275d8 !important;
    border-color: #0275d8 !important;
    color: white;
}

/*Activity View Page Status*/
.activityBgViewColor.activityStatus.Waiting {
    background-color: var(--purple);
}

.activityBgViewColor.activityStatus.Confirmed {
    background-color: var(--cyan);
}

.activityBgViewColor.activityStatus.Executing {
    background-color: var(--yellow);
}

.activityBgViewColor.activityStatus.Executed {
    background-color: var(--green);
}

.activityBgViewColor.activityStatus.Cancelled {
    background-color: var(--gray);
}


/*Activity Status*/
.activityStatus.Waiting {
    color: var(--purple);
}

.activityStatus.Confirmed {
    color: var(--cyan);
}

.activityStatus.Executing {
    color: var(--yellow);
}

.activityStatus.Executed {
    color: var(--green);
}

.activityStatus.Cancelled {
    color: var(--gray);
}

/*Activity Task Status*/

.activityTaskStatus.To_Do {
    color: var(--cyan);
}

.activityTaskStatus.Doing {
    color: var(--yellow);
}

.activityTaskStatus.Done {
    color: var(--green);
}

.activityTaskStatus.Canceled {
    color: var(--gray);
}

.sidebar-dropdown:has(.sidebar-item.active) {
    display:block !important;
}


/*.modal.show:nth-of-type(odd) {
    z-index: 1062 !important;
}

.modal-backdrop:nth-of-type(even) {
    z-index: 1061 !important;
}*/





/*Utilizzata per troncare il testo quando serve*/
.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 30px;
}

.lds-ellipsis div {
    position: absolute;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #888888;
   /* background: var(--primary);*/
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px,  0);
    }
}

/*Gestione hover delle card delle persone di contatto e dei bruciatori*/

@media screen and (max-height: 650px) {
    .peopleOpt {
        display: inline-block !important;
    }

    .elementOpt {
        display: inline-block !important;
    }
}

/*#region Tabelle*/
.d-flex_centered {
    display: flex;
    justify-content: center;
    align-items: center;
}
/*#endregion Tabelle*/

/*#region Forms*/

.form-label {
    margin-bottom: 4px !important;
    line-height: 1 !important;
    padding-left: 2px;
}

    .form-label.no-mb {
        margin-bottom: 0 !important;
    }

.validation-message {
    --bs-text-opacity: 1;
    --bs-danger-rgb: 217, 83, 79;
    color: rgba(var(--bs-danger-rgb), var(--bs-text-opacity)) !important;
}

/*#endregion Forms*/

/* #region Modals */

.modal-title{
    font-size: 16px !important;
}

/* #endregion Modals*/

/* #region Table */

.table {
    table-layout: fixed;
}

/* #endregion Table */

