/* Classi Utility CSS */
.no-list-style, ul.dropdown-menu {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

.modal.show, .open-add-modal, #modalePerSettarePromemoria {
    /* TODO: test su questo per z-index */
    z-index: 9999999 !important;
}

.dropzone {
    width: 100% !important;
    padding: 70px 0!important;
    border-radius: 0.5rem;
}

/* TODO: soluzione temporanea; aggiustare z-index delle modali per far visaulizzare il flatpicker */
.flatpickr-calendar {
    z-index: 999999999 !important;
}

.sidebar-wrapper {
    width: 265px;
}

[dir="ltr"] .ltr\:ml-\[248px\] {
    margin-left: 260px;
}

@media only screen and (max-width: 1234px) {
    .toastify {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }
}

.toast-close {
    position: absolute !important;
    top: 4px !important;
    right: 8px !important;
}

.select2-selection__clear {
    margin-left: 10px !important;
    color: #0f172a;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    color: #000;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #334155 !important;
    background-color: #f2f2f2 !important; /*#0F172A !important*/
    color: #000 !important; /*#cbd5e1 !important */
}

.select2-results__option.select2-results__option--selectable {
    background-color: #f2f2f2 !important; /*#0F172A !important*/
    color: #000 !important; /*#cbd5e1 !important */
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #acb2b9 !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option--selected {
    /* background-color: #f2f2f2 !important; /*#0F172A !important
    color: #000 !important; /*#cbd5e1 !important  */
    background-color: #5897fb !important;
    color: #fff !important;
}

.bg-success-custom {
    background: #50c793 !important;
}

.bg-success-dark-custom {
    background: #28a745 !important;
}

.bg-warning-custom {
    background: #f88820 !important;
}

.bg-danger-custom {
    background: #dc3545 !important;
}

.linkDecorationHover {
    text-decoration: none;

    &:hover {
        text-decoration: underline;
    }
}

.riga-promemoria:hover td {
    transition: all 0.3s;
    background-color: #334155 !important;
}

.divInsideHeaderCustom {
    display: block;
}

.tooltip-parent {
    position: relative;
}

.tooltip-content {
    width: 12rem;
    background-color: #fff;
    color: #000;
    padding: 0.6rem;
    border-radius: 0.5rem;
    border: solid 1px black;

    /* Position the tooltip text - see examples below! */
    position: absolute;
    z-index: 99999999 !important;
}

.tooltip-parent .tooltip-content {
    visibility: hidden;
}

.tooltip-parent:hover .tooltip-content {
    visibility: visible;
}

/* Flatpickr */
input.flatpickr:read-only,
input.flatpickr-input-month:read-only,
input.flatpickr-dtime:read-only,
input.flatpickr-onlytime:read-only {
    background-color: #d2d2d2; /* #0f172a !important*/
    color: #000; /*#e2e8f0 !important; */
}

.ck-editor__editable {
    height: 400px;
    color: black;
}

.ck.ck-balloon-panel.ck-powered-by-balloon {
    display: none !important;
}

.ck-editor__editable ol,
.ck-editor__editable ul,
.ck-editor__editable menu {
    list-style-type: inherit;
    margin: initial;
    padding: initial;
    margin-left: 15px;
}

.flatpickr-clear-button {
    border: 1px solid #d0d0d0;
    border-radius: 20px 20px 20px 20px;
    padding: 5px;
    width: fit-content;
    color: #000;
    margin-top: 3px;
    margin-bottom: 3px;

    &:hover {
        border: 1px solid #4f4f4f;
        background-color: #d0d0d0;

    }
}

.salva-riga:hover {
    color: #50C793;
}

.modifica-riga:hover {
    color: #FA916B;
}

.duplica-riga:hover {
    color: #0CE7FA;
}

.elimina-riga:hover {
    color: #F1595C;
}

.invia-mail-icon:hover {
    color: #50C793;
}

/* INIZIO SCROLLBAR  */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    /*border-radius: 5px;*/
}

::-webkit-scrollbar-thumb {
    background: #2b8fba;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #216e8f;
}

@-moz-document url-prefix() {
    html {
        scrollbar-color: #2b8fba #131d35;
        scrollbar-width: thin;
    }

    .tabs-tab-custom,
    #tabs-tab {
        scrollbar-color: #2b8fba #131d35;
        scrollbar-width: thin;
    }

    .dropdown-menu {
        scrollbar-color: #2b8fba #131d35;
        scrollbar-width: thin;
    }
}

