
:root {
    /* Integriamo le variabili globali del tuo progetto */
    --primary-dark: #45322e;
    --accent: #d97706;
    --border-color: #e7e5e4;
    --sidebar-bg: #fafaf9;
    --error-red: #dc2626;
    --transition-speed: 0.3s;
    --input-height: 38px;
}

/* ************************************************* */
/* CONTENITORI (Layout)                             */
/* ************************************************* */

/* Classi di larghezza (unificate) */
.Ec_XS { width: 50px; }
.Ec_S  { width: 100px; }    /* numero riga, aliquota */  
.Ec_N  { width: 200px; }    /* importi - (data / time /check preimpostate nelle funzioni) */
.Ec_M  { width: 250px; }
.Ec_D  { width: 300px; }
.Ec_LS { width: 400px; }    /* Gruppo IVA Nazione - Codice*/
.Ec_L  { width: 600px; }    /* Codice IVA */
.Ec_XA { width: 700px; }
.Ec_XL { width: 1200px; }   

.Ec_XS, .Ec_S, .Ec_LS, .Ec_N, .Ec_M, .Ec_D, .Ec_L,  .Ec_XA, .Ec_XL {
    display: flex;
    flex-direction: column;
    padding: 0 8px;
    box-sizing: border-box;

}

/* Allineamenti */
.EsL { float: left; }
.EnL { clear: both; }
.EtR { text-align: right; }

/* ************************************************* */
/* HEAD (Etichetta/Label)                           */
/* ************************************************* */

.Ele_H {
    font-size: 13px;
    font-weight: 600;
    color: #64748b; /* Grigio ferro piu moderno */
    margin-bottom: 4px;
    padding-left: 2px;
    letter-spacing: 0.3px;
	
	/* queste 3 regole servono per help */
	display: flex;             /* Attiva Flexbox */
    justify-content: space-between; /* Spinge il testo a sinistra e l'icona a destra */
    align-items: center;
    
}

.Ele_H:hover {
    cursor: default;
    
}

/* Stile dell'icona punto interrogativo */
.Ele_Info {
  
    background-color: #e2e8f0; /* Grigio chiaro circolare */
    color: #64748b;
    width: 16px;
    height: 16px;
    border-radius: 50%;        /* Rende l'elemento un cerchio */
    font-size: 11px;
    display: flex;
    align-items: center;       /* Centra il "?" orizzontalmente */
    justify-content: center;   /* Centra il "?" verticalmente */
   
}

.Ele_Info:hover {
    background-color: var(--accent); /* Cambia colore al passaggio del mouse */
    color: white;
}


/* ************************************************* */
/* BODY (Il campo di input/select)                  */
/* ************************************************* */

.Ele_B {
    position: relative;
}

/* Stile base per Input e Select */
.Ele_Html {
    width: 100%;
    height: var(--input-height);
    font-family: inherit;
    font-size: 13px;
    color: var(--primary-dark);
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 6px; /* Arrotondamento leggero e moderno */
    padding: 0 12px;
    outline: none;
    transition: all var(--transition-speed) ease;
    box-sizing: border-box;
}

/* Hover: scurisce leggermente il bordo */
.Ele_Html:hover {
    border-color: #d1d5db;
}

/* Focus: Bordo ambra sottile (coerente con il progetto) */
.Ele_Html:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.1); /* Glow leggerissimo ambra */
    background-color: #fff;
}

/* Stato Disabilitato */
.Ele_Html:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: var(--border-color);
}



/* Specifiche per Select */
select.Ele_Html {
    
    appearance: none; /* Rimuove freccia default per pulizia */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 35px;
}

/* ************************************************* */
/* FOOT (Messaggi di errore)                        */
/* ************************************************* */

.Ele_F {
    min-height: 18px; /* Evita salti di layout quando appare l'errore */
    padding-top: 2px;
}

.Ele_Msg {
    color: var(--error-red);
    font-size: 11px;
    font-weight: 500;
    display: block;
}

/* ************************************************* */
/* ELEMENTI SPECIALI (Radio, Check, Time)           */
/* ************************************************* */

/* Contenitore per Radio/Check/Time con bordo */
.Ele_B_Opt_S, .Ele_B_Opt_N, .Ele_B_Opt_M, .Ele_B_Time {
    height: var(--input-height);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 9px;
    background-color: white;
}

.Ele_HtmlRadio {
    accent-color: var(--accent); /* Coerenza con i radio della tabella */
    margin-right: 8px;
}

.Ele_HtmlLabelRadio {
    font-size: 13px;
    color: var(--primary-dark);
    margin-right: 15px;
    cursor: pointer;
}


