/* RF2 FV - Analizzatore automatico dei consumi - 20260810_01 */
.rf2-fv-consumi-launch {
    margin: 0 0 18px 0;
    padding: 16px 18px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 12px;
    background: rgba(255,255,255,.72);
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 12px 18px;
    align-items: center;
}
.rf2-fv-consumi-launch > div:first-child { min-width: 0; }
.rf2-fv-consumi-launch strong { display:block; font-size:18px; line-height:1.2; }
.rf2-fv-consumi-launch span { display:block; margin-top:5px; font-size:13px; opacity:.78; }
.rf2-fv-consumi-launch button,
.rf2-fv-consumi-applica,
.rf2-fv-consumi-secondario {
    border:0;
    border-radius:8px;
    cursor:pointer;
    font: inherit;
    font-weight:700;
    letter-spacing:.02em;
}
.rf2-fv-consumi-launch button,
.rf2-fv-consumi-applica {
    background:#111;
    color:#fff;
    padding:12px 16px;
}
.rf2-fv-consumi-launch button:hover,
.rf2-fv-consumi-applica:hover { opacity:.86; }
.rf2-fv-consumi-riepilogo-compatto {
    grid-column:1 / -1;
    border-top:1px solid rgba(0,0,0,.10);
    padding-top:11px;
    font-size:13px;
}
.rf2-fv-consumi-riepilogo-compatto span { display:inline; margin:0 7px; opacity:.45; }