/* FINE SCROLLBAR  */

/* INIZIO NOTIFICHE */
html.light .text-icona-row-notifica {
    color: rgb(70, 105, 250)
}
html.light .border-row-notifica {
    border-bottom: 1px solid rgba(85, 94, 136, 0.42);
}

html.dark .text-icona-row-notifica {
    color: rgb(255, 226, 0); 
}
html.dark .border-row-notifica {
    border-bottom: 1px solid rgb(64, 79, 104); 
}
/* FINE NOTIFICHE */

/* INIZIO CLASSI CALENDARIO RESPONSIVE */

#labelFiltri {
    margin-bottom: 0;
}

#full-calander-active [aria-labelledby="fc-dom-1"] {
    height: auto;
}

/* FINE CLASSI CALENDARIO RESPONSIVE */

/* INIZIO STILI TEXTAREA RIGHE PRODOTTI RESPONSIVE */
#tabellaProdotti textarea,
#listatoRigheOrdine textarea {
    min-height: 120px;
}

/* FINE STILI TEXTAREA RIGHE PRODOTTI RESPONSIVE */


/*********** STILI TABELLE CUSTOME ***********/
.dataTableStyleOnly td {
    padding: 0.4rem;
}

.dataTableStyleOnly td {
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}

.dataTableStyleOnly thead tr:first-child {
    background-color: #233992;
}

.dataTableStyleOnly thead tr:first-child th {
    font-size: 13px;
}

.dataTableStyleOnly tbody tr:nth-child(odd) {
    background-color: #1d3751;
}

.dataTableStyleOnly tbody tr:nth-child(even) {
    background-color: #41566a;
}

/*********** DATATABLE STILE OVERRIDE ***********/
/*********** DATA_TABLE ***********/
.dataTables_wrapper .dataTable tr:hover td {
    transition: all 0.3s;
    background-color: #030e24 !important;
    color: #ffffff;
}

.dataTables_wrapper .dataTable {
    /* border-top: 0.23ex solid #aaa;
    border-bottom: 0.1ex solid #aaa; */
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #aaa;
}

.dataTables_wrapper .dataTables_info {
    width: 15%;
    float: none;
    display: inline-block;
    padding-left: 5ex;
    padding-top: 2ex;
    margin: 0;
}

.dataTables_wrapper .dataTables_paginate {
    float: left;
    margin-top: 1.25rem;
    margin-left: 10%;
    text-align: center;
}

.dataTables_wrapper .dataTables_length {
    float: right;
    margin-top: 1.05rem;
    margin-right: 10%;
    text-align: center;
}

.dataTables_wrapper .dataTables_filter {
    float: left;
    margin-bottom: 1.25rem;
    margin-left: 4%;
    text-align: center;
}

.dataTables_wrapper .dataTables_length select {
    cursor: pointer;
}

.dataTables_wrapper .dataTable thead tr th {
    /* ANDREA FONT TABELLE */
    font-size: 0.85rem;
}

.dataTables_wrapper .dataTable tbody tr td {
    /* ANDREA PADDING RIGHE TABELLE */
    /*padding: 1rem 0.4rem;*/
    padding: 0.50rem 0.5rem;
}

.dataTables_wrapper .dataTable tbody tr.odd {
    --tw-bg-opacity: 1;
    background: rgb(243 243 243 / var(--tw-bg-opacity));
}

.dataTables_wrapper .dataTable tbody tr .dataTables_empty {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    text-align: center;
}

.dataTables_wrapper .dataTable tbody tr.even {
    --tw-bg-opacity: 1;
    background: rgb(250 250 250 / var(--tw-bg-opacity));
}

.dark .dataTables_wrapper .dataTable thead tr:first-child {
    /* Modifica Emanuele colore header datatable */
    /* background: #28384d; *//*rgb(20 41 59 / var(--tw-bg-opacity));*/
    --tw-bg-opacity: 1;
    background: #233992;
}

.dark .dataTables_wrapper .dataTable thead tr:first-child th {
    text-wrap: nowrap;
}

table.dataTable.fixedHeader-floating thead tr:first-child {
    --tw-bg-opacity: 1;
    background: #233992;
}

table.dataTable.fixedHeader-floating thead tr:last-child input {
    height: 25px !important;
    margin-bottom: 5px !important;
}

table.dataTable.fixedHeader-floating thead tr:first-child th {
    font-size: 0.85rem;
    text-wrap: nowrap;
}

