/*da utilizzare dopo elementi flottati per resettare il flusso*/
.reset {
    clear: both;
    height: 0;
    line-height: 0;
    width: 0;
    font-size: 0;
    overflow: hidden;
}

/*da utilizzare quando il pulsante non e' il primo elemento all'interno della sezione; in quel caso inserire invece la classe form-group */
.form-button-container {
    margin: 15px 0;
}

/*classe associata al wrapper per dare un'altezza minima alla pagina*/
.minHeight {
    min-height: 300px;
}

#login,
#registrazione {
    margin: 20px auto;
}

#welcomeUser {
    margin: 0px;
}

/*customizzazione fieldset*/
fieldset {
    background: #EFEFEF;
    margin: 10px auto 20px;
}

fieldset.white {
    background: #fff;
}

fieldset.noMarginTop,
.noMarginTop {
    margin-top: 0;
}

legend {
    /*background: #172156;*/
    background: #898989;
    color: #fff;
    font-weight: bold;
    padding: 5px 10px;
    margin-bottom: 5px;
    font-size: 16px;
    /* Safari 3-4, iOS 1-3.2, Android 1.6- */
    -webkit-border-radius: 4px;
    /* Firefox 1-3.6 */
    -moz-border-radius: 4px;
    /* Opera 10.5, IE 9, Safari 5, Chrome, Firefox 4, iOS 4, Android 2.1+ */
    border-radius: 4px;
}

/*legend di colore diversa per le varie sezioni del formulario*/
legend.blue {
    background: #2665B4;
}

/*da inserire all'interno del fieldset per racchiudere il contenuto: serve a dare un padding di 10px*/
.contenitore {
    padding: 10px;
}

/*footer*/
#footer {
    background: repeat-x scroll left bottom #000000;
    height: 60px;
    width: 100%;
    margin-top: 40px;
}

#footer .container .text-muted {
    padding: 20px 0;
    color: #ffffff;
    text-align: center;
}

/*la classe colonnaAzioni si usa nel caso all'interno delle tabelle e' una colonna contenente dei pulsanti tipo elimina o aggiungi*/
table .colonnaAzioni {
    text-align: center;
}

/*menu*/
ul#primary-nav {
    margin: 10px 0 0 0 !important;
    background: none repeat scroll 0 0 #efefef;
    border: 2px solid #172156;
    font-size: 100%;
    margin-left: 10px;
    padding: 5px;

    /* Safari 3-4, iOS 1-3.2, Android 1.6- */
    -webkit-border-radius: 4px;
    /* Firefox 1-3.6 */
    -moz-border-radius: 4px;
    /* Opera 10.5, IE 9, Safari 5, Chrome, Firefox 4, iOS 4, Android 2.1+ */
    border-radius: 4px;
}

ul#primary-nav,
ul#primary-nav ul {
    padding: 0;
    font-size: 100%;
    margin-left: 10px;
}

ul#primary-nav li {
    position: relative;
    list-style: none;
}

ul#primary-nav li a {
    display: block;
    text-decoration: none;
    color: #172156;
    padding: 0px;
    /* border: 1px solid #ccc;*/
    border-bottom: 0;
    min-height: 32px;
    line-height: 32px;
    margin-top: 1px;
}

ul#primary-nav li table {
}

/* Fix IE. Hide from IE Mac \*/
* html ul#primary-nav li {
    float: left;
    height: 1%;
}

* html ul#primary-nav li a {
    height: 1%;
}

/* End */
ul#primary-nav ul {
    position: absolute;
    display: none;
    top: 0;
}

ul#primary-nav li ul li a {
    padding: 0px 0px;
}

/* Sub Menu Styles */
ul#primary-nav li:hover ul ul,
ul#primary-nav li:hover ul ul ul,
ul#primary-nav li.over ul ul,
ul#primary-nav li.over ul ul ul {
    display: none;
}

/* Hide sub-menus initially */
ul#primary-nav li.menubar {
    background: transparent;
    border-bottom: 1px solid #fff;
}

ul#primary-nav a:hover,
ul#primary-nav a.over {
    /*background-color: #f9f9f9;*/
}

ul#primary-nav li a:hover {
    color: #1b62ab;
}

a[title="Home"],
a[title="Logout"] {
    font-weight: bold;
    background: #898989 !important;
    padding-left: 10px !important;
    color: #fff !important;
}

