* {
    @supports not selector(::-webkit-scrollbar) {
        scrollbar-width: thin;
        scrollbar-color: #a0a0a0 #F1F1F1;
    }

    &::-webkit-scrollbar-track {
        background-color: #F1F1F1;
        border: 3px solid transparent;
        border-radius: 10px;
        background-clip: padding-box;
    }

    &::-webkit-scrollbar {
        width: 12px;
    }

    &::-webkit-scrollbar-thumb {
        background-color: #a0a0a0;
        border: 3px solid transparent;
        border-radius: 10px;
        background-clip: padding-box;
    }
}

img {
    overflow-clip-margin: unset;
}

.disable-shadow .alert {
    box-shadow: none!important;
    border: solid 1px #063460!important;
}

.disable-shadow .alert:last-of-type {
    margin-bottom: 0!important;
}

.page-item.active .page-link {
    border-radius: .25rem!important;
}
/* Bottoni */

.btn-primary {
    color: #ffffff;
    background-color: #2f66b3;
    border-color: #2c60a9;
    box-shadow: none;
}

.btn.btn-primary:hover {
    color: #ffffff;
    background-color: #316cbe;
    border-color: #2f66b3;
}

.btn.btn-primary:focus,
.btn.btn-primary.focus,
.btn.btn-primary:hover {
    color: #ffffff;
    background-color: #316cbe;
    border-color: #2f66b3;
}

.btn.btn-primary:active,
.btn.btn-primary.active,
.open > .btn.btn-primary.dropdown-toggle,
.show > .btn.btn-primary.dropdown-toggle {
    color: #ffffff;
    background-color: #316cbe;
    border-color: #2f66b3;
    box-shadow: 0 2px 2px 0 rgba(49, 108, 190, 0.14), 0 3px 1px -2px rgba(49, 108, 190, 0.2), 0 1px 5px 0 rgba(49, 108, 190, 0.12);
}

.btn.btn-primary:active:hover,
.btn.btn-primary:active:focus,
.btn.btn-primary:active.focus,
.btn.btn-primary.active:hover,
.btn.btn-primary.active:focus,
.btn.btn-primary.active.focus,
.open > .btn.btn-primary.dropdown-toggle:hover,
.open > .btn.btn-primary.dropdown-toggle:focus,
.open > .btn.btn-primary.dropdown-toggle.focus,
.show > .btn.btn-primary.dropdown-toggle:hover,
.show > .btn.btn-primary.dropdown-toggle:focus,
.show > .btn.btn-primary.dropdown-toggle.focus {
    color: #ffffff;
    background-color: #316cbe;
    border-color: #2f66b3;
}

.open > .btn.btn-primary.dropdown-toggle.bmd-btn-icon {
    color: inherit;
    background-color: #2f66b3;
}

.open > .btn.btn-primary.dropdown-toggle.bmd-btn-icon:hover {
    background-color: #316cbe;
}

.btn.btn-primary.disabled:focus,
.btn.btn-primary.disabled.focus,
.btn.btn-primary:disabled:focus,
.btn.btn-primary:disabled.focus {
    background-color: #2f66b3;
    border-color: #2f66b3;
}

.btn.btn-primary.disabled:hover,
.btn.btn-primary:disabled:hover {
    background-color: #2f66b3;
    border-color: #2f66b3;
}

.btn.btn-primary:focus,
.btn.btn-primary:active,
.btn.btn-primary:hover {
    box-shadow: 0 2px 2px 0 rgba(49, 108, 190, 0.14), 0 3px 1px -2px rgba(49, 108, 190, 0.2), 0 1px 5px 0 rgba(49, 108, 190, 0.12);
}

.btn.btn-primary.btn-link {
    background-color: transparent;
    color: #2f66b3;
    box-shadow: none;
}

.btn.btn-primary.btn-link:hover,
.btn.btn-primary.btn-link:focus,
.btn.btn-primary.btn-link:active {
    background-color: transparent;
    color: #2f66b3;
}

