.form-check-custom {
    padding-bottom: 0;
}

.form-check-custom label:first-child {
    margin-right: 20px;
}

.btn-password {
    line-height: 1.6rem;
}

.btn-xs {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}

/* gis */
.row-gis .block {
    border-top: 1px solid #e1e5f1;
    padding: 5px 0;
    min-height: 80px;
}

@media screen and (max-width: 767px) {
    .row-gis .block {
        min-height: auto;
    }
}

@media screen and (min-width: 580px) {
    .row-gis > div:first-child div {
        border-top: none;
    }
}

.row-gis > div:nth-child(1) div {
    border-top: none;
}

@media screen and (min-width: 1200px) {
    .row-gis > div:nth-child(2) div, .row-gis > div:nth-child(3) div, .row-gis > div:nth-child(4) div {
        border-top: none;
    }
}

@media screen and (max-width: 1199px) and (min-width: 992px) {
    .row-gis > div:nth-child(2) div, .row-gis > div:nth-child(3) div {
        border-top: none;
    }
}

@media screen and (max-width: 991px) and (min-width: 768px) {
    .row-gis > div:nth-child(2) div {
        border-top: none;
    }
}

/* custom row */
@media screen and (min-width: 1200px) {
    .row-custom .col-xl-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .row-custom-col3 .col-xl-3 {
        flex: 0 0 33.330%;
        max-width: 33.330%;
    }
}

@media screen and (max-width: 1199px) {
    .row-custom .col-xl-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* custom form */
.form-control, .select2-selection.select2-selection--single, .select2-selection.select2-selection--multiple, .btn-bs-select {
    background-color: #f5f5f5;
    border-top: 0;
    border-left: 0;
    border-right: 0;
}

.form-control {
    padding: 6px 9px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
}

/* select2 */
.select2-container--default .select2-selection--single .select2-selection__clear {
    font-size: 22px;
    margin-right: 10px;
}

.select2-selection.select2-selection--single, .select2-selection.select2-selection--multiple {
    background-color: #f5f5f5;
    min-height: 36px;
    padding: 5px 9px;
    border: 1px solid #c9d0e6;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    font-size: .85rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 27px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 4px;
}

.select2 {
    max-width: 100%;
}

@media screen and (max-width: 767px) {
    .select2 {
        width: 100% !important;
    }
}

.select2-container .select2-search--inline .select2-search__field {
    padding-left: 8px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #007bff;
    border-color: #006fe6;
    color: #ffffff;
    padding: 5px 10px;
    margin-top: .31rem;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: rgba(255, 255, 255, .7);
    float: right;
    margin-left: 5px;
    margin-right: -2px;
}

/* */
.row-filter {
    margin-bottom: 10px;
}

.row-filter div {
    margin-bottom: 5px;
}

.btn {
    text-transform: uppercase;
}

.btn-right {
    text-align: right;
}

.btn-right .btn, .btn-left .btn {
    text-transform: uppercase;
    padding: .40rem .75rem;
    font-size: .875rem;
}

.page-title h3 {
    font-size: 14px !important;
}

.page-title a {
    color: #ffffff;
}

.page-title a:before {
    content: ' / ';
}

.page-title a:first-child:before {
    content: '';
}

.card .card-header {
    padding-left: 8px;
    padding-right: 8px;
    color: #4d4d4d;
}

/* tabs */
.tabs-custom {
    margin-left: 9px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.tabs-custom li a {
    background: #e5e5e5 !important;
    margin-right: 2px;
}

.tabs-custom li.active a {
    background: #228cd1 !important;
    color: #ffffff;
}

@media screen and (max-width: 991px) {
    .tabs-custom li a {
        padding: .3rem .5rem;
    }
}

/* report */
#chartdiv {
    width: 100%;
    max-height: 70vh;
    height: 70vh;
    background-color: #ffffff;
}

.table-responsive-report {
    margin-bottom: 50px;
    padding-left: 1px;
    padding-right: 1px;
}

#canvas {
    background-color: #ffffff;
}

div.report-legend {
    text-align: right;
}

.label-report {
    position: relative;
}

.label-report div.report-legend {
    font-size: 0.7rem;
    position: absolute;
    right: 0;
    top: 10px;
}

