/*Custom style for admin*/
html {
    scroll-behavior: smooth;
}

.sidebar-brand .logo {
    height: 40px;
    /*width: 24px;*/
}
.sidebar {
    background: black;
}
.sidebar-content {
    background: #057a5f;
}

.navbar-bg {
    background: #057a5f;
}


.btn-primary:hover,
.btn-primary:focus {
    background-color: #03634d !important; /* Una versione leggermente più scura per effetto hover */
    border-color: #035c48 !important;
    color: #fff !important;
    box-shadow: 0 2px 6px #4bbf7333;

}

h1{
    color:black !important;
}

h6{
    margin-top: 4px !important;
}

label {
    display: inline-block;
    color: black;
}

.card-title {
    font-size: .95rem;
    font-weight: 500;
    color: black;
    margin: 0;
}


.card .card-header {
    border-bottom: 1px solid #057a60 !important;
}

.sidebar-header {
    font-weight: 400;
    padding: 0.625rem 1.625rem;
    /*color: rgba(233,236,239,.5);*/
    color: white;
}
.sidebar-header i {
    margin-right: 0.75rem;
}
.sidebar-dropdown .sidebar-item.active .sidebar-link {
    color: grey;
}
.sidebar-dropdown .sidebar-item.active .sidebar-link:hover {
    color: grey;
}

/*.hamburger, .hamburger:after, .hamburger:before {*/
/*    cursor: pointer;*/
/*    border-radius: 1px;*/
/*    height: 3px;*/
/*    width: 24px;*/
/*    background: white;*/
/*    display: block;*/
/*    content: "";*/
/*    transition: background .1s ease-in-out, color .1s ease-in-out;*/
/*}*/

/*a.sidebar-toggle i {*/
/*    color: white;*/
/*    transition: color 0.2s ease;*/
/*}*/

/*a.sidebar-toggle:hover i {*/
/*    color: #047a5f !important;*/
/*}*/

/*.sidebar-item .sidebar-link.no-link:hover,*/
/*.sidebar-item .sidebar-link.no-link:hover i {*/
/*    color: grey !important;*/
/*    cursor: default;*/
/*    pointer-events: none;*/

/*    text-decoration: none;*/
/*}*/

a:hover {
    color: #c9ecd5 !important;
}

.sidebar-link.active {
    color: #c9ecd5  !important;
}

.hamburger:hover {
    color: white !important;
}


.sidebar-toggle{
    color:white;
}


.main .navbar.fixed-top {
    left: 260px;
}

.content {
    padding: 2rem 2.5rem 1.5rem;
    background-color: #eef5f3;
}

.card .card-header.access {
    border-bottom: 1px solid #ffffff !important;
}

#logout-message {
    margin-bottom: -40px !important;
}

.breadcrumb {
    font-size: 0.9rem;
    color: #495057;
}
.breadcrumb a {
    color: #495057;
}
.breadcrumb a:hover {
    color: rgb(73, 80, 87, 80%);
    text-decoration: none;
}
.breadcrumb a:after {
    content: ">";
    margin: 0 10px;
}

.card .card-header {
    border-bottom: 1px solid #dee6ed;
}
.card .card-body .product-code,
.card .card-body .product-name,
.card .card-body .product-category,
.card .card-body .product-subcategory {
    font-size: 1rem;
    color: #000000;
}
.card .card-header .current {
    color: #035f4a;
}
.table {
    table-layout: fixed;
}
/*LOGIN*/
.login-wrapper .card {
    border: none;
    box-shadow: 0 0 0.875rem 0 rgba(41,48,66,.05);
    margin-top: 10em;
}
.login-wrapper .card .card-header {
    background: #FFFFFF;
    border: none;
    padding: 1rem;
}
.login-wrapper .card .card-body input {
    border-radius: 6px;
}
.login-wrapper .card .card-body button {
    position: relative;
    width: 100%;
    height: 62px;
    font-weight: bold;
    text-transform: uppercase;
}
.login-wrapper .card .card-body button .button__text {
    transition: all 0.2s;
}
.login-wrapper .card .card-body .button--loading .button__text {
    visibility: hidden;
    opacity: 0;
}
.login-wrapper .card .card-body .button--loading::after {
    content: "";
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    border: 4px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }

    to {
        transform: rotate(1turn);
    }
}

