html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.tabposition {
    padding-top: 4px;
}
iframe {
    display: block; /* iframes are inline by default */
    height: 75vh; /* Set height to 100% of the viewport height */
    width: 100%; /* Set width to 100% of the viewport width */
    border: none; /* Remove default border */
    background: lightyellow; /* Just for styling */
}
.tab-content > .active {
    background-color: var(--mainbg) !important;
    border: 1px solid #dee2e6  ;
}

.backcard .card-header {
    background: dodgerblue !important;
    color: white !important;
}
.backcard {
    background: var(--mainbg) !important;
}
h5x.card-title {
    border-bottom: 1px solid #888888;
}
.modale-top-buttons {
    text-align: right;
    padding-right: 10px;
    padding-top: 5px;
    padding-bottom: 4px;
    border-bottom: 1px solid lightgray;
}
.modal-fullscreen {
    border: 1px solid #dee2e6;
    border-radius: var(--bs-card-border-radius);
}
div.dataTables_wrapper div.dataTables_length select {
    width: 60px !important
}
#bloccototali{
    display: none;
}
#bloccocheck{
    display: none;
}
.spinner-wrapper {
    background-color: #000000;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    -webkit-align-items: inherit;
    align-items: center;
    display: flex;
    opacity: .7;
    filter: alpha(opacity=70);
}
.spinner-border{
    width:60px;
    height:60px;
}
.pagination {
    --bs-pagination-padding-x: 0.75rem;
    --bs-pagination-padding-y: 0.375rem;
    --bs-pagination-font-size: 1rem;
    --bs-pagination-color: var(--bs-link-color);
    --bs-pagination-bg: var(--bs-body-bg);
    --bs-pagination-border-width: var(--bs-border-width);
    --bs-pagination-border-color: var(--bs-border-color);
    --bs-pagination-border-radius: var(--bs-border-radius);
    --bs-pagination-hover-color: var(--bs-link-hover-color);
    --bs-pagination-hover-bg: var(--bs-tertiary-bg);
    --bs-pagination-hover-border-color: var(--bs-border-color);
    --bs-pagination-focus-color: var(--bs-link-hover-color);
    --bs-pagination-focus-bg: var(--bs-secondary-bg);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: #0d6efd;
    --bs-pagination-active-border-color: #0d6efd;
    --bs-pagination-disabled-color: var(--bs-secondary-color);
    --bs-pagination-disabled-bg: var(--bs-secondary-bg);
    --bs-pagination-disabled-border-color: var(--bs-border-color);
    display: flex;
    padding-left: 0;
    list-style: none;
}
.btn-tools {
    margin-right: 2px;
}

.spostasu70 {
    margin-top: -30px !important;
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: lightskyblue;
}
.fasize {
 font-size:30px;
}
.amdropitem {
    padding: 2px 10px;
    white-space: pre-wrap;
}
.amdropwidth{
    width:80% !important;
    max-width:80%;
}
.amdropwidth select, .amdropwidth button {
    width: 80% !important;
}
.amdropwidth ul li span{
    padding: 4px;
}
    .amdropwidth ul li:nth-child(odd) {
        background-color: #f0f0f0; /* Grigio chiaro */
    }

/* Selettore per gli elementi in posizione PARI (2°, 4°, 6°, ...) */
/* Puoi usare anche :nth-child(2n) */
    .amdropwidth ul li:nth-child(even) {
        background-color: #dcdcdc; /* Grigio medio/scuro */
        color: #333; /* Colore testo pių scuro per contrasto */
    }
.text-menu{
    font-size:18px;
}
.menu-width{
    width: 204px;
}
.fixed-icon-width{
    width: 40px;
}
/*.overlay-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    z-index: 1060;*/ /* Pių alto della modale esterna */
    /*border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}*/

.secondary-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Grigio scuro semitrasparente */
    z-index: 1060; /* Deve essere pių alto della prima modale (1050) */
}

/* Stile per il dialogo vero e proprio */
.overlay-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    /* Centra perfettamente l'elemento */
    transform: translate(-50%, -50%);
    /* Z-index ancora pių alto per essere sopra il suo backdrop */
    z-index: 1061;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5); /* Ombra per farlo risaltare */
    padding: 1px;
   
}
.overlay-dialog-son{
    margin: 1px !important;
}
.toast {
    /* Il valore di default di Bootstrap č spesso 1090 o 1100. */
    /* Usare 9999 o superiore garantisce che il Toast sia sempre l'elemento pių in alto. */
    z-index: 99999 !important;
    /* Nota: Usare !important č necessario se un'altra regola specifica sta sovrascrivendo l'originale di Bootstrap. */
}
 