a[title="Home"]:hover,
a[title="Logout"]:hover {
    color: #1b62ab !important;
}

a[title="Home"] {
    margin-top: 0 !important;
}

/*jquery datepicker*/
.hasDatepicker {
    cursor: pointer !important;
}

/*ridotto padding laterale nei tab per il formulario*/
#formularioTab .nav > li > a {
    padding-left: 3px !important;
    padding-right: 3px !important;
    margin-right: 0px !important;
}

/*customizzato il pulsante affianco ai tab del formulario*/
.customButtonRemoveTab {
    margin-top: 10px;
    padding: 8px 5px;

    -webkit-border-top-left-radius: 0px;
    -webkit-border-bottom-right-radius: 0px;
    -webkit-border-bottom-left-radius: 0px;

    -moz-border-radius-topleft: 0px;
    -moz-border-radius-bottomright: 0px;
    -moz-border-radius-bottomleft: 0px;

    border-top-left-radius: 0px;
    border-bottom-right-radius: 0px;
    border-bottom-left-radius: 0px;
}

/*customizzazione homepage*/
#homepage {
    margin-top: 10px;
}

#homepage .panel.panel-default {
    background: #84D3F6;
}

#homepage .panel.panel-default .panel-body {
    text-align: center;
}

#homepage .panel.panel-default .panel-body h4 a {
    color: #fff;
}

#homepage .panel.panel-default .panel-body h4 a:hover {
    /*color: #172156;*/
    border-bottom: 3px solid #fff;
}

/*wizard contenitore*/
.wizardContainer {
    text-align: center;
    background: #fff;
    /* Safari 3-4, iOS 1-3.2, Android 1.6- */
    -webkit-border-radius: 4px;
    /* Firefox 1-3.6 */
    -moz-border-radius: 4px;
    /* Opera 10.5, IE 9, Safari 5, Chrome, Firefox 4, iOS 4, Android 2.1+ */
    border-radius: 4px;
}

.current {
    background: none repeat scroll 0 0 #D1D0D0;
}

.viewError, .viewWarning, .viewMessage {
    font-size: 13px;
}

.viewError {
    color: red;
}

.viewWarning {
    color: #ff5c00;
}

.viewMessage {
    color: green;
}

.form-label {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.428571429;
    vertical-align: middle;
}

.float-right {
    position: relative;
    float: right;
}

.form-note {
    font-weight: lighter;
    font-style: italic;
    font-size: 11px;
}

.form-note-grassetto {
    font-weight: 700;
    font-style: italic;
    font-size: 13px;
}

.reset-pwd-wrapper {
    position: relative;
    float: left;
    line-height: 80px;
}

.organico-cell {
    vertical-align: middle;
}

ul#primary-nav li a {
    position: relative;
    margin-left: 32px;
}

ul#primary-nav li a img {
    position: absolute;
    left: -32px;
}

ul#primary-nav li ul li a {
    position: relative;
    margin-left: 32px;
}

ul#primary-nav li ul li a img {
    position: absolute;
    left: -32px;
}

a[title="Home"], a[title="Logout"] {
    margin-left: 0px !important;
}

.form-control {
    padding-right: 2px !important;
}

/*Usati per la legenda*/
.legend-fieldset {
    padding: 0 1em;
    font: 80%/1 /*sans-serif*/;
    border-top: 1px solid #c0c0c0;
    background-color: #fff;
}

.legend-legend {
    width: 10%;
    background-color: #e5e5e5;
    padding: 0.1em 0.5em;
    border-top: 1px solid #c0c0c0;
    border-left: 1px solid #c0c0c0;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
    color: #000;
    font-size: 90%;
}

#box-legend {
    padding-right: 1.5em;
}

.legend-fieldset span {
    display: inline-block;
    height: 2.3em;
    line-height: 2.3;
    padding: 0 0.4em 0 0;
    color: #fff;
    margin-left: 1.5em;
    background-repeat: no-repeat;
    background-position: 0.4em 50%;
    border-radius: 6px;
    width: 24%;
}

.legend-fieldset span.legend-green, span.legend-red, span.legend-orange {
    border-top: 1px solid #c0c0c0;
    border-left: 1px solid #c0c0c0;
    border-right: 1px solid #404040;
    border-bottom: 1px solid #404040;
}

.legend-fieldset span.legend-green {
    background-color: #009b1f;
}