.dark .dataTables_wrapper .dataTable tbody tr.odd {
    --tw-bg-opacity: 1;
    background: #1d3751; /*rgb(20 41 59 / var(--tw-bg-opacity));*/
}

.dark .dataTables_wrapper .dataTable tbody tr.even {
    --tw-bg-opacity: 1;
    background: #41566a; /*rgb(30 45 59 / var(--tw-bg-opacity));*/
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous {
    padding-right: 0;
    top: 0px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    padding-left: 0;
    top: 0px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #2196f3;
    color: #fff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: #c3dde7;
    color: #000 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.next,
.dataTables_wrapper .dataTables_paginate .paginate_button.next:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.next:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.first,
.dataTables_wrapper .dataTables_paginate .paginate_button.first:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.first:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.last,
.dataTables_wrapper .dataTables_paginate .paginate_button.last:active,
.dataTables_wrapper .dataTables_paginate .paginate_button.last:hover {
    /* background: transparent; */
    border: 0;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.first {
    margin-right: 0;
}

.dashcode-data-table {
    & .form-control {
        background-color: #f2f2f2 !important;
        color: #000 !important;
    }

    & .form-control[readonly] {
        background-color: #d6d6d6 !important;
        color: #000 !important;
    }
}

/* Separatori celle */
.dashcode-data-table tbody tr.odd td:not(:first-child) {
    border-left: 0.5px inset #41566a;
}

.dashcode-data-table tbody tr.even td:not(:first-child) {
    border-left: 0.5px inset #1d3751;
}

/*********** FINE DATA_TABLE ***********/

/**** FLEX COL BOOTSRAP ***/
.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.offset-1 {
    margin-left: 8.33333%;
}

.offset-2 {
    margin-left: 16.66667%;
}

.flexRowResponsive {
    flex-direction: row;
}

.row {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-right: -.625rem;
    margin-left: -.625rem;
    box-sizing: border-box;
}

/*********** FINE FLEX COL BOOTSRAP ***********/

#globalTaskLoading {
    position: absolute;
    top: 0;
    left: 0;

    min-width: 100%;
    min-height: 100%;

    background-color: #00000055;
}

/*Select2 ReadOnly Start*/
select[readonly].select2-hidden-accessible + .select2-container {
    pointer-events: none;
    touch-action: none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection {
    background: #eee;
    box-shadow: none;
}

select[readonly].select2-hidden-accessible + .select2-container .select2-selection__arrow, select[readonly].select2-hidden-accessible + .select2-container .select2-selection__clear {
    display: none;
}

/*Select2 ReadOnly End*/


@media only screen and (max-width: 1119px) {
    .dataTables_wrapper {
        overflow-x: auto;
    }
}

@media only screen and (max-width: 1024px) {
    table thead tr.filters {
        display: none !important;
    }
}

@media only screen and (min-width: 768px) {
    #modalePerSettarePromemoria .modal-dialog {
        min-width: 768px;
    }

    #modalePerSettarePromemoria .md\:mt-15 {
        margin-top: 0;
    }
}

@media only screen and (min-width: 576px) {
    #modalePerSettarePromemoria .modal-dialog {
        max-height: 90vh;
        overflow-y: auto;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 0 0 100%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-4 {
        flex: 0 0 33.33333%;
        max-width: 33.33333%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-2 {
        flex: 0 0 16.66667%;
        max-width: 16.66667%;
    }

    .col-md-1 {
        flex: 0 0 8.33333%;
        max-width: 8.33333%;
    }

    .offset-md-1 {
        margin-left: 8.33333%;
    }

    .offset-2 {
        margin-left: 16.66667%;
    }
}

@media only screen and (max-width: 576px) {
    .divInsideHeaderCustom {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .divInsideHeaderCustom #salvaBtn,
    .divInsideHeaderCustom #createBtn {
        position: fixed;
        bottom: 15px;
        right: 15px;
        z-index: 999;
    }

    #editBtn,
    #aggiornaBtn {
        position: fixed;
        bottom: 15px;
        right: 15px;
        z-index: 999;
    }

    #labelFiltri {
        margin-bottom: 0.5rem;
    }

    #full-calander-active [aria-labelledby="fc-dom-1"] {
        height: 87.5vh !important;
    }

    .col-md-12,
    .col-md-6,
    .col-md-4,
    .col-md-3,
    .col-md-2 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .offset-md-1 {
        margin-left: 0% !important;
    }

    .offset-md-2 {
        margin-left: 0% !important;
    }

    .flexRowResponsive {
        flex-direction: column;
    }
}