.card .card-header-primary .card-icon,
.card .card-header-primary .card-text,
.card .card-header-primary:not(.card-header-icon):not(.card-header-text),
.card.bg-primary,
.card.card-rotate.bg-primary .front,
.card.card-rotate.bg-primary .back {
    background: linear-gradient(60deg, #2f66b3, #1f569a);
}

.btn-whs {
    white-space: initial !important;
}

/* Fine Bottoni */

.text-black {
    color: #000000 !important;
}

.alert {
    padding: 15px!important;
}

.alert-muted {
    color: #ffffff;
    background-color: #888888;

    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(80, 80, 80, 0.4);
}

#discenti_row {
    width: 100%;
}

.dropdown-item span.text {
    width: 100%;
}

.dropdown-item.active:not(.disabled) {
    color: #ffffff;
}

.dropdown-item.selected.disabled {
    color: #999999;
}

.dropdown-item.selected:not(.disabled) {
    color: #ffffff;
}

.dropdown-item.selected.multiple:not(.disabled) {
    color: #495057;
}

.dropdown-item.selected.multiple:not(.disabled):hover {
    color: #ffffff;
}

.fileinput .thumbnail {
    margin-bottom: 10px;
    overflow: hidden;
    text-align: center;
    vertical-align: middle;
    max-width: 250px;
    box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .42), 0 4px 25px 0 rgba(0, 0, 0, .12), 0 8px 10px -5px rgba(0, 0, 0, .2);
}

.fileinput .thumbnail.img-circle {
    border-radius: 50%;
    max-width: 100px;
}

.fileinput .thumbnail > img {
    max-height: 150px;
    object-fit: cover;
}

.fileinput-preview > img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.filter-option-inner-inner {
    color: #495057;
}

.filter-option-inner-inner img {
    display: none;
}

.filter-option-inner-inner span {
    margin-left: 0 !important;
}

.folder {
    background-image: url('../img/folder.svg');
    background-size: contain;
}

.footer {
    background: none repeat scroll 0 0 #063460;
}

form {
    position: inherit;
    z-index: 2;
}

.form-label {
    color: #03427F !important;
    margin: auto 0;
}

.label-required::after {
    padding-left: 0.1rem;
    content: '*';
    color: red;
}

.label-discente-unchecked {
    color: red !important;
}

.lh-100 {
    line-height: 100%;
}

.link-underline, .link-underline:hover {
    text-decoration: underline;
}

.loading-icon {
    animation: loading 1.5s linear infinite;
}

