h1, h2, h3, h4{
    font-family: 'Montserrat', sans-serif;
}
html, body {
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    font-family: 'Montserrat', sans-serif;
  }

.content-header {
    position: relative !important;
    padding-bottom: 10px !important;
}

.content-header {
    flex-direction: row !important;    
    justify-content: space-between !important;
    align-items: center !important;
}


.riga-sanata {
    background-color: #ffdddd !important; /* rosso pastello acceso */
}

  /* Per contenitori principali */
  .wrapper, .content-wrapper, .page-container {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Per DataTables larghe */
  .table-responsive {
    overflow-x: auto;
  }

  table.dataTable {
    width: 100% !important;
  }	
.nav-item {
    margin-left: 1000px; /* Modifica il valore a tuo piacimento per regolare il margine sinistro */
	
}
.content-wrapper {
    margin-left: 0 !important;
    background-color: #92cee2 !important;
}

.btn-logout {
    background-color: #ff5c6c;
    border-color: none;
    color:#ffffff;
    border-radius: 5px;
    margin-top: 10px;
    margin-right: 10px;
    margin-left: 20px;
    padding: 5px 10px 5px 10px;
    box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
}

.btn-logout:hover {
    background-color: #d73925 !important;
}

#example {
    width: 100%;
	font-size: 13px;
}

#example2 {
    width: 100%;
	font-size: 13px;
}

#example3 {
    width: 100%;
	font-size: 13px;
}

#example4 {
    width: 100%;
	font-size: 13px;
}
.main-footer{
  margin-left: 0;
  z-index: 9999999;
  position: relative;
}

.nascosta {
	display:none;
	border:1px dashed #fff;
	background-color: #5c3d3a;
	color:#FFF;
	padding-left: 10px;
	padding-right: 10px;
	margin-left:20px;
}
input[type="file"] {
                display: none;
            }
.table-responsive 
{
     width: auto; 
     overflow-x: auto !important; /* Cambia da auto a hidden */
}

.modal-content
	{
		margin-top: 20%;
	}
div.dataTables_wrapper div.dataTables_filter{
    	display: none !important;
}
div.dt-buttons {
  float: right !important;
}
.dt-button{
    background-color: #00c0ef;
	color: white;
    border-radius: 5px;
    padding: 5px 12px 5px 12px;
	border: none;
	margin-left: 10px;
    margin-bottom: 15px;
	box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
}

.btn-excel {
	padding: 5px 12px 5px 12px;
	box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
    margin-right: 10px;
	background-color: rgba(31, 178, 204, 0.66) !important;
	color: rgba(0, 0, 0, 0.82) !important;
	border-radius: 5px !important;
    border: none !important;  /* Rimuove qualsiasi bordo */
    outline: none !important;  /* Rimuove il bordo di focus */
    appearance: none !important;  /* Rimuove lo stile nativo del browser */
    -webkit-appearance: none !important;  /* Rimuove lo stile nativo del browser in WebKit */
    -moz-appearance: none !important;  /* Rimuove lo stile nativo del browser in Mozilla */
    font-weight: bold !important; 
}

.btn-nuova-leads{
	float: left; 
	margin-right: 10px;
	padding: 5px 12px 5px 12px;
	box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
	background-color: green;
	color: white;
	border-radius: 20px;
}
.btn-elimina-leads{
	float: left; 
	margin-right: 10px;
	padding: 5px 12px 5px 12px;
	box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
	background-color: red;
	color: white;
	border-radius: 20px;
    border: none;
}

/* Base comune */
.dt-button {
    border: none !important;
    padding: 8px 14px;
    border-radius: 8px;
    color: #fff !important;
    transition: all .25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* -----------------------------------
   NUOVA VENDITA
----------------------------------- */
#nuova_vendita_button {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.hover-vendita:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(82, 134, 248, 0.35);
    filter: brightness(1.08);
}

/* -----------------------------------
   CERCA IMEI
----------------------------------- */
.hover-cerca {
    background: linear-gradient(135deg, #16a34a, #065f46);
}

.hover-cerca:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
    filter: brightness(1.08);
}

/* -----------------------------------
   MAGAZZINO
----------------------------------- */
.hover-magazzino {
    background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

.hover-magazzino:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
    filter: brightness(1.08);
}

/* -----------------------------------
   CARICA PDA
----------------------------------- */
.hover-pda {
    background: linear-gradient(135deg, #f97316, #c2410c);
}

.hover-pda:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
    filter: brightness(1.08);
}

/* Icone */
.dt-button i {
    font-size: 14px;
}




.btn-gara {
    float: left; 
    background-color: #6A0DAD;
    margin-right: 10px;
	padding: 5px 12px 5px 12px;
	box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
    color: white;
    border: none;
    border-radius: 20px;

   
}


.btn-torna-indietro{
	float: left; 
	margin-right: 10px;
	padding: 5px 12px 5px 12px;
	box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
	background-color: rgb(45, 84, 192);
	color: white;
	border-radius: 20px;
    border: none;
}

.btn-ko{
	float: left; 
	margin-right: 10px;
	padding: 5px 12px 5px 12px;
	box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
	background-color: rgb(156, 55, 240);
	color: white;
	border-radius: 20px;
    border: none;
}


.btn-assegna-operatore{
	float: left;
	padding: 5px 12px 5px 12px;
	box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
    margin-right: 10px;
	background-color: orange;
	color: white;
	border-radius: 20px;
    border: none;
 }

.btn-dashboard-messaggi{
	float: left;
	padding: 5px 12px 5px 12px;
    margin-right: 10px;
	box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
	background-color: #252850;
	color: white;
	border-radius: 20px;
    border: none;
}

.btn-nuova-leads:hover {
    background-color: #00aa00;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
}

.btn-elimina-leads:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
}

.btn-gara:hover {
    background-color: #9914f8;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);

}

.btn-torna-indietro:hover{
	background-color: rgb(0, 132, 255);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);

}

.btn-ko:hover {
    background-color: #99009e;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
}
.btn-assegna-operatore:hover {
    background-color: #ff8000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
}

.btn-dashboard-messaggi:hover {
    background-color: #1e2245;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
}

/* Aggiungi questa riga se non l'hai già: */
button {
    transition: all 0.2s ease-in-out;
}

.btn-success {
  background-color: green;
  border-color: green;
  border-radius: 8px;
}

.btn-success:hover {
    background-color: #00aa00;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
}

.btn-warning {
  background-color: orange;
  border-color: orange;
  border-radius: 8px;
      display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    width: 40px;
    height: 40px;
    color: white;
}

.btn-warning:hover {
    background-color: #ff8000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
}

.btn-danger {
    background-color: red;
    border-color: red;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    width: 40px;
    height: 40px;
    color: white;
}
.btn-danger:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
}

.btn-lista {
    background-color:#4da3ff;
    border-color:#4da3ff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    width: 40px;
    height: 40px;
    color: white;
}

