@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: font-family: 'DM Sans', sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}


app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    /*background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%,#008b8b 70%);*/
    background-color: #052842;
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }



    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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;
}

@media (max-width: 790px) {
    /*<=*/
    app {
        /*overflow:auto;*/
    }

    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }

    .nascondi {
        display: none;
        visibility: hidden;
    }

    .d {
        background: linear-gradient(rgba(255,255,255,1.5), rgba(255,255,255,.5)), url(/css/open-iconic/font/css/image-from-rawpixel-id-2335698-original.png);
        
    }
}

/*@media (max-width: 850px)
{
    .nascondi {
        visibility: hidden;
    }
}*/


@media (min-width: 791px) { /*>=*/
    app {
        flex-direction: row;
    }

    .d {
        overflow: auto;
        background: linear-gradient(rgba(255,255,255,1.5), rgba(255,255,255,.5)), url(/css/open-iconic/font/css/image-from-rawpixel-id-2335698-original.png);
        height: 100vh;
    }


    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /*Never collapse the sidebar for wide screens*/
        display: block;
    }

    .e-icon-add {
        padding: 9px 0 10px 20px;
        font-size: 10px;
        color: #7575ff;
    }

    .icon-occhio:before {
        content: "\e051";
    }
    /*
    .nascondi {
        display: none;
        visibility: hidden;
    }*/

    /* .wave {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 300px;
        background: url(~/Identity/open-iconic/font/css/wave.png);
        background-size: 1000px, 300px;
    }

    .wave.wave1 {
        animation: animate 30s linear infinite;
        z-index:1000;
        opacity:2;
        animation-delay:0s;
        bottom:0;
    }

    @keyframes animate {

        0%{
            background-position-x:0px;
        }
        100% {
            background-position-x: 1000px;
        }

    }
    @keyframes animate2 {

        0% {
            background-position-x: 0px;
        }

        100% {
            background-position-x: -1000px;
        }
    }*/


    
}

.e-ddl.e-input-group input.e-input::placeholder {
    font-family: 'DM Sans', sans-serif;
}

.e-input-group.e-control-wrapper.e-control-container.e-float-input .e-float-text::after {
    font-family: 'DM Sans', sans-serif;
}

.e-dropdownbase .e-list-item, .e-dropdownbase .e-list-item.e-item-focus {
    font-family: 'DM Sans', sans-serif;
}

.e-input-group input.e-input, .e-input-group.e-control-wrapper input.e-input {
    font-family: 'DM Sans', sans-serif;
}

.e-datetimepicker.e-popup {
    font-family: 'DM Sans', sans-serif;
}

.e-calendar {
    font-family: 'DM Sans', sans-serif;
}

    .e-calendar .e-content td:hover span.e-day, .e-calendar .e-content td:focus span.e-day, .e-bigger.e-small .e-calendar .e-content td:hover span.e-day, .e-bigger.e-small .e-calendar .e-content td:focus span.e-day {
        font-family: 'DM Sans', sans-serif;
    }

    .e-calendar .e-header .e-title, .e-bigger.e-small .e-calendar .e-header .e-title {
        font-family: 'DM Sans', sans-serif;
    }

.e-input-group input.e-input, .e-input-group.e-control-wrapper input.e-input {
    font-family: 'DM Sans', sans-serif;
}

.e-datetime-wrapper .e-input-group-icon.e-date-icon, .e-datetime-wrapper .e-input-group-icon.e-time-icon {
    font-family: 'DM Sans', sans-serif;
}

.e-input:not(:valid), .e-input:valid, .e-float-input.e-control-wrapper input:not(:valid), .e-float-input.e-control-wrapper input:valid, .e-float-input input:not(:valid), .e-float-input input:valid, .e-input-group input:not(:valid), .e-input-group input:valid, .e-input-group.e-control-wrapper input:not(:valid), .e-input-group.e-control-wrapper input:valid, .e-float-input.e-control-wrapper textarea:not(:valid), .e-float-input.e-control-wrapper textarea:valid, .e-float-input textarea:not(:valid), .e-float-input textarea:valid, .e-input-group.e-control-wrapper textarea:not(:valid), .e-input-group.e-control-wrapper textarea:valid, .e-input-group textarea:not(:valid), .e-input-group textarea:valid {
    font-family: 'DM Sans', sans-serif;
}

.e-float-input.e-control-wrapper:not(.e-error) input:valid ~ label.e-float-text, .e-float-input.e-control-wrapper:not(.e-error) input ~ label.e-label-top.e-float-text {
    font-family: 'DM Sans', sans-serif;
}

.e-calendar .e-content span.e-day, .e-bigger.e-small .e-calendar .e-content span.e-day {
    font-family: 'DM Sans', sans-serif;
}

.e-calendar .e-header span, .e-bigger.e-small .e-calendar .e-header span {
    font-family: 'DM Sans', sans-serif;
}

.e-calendar .e-btn.e-today.e-flat.e-primary, .e-calendar .e-css.e-btn.e-today.e-flat.e-primary {
    font-family: 'DM Sans', sans-serif;
}

.e-calendar .e-content td.e-selected.e-focused-date span.e-day {
    font-family: 'DM Sans', sans-serif;
}

.e-calendar .e-content thead, .e-bigger.e-small .e-calendar .e-content thead {
    font-family: 'DM Sans', sans-serif;
}

.e-textbox {
    font-family: 'DM Sans', sans-serif;
}

e-gridcontent {
    font-family: 'DM Sans', sans-serif;
}

e-table {
    font-family: 'DM Sans', sans-serif;
}

e-altrow {
    font-family: 'DM Sans', sans-serif;
}

e-rowcell {
    font-family: 'DM Sans', sans-serif;
}

e-groupcaption {
    font-family: 'DM Sans', sans-serif;
}

e-selectionbackground {
    font-family: 'DM Sans', sans-serif;
}

e-gridheader {
    font-family: 'DM Sans', sans-serif;
}

e-table {
    font-family: 'DM Sans', sans-serif;
}

e-columnheader {
    font-family: 'DM Sans', sans-serif;
}

e-headercell {
    font-family: 'DM Sans', sans-serif;
}

e-headercelldiv {
    font-family: 'DM Sans', sans-serif;
}