.login-wrapper .form-text {
    text-align: center;
    text-transform: capitalize;
    margin: 20px 0;
}
#eye, #slashed-eye{
    position: absolute;
    right: 5%;
    top: 38%;
}
/*Badge*/
.badge {
    width: 100%;
    font-size: 11px;
    padding: 10px 5px !important;
}
/*.undifferentiated-color {*/
/*    background: #616161;*/
/*}*/

/*Alert*/
.alert {
    color: #212529;
    display: flex;
    padding: 0;
    margin: 20px 0;
}
.alert span {
    width: 100%;
    box-sizing: border-box;
    padding: .95rem;
}
.alert.alert-success {
    background-color: #dbf2e3;
    border-color: #c9ecd5;
}
.alert.alert-warning {
    background-color: #faeddb;
    border-color: #faeddb;
}
.alert.alert-danger {
    background-color: #f7dddc;
    border-color: #f7dddc;
}
/*date picker*/
input.date-piker {
    display: block;
    width: 100%;
    padding: .25rem .7rem;
    font-size: .825rem;
    font-weight: 400;
    line-height: 1.625;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-radius: .2rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
/*select multiple*/
.form-control .badge {
    color: #293042;
    background: #e2e8ee;
    border: 1px solid #dee6ed;
    border-radius: .2rem;
    color: #495057;
    cursor: default;
    margin-right: 10px;
    padding: .2rem .5rem;
}
.form-control .badge .btn-close {
    margin: 0.2em 0 0 0.3em;
}
/*Tabelle generale*/
.table tbody .btn-group i {
    margin-right: 5px;
}
.table .title {

}
/*accordion*/
.accordion-button:not(.collapsed) {
    color: #495057;
    background-color: #FFFFFF;
}
.accordion-button {
    border: none;
    padding: 1rem 0rem;
}
.accordion-button:focus {
    z-index: 3;
    border-color: #FFFFFF;
    outline: 0;
    box-shadow: 0 0 0 0;
}


/*calendario*/
#date-picker-input{
    padding-bottom: 7px;
    padding-top: 7px;
}


/*card*/
.card-title .current {
    color: #000000;
}
/*dropzone*/
.dropzone {
   border: 1px solid #dee6ed;
}
/*multimedia*/
#input-search-media {
    display: inline-block;
    width: 60%;
}
#button-search-media i {
    display: inline-block;
    /*position: relative;*/
    width: 15px;
    height: 15px;
    margin: -2px 6px -2px 0px;
}

.btn-primary {
    color: #fff;
    background-color: #047a5f;
    border-color: #047a5f;
}

a {
    color: #047a5f;
}

.btn-primary:hover {
    background-color: #035f4a; /* Colore quando il mouse è sopra */
    border-color: #035f4a;     /* Anche il bordo cambia colore */
}

.btn-outline-primary {
    color: #035f4a;
    border-color: #035f4a;
}

.btn-outline-primary:hover {
    background-color: #047a5f ;
}

.btn-outline-primary:focus,
.btn-outline-primary:active {
    background-color: #047a5f
}

/*icona cambio pagina*/
 .material-symbols-outlined {
     font-variation-settings:
             'FILL' 0,
             'wght' 400,
             'GRAD' 0,
             'opsz' 24
 }
/*loader multimedia*/
.sk-fading-circle {
    display: none;
    position: relative;
    width: 15px;
    height: 15px;
    margin: -2px 6px -2px 0px;
}

.sk-fading-circle .sk-circle {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
}

