﻿html, body {
    height: 100%;
    font-size: 1em;
    _font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

#toggleFiltersBtn {
    padding: 0;
    border: none;
    background: none;
}

    #toggleFiltersBtn i {
        font-size: 1.10rem;
    }

/*
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0px;
    margin-left: 0px;
    display: inline;
    border: 0px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border: 0px;
}
*/


.dataTables_wrapper {
    margin-bottom: 5px;
}
.dataTable tbody tr.selected {
    background-color: #b0bed9
}

/* Wrapping element */
/* Set some basic padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 100px;
}

/* Prevent footer to go over the bottom of the page */
/*.body-container {
    min-height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    font-size: 1rem;
}*/

.container, .container-fluid {
    font-size: 0.85rem;
}

.navbar {
    font-size: 0.85rem;
    background-color: #a6e9d5;
}

.dropdown-item {
    font-size: 0.85rem;
}

label {
    /*margin-bottom: 0.30rem;*/
    margin-bottom: 0.1rem;
}

.form-group {
    _margin-bottom: 2rem;
}

/*.footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    font-size: .80rem;
    background-color: #DFDFDF;
    border-top: solid 1px #888;
    z-index: 1000;
}*/

    .footer div {
    }

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    background-color: #DFDFDF;
    border-top: solid 1px #888;
    font-size: .80rem;
}
footer, #footer {
    font-size: .80rem;
    background-color: #DFDFDF;
    border-top: solid 1px #888;
    color: #999;
    _padding: 10px;
    _text-align: center;
    line-height: normal;
    _margin: 0 0 25px 5px;
    _min-height: 25px;
    _border-top: 1px solid #5C87B2;
}

 /*------------------------ Dropdowns ------------------------*/ 

.dropdown-hover:hover > .dropdown-menu {
    display: block;
}

.dropdown-menu {
    min-width: 40px;
}

.dropdown-header {
    color: #888;
}

.dropdown-menu li a {
    width: 100%;
    padding-left: 10px;
    padding-right: 10px;
    color: #000000;
    text-decoration: none;
}

/* ------------------------ Forms ------------------------ */
.form-control {
    padding: 0.375rem 0.50rem;
    font-size: 0.85rem;
}
.input-group-text {
    font-size: 0.85rem;
}

.table-hover > tbody > tr:hover, .table.dataTable > tbody > tr:hover {
    _background-color: gainsboro;
    background-color: lightblue;
    _background-color: navajowhite;
}


.table th {
    padding: 0.35rem;
}

.table td {
    padding: 0.20rem 0.35rem;
    vertical-align: middle;
}

div.dataTables_length {
    display: none;
}



.page-header {
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
}

/* ------------------------ Label ------------------------ */

.label-bold {
    font-weight: bold;
}



.infoDetails {
    float: right;
}
/*1140 oppure 660*/
@media only screen and (max-width: 900px) {

    .infoDetails {
        float: left;
    }
}

.tableActionFilters {
    margin-top: 2em;
    margin-bottom: 1em;
}

.tableFilters li {
    border: none !important;
    padding: 0;
    margin: 0px 2px 0px 0px;
}

.tableFilters .form-select {
    line-height: 1.3
}

/* toastr */

.toast-top-right {
    top: 60px;
    right: 12px;
}

.toast-for-modal {
    top: 36px;
    right: 644px;
}

/* ------------------------ Login ------------------------ */
#LoginArea {
    max-width: 400px;
    margin: 120px auto 120px auto;
}

    #LoginArea fieldset {
        border: none !important;
    }

/* ------------------------ Autocomplete ------------------------ */

.ui-autocomplete {
    position: absolute;
    z-index: 99999 !important;
    cursor: default;
    padding: 0;
    margin-top: 2px;
    list-style: none;
    background-color: #ffffff;
    border: 1px solid #ccc -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

    .ui-autocomplete > li {
        padding: 3px 20px;
    }

        .ui-autocomplete > li.ui-state-focus {
            background-color: #DDD;
        }

.ui-helper-hidden-accessible {
    display: none;
}

/* ------------------------ Validation Error ------------------------ */

.error {
    color: red;
    border-color: red;
    font-size: 12px;
}

.field-validation-error {
    color: red;
}

/* ------------------------ Pdf Viewer ------------------------ */
#canvas_container {
    overflow: auto;
}

#canvas_container {
    _background: #333;
    background: #999999 !important;
    text-align: center;
    border: solid 3px;
    border-color: #5c5d5e;
}

/*.dropdown-menu {
    font-size: 0.95rem;
}
*/
.nav-item .bi {
    margin-right: 3px;
}

@media (min-width: 992px) {
    .dropdown-menu .dropdown-toggle:after {
        border-top: .3em solid transparent;
        border-right: 0;
        border-bottom: .3em solid transparent;
        border-left: .3em solid;
    }

    .dropdown-menu .dropdown-menu {
        margin-left: 0;
        margin-right: 0;
    }

    .dropdown-menu li {
        position: relative;
    }

    .nav-item .submenu {
        display: none;
        position: absolute;
        left: 100%;
        top: -7px;
    }

    .nav-item .submenu-left {
        right: 100%;
        left: auto;
    }

    .dropdown-menu > li:hover {
        background-color: #f1f1f1
    }

        .dropdown-menu > li:hover > .submenu {
            display: block;
        }
}


.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
    /* add padding to account for vertical scrollbar */
    padding-right: 20px;
}

/* ------------------------ Currency input ------------------------ */

.currencyinput {
    border: 1px inset #ccc;
}

    .currencyinput input {
        border: 0;
    }

/* ------------------------ Loading spinner autocomplete ------------------------ */

.inputcontainer {
    position: relative;
}

.icon-container {
    position: absolute;
    right: 10px;
    top: calc(50% - 10px);
}

.loader {
    position: relative;
    height: 20px;
    width: 20px;
    display: inline-block;
    animation: around 5.4s infinite;
}

@keyframes around {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.loader::after, .loader::before {
    content: "";
    background: white;
    position: absolute;
    display: inline-block;
    width: 100%;
    height: 100%;
    border-width: 2px;
    border-color: #333 #333 transparent transparent;
    border-style: solid;
    border-radius: 20px;
    box-sizing: border-box;
    top: 0;
    left: 0;
    animation: around 0.7s ease-in-out infinite;
}

.loader::after {
    animation: around 0.7s ease-in-out 0.1s infinite;
    background: transparent;
}

.bg-dark {
    background-color: #2783b0 !important;
}


/*------------------------ Ticket ------------------------*/

.ticket-scaduto {
}

.ticket-sollecitato {
}

.ticket-senzaintervento {
}

div.priority {
    border-left: solid;
    border-left-width: 5px !important;
}
div.priority:hover {
    border-left-width: 15px !important;
}

table.dataTable th.dt-priorita {
}

table.dataTable td.dt-priorita {    
    padding: 0px !important;
    position: relative;
}

table.dataTable td.dt-priorita::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 50%; /* Larghezza della parte colorata */
    height: 20px; /* Altezza della parte colorata */
    z-index: 0;
}


/*td.priority-low::before {
    background-color: #28a745;    
}
td.priority-medium::before {
    background-color: #ffc107;
}
td.priority-high::before {
    background-color: #dc3545;
}*/

