﻿/*
    File CSS con all'interno gli stili che ho creato per l'app
*/
:root {
    --venpa-color: #0054A6;
    --custom-warning-color: #FFDE70;
    --blu-messaggio: #BBC6E1;
    --verde-messaggio: #B5E0AA;
    --giallo-messaggio: #F7EA91;
}

.venpaColor {
    background-color: var(--venpa-color);
    color: #FFFFFF;
}

td.venpaColor {
    background-color: var(--venpa-color);
    color: #FFFFFF;
}

.venpaTextColor {
    color: var(--venpa-color);
}

th.head-azzura-table {
    background-color: #D9EDF7;
}

td.azzurro-align-rignt {
    background-color: #D9EDF7;
    text-align: right;
}

.etichetta {
    font-family: 'Trebuchet MS';
    font-size: 9pt;
    color: rgb(51,122,183);
    font-weight: bold;
}

.messaggioErrore {
    color: red;
}

.alert-custom {
    margin-top: 2px;
    margin-bottom: 0px;
    padding: 8px;
}

.style-button-pencil{
    margin-right: 0px;
    font-size: 20px;
}

@media only screen and (max-width: 640px) {

    .visualizzazioneColonneTabella{
        display: none;
    }

}

@media only screen and (max-width: 470px)
{
    .visualizzazioneColonneTabella470{
        display: none;
    }
}

@media only screen and (min-width: 641px) {
    .visualizzazioneColonneTabella {
        display: table-cell;
    }
}

.button-home-dimension {
    width: 280px;
    min-height: 90px;
}

.button-home-width {
    width: 280px;
}

.alert-home-dimension {
    align-content:center;
    margin: 0px;
    width: 100%;
    min-height: 90px;
}

.button-dispositivi-dimension {
    min-height: 120px;
    width: 140px;
}

.button-home-big-text{
    font-size: 30px;
}

.button-medium-text{
    font-size:20px;
}

div.button-disp-prov{
    font-size:20px;
    font-weight:bold;
}

div.button-disp-azienda{
    font-size:12px;
}

div.bututon-disp-desc{
    font-size:20px;
    text-decoration: underline;
}

div.div-custom-dimension {
    min-width:300px;
    max-width:500px;
}

div.div-contdown-label {
    color: var(--venpa-color);
}

div.div-contdown-seconds {
    text-align: center;
    font-size: 80px;
    color: var(--venpa-color);
}

div.div-timbratura-filiale {
    font-weight: bold;
    color: var(--venpa-color);
}

input[type="checkbox"]:disabled:checked {
    background: black; /* Cambia il colore di sfondo */
    border-color: black; /* Cambia il colore del bordo */
}

.custom-form-control {
    width: 100%;
    border-color: black;
    border: var(--bs-border-width) solid;
    border-radius: var(--bs-border-radius);
    padding: .375rem .75rem;
}

.custom-form-control-angoli-smussati {
    border-color: black;
    border: var(--bs-border-width) solid;
    border-radius: var(--bs-border-radius);
    padding: .375rem .75rem;
}

.custom-form-date {
    box-sizing:border-box;
    min-width:0;
}

.angoli-smussati {
    border: var(--bs-border-width) solid;
    border-radius: var(--bs-border-radius);
}

.label-primary {
    font-size: 0.8rem;
}

.label-secondary {
    width: 100%;
    font-size: 1.1rem;
    line-height: 90%;
}

.label-secondary-check-caricamento {
    color: var(--venpa-color);
    font-size:25px;
}

.custom-tr-middle-field-bottom-border-black {
    border-bottom: solid 1px;
    border-bottom-color: black;
}


td.top-left-bordered {
    border-top: solid 1px;
    border-top-color: black;
    border-left: solid 1px #000000;
    border-left-color: black;
}

td.top-middle-bordered {
    border-top: solid 1px;
    border-top-color: black;
}

td.top-right-bordered {
    border-top: solid 1px;
    border-top-color: black;
    border-right: solid 1px #000000;
    border-right-color: black;
}

td.top-bordered {
    border-top: solid 1px;
    border-top-color: black;
    border-right: solid 1px #000000;
    border-right-color: black;
    border-left: solid 1px #000000;
    border-left-color: black;
}