.sk-fading-circle .sk-circle:before {
    content: '';
    display: block;
    margin: 0 auto;
    width: 15%;
    height: 15%;
    background-color: #333;
    border-radius: 100%;
    -webkit-animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
    animation: sk-circleFadeDelay 1.2s infinite ease-in-out both;
}
.sk-fading-circle .sk-circle2 {
    -webkit-transform: rotate(30deg);
    -ms-transform: rotate(30deg);
    transform: rotate(30deg);
}
.sk-fading-circle .sk-circle3 {
    -webkit-transform: rotate(60deg);
    -ms-transform: rotate(60deg);
    transform: rotate(60deg);
}
.sk-fading-circle .sk-circle4 {
    -webkit-transform: rotate(90deg);
    -ms-transform: rotate(90deg);
    transform: rotate(90deg);
}
.sk-fading-circle .sk-circle5 {
    -webkit-transform: rotate(120deg);
    -ms-transform: rotate(120deg);
    transform: rotate(120deg);
}
.sk-fading-circle .sk-circle6 {
    -webkit-transform: rotate(150deg);
    -ms-transform: rotate(150deg);
    transform: rotate(150deg);
}
.sk-fading-circle .sk-circle7 {
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    transform: rotate(180deg);
}
.sk-fading-circle .sk-circle8 {
    -webkit-transform: rotate(210deg);
    -ms-transform: rotate(210deg);
    transform: rotate(210deg);
}
.sk-fading-circle .sk-circle9 {
    -webkit-transform: rotate(240deg);
    -ms-transform: rotate(240deg);
    transform: rotate(240deg);
}
.sk-fading-circle .sk-circle10 {
    -webkit-transform: rotate(270deg);
    -ms-transform: rotate(270deg);
    transform: rotate(270deg);
}
.sk-fading-circle .sk-circle11 {
    -webkit-transform: rotate(300deg);
    -ms-transform: rotate(300deg);
    transform: rotate(300deg);
}
.sk-fading-circle .sk-circle12 {
    -webkit-transform: rotate(330deg);
    -ms-transform: rotate(330deg);
    transform: rotate(330deg);
}
.sk-fading-circle .sk-circle2:before {
    -webkit-animation-delay: -1.1s;
    animation-delay: -1.1s;
}
.sk-fading-circle .sk-circle3:before {
    -webkit-animation-delay: -1s;
    animation-delay: -1s;
}
.sk-fading-circle .sk-circle4:before {
    -webkit-animation-delay: -0.9s;
    animation-delay: -0.9s;
}
.sk-fading-circle .sk-circle5:before {
    -webkit-animation-delay: -0.8s;
    animation-delay: -0.8s;
}
.sk-fading-circle .sk-circle6:before {
    -webkit-animation-delay: -0.7s;
    animation-delay: -0.7s;
}
.sk-fading-circle .sk-circle7:before {
    -webkit-animation-delay: -0.6s;
    animation-delay: -0.6s;
}
.sk-fading-circle .sk-circle8:before {
    -webkit-animation-delay: -0.5s;
    animation-delay: -0.5s;
}
.sk-fading-circle .sk-circle9:before {
    -webkit-animation-delay: -0.4s;
    animation-delay: -0.4s;
}
.sk-fading-circle .sk-circle10:before {
    -webkit-animation-delay: -0.3s;
    animation-delay: -0.3s;
}
.sk-fading-circle .sk-circle11:before {
    -webkit-animation-delay: -0.2s;
    animation-delay: -0.2s;
}
.sk-fading-circle .sk-circle12:before {
    -webkit-animation-delay: -0.1s;
    animation-delay: -0.1s;
}

@-webkit-keyframes sk-circleFadeDelay {
    0%, 39%, 100% { opacity: 0; }
    40% { opacity: 1; }
}

@keyframes sk-circleFadeDelay {
    0%, 39%, 100% { opacity: 0; }
    40% { opacity: 1; }
}
/*end loader multimedia*/
.list-media .card.media {
    border: 1px solid #dee6ed;
    box-shadow: none;
}
#multimedia-container .card .card-img-container {
    height: 180px;
    overflow: hidden;
}
#multimedia-container .card .card-img-top {
    width: 100%;
    height: auto;
    margin: auto;
}
#multimedia-container .card .card-body a {
}
#multimedia-container .card .card-body .image-name {
    margin-bottom: 1.25rem;
}
/*Catalogo - dettaglio modello - seo*/
.tab-content-seo {
    padding: 5px 15px;
    border: 1px solid #dee6ed
}

/*Publishing*/
#datatables-publishing-releases .evidence i {
    color: #FFFFFF;
    background: #ffc107;
    padding: 10px;
    border-radius: 0.2rem;
}

/*import csv*/
.csv-import .dropzone {
    min-height: 223px;
}


/*Footer*/
.footer img {
    height: 15px;
}

#div-empty-images {
    display: none;
}

#loader {
    display: flex;
    /*flex-wrap: wrap;*/
}

