﻿@font-face {
    font-family: 'Barlow';
    font-style: normal;
    font-weight: 400;
    font-display: block;
    src: url("../webfonts/Barlow-Regular.ttf") format("truetype");
}

/*Start Layout*/
html {
    position: relative;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
}

body {
    height: 100%;
    padding: 0;
    margin: 0;
    font-family: Barlow, Calibri, Arial, Helvetica, sans-serif;
}

nav {
    height: 58px;
}

main {
    height: calc(100% - 24px);
    padding-top: 58px;
}

footer {
    height: 24px;
}
/*End Layout*/


/*Start Custom Layout*/

/*Pagina standard dell'applicazione*/
.site-container {
    margin-left: 5rem;
    margin-right: 5rem;
}

.site-page {
    height: 100%;
    overflow: hidden auto;
}

.site-grid-container {
    height: calc(100% - 121); 
    overflow: auto;
}

.site-grid-container-easy {
    height: calc(100% - 230px);
}

/*Start DataTables*/
.site-page-datatables {
    margin: 0 0rem;
}

.site-grid-datatables-container {
    height: 90%;
}
/*End DataTables*/

.site-page form {
    height: calc(100% - 100px);
    overflow: auto;
}

.site-page form .row {
    margin: 0;
}

.site-page form .site-form-controls {
    height: calc(100% - 58px); 
    overflow: auto;
}

.site-page form .site-form-buttons {
    height: 48px;
    border-top: 1px solid lightgray;
    padding-top: 9px;
    overflow: hidden;
}

.site-page h2 {
    font-size: 1.7rem;
}

.text-info {
    color: green !important;
    font-weight: bolder;
    width: 100%;
    border: none;
}

.text-info:disabled {
    background-color: white;
}

.site-menu-alert {
    background-color: yellow;
    font-weight: bolder;
}

.site-button {
    background-color: #007bff8f;
}

.site-button:hover {
    background-color: #0056b3e3;
    cursor: pointer;
}

/*Override messaggi di errore*/
.text-danger, .validation-summary-errors {
    color: #dc3545 !important;
    font-weight: bolder;
}

.site-th-col-numbers {
    width: 5%;
}

.site-date-digit,
.site-number,
.site-integer,
.site-relative {
    width: 100%;
    text-align: right;
}

.site-input-col-numbers {
    width: 100%;
    text-align: center;
}

.site-col-icon {
    text-align: center;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.site-portata {
    color: #007bff8f;
    cursor: pointer;
    font-weight: bold;
}
/*End Custom Layout*/

/* Override the default bootstrap behavior where horizontal description lists 
       will truncate terms that are too long to fit in the left column */
.dl-horizontal dt {
    white-space: normal;
}


/*Start Icon Menu*/
.site-ts-cell-dashboard {
    text-align: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    vertical-align: central;
}

.site-ts-cell-dashboard-red {
    color: red;
    text-align: left;
}

.site-ts-cell-dashboard-pipe-right {
    border-right: 2px solid lightgray !important;
    padding-right: 0.5rem;
}

.site-ts-cell-dashboard-pipe-left {
    border-left: 2px solid lightgray !important;
    padding-left: 0.5rem;
}

.site-ts-row-underlined {
    border-bottom: 1px solid black !important;
}
/*End Icon Menu*/


/*Start Font Awesome*/
.fab,
.far {
    margin-right: 0.3rem;
}

.fas-simple {
    margin-right: 0.3rem;
    color: black !important;
}

.fas {
    color: #007bff8f;
}

.fas:hover {
    color: #0056b3e3;
    cursor: pointer;
}

.fas-red {
    color: red !important;
}

.fas-purple {
    color: mediumpurple;
}

    .fab:hover {
        opacity: 0.4;
    }

.fas-orange {
    color: orange !important;
}

.fas-green {
    color: green !important;
}

.fas-black {
    color: black !important;
}

.fas-grey {
    color: grey !important;
}
.fa-eye-slash, .fa-eye {
    margin-left: 0.5rem;
}

.fa-thumbs-up:hover, .fa-thumbs-down:hover {
    cursor: default;
}

.fa-stack[data-count]:after {
    position: absolute;
    top: 1%;
    right: 0%;
    border-radius: 999px;
    min-width: 2em;
    padding: .6em;
    font-family: Barlow, Calibri, Arial, Helvetica, sans-serif;
    font-size: 50%;
    font-weight: bold;
    line-height: .75em;
    color: white;
    text-align: center;
    content: attr(data-count);
}

.fa-stack-red:after {
    background: rgba(255, 0, 0, 0.85);
}

.fa-stack-green:after {
    background: rgba(38, 127, 0, 0.85);
}
.site-mandatory {
    border: solid 1px;
    border-color: red;
}
/*End Font Awesome*/


.videoWrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    padding-top: 25px;
    height: 0;
}

    .videoWrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

@media (min-width: 1024px) {
    .videoWrapper {
        position: relative;
        padding-top: 0;
        padding-bottom: 5%;
        height: 80%;
    }

    .videoWrapper iframe {
        position: relative;
        width: 768px;
        height: 432px;
        align-self: center;
    }
}

.site-container-horizontal-block {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .site-container-horizontal-block {
        display: grid;
        grid-template-columns: 4fr 4fr 4fr;
    }
}

/*.image_full {
    display: block;
    width: 100%;
}

.image_mobile {
    display: none;
    width: 100%;
}

@media (max-width: 768px) and (min-width: 320px) {
    .image_full {
        display: none;
    }

    .image_mobile {
        display: block;
    }
}*/
.image_full {
    display: none;
    width: 100%;
}

.image_mobile {
    display: block;
    width: 100%;
}

@media (min-width: 768px) {
    .image_full {
        display: block;
    }

    .image_mobile {
        display: none;
    }
}