
/* override custom dei tags css */

/*  GESTIONE FONT

	Per il font base, edit, label e bottoni uso una dimensione fissa in base al dispositivo dove gira, solitamente:
		14 su PC o tablet superiori a 576px
		20 su smartphones piccoli di schermo <= 576px	
	I taggatori "fs-11", "fs-14", ecc. li uso per aumentare o diminuire il testo tramite la proprietà ElementClassName
	per es. impostandola a "text-danger fs-11"

*/

/* Imposto un font di base per l'intera applicazione */

body {
    /* font stack : il browser li prova nell'ordine indicato e utilizza il primo disponibile sul dispositivo */
	font-family: "Segoe UI", Verdana, Arial, sans-serif;
    font-size: 16px; 
}

@media (max-width: 576px) {   /* Più grande su smartphone */
    body {
        font-size: 20px;
    }
}

/* --- Classi di dimensione esatta in pixel --- */

.fs-11 { font-size: 11px !important; }
.fs-12 { font-size: 12px !important; }
.fs-14 { font-size: 14px !important; }
.fs-16 { font-size: 16px !important; }
.fs-18 { font-size: 18px !important; }
.fs-20 { font-size: 20px !important; }
.fs-22 { font-size: 22px !important; }

/* Eventuale override per smartphone se vuoi ingrandirli in blocco */
@media (max-width: 576px) {
    .fs-11 { font-size: 14px !important; }  /* 11,12,14 li lascio a 14 altrim si vedono troppo piccoli */
    .fs-12 { font-size: 14px !important; }
    .fs-14 { font-size: 14px !important; }
	.fs-16 { font-size: 16px !important; }
	.fs-18 { font-size: 18px !important; }
	.fs-20 { font-size: 20px !important; }
	.fs-22 { font-size: 22px !important; }
}

/* Campi di input, tipo TWebEdit */

.form-control {
    font-size: 16px; 
}

@media (max-width: 576px) {   /* Più grande su smartphone */
    .form-control {
        font-size: 20px; 
    }
}

/* Formattazioni sul bottone generico */
.btn{
  white-space:normal;
  word-wrap: break-word;
  font-size: 16px; /* deve essere uguale a quello del body */
}

/* Formattazione Caption e img sui bottoni di tipo TWebBitBtn  
   Con questa classe il Layout:blGlyphTop o Alignment del componente
   vengono sovrascritti, quindi usarla dove necessario  
   NB: la prop "flex !important;" mi inibisce il Visible a livello delphi
	   allora con [style*="display: none"] devo dire che se è Visible = True 
	   ('*=' diverso) applicami la formattazione
*/

button.bttn:not([style*="display: none"]) {
 	font-size: 16px;  /* deve essere uguale a quello del body */
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 1px;
}

button.bttn > img {
    flex-shrink: 0;
	padding-left: 5px; /* regola la vicinanza dell'img al bordo sx del tasto */
}

button.bttn > span {
    flex: 1;
    min-width: 0;
    line-height: 18px !important;
    white-space: normal;
    text-align: left;
    overflow-wrap: break-word;
}

@media screen and (max-width: 576px) {
    button.bttn {
        font-size: 20px !important;   /* deve essere uguale a quello del body */
    }
    .btn {
        font-size: 20px; 
    }	
}

/* 2. Mantieni la tua classe trasparente */
.transparent-form {
  background-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Il browser intercetta automaticamente qualsiasi finestra di dialogo o popup generato da WebMessageDlg 
   (o componenti simili di Bootstrap/TMS) e lo centra da solo sullo schermo, senza scrivere 
   codice o aggiungere classi ogni volta sui singoli bottoni o finestre.
*/


/* ==========================================
   POSIZIONAMENTO GENERALE DEI MODAL DIALOG
   ========================================== */

.modal-dialog, .web-dialog, .swal2-popup {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
    width: 99% !important;
    max-width: 500px !important;
}


/* ==========================================
   FORMATTAZIONE GENERALE DEI PULSANTI NEI MODAL DIALOG
   ========================================== */

.modal-dialog .modal-footer,
.web-dialog .modal-footer,
.swal2-popup .swal2-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.modal-dialog .modal-footer button,
.web-dialog .modal-footer button,
.swal2-popup .swal2-actions button {
    width: 240px !important;
    min-width: 240px !important;
    height: 54px !important;
    min-height: 54px !important;
    padding: 0 12px !important;
    white-space: nowrap !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}


.nav {
	font-family: Verdana;
	color: blue;
	font-size:22px;
}

.nav .nav-second-level {
	font-family: Verdana;
	color: blue;
	font-size:16px;
}

.dataTables_paginate .paging_simple_numbers {
	font-family: Verdana;
	color: black;
	font-size:16px;
}

.dataTables_info {
	font-family: Verdana;
	color: black;
	font-size:14px;
}

.dataTables_length {
	font-family: Verdana;
	color: black;
	font-size:14px;
}

.dataTables_filter {
	font-family: Verdana;
	color: black;
	font-size:14px;
	width: 50%;
}
