html,
body {
    height: 100%;
}

.wrap {
    min-height: 100%;
    height: auto;
    margin: 0 auto -60px;
    padding: 0 0 60px;
}

.wrap > .container {
    padding: 70px 15px 20px;
}

.footer {
    height: 60px;
    background-color: #f5f5f5;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

.jumbotron {
    text-align: center;
    background-color: transparent;
}

.jumbotron .btn {
    font-size: 21px;
    padding: 14px 24px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    padding-left: 5px;
}

a.asc:after {
    content: /*"\e113"*/ "\e151";
}

a.desc:after {
    content: /*"\e114"*/ "\e152";
}

.sort-numerical a.asc:after {
    content: "\e153";
}

.sort-numerical a.desc:after {
    content: "\e154";
}

.sort-ordinal a.asc:after {
    content: "\e155";
}

.sort-ordinal a.desc:after {
    content: "\e156";
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding: 15px;
    border: none;
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 15px;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
}

.nav > li > form > button.logout:focus {
    outline: none;
}

/* nome utente nella navbar */
.nome-utente {
    font-size: 14px;
    font-weight: bold;
}

/* form di ricerca */

.search-div, .search-div-small, .search-div-large {
    margin: 20px auto;
    padding: 10px 5px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

@media (min-width: 768px) {
    .search-div {
        max-width: 50%;
    }
    
    .search-div-small {
        max-width: 30%;
    }
    
    .search-div-large {
        max-width: 80%;
    }
}

table.search-form-tbl {
    margin: 0px auto;
}

table.search-form-tbl th,
table.search-form-tbl td {
    padding: 2px 5px;
}

table.search-form-tbl th {
    text-align: right;
}

.search-field {
    width: 100%;
    max-width: 150px;
}

/* FINE form di ricerca */

.info-note {
    text-align: right;
    /*font-size: 16px;*/
    font-style: italic;
}

/* logo OSA nel footer */
footer {
    background-image: url("../img/minilogo.png");
    background-repeat: no-repeat;
    background-position: right center;
}

/* campi dei form meno lunghi... */
.form-control {
    width: 50%;
}

/* ...a meno che non siano dentro un modal */
#modal-content .form-control {
    width: 100%;
}

/* form: gruppi di checkbox */
label.leggera {
    font-weight: normal;
}

label.radio-iva {
    font-weight: normal;
    margin-left: 2em;
}

table.checkbox-table {
    border-collapse: collapse;
}

table.checkbox-table,
table.checkbox-table th,
table.checkbox-table td {
    border: 1px solid #888;
}

table.checkbox-table th,
table.checkbox-table td {
    padding: 5px;
    line-height: 1em;
}

table.checkbox-table th {
    vertical-align: top;
}

.has-error table.checkbox-table,
.has-error table.checkbox-table th,
.has-error table.checkbox-table td {
    border-color: #a94442;
}

.has-success table.checkbox-table,
.has-success table.checkbox-table th,
.has-success table.checkbox-table td {
    border-color: #3c763d;
}

/* asterisco sui campi obbligatori */
form div.required label.control-label:after {
    content: " * ";
    color: red;
}

.copia-dati {
    font-size: 12px;
    cursor: pointer;
}

.optional:after {
    content: " (Campo Facoltativo)";
    font-weight: normal;
    font-style: italic;
    color:#999;
}

/* form: tabella per la gestione di relazioni a molti */
table.campi-multipli {
    border-collapse: collapse;
    min-width: 50%;
}

table.campi-multipli,
table.campi-multipli th,
table.campi-multipli td {
    border: 1px solid #aaa;
}

table.campi-multipli th,
table.campi-multipli td {
    padding: 5px;
}

.has-error table.campi-multipli,
.has-error table.campi-multipli th,
.has-error table.campi-multipli td {
    border-color: #a94442;
}

.has-success table.campi-multipli,
.has-success table.campi-multipli th,
.has-success table.campi-multipli td {
    border-color: #3c763d;
}

/* layout della pagina di login */

.site-login-left {
    float: left;
    width: 60%;
}

.site-login-right {
    float: right;
    width: 40%;
    padding-top: 48px;
}

/* visualizzazione dati boolean */

.bool-false {
    color: red;
}

.bool-true {
    color: green;
}

/* tabs */

.tab-content {
    padding-top: 20px;
}

/* progress bar per la registrazione/autocandidatura */

.progressbar {
    counter-reset: step;
    margin-top: 20px;
    margin-bottom: 100px;
}
.progressbar li {
    list-style-type: none;
    width: 25%;
    float: left;
    font-size: 12px;
    position: relative;
    text-align: center;
    /*text-transform: uppercase;*/
    color: #7d7d7d;
}
.progressbar li:before {
    width: 30px;
    height: 30px;
    content: counter(step);
    counter-increment: step;
    line-height: 30px;
    border: 2px solid #7d7d7d;
    display: block;
    text-align: center;
    margin: 0 auto 10px auto;
    border-radius: 50%;
    background-color: white;
}
.progressbar li:after {
    width: 100%;
    height: 2px;
    content: '';
    position: absolute;
    background-color: #7d7d7d;
    top: 15px;
    left: -50%;
    z-index: -1;
}
.progressbar li:first-child:after {
    content: none;
}
.progressbar li.active, .progressbar li.current {
    color: green;
}
.progressbar li.active:before, .progressbar li.current:before {
    border-color: #55b776;
}
.progressbar li.active + li:after {
    background-color: #55b776;
}
.progressbar li.current:before {
    background-color: #95e9b1;
}

/* FINE progress bar per la registrazione/autocandidatura */

.centrata {
    margin: 0 auto;
}
.centrata td, .centrata th {
    padding: 2px 5px;
}

/* stampa senza url visibili */

@media print {
    a:after {
        display: none !important;
    }
}