.legend-fieldset span.legend-red {
    background-color: #d63a1b;
}

.legend-fieldset span.legend-orange {
    background-color: orange;
}

.legend-fieldset span.legend-text {
    height: 1.3em;
    line-height: 1.3;
    color: #000;
}

.legenda-rosso, .legenda-verde, .legenda-arancio, .legenda-nero {
    border: 1px solid #000;
    height: 20px;
}

.legenda-rosso {
    background: #D63A1B;
    color: #FFF;
}

.legenda-arancio {
    background: orange;
    color: #000;
}

.legenda-verde {
    background: #009B1F;
}

.legenda-nero {
    background: black;
    color: #FFF;
}

.legenda-verde-height-auto {
    color: #FFF;
    /*background: #009B1F !important;*/
}

.presentazione-box {

}

.organico-table {

}

.organico-table tr td {
    padding: 0px 8px !important;
    font-size: 12px;
    vertical-align: middle;
}

#TESTTREE {
    font-size: 11px;
}

#TESTTREE a.jstree-disabled > i.jstree-icon.jstree-checkbox {
    display: none !important;
    width: 100%;
}

.glyphicon-blank {
    display: none !important;
}

.tree-table-wrapper {
    display: inline-block;
}

.voce-costo-field {
    width: 50px;
    text-align: right;
    height: 23px;
}

.voci-costo-subtable {
    font-size: 12px !important;
}

.voci-costo-subtable tr td {
    padding: 2px;
}

.macroVoce tr:hover {
    color: #FFF;
    background: #2665B4;
}

.npr {
    padding-right: 0px;
}

.npl {
    padding-left: 0px;
}

ul.verticalRadios {
    list-style-type: none;
}

.p-l-40 {
    padding-left: 40px !important;
}

.report_text {
    width: 500px;
    display: block;
    word-break: normal;
    word-wrap: normal;
}

.fuori-finanziamento {
    width: 100%;
    height: 100%;
    background: #D63A1B;
    color: #FFF;
}

/* MEV-2017-066 Aggiunta il 18/10/2017 */
.table-editable {
    table-layout: fixed;
    margin-bottom: 2px;
}

.content-right {
    text-align: right;
    padding: 0px;
}

/* MEV-2019-002 begin */
@media (max-width: 1200px) and (min-width: 768px) {
    .treeElementContainer {
        width: 97.2%;
    }

    #TESTTREE a {
        width: 98.4%;
    }

    .treeHeader {
        width: 102.7%;
        padding-left: 9%;
    }

    .cod-voce {
        max-width: 4%;
        flex-basis: 4%;
    }

    #descHeader {
        min-width: 170px;
        max-width: 170px;
    }

    #azDelHead {
        flex-grow: 0.8;
    }

    #enteDelHead {
        flex-grow: 1.2;
    }

    #costForfHead {
        flex-grow: 0.8;
    }

    #avHead {
        flex-grow: 0.7;
    }

    #costoOrarioHead {
        flex-grow: 0.7;
    }
}

@media (min-width: 1200px) {
    .treeHeader {
        width: 104.7%;
        padding-left: 1%;
        padding-right: 2.4%;
    }

    .treeElementContainer {
        width: 97.7%;
    }

    #TESTTREE a {
        width: 98.7%;
    }

    .cod-voce {
        max-width: 3.8%;
        flex-basis: 3.8%;
    }

    #descHeader {
        min-width: 195px;
        max-width: 195px;
    }

    #azDelHead {
        flex-grow: 0.9;
    }

    #enteDelHead {
        flex-grow: 1.2;
    }

    #azPartHead {
        flex-grow: 1.2;
    }

    #entePartHead {
        flex-grow: 1.2;
    }
}

.treeHeader {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}

.treeElementContainer {
    display: inline-flex;
    flex-direction: row;
}

.no-padding {
    padding: 0px;
}

.desc-voce {
    max-width: 14.5%;
    flex-basis: 14.5%;
}

.first-perc {
    flex-grow: 1;
    padding-left: 2%;
}

.grow-0-4 {
    flex-grow: 0.4;
}

.grow-0-5 {
    flex-grow: 0.5;
}

.grow-0-6 {
    flex-grow: 0.6;
}

.grow-0-7 {
    flex-grow: 0.7;
}

.grow-0-8 {
    flex-grow: 0.8;
}