.btn-lista:hover {
    background-color:#509ae9;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
    color:white;
}

.btn-primary {
    background-color: #2172c9;
    border-color: #2172c9;
    border-radius: 8px;
  }
  
  .btn-primary:hover {
      background-color: #2172c9;
      transform: translateY(-2px);
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
      transition: all 0.2s ease-in-out;
  }

.btn-invia-messaggio-leads{
	float: right;
}

.btn-modifica {
    background-color: green;
    color: #ffffff;
    border-radius: 5px;
    padding: 10px 25px 10px 25px;
    box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
    border: white;
}

.btn-modifica:hover {
    background-color: white;
    color: green;
    border: 1px solid green;
}

.btn-ticket{
    background-color: #fd7e14;
    color: #ffffff;
    border-radius: 5px;
    padding: 10px 25px;
    box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
    border: 1px solid #fd7e14;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin: 3px 5px
}

.btn-ticket:hover {
    background-color: #ffffff;
    color: #fd7e14;
    border: 1px solid #fd7e14;
}


input{
	width: inherit;
    border-radius: 5px;
    box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
    border: none;
    padding: 5px;
}

#myModal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 20px;
    max-width: 300px; /* Imposta la larghezza massima del popup */
    max-height: 220px; /* Imposta l'altezza massima del popup */
    overflow-y: hidden; /* Aggiungi una barra di scorrimento verticale se necessario */
}

#myModal .modal-content {
    text-align: center;
}

#myModal .close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

/* CSS per il popup modale */
.modal {
    display: none; /* Inizialmente nascosto */
    position: fixed; /* Posizionamento fisso */
    z-index: 9999; /* Livello di sovrapposizione elevato per assicurarsi che sia in primo piano */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Consenti lo scorrimento se il contenuto è più grande della finestra modale */
    background-color: rgba(0, 0, 0, 0.5); /* Sfondo semitrasparente */
}


/* Contenuto del popup */
.modal-content {
    background-color: #fefefe00; /* Sfondo bianco */
    margin: 15% auto; /* Centro verticalmente e orizzontalmente */
    padding: 20px;
    width: 100%; /* Larghezza del contenuto del popup */
   
    border-radius: 15px; /* Bordo arrotondato */
}

.modal-content2 {
    background-color: #fefefe; /* Sfondo bianco */
    margin: 1% auto; /* Centro verticalmente e orizzontalmente */
    padding: 20px;
    border-radius: 8px; /* Bordo arrotondato */
    width: 90%;
}
/* Pulsante di chiusura */
.close {
    color: black;
    float: right;
    font-size: 38px; /* Aumenta la dimensione del font */
    font-weight: bold;
    cursor: pointer; /* Mostra il cursore come un puntatore */
    transition: color 0.3s; /* Transizione del colore */
}

.close:hover,
.close:focus {
    color: red; /* Cambia il colore al passaggio del mouse */
    text-decoration: none;
}

/* Pulsante "Chiudi" */
#closeModalBtn {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

#closeModalBtn:hover {
    background-color: #0056b3;
}

.dataTables_scroll{
    flex-direction: column-reverse;
    display: flex;
}
.dataTables_scrollFootInner
{
    width: 100% !important;
}
.dataTables_scrollFoot
{
    width: 100% !important;
}
.table.table-bordered.table-hover.dataTable
{
    width: 100% !important;
    font-size: 13px !important;
}
input[type=checkbox]{
    width: 20px;
    height: 20px;
}

.bold-row {
            font-weight: bold;
        }

.box, .box-body{
    padding-top: 5px !important;
}
.totale-trattative-box {
        float: right;
        background-color: #fbbc04;
        color: black;
        padding: 5px 12px 5px 12px;
        margin-right: 10px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 20px;
        font-weight: bold;
        
    }
.totale-trattative-box h4, .totale-trattative-box p {
        margin: 0;
        padding: 0 10px;
        font-weight: bold;
    }

.totale-trattative-box:hover {
    background-color:rgb(250, 205, 69);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
} 

.totale-richiami-box {
        float: right;
      background-color: #FFECB3;

        color: black;
        padding: 5px 12px 5px 12px;
        margin-right: 10px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 20px;
        font-weight: bold;
        border: 2px solid #000; 
        margin-top: 7px;
        
    }
.totale-richiami-box h4, .totale-richiami-box p 
{
        margin: 0;
        padding: 0 10px;
        font-weight: bold;
} 

.totale-richiami-box a 
{
            text-decoration: none;
            color: inherit; /* Inherit color from the parent element */
            display: contents;
            width: 100%;
            height: 100%;
}

.totale-richiami-box:hover {
    background-color:rgb(250, 205, 69);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
} 

legend{
    width: auto;
    padding: 0 8px;
    border-bottom: 0;
}

.dati-anagrafici {
    border: 2px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.dati-anagrafici legend,
.dati-anagrafici h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.dati-anagrafici .row {
    display: flex;
    flex-wrap: wrap;
}

.dati-anagrafici .col-sm-4 {
    margin-bottom: 10px;
}

.dati-imei-nascosti {
    border: 2px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.dati-imei-nascosti legend,
.dati-imei-nascosti h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Flex container per i form-group */
.dati-imei-nascosti .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    gap: 15px;
}

/* Ogni form-group si comporta in modo flessibile */
.dati-imei-nascosti .form-group {
    flex: 1 1 200px;
    min-width: 200px;
    max-width: 300px; /* opzionale: limita larghezza massima */
}

/* Input prende tutta la larghezza del form-group */
.dati-imei-nascosti input {
    width: 100%;
}

.dati-contratto-finanziamento legend,
.dati-contratto-finanziamento h3 {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}
/*dati anagrafici fina*/
.dati-contratto-finanziamento {
    border: 2px solid #ccc;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 6px;
  
}


.dati-contratto-finanziamento .row {
    display: flex;
    flex-wrap: wrap;
}

.dati-contratto-finanziamento .form-group {
    flex: 1 1 280px; /* Ogni campo prende lo spazio minimo e cresce fino a 100% */
    min-width: 250px;
    max-width: 100%;
}

.dati-contratto-finanziamento .input-group,
.dati-contratto-finanziamento input,
.dati-contratto-finanziamento select {
    width: 100%;
}

.dati-contratto-finanziamento .input-group-text {
    min-width: 40px;
    text-align: center;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-right: 0;
    border-radius: .25rem 0 0 .25rem;
}



.table > tbody > tr > td {
    padding: 5px !important;
    text-align: center !important;
    vertical-align: middle !important;
}
.main-navbar {
    width: 100%;
    background-color: #FFF;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
}

/* MENU DESKTOP (default) */
.navbar-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 10px;
    flex-wrap: nowrap;
}

/* Contenitore loghi */
.logo {
    padding-right: 30px;
}

/* Stile immagini loghi */
.logo img {
    height: 45px;
    display: block;
    max-width: 100%;
}