.login-page {
    background: #4192e1;
    background: -moz-linear-gradient(top, #4192e1 1%, #044686 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(1%, #4192e1), color-stop(100%, #044686));
    background: -webkit-linear-gradient(top, #4192e1 1%, #044686 100%);
    background: -o-linear-gradient(top, #4192e1 1%, #044686 100%);
    background: -ms-linear-gradient(top, #4192e1 1%, #044686 100%);
    background: linear-gradient(to bottom, #4192e1 1%, #044686 100%);
}

.menu-sub-text {
    font-size: 16px !important;
    font-weight: bold;
    text-align: center;
    text-align: -moz-center;
    text-align: -webkit-center;
}

.menu-text {
    font-size: 18px !important;
    font-weight: bold;
    text-align: center;
    text-align: -moz-center;
    text-align: -webkit-center;
}

.modal-label {
    margin: auto 0;
}

.nav-variation .nav-item .nav-link:not(.active) {
    background-color: transparent;
    border-color: #2f66b3;
    border-radius: 0.2rem;
    border-style: solid;
    border-width: 1px;
    box-shadow: 0 2px 2px 0 rgb(153 153 153 / 14%), 0 3px 1px -2px rgb(153 153 153 / 20%), 0 1px 5px 0 rgb(153 153 153 / 12%);
    color: #2f66b3;
    display: inline-block;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.428571;
    margin: 0.3125rem 1px;
    outline: 0;
    padding: 12px 30px;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    vertical-align: middle;
    will-change: box-shadow, transform;
    white-space: nowrap;
}

.nav-variation .nav-item .nav-link:not(.active):hover {
    background-color: rgba(153, 153, 153, 0.2);
    border-color: #2f66b3;
    border-style: solid;
    border-width: 1px;
    box-shadow: 0 14px 26px -12px rgb(153 153 153 / 42%), 0 4px 23px 0px rgb(0 0 0 / 12%), 0 8px 10px -5px rgb(153 153 153 / 20%);
    color: #2f66b3;
}

.nav-variation .nav-item .nav-link.active {
    background-color: #2f66b3;
    border: 0 #2c60a9;
    border-radius: 0.2rem;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    box-shadow: none;
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.428571;
    margin: 0.3125rem 1px;
    outline: 0;
    padding: 12px 30px;
    position: relative;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    vertical-align: middle;
    white-space: nowrap;
    will-change: box-shadow, transform;
}

.nav-variation .nav-item .nav-link.active:hover {
    color: #ffffff;
    background-color: #316cbe;
    border-color: #2f66b3;
    box-shadow: 0 2px 2px 0 rgb(49 108 190 / 14%), 0 3px 1px -2px rgb(49 108 190 / 20%), 0 1px 5px 0 rgb(49 108 190 / 12%);
}

.navbar {
    background: none repeat scroll 0 0 #063460 !important;
}

button[name="news_modal_opener"]:focus {
    outline: none !important;
}

select + button.dropdown-toggle {
    outline: none !important;
    border: none !important;
    text-transform: none;
    font-size: 14px;
    padding: 0.2rem 0 0.5rem 0;
    background: transparent !important;
    color: #999999 !important;
}

select + button.dropdown-toggle:hover, select + button.dropdown-toggle:focus {
    outline: none !important;
}

select[name$="_length"] {
    padding: 0 0.2rem;
}

.sidebar .nav p {
    white-space: initial;
}

.sidebar[data-color="gevo"] li.active > a {
    background-color: #063460;
    box-shadow: 0 4px 20px 0px rgba(33, 87, 190, 0.14), 0 7px 10px -5px rgba(32, 90, 190, 0.4);
}

span.dtr-data::before {
    content: "\A";
    white-space: pre;
}

.text {
    white-space: normal;
}

.alert span.bmd-form-group {
    width: 100%;
    max-width: 100%;
}

.table-select-filter .dropdown-toggle {
    width: 10rem;
}

textarea[name="response"]::placeholder {
    font-size: 1.125rem;
}

@media (max-width: 991px) {
    .btn-mobile {
        margin-left: 1rem;
        margin-right: 1rem;
        white-space: normal;
    }

    .mt-mobile {
        margin-top: 0 !important;
    }

    .navbar-toggler .icon-bar {
        background: #fff !important;
    }

    .material-icons.mobile-icons {
        color: #000 !important;
    }

    .m-hide {
        display: none;
    }

    .sidebar, .off-canvas-sidebar nav .navbar-collapse {
        background-color: white !important;
    }

    .sidebar::before, .off-canvas-sidebar nav .navbar-collapse::before {
        background-color: unset;
        content: none !important;
    }
}

@media (min-width: 992px) {
    .modal-lg,
    .modal-xl {
        max-width: 800px;
    }
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px;
    }
}

@keyframes loading {
    from {
        transform: rotate(0);
    }
    50% {
        transform: rotate(180deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* --- Aggiunte VEDI SE RIMUOVERE --- */
/* --- custom css --- */
/* --- colors --- */
.bg-grey {
    background-color: #e0e0e0;
}

.bg-blu {
    background-color: #063460;
}

.text-blu {
    color: #2f66b3;
}

.bmd-form-group label {
    color: #2f66b3;
    font-size: 1rem;
}

/* --- utils --- */
.scroll-y {
    overflow-y: auto;
}

.border-blu {
    border-radius: 0.5rem;
    border: 1px solid #54a4ff;
}

.rl-1 {
    border-radius: 0.5rem 0 0 0.5rem;
}

.rr-1 {
    border-radius: 0 0.5rem 0.5rem 0;
}

.custom-list li {
    list-style: none;
}

.box-shadow {
    -webkit-box-shadow: 0px 0px 30px 0px #5E5E5E;
    box-shadow: 0px 0px 30px 0px #5E5E5E;
}

/* --- img --- */
.img-center {
    margin: auto;
    border-radius: 0.5rem;
}

.img-logo {
    width: 3rem;
    height: auto;
}

.img-login {
    height: 100%;
    width: 40rem;
    border-bottom-left-radius: 0.3rem;
    border-top-left-radius: 0.3rem;
}

.img-logo-login {
    width: 60%;
    height: auto;
}

.img-shadow {
    filter: drop-shadow(10px 5px 10px #063460);
}

img#ottieniBadge {
    width: 18rem;
    height: auto;
}

/* --- spacing --- */
.h-64 {
    min-height: 4rem;
    max-height: 4rem;
}

/* --- font --- */
.font-16 {
    font-size: 1rem;
}

.font-20 {
    font-size: 1.25rem;
}

.font-24 {
    font-size: 1.5rem;
}

.font-32 {
    font-size: 2rem;
}

.font-48 {
    font-size: 3rem;
}

.font-64 {
    font-size: 4rem;
}

/* --- card --- */
.card-responsive {
    min-height: 12.5rem;
    max-height: 12.5rem;
    transition: transform .2s;
}

@media screen and (min-width: 768px) {
    .card-responsive {
        min-height: 20rem;
        max-height: 20rem;
    }
}
.card-v-responsive {
    min-height: 25rem;
}

@media screen and (min-width: 768px) {
    .card-v-responsive {
        min-height: 22rem;
        max-height: 22rem;
    }
}

@media screen and (min-width: 992px) {
    .card-v-responsive {
        min-height: 30rem;
        max-height: 30rem;
    }
}

@media screen and (min-width: 1440px) {
    .card-v-responsive {
        min-height: 22rem;
        max-height: 22rem;
    }
}

/* --- scrollable table --- */
.table-container {
    width: 100%;
    height: 25rem;
    overflow-y: auto;
    border-collapse: collapse;
}

.table-custom {
    width: 100%;
    border-collapse: collapse;
}

.table-custom th, .table-custom td {
    padding: 8px;
    text-align: left;
}

.thead-fixed {
    position: sticky;
    top: 0;
    z-index: 1;
}

/* --- badge --- */
.badge-wrap {
    background-color: #fff;
    color: #000;
    font-size: 1.25rem;
    text-decoration: none;
    padding: 4px 28px;
    position: relative;
    display: inline-block;
    border-radius: 0.5rem;
    border: 1px solid #54a4ff;
}

.badge-wrap:hover {
    color: #000;
}

.badge-wrap .badge-custom {
    position: absolute;
    top: -12px;
    right: -24px;
    padding: 5px 10px;
}

.badge-icon {
    width: 2rem;
}

.badge-icon-rotate {
    transform: rotate(-20deg);
}

/* --- form --- */
.custom-input-form {
    border-radius: 0.5rem;
    border: 2px solid #063460;
}

.icon-login {
    color: #9a9a9a;
}

.icon-login:hover {
    cursor: pointer;
    color: black;
}

.btn-login-gevo {
    border-radius: 0.5rem;
    background-color: #063460;
    color: white;
    padding: 0.5rem 0;
    text-transform: capitalize;
}

.btn-login-gevo:hover{
    cursor: pointer;
    background-color: #063460;
    color: white;
}

.attestati-progress-bar {
    width: 100%;
    display: flex;
    height: 2rem;
    border: solid 1px black;
    border-radius: 1rem;
    overflow: auto;
}

.attestati-progress {
    background-image: url("/img/progress-bar.jpg");
    background-size: contain;
    transition-property: all;
    transition-duration: 300ms;

    animation-name: progress;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
    animation-duration: 3s;
}

@keyframes progress {
    0% { background-position-x: 0; }
    100% { background-position-x: 100px }
}