.grow-1 {
    flex-grow: 1;
}

.grow-1-5 {
    flex-grow: 1.5;
}

.bold {
    font-weight: bold;
}

/* MEV-2019-002 end */
/* MEV-2018-025: fieldset-div */
.fieldset-div {
    border: 1px solid grey;
    margin: 0px;
    padding: 20px 20px 0px 20px;
}

.fieldset-div dd {
    float: left;
    padding: 0 5px;
    margin: -30px 0 0 10px;
    background: #EFEFEF;
}

.isDisabled {
    color: currentColor;
    cursor: not-allowed;
    opacity: 0.5;
    text-decoration: none;
}

.imgGrayscale {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

.notdecorated {
    border: 0;
    background-color: transparent;
}

a.button {
    text-decoration: none;
    color: white;
    font-weight: normal;
}

a.button:hover {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

/* MEV-2019-014 >> popover */
a.info {
    /*vertical-align: middle;*/
    position: relative; /* Anything but static */
    width: 1.5em;
    height: 1.5em;
    text-indent: -9999em;
    display: inline-block;
    color: white;
    font-weight: bold;
    font-size: 1em;
    line-height: 1em;
    background-color: #91b2d2;
    margin-left: .25em;
    -webkit-border-radius: .75em;
    -moz-border-radius: .75em;
    border-radius: .75em;
    border: 1px solid #cccccc;
}

a.info:hover {
    background-color: #628cb6;
    cursor: hand;
    cursor: pointer;
}

a.info:before {
    content: "?";
    position: absolute;
    top: .25em;
    left: 0;
    text-indent: 0;
    display: block;
    width: 1.5em;
    text-align: center;
}

.popover-title {
    font-weight: bold;
}


label a.info,
label div.popover.fade.in {
    opacity: 0;
    -webkit-transition: opacity 0.2s ease;
    -moz-transition: opacity 0.2s ease;
    transition: opacity 0.2s ease;
}

label:hover a.info,
label:hover div.popover.fade.in {
    opacity: 1;
}

/* < popover */


.watermark {
    /*position:fixed;
    top:200px;
    right:5px;*/
    v-align: middle;
    /*height: 100%;*/
    /*opacity:0.5;*/
    font-size: 14px;
    font-weight: bold;
    z-index: 99;
    text-align: center;
    color: red;
}

/* Switch ON/OFF colorati rosso/verde */
.switch {
    position: relative;
    display: inline-block;
    width: 90px;
    height: 34px;
}

.switch input {
    display: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ca2222;
    -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: #2ab934;
}

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

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

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

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

.on {
    display: none;
}

.on, .off {
    color: white;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    font-size: 10px;
    font-family: Verdana, sans-serif;
}

input:checked + .slider .on {
    display: block;
}

input:checked + .slider .off {
    display: none;
}

/*--------- END --------*/

.btn-default.down {
    background-image: -webkit-linear-gradient(top, #2B815A 0%, #63A867 100%);
    background-image: linear-gradient(to bottom, #2B815A 0%, #63A867 100%);
    background-repeat: repeat-x;
    border-color: #2b669a;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff428bca', endColorstr='#ff2d6ca2', GradientType=0);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
}

#beneficiarie-table tr {
    font-size: 12px !important;
}

#beneficiarie-table > tbody > tr > th {
    padding: 6px;
    line-height: 1.428571429;
    vertical-align: top;
    border-top: 1px solid #dddddd;
}

#beneficiarie-table > tbody > tr > td {
    padding: 6px;
    line-height: 1.428571429;
    vertical-align: top;
    border-top: 1px solid #dddddd;
}

#listaAiuti tr {
    font-size: 11px !important;
}

#listaAiuti > thead > tr > th {
    vertical-align: middle;
    text-align: center;
    border-right: 2px solid #dddddd;
}

#listaAiuti > tbody > tr > td {
    vertical-align: middle;
    text-align: center;
}

.richiediVisura span {
    font-size: 12px;
    white-space: pre-wrap;
}

.navbar-collapse.collapse {
    display: flex !important;
    align-items: flex-end;
    padding: 0 !important;
}


.navbar-collapse.collapse .text-center {
    padding: 20px;
    background-color: white;
}

.navbar-collapse.collapse .text-center img {
    width: 120px;
}

.navbar-collapse.collapse .navbar-nav {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
}

.navbar {
    border: none
}