@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');

html {
    height: 100%;
    --vh: 1vh;  /* Impostato inizialmente su 1vh */
}

body {
    height: calc(var(--vh, 1vh) * 100);
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
    overflow: hidden;
    touch-action: none;
}

#TM_login, #VW_registrati {
    background-color: #FE8C12;
}

#TM_login #mainView, #VW_registrati #mainView  {
    height: calc(var(--vh, 1vh) * 100);
}

a {
    cursor: pointer;
}
.sidebar {
    width: 280px;
}

.centraVertOriz {
    display: flex;
    justify-content: center; 
    flex-direction: column;
    align-items: center;
    height: 100%;
}

#content {
    width: 100%;
    height: 100svh;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
    overflow-y: auto;
}

.nav-link.active {
    background-color: #FE8C12 !important;
    color: white !important;
    font-weight: bold !important;
}

i {
    text-align: center;
    width: 1.8rem;
}

.icon-container {
    background-color: rgba(0, 0, 0, .1);
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 50%;
    text-align: center;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-container i {
    font-size: 2.1rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding-top: 0.35rem;
}

.steveColor {
    color: #FE8C12 !important;   
}

.form-check-input:checked {
    background-color: #FE8C12;
    border-color: #FE8C12;
}

.controls i {
    width: 3rem;
}

.btn-primary {
    background-color: #FE8C12 !important;
    border: 0px solid transparent !important;
}

.btn-primary:hover {
    background-color: #FE8C12 !important;
    border: 0px solid transparent !important;
}

select:focus, input:focus {
    box-shadow: none !important;
    border-color: #FE8C12 !important;
}

a {
    color: black !important;
}

.form-signin {
    max-width: 30rem;
}

.dropdown-item.active, .dropdown-item:active {
    background-color: #FE8C12;
}

input[readonly] {
    background-color: transparent; /* Colore di sfondo */
    border: 0 none;   /* Bordo */
}

#tableUserInfo {
    --bs-table-bg: transparent;
    margin-top: 1.5rem;
}

#tableUserInfo th:first-child {
    width: 4rem;
    padding-left: 1rem;
}

.alert {
    /* width: 28rem; */
    height: 3.5rem;
}

@media (max-width: 768px) {
    .sidebar {
        width: 80px;
        /* Riduce la larghezza della sidebar */
    }

    .sidebar .nav-link span {
        display: none;
        /* Nasconde i testi delle icone */
    }

    .sidebar .dropdown-toggle strong {
        display: none;
        /* Nasconde il nome dell'utente */
    }

    #zonaLogo span {
        display: none;
        /* Nasconde il testo "Steve 3.0" accanto al logo */
    }

    #zonaLogo img {
        width: 100%;
    }

    .nav-link i,
    .nav li {
        width: 100%;
    }

    .nav li .active {
        padding-left: 0;
        padding-right: 0;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .dropdown-toggle::after {
        display: none !important;
    }

    .icon-container {
        margin-left: 0.4rem;
    }

    .dtr-title {
        display: block !important;
    }

    .dtr-data {
        line-height: 1.9rem;
    }

    #menuLaterale > a:first-child {
        margin-left: -0.17rem;
    }
      
}

#instanceList i {
    cursor: pointer;
}

.was-validated input:invalid {
    border-color: red;
}

#controlloTab {
    border-color: #FE8C12;
}

#controlloTab li button {
    color: black;
}

.riquadriSelectUl {
    overflow-y: auto;
    height: 10rem;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    padding: 0.5rem;
    background-color: white;
}

.riquadriSelectUl ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.riquadriSelectUl ul li {
    cursor: pointer;
}

.svh-100 {
    height: 100svh !important;
}

#ExcInfoModal input[readonly]{
    background-color: #f3f3f3 !important;
}