td.middle-bordered {
    border-left: solid 1px #000000;
    border-left-color: black;
    border-right: solid 1px #000000;
    border-right-color: black;
}

td.middle-left-bordered {
    border-left: solid 1px #000000;
    border-left-color: black;
}

td.middle-right-bordered {
    border-right: solid 1px #000000;
    border-right-color: black;
}

td.bottom-left-bordered {
    border-bottom: solid 1px;
    border-bottom-color: black;
    border-left: solid 1px #000000;
    border-left-color: black;
}

td.bottom-middle-bordered {
    border-bottom: solid 1px;
    border-bottom-color: black;
}

td.bottom-right-border {
    border-bottom: solid 1px;
    border-bottom-color: black;
    border-right: solid 1px #000000;
    border-right-color: black;
}

td.bottom-bordered {
    border-bottom: solid 1px;
    border-bottom-color: black;
    border-right: solid 1px #000000;
    border-right-color: black;
    border-left: solid 1px #000000;
    border-left-color: black;
}

div.angoli-smussati {
    border: var(--bs-border-width) solid;
    border-radius: var(--bs-border-radius);
}

div.card-body-no-padding{
    padding: 0px;
}

div.custom-footer{
    text-align: right;
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 3rem;
}

hr.venpaColor {
    height: 3px;
    color: var(--venpa-color);
    opacity: 1;
    margin: 0px;
}

hr.bianca {
    color: white;
    opacity: 1;
    margin: 0px 16px 8px;
}

.custom-login-background {
    background-image: url(../img/sfondoLogin.png);
    background-size: cover ;
    background-repeat: no-repeat;
    background-position: top;
    height:94%;
}

