/* «Cassetto fiscale» (F24 dal cassetto, mockup approvato il 20/11/2026): identità della Vetrina, variabili di .or (ore.css). */
.cf { gap: 18px; }
.cf a { color: var(--oro-scuro); }
.cf a:hover { color: var(--notte); }
.cf .r { text-align: right; font-variant-numeric: tabular-nums; }
.cf .verde { color: var(--ok); }
.cf .tenue { color: var(--tenue); }

/* testata e schede */
.cf-briciole { font-size: 12.5px; color: var(--tenue); }
.cf-briciole b { color: var(--notte); }
.cf-sotto { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--tenue); margin-top: 6px; }
.cf-pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600;
           border: 1px solid #E2D6BC; background: var(--oro-velo); color: #6B5320; }
.cf-pill.scura { background: var(--notte); border-color: var(--notte); color: #fff; }
.cf-pill.scura b { color: var(--oro); }
.cf-pill.ko { background: var(--ko-f); border-color: #F0C2BE; color: #7d211d; }
.cf-schede { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--linea); padding-bottom: 10px; }
.cf-schede a { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--linea);
               background: var(--carta); color: var(--notte); font-weight: 600; font-size: 13.5px; text-decoration: none;
               transition: border-color .15s, transform .15s; }
.cf-schede a:hover { border-color: var(--oro); transform: translateY(-1px); color: var(--notte); }
.cf-schede a.on { background: var(--notte); border-color: var(--notte); color: #fff; }
.cf-schede a .n { background: var(--att-f); color: var(--att); border-radius: 999px; padding: 1px 7px; font-size: 11.5px; }
.cf-schede a.on .n { background: var(--oro); color: var(--notte); }

/* bottoni e campi */
.cf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 10px;
          border: 1px solid var(--notte); background: var(--notte); color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
          text-decoration: none; transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.cf a.cf-btn, .cf a.cf-btn:hover { color: #fff; }
.cf-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(23,35,58,.18); }
.cf-btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.cf-btn svg { stroke: var(--oro); }
.cf-btn.chiaro { background: var(--carta); color: var(--notte); border-color: #D5D2C8; }
.cf a.cf-btn.chiaro, .cf a.cf-btn.chiaro:hover { color: var(--notte); }
.cf-btn.chiaro svg { stroke: currentColor; }
.cf-btn.oro { background: var(--oro); border-color: var(--oro); color: var(--notte); }
.cf-btn.piccolo { height: 36px; padding: 0 14px; font-size: 13px; }
.cf-link { border: 0; background: none; padding: 0; color: var(--oro-scuro); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; text-decoration: underline; }
.cf-input { height: 42px; border: 1px solid #D5D2C8; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; color: var(--inchiostro); min-width: 0; }
.cf-input:focus { outline: 2px solid var(--oro); outline-offset: 1px; }
.cf-campo { display: flex; flex-direction: column; gap: 4px; font-size: 11px; font-weight: 600; color: var(--tenue); }
.cf-campo.forte { color: var(--notte); font-weight: 700; }
.cf-campo.forte .cf-input { border: 2px solid var(--oro); background: var(--oro-velo); font-weight: 600; }
.cf-spunta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--inchiostro); cursor: pointer; }

/* card */
.cf-carte { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.cf-carta { background: var(--carta); border: 1px solid #E8E4DA; border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px;
            text-decoration: none; color: inherit; animation: cf-su .35s ease both; }
.cf-carta:nth-child(2) { animation-delay: .05s; } .cf-carta:nth-child(3) { animation-delay: .1s; } .cf-carta:nth-child(4) { animation-delay: .15s; }
.cf-carta .t { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--tenue); text-transform: uppercase; }
.cf-carta .v { font-family: var(--display); font-size: 34px; line-height: 1.05; color: var(--notte); }
.cf-carta .s { font-size: 12.5px; color: var(--tenue); }
.cf-carta.scura { background: var(--notte); border-color: var(--notte); }
.cf-carta.scura .t { color: var(--oro); }
.cf-carta.scura .v { color: #fff; }
.cf-carta.scura .s { color: #C9D1DD; }
a.cf-carta.scura:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(23,35,58,.2); }
@keyframes cf-su { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* filtri */
.cf-filtri { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.cf-filtri-riga { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.cf-sez { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cf-sez .et { font-size: 11px; font-weight: 700; letter-spacing: .08em; color: var(--tenue); margin-right: 4px; }
.cf-sez button { height: 34px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
                 background: #fff; color: var(--notte); border: 1px solid #D5D2C8; }
.cf-sez button.on { background: var(--notte); color: #fff; border-color: var(--notte); }
.cf-sez .spazio { flex: 1 1 20px; }

/* elenco */
.cf-titolo { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cf-titolo h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; color: var(--notte); }
.cf-titolo span { font-size: 12.5px; color: var(--tenue); }
.cf-scorri { overflow-x: auto; }
.cf-tb { width: 100%; border-collapse: collapse; min-width: 880px; }
/* Tabelle con molte colonne (Contribuenti): intestazioni su due righe se serve, «x mesi fa» sotto la data (02/12/2026). */
.cf-tb.stretta th { white-space: normal; }
.cf-tb.stretta th, .cf-tb.stretta td { padding-left: 10px; padding-right: 10px; }
.cf-tb.stretta .cf-stato { white-space: nowrap; }
.cf-tb.stretta .cf-ord { text-align: left; }
.cf-fa { display: block; font-size: 12px; }
.cf-tb th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--tenue); font-weight: 600; padding: 10px 12px; text-align: left;
            background: #F7F6F2; border-bottom: 1px solid #E4E2DB; white-space: nowrap; }
.cf-tb td { padding: 11px 12px; border-bottom: 1px solid #ECEAE4; font-size: 13.5px; vertical-align: middle; }
.cf-tb tr.aperta > td { background: var(--oro-velo); }
.cf-tb .nome b { color: var(--notte); font-weight: 600; display: block; }
.cf-tb .nome span { font-size: 11.5px; color: var(--tenue); }
.cf-apri { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #E4E2DB; background: #fff; cursor: pointer; color: var(--notte); font-size: 13px; }
.cf-tipo { font-size: 12px; font-weight: 600; color: #3A4659; background: #EEF0F4; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.cf-stato { display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--att); background: var(--att-f); border-radius: 999px; padding: 2px 8px; }
.cf-stato.ko { color: #7d211d; background: var(--ko-f); }
.cf-stato.ok { color: var(--ok); background: var(--ok-f); }
.cf-pdf { font-size: 13px; font-weight: 600; white-space: nowrap; }
.cf-dettaglio td { background: #FAF8F3; padding: 4px 16px 16px 56px; }
.cf-sub { width: 100%; border-collapse: collapse; margin-top: 8px; }
.cf-sub th { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--tenue); font-weight: 600; padding: 6px 10px; text-align: left; border-bottom: 1px solid #E4E2DB; }
.cf-sub td { padding: 7px 10px; font-size: 13px; border-bottom: 1px dashed #E4E2DB; }
.cf-sub .dsc { display: block; font-size: 11px; color: var(--tenue); }
.cf-note { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--tenue); }
.cf-legenda { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--tenue); align-items: center; }

/* menu Excel */
.cf-menu { position: relative; }
.cf-menu-tendina { position: absolute; right: 0; top: 52px; z-index: 5; width: 310px; background: #fff; border: 1px solid #E4E2DB; border-radius: 12px;
                   box-shadow: 0 12px 32px rgba(23,35,58,.16); padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.cf-menu-tendina a { display: block; border-radius: 8px; padding: 10px 12px; text-decoration: none; }
.cf-menu-tendina a:hover { background: #F7F6F2; }
.cf-menu-tendina a b { display: block; font-size: 14px; color: var(--notte); }
.cf-menu-tendina a span { font-size: 12px; color: var(--tenue); }
.cf-menu-tendina .nota { font-size: 11.5px; color: var(--tenue); padding: 4px 12px; }

/* da sistemare */
.cf-sezione { display: flex; flex-direction: column; gap: 10px; }
.cf-sezione h2 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 24px; color: var(--notte); }
.cf-voce { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #ECEAE4; }
.cf-voce:last-child { border-bottom: 0; }
.cf-voce .pallino { width: 10px; height: 10px; border-radius: 50%; background: #C2410C; flex: 0 0 10px; }
.cf-voce .pallino.grigio { background: var(--tenue); }
.cf-voce .testo { flex: 1 1 360px; }
.cf-voce .testo b { color: var(--notte); }
.cf-voce .testo div { font-size: 12.5px; color: var(--tenue); }
.cf-collega { padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; border-bottom: 1px solid #ECEAE4; }
.cf-collega:last-child { border-bottom: 0; }
.cf-doc { background: var(--oro-velo); border: 1px solid #E2D6BC; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.cf-doc .t, .cf-cand-lista .t { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #8A6A2A; text-transform: uppercase; }
.cf-cand-lista { display: flex; flex-direction: column; gap: 10px; }
.cf-cand { border: 1px solid #E4E2DB; border-radius: 12px; padding: 12px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cf-cand.uguale { border: 2px solid var(--ok); }
.cf-cand .testo { flex: 1 1 200px; }
.cf-cand .testo div { font-size: 12.5px; color: var(--tenue); }
.cf-cand.uguale .testo div { color: var(--ok); font-weight: 600; }
.cf-mini { width: 100%; border-collapse: collapse; }
.cf-mini th { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--tenue); font-weight: 600; padding: 6px 8px; text-align: left; border-bottom: 1px solid #E4E2DB; }
.cf-mini td { padding: 6px 8px; font-size: 12.5px; border-bottom: 1px dashed #E4E2DB; }
.cf-doppio { padding: 18px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid #ECEAE4; }
.cf-doppio:last-child { border-bottom: 0; }
.cf-doppio-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.cf-doppio-docs > div { border: 1px solid #E4E2DB; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.cf-doppio-docs span { font-size: 12.5px; color: var(--tenue); }
.cf-azioni { display: flex; flex-wrap: wrap; gap: 10px; }

/* letture */
.cf-in-corso { background: var(--notte); border-radius: 16px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; color: #C9D1DD; }
.cf-in-corso .t { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--oro); }
.cf-barra { height: 10px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.cf-barra div { height: 100%; width: 40%; background: var(--oro); border-radius: 999px; animation: cf-scorre 1.6s ease-in-out infinite; }
@keyframes cf-scorre { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* riepilogo */
.cf-scelti { position: sticky; top: 0; z-index: 3; background: var(--notte); color: #fff; border-radius: 14px; padding: 12px 16px; display: flex; flex-wrap: wrap;
             align-items: center; gap: 12px; box-shadow: 0 10px 24px rgba(23,35,58,.18); }
.cf-scelti b { color: var(--oro); font-size: 16px; }
.cf-scelti .vuoto-btn { height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; font: inherit;
                        font-weight: 600; font-size: 13px; cursor: pointer; }
.cf-scelti .spazio { flex: 1 1 20px; }
.cf-scelti .nota { font-size: 12.5px; color: #C9D1DD; }
.cf-scelti a.cf-btn.chiaro { background: transparent; color: #fff; border-color: var(--oro); }
.cf-foglio { background: #fff; border: 1px solid #E8E4DA; border-radius: 6px; box-shadow: 0 10px 30px rgba(23,35,58,.10); padding: 34px 40px;
             display: flex; flex-direction: column; gap: 22px; }
.cf-foglio-testa { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--notte); padding-bottom: 12px; }
.cf-foglio-testa .tit { font-family: var(--display); font-size: 22px; color: var(--notte); }
.cf-foglio-testa .dx { text-align: right; font-size: 12px; color: var(--tenue); display: flex; flex-direction: column; gap: 4px; }
.cf-rp-sez { font-size: 12px; font-weight: 700; letter-spacing: .12em; color: #8A6A2A; }
.cf-rp { width: 100%; border-collapse: collapse; }
.cf-rp th { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--tenue); font-weight: 600; padding: 7px 8px; text-align: left;
            border-bottom: 1.5px solid var(--notte); white-space: nowrap; }
.cf-rp td { padding: 7px 8px; font-size: 12.5px; border-bottom: 1px solid #ECEAE4; vertical-align: top; }
.cf-rp tr.tot td { border-top: 1.5px solid var(--notte); border-bottom: 0; font-weight: 700; background: #FAF8F3; }
.cf-rp tr.scelta td { background: var(--oro-velo); }
.cf-rp .dsc { display: block; font-size: 11px; color: var(--tenue); margin-top: 2px; }
.cf-rp-fondo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }
.cf-totali { background: var(--notte); color: #fff; border-radius: 12px; padding: 18px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cf-totali .t { font-size: 11px; letter-spacing: .1em; color: var(--oro); font-weight: 700; }
.cf-totali .v { font-family: var(--display); font-size: 24px; }
.cf-totali .n { grid-column: 1 / -1; font-size: 11.5px; color: #C9D1DD; }
.cf-chip-cf { display: inline-flex; align-items: center; gap: 6px; background: var(--oro-velo); border: 1px solid #E2D6BC; border-radius: 999px; padding: 4px 6px 4px 12px; font-size: 13px; }
.cf-chip-cf button { border: 0; background: #fff; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; color: var(--notte); }
.cf-sugg { position: relative; }
.cf-sugg-lista { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 6; background: #fff; border: 1px solid #E4E2DB; border-radius: 10px;
                 box-shadow: 0 12px 30px rgba(23,35,58,.16); max-height: 320px; overflow-y: auto; }
.cf-sugg-lista button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 9px 12px; font: inherit; font-size: 13.5px; cursor: pointer; }
.cf-sugg-lista button:hover { background: #F7F6F2; }
.cf-sugg-lista span { font-size: 11.5px; color: var(--tenue); margin-left: 6px; }

@media (max-width: 700px) {
    .cf-tb { min-width: 820px; }
    .cf-foglio { padding: 18px 14px; }
    .cf-totali { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .cf-carta, .cf-barra div { animation: none; } }
.cf-btn.spento { opacity: .45; pointer-events: none; }

/* Tappa F24 dal sito AdE (mockup approvato il 01/12/2026): righe cliccabili (PDF originale), righe scelte, barra di export, documento. */
.cf .cf-tb tr.cf-cliccabile { cursor: pointer; }
.cf .cf-tb tr.cf-cliccabile:hover > td { background: #F2F5FA; }
.cf .cf-tb tr.cf-cliccabile:hover > td:first-child { box-shadow: inset 3px 0 0 #C5A059; }
.cf .cf-tb tr.scelta > td { background: #FBF8F1; }
.cf-export { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; background: #17233A; color: #fff; border-radius: 12px;
            padding: 8px 10px 8px 16px; margin: 0 0 10px; }
.cf-export b { font-size: 13.5px; }
.cf-export span { font-size: 12.5px; color: #C9D2DE; }
.cf-export .spazio { flex: 1 1 auto; }
.cf-export button { font-family: inherit; font-weight: 600; font-size: 12.5px; border-radius: 8px; padding: 9px 13px; min-height: 40px; cursor: pointer; border: 0; }
.cf-export button.chiaro { background: #fff; color: #17233A; }
.cf-export button.oro { background: #C5A059; color: #17233A; }
.cf-export button.vuoto { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.cf-export button.testo { background: transparent; color: #C9D2DE; font-weight: 500; }
.cf-export button:disabled { opacity: .6; cursor: wait; }
.cf-doc { display: inline-block; border-radius: 999px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; white-space: nowrap; text-decoration: none;
          background: #EEF0F3; color: #4A5563; }
.cf-doc.q { background: #E5F2EA; color: #1E6B45; }
.cf-doc.b { background: #E4ECF7; color: #244C82; }
.cf-doc.d { background: #FBF6EC; color: #8A6A2F; }
a.cf-doc:hover { filter: brightness(.95); }
.cf-export a.cf-export-a { font-family: inherit; font-weight: 600; font-size: 12.5px; border-radius: 8px; padding: 10px 13px; min-height: 40px; box-sizing: border-box; text-decoration: none; display: inline-flex; align-items: center; }
.cf-export a.cf-export-a.chiaro { background: #fff; color: #17233A; }
.cf-export a.cf-export-a.oro { background: #C5A059; color: #17233A; }

/* Contribuenti (02/12/2026): intestazioni che ordinano (clic = crescente, di nuovo = decrescente) e filtri sotto ogni colonna. */
.cf-ord { border: 0; background: none; padding: 0; font: inherit; font-weight: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; text-transform: inherit; letter-spacing: inherit; }
.cf-ord .freccia { font-size: 10px; opacity: .35; transition: opacity .15s; }
.cf-ord:hover .freccia, .cf-ord.attiva .freccia { opacity: 1; color: var(--oro, #C5A059); }
.cf-ord.attiva { color: var(--notte, #17233A); }
th.r .cf-ord { flex-direction: row; }
.cf-tb tr.cf-filtro-col th { padding-top: 0; padding-bottom: 8px; }
.cf-tb tr.cf-filtro-col .cf-input { height: 32px; font-size: 12.5px; padding: 4px 8px; width: 100%; min-width: 70px; }
/* Riservatezza per contribuente (02/12/2026): tendina «Visibile a», in oro quando è riservato. */
.cf-tb .cf-livello { height: 32px; font-size: 12.5px; padding: 2px 6px; min-width: 120px; }
.cf-tb .cf-livello.riservato { border-color: var(--oro, #C5A059); background: #FBF6EA; font-weight: 600; }