.skeleton-card {
    height: 15vh;
    width: calc((100% / 6) - 16px);
    /*max-width: 100%;*/
    margin: 8px;
    border-radius: 3px;
    transition: all 200ms ease-in-out;
    position: relative;
    background-color: #eaeaea;
    overflow: hidden;
}

.skeleton-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    /*transform: translateX(-100%);*/
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.2) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0));
    animation: load 1s infinite;
}

@keyframes load {
    100% {
        transform: translateX(100%);
    }
}


@media (max-width: 1366px) {
    h1 {
      font-size: 1.2rem;
    }
    table, table .btn-group, table .btn-group a, table .btn-group button,
    .employees-calendar .table .service .service-name, .employees-calendar .table .service .service-time, .employees-calendar .table .service .service-route {
        font-size: 10px;
    }
    .employees-calendar .table th h2,
    .employees-calendar .table tbody th {
        font-size:12px;
    }
    .employees-calendar .table tbody .half-hour th {
        font-size: 10px;
    }
}

#loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Spinner */
.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #006605;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


#date-start-picker-input, #date-end-picker-input, #order-date-picker-input, #deadline-date-picker-input, #purchase-deadline-date-picker-input, #purchase-order-date-picker-input{
    padding-top: 7px;
    padding-bottom: 7px;
}


.barra {
    display: flex;
    align-items: center;
    gap: 4px;                   /* spazio minimo tra gli elementi */
    max-width: 100%;
    padding: 4px 6px;           /* riducibile */
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.barra input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 2px 6px;           /* più piccolo → altezza minore */
    font-size: 12px;            /* più piccolo → si rimpicciolisce tutto */
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box;
}

.barra button {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 2px 6px;           /* anche lui più piccolo */
    font-size: 12px;
    border: 1px solid #035f4a;
    background: none;
    color: #035f4a;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.barra button:hover {
    background-color: #047a5f;
    color: #eef5f3;
}

input.select2-search__field:focus {
    outline: 2px solid #039372;
}


/*!* INPUT *!*/
/*.form-control:focus {*/
/*    border-color: #0a5d19 !important;            !* colore bordo quando attivo *!*/
/*    box-shadow: 0 0 0 0.15rem rgba(10, 93, 25, .25) !important; !* alone *!*/
/*}*/

/*!* SELECT *!*/
/*.form-select:focus {*/
/*    border-color: #0a5d19 !important;*/
/*    box-shadow: 0 0 0 0.15rem rgba(10, 93, 25, .25) !important;*/
/*}*/


input:focus,
select:focus,
a:focus,
textarea:focus,
button:focus,
.form-control:focus,
.form-select:focus {
    border-color: #0a5d19 !important;
    box-shadow: 0 0 0 0.15rem rgba(10, 93, 25, 0.25) !important;
    outline: none;                                     /* opzionale, per nascondere outline blu */
}

.form-select:focus {
    border-color: #0a5d19 !important;
    box-shadow: 0 0 0 0.15rem rgba(10, 93, 25, 0.25) !important;
}

.select2-container {
    width: 100% !important;
}


/*.barra {*/
/*    display: flex;*/
/*    gap: 15px;*/
/*    padding: 10px;*/
/*    !*background: #f5f5f5;*!*/
/*    border-radius: 4px;*/
/*    width: fit-content;*/
/*    align-items: center;*/
/*    font-family: Arial, sans-serif;*/
/*}*/

/*.barra input {*/
/*    padding: 4px 12px;*/
/*    border: 1px solid #ccc;*/
/*    border-radius: 5px;*/
/*    font-size: 14px;*/
/*    width: 150px;*/
/*}*/

/*.barra input:focus {*/
/*    outline: none;*/
/*    border-color: #0a5d19;*/
/*    box-shadow: 0 0 5px rgba(19, 129, 33, 0.459);*/
/*}*/

/*.barra button {*/
/*    padding: 5px 16px;*/
/*    border: 1px solid #035f4a;*/
/*    background-color: none;*/
/*    color: #035f4a;*/
/*    border-radius: 4px;*/
/*    font-size: 14px;*/
/*    cursor: pointer;*/
/*    transition: background-color 0.2s;*/
/*}*/

/*.barra button:hover {*/
/*    background-color: #047a5f;*/
/*    color: #eef5f3;*/
/*}*/

/*#date-end-picker-input{*/
/*    padding-top: 7px;*/
/*    padding-bottom: 7px;*/
/*}*/
