﻿/* Variabili globali che cambiano con il brand */
:root {
    --primarycolor: #297e89;
    --failbackground: crimson;
    --successbackground: lightseagreen;
    --warningcolor: goldenrod;
}
.vert-separator {
    border-left: 2px solid dimgray;
}
.vote-success {
    background-color: var(--successbackground);
}
.vote-danger {
    background-color: var(--failbackground);
}
.white-text {
    color: white!important;
}
.black-text {
    color: black !important;
}
html, body {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1 0 auto;
}
.footer {
    flex-shrink: 0;
}
.center-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}
/* dropzone */
.dropzone {
    min-height: 30vw;
}

.dropzone .dz-preview {
    min-width: 100%;
    left: -1em;
}

.dropzone .dz-preview.dz-processing .dz-progress {
    min-width: 90%;
    position: absolute;
    left: 10%;
}

.dropzone .dz-preview.dz-file-preview .dz-image {
    min-width: 100%;
    max-height: 64px;
}

.dropzone .dz-preview .dz-details {
    line-height: 115%;
}

.dropzone .dz-preview .dz-details {
    padding: 1em;
}

.wrappereditor {
    position: relative;
    height: 100%;
    width: 100%;
    background-size: cover;
}
.innereditor {
    position: absolute;
    background-color: lightgray;
    color: dimgrey;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 16px;
    opacity: 0.3;
    width: 98.7%;
    height: 96.7%;
    top: 0;
    padding: 10% 0;
    text-align: center;
    z-index: 1000;
}

/* input */
input[role=searchbox]:focus {
    border: 0 !important;
    background-color: white !important;
    border-bottom: 1px solid darkcyan !important;
}

.loginform {
    width: 35%;
    margin: auto;
    padding-top: 5%;
}

.sfera-main-form {
    display: flex;
    flex-direction: column;
    min-height: 75vh;
}

.imgfoto {
    width: 10vw;
}

.sfera-form,
.assemblea-selcontent-panel {
    margin-bottom: auto;
}

#azienda {
    font-size: 1.25rem;
    color: white;
}
/* Footer */
.sfera-footer {
    font-size: 0.85em;
    padding: 2vh;
    margin-top: auto;
}
/* Pannello pulsanti a piè di pagina */
.sfera-button-footer {
    /*    display: flex;
    flex-direction: row;
*/
    margin-top: 3vh;
}

.infomeeting {
    font-size: 0.75rem;
}

.truncateurl {
    width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.meetingko {
    color: red !important;
}
/*.jumbotron.infovoto {
    margin: auto;
    padding: 32px;
}
*/
.btn-circle {
    border-radius: 35px;
}
.btn-attention {
    background-color: gold;
}
/*
.form-check-input {
    margin-top:0;
}
*/
.numvoti {
    height: fit-content;
    font-size: 1rem;
}

.sezionevoti {
    font-size: 0.9em;
}

.sezionevotoodg {
    font-size: 1.2em;
}

.votazioneincorso {
    font-size: 1em;
    flex: 1;
}

.votoriepilogook {
    border-radius: 8px 8px;
    background-color: #E3FBDF;
    box-shadow: 2px 2px 8px lightgreen;
    padding: 8px;
    text-align: right;
}

.votoriepilogoko {
    border-radius: 8px 8px;
    box-shadow: 2px 2px 8px tomato;
    padding: 8px;
    text-align: right;
}

.votocountdown {
    font-size: 1.5em;
}

.appellook {
    border-radius: 8px 8px;
    background-color: #E3FBDF;
    box-shadow: 2px 2px 8px lightgreen;
    padding: 8px;
    text-align: right;
}

.appelloko {
    border-radius: 8px 8px;
    box-shadow: 2px 2px 8px orange;
    padding: 8px;
    text-align: right;
}
/* Stile pulsante scroll to top */
#scrollUp {
    background-image: url("top.png");
    bottom: 20px;
    right: 20px;
    width: 38px; /* Width of image */
    height: 38px; /* Height of image */
}
/* 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;
}
/* selectpicker */
.filter-option-inner-inner {
    color: darkcyan;
}
/* Set padding to display errors that occur during databinding */
.padding-error {
    padding-top: 20px;
}