/* Dropdown menu */
.navbar-menu-list {
    display: flex;
    list-style-type: none;
    padding: 0;
    margin: 0;
    transition: max-height 0.90s ease-out;
}

.navbar-menu-list li {
    padding: 10px 8px;
    text-align: center;
}

.navbar-menu-list li a {
    position: relative;
    display: inline-block;
    text-decoration: none;
    color: #02012d;
    font-size: 14px;
}

.navbar-menu-list li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background-color: rgb(182, 7, 7);
    transition: width 0.3s ease-in-out;
}

.navbar-menu-list li a:hover::after {
    width: 100%;
}



.fa-file-pdf-o {
    color: #FF0000;
    font-size: 20px;
    margin-right: 5px;
}

.nav-tabs-custom > .nav-tabs {
    display: flex;
    justify-content: center;
}

/* Contenitore della chat */
.chat-container {
    max-width: 600px; /* Larghezza massima della chat */
    margin: 0 auto; /* Centra la chat orizzontalmente */
    padding: 5px; /* Spazio interno del contenitore */
    background: #ffffff; /* Colore di sfondo della chat */
    border-radius: 10px; /* Angoli arrotondati del contenitore */
    height: 900px; /* Altezza fissa per il contenitore della chat */
    overflow-y: auto; /* Permette lo scroll verticale */
    border: 1px solid #ddd; /* Bordo del contenitore */
    display: flex;
    flex-direction: column;
}

/* Messaggi */
.message {
    margin-bottom: 15px; /* Spazio tra i messaggi */
    display: flex; /* Utilizza Flexbox per allineare gli elementi */
    align-items: flex-end; /* Allinea i messaggi al fondo del contenitore */
}

/* Messaggi in uscita */
.message-out {
    justify-content: flex-end; /* Allinea i messaggi in uscita a destra */
}

/* Corpo del messaggio in uscita */
.message-out .message-body {
    background-color: #dcf8c6; /* Colore di sfondo dei messaggi in uscita */
    color: #000; /* Colore del testo dei messaggi in uscita */
    border-radius: 10px; /* Angoli arrotondati dei messaggi */
    padding: 10px; /* Spazio interno dei messaggi */
    max-width: 70%; /* Larghezza massima dei messaggi */
    position: relative; /* Posiziona il timestamp in modo relativo */
    margin-left: 10px; /* Spazio tra il messaggio in uscita e il bordo sinistro */
    margin-right: 10px; /* Spazio tra il messaggio in uscita e il bordo destro */
}

/* Messaggi in entrata */
.message-in {
    justify-content: flex-start; /* Allinea i messaggi in entrata a sinistra */
}

/* Corpo del messaggio in entrata */
.message-in .message-body {
    background-color: #f1f0f0; /* Colore di sfondo dei messaggi in entrata */
    color: #000; /* Colore del testo dei messaggi in entrata */
    border-radius: 10px; /* Angoli arrotondati dei messaggi */
    padding: 10px; /* Spazio interno dei messaggi */
    max-width: 70%; /* Larghezza massima dei messaggi */
    position: relative; /* Posiziona il timestamp in modo relativo */
    margin-left: 10px; /* Spazio tra il messaggio in entrata e il bordo sinistro */
    margin-right: 10px; /* Spazio tra il messaggio in entrata e il bordo destro */
}

/* Corpo del messaggio */
.message-body {
    background: #ffffff; /* Colore di sfondo del corpo del messaggio */
    padding: 10px; /* Spazio interno del corpo del messaggio */
    border-radius: 10px; /* Angoli arrotondati del corpo del messaggio */
}

/* Timestamp */
.timestamp {
    display: block; /* Mostra il timestamp su una nuova riga */
    font-size: 0.75em; /* Dimensione del font del timestamp */
    color: #888; /* Colore del timestamp */
    margin-top: 5px; /* Spazio sopra il timestamp */
    text-align: right; /* Allinea il timestamp a destra */
}

/* Modulo di risposta */
.reply-form {
    width: 50%; /* Larghezza del modulo di risposta */
    background: #ffffff; /* Colore di sfondo del modulo */
    padding: 10px; /* Spazio interno del modulo */
    border-top: 1px solid #ddd; /* Bordo superiore del modulo */
    display: flex; /* Utilizza Flexbox per layout orizzontale */
    align-items: center; /* Allinea gli elementi al centro */
    background: #ffffff; /* Colore di sfondo del modulo */
    border-top: 1px solid #ddd; /* Bordo superiore del modulo */
    margin-left:500px;
}

/* Area di testo del modulo di risposta */
.reply-form textarea {
    flex: 1; /* Occupa tutto lo spazio disponibile */
    padding: 10px; /* Spazio interno dell'area di testo */
    border: 1px solid #ddd; /* Bordo dell'area di testo */
    border-radius: 5px; /* Angoli arrotondati dell'area di testo */
    resize: none; /* Disabilita il ridimensionamento dell'area di testo */
    margin-right: 10px; /* Spazio tra l'area di testo e il pulsante */
}

/* Pulsante di invio */
.reply-form button {
    padding: 10px 15px; /* Spazio interno del pulsante */
    border: none; /* Rimuove il bordo del pulsante */
    border-radius: 5px; /* Angoli arrotondati del pulsante */
    background: #0078ff; /* Colore di sfondo del pulsante */
    color: white; /* Colore del testo del pulsante */
    cursor: pointer; /* Cambia il cursore quando si passa sopra il pulsante */
}

/* Nuovi messaggi */
.new-message {
    background-color: #f7f7f7; /* Colore di sfondo dei nuovi messaggi */
    font-weight: bold; /* Testo in grassetto per i nuovi messaggi */
}
.hidden-column {
        display: none;
    }
/* Ingrandisce e separa i pulsanti "Precedente" e "Successivo" */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    font-size: 13px !important; /* Aumenta la dimensione del testo */
    padding: 10px 15px !important; /* Aggiunge spazio interno */
    margin: 0px 10px !important; /* Separa i pulsanti dai numeri */
    border-radius: 5px !important; /* Arrotonda i bordi */
    background-color: #007bff !important; /* Cambia il colore di sfondo */
    color: white !important; /* Cambia il colore del testo */
}

/* Ingrandisce i numeri di paginazione */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-size: 13px !important; /* Aumenta la dimensione del testo */
    padding: 8px 12px !important; /* Aggiunge spazio interno */
    border-radius: 5px !important; /* Arrotonda i bordi */
}

/* Rendi attivo il pulsante selezionato più visibile */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background-color: #28a745 !important; /* Verde per il numero attuale */
    color: white !important;
    font-weight: bold !important;
}

/* Cambia colore al passaggio del mouse */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background-color: #0056b3 !important; /* Blu più scuro */
    color: white !important;
}
.dataTables_wrapper .paginate_button {
    cursor: pointer !important;
    user-select: none !important;
}

