/* FABIO 28/11/2026 grafica tf condivisa dalle pagine del CRM rifatte: elenchi (tfl-*) e veste delle pagine con schede (tfp-*).
   Si collega dalle singole pagine; tutte le regole sono sotto .tfl o .tfp e non toccano il resto. */
/* --- elenchi con ricerca (classi tfl-*), come Risorse e Discenti --- */
#bubble_tooltip { pointer-events:none; }
.tfl { font-family:Inter,"Segoe UI",Roboto,sans-serif; color:#1b2733; text-align:left; width:max(860px, calc(100vw - 80px)); max-width:1700px; box-sizing:border-box; contain:inline-size; display:flex; flex-direction:column; gap:16px; padding:4px 0 20px; clear:both; }
.tfl * { box-sizing:border-box; }
.tfl a { color:#003366; }
.tfl-top { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.tfl-h1 { margin:0; font-size:24px; color:#003366; font-weight:700; }
.tfl-pill { font-size:13px; font-weight:600; color:#4a5866; background:#fff; border:1px solid #dbe3ea; border-radius:12px; padding:3px 10px; }
.tfl-pill:empty { display:none; }
.tfl-flex { flex:1; }
.tfl-nota { font-size:12px; color:#6b7785; }
.tfl-card { background:#fff !important; border:1px solid #dbe3ea; border-radius:10px; padding:16px 18px; display:flex; flex-direction:column; gap:14px; min-width:0; }
.tfl-head { display:flex; align-items:center; gap:10px; }
.tfl-head h2 { margin:0; font-size:17px; color:#003366; font-weight:700; }
.tfl-num { width:28px; height:28px; border-radius:50%; background:#003366; color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex:0 0 28px; }
.tfl-lab { display:block; font-size:12px; font-weight:600; color:#4a5866; margin-bottom:4px; text-transform:uppercase; letter-spacing:.03em; }
.tfl input[type=text], .tfl input[type=date], .tfl select { font:inherit; font-size:14px !important; color:#1b2733; border:1px solid #c5d0db; border-radius:6px; padding:7px 10px; background-color:#fff; height:38px; max-width:100%; margin:0; }
.tfl select[multiple], .tfl select[size] { height:auto; }
/* campi di testo */
.tfl-campi { display:grid; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); gap:12px; align-items:end; }
.tfl-campi .tfl-largo { grid-column:span 2; }
.tfl-campi input[type=text] { width:100% !important; }
/* filtri a elenco: tendina + Aggiungi, sotto le voci scelte */
.tfl-filtri { display:grid; grid-template-columns:repeat(auto-fill, minmax(260px, 1fr)); gap:14px; }
.tfl-filtro { background:#f4f8fc; border:1px solid #dbe3ea; border-radius:8px; padding:10px 12px; display:flex; flex-direction:column; gap:6px; min-width:0; }
.tfl-riga { display:flex; gap:6px; align-items:center; }
.tfl-riga select { flex:1; min-width:0; width:auto !important; }
.tfl a.tfl-agg { flex:0 0 auto; background:#fff; border:1px solid #b9cde2; border-radius:6px; padding:7px 10px; font-weight:600; font-size:13px; text-decoration:none; white-space:nowrap; }
.tfl a.tfl-agg:hover { background:#e8f0f8; }
.tfl-scelti-lab { font-size:11px; color:#6b7785; }
.tfl-filtro select[multiple], .tfl-filtro select[size] { width:100% !important; min-height:64px; padding:4px; font-size:13px !important; background:#fff; }
.tfl-privacy { background:#f4f8fc; border:1px solid #dbe3ea; border-radius:8px; padding:10px 12px; display:flex; flex-direction:column; gap:6px; }
.tfl-privacy table td { padding:2px 14px 2px 0; font-size:13px; }
.tfl-privacy label, .tfl-check label { font-size:13px !important; margin-left:4px; color:#1b2733; display:inline; font-weight:500; }
.tfl-privacy input[type=checkbox], .tfl-check input[type=checkbox] { width:auto; margin:0; vertical-align:-2px; }
.tfl-check { font-size:13px !important; }
/* barra azioni della ricerca */
.tfl-azioni { display:flex; flex-wrap:wrap; gap:10px; align-items:center; border-top:1px solid #eef2f6; padding-top:12px; }
.tfl input[type=submit], .tfl input[type=button], .tfl a.tfl-btn { background:#003366; color:#fff !important; border:0; border-radius:6px; padding:9px 18px; font-weight:600; font-size:14px !important; cursor:pointer; width:auto !important; text-decoration:none; display:inline-block; }
.tfl input[type=submit]:hover, .tfl input[type=button]:hover { background:#001f3f; }
.tfl input[type=submit][disabled], .tfl input[type=button][disabled] { background:#aab6c2; cursor:default; }
.tfl input.tfl-btn-sec, .tfl a.tfl-btn-sec { background:#fff; color:#003366 !important; border:1px solid #b9cde2; border-radius:6px; padding:8px 14px; font-weight:600; font-size:14px !important; text-decoration:none; display:inline-block; cursor:pointer; }
.tfl input.tfl-btn-sec:hover, .tfl a.tfl-btn-sec:hover { background:#e8f0f8; }
.tfl a.tfl-link { font-size:13px; font-weight:600; text-decoration:none; }
.tfl a.tfl-link:hover { text-decoration:underline; }
.tfl-stato { font-size:13px; font-weight:600; color:#003366; }
/* schede elenco / grafica */
.tfl-vista { display:flex; gap:6px; border-bottom:2px solid #dbe3ea; }
.tfl .tfl-vista-tab { font-weight:600; font-size:14px; padding:9px 16px; border-radius:8px 8px 0 0; text-decoration:none; background:#e8f0f8; color:#003366 !important; }
.tfl .tfl-vista-tab.tfl-vista-on { background:#003366; color:#fff !important; }
#tflVistaElenco { display:flex; flex-direction:column; gap:16px; }
.tfl-iframe { width:100%; min-height:760px; border:0; display:block; border-radius:8px; }
/* griglia risultati */
.tfl-scroll { overflow-x:auto; }
table.tfl-grid { border-collapse:collapse; width:100%; font-size:13px; background:#fff; }
table.tfl-grid th { background:#003366 !important; color:#fff; text-align:left; font-weight:600; padding:9px 10px; white-space:nowrap; font-size:13px !important; }
table.tfl-grid th a { color:#fff !important; text-decoration:none; }
table.tfl-grid th a:hover { text-decoration:underline; }
table.tfl-grid td { padding:9px 10px; border-bottom:1px solid #e3e8ee; vertical-align:top; color:#1b2733; }
table.tfl-grid tr:hover td { background:rgba(0,51,102,.035); }
table.tfl-grid tr.tfl-inattivo td { background:#f1f3f5; color:#7d8b99; }
.tfl-nome { font-weight:700; font-size:14px; }
.tfl-sub { font-size:12px; color:#4a5866; margin-top:3px; }
.tfl-cf { font-family:Consolas,"Courier New",monospace; font-size:12px; color:#4a5866; white-space:nowrap; }
.tfl-chip { display:inline-block; font-size:11px; font-weight:700; padding:2px 8px; border-radius:10px; margin:0 4px 3px 0; white-space:nowrap; background:#f1f3f5; color:#4a5866; }
.tfl-chip-docente { background:#e8f0f8; color:#003366; }
.tfl-chip-tutor { background:#e6f4ea; color:#1d6b3a; }
.tfl-chip-mentor { background:#fff3e0; color:#8a4b00; }
.tfl-chip-si { background:#e6f4ea; color:#1d6b3a; }
.tfl-chip-no { background:#fdf1f0; color:#b3261e; }
.tfl-chip-off { background:#7d8b99; color:#fff; }
.tfl-chip-a { background:#e0f4f4; color:#0b5d5d; }
.tfl-note { display:inline-block; font-size:11px; font-weight:700; padding:2px 8px; border-radius:10px; background:#fdf1f0; color:#b3261e; cursor:help; }
.tfl-num-big { font-weight:700; font-size:15px; text-align:center; }
.tfl-c-azioni { white-space:nowrap; text-align:right; }
.tfl-c-azioni a { display:inline-block; padding:6px 14px; border-radius:6px; font-weight:600; text-decoration:none; background:#003366; color:#fff !important; }
.tfl-c-azioni a:hover { background:#001f3f; }
.tfl-c-dati input[type=image] { width:20px; height:auto; }
.tfl-c-stato img { max-width:22px; height:auto; }
.tfl-c-centro { text-align:center; }

table.tfl-grid tr.tfl-sel td { background:#e8f0f8; font-weight:600; }
.tfl-due { display:grid; grid-template-columns:repeat(auto-fit, minmax(340px, 1fr)); gap:18px; align-items:start; }
.tfl-campo { display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.tfl-campo input[type=text], .tfl-campo select { width:100% !important; max-width:460px; }
.tfl-campo span[style*="FF3300"], .tfl-campo span[style*="Red"] { font-size:12px !important; }
.tfl-blocco { margin-bottom:14px; }
.tfl-blocco table.tfl-grid { margin:4px 0; }
.tfl-blocco .tfl-riga select { max-width:none; }
.tfl input.tfl-btn-rosso { color:#b3261e !important; border-color:#e8b4b0; }
.tfl input.tfl-btn-rosso:hover { background:#fdf1f0; }

/* --- veste tf per le pagine con schede e moduli (classi tfp-*): cambia solo l'aspetto, non i controlli --- */
.tfp { font-family:Inter,"Segoe UI",Roboto,sans-serif; color:#1b2733; text-align:left; width:max(860px, calc(100vw - 80px)); max-width:1700px; box-sizing:border-box; contain:inline-size; display:flex; flex-direction:column; gap:14px; padding:4px 0 20px; clear:both; font-size:13px; }
.tfp-top { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.tfp-h1 { margin:0; font-size:24px; color:#003366; font-weight:700; }
.tfp-desc { font-size:13px; color:#6b7785; }
.tfp-flex { flex:1; }
.tfp-stato span:empty, .tfp-stato:empty { display:none; }
.tfp-stato { font-size:13px; }
.tfp-card { background:#fff; border:1px solid #dbe3ea; border-radius:10px; padding:16px 18px; }
.tfp a { color:#003366; }
.tfp h2:not(.tf27 *), .tfp h3:not(.tf27 *), .tfp h4:not(.tf27 *) { color:#003366; }
.tfp h2:not(.tf27 *) { font-size:18px; } .tfp h3:not(.tf27 *) { font-size:16px; } .tfp h4:not(.tf27 *) { font-size:14px; }

/* schede (TabContainer con CssClass tfp-tabs e CssTheme None) */
.tfp-tabs > .ajax__tab_header { display:flex; flex-wrap:wrap; align-items:flex-end; gap:6px 6px; border-bottom:2px solid #dbe3ea; padding:0; margin:0; font-size:14px; white-space:normal; }
.tfp-tabs > .ajax__tab_header > span { display:flex; align-items:flex-end; }
.tfp-tabs > .ajax__tab_header .ajax__tab_outer, .tfp-tabs > .ajax__tab_header .ajax__tab_inner { display:flex; background:none; padding:0; height:auto; }
.tfp-tabs > .ajax__tab_header .ajax__tab_tab { display:block; overflow:visible; line-height:1.25; white-space:nowrap; font-weight:600; font-size:14px; padding:9px 16px; border-radius:8px 8px 0 0; background:transparent; color:#003366; cursor:pointer; outline:0; height:auto; text-decoration:none; }
.tfp-tabs > .ajax__tab_header .ajax__tab_tab br { display:none; }
.tfp-tabs > .ajax__tab_header .ajax__tab_hover .ajax__tab_tab { background:#d6e4f2; }
.tfp-tabs > .ajax__tab_header .ajax__tab_active .ajax__tab_tab { background:#003366; color:#fff; }
.tfp-tabs > .ajax__tab_header .ajax__tab_disabled { background:transparent; color:#9aa6b2; cursor:not-allowed; }
.tfp-tabs > .ajax__tab_body { background:#fff; border:1px solid #dbe3ea; border-top:0; border-radius:0 0 10px 10px; padding:16px 18px; font-family:inherit !important; font-size:13px !important; text-align:left; }
.tfp-tabs > .ajax__tab_body::after { content:""; display:block; clear:both; }
.tfp-tabs .tfp-tabs > .ajax__tab_header { font-size:13px; }
.tfp-tabs .tfp-tabs > .ajax__tab_header .ajax__tab_tab { font-size:13px; padding:7px 12px; }
.tfp-tabs .tfp-tabs > .ajax__tab_body { border-radius:0 0 8px 8px; padding:12px; }

.tfp-tabs > .ajax__tab_body > .ajax__tab_panel { overflow-x:auto; }
.tfp-barra { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin-bottom:12px; }
.tfp-barra > div { float:none !important; padding:0 !important; }
.tfp-due { display:grid; grid-template-columns:repeat(auto-fit, minmax(520px, 1fr)); gap:8px 28px; align-items:start; }
.tfp-due > div { float:none !important; width:auto !important; padding:0 !important; }

.tfp-card-head { display:flex; align-items:center; gap:10px; margin-bottom:10px; }
.tfp-card-head h2 { margin:0; font-size:17px !important; color:#003366; font-weight:700; }
.tfp .tfl-num { width:28px; height:28px; border-radius:50%; background:#003366; color:#fff; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:13px; flex:0 0 28px; }
/* mappa: impostazioni a sinistra, mappa (500x576, dimensione fissa) a destra */
.tfp-mappa-griglia { display:grid; grid-template-columns:minmax(420px, 520px) minmax(560px, 1fr); gap:16px; align-items:start; }
.tfp-mappa .Campo:not(.tf27 *) .ContenitoreEtichetteCampo span { width:auto !important; }
.tfp-mappa #commands, .tfp-mappa #Div1 { overflow:hidden; }
.tfp-mappa .tfp-card > .Campo:last-child { border-bottom:0; }

/* campi */
.tfp :is(input[type=text], input[type=date], input[type=number], input[type=email], input[type=password], input[type=tel], input:not([type]), select, textarea):not(.tf27 *) { font-family:inherit; font-size:13px !important; color:#1b2733; border:1px solid #c5d0db; border-radius:6px; padding:6px 9px; background-color:#fff; box-sizing:border-box; max-width:100%; }
.tfp :is(input[type=text], input[type=date], input[type=number], input[type=email], input[type=password], input:not([type]), select):not(.tf27 *):not([multiple]):not([size]) { min-height:34px; }
.tfp :is(input, select, textarea)[disabled]:not(.tf27 *), .tfp :is(input, textarea)[readonly]:not(.tf27 *) { background-color:#f4f7fa !important; color:#33414e; }
.tfp input[type=file]:not(.tf27 *) { font-family:inherit; font-size:13px; padding:5px; border:1px dashed #b9cde2; border-radius:6px; background:#f4f8fc; max-width:100%; }
.tfp :is(input[type=checkbox], input[type=radio]):not(.tf27 *) { accent-color:#003366; vertical-align:-2px; }
.tfp :is(input[type=checkbox], input[type=radio]):not(.tf27 *) + label { display:inline; font-size:13px; font-weight:500; margin-left:3px; }

/* pulsanti */
.tfp :is(input[type=submit], input[type=button], button):not(.tf27 *) { background:#003366; color:#fff; border:0; border-radius:6px; padding:8px 14px; font-family:inherit; font-weight:600; font-size:13px !important; cursor:pointer; line-height:1.2; }
.tfp :is(input[type=submit], input[type=button], button):not(.tf27 *):hover { background:#001f3f; }
.tfp :is(input[type=submit], input[type=button], button)[disabled]:not(.tf27 *) { background:#aab6c2; cursor:default; }

/* righe etichetta / campo (classi Campo del CRM) */
.tfp .Campo:not(.tf27 *) { display:flex; flex-direction:row; flex-wrap:wrap; align-items:baseline; gap:6px 14px; background:transparent; border:0; border-bottom:1px solid #eef2f6; padding:9px 2px; margin:0; height:auto; clear:both; }
.tfp .Campo:not(.tf27 *) > br { display:none; }
.tfp .ContenitoreEtichetteCampo:not(.tf27 *) { float:none; width:190px; flex:0 0 190px; text-align:left; padding:0; font-size:12px; font-weight:600; color:#4a5866; text-transform:uppercase; letter-spacing:.03em; }
.tfp .ContenitoreEtichetteCampo:not(.tf27 *) br { display:none; }
.tfp .ContenitoreEtichetteCampo:not(.tf27 *) span { font-size:12px !important; font-weight:600; color:#4a5866; }
.tfp .ContenitoreEtichetteCampo:not(.tf27 *) span[style*="Red"], .tfp .ContenitoreEtichetteCampo:not(.tf27 *) span[style*="red"], .tfp .ContenitoreEtichetteCampo:not(.tf27 *) span[style*="FF3300"] { display:block; margin-top:3px; text-transform:none; letter-spacing:0; font-weight:500; }
.tfp .Campo:not(.tf27 *) > :is(input[type=text], input[type=date], input[type=number], select, textarea) { width:min(100%, 440px) !important; font-weight:500 !important; }
.tfp .Campo:not(.tf27 *) > input.numeri { width:200px !important; text-align:right; }
.tfp .EtichetteCampi:not(.tf27 *) { font-size:12px !important; font-weight:600; color:#4a5866; text-transform:uppercase; letter-spacing:.03em; }

/* nelle schede a due colonne: etichetta sopra il campo */
:is(.tfp-due, .tfp-colonna) .Campo:not(.tf27 *) { flex-direction:column; align-items:stretch; gap:0; font-size:0; }
:is(.tfp-due, .tfp-colonna) .Campo:not(.tf27 *) > * { font-size:13px; }
:is(.tfp-due, .tfp-colonna) .Campo:not(.tf27 *) > .ContenitoreEtichetteCampo { margin-bottom:5px; font-size:12px; }
:is(.tfp-due, .tfp-colonna) .ContenitoreEtichetteCampo:not(.tf27 *) { width:auto; flex:none; }
:is(.tfp-due, .tfp-colonna) .Campo:not(.tf27 *) > :is(input[type=text], input[type=date], input[type=number], select, textarea) { width:min(100%, 560px) !important; }
:is(.tfp-due, .tfp-colonna) .Campo:not(.tf27 *) > input.numeri { width:220px !important; }

:is(.tfp-due, .tfp-colonna) .Campo:not(.tf27 *):has(> input[type=submit]) { flex-direction:row; gap:10px; border-bottom:0; padding-top:14px; }
.tfp .ContenitoreEtichetteCampo:not(.tf27 *) span[style*="visibility:hidden"] { display:none; }

/* griglie (stile GridView del CRM: intestazione #5D7B9D, righe #F7F6F3 / White, selezione #E2DED6, paginazione #284775) */
.tfp table:has(> tbody > tr[style*="#5D7B9D"]):not(.tf27 *) { border-collapse:collapse !important; font-size:13px !important; background:#fff; margin:6px 0; }
.tfp table:has(> tbody > tr[style*="#5D7B9D"]):not(.tf27 *) > tbody > tr > :is(th, td) { padding:7px 10px; border-bottom:1px solid #e3e8ee; vertical-align:top; }
.tfp tr[style*="#5D7B9D"]:not(.tf27 *) { background:#003366 !important; color:#fff !important; }
.tfp tr[style*="#5D7B9D"]:not(.tf27 *) > :is(th, td) { text-align:left; font-weight:600; border-bottom:0 !important; white-space:nowrap; }
.tfp tr[style*="#5D7B9D"]:not(.tf27 *) a { color:#fff !important; text-decoration:none; }
.tfp tr[style*="#5D7B9D"]:not(.tf27 *) a:hover { text-decoration:underline; }
.tfp tr[style*="#F7F6F3"]:not(.tf27 *), .tfp tr[style*="background-color:White"]:not(.tf27 *) { background:#fff !important; color:#1b2733 !important; }
.tfp tr[style*="#E2DED6"]:not(.tf27 *) { background:#e8f0f8 !important; color:#1b2733 !important; }
.tfp tr[style*="background-color:#284775"]:not(.tf27 *) { background:#fff !important; color:#003366 !important; }
.tfp tr[style*="background-color:#284775"]:not(.tf27 *) table td { padding:0 3px !important; border:0 !important; }
.tfp tr[style*="background-color:#284775"]:not(.tf27 *) :is(a, span) { display:inline-block; min-width:28px; text-align:center; padding:4px 8px; border:1px solid #dbe3ea; border-radius:6px; font-weight:600; color:#003366 !important; text-decoration:none; }
.tfp tr[style*="background-color:#284775"]:not(.tf27 *) span { background:#003366; color:#fff !important; border-color:#003366; }
.tfp table:has(> tbody > tr[style*="#5D7B9D"]):not(.tf27 *) td a { font-weight:600; }
/* fine FABIO */

/* FABIO 28/11/2026 ritocchi dopo le prime prove */
/* messaggi di stato (lbStatus): riquadro leggibile invece del testo rosso libero */
/* FABIO 28/11/2026 messaggio di stato: riquadro informativo blu (prima testo rosso su fondo arancio, sembrava sempre un errore) */
.tfp-stato > span:not(:empty) { display:inline-flex; align-items:center; gap:8px; padding:8px 14px 8px 12px; border-radius:8px; background:#eef4fb; border:1px solid #c9dcef; border-left:4px solid #2f6fb0; color:#003366 !important; font-weight:600; font-size:13px; margin-bottom:4px; }
.tfp-stato > span:not(:empty)::before { content:"i"; flex:0 0 18px; width:18px; height:18px; border-radius:50%; background:#2f6fb0; color:#fff; font:700 12px/18px Georgia,serif; text-align:center; }
/* fine FABIO */
/* tabelle di impaginazione (non griglie): niente spaziatura larga ereditata da Site.css */
.tfp table:not(:has(> tbody > tr[style*="#5D7B9D"])):not(.tf27 *) > tbody > tr > td { padding:2px 10px 2px 0; }
/* albero delle cartelle (TreeView) compatto */
.tfp div[id$="tvFolders"] td { padding:1px 2px !important; vertical-align:middle; }
.tfp div[id$="tvFolders"] a { font-family:inherit !important; font-size:13px !important; color:#1b2733 !important; }
.tfp div[id$="tvFolders"] { background:#fff; border:1px solid #dbe3ea !important; border-radius:8px; padding:8px; box-sizing:border-box; }
/* Protocollo: colonna Commessa con codice e icona piccola in riga */
.tfp-protocollo td > span > div[style*="padding:5px"] { display:inline; padding:0 !important; }
.tfp-protocollo td > span > br, .tfp-protocollo td > span + br { display:none; }
.tfp-protocollo td img[onclick], .tfp-protocollo td img[OnClick] { width:15px !important; height:15px !important; vertical-align:-2px; margin-left:6px; cursor:pointer; opacity:.75; }
.tfp-protocollo td img[onclick]:hover { opacity:1; }
.tfp-protocollo td[style*="text-align:center"] { white-space:nowrap; }
/* schede di dettaglio (aula, fornitore, azienda): due colonne a riquadri */
.tfp-dettaglio .tfp-scheda { text-align:left; }
.tfp.tfp-dettaglio { display:block; }
.tfp-dettaglio > .tfp-top { margin-bottom:14px; }
.tfp-dettaglio .tfp-colonna { float:left; width:calc(50% - 9px); margin:0 16px 16px 0; background:#fff; border:1px solid #dbe3ea; border-radius:10px; padding:12px 16px; box-sizing:border-box; }
.tfp-dettaglio .tfp-colonna + .tfp-colonna, .tfp-dettaglio .tfp-scheda + .tfp-colonna { margin-right:0; }
.tfp-dettaglio .tfp-intera { float:none; width:100%; clear:both; }
.tfp-dettaglio .tfp-intera .tfp-colonna { width:calc(50% - 9px); }
.tfp-dettaglio div[style*="border-style:solid" i] { border:1px solid #dbe3ea !important; border-radius:8px; padding:8px 12px; margin:8px 0 12px; background:#fbfdff; box-sizing:border-box; }
.tfp-dettaglio div[style*="border-style:solid" i] > span:first-child { display:block; color:#003366; font-size:14px; font-weight:700; margin:2px 0 6px; }
.tfp-dettaglio > .Campo, .tfp-dettaglio .tfp-scheda > .Campo { background:#fff; border:1px solid #dbe3ea; border-radius:10px; padding:12px 16px; margin:0 0 12px 0; }
.tfp-dettaglio .Campo[style*="text-align:center"] { justify-content:center; gap:10px; }
.tfp-dettaglio .Campo:not(.tf27 *) > textarea[style*="98%"] { width:100% !important; }
@media (max-width:1100px) { .tfp-dettaglio .tfp-colonna, .tfp-dettaglio .tfp-intera .tfp-colonna { float:none; width:100%; margin-right:0; } }
/* schede con molte voci (es. Reports): voci più compatte */
.tfp-tabs > .ajax__tab_header:has(> span:nth-child(12)) .ajax__tab_tab { font-size:13px; padding:7px 11px; }
.tfp-tabs > .ajax__tab_header:has(> span:nth-child(12)) { gap:2px 4px; }
/* fine FABIO */

/* FABIO 28/11/2026 tasto "Apri" delle griglie uguale su tutte le righe (pari e dispari) */
.tfp tr:not([style*="background-color:#284775"]) > td > a[href*="Select$"]:not(.tf27 *) { display:inline-block; padding:4px 12px; border:1px solid #c9d3de; border-radius:6px; background:#fff; color:#003366 !important; font-weight:600; font-size:13px; text-decoration:none; line-height:1.3; white-space:nowrap; }
.tfp tr:not([style*="background-color:#284775"]) > td > a[href*="Select$"]:not(.tf27 *):hover { background:#003366; border-color:#003366; color:#fff !important; }
/* fine FABIO */

/* FABIO 28/11/2026 tavolozza piu' armonica: il blu scuro (#003366) resta per titoli, testate e numeri;
   schede, intestazioni delle griglie, pulsanti e selezioni passano a gradazioni piu' chiare dello stesso blu */
.tfp-tabs > .ajax__tab_header { border-bottom:1px solid #cfdbe7; gap:2px 2px; }
.tfp-tabs > .ajax__tab_header .ajax__tab_tab { color:#2b4a6b; background:transparent; border:1px solid transparent; border-bottom:0; border-radius:8px 8px 0 0; }
.tfp-tabs > .ajax__tab_header .ajax__tab_hover .ajax__tab_tab { background:#eaf1f8; color:#003366; }
.tfp-tabs > .ajax__tab_header .ajax__tab_active .ajax__tab_tab { background:#fff; color:#003366 !important; border-color:#cfdbe7; box-shadow:inset 0 3px 0 #2f6fb0; position:relative; margin-bottom:-1px; }
.tfp-tabs .tfp-tabs > .ajax__tab_header { border-bottom:1px solid #e3e9ef; gap:4px; padding-bottom:6px; }
.tfp-tabs .tfp-tabs > .ajax__tab_header .ajax__tab_tab { border:0; border-radius:999px; padding:6px 14px; }
.tfp-tabs .tfp-tabs > .ajax__tab_header .ajax__tab_active .ajax__tab_tab { background:#e1ecf7; box-shadow:none; margin-bottom:0; }
.tfp-tabs .tfp-tabs > .ajax__tab_body { border:0; padding:12px 0 0; }
.tfp tr[style*="#5D7B9D"]:not(.tf27 *) { background:#eaf1f8 !important; color:#1f3a5f !important; }
.tfp tr[style*="#5D7B9D"]:not(.tf27 *) > :is(th, td) { border-bottom:2px solid #c9d8e8 !important; }
.tfp tr[style*="#5D7B9D"]:not(.tf27 *) a { color:#1f3a5f !important; }
table.tfl-grid th { background:#eaf1f8 !important; color:#1f3a5f; border-bottom:2px solid #c9d8e8; }
.tfp tr[style*="background-color:#284775"]:not(.tf27 *) span { background:#2f6fb0; border-color:#2f6fb0; }
.tfp :is(input[type=submit], input[type=button], button):not(.tf27 *) { background:#1f5c99; }
.tfp :is(input[type=submit], input[type=button], button):not(.tf27 *):hover { background:#174a7c; }
.tfl input[type=submit], .tfl input[type=button], .tfl a.tfl-btn { background:#1f5c99; }
.tfl input[type=submit]:hover, .tfl input[type=button]:hover { background:#174a7c; }
.tfl .tfl-vista-tab.tfl-vista-on, .tfl-c-azioni a { background:#1f5c99; }
.tfl-num, .tfp .tfl-num { background:#2f6fb0; }
.tfp tr:not([style*="background-color:#284775"]) > td > a[href*="Select$"]:not(.tf27 *):hover { background:#1f5c99; border-color:#1f5c99; }
/* fine FABIO */

/* FABIO 28/11/2026 campi della stessa altezza (le tendine con carattere grande erano piu' alte delle date) e caselle numeriche non troppo strette */
.tfp select:not([multiple]):not([size]):not(.tf27 *) { height:36px !important; min-height:36px; padding-top:4px !important; padding-bottom:4px !important; font-size:14px !important; }
.tfp :is(input[type=text], input[type=date], input[type=number]):not(.tf27 *) { height:36px; min-height:36px; }
.tfp input[type=text][style*="width:"]:not(.tf27 *) { min-width:64px; }
.tfp-barra input[type=submit] { align-self:flex-end; }
/* fine FABIO */

/* FABIO 28/11/2026 schede a riposo riconoscibili dallo sfondo, testo che non si sovrappone alle schede annidate */
.tfp-tabs > .ajax__tab_header .ajax__tab_tab { background:#eef3f8; border:1px solid #dbe3ea; border-bottom:0; color:#2b4a6b; }
.tfp-tabs > .ajax__tab_header .ajax__tab_hover .ajax__tab_tab { background:#dfe9f4; color:#003366; }
.tfp-tabs .tfp-tabs > .ajax__tab_header .ajax__tab_tab { background:#f3f6f9; border:1px solid #dde4ec; color:#4a5866; }
.tfp-tabs .tfp-tabs > .ajax__tab_header .ajax__tab_hover .ajax__tab_tab { background:#e6eef7; color:#003366; }
.tfp-tabs .tfp-tabs > .ajax__tab_header .ajax__tab_active .ajax__tab_tab { background:#dce8f5; border-color:#9fbbd8; color:#003366 !important; }
.tfp-tabs .tfp-tabs { clear:both; margin-top:10px; }
.tfp-tabs > .ajax__tab_body > .ajax__tab_panel { line-height:1.45; }
/* fine FABIO */

/* FABIO 28/11/2026 pulsanti alti come le caselle accanto; etichette minuscole (X-Small) leggibili */
.tfp :is(input[type=submit], input[type=button]):not(.tf27 *):not([style*="xx-small"]):not([style*="XX-Small"]) { min-height:36px; }
.tfp label[style*="X-Small"]:not(.tf27 *), .tfp span[style*="X-Small"][id*="Label"]:not(.tf27 *) { font-size:12px !important; color:#4a5866; }
.tfp label[style*="X-Small"]:not(.tf27 *):not(:is(input[type=checkbox], input[type=radio]) + label) { display:block; margin:8px 0 3px; font-weight:600 !important; }
/* fine FABIO */

/* FABIO 28/11/2026 Contratti: parametri a sinistra e anteprima a destra (la pagina .tfp e' flex, quindi i float 29%/70% finivano uno sotto l'altro); messaggio in riquadro */
.tfp:has(> .tfp-ctr-sx) { display:grid !important; grid-template-columns:400px minmax(0, 1fr); column-gap:20px; align-items:start; }
.tfp:has(> .tfp-ctr-sx) > :not(.tfp-ctr-sx):not(.tfp-ctr-dx) { grid-column:1 / -1; }
.tfp-ctr-sx, .tfp-ctr-dx { float:none !important; width:auto !important; min-width:0; }
.tfp-ctr-dx .ajax__tab_panel { overflow-x:auto; }
.tfp-ctr-sx input[type=submit] { margin:6px 6px 6px 0; }
@media (max-width:1100px) { .tfp:has(> .tfp-ctr-sx) { grid-template-columns:minmax(0, 1fr); } .tfp-ctr-dx { margin-top:16px; } }
.tfp-ctr-msg { text-align:left !important; margin-bottom:10px; }
.tfp-ctr-msg span:not(:empty) { display:inline-block; font-size:14px !important; padding:8px 14px; border-radius:8px; background:#fff7e6; border:1px solid #f3d19c; color:#7a4b00 !important; }
/* fine FABIO */
