html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #ecf0f1;
}

.std-info{
    width:200px;
}

.btn-standard {
    width:130px;
}

.col-action {
    display: flex;
    justify-content: space-around;
    width:120px;
}
.width-action {
    width: 120px;
}

.btn-update-card {
    background-color: #FFFFFF;
    color: #2c3e50;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    outline: none;
    position: relative;
    background-image: linear-gradient(to right, #e67e22 0%, #e67e22 100%);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: bottom left;
    transition: background-size 0.3s ease-in-out;
}

    .btn-update-card::before {
        content: '';
        position: absolute;
        left: 0;
        top: 40%;
        height: 60%;
        width: 2px;
        background-color: #e67e22;
        transform: scaleY(0);
        transform-origin: bottom;
        transition: transform 0.3s ease-in-out;
    }

    .btn-update-card:hover {
        background-size: 100% 2px;
        color: #2c3e50;
    }

    .btn-update-card:hover::before {
        transform: scaleY(1);
    }

/* Stile comune per il btn Annulla */
.btn-back {
    background: none;
    color: #858585;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    outline: none;
    position: relative;
    display: inline-block;
    overflow: hidden;
    transition: color 0.3s ease-in-out;
}

    /* Linea verticale */
    .btn-back::before {
        content: '';
        position: absolute;
        left: 0;
        top: 40%;
        height: 60%;
        width: 2px;
        background-color: #858585;
        transform: scaleY(0);
        transform-origin: bottom;
        transition: transform 0.3s ease-in-out;
    }

    /* Linea orizzontale */
    .btn-back::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        width: 100%;
        background-color: #858585;
        transform: scaleX(0);
        transform-origin: bottom left;
        transition: transform 0.3s ease-in-out;
    }

    /* Effetto hover per la linea verticale */
    .btn-back:hover::before {
        transform: scaleY(1);
    }

    /* Effetto hover per la linea orizzontale */
    .btn-back:hover::after {
        transform: scaleX(1);
    }

    /* Effetto hover per il testo del pulsante */
    .btn-back:hover {
        background-size: 100% 2px;
        color: #858585;
    }

.btn-only-icon {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.nav-tab-color {
    color: #2c3e50;
}

    .nav-tab-color:hover {
        color: #2c3e50;
        background-color: #ebecec;
        border-bottom: 2px solid #9da2a2 !important;
    }

.active:not(.custom-active-item, .page-item) {
    color: #2c3e50 !important;
    border-bottom: 2px solid #e67e22 !important;
}

/*.nav-tabs {
    border-bottom: 2px solid #e67e22;
}*/

.navbar-style {
    color: #858585;
    padding: 4px;
}


table thead th {
    color: #000;
    background-color: #e2e3e5 !important;
    padding: 5px;
    border: 1px solid #d1d2d4 !important;
    height: 48px;
}


hr {
    color: #e67e22;
    border: none;
    border-top: 3px solid #e67e22;
    opacity: 1;
}

h2 {
    color: #2c3e50;
}

.icon {
    background-color: transparent;
    color: #2c3e50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    .icon:hover {
        background: none;
        color: #e67e22;
    }

    .icon:disabled {
        background-color: transparent !important;
        color: #bdc3c7 !important;
        cursor: not-allowed !important;
        pointer-events: none !important;
    }

    .icon:disabled:hover {
        background-color: #f0f0f0 !important;
        color: #bdc3c7 !important;
    }

.th-transparent {
    background-color: transparent !important;
    border-left: none !important;
    border-bottom: none !important;
    height: 20%;
}

/* Wrapper per input (va inserito sulla div dell'input) */
.btn-wrapper {
    position: relative;
    display: inline-block;
}

    /* Stile comune per button, a, e input */
    .btn-zoom-line,
    .btn-wrapper input[type="button"],
    .btn-wrapper input[type="submit"] {
        background: none;
        color: #2c3e50;
        font-size: 16px;
        cursor: pointer;
        padding: 10px 20px;
        border: none;
        outline: none;
        position: relative;
        overflow: hidden;
        transition: color 0.3s ease-in-out;
    }

        /* Linea verticale */
        .btn-zoom-line::before,
        .btn-wrapper::before {
            content: '';
            position: absolute;
            left: 0;
            top: 40%;
            height: 60%;
            width: 2px;
            background-color: #e67e22;
            transform: scaleY(0);
            transform-origin: bottom;
            transition: transform 0.3s ease-in-out;
        }

        /* Linea orizzontale */
        .btn-zoom-line::after,
        .btn-wrapper::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            height: 2px;
            width: 100%;
            background-color: #e67e22;
            transform: scaleX(0);
            transform-origin: bottom left;
            transition: transform 0.3s ease-in-out;
        }

        /* Effetto hover per la linea verticale */
        .btn-zoom-line:hover::before,
        .btn-wrapper:hover::before {
            transform: scaleY(1);
        }

        /* Effetto hover per la linea orizzontale */
        .btn-zoom-line:hover::after,
        .btn-wrapper:hover::after {
            transform: scaleX(1);
        }

        /* Effetto hover per il testo del pulsante */
        .btn-zoom-line:hover,
        .btn-wrapper:hover input[type="button"],
        .btn-wrapper:hover input[type="submit"] {
            color: #2c3e50;
        }

