html {
    margin-top: 0px !important;
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1500px !important;
    }
    .container, .container-lg, .container-md, .container-sm, .container-xl {
        max-width: 1500px!important;
    }
}

span.badge.badge-in-lavorazione {
    background: #ffbc00;
}
html {
    margin: 0 !important;
    padding: 0 !important;
}

.easy_insert .input-group {
    clear: both;
}

.table-warning {
    background-color: #ffeeba;
    color: #856404;
}

.fc-timegrid-event-harness.fc-timegrid-event-harness-inset {
    OVERFLOW: HIDDEN;
}

.table-success {
    background-color: #c3e6cb;
    color: #155724;
}

#fullscreen-signature-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
}

#fullscreen-signature-canvas {
    border: 1px solid #000;
    flex: 1;
    width: 100%;
    height: calc(100vh - 150px); /* Spazio per i pulsanti */
}

/* Posiziona il pulsante Chiudi in alto a destra */
#close-signature-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* Contenitore per i pulsanti Salva e Cancella per allinearli orizzontalmente */
#signature-buttons-container {
    display: flex;
    gap: 10px; /* Spazio tra i pulsanti */
    margin-top: 20px;
}

#save-signature,
#clear-signature-fullscreen {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
}

#file_list td {
    vertical-align: middle;
}


/* Colore specifico per i pulsanti */
#save-signature {
    background-color: blue;
    color: white;
}
.fc-timegrid-slot {
    overflow-y: auto; /* Aggiungi lo scroll verticale */
    max-height: 150px; /* Imposta un'altezza massima */
}

.fc-event-title {
    white-space: nowrap; /* Impedisce il wrapping del testo */
    overflow: hidden; /* Nasconde il testo che eccede */
    text-overflow: ellipsis; /* Aggiunge i puntini di sospensione */
}
.fc-event-title {
    font-size: 0.85em; /* Riduci la dimensione del font */
    line-height: 1.2; /* Migliora la leggibilità */
}

#clear-signature-fullscreen {
    background-color: gray;
    color: white;
}

.fc-license-message {
    display: none!important;
}

.nav-tabs {
    white-space: nowrap;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden; /* Nasconde lo scroll verticale */
    max-height: 50px; /* Imposta un'altezza massima per evitare overflow */
}


.nav-wrapper {
    overflow-x: auto; /* Abilita lo scroll orizzontale */
    white-space: nowrap; /* Impedisce il ritorno a capo */
    -webkit-overflow-scrolling: touch; /* Scorrimento fluido su mobile */
}
/* Nascondi il testo e ingrandisci le icone su dispositivi con larghezza < 768px */
@media (max-width: 768px) {
    .button-text {
        display: none; /* Nasconde il testo */
    }

    .btn {
        padding: 10px; /* Rendi i pulsanti più facili da toccare */
    }
}
div#modal-content-registry {
    z-index: 1900;
}

div#query-monitor-main {
    display: block;
}

.nav-tabs {
    display: flex;
    flex-wrap: nowrap; /* Impedisce il wrap dei tab */
}

.nav-tabs .nav-link {
    white-space: nowrap; /* Mantiene il testo su una sola riga */
    text-align: center;
    padding: 10px 15px; /* Migliora lo spazio tra i tab */
}


@media (min-width: 768px) {
    .fc-event-title {
        white-space: normal !important; /* Consenti al testo di andare a capo */
        overflow: visible !important; /* Disabilita il troncamento */
        font-size: 12px; /* Riduci la dimensione del font */
    }

    .fc-timeline-event {
        min-height: 30px; /* Aumenta l'altezza minima degli eventi */
    }
}

.easy_insert .input-group {
    width: 100% !important;
}
.easy_warehouse .input-group {
    width: 100% !important;
}
.easy_insert .span {
    width: 50% !important;
}

.easy_insert .input-group {
    clear: both;
    width: 100%;
}
.file-description {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: inherit; /* Mantiene il colore del testo della tabella */
}
.file-description:focus {
    border-bottom: 1px solid #ccc; /* Aggiunge un'idea di editing solo quando è attivo */
}



div#easy_warehouse .input-group {
    width: 100% !important;
}

div#easy_warehouse span.input-group-text {
    width: 175px;
}

#fullscreen-signature-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
}

#fullscreen-signature-canvas {
    border: 1px solid #000;
    flex: 1;
    width: 100%;
    height: calc(100vh - 100px); /* Per evitare che i pulsanti siano fuori schermo */
}