td.report-legend {
    border: 0;
    font-size: 0.7rem;
}

.table-report .parametri tr td:first-child {
    width: 180px;
}

.table-hover tbody tr:hover {
    background-color: #e5e5e5;
}

/* validation */

span.error {
    color: red;
    font-size: 13px;
    font-weight: bold;
    line-height: 1.2rem
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    padding-right: 10px;
}

/* */

.page-header span {
    margin-left: 10px;
    font-weight: bold;
}

/* debug */
#mainBar .debug > a {
    background-image: none;
    color: #ffffff;
    background-color: #ff6d20 !important;
}

body.debug .page-header {
    background-image: none;
    background-color: #ff6d20 !important;
}

/* page loader */

#modal_loader {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9999;
    display: block;
    width: 80px;
    height: 80px;
    margin-top: -40px;
    margin-left: -40px;
    border: 10px solid rgba(0, 0, 0, .3);
    border-radius: 50%;
    border-top-color: #000;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    to {
        -webkit-transform: rotate(360deg);
    }
}

.table a.edit {
    text-decoration: underline;
}

/* modal */
.modal-lg iframe {
    width: 100%;
    height: 500px;
}

@media (min-width: 992px) {
    .modal-lg {
        width: 90%
    }

    .modal-lg iframe {
        height: 80vh;
    }
}

@media (min-width: 1070px) {
    .modal-full {
        margin-left: 17px;
    }
}

@media screen and (min-width: 768px) {

    .modal-full .modal-lg {
        width: 95%;
        max-width: 95%;
    }

    .modal-full .modal-content {
        min-height: 90vh;
    }
}

/* calendario */
/*.fc-timeGridWeek-view .fc-day-grid-event > .fc-content,*/
.fc-timeGridDay-view .fc-day-grid-event > .fc-content {
    white-space: unset !important;
}

.fc-event {
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.125), 0 1px 3px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 4px;
    padding: 5px 10px !important;
    border: 0 !important;
    color: #fff !important;
}

.fc-event:hover {
    box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.2);
}

.ui-draggable {
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

.fc-button-group > .fc-button,
.fc-button-primary:disabled,
.fc-today-button {
    background-color: #228cd1;
    border-color: #228cd1;
    text-transform: uppercase !important;
    font-size: 1em !important;
}

.fc-toolbar h2 {
    text-transform: uppercase;
    font-size: 1.5em !important;
}

@media screen and (max-width: 991px) {
    .fc-button-group > .fc-button,
    .fc-button-primary:disabled {
        padding: 0.4rem;

        font-size: 0.8em !important;
    }

    .fc-toolbar h2 {
        font-size: 1em !important;
    }
}

/* */
th.check-all {
    text-align: center !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
}

/* jspanel */
.jsPanel-titlebar .jsPanel-title {
    font-variant: none !important;
}

/* */
.table-attivita .stato .badge {
    display: block;
    text-transform: uppercase;
}

.bage-sup {
    font-size: small;
}

.tr-head td {
    padding: 5px;
    background-color: #f0f4f8;
}

.tr-head td h5 {
    margin: 0px;
    padding: 3px 0 0 10px;
    color: #000;
    text-transform: uppercase;
    font-size: 1rem;
}

/* */
.badge {
    text-transform: uppercase;
    /*color: #000000;*/
}

.badge-ko, .btn-ko {
    background-color: #f23f3f;
    color: #ffffff;
}

.badge-no, .btn-no {
    background-color: #ffc107;
    color: #000000;
}

.badge-ok, .btn-ok {
    background-color: #27b963;
    color: #ffffff;
}

/* dashboard */
.mini-widget a {
    color: #ffffff;
}

/* */
.label-custom {
    margin-bottom: 0;
}

.alert-custom {
    font-weight: normal;
    font-size: .9rem;
    padding: 8px;
    border-radius: 2px;
}

/* */
.table-sm.dataTable thead tr th {
    padding-top: 8px;
    padding-bottom: 8px;
}

.dataTable .edit {
    display: block;
}

body.anagrafiche .dataTable .badge, .td-badge .badge {
    margin-left: 10px;
}

@media screen and (max-width: 991px) {
    .hidden-md {
        display: none;
    }
}

@media screen and (max-width: 767px) {
    .hidden-xs {
        display: none;
    }
}

@media screen and (max-width: 1199px) {
    .hidden-lg {
        display: none;
    }
}

.tooltip {
    text-transform: uppercase;
}

label {

}

.btn-attesa {
    background: #9a9a9a;
    color: #ffffff;
}

#dataTable_processing {
    background-color: #dae4ef;
}