.principale {
    color: black;
}

.secondario {
    color: gray;
    background-color: gainsboro;
    font-stretch: condensed;
    font-style: italic;
}

.delegato {
    background-color: lavender;
    font-stretch: condensed;
    font-weight: bold;
}

.img-fluid {
    max-width: 100%;
    height: auto;
}

.list-group-item.active {
    background-color: var(--primarycolor);
    border-color: var(--primarycolor);
}

.btn-primary.custom-file-control:before, .btn.btn-primary {
    color: var(--primarycolor);
}

    .btn-primary.active.custom-file-control:before, .btn-primary.custom-file-control:active:before, .btn-primary.custom-file-control:focus:before, .btn-primary.custom-file-control:hover:before, .btn-primary.focus.custom-file-control:before, .btn.btn-primary.active, .btn.btn-primary.focus, .btn.btn-primary:active, .btn.btn-primary:focus, .btn.btn-primary:hover, .open > .btn-primary.dropdown-toggle.custom-file-control:before, .open > .btn.btn-primary.dropdown-toggle {
        color: var(--primarycolor);
    }
/* SFERA Customization */
#select2-sel-condominio-container.select2-selection__rendered,
#select2-sel-assemblea-container.select2-selection__rendered {
    font-size: 1.2em;
    font-weight: bold;
}

#select2-sel-condominio-container.select2-selection__rendered .select2-selection__placeholder,
#select2-sel-assemblea-container.select2-selection__rendered .select2-selection__placeholder {
    color: dimgrey;
    font-size: 1.1em;
    font-weight: bold;
}

.alert-danger {
    color: white;
    background-color: orangered;
}

.alert-warning {
    color: white;
    background-color: var(--warningcolor);
}

.btn-warning:not(:disabled):not(.disabled).active, .btn-warning:not(:disabled):not(.disabled):active, .show > .btn-warning.dropdown-toggle,
.btn-warning {
    background-color: var(--warningcolor) !important;
}

.navbar {
    background-color: white !important;
}

.page-footer {
    background-color: var(--primarycolor) !important;
    padding: 16px;
    font-size: 0.8rem;
    font-stretch: condensed;
}

.navbar-light .navbar-brand,
.navbar-light .navbar-nav .nav-item .nav-link,
.navbar-light > .navbar-nav > .nav-item > .nav-link > a {
    color: var(--primarycolor);
}

.navbar-light .navbar-nav .show > .nav-link, .navbar-light .navbar-nav .active > .nav-link, .navbar-light .navbar-nav .nav-link.show, .navbar-light .navbar-nav .nav-link.active {
    color: steelblue;
}

.navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,<svg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'><path stroke='rgba(16.1,49.4,53.7,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/></svg>");
}

.navbar-light .navbar-toggler {
    /*border-color: var(--primarycolor);*/
    color: var(--primarycolor);
    border-color: transparent !important;
}

.sfera-warning {
    padding: 12px;
}
/* Tab panel */
.nav-tabs .nav-link.active, .nav-tabs .nav-link.active:focus, .nav-tabs .nav-link.active {
    color: white;
    background-color: var(--primarycolor) !important;
}

.nav-tabs .nav-link:hover {
    border-bottom: .214rem solid;
    background-color: lightsteelblue !important;
    color: var(--primarycolor);
}
/* Selectpicker (dropdownlist) */
.dropdown-item {
    max-width: 100% !important;
}

.tab-content {
    width: 100%;
}

.success {
    color: forestgreen;
}

.warning {
    color: orangered;
}

tr.active {
    background-color: darkorange;
    color: white;
}
/*
div .table-responsive {
max-height:47vh;
min-width: 100%;
}
*/
.table-responsive tr[data-row-id] {
    line-height: 0.95rem;
    font-size: 0.95rem;
}