#fullscreen-signature-modal button {
    margin-top: 10px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}


.table-danger {
    background-color: #f5c6cb;
    color: #721c24;
}

div#header {
    display: none!important;
}

span.badge.badge-finito {
    background: green;
    color: white;
}




span.badge.badge-da-fare {
    background: #ff4545;
    color: black;
}

span.badge.badge-ordinato {
    background: violet;
}
span.badge.badge-fatturato {
    background: #0dd72f;
}

div#wpadminbar {
    display: none;
}
.fc-toolbar-chunk {
    padding: 5px;
}
html {
    padding: 0 !important;
    margin: 0 !important;
}

html {
    margin: 0 !important;
    padding: 0px;
}

tbody input[type="checkbox"] {
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    line-height: 0em;
}
tbody td.bs-checkbox{
    padding:0;
    margin: 0;
}

.fc-header-toolbar.fc-toolbar.fc-toolbar-ltr {
    display: block;
    margin: 0 auto;
    text-align: center;
}

.row_document .input-group {
    clear: both;
}

.modal-fullscreen {
    width: 100%;
    height: 100%;
    max-width: none; /* Sovrascrive le limitazioni predefinite della larghezza */
    margin: 0; /* Rimuove il margine */
    padding: 0; /* Rimuove il padding */
}

.scrollable-row {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px; /* Evita che il contenuto si tagli a fine scroll */
    overflow-x: visible;
}

.scrollable-row .input-group {
    margin-right: 10px; /* Spaziatura tra gli elementi */
}
div#modal-content-document {
    background: white !important;
}

input#filter_start_date_document {
    width: 150px;
}

input#filter_stop_date_document {
    width: 150px;
}
/* Stile del loader */
.loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #3498db;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100000000 !important;
    display: block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fc-now-indicator {
    background-color: red; /* Cambia il colore della linea del tempo */
}

div#search-results {
    position: absolute;
    z-index: 1000;
    background: #efefef;
    top: 37px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bs-bars.float-left {
    max-width: 100%;
}

.modal-body button {
    margin-right: 5px;
}

.input-group {
    width: auto;
    float: left;
}
.phoenix-form-group.mb-3 .input-group {
    width: 100% !important;
}
.form-group {
    margin: 0;
}
a.icon i {
    font-size: 2em;
    padding: 0px 2px;
    color: #8b8b8b;
}

/* Migliora l'aspetto del pulsante di chiusura del modal */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 15px;
}

.modal-header .close {
    margin-left: auto;
    margin-right: 0;
    padding: 0;
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
    text-shadow: 0 1px 0 #fff;
    opacity: 0.5;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.modal-header .close:hover,
.modal-header .close:focus {
    color: #000;
    text-decoration: none;
    opacity: 0.75;
    background-color: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
    outline: none;
}

.modal-header .close span {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stile alternativo più moderno per il pulsante X */
.modal-header .close::after {
    content: '✕';
    font-size: 1.25rem;
    position: absolute;
}

.modal-header .close span {
    opacity: 0;
    position: absolute;
}

/* Effetto hover più elegante */
.modal-header .close:hover {
    background-color: #f0f0f0;
    border-radius: 50%;
}

/* Per modal con sfondo scuro */
.modal-header.bg-dark .close,
.modal-header.bg-primary .close,
.modal-header.bg-danger .close {
    color: #fff;
    text-shadow: none;
    opacity: 0.8;
}

.modal-header.bg-dark .close:hover,
.modal-header.bg-primary .close:hover,
.modal-header.bg-danger .close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.2);
}

/* Assicura che il titolo non si sovrapponga al pulsante */
.modal-header .modal-title {
    margin-right: auto;
    margin-bottom: 0;
    flex: 1;
}

label {
    margin: 0;
    margin-top: 5px;
}

.notice-warning {
    display: none;
}
div#result_registry_modal h3 {
    background: #e2e2e2;
    margin: 20px 0;
}

select.form-select {
    padding: 0 8px;
    line-height: 2;
    min-height: 38px;
    width: 100%;
}

select.form-select {
    padding: 0 8px;
    line-height: 2;
    min-height: 38px;
    border-color: #e2e2e2;
    width: 100%;
}

.oragnizza_lavoro{
    padding: 6px;
    background: radial-gradient(black, transparent);
    background: #1989c8;
    color: white;
    border-radius: 3px;
}