.row-filter .form-check-inline {
    margin-top: 10px;
}

.row-filter .form-check-inline .form-check-input {
    margin-right: 20px;
}

.badge-stato {
    position: absolute;
    right: 0;
    top: -8px;
}

.iframe-placeholder {
    background: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" viewBox="0 0 100% 100%"><text fill="%23000000" x="50%" y="50%" font-family="\'Lucida Grande\', sans-serif" font-size="24" text-anchor="middle">Loading..</text></svg>') 0px 0px no-repeat;
}

.modal-header .close {
    background-color: #118cf1;
    opacity: 1;
    color: #ffffff;
    padding: 0.5rem 1rem;
    margin: -0.5rem -0.7rem -0.5rem auto;
    border-radius: 5px;
}

.table-label {
    width: 20%;
}

@media screen and (max-width: 991px) {
    .table-label {
        width: 30%;
    }
}

@media screen and (max-width: 767px) {
    .table-label {
        width: auto;
    }
}

.table-head td {
    font-size: 14px;
    font-weight: bold;
    background-color: #f0f4f8;
}

.table-head2 td {
    font-size: 14px;
    font-weight: bold;
    background-color: #ffffff;
}

.table-title td {
    border: 0;
    font-size: 18px;
    font-weight: bold;
    background-color: #ffffff;
}

.table-foot td {
    background-color: #ffffff;
    border: 0 !important;
}

.dropdown-print {
    float: right;
}

.dropdown-print .dropdown-menu {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.table-custom thead tr th {
    border-top: 1px solid #e6ecf3;
}

.label-custom {
    background-color: #eeeeee;
    padding: 5px;
    min-height: 45px
}

.odd td.column-R, th.column-R {
    background-color: #a2ef94 !important;
}
.even td.column-R{
    background-color: rgba(162, 239, 148, 0.61) !important;
}

.odd td.column-I, th.column-I {
    background-color: #eada6e !important;
}
.even td.column-I{
    background-color: rgba(241, 209, 112, 0.68) !important;
}
.odd td.column-D, th.column-D {
    background-color: #6795ef !important;
}
.even td.column-D{
    background-color: rgba(135, 159, 220, 0.61) !important;
}

/*.row-cal .form-wrapper {
    padding: 5px;
}

.row-utente .form-wrapper {
    background-color: #fac090;
}

.row-oggetto .form-wrapper {
    background-color: #d7e4bd;
}

.row-servizio .form-wrapper {
    background-color: #b9cde5;
}*/

.btn-help, .edit-help{
    padding: 0.25rem 0.4rem 0.25rem 0.4rem;
    border-radius: 8px;
    font-size: 10px;

    background-color: rgba(0, 0, 0, 0.57);
    color: #ffffff;
}
.edit-help, .edit-help:hover{
    background-color: #27b963;
    padding: 0.25rem 0.35rem !important;
    color: rgba(255, 255, 255, 1);
    font-size: 10px;
}
.btn-help:hover{
    background-color: #0dcaf0;
    color: rgba(255, 255, 255, 1);
}
.btn-help:hover,
.edit-help:hover,
.btn-help:active,
.edit-help:active,
.btn-help:visited,
.edit-help:visited{
    color: rgba(255, 255, 255, 1) !important;
}
.modal-body .testo{
    line-height: 22px;
}
.page-help{
    padding-top: 10px;
}
/* go to top */
.gototop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: 0.5s;
    -o-transition: 0.5s;
    transition: 0.5s;
}

.gototop.active {
    opacity: 1;
    visibility: visible;
}

.gototop a {
    width: 40px;
    height: 40px;
    display: table;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
}

.gototop a i {
    height: 40px;
    display: table-cell;
    vertical-align: middle;
}

.gototop a:hover, .gototop a:active, .gototop a:focus {
    text-decoration: none;
    outline: none;
}

.bot-red:before {
    color: red;
}
