/* ----- ----- ---- GENERICHE ----- ----- ----- */
html{
    background-color: #fff;
}
body{
    background: #f1f2f2 none repeat scroll 0 0;
    color: #767676;
    font-family: "Open Sans",sans-serif;
    font-size: 13px !important;
    margin: 0 !important;
    overflow-x: hidden;
    padding: 0 !important;
    text-rendering: optimizelegibility;
    min-height:100vh;
    position:relative;
}
a{
    -o-transition: .5s;
    -ms-transition: .5s;
    -moz-transition: .5s;
    -webkit-transition: .5s;
    transition: .5s;
    color: #337ab7;
}
a:hover{
    text-decoration: none;
}
th, td{
    white-space: normal !important;
}
.bg-danger{
    padding:5px;
    font-weight:bold;
}
.no-js #loader { display: none;  }
.js #loader { display: block; position: absolute; left: 100px; top: 0; }
#preload-icon {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url(../img/loader.gif) center no-repeat #fff;
}
#ajaxload-icon {
    width: 100px;
    height:100px;
    margin:0 auto;
    z-index: 9999;
    background: url(../img/loader.gif) center no-repeat #fff;
}
.btn:focus {
    outline: none !important;
}
.navbar{
    border-radius: 0;
    border:0;
    background-color: #337ab7;
    color:#fff;
    border-top:2px solid #337ab7;
    border-bottom:2px solid #337ab7;
}
.navbar .navbar-brand, .navbar .navbar-brand:hover, .navbar .navbar-brand:active{
    color:#fff;
    font-weight:bold;
}
.navbar-default .navbar-nav > li + li{
    margin-left:2px;
}
.navbar-default .navbar-nav > li > a{
    color:#fff;
    font-weight: 600;
    -o-transition: .5s;
    -ms-transition: .5s;
    -moz-transition: .5s;
    -webkit-transition: .5s;
    transition: .5s;
    padding:15px 7px;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:active{
    color:#337ab7;
    background-color: #fff;
}
.navbar-default .navbar-nav > li.active > a:link,
.navbar-default .navbar-nav > li.active > a:hover,
.navbar-default .navbar-nav > li.active > a:active,
.navbar-default .navbar-nav > li.open > a:focus{
    color:#337ab7;
    background-color: #fff;
}
.navbar-default .navbar-nav .open .dropdown-menu>li>a {
    color: #fff;
}
.navbar-default .navbar-toggle:focus,
.navbar-default .navbar-toggle:hover {
    background-color: #fff;
}
.navbar-default .navbar-toggle {
    border-color: #fff;
}
.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
}
.navbar-default .navbar-toggle:focus .icon-bar,
.navbar-default .navbar-toggle:hover .icon-bar {
    background-color: #337ab7;
}
@media screen and (min-width: 768px ){
    .navbar-default .navbar-nav .open .dropdown-menu>li>a {
        color: #333;
    }
    .dropdown-menu>li>a:focus,
    .dropdown-menu>li>a:hover {
        color: #262626;
        background-color: #f5f5f5;
    }
    .navbar-default .navbar-nav .open .dropdown-menu > li.active > a,
    .navbar-default .navbar-nav .open .dropdown-menu > li.active > a:focus,
    .navbar-default .navbar-nav .open .dropdown-menu > li.active > a:hover{
        color:#fff !important;
    }
}
.text-area-db{
    -webkit-appearance: textarea;
    -webkit-rtl-ordering: logical;
    -webkit-user-select: text;
    flex-direction: column;
    resize: auto;
    cursor: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    text-rendering: auto;
    letter-spacing: normal;
    word-spacing: normal;
    text-transform: none;
    text-indent: 0;
    text-shadow: none;
    text-align: start;
    -webkit-writing-mode: horizontal-tb;
}
.error{
    color:#ff0000;
}
#main{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding-top:15px;
    padding-bottom: 15px;
}
#footer {
    background-color: #337ab7;
    color: #fff;
    padding: 15px 0;

}
/* ----- ----- ----- PANEL ----- ----- ----- */
.panel, .panel-default{
    -webkit-border-radius:0;
    -moz-border-radius:0;
    border-radius:0;
}
.panel-default > .panel-heading{
    background: #fff;
    color:#337ab7;
    border-bottom: 2px solid #337ab7;
    -webkit-border-radius:0;
    -moz-border-radius:0;
    border-radius:0;
}
.panel-default .panel-heading,
.panel-default .panel-heading .panel-title,
.panel-title{
    font-weight:bold;
    line-height: 1.4;
}
.panel-default .panel-heading .form-inline{
    margin-bottom:0;
}
.panel-body {
    padding: 10px;
}


/* ----- ----- ----- FORM ----- ----- ----- */
label{
    margin-bottom: 5px;
}
.form-group {
    margin-bottom: 8px;
}
.checkbox, .radio {
    position: relative;
    display: block;
    margin: 0 0 8px 0;
}

/* ----- ----- ----- MODAL ----- ----- ----- */
.modal-header{
    padding: 10px;
}
.modal-header .modal-title {
    margin: 0;
    line-height: 1.2;
    font-size: 14px;
    font-weight: bold;
}
.modal-body {
    position: relative;
    padding: 10px;
}
.modal-footer {
    padding: 10px;
    text-align: right;
    border-top: 1px solid #e5e5e5;
}

/* ----- ----- ----- LOGIN PAGE ----- ------ ------ */
#module-login{
    margin-top: 50px;
}

/* ----- ----- ----- AJAX COMUNE ----- ----- ----- */
#ajaxComune{
    z-index:1000 !important;
    max-height: 150px;
    overflow-y: scroll;
    border-left: 1px solid rgb(221,221,221);
    border-right: 1px solid rgb(221,221,221);
    border-bottom: 1px solid rgb(221,221,221);
}
#ajaxComune > div{
    z-index:1000 !important;
    background-color: #fcfcfc;
    white-space: nowrap;
    cursor: pointer;
    padding:10px 15px;
    border-bottom:1px solid rgb(240,240,240);
}
#ajaxComune > div:last-child{
    border-bottom: 0;
}
#ajaxComune > div:hover{
}

/* ----- ----- ----- ERROR MESSAGES ----- ----- ----- */
#messaggioAjax,
.error-messages{
    margin:0;
    padding: 15px 0;
    color: #cc0000;
    font-size:17px;
    font-weight:bold;
}

/* ----- ----- ----- ERROR MESSAGES ----- ----- ----- */
@media screen and (min-width: 1600px){
    .container{
        width:1440px;
    }
}




/* ----- ----- ----- DIMENSIONE MODALI ----- ----- ----- */
@media screen and (min-width: 992px) {
    .modal-lg {
        width: 950px;
    }
}
@media screen and (min-width: 1200px) {
    .modal-lg {
        width: 1150px;
    }
}
@media screen and (min-width: 1366px) {
    .modal-lg {
        width: 1300px;
    }
}