.toast-header {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    padding: .25rem .75rem;
    color: #6c757d;
    background-color: rgb(255 69 69);
    color: white;
    background-clip: padding-box;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    border-top-left-radius: calc(.25rem - 1px);
    border-top-right-radius: calc(.25rem - 1px);
}

.page-header.header-phoenix i {
    float: left;
    font-size: 40px;
    padding-right: 15px;
    display: block;
    clear: both;
    overflow: auto;
}
.page-header.header-phoenix h3 {
    line-height: 2em;
    margin-top: 0;
    float:left;
}
.logo_tatech_header {
    float: right;
}
.header-phoenix{
    display: block;
    margin-top: 10px!important;
    margin-bottom: 10px!important;
    overflow: auto;
}
.row.page-title-header {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* DOCUMENTO */

table#myTable tr {
    padding: 0;
    margin: 0;
}

table#myTable td {
    margin: 0;
    padding: 0;
    text-align:center;
}


@media(max-width: 1000px) {
    div#adminmenumain {
        display: none;
    }
    nav.navbar.sticky-top.navbar-light.bg-light {
        padding: 0;
        margin: 0;
        padding-top: 27px;
    }
    div#wpcontent {
        margin: 0;
    }

}
input[type=date], input[type=datetime-local], input[type=datetime], input[type=email], input[type=month], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input[type=url], input[type=week] {
    border-right: 0;
    border-top: 0;
    padding: 0 8px;
    line-height: 2;
    min-height: 38px;
    border-radius: 0;
    /* border-color: #d2d2d2; */
    border: 1px solid #e2e2e2;
}

.form-row.align-items-center.container-fluid {
    background: #f2f2f2;
}
html {
    margin: 0 !important;
}

a {
    color: #2d3e51;
    text-decoration: none;
    background-color: transparent;
}

.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    color: #ffffff;
    background-color: #6c757d;
    border-color: #dee2e6 #dee2e6 #fff;
    border: 0px;
}
.form-group > label {
    clear: both;
    width: 100%;
}
button.btn.dropdown-toggle.btn-light {
    background: white;
    box-shadow: 0 0 0 transparent;
    border-radius: 4px;
    border: 1px solid #8c8f94;
    background-color: #fff;
    color: #2c3338;
}
.title_row td {
    font-size: 13px;
    line-height: 1em;
}

.bootstrap-select:not([class*=col-]):not([class*=form-control]):not(.input-group-btn) {
    width: auto;
    max-width:100%;
}
tr.title_row {
    background: #d5d5d5;
}

.live_search{
    position: absolute;
    background: red;
    margin-top: 43px;
    z-index: 10000;
}
table#myTable button {
    border: none!important;
}
.table-responsive {
    display: block;
    overflow-x: auto;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
}

select.form-select {
    padding: 0 8px;
    line-height: 2;
    min-height: 38px;
}
div#result_module {
    margin: 0;
}
input#upload_image {
    max-width: 100%;
}
div#nav-tabContent {
    padding-top: 20px;
}

.fc-header-toolbar.fc-toolbar.fc-toolbar-ltr {
    font-size: 14px;
}

.horizzontal-scroll{
    /* background-color: #333; */
    overflow: auto;
    white-space: nowrap;
}

.horizzontal-scroll > div, horizzontal-scroll > i, horizzontal-scroll > a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px;
    text-decoration: none;
}

div#calendar_week {
    overflow: scroll;
}
.badge-bozza{
    background-color: #c7e1ec;
    border: #c7e1ec;
}

badge-primary{
    background-color: #007bff!important;
    border: #007bff;
}

.badge-da-ordinare{
    background-color: #40a8c2;
    border: #40a8c2;
    color:white;
}
.badge-danger{
    background-color: #dc3545;
    border: #dc3545;
}

.badge-ordinato{
    background-color: #fee151;
    border: #fee151;
}

.badge-in-lavorazione{
    background-color: #fb9040;
    border: #fb9040;
    color:white;
}
span.badge.badge-primary {
    background: #006cff;
}

nav#nat_top {
    overflow: hidden;
    /* background-color: #333; */

    top: 0;
    width: 100%;
    display: block;
    background: red;
    z-index: 20;
}

.main-module {
   margin-top:50px;
}

div#organizzazione_lavoro_documento {
    background: #343a41;
    color: white;
    border-radius: 5px;
}
div#time_min {
    font-weight: bold;
    font-size: 1.3em;
}
div#organizzazione_lavoro_documento label {
    color: white;
}