#appello .table-responsive tr[data-row-id] td,
#list-convocati .table-responsive tr[data-row-id] td,
#votazione .table-responsive tr[data-row-id] td {
    max-height: 24px;
    padding: 2px;
}

.table-responsive td, .table-responsive th {
    vertical-align: middle;
}

.bgloading {
    margin-top: 16px;
}
/* Bootgrid */
.selected-row {
    background-color: var(--primarycolor);
    color: white;
}

.bootgrid-header {
    margin: 0px;
    /*max-height: 62px;*/
}

.pagination > li {
    cursor: pointer;
}

.pagination a {
    float: left;
    padding: 4px 10px;
    border: #67a3aa 1px solid;
    border-radius: 3px;
    text-decoration: none;
}

.pagination li.active {
    background-color: var(--primarycolor);
    color: white !important;
}

.pagination li {
    color: var(--primarycolor) !important;
}

.pagination a:hover:not(.active) {
    background-color: lightgray;
    border-radius: 5px;
}

.infoBar, .pagination .pagination-sm {
    font-size: 0.75em !important;
    height: fit-content !important;
}

div#gestioneassemblea .tab-pane .active .show {
    width: 90vw;
}
a[data-toggle="collapse"][aria-expanded="true"] {
    background-color: lightgreen;
}
/* Messaggi avvisi */
#messaggio {
    animation: zoomInDown; /* referring directly to the animation's @keyframe declaration */
    animation-duration: 1s;
    margin-left: 16px;
    margin-right: 16px;
}
/* Loader */
.loader-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    object-fit: fill;
    z-index: 1100;
    /*background-color: rgba(255, 255, 255, 0.7);*/
}

.loader-container .loader {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    top: 100%;
    left: 50%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
}