button.invisible-button {
    border: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

button.btn-assenze{
    padding: 4px;
    width: 100%;
    height: 100%;
}

@media (max-width: 400px){
    .row-cols-400px-2 > * {
        flex: 0, 0, auto;
        width: 50%;
    }
}

@media (max-width: 360px) {

    .row-cols-xs-1 > * {
        flex: 0 0 auto;
        width: 100%;
    }
}

.row-col-cel {
    border: solid 1px #dee2e6;
    padding:8px
}

.titolo-pagina {
    text-align: center;
    margin-bottom:8px;
}

.button-warning-bordered{
    border: 2px solid var(--venpa-color);
}

.div-min-width{
    min-width:330px;
}

.table-messaggio-hr {
    margin-bottom: 3px;
    max-width: 80%;
}

.table-messaggio-da-hr {
    margin-right: auto;
}

.table-messaggio-a-hr {
    margin-left: auto;
}

.div-messaggio-da-hr {
    /*margin-bottom: 8px;
    max-width: 80%;
    margin-right: auto;*/
    /*padding: 8px;*/
    background-color: var(--giallo-messaggio);
}

.div-messaggio-a-hr {
    /*margin-bottom: 8px;
    max-width: 80%;
    margin-left: auto;*/
    /*padding: 8px;*/
    /*background-color: #B5E0AA; verde */
    background-color: var(--blu-messaggio);
}

.numero-paginazione-selezionata{
    color:var(--venpa-color);
    text-decoration: underline;
    font-weight: bold;
}

.bottone-paginazione {
    all:unset;
    padding:4px;
    margin: 0 4px;
}
/* Da eliminare
.cookie-banner{
    display:flex;
    font-size:0.8rem;
    background-color: #f7f7f7;
    border-bottom: 1px solid black;
    justify-content: space-between;
    padding: 4px;
}*/

.cookie-banner-fondo {
    font-size:0.8rem;
    justify-content:space-between;
    position: fixed;
    bottom: 0;
    z-index: 1000;
    padding: 4px;
}

.alert-cookie-banner{
    display:flex;
    justify-content: space-between;
    margin-bottom:0px;
}

.div-notizie p{
    margin-bottom:0px;
}

/*Css per checkbox*/

.custom-checkbox{
    display: inline-flex;
    align-items: center;
    cursor: default;
    font-size: 25px;
}

.custom-checkbox input[type="checkbox"]{
    display: none;
}

.custom-checkbox .icon {
    color: var(--venpa-color);
    transition: all 0.2s ease;
}

.custom-checkbox input[type="checkbox"]:not(:checked) + .icon::before{
    content: "\f584";
}

.custom-checkbox input[type="checkbox"]:checked + .icon::before{
    content: "\f26c";
}

.custom-btn-warning {
    --bs-btn-color: #000;
    --bs-btn-bg: var(--custom-warning-color); /*ffde70*/
    --bs-btn-border-color: var(--venpa-color);
    --bs-btn-hover-color: #000;
    --bs-btn-hover-bg: var(--custom-warning-color);
    --bs-btn-hover-border-color: var(--venpa-color);
    --bs-btn-active-color: #000;
    --bs-btn-active-bg: var(--custom-warning-color);
    --bs-btn-active-border-color: var(--venpa-color);
    --bs-btn-disabled-color: #000;
    --bs-btn-disabled-bg: var(--custom-warning-color);
    --bs-btn-disabled-border-color: var(--venpa-color);
}


/*Css preso dai file MainLayout.css e navMenu.css*/
.page {
    position: relative;
    display: flex;
    flex-direction: column;
}

    main {
        flex: 1;
    }

    .sidebar {
        /*background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);*/

        background-color: rgb(0, 84, 166);
        border-bottom: 1px solid #FFFFFF;
    }

.top-row {
    background-color: var(--venpa-color);
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    color: #FFFFFF;
}

        .top-row ::deep a, .top-row ::deep .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
            text-decoration: none;
        }

            .top-row ::deep a:hover, .top-row ::deep .btn-link:hover {
                text-decoration: underline;
            }

            .top-row ::deep a:first-child {
                overflow: hidden;
                text-overflow: ellipsis;
            }

    @media (max-width: 640.98px) {
        .top-row {
            justify-content: space-between;
        }

            .top-row ::deep a, .top-row ::deep .btn-link {
                margin-left: 0;
            }
    }

    @media (min-width: 641px) {
        .page {
            flex-direction: row;
        }

        .sidebar {
            width: 250px;
            height: 100vh;
            position: sticky;
            top: 0;
        }

        .top-row {
            position: sticky;
            top: 0;
            z-index: 1;
        }

            .top-row.auth ::deep a:first-child {
                flex: 1;
                text-align: right;
                width: 0;
            }

        .top-row, article {
            padding-left: 2rem !important;
            padding-right: 1.5rem !important;
        }
    }

    #blazor-error-ui {
        color-scheme: light only;
        background: lightyellow;
        bottom: 0;
        box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
        box-sizing: border-box;
        display: none;
        left: 0;
        padding: 0.6rem 1.25rem 0.7rem 1.25rem;
        position: fixed;
        width: 100%;
        z-index: 1000;
    }

        #blazor-error-ui .dismiss {
            cursor: pointer;
            position: absolute;
            right: 0.75rem;
            top: 0.5rem;
        }

    .navbar-toggler {
        appearance: none;
        cursor: pointer;
        width: 3.5rem;
        height: 2.5rem;
        color: white;
        position: absolute;
        top: 0.5rem;
        right: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
    }

        .navbar-toggler:checked {
            background-color: rgba(255, 255, 255, 0.5);
        }

    .top-row {
        min-height: 3.5rem;
        background-color: rgb(0, 84, 166);
        /*background-color: rgba(0,0,0,0.4);*/
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .bi {
        display: inline-block;
        position: relative;
        width: 1.25rem;
        height: 1.25rem;
        margin-right: 0.75rem;
        top: -1px;
        background-size: cover;
    }

    .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .nav-item ::deep .nav-link {
            color: #d7d7d7;
            background: none;
            border: none;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
            width: 100%;
        }

        .nav-item ::deep a.active {
            background-color: rgba(255,255,255,0.37);
            color: white;
        }

        .nav-item ::deep .nav-link:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

    .nav-scrollable {
        display: none;
    }

    .navbar-toggler:checked ~ .nav-scrollable {
        display: block;
    }

    @media (min-width: 641px) {
        .navbar-toggler {
            display: none;
        }

        .nav-scrollable {
            /* Never collapse the sidebar for wide screens */
            display: block;
            /* Allow sidebar to scroll for tall menus */
            height: calc(100vh - 3.5rem);
            overflow-y: auto;
        }
    }