div.dataTables_wrapper div.dataTables_paginate {
    padding: 10px !important;
}
.badge-esito {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 160px;         /* larghezza minima uniforme */
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    margin: 4px auto;
    text-align: center;
    color: white;
}
/* === TIPOLOGIA VENDITA=== */

.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content-op {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.close {
    float: right;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #000;
}

/* imei sezione – tutti uniformati in blu pastello */
/*.esito-imei-findomestic,
.esito-imei-compass,
.esito-imei-promo-device,
.esito-imei-var {
    background-color: #E6DED3;
    color: #36317a;
}


.esito-imei-ricarica          { background-color: #B2FFB2; color: #36317a; }
.esito-no-imei             { background-color: #D3E8C5; color: #36317a; }


.note-index                { background-color: #42a14a; color: #ffffff; padding: 6px 8px; border-radius: 15px;}
.esito-ko                  { background-color: #ffaba5; color: #36317a; }
.esito-assicurazione       { background-color:  #87b4d9; color: #36317a; }
.esito-cb {
    background-color: #dbad73;
    color: #36317a;
}

.esito-luce-gas            { background-color: #FFDB99; color: #36317a; }
.esito-fwa                 { background-color: #e6e4ff; color: #36317a; }  */       






/*.esito-sim {
    background-color: #b1aeae;
    color: #36317a;
}*/

                
/*.esito-sim     { background-color: #a874a8; color: #ffffff; }             */              
/*.esito-fisso       { background-color: #d4edda; color: #155724; }        */  

/* --- STILE COMUNE (shadow + padding) */
.esito-sim,
.esito-imei-findomestic,
.esito-imei-compass,
.esito-imei-promo-device,
.esito-imei-var,
.esito-imei-ricarica,
.esito-no-imei,
.esito-ko,
.esito-assicurazione,
.esito-cb,
.esito-luce-gas,
.esito-fwa,
.esito-fisso {
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: #36317a;
    box-shadow: 0 1px 6px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

/* Hover & Active */
.esito-sim:hover,
.esito-imei-findomestic:hover,
.esito-imei-compass:hover,
.esito-imei-promo-device:hover,
.esito-imei-var:hover,
.esito-imei-ricarica:hover,
.esito-no-imei:hover,
.esito-ko:hover,
.esito-assicurazione:hover,
.esito-cb:hover,
.esito-luce-gas:hover,
.esito-fwa:hover,
.esito-fisso:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    filter: brightness(1.03);
}

.esito-sim:active,
.esito-imei-findomestic:active,
.esito-imei-compass:active,
.esito-imei-promo-device:active,
.esito-imei-var:active,
.esito-imei-ricarica:active,
.esito-no-imei:active,
.esito-ko:active,
.esito-assicurazione:active,
.esito-cb:active,
.esito-luce-gas:active,
.esito-fwa:active,
.esito-fisso:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

/* --- SIM --- */
.esito-sim {
    background: linear-gradient(180deg, #CFF7F7 0%, #A6EDED 100%);
}

/* --- IMEI (famiglia) --- */
.esito-imei-findomestic,
.esito-imei-compass,
.esito-imei-promo-device,
.esito-imei-var {
    background: linear-gradient(180deg, #E6E6FF 0%, #C7C7FF 100%);
}

/* --- IMEI RICARICA --- */
.esito-imei-ricarica {
    background: linear-gradient(180deg, #DFF6E9 0%, #B8E7C9 100%);
}



/* --- NOTE INDEX --- */
.note-index {
    background: linear-gradient(180deg, #2F6B8A 0%, #1F4F6B 100%);
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 13px;
}

/* --- KO --- */
.esito-ko {
    background: linear-gradient(180deg, #FFD7D7 0%, #FFB0B0 100%);
}

/* --- ASSICURAZIONE --- */
.esito-assicurazione {
    background: linear-gradient(180deg, #D9E8FF 0%, #B9D3FF 100%);
}

/* --- CB (PESCA) --- */
.esito-cb {
    background: linear-gradient(180deg, #FFE9D8 0%, #FFC9A9 100%);
}

/* --- NO IMEI (VERDE SOFT) --- */
.esito-no-imei {
    background: linear-gradient(180deg, #E6F7E9 0%, #BFE8D2 100%);
}

/* --- LUCE & GAS (GIALLO ORO) --- */
.esito-luce-gas {
    background: linear-gradient(180deg, #FFF4D8 0%, #FFDAA8 100%);
}

/* --- FWA (LILLA) --- */
.esito-fwa {
    background: linear-gradient(180deg, #EAD9FF 0%, #C9B4FF 100%);
}

/*---FISSO--*/
.esito-fisso {
    background: linear-gradient(180deg, #D4EDDA 0%, #B7E3C6 100%);
    color: #36317a;
}

.bottone-ticket{
    background-color: green;
    color:white;
    border-radius:10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    width: 40px;
    height: 40px;
    color: white;
}
.bottone-ticket:hover{
    color: white !important;
     transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
    background-color: rgb(2, 83, 2);
}


/*******************************************************************************************************************************/

/* --- STILE COMUNE (shadow + padding) */
.esito-bo-op,
.esito-bo-danger,
.esito-bo-gestione,
.esito-bo-scartato,
.esito-bo-firmato,
.esito-vendita,
.esito-inlavorazione {
    border-radius: 12px;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: #36317a; /* testo uniforme */
    box-shadow: 0 1px 6px rgba(0,0,0,0.10);
    border: 1px solid rgba(0,0,0,0.08);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

/* Hover & Active */
.esito-bo-op:hover,
.esito-bo-op-sanata:hover,
.esito-bo-danger:hover,
.esito-bo-gestione:hover,
.esito-bo-scartato:hover,
.esito-bo-firmato:hover,
.esito-vendita:hover,
.esito-inlavorazione:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.12);
    filter: brightness(1.03);
}

.esito-bo-op:active,
.esito-bo-op-sanata:active,
.esito-bo-danger:active,
.esito-bo-gestione:active,
.esito-bo-scartato:active,
.esito-bo-firmato:active,
.esito-vendita:active,
.esito-inlavorazione:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}



/* Stati con gradient pastello e testi uniformi */
.esito-bo-vendita {
    background: linear-gradient(180deg, #DFF7E3 0%, #B7E3C6 100%);
    color: #1B3E2E;
}

.esito-bo-lavorazione {
    background: linear-gradient(180deg, #e6e8ff 0%, #9bbacf 100%);
    color: #36317a;
}

.esito-bo-op {
    background: linear-gradient(180deg, #E0F3FA 0%, #B7E3F0 100%);
    color: #1B3E4C;
}

.esito-bo-previsto {
    background: linear-gradient(180deg, #EAD9FF 0%, #C9B4FF 100%);
    color: #3E2F80;
}

.esito-bo-ok {
    background: linear-gradient(180deg, #DFF7E8 0%, #B7EED2 100%);
    color: #1B4D33;
}

.esito-bo-ko-doc,
.esito-bo-ko-temp,
.esito-bo-ko-def,
.esito-bo-ko {
    background: linear-gradient(180deg, #FFE2E2 0%, #FFBFC1 100%);
    color: #7B1C1C;
}



.esito-bo-sospeso {
    background: linear-gradient(180deg, #FFE8E0 0%, #FFD1B7 100%);
    color: #5C3E2B;
}

.esito-bo-op-sanata {
    /*background: linear-gradient(180deg, #D9E8FF 0%, #B7D4FF 100%);
    color: #1B3E7B;*/
    background: linear-gradient(180deg, #FFF4D9 0%, #FFE3B7 100%);
    color: #5C4200;
}

.esito-bo-danger {
    background: linear-gradient(180deg, #FFE2E2 0%, #FFBFC1 100%);
    color: #7B1C1C;
}

.esito-bo-op-da-sanare {
    background: linear-gradient(180deg, #f7b78a 0%, #ff6328 100%);
    color: #ffffff;
}

.esito-bo-op-nd {
    background: linear-gradient(180deg, #E2E2E2 0%, #CFCFCF 100%);
    color: #4A4A4A;
}




.esito-noncont     { background-color: red; }
.esito-trattativa  { background-color: #fbbc04; color: #000; }
.esito-ric         { background-color: #ffffaa; color: #000; }
.esito-nonlav      { background-color: red; }
.esito-inserito { background-color: #f2f2f2; color: #000; border: 1px solid #ccc; }
.esito-tim      { background-color: #0054a6; }
.esito-wind     { background-color: #ff6f00; }
.esito-soft     { background-color: #e0e0e0; color: #333; }
.esito-non-risponde       { background-color: #d0ebff; color: #004085; } 

/* === ESITI BO WIND CONSUMER === */
.esito-bo-da-esitare   { background-color: #f2f2f2; color: #000; border: 1px solid #ccc; }   
.esito-bo-annullato    { background-color: #e6e6e6; color: #333; }                          
.esito-bo-ok           { background-color: #66FF00; color: #000; }                       
.esito-bo-ko           { background-color: #DC143C; }                  
.esito-bo-emesso       { background-color: #d0ebff; color: #004085; }                     
.esito-bo-wait         { background-color: #ffe599; color: #664d00; }                     
.esito-bo-sospeso      { background-color: #f3f3f3; color: #333; }                           
.esito-bo-attivo       { background-color: #d4edda; color: #155724; }                    
.esito-bo-danger       { background-color: red; color: #fff; }                               
.esito-bo-gestione     { background-color: #dee2e6; color: #495057; }                     
.esito-bo-scartato     { background-color: #f8d7da; color: #721c24; }                       
.esito-bo-firmato      { background-color: #cfe2ff; color: #084298; }  

/* === ESITI BO TIM === */
.esito-bo-da-esitare     { background-color: #ffffff; color: #000; border: 1px solid #ccc; }
.esito-bo-ok             { background-color: #66FF00; color: #000; }
.esito-bo-ko             { background-color: #DC143C; color: white; }
.esito-bo-emesso         { background-color: #d0ebff; color: #004085; }
.esito-bo-recall         { background-color: #04dafb; color: #000; }
.esito-bo-delivery       { background-color: #e9ecef; color: #333; } /* neutro, colore chiaro */
.esito-bo-lavorato       { background-color: green; color: white; }
.esito-bo-annullato      { background-color: red; color: white; }
.esito-bo-scartato       { background-color: red; color: white; }
.esito-bo-clone          { background-color: green; color: white; }
.esito-bo-sospeso        { background-color: #f5df1b; color: #000; }
.esito-bo-ko-recall      { background-color: #DC143C; color: white; }

.badge-operatore {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    min-width: 180px;
    margin: 4px auto;
}

/* Colori personalizzati */
.operatore-doriana     { background-color: #ff00ff; color: white; }
.operatore-loredana    { background-color: #ffd700; color: #000; }
.operatore-stefania    { background-color: #D5A6BD; color: #000; }
.operatore-lorena      { background-color: #93C47D; color: #000; }
.operatore-graziella   { background-color: #ff8c00; color: white; }

/* Operatori neutri (bianco sporco) */
.operatore-neutro {
    background-color: #f2f2f2;
    color: #333;
    border: 1px solid #ccc;
}
#chat-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #25D366;
  color: white;
  padding: 12px 18px;
  border-radius: 50px;
  cursor: grab;
  z-index: 10000;
}
#chat-button-badge {
  background: red;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  margin-left: 5px;
  display: none;
}
#chat-popup {
  position: fixed;
  width: 320px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
  bottom: 70px;
  left: 20px;
}
#chat-popup-header {
  background: #25D366;
  color: white;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 15px;
  position: relative;
}
#chat-popup-header span[onclick] {
  font-size: 18px;
  margin-left: 10px;
  cursor: pointer;
  user-select: none;
}
#chat-user-list {
  max-height: 300px;
  overflow-y: auto;
}
.chat-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-user:hover {
  background-color: #f0f2f5;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  background-color: #e0e0e0;
  color: #333;
  border-radius: 50%;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  border: 2px solid #25D366;
}
.chat-user-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.chat-user-name {
  font-weight: 600;
  font-size: 15px;
  color: #222;
}
.chat-badge {
  background-color: red;
  color: white;
  font-size: 12px;
  padding: 3px 7px;
  border-radius: 20px;
  font-weight: bold;
}
#chat-messages {
  height: 250px;
  overflow-y: auto;
  padding: 10px;
}
#chat-input {
  display: flex;
  border-top: 1px solid #ccc;
}
#messaggio {
  flex: 1;
  padding: 10px;
  resize: none;
  border: none;
}
#chat-input button {
  background: #25D366;
  border: none;
  color: white;
  padding: 10px;
}
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
}

.footer-left {
  font-size: 12px;
}

.footer-right img {
  height: 100px;
}

.mess-ticket {
    padding: 5px 15px;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}

.row {
    .col-md-6 {
        .dati-anagrafici {
            display: flex;
            justify-content:space-evenly;
            height: 100%;
            margin-bottom: 0; 
        }
    }
}

.equal-height {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}


.row-info-vendita{
    div{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    
        .mess-ticket{
            width: 100%;
        }
    
    
    }
}
.col-data {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    .mess-ticket{
        width: 100%;
    }
}

#risoluzione_ticket{
    padding: 0px 15px;
}

.custom-upload {
    border: 2px dashed #28a745;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    background-color: #f8fdf8;
    transition: border 0.3s;
    cursor: pointer;
    width: 100%;
}

.custom-upload:hover {
    border-color: #1e7e34;
    background-color: #eaffea;
}

.custom-upload input[type="file"] {
    display: none;
}

.custom-upload i {
    font-size: 32px;
    color: #28a745;
    margin-bottom: 10px;
}

.custom-upload-title {
    font-size: 16px;
    font-weight: 600;
    color: #155724;
    margin-bottom: 5px;
}
.bg-gradient-success {
    background: linear-gradient(90deg, #28a745, #218838);
}
/* MODAL MODERNA - Override compatibile AdminLTE e Bootstrap 3 */
.modal-dialog {
  max-width: 720px !important;
  margin: 2rem auto !important;
}



.modal-header {
  background: linear-gradient(to right, #17a2b8, #20c997) !important;
  border: none !important;
  border-top-left-radius: 1.25rem !important;
  border-top-right-radius: 1.25rem !important;
  padding: 1.2rem 1.5rem !important;
  justify-content: center !important;
}

.modal-title {
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 2rem !important;
  margin: 0 auto;
  text-align: center;
}

.modal-body {
  padding: 2rem !important;
  font-size: 1.1rem !important;
  background-color: #FFFFFF !important;
  

}

.modal-message {
  font-weight: 600 !important;
  font-size: 1.2rem !important;
  color: #343a40 !important;
  margin: 0 !important;
  text-align: center !important;
}

.modal-footer {
  padding: 1rem 2rem !important;
  border: none !important;
  justify-content: center !important;
  background-color: #f8f9fa !important;
  border-bottom-left-radius: 1.25rem !important;
  border-bottom-right-radius: 1.25rem !important;
  display: flex !important;
  gap: 1rem;
}

.modal-footer .btn {
 
  padding: 0.6rem 2rem !important;
  border-radius: 0.6rem !important;
  min-width: 100px !important;
}

/* Stile moderno per input e select */
.modal-body .form-control,
.modal-body select,
.modal-body input[type="text"] {
  font-size: 1.4rem !important;
  border-radius: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  border: 1px solid #ced4da !important;
  box-shadow: none !important;
}

/* Label moderne */
.modal-body label {
  font-size: 1.2rem !important;
  color: #343a40 !important;
  margin-bottom: 0.3rem !important;
}

/* Pulsante chiusura */
.modal-header .close {
  color: #fff !important;
  font-size: 1.4rem !important;
  opacity: 1 !important;
}
.modal-body .btn-primary {
  font-size: 1.3rem !important;
  border-radius: 0.6rem !important;
  font-weight: 600 !important;
  display: inline-block;
}
/* Progress bar */
.progress {
  border-radius: 30px !important;
  overflow: hidden !important;
  height: 25px !important;
}

.progress-bar {
  font-weight: bold !important;
  font-size: 1rem !important;
}

/* Bottoni moderni affiancati nella modale */
.modal-footer .btn-group {
  display: flex;
  gap: 1rem;
}

/* Stile uniforme per i bottoni */
.btn-opzione {
  min-width: 100px;
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.6rem;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Pulsante NO */
.btn-outline-secondary {
  background-color: #f8f9fa;
  color: #6c757d;
  border: 1px solid #ced4da;
}

/* Hover effetto */
.btn-outline-secondary:hover {
  background-color: #dee2e6;
  color: #495057;
}

/* Pulsante SI (verde acceso) */
.btn-success {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
  border-color: #1e7e34;
}




/***************************/
/* ============================================

============================================ */
@media screen and (max-width: 812px) {

  .navbar-menu {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 0px !important;
      padding: 10px;

  }

  /* Contenitore loghi */
/* Contenitore loghi */
.logo {
    padding-right: 30px;
    display: flex;
    align-items: center;
}

/* Immagini dei loghi */
.logo img {
    height: 45px;              /* Altezza uniforme */
    width: auto;               /* Mantiene le proporzioni */
    max-width: 100%;           /* Non esce dal contenitore */
    display: block;
    object-fit: contain;       /* Garantisce che non venga stretchato */
}


  .content-header {
      display: flex;
      flex-direction: column; /* Dispone gli elementi in colonna */
      align-items: center;    /* Allinea gli elementi al centro */
      width: 100%;
      box-sizing: border-box;
  }

  .gruppo-4-bottoni {
     
      gap: 10px;
      padding: 10px;
      font-size: 15px;
  }

  .button-container {
      width: 100%;
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px; /* Distanza tra i pulsanti e il gruppo totali */
  }

.totale-group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    flex-wrap: nowrap;
    overflow-x: auto; /* sicurezza su schermi piccoli */
}

.totale-trattative-box{
    background-color: #fbbc04;
    color: black;
    padding: 8px 10px;
    font-size: 14px;
    text-align: center;
    border-radius: 20px;
    font-weight: bold;

}


  .totale-trattative-box h4,
  .totale-trattative-box p{
      font-size: 14px;
      padding: 5px 0;
  }


  .totale-trattative-box:hover,
  .totale-richiami-box:hover {
      background-color: rgb(250, 205, 69);
      transform: translateY(-2px);
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
      transition: all 0.2s ease-in-out;
  }

  .wrapper,
  .content-wrapper,
  .page-container {
      min-height: 100vh;
      overflow-x: hidden;
      overflow-y: auto;
  }

  .table-responsive {
      width: auto;
      overflow-x: auto;
  }

  table.dataTable {
      width: 100%;
  }

  .btn-logout {
      background-color: #ff5c6c;
      color: #ffffff;
      border-radius: 5px;
      margin-top: 10px;
      margin-right: 10px;
      margin-left: 20px;
      padding: 5px 10px;
      box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
      border: none;
  }

  .btn-logout:hover {
      background-color: #d73925;
  }

  #example,
  #example2,
  #example3,
  #example4 {
      width: 100%;
      font-size: 13px;
  }

  .main-footer {
      margin-left: 0;
      z-index: 9999999;
      position: relative ;
  }

 

  .dt-button {
      background-color: #00c0ef;
      color: white;
      border-radius: 5px;
      padding: 5px 12px;
      border: none;
      margin-left: 10px;
      margin-bottom: 15px;
      box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
  }

  .btn-excel {
      padding: 5px 12px;
      margin-right: 10px;
      background-color: rgba(31, 178, 204, 0.66);
      color: rgba(0, 0, 0, 0.82) ;
      border-radius: 5px;
      border: none;
      outline: none ;
      appearance: none;
      -webkit-appearance: none ;
      -moz-appearance: none ;
      font-weight: bold ;
      box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4) ;
  }

  .btn-nuova-leads,
  .btn-elimina-leads,
  .btn-ko,
  .btn-assegna-operatore,
  .btn-dashboard-messaggi {
      float: left ;
      margin-right: 10px ;
      padding: 5px 12px ;
      box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4) ;
      border-radius: 20px ;
      border: none ;
      color: white ;
  }

  .btn-nuova-leads {
      background-color: green ;
  }

  .btn-elimina-leads {
      background-color: red ;
  }

  .btn-ko {
      background-color: rgb(156, 55, 240);
  }

  .btn-assegna-operatore {
      background-color: orange;
  }

  .btn-dashboard-messaggi {
      background-color: #252850;
  }

  .btn-nuova-leads:hover {
      background-color: #00aa00 ;
      transform: translateY(-2px);
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5) ;
  }

  .btn-elimina-leads:hover {
      background-color: #cc0000 ;
      transform: translateY(-2px) ;
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5) ;
  }

  .btn-ko:hover {
      background-color: #99009e ;
      transform: translateY(-2px) ;
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5) ;
  }

  .btn-assegna-operatore:hover {
      background-color: #ff8000 ;
      transform: translateY(-2px) ;
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5) ;
  }

  .btn-dashboard-messaggi:hover {
      background-color: #1e2245;
      transform: translateY(-2px) ;
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5) ;
  }

  .btn-primary,
  .btn-success,
  .btn-warning,
  .btn-danger,
  .btn-lista {
      border-radius: 8px;
      transition: all 0.2s ease-in-out ;
  }

  .btn-success {
      background-color: green;
      border-color: green ;
  }

  .btn-success:hover {
      background-color: #00aa00;
      transform: translateY(-2px) ;
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5) ;
  }

  .btn-warning {
      background-color: orange ;
      border-color: orange ;
  }

  .btn-warning:hover {
      background-color: #ff8000 ;
      transform: translateY(-2px) ;
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5) ;
  }

  .btn-danger {
      background-color: red ;
      border-color: red ;
  }

  .btn-lista{
    background-color:#4da3ff;
    border-color:#4da3ff;
  }

  .btn-lista:hover{
     background-color:#509ae9;
      transform: translateY(-2px) ;
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5) ;
  }

  .btn-danger:hover {
      background-color: #cc0000 ;
      transform: translateY(-2px) ;
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5) ;
  }

  .btn-primary {
      background-color: #2172c9 ;
      border-color: #2172c9 ;
  }

  .btn-primary:hover {
      background-color: #2172c9 ;
      transform: translateY(-2px) ;
      box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5) ;
  }

  .btn-modifica {
      background-color: green ;
      color: #ffffff ;
      border-radius: 5px ;
      padding: 10px 25px ;
      box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4) ;
      border: white ;
  }

  .btn-modifica:hover {
      background-color: white ;
      color: green ;
      border: 1px solid green ;
  }

  .btn-invia-messaggio-leads {
      float: right ;
  }

  .nav-item {
      margin-left: 1000px ;
  }
}




/* ============================================
  
============================================ */
@media screen and (min-width: 813px) and (max-width: 1024px) {

  .navbar-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 10px;
  }

  .content-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .gruppo-4-bottoni {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
    font-size: 16px;
  }

  .button-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
  }

  .totale-group {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
  }



  .totale-trattative-box h4,
  .totale-trattative-box p,
  .totale-richiami-box h4,
  .totale-richiami-box p {
    font-size: 14px;
    padding: 5px 0;
  }

  .totale-richiami-box a {
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
  }

  .totale-trattative-box:hover,
  .totale-richiami-box:hover {
    background-color: rgb(250, 205, 69);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease-in-out;
  }

  .wrapper,
  .content-wrapper,
  .page-container {
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .table-responsive {
    width: auto;
    overflow-x: auto;
  }

  table.dataTable {
    width: 100%;
  }

  #example,
  #example2,
  #example3,
  #example4 {
    width: 100%;
    font-size: 13px;
  }

  .main-footer {
    margin-left: 0;
    z-index: 9999999;
    position: relative;
  }

  .btn-logout {
    background-color: #ff5c6c;
    color: #ffffff;
    border-radius: 5px;
    margin-top: 10px;
    margin-right: 10px;
    margin-left: 20px;
    padding: 5px 10px;
    box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
    border: none;
  }

  .btn-logout:hover {
    background-color: #d73925;
  }

  .nascosta {
    display: none;
    border: 1px dashed #fff;
    background-color: #5c3d3a;
    color: #FFF;
    padding: 0 10px;
    margin-left: 20px;
  }

  input[type="file"] {
    display: none;
  }

  .modal-content {
    margin-top: 20%;
  }

  div.dataTables_wrapper div.dataTables_filter {
    display: none;
  }

  div.dt-buttons {
    float: right;
  }

  .dt-button {
    background-color: #00c0ef;
    color: white;
    border-radius: 5px;
    padding: 5px 12px;
    border: none;
    margin-left: 10px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
  }

  .btn-excel {
    padding: 5px 12px;
    margin-right: 10px;
    background-color: rgba(31, 178, 204, 0.66);
    color: rgba(0, 0, 0, 0.82);
    border-radius: 5px;
    border: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    font-weight: bold;
    box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
  }

  .btn-nuova-leads,
  .btn-elimina-leads,
  .btn-ko,
  .btn-assegna-operatore,
  .btn-dashboard-messaggi {
    float: left;
    margin-right: 10px;
    padding: 5px 12px;
    box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
    border-radius: 20px;
    border: none;
    color: white;
  }

  .btn-nuova-leads {
    background-color: green;
  }

  .btn-elimina-leads {
    background-color: red;
  }

  .btn-ko {
    background-color: rgb(156, 55, 240);
  }

  .btn-assegna-operatore {
    background-color: orange;
  }

  .btn-dashboard-messaggi {
    background-color: #252850;
  }

  .btn-nuova-leads:hover {
    background-color: #00aa00;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
  }

  .btn-elimina-leads:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
  }

  .btn-ko:hover {
    background-color: #99009e;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
  }

  .btn-assegna-operatore:hover {
    background-color: #ff8000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
  }

  .btn-dashboard-messaggi:hover {
    background-color: #1e2245;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
  }

  .btn-primary,
  .btn-success,
  .btn-warning,
  .btn-danger,
  .btn-lista {
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
  }

  .btn-success {
    background-color: green;
    border-color: green;
  }

  .btn-success:hover {
    background-color: #00aa00;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
  }

  .btn-warning {
    background-color: orange;
    border-color: orange;
  }

  .btn-warning:hover {
    background-color: #ff8000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
  }

  .btn-danger {
    background-color: red;
    border-color: red;
  }

  .btn-danger:hover {
    background-color: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
  }

  .btn-primary {
    background-color: #2172c9;
    border-color: #2172c9;
  }

  .btn-primary:hover {
    background-color: #2172c9;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px -2px rgba(0, 0, 0, 0.5);
  }

  .btn-modifica {
    background-color: green;
    color: #ffffff;
    border-radius: 5px;
    padding: 10px 25px;
    box-shadow: 0 3px 15px -2px rgba(37, 45, 51, 0.4);
    border: white;
  }

  .btn-modifica:hover {
    background-color: white;
    color: green;
    border: 1px solid green;
  }

  .btn-invia-messaggio-leads {
    float: right;
  }

  .nav-item {
    margin-left: 1000px;
  }
}






.titolo-cassa {
    background:linear-gradient(135deg, #1dbe9f, #17a3b7);
    color:white;
    padding:10px;
    border-radius:6px;
    text-align:center;
    margin-bottom:15px;
    font-weight:bold;
}

.btn-ricerca {
    margin-top:15px;
    padding:8px 16px;
    background:#1F6FEB;
    color:white;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-weight:bold;
}

.btn-chiudi {
    margin-top:15px;
    padding:8px 16px;
    background:#FF4500;
    color:white;
    border:none;
    border-radius:6px;
    cursor:pointer;
    float:right;
    font-weight:bold;
}


/* Contenitore dei risultati */
#risultati_movimenti {
    margin-top: 20px;
    max-height: 400px;      /* Altezza massima */
    overflow-y: auto;       /* Scroll verticale se tanti risultati */
    border: 1px solid #ccc;
    padding: 10px;
    background-color: #f9f9f9;
    border:none;
}

/* Tabella interna */
#risultati_movimenti table {
    width: 100%;
    border-collapse: collapse;
}

#risultati_movimenti th,
#risultati_movimenti td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}

#risultati_movimenti th {
    background-color: #e9ecef;
    font-weight: bold;
    position: sticky; /* Mantiene le intestazioni visibili durante lo scroll */
    top: 0;
}

/* Riga al passaggio del mouse */
#risultati_movimenti tr:hover {
    background-color: #f1f1f1;
}




/* Animazione */
@keyframes fadeInMG {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* Selezione negozio */
.gare-select {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #d1d8e0;
    margin-bottom: 25px;
    background-color: #f9f9f9;
}

/* Contenitore generale delle righe */
.chiusura-row-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Tipologia + riga input */
.chiusura-row-tipo {
    padding: 15px 20px;
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Label principale */
.chiusura-row-tipo label {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
    display: block;
    color: #333;
}

/* Riga input */
.chiusura-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Input numerici */
.chiusura-input {
    width: 130px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    transition: all 0.2s ease;
}

.chiusura-input:focus {
    border-color: #FFA500;
    box-shadow: 0 0 6px rgba(255,165,0,0.3);
    outline: none;
}

/* Totale Liquidazione più largo */
.chiusura-row-tipo:last-child .chiusura-input {
    width: 240px;
    font-weight: bold;
}

/* Pulsanti Salva/Chiudi */
.gare-btn-salva,
.gare-btn-chiudi {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-left: 10px;
}

.gare-btn-salva {
    background: linear-gradient(45deg, #FFA500, #FF7F50);
    color: #fff;
}

.gare-btn-salva:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.gare-btn-chiudi {
    background-color: #FF4500;
    color: #fff;
}

.gare-btn-chiudi:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}



.euro-box {
    position: relative;
    display: inline-block;
}

.euro-box .euro {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: bold;
    color: #333;
    pointer-events: none;
}

.euro-box input {
    padding-right: 25px !important;
}




/* =========================================================
   IMEI HEADER (AdminLTE override) — titolo a sinistra, bottoni a destra
   Non cambia classi o id esistenti
   ========================================================= */

/* 1) Header come "padre" flex */
.box > .box-header.with-border.imei-header-parent{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;

  /* AdminLTE + tua .box padding: evita che si spezzi/si centri */
  width: 100%;
  padding: 10px 15px !important;   /* coerente con header */
  margin: 0 !important;

  /* linea sotto tipo AdminLTE */
  border-bottom: 1px solid rgba(0,0,0,.08) !important;

  /* niente centrature strane */
  text-align: left !important;

  /* se qualche figlio sfora */
  gap: 12px;
}

/* 2) Figlio sinistra: titolo (disattiva float AdminLTE) */
.box > .box-header.with-border.imei-header-parent .box-title.imei-title{
  float: none !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;

  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap; /* resta su una riga */
}

/* 3) Figlio destra: toolbar bottoni */
.box > .box-header.with-border.imei-header-parent .imei-toolbar.dt-buttons{
  float: none !important; /* in caso AdminLTE */
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;

  gap: 10px;
  margin-left: auto;      /* spinge a destra */
  white-space: nowrap;    /* non va a capo */
}

/* =========================================================
   BOTTONI — mantieni forma (non tocchiamo le tue classi)
   palette + hover per le classi hover-*
   ========================================================= */

/* Base coerente per i 4 bottoni nel solo header IMEI */
.box > .box-header.with-border.imei-header-parent .imei-toolbar .dt-button{
  border: none !important;
  outline: none;
  cursor: pointer;

  /* forma "pill/rounded" come screenshot */
  width: 42px;
  height: 42px;
  border-radius: 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

/* Icona bianca */
.box > .box-header.with-border.imei-header-parent .imei-toolbar .dt-button i{
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

/* Palette (solo tramite le tue classi hover-*) */
.box > .box-header.with-border.imei-header-parent .hover-vendita{
  background: linear-gradient(135deg,#2563eb,#1d4ed8) !important;
}
.box > .box-header.with-border.imei-header-parent .hover-cerca{
  background: linear-gradient(135deg,#16a34a,#15803d) !important;
}
.box > .box-header.with-border.imei-header-parent .hover-magazzino{
  background: linear-gradient(135deg,#fbbf24,#f59e0b) !important;

}
.box > .box-header.with-border.imei-header-parent .hover-pda{
  background: linear-gradient(135deg,#f97316,#ea580c) !important;
}

/* Hover (classe specifica richiesta: hover-*) */
.box > .box-header.with-border.imei-header-parent .hover-vendita:hover,
.box > .box-header.with-border.imei-header-parent .hover-cerca:hover,
.box > .box-header.with-border.imei-header-parent .hover-magazzino:hover,
.box > .box-header.with-border.imei-header-parent .hover-pda:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.18);
  filter: brightness(1.06);
}

/* Active */
.box > .box-header.with-border.imei-header-parent .hover-vendita:active,
.box > .box-header.with-border.imei-header-parent .hover-cerca:active,
.box > .box-header.with-border.imei-header-parent .hover-magazzino:active,
.box > .box-header.with-border.imei-header-parent .hover-pda:active{
  transform: translateY(0) scale(.98);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}

/* Focus accessibile */
.box > .box-header.with-border.imei-header-parent .imei-toolbar .dt-button:focus{
  box-shadow: 0 0 0 3px rgba(59,130,246,.25), 0 8px 18px rgba(0,0,0,.12);
}

/* =========================================================
   Responsive: su mobile titolo sopra e bottoni sotto (se vuoi)
   ========================================================= */
@media (max-width: 768px){
  .box > .box-header.with-border.imei-header-parent{
    flex-wrap: wrap;
  }
  .box > .box-header.with-border.imei-header-parent .box-title.imei-title{
    width: 100%;
    white-space: normal;
  }
  .box > .box-header.with-border.imei-header-parent .imei-toolbar.dt-buttons{
    width: 100%;
    justify-content: flex-start !important;
    margin-left: 0;
  }
}


.doc-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}


.title{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}