.btn-back,
.fc .fc-button-primary,
.btn-calendar-stream,
.icon,
.btn-zoom-line {
    outline: none !important; /* Forza la rimozione dell'outline */
    box-shadow: none !important; /* Forza la rimozione dell'ombra */
    cursor:pointer !important;
}

.badge {
    color: #2c3e50;
}


.custum-hide {
    display: none;
}

.width-azioni{
    width: 120px;
}

/* Colore di sfondo per i bottoni di paginazione */
.pagination .page-item .page-link {
    font-size: 15px;
    background-color: #ffffff;
    color: #2c3e50;
    border-color: #858585;
}

/* Colore di sfondo e del testo per il bottone attivo */
.pagination .page-item.active .page-link {
    font-size: 15px;
    background-color: #2c3e50;
    color: #FFFFFF;
    border-color: #2c3e50;
}

/* Modifica il colore al passaggio del mouse */
.pagination .page-item .page-link:hover {
    font-size: 15px;
    background-color: #e67e22;
    color: #FFFFFF;
    border-color: #e67e22;
}

/* thead DynamicList */
.fixed-table-pagination {
    font-size: 15px;
    color: #858585; 
}

.btn-secondary,
.page-size {
    font-size: 15px;
    background-color: #2c3e50;
    border: none;
}

.th-size {
    height: 30px;
}

.table td {
    background-color: white;
    border: 1px solid #d1d2d4 !important;
    height: 45px;
}

.modal-header {
    color: white;
    background-color: #2c3e50;
    padding: 4px;
}

.interactive-col {
    max-width: 310px;
    min-width: 310px;
    width: 310px;
}

.hide-text-cel {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.custom-tooltip .tooltip-inner {
    background-color: #FFFFFF;
    color: #2c3e50;
    border: 1px, solid, #2c3e50;
}

.custom-tooltip .tooltip-arrow {
    display:none;
}



/* Calendar */

#calendar {
    max-width: 1100px;
    margin: 40px auto;
}

/*
    i wish this required CSS was better documented :(
    https://github.com/FezVrasta/popper.js/issues/674
    derived from this CSS on this page: https://popper.js.org/tooltip-examples.html
    */

.btn-calendar-stream {
    background: none;
    color: #2c3e50;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 20px;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
    transition: color 0.3s ease-in-out;
}

    .btn-calendar-stream:hover {
        background: none;
        color: #e67e22;
    }

.popper,
.tooltip {
    /*position: absolute;
    z-index: 9999;*/
    /*background: #FFC107;*/
    /*color: black;
    width: 150px;*/
    /*border-radius: 3px;*/
    /*box-shadow: 0 0 2px rgba(0,0,0,0.5);
    padding: 10px;
    text-align: center;*/
}

.style5 .tooltip {
    /*background: #1E252B;
    color: #FFFFFF;
    max-width: 200px;
    width: auto;
    font-size: .8rem;
    padding: .5em 1em;*/
}

.popper .popper__arrow,
.tooltip .tooltip-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    margin: 5px;
}

.tooltip .tooltip-arrow,
.popper .popper__arrow {
    /*border-color: #FFC107;*/
}

.style5 .tooltip .tooltip-arrow {
    /*border-color: #1E252B;*/
}

.popper[x-placement^="top"],
.tooltip[x-placement^="top"] {
    margin-bottom: 5px;
}

    .popper[x-placement^="top"] .popper__arrow,
    .tooltip[x-placement^="top"] .tooltip-arrow {
        border-width: 5px 5px 0 5px;
        border-left-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        bottom: -5px;
        left: calc(50% - 5px);
        margin-top: 0;
        margin-bottom: 0;
    }

.popper[x-placement^="bottom"],
.tooltip[x-placement^="bottom"] {
    margin-top: 5px;
}

    .tooltip[x-placement^="bottom"] .tooltip-arrow,
    .popper[x-placement^="bottom"] .popper__arrow {
        border-width: 0 5px 5px 5px;
        border-left-color: transparent;
        border-right-color: transparent;
        border-top-color: transparent;
        top: -5px;
        left: calc(50% - 5px);
        margin-top: 0;
        margin-bottom: 0;
    }

