﻿/* Move down content because we have a fixed navbar that is 50px tall */
body {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set widths on the form inputs since otherwise they're 100% wide */
/*input,
select,
textarea {
    max-width: 280px;
}*/

.navbar-brand {
    margin-right: 0;
}
.navbar-brand img {
    width: 40px;
}

.navbar-principale > .container {
    background-color: orange;
}
.navbar-principale > .container > .navbar-collapse {
    position:relative;
}
.navbar-principale > .container > .navbar-collapse > div.login {
    position: absolute;
    bottom: 0;
    right: 0;
}
.navbar-principale > .container a {
    font-weight: bold;
    padding: 5px;
    color: black;
}
.navbar:not(.navbar-principale) {
    padding-left: 0;
    padding-right: 0;
}

input[type=text],
input[type=password],
textarea,
select {
    /*padding: 3px;*/
    box-sizing: border-box;
}

.validator {
    color:#ff0000;
}

/*table.elenco {
    width: 100%;
}
table.elenco th,
table.elenco td {
    padding: 5px;
}
*/
.table-container {
    overflow-x:auto;
}
table.elenco thead tr {
    background-color: #e9ecef;
}
table.elenco tbody tr {
    cursor: pointer;
}
table.elenco tr.selected {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}
table.elenco tr.pager td {
    padding:10px 5px;
}
table.elenco tr.pager td span {
    padding: 5px 10px;
    font-weight: bold;
}
table.elenco tr.pager td a {
    padding: 5px 10px;
    border: 1px solid gray;
    background-color: lightgrey;
    color: black;
}

.sezione {
    padding: 10px;
    background-color: #e9ecef;
}

.contenitore-badge {
    position: relative;
}
.contenitore-badge .badge {
    position: absolute;
    right: 20px;
    top: 5px;
}

.modal-background {
    background-color: Gray;
    filter: alpha(opacity=50);
    opacity: 0.7;
}

/* Responsive: Portrait tablets and up */
@media screen and (min-width: 768px) {
    .jumbotron {
        margin-top: 20px;
    }

    .body-content {
        padding: 0;
    }

}

@media screen and (max-width: 768px) {

    .sezione {
        padding: 0;
    }

}

    /* Custom checkbox */
    .custom-checkbox {
        position: relative;
    }

        .custom-checkbox > input[type=checkbox] {
            display: none;
        }

            .custom-checkbox > input[type=checkbox] + label {
                display: block;
                padding-left: 28px;
                /*padding-top: 2px;*/
                webkit-touch-callout: none; /* iOS Safari */
                -webkit-user-select: none; /* Safari */
                -khtml-user-select: none; /* Konqueror HTML */
                -moz-user-select: none; /* Firefox */
                -ms-user-select: none; /* Internet Explorer/Edge */
                user-select: none; /* Non-prefixed version, currently
                            supported by Chrome and Opera */
            }

                .custom-checkbox > input[type=checkbox] + label::before {
                    content: '';
                    height: 22px;
                    width: 22px;
                    background-color: lightgray;
                    position: absolute;
                    top: 0;
                    left: 0;
                    text-align: center;
                    border: 1px solid gray;
                    font-weight: bolder;
                    font-family: arial;
                    color: white;
                }

            .custom-checkbox > input[type=checkbox]:checked + label::before {
                content: 'X';
                background-color: #3F51B5;
            }

    /* Custom radio */
    .custom-radiobutton {
        position: relative;
    }

        .custom-radiobutton > input[type=radio] {
            display: none;
        }

            .custom-radiobutton > input[type=radio] + label {
                display: block;
                padding-left: 28px;
                webkit-touch-callout: none; /* iOS Safari */
                -webkit-user-select: none; /* Safari */
                -khtml-user-select: none; /* Konqueror HTML */
                -moz-user-select: none; /* Firefox */
                -ms-user-select: none; /* Internet Explorer/Edge */
                user-select: none; /* Non-prefixed version, currently
                supported by Chrome and Opera */
            }

                .custom-radiobutton > input[type=radio] + label::before {
                    content: '';
                    height: 22px;
                    width: 22px;
                    background-color: lightgray;
                    position: absolute;
                    top: 0;
                    left: 0;
                    text-align: center;
                    border: 1px solid gray;
                    border-radius: 10px;
                    font-weight: bolder;
                    font-family: arial;
                    padding-top: 1px;
                    color: white;
                }

            .custom-radiobutton > input[type=radio]:checked + label::before {
                background-color: #3F51B5;
            }