.loader .card {
    max-width: 15vw;
    align-content: center;
    margin: auto;
}
/* Spinners */
/* Standard spinner */
.lds-ripple {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

    .lds-ripple div {
        position: absolute;
        border: 4px solid var(--primarycolor);
        opacity: 1;
        border-radius: 50%;
        animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .lds-ripple div:nth-child(2) {
            animation-delay: -0.5s;
        }

.impostazionihead {
    min-height: 3vh;
}

.impostazionibody {
    margin-top: 5vh;
}

@keyframes lds-ripple {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}
/* Titel spinner */
.spinner {
    margin: 100px auto;
    width: 50px;
    height: 40px;
    text-align: center;
    font-size: 10px;
}

    .spinner > div {
        background-color: var(--primarycolor);
        height: 100%;
        width: 6px;
        display: inline-block;
        -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
        animation: sk-stretchdelay 1.2s infinite ease-in-out;
    }

    .spinner .rect2 {
        -webkit-animation-delay: -1.1s;
        animation-delay: -1.1s;
    }

    .spinner .rect3 {
        -webkit-animation-delay: -1.0s;
        animation-delay: -1.0s;
    }

    .spinner .rect4 {
        -webkit-animation-delay: -0.9s;
        animation-delay: -0.9s;
    }

    .spinner .rect5 {
        -webkit-animation-delay: -0.8s;
        animation-delay: -0.8s;
    }

@-webkit-keyframes sk-stretchdelay {
    0%, 40%, 100% {
        -webkit-transform: scaleY(0.4)
    }

    20% {
        -webkit-transform: scaleY(1.0)
    }
}

@keyframes sk-stretchdelay {
    0%, 40%, 100% {
        transform: scaleY(0.4);
        -webkit-transform: scaleY(0.4);
    }

    20% {
        transform: scaleY(1.0);
        -webkit-transform: scaleY(1.0);
    }
}
/* Spinner end */

/* Device Custom */
.image-banner {
    height: 50vh;
}
/*
#appello, #votazione {
margin-top: -38px;
}
*/
.grid-command {
    padding: 8px;
}

.img-logo {
    width: 15%;
}

.infostart {
    min-height: 20vh;
}

.gridcommands {
    min-width: 10vw;
}

#contenuti {
}
.assembleanavbar {
    line-height:0.5rem;
}
#mainnavbar {
    max-height: 7vh;
}
.registropresenze {
    max-height: 25vh;
}
#contenitoremeeting {
    max-height: 87vh;
}
@media only screen and (max-width: var(--breakpoint-md)) {
    .nofloat {
        float: none;
        padding: 10px 15px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    html, body {
        width: 100vw;
        height: 100vh;
        display: block;
        flex-direction: unset;
        /*zoom: 0.7 !important;*/
        font-size: 14px;
    }
    .page-footer {
        margin: 0px!important;
        padding: 2px!important;
        font-size: 0.7rem!important;
    }
    #mainnavbar {
        max-height: 10vh;
    }
    .hidden-xs {
        display: none;
    }

    .img-logo {
        width: 33%;
    }

    .gridcommands {
        min-width: 20vw;
    }

    .body-content {
        padding-left: 8px;
        padding-right: 8px;
        display: inline;
        flex-direction: column;
        /*height: 100%*/
    }

    .partecipatitolo {
        font-size: 1.5em;
    }

    #partecipa {
        width: 100vw;
        /*margin-left: -10px;*/
    }

    #contenitorevoto {
        width: 100vw;
        /*margin-left: -10px;*/
    }

    .infovoto {
        transform: scale(0.95);
        margin: 0px;
    }

    .inassembleabutton {
        transform: scale(0.75);
    }

    .main-banner {
        width: 100vw;
    }

    .image-banner {
        width: 100vw;
        height: 30vh;
    }

    .loginform {
        width: 90%;
        margin: auto;
        padding-top: 5%;
    }

    #maincontainer {
        padding: 0px;
    }

    #main {
        padding: 1px;
    }

    #intestazioneassemblea {
        max-height: 15vh;
    }

    .sfera-main-form {
        display: flex;
        flex-direction: column;
        min-height: 75vh;
    }

    .loader .card {
        max-width: 70vw;
        align-content: center;
        margin: auto;
    }
    /* Pannello pulsanti a piè di pagina */
    .sfera-button-footer {
        display: flex;
        flex-direction: column;
        max-height: 3vh;
        margin-top: 5vh;
    }
}
/* Medium devices (tablets, 768px and up) */
@media (max-width: 767.98px) {
    .hidden-sm {
        display: none;
    }

    .img-logo {
        width: 33%;
    }

    .gridcommands {
        min-width: 20vw;
    }

    .main-banner {
        width: 100vw;
    }

    .image-banner {
        width: 100vw;
        height: 40vh;
    }

    .loginform {
        width: 80%;
        margin: auto;
        padding-top: 5%;
    }

    .loader .card {
        max-width: 50vw;
        align-content: center;
        margin: auto;
    }

    .partecipatitolo {
        font-size: 1.6em;
    }

    .inassembleabutton {
        transform: scale(0.75);
    }
}
/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {
    body {
        zoom: 0.95;
        -moz-transform: scale(0.95);
        -moz-transform-origin: 0 0;
    }

    .hidden-md {
        display: none;
    }

    .img-logo {
        width: 25%;
    }

    #maincontainer {
        padding: 4px;
    }

    #main {
        padding: 4px;
    }

    #intestazioneassemblea {
        max-height: 20vh;
    }

    .sfera.sfera-main-form {
        min-height: 80vh;
    }

    .assemblea-selcontent-panel {
        min-height: 55vh;
    }

    .sfera-contenuto {
        min-height: 60vh;
    }

    .loginform {
        width: 75%;
        margin: auto;
        padding-top: 5%;
    }
}
/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {

    .hidden-lg {
        display: none;
    }

    .img-logo {
        width: 20%;
    }
}
.odg-evidenziato {
    background-color: var(--primarycolor)!important;
    color:white!important;
    padding: 2px 0px 2px 0px;
}
.odg-normale {
    background-color: unset !important;
    color: var(--primarycolor);
}
.select2-container .select2-selection--single .select2-selection__rendered {
    display: inline;
}