.badge-finito-da-fatturare{
    background-color: #a8cc4f;
    border: #a8cc4f;
    color:white;
}

.badge-fatturato-finito{
    background-color: #6dbd4f;
    border: #6dbd4f;
    color:white;
}
label {
    color: black;
}

td.bg-lightgreen {
    background: lightgreen;
}


.container.horizzontal-scroll {
    overflow: visible;
}

.badge-annullato{
    background-color: #000000;
    border: #000000;
    color:white;
}

span.badge.badge-bozza {
    background: #fff700;
}
li.nav-item {
    margin: 0!important;
}

.input-group-prepend > span {
    min-width: 180px;
}

/* IPAD MODIFICHE BOOTSTRAP */
@media only screen and (max-width: 1190px){
    .col-md-4, .col-md-8 {
        max-width:100%!important;
        flex:auto!important;
    }
}

#organizzazione_lavoro_documento {

}

div#add-edit {
    box-shadow: -7px 0 30px #363636
}
.bg-light {
    background-color: white;
}

div#col-add-edit {
    padding: 0;
}

table#myTable thead tr {
    background: #c3c3c3;
}

div#col-add-edit {
    max-width: 1500px;
    /* text-align: center; */
    margin: 0 auto;
}
.main-module {
}

/*
i wish this required CSS was better documented :(
https://github.com/FezVrasta/popper.js/issues/674
derived from this CSS on this page: https://popper.js.org/tooltip-examples.html
*/

.popper,
.tooltip {
    position: absolute;
    z-index: 9999;
    background: #FFC107;
    color: black;
    width: 150px;
    border-radius: 3px;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
    padding: 10px;
    text-align: center;
}
.style5 .tooltip {
    background: #1E252B;
    color: #FFFFFF;
    max-width: 200px;
    width: auto;
    font-size: .8rem;
    padding: .5em 1em;
}
.popper .popper__arrow,
.tooltip .tooltip-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    margin: 5px;
}

.tooltip .tooltip-arrow,
.popper .popper__arrow {
    border-color: #FFC107;
}
.style5 .tooltip .tooltip-arrow {
    border-color: #1E252B;
}
.popper[x-placement^="top"],
.tooltip[x-placement^="top"] {
    margin-bottom: 5px;
}
.popper[x-placement^="top"] .popper__arrow,
.tooltip[x-placement^="top"] .tooltip-arrow {
    border-width: 5px 5px 0 5px;
    border-left-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    bottom: -5px;
    left: calc(50% - 5px);
    margin-top: 0;
    margin-bottom: 0;
}
.popper[x-placement^="bottom"],
.tooltip[x-placement^="bottom"] {
    margin-top: 5px;
}
.tooltip[x-placement^="bottom"] .tooltip-arrow,
.popper[x-placement^="bottom"] .popper__arrow {
    border-width: 0 5px 5px 5px;
    border-left-color: transparent;
    border-right-color: transparent;
    border-top-color: transparent;
    top: -5px;
    left: calc(50% - 5px);
    margin-top: 0;
    margin-bottom: 0;
}
.tooltip[x-placement^="right"],
.popper[x-placement^="right"] {
    margin-left: 5px;
}
.popper[x-placement^="right"] .popper__arrow,
.tooltip[x-placement^="right"] .tooltip-arrow {
    border-width: 5px 5px 5px 0;
    border-left-color: transparent;
    border-top-color: transparent;
    border-bottom-color: transparent;
    left: -5px;
    top: calc(50% - 5px);
    margin-left: 0;
    margin-right: 0;
}
.popper[x-placement^="left"],
.tooltip[x-placement^="left"] {
    margin-right: 5px;
}
.popper[x-placement^="left"] .popper__arrow,
.tooltip[x-placement^="left"] .tooltip-arrow {
    border-width: 5px 0 5px 5px;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    right: -5px;
    top: calc(50% - 5px);
    margin-left: 0;
    margin-right: 0;
}

div#col-table col {
    width: auto;
}

div#wpbody {
    //font-size: 13px;
    line-height: 1em!important;
}

div.scrollmenu {
    background-color: #333;
    overflow: auto;
    white-space: nowrap;
}

div.scrollmenu a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px;
    text-decoration: none;
}

div.scrollmenu a:hover {
    background-color: #777;
}

.fixed-table-body {
    height: auto!important;
}