body.rf2-fv-consumi-blocco-scroll { overflow:hidden; }
.rf2-fv-consumi-modal {
    display:none;
    position:fixed;
    inset:0;
    z-index:10050;
    padding:26px;
    background:rgba(0,0,0,.56);
    overflow:auto;
}
.rf2-fv-consumi-modal.aperta { display:block; }
.rf2-fv-consumi-dialog {
    position:relative;
    max-width:1250px;
    margin:0 auto;
    background:#f7f8f7;
    border-radius:16px;
    box-shadow:0 24px 70px rgba(0,0,0,.34);
    padding:26px;
}
.rf2-fv-consumi-dialog h2 { margin:0 48px 8px 0; font-size:26px; }
.rf2-fv-consumi-intro { margin:0 0 20px 0; max-width:940px; line-height:1.45; }
.rf2-fv-consumi-chiudi {
    position:absolute;
    top:14px;
    right:14px;
    width:38px;
    height:38px;
    border:0;
    border-radius:50%;
    background:#e7e9e7;
    font-size:26px;
    line-height:1;
    cursor:pointer;
}
.rf2-fv-consumi-topgrid {
    display:grid;
    grid-template-columns:repeat(5,minmax(150px,1fr));
    gap:12px;
    margin-bottom:10px;
}
.rf2-fv-consumi-topgrid label { display:flex; flex-direction:column; gap:6px; font-size:12px; font-weight:700; }
.rf2-fv-consumi-topgrid input,
.rf2-fv-consumi-topgrid select,
.rf2-fv-consumi-table input,
.rf2-fv-consumi-table select {
    width:100%;
    box-sizing:border-box;
    min-height:36px;
    border:1px solid #cdd1cd;
    border-radius:6px;
    background:#fff;
    padding:6px 8px;
    font:inherit;
}
.rf2-fv-consumi-nota {
    margin:10px 0 14px 0;
    padding:10px 12px;
    background:#eef1ee;
    border-radius:8px;
    font-size:13px;
}
.rf2-fv-consumi-tablewrap {
    max-height:44vh;
    overflow:auto;
    background:#fff;
    border:1px solid #d9ddd9;
    border-radius:10px;
}
.rf2-fv-consumi-table { width:100%; border-collapse:collapse; min-width:980px; }
.rf2-fv-consumi-table th,
.rf2-fv-consumi-table td { padding:7px 6px; border-bottom:1px solid #eceeec; vertical-align:middle; }
.rf2-fv-consumi-table th {
    position:sticky;
    top:0;
    z-index:1;
    background:#ecefec;
    text-align:left;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:.04em;
}
.rf2-fv-consumi-table td { font-size:12px; }
.rf2-fv-consumi-table td:nth-child(3),
.rf2-fv-consumi-table td:nth-child(4),
.rf2-fv-consumi-table td:nth-child(5),
.rf2-fv-consumi-table td:nth-child(6) { width:75px; }
.rf2-fv-consumi-table td:nth-child(7) { width:82px; white-space:nowrap; font-weight:700; }
.rf2-fv-consumi-table td:nth-child(8) { width:190px; }
.rf2-fv-consumi-check { width:42px; text-align:center; }
.rf2-fv-consumi-check input { width:18px !important; min-height:18px !important; }
.rf2-fv-consumi-nome { min-width:190px; }
.rf2-fv-consumi-elimina {
    width:28px;
    height:28px;
    border:0;
    border-radius:50%;
    background:#f0f0f0;
    cursor:pointer;
    font-size:18px;
}
.rf2-fv-consumi-secondario {
    margin:10px;
    padding:10px 13px;
    background:#e4e8e4;
    color:#111;
}
.rf2-fv-consumi-risultati {
    display:grid;
    grid-template-columns:repeat(6,minmax(120px,1fr));
    gap:10px;
    margin-top:16px;
}
.rf2-fv-consumi-risultati > div {
    background:#fff;
    border:1px solid #d9ddd9;
    border-radius:10px;
    padding:12px;
}
.rf2-fv-consumi-risultati > div.evidenza { border-width:2px; border-color:#111; }
.rf2-fv-consumi-risultati span { display:block; font-size:10px; font-weight:700; opacity:.60; letter-spacing:.05em; }
.rf2-fv-consumi-risultati strong { display:block; margin-top:6px; font-size:18px; }
.rf2-fv-consumi-avviso,
.rf2-fv-consumi-stato { margin-top:12px; padding:10px 12px; border-radius:8px; font-size:13px; }
.rf2-fv-consumi-avviso { background:#fff3cd; border:1px solid #ffe69c; }
.rf2-fv-consumi-stato { min-height:18px; background:#edf7ed; }
.rf2-fv-consumi-stato:empty { display:none; }
.rf2-fv-consumi-stato.errore { background:#fdecec; }
.rf2-fv-consumi-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:14px; }
.rf2-fv-consumi-actions .rf2-fv-consumi-secondario { margin:0; }
.rf2-fv-consumi-applica { min-width:245px; }
.rf2-fv-consumi-disclaimer { margin:14px 0 0 0; font-size:11px; line-height:1.4; opacity:.65; }

@media (max-width:1100px) {
    .rf2-fv-consumi-topgrid { grid-template-columns:repeat(3,minmax(150px,1fr)); }
    .rf2-fv-consumi-risultati { grid-template-columns:repeat(3,minmax(120px,1fr)); }
}
@media (max-width:720px) {
    .rf2-fv-consumi-launch { grid-template-columns:1fr; }
    .rf2-fv-consumi-launch button { width:100%; }
    .rf2-fv-consumi-modal { padding:8px; }
    .rf2-fv-consumi-dialog { padding:18px 12px; border-radius:10px; }
    .rf2-fv-consumi-dialog h2 { font-size:21px; }
    .rf2-fv-consumi-topgrid { grid-template-columns:1fr 1fr; }
    .rf2-fv-consumi-risultati { grid-template-columns:1fr 1fr; }
    .rf2-fv-consumi-actions { flex-direction:column; }
    .rf2-fv-consumi-actions button { width:100%; margin:0; }
}
@media (max-width:470px) {
    .rf2-fv-consumi-topgrid,
    .rf2-fv-consumi-risultati { grid-template-columns:1fr; }
}

/* RF2_FV_NASCONDI_RICALCOLA_20260811 */
#rf2FvConsumiRicalcola {
    display: none !important;
}