.tooltip[x-placement^="right"],
.popper[x-placement^="right"] {
    margin-left: 5px;
}

    .popper[x-placement^="right"] .popper__arrow,
    .tooltip[x-placement^="right"] .tooltip-arrow {
        border-width: 5px 5px 5px 0;
        border-left-color: transparent;
        border-top-color: transparent;
        border-bottom-color: transparent;
        left: -5px;
        top: calc(50% - 5px);
        margin-left: 0;
        margin-right: 0;
    }

.popper[x-placement^="left"],
.tooltip[x-placement^="left"] {
    margin-right: 5px;
}

    .popper[x-placement^="left"] .popper__arrow,
    .tooltip[x-placement^="left"] .tooltip-arrow {
        border-width: 5px 0 5px 5px;
        border-top-color: transparent;
        border-right-color: transparent;
        border-bottom-color: transparent;
        right: -5px;
        top: calc(50% - 5px);
        margin-left: 0;
        margin-right: 0;
    }



.fc .fc-button-primary {
    background-color: transparent;
    border-color: transparent;
    color: #2c3e50;
}

    .fc .fc-button-primary:disabled {
        background-color: transparent;
        border-color: transparent;
        color: #2c3e50;
    }

.fc .fc-button-primary:hover {
    background-color: #2c3e50;
    color: #FFFFFF;
}

    .fc .fc-button-primary:not(:disabled).fc-button-active, .fc .fc-button-primary:not(:disabled):active {
        background-color: #2c3e50;
        color: #FFFFFF;
    }

a {
    color: black;
    text-decoration: none;
}

.fc-scrollgrid-sync-inner {
    background-color: #2c3e50;
    color: #FFFFFF;
}

.fc .fc-daygrid-day-frame {
    background-color: transparent;
}

.fc-col-header-cell-cushion {
    color: #FFFFFF;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: #fed5b191;
}



/* Icona Plus */

.icon-container {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.icon-plus,
.bi-bar-chart-line-fill {
    font-size: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.btn-focus-none:focus,
.btn-focus-none:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #e67e22;
    border-right-color: #e67e22;
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: 1;
    opacity: 0;
}

.icon-container:hover .circle {
    opacity: 1;
    animation: draw-circle 0.5s linear forwards;
}

@keyframes draw-circle {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        border-color: transparent transparent transparent transparent;
    }

    25% {
        transform: translate(-50%, -50%) rotate(90deg);
        border-color: transparent transparent transparent #e67e22;
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg);
        border-color: transparent transparent #e67e22 #e67e22;
    }

    75% {
        transform: translate(-50%, -50%) rotate(270deg);
        border-color: transparent #e67e22 #e67e22 #e67e22;
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        border-color: #e67e22 #e67e22 #e67e22 #e67e22;
    }
}

/* Icona Plus */

.icon-container-user {
    position: relative;
    display: inline-block;
}

.icon-plus-user {
    font-size: 40px;
    position: relative;
    z-index: 2;
    color: #2c3e50;
}

.circle-user {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #e67e22;
    border-right-color: #e67e22;
    transform: translate(-50%, -50%) rotate(0deg);
    z-index: 1;
    opacity: 0;
}

.icon-container-user:hover .circle-user {
    opacity: 1;
    animation: draw-circle 0.5s linear forwards;
}

@keyframes draw-circle {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
        border-color: transparent transparent transparent transparent;
    }

    25% {
        transform: translate(-50%, -50%) rotate(90deg);
        border-color: transparent transparent transparent #e67e22;
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg);
        border-color: transparent transparent #e67e22 #e67e22;
    }

    75% {
        transform: translate(-50%, -50%) rotate(270deg);
        border-color: transparent #e67e22 #e67e22 #e67e22;
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
        border-color: #e67e22 #e67e22 #e67e22 #e67e22;
    }
}


/* Nascondi la colonna Id _fildChildAdd */

/*#tbChildToAdd td:nth-child(2) {
    display: none;
}*/

.container{
    width:90% !important;
    min-width:90% !important;
}

.container-bg {
    background-color: #FFFFFF;
    box-shadow: -10px 10px 8px rgba(0, 0, 0, 0.1);
}

#sharedContent{
    min-height:600px;
}

.btn-flow {
    border: 2px solid #2c3e50;
    font-size: 16px;
    cursor: pointer;
    /*padding: 10px 20px;*/
}

.btn-flow:hover {
    border: 2px solid #e67e22;
}

#customAlert {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 2px solid #f5c6cb;
    border-radius: 5px;
    z-index: 9999;
    min-width:600px;
}

    #customAlert button {
        margin-top: 10px;
        padding: 5px 10px;
        border: none;
        cursor: pointer;
        width:120px;
    }

.fa-bell-navbar {
    background-color: transparent;
    color: #2c3e50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1rem;
}

    .fa-bell-navbar:hover {
        background: none;
        color: #e67e22;
    }