/* =====================================================================
   tema_verde.css — Tema "Verde Rinnovabile" [2026-10-01, v4]
   Palette scelta dall'utente: #164A41 petrolio, #4D774E salvia, #9DC88D verde chiaro, #F4F1E8 crema, #D1B284 sabbia. Tinte PIENE: niente trasparenze, sfumature, bagliori, grana o sfocature.
   Si applica con html.light-mode.green-mode: il tema chiaro gestisce gia' i colori scritti a mano nelle pagine,
   qui si ricolora solo l'identita' (barra, intestazioni, tabelle, accenti).
   ===================================================================== */

/* ---------- token ---------- */
html.green-mode body.lume {
  --tv-evi: #164A41; --tv-evi-2: #4D774E; --tv-evi-3: #164A41; --tv-es: #4D774E; --tv-es-2: #164A41;
  --lm-bg-0: #F4F1E8; --lm-bg-1: #FFFEFA; --lm-bg-2: #F9F7F1; --lm-bg-3: #ECE6D7;
  --lm-line: #E3DCCB; --lm-line-strong: #CFC4A6;
  --lm-text: #1F2A26; --lm-text-2: #164A41; --lm-text-3: #5E6B62; --lm-label: #7A857C;
  --lm-energia: #4D774E; --lm-energia-soft: #164A41; --lm-energia-glow: transparent;
  --lm-protetta: #8C6D3F; --lm-protetta-soft: #6E5530; --lm-protetta-glow: transparent;
  --lm-positive: #4D774E; --lm-negative: #c0392b; --lm-warning: #b26b00;
  --lm-glow-1: transparent; --lm-glow-2: transparent; --lm-grain-opacity: 0;
  --lm-hairline: #E3DCCB;
  --lm-shadow-1: 0 1px 2px rgba(22,36,26,.08);
  --lm-shadow-2: 0 2px 6px rgba(22,36,26,.10);
  --lm-shadow-card: 0 1px 2px rgba(22,36,26,.08);
  --bs-body-bg: #F4F1E8; --bs-body-color: #1F2A26; --bs-border-color: #E3DCCB;
  --bs-table-bg: #FFFEFA; --bs-table-color: #1F2A26; --bs-table-hover-bg: #EEF5E8; --bs-table-striped-bg: #FAF8F2;
}
html.green-mode body.lume { background: #F4F1E8 !important; color: #1F2A26; }
html.green-mode body.lume::before, html.green-mode body.lume::after { display: none !important; }   /* grana/atmosfera */

/* ---------- barra in alto: verde EVI pieno + filo verde ES ---------- */
html.green-mode body.lume #gn-desk, html.green-mode body.lume #gn-mob {
  background: #164A41 !important; border-bottom: 3px solid #D1B284 !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important;
}
html.green-mode body.lume #gn-desk::after, html.green-mode body.lume #gn-mob::after { display: none !important; }
html.green-mode body.lume #gn-desk .gn-brand, html.green-mode body.lume #gn-mob .gn-brand,
html.green-mode body.lume #gn-desk .gn-brand i, html.green-mode body.lume #gn-mob .gn-brand i { color: #ffffff !important; }
html.green-mode body.lume #gn-desk .gn-user, html.green-mode body.lume #gn-desk .gn-user i { color: #CFE3C6 !important; }
html.green-mode body.lume #gn-desk .gn-link, html.green-mode body.lume #gn-desk .gn-theme-btn,
html.green-mode body.lume .gn-menu-btn, html.green-mode body.lume #gn-mob .gn-ham-btn {
  background: #4D774E !important; border: 1px solid #6E9A6F !important; color: #ffffff !important;
}
html.green-mode body.lume #gn-desk .gn-link i, html.green-mode body.lume #gn-mob .gn-ham-btn i,
html.green-mode body.lume #gn-desk .gn-theme-btn i, html.green-mode body.lume .gn-menu-btn i { color: #ffffff !important; }
html.green-mode body.lume #gn-desk .gn-link:hover, html.green-mode body.lume #gn-desk .gn-theme-btn:hover { background: #6E9A6F !important; border-color: #9DC88D !important; filter: none; }
html.green-mode body.lume #gn-desk .gn-link-logout { background: #ffffff !important; border-color: #ffffff !important; color: #b42318 !important; }
html.green-mode body.lume #gn-desk .gn-link-logout i { color: #b42318 !important; }
html.green-mode body.lume #gn-mob-menu { background: #FFFEFA !important; border-top: 1px solid #E3DCCB !important; }
html.green-mode body.lume #gn-mob-menu a, html.green-mode body.lume #gn-mob-menu button { color: #1F2A26 !important; }

/* menu laterale */
html.green-mode body.lume #gn-side { background: #FFFEFA !important; border-right: 3px solid #164A41 !important; box-shadow: 0 0 0 1px #E3DCCB !important; }
html.green-mode body.lume #gn-side h6 { color: #164A41 !important; }
html.green-mode body.lume #gn-side a { color: #1F2A26 !important; }
html.green-mode body.lume #gn-side a:hover { background: #EEF5E8 !important; }
html.green-mode body.lume #gn-side-bg { background: rgba(22,36,26,.45) !important; }

/* ---------- riquadri: bianco pieno, bordo netto ---------- */
html.green-mode body.lume .card, html.green-mode body.lume .lm-card, html.green-mode body.lume .lm-banner,
html.green-mode body.lume .t2-card, html.green-mode body.lume .up-card, html.green-mode body.lume .op-card {
  background: #FFFEFA !important; background-image: none !important;
  border: 1px solid #E3DCCB !important; box-shadow: 0 1px 2px rgba(22,36,26,.08) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html.green-mode body.lume .lm-banner::before, html.green-mode body.lume .lm-banner::after,
html.green-mode body.lume .lm-card::before, html.green-mode body.lume .lm-card::after { display: none !important; }

/* intestazioni dei riquadri: verde EVI pieno, testo bianco, filo verde ES */
html.green-mode body.lume .card-header,
html.green-mode body.lume .card-header[class*="ch-"],
html.green-mode body.lume .card-header.text-white {
  background: #164A41 !important; background-image: none !important;
  border-bottom: 3px solid #D1B284 !important; box-shadow: none !important;
}
html.green-mode body.lume .card-header, html.green-mode body.lume .card-header h1, html.green-mode body.lume .card-header h2,
html.green-mode body.lume .card-header h3, html.green-mode body.lume .card-header h4, html.green-mode body.lume .card-header h5,
html.green-mode body.lume .card-header h6, html.green-mode body.lume .card-header i, html.green-mode body.lume .card-header small,
html.green-mode body.lume .card-header span:not(.badge), html.green-mode body.lume .card-header a,
html.green-mode body.lume .card-header [style*="color"] { color: #ffffff !important; }
html.green-mode body.lume .card-header .badge { background: #ffffff !important; color: #164A41 !important; border: none !important; }
html.green-mode body.lume .t2-card h2, html.green-mode body.lume .op-card > h2 { background: #164A41 !important; color: #ffffff !important; border-bottom: 3px solid #D1B284 !important; }
html.green-mode body.lume .t2-card h2 i, html.green-mode body.lume .op-card > h2 i, html.green-mode body.lume .t2-card h2 span { color: #ffffff !important; }

/* riepilogo in alto (banner LUME): bianco, numeri pieni */
html.green-mode body.lume .lm-banner .lm-banner-head { border-bottom: 1px solid #E3DCCB !important; }
html.green-mode body.lume .lm-banner .lm-banner-eyebrow, html.green-mode body.lume .lm-banner .lm-tile-label { color: #164A41 !important; }
html.green-mode body.lume .lm-banner .lm-banner-eyebrow .dot { background: #4D774E !important; box-shadow: none !important; }
html.green-mode body.lume .lm-tile-num { text-shadow: none !important; }
html.green-mode body.lume .lm-tile-num.is-energia, html.green-mode body.lume .lm-tile-num.is-energia * { color: #4D774E !important; }
html.green-mode body.lume .lm-banner-grid > .lm-tile + .lm-tile { border-left-color: #E3DCCB !important; }

/* ---------- tabelle ---------- */
html.green-mode body.lume .table, html.green-mode body.lume table { --bs-table-bg: #FFFEFA; color: #1F2A26; }
html.green-mode body.lume .table > thead > tr > th, html.green-mode body.lume thead.table-dark th,
html.green-mode body.lume .table-dark, html.green-mode body.lume .table-dark > th, html.green-mode body.lume table.t2 th,
html.green-mode body.lume .op-tab th, html.green-mode body.lume .up-log th {
  --bs-table-bg: #E3EDD9; background: #E3EDD9 !important; color: #164A41 !important; border-color: #C9DDB9 !important;
}
html.green-mode body.lume .table > tbody > tr > td, html.green-mode body.lume table.t2 td { border-color: #ECE6D7 !important; }
html.green-mode body.lume .table-hover > tbody > tr:hover > td, html.green-mode body.lume tr.macro:hover td { background: #EEF5E8 !important; }
html.green-mode body.lume tr.table-success > td, html.green-mode body.lume tr.table-primary > td, html.green-mode body.lume tr.table-info > td,
html.green-mode body.lume tfoot tr > td, html.green-mode body.lume tr.total > td, html.green-mode body.lume .op-tab tr.cur td {
  --bs-table-bg: #DCEBD1; background: #DCEBD1 !important; color: #1F2A26 !important; font-weight: 700;
}

/* ---------- accenti verde ES: selezioni, pulsanti principali ---------- */
html.green-mode body.lume .periodo-pill.active-pill, html.green-mode body.lume .periodo-pill.active,
html.green-mode body.lume .fm-chip.on, html.green-mode body.lume .t2-mese.on, html.green-mode body.lume .t2v button.on,
html.green-mode body.lume .t2-tb.active, html.green-mode body.lume .op-vista a.on {
  background: #4D774E !important; border-color: #4D774E !important; color: #ffffff !important; box-shadow: none !important;
}
html.green-mode body.lume .fm-chip.on b, html.green-mode body.lume .t2-mese.on small, html.green-mode body.lume .op-vista a.on i { color: #ffffff !important; }
html.green-mode body.lume .btn-success, html.green-mode body.lume .periodo-apply, html.green-mode body.lume .btn-primary,
html.green-mode body.lume .dz-foot .btn-success {
  background: #4D774E !important; border-color: #4D774E !important; color: #ffffff !important; background-image: none !important; box-shadow: none !important;
}
html.green-mode body.lume .btn-success:hover, html.green-mode body.lume .periodo-apply:hover, html.green-mode body.lume .btn-primary:hover { background: #164A41 !important; border-color: #164A41 !important; }
html.green-mode body.lume .progress-bar, html.green-mode body.lume .fm-bar { background: #4D774E !important; }
html.green-mode body.lume .fm-bar.pr { background: #D1B284 !important; }
html.green-mode body.lume a.op-link:hover { color: #4D774E !important; }
html.green-mode body.lume :focus-visible { outline-color: #4D774E !important; }

/* ---------- campi di testo ---------- */
html.green-mode body.lume .form-control, html.green-mode body.lume .form-select,
html.green-mode body.lume input[type="text"], html.green-mode body.lume input[type="search"], html.green-mode body.lume input[type="number"],
html.green-mode body.lume input[type="password"], html.green-mode body.lume input[type="date"], html.green-mode body.lume select, html.green-mode body.lume textarea {
  background-color: #ffffff !important; border-color: #CFC4A6 !important; color: #1F2A26 !important;
}
html.green-mode body.lume .form-control:focus, html.green-mode body.lume select:focus, html.green-mode body.lume input:focus { border-color: #4D774E !important; box-shadow: 0 0 0 2px #9DC88D !important; }

html.green-mode body.lume ::selection { background: #9DC88D; color: #1F2A26; }
html.green-mode body.lume * { scrollbar-color: #B9AE90 #F4F1E8; }

/* ---------- correzioni sul tema chiaro (selettori piu' specifici dei suoi) ---------- */
/* dentro le intestazioni il "testo" e' bianco: le regole del chiaro che usano var(--lm-text-2) per le icone ereditano il bianco */
html.light-mode.green-mode body.lume .card-header { --lm-text: #ffffff; --lm-text-2: #ffffff; --lm-text-3: #E9E3D2; }
html.light-mode.green-mode body.lume .card-header i.fas, html.light-mode.green-mode body.lume .card-header i.far,
html.light-mode.green-mode body.lume .card-header i.fab { color: #ffffff !important; -webkit-text-fill-color: #ffffff; }
/* intestazioni delle tabelle: il chiaro le forza a slate-800 (#1f2937) */
html.light-mode.green-mode body.lume table thead tr th, html.light-mode.green-mode body.lume table thead.table-dark tr th,
html.light-mode.green-mode body.lume .table-dark, html.light-mode.green-mode body.lume .table-dark > th, html.light-mode.green-mode body.lume .table-dark > td,
html.light-mode.green-mode body.lume table .table-dark th, html.light-mode.green-mode body.lume .table > thead > tr > th {
  background-color: #E3EDD9 !important; color: #164A41 !important; border-color: #C9DDB9 !important;
  --bs-table-bg: #E3EDD9; --bs-table-accent-bg: transparent; box-shadow: none !important;
}
html.light-mode.green-mode body.lume table thead tr th i, html.light-mode.green-mode body.lume table thead tr th .sort-icon { color: #4D774E !important; }
/* pillole scure di Bootstrap */
html.light-mode.green-mode body.lume .badge.bg-dark, html.light-mode.green-mode body.lume .badge.bg-secondary { background-color: #164A41 !important; color: #ffffff !important; }
/* indaco/lavanda scritto a mano nelle pagine -> palette */
html.green-mode body.lume [style*="background:rgba(99,102,241"], html.green-mode body.lume [style*="background: rgba(99,102,241"] { background: #EEF5E8 !important; }
html.green-mode body.lume .badge[style*="rgba(99,102,241"] { background: #E3EDD9 !important; color: #164A41 !important; }
html.green-mode body.lume [style*="color:#a5b4fc"], html.green-mode body.lume [style*="color:#818cf8"], html.green-mode body.lume [style*="color:#c7d2fe"],
html.green-mode body.lume [style*="color:#c4b5fd"], html.green-mode body.lume [style*="color: #a5b4fc"], html.green-mode body.lume [style*="color:#6366f1"] { color: #164A41 !important; }
html.green-mode body.lume .card-header [style*="color:#a5b4fc"], html.green-mode body.lume .card-header [style*="color:#c4b5fd"],
html.green-mode body.lume .card-header [style*="color:#c7d2fe"], html.green-mode body.lume .card-header [style*="color:#818cf8"] { color: #ffffff !important; }
/* pulsanti propri delle pagine T2 (verde smeraldo) -> salvia della palette */
html.green-mode body.lume .t2-btn:not(.ghost):not(.del), html.green-mode body.lume #t2-btn { background: #4D774E !important; border-color: #4D774E !important; color: #ffffff !important; }
html.green-mode body.lume .t2-btn:not(.ghost):not(.del):hover, html.green-mode body.lume #t2-btn:hover { background: #164A41 !important; border-color: #164A41 !important; }

/* ---------- v5: colori fuori palette trovati dall'analisi delle pagine (azzurri, blu, viola, grigi freddi) ---------- */
/* Protetta = sabbia scurita (distinta dall'Energia salvia, dentro la palette) */
html.light-mode.green-mode body.lume .lm-tile-num.is-protetta, html.light-mode.green-mode body.lume .lm-tile-num.is-protetta * { color: #8C6D3F !important; }
html.light-mode.green-mode body.lume .lm-tile-num.is-blue, html.light-mode.green-mode body.lume .lm-tile-num.is-blue * { color: #164A41 !important; }
html.light-mode.green-mode body.lume .fm-chip b.p, html.light-mode.green-mode body.lume .fm-chip .p { color: #8C6D3F !important; }
html.light-mode.green-mode body.lume .fm-prodh[style*="#a78bfa"], html.light-mode.green-mode body.lume #fm-pr .fm-prodh { border-left-color: #D1B284 !important; }
html.light-mode.green-mode body.lume #fm-pr .fm-prodh i, html.light-mode.green-mode body.lume #fm-pr .lm-tile-num[style*="#a78bfa"] { color: #8C6D3F !important; }
html.light-mode.green-mode body.lume #fm-en .lm-tile-num[style*="#38bdf8"], html.light-mode.green-mode body.lume #fm-en .fm-prodh i { color: #4D774E !important; }
html.light-mode.green-mode body.lume #fm-en .fm-prodh { border-left-color: #4D774E !important; }
/* azzurri e blu usati come accento nelle pagine */
html.light-mode.green-mode body.lume [style*="color:#38bdf8"], html.light-mode.green-mode body.lume [style*="color: #38bdf8"],
html.light-mode.green-mode body.lume [style*="color:#60a5fa"], html.light-mode.green-mode body.lume [style*="color:#0969da"],
html.light-mode.green-mode body.lume [style*="color:#3b82f6"], html.light-mode.green-mode body.lume [style*="color:#2563eb"],
html.light-mode.green-mode body.lume .stima, html.light-mode.green-mode body.lume .produzione, html.light-mode.green-mode body.lume .sc-val { color: #164A41 !important; }
html.light-mode.green-mode body.lume .est.grand, html.light-mode.green-mode body.lume .sc.sc-tot { border-color: #4D774E !important; }
/* viola / indaco nelle classifiche, link e badge */
html.light-mode.green-mode body.lume [style*="color:#7c3aed"], html.light-mode.green-mode body.lume [style*="color:#6d28d9"], html.light-mode.green-mode body.lume [style*="color:#5b21b6"],
html.light-mode.green-mode body.lume [style*="color:#a78bfa"], html.light-mode.green-mode body.lume [style*="color:#c084fc"], html.light-mode.green-mode body.lume .val,
html.light-mode.green-mode body.lume a[style*="color:#6d28d9"], html.light-mode.green-mode body.lume .rk { color: #164A41 !important; }
html.light-mode.green-mode body.lume .badge[style*="#7c3aed"], html.light-mode.green-mode body.lume .badge[style*="#a5b4fc"], html.light-mode.green-mode body.lume .badge[style*="#6366f1"],
html.light-mode.green-mode body.lume .badge[style*="#58a6ff"], html.light-mode.green-mode body.lume .badge[style*="#4c1d95"],
html.light-mode.green-mode body.lume .pill, html.light-mode.green-mode body.lume .pill.pill-tot {
  background: #E3EDD9 !important; color: #164A41 !important; border-color: #C9DDB9 !important;
}
html.light-mode.green-mode body.lume [style*="background:#7c3aed"], html.light-mode.green-mode body.lume [style*="background: #7c3aed"],
html.light-mode.green-mode body.lume [style*="background:#a5b4fc"], html.light-mode.green-mode body.lume [style*="background:#58a6ff"] { background: #4D774E !important; color: #ffffff !important; }
html.light-mode.green-mode body.lume [style*="border:1px solid #7c3aed"], html.light-mode.green-mode body.lume [style*="border-color:#7c3aed"],
html.light-mode.green-mode body.lume [style*="#a78bfa"][class*="hero"], html.light-mode.green-mode body.lume .am-hero { border-color: #C9DDB9 !important; }
html.light-mode.green-mode body.lume .global-card, html.light-mode.green-mode body.lume [style*="background:#faf5ff"] { background: #FFFEFA !important; }
/* grigi freddi (slate) -> crema/salvia */
html.light-mode.green-mode body.lume .table-striped > tbody > tr:nth-of-type(odd) > *, html.light-mode.green-mode body.lume tr.odd > td,
html.light-mode.green-mode body.lume .odd { --bs-table-accent-bg: #FAF8F2; background-color: #FAF8F2 !important; }
html.light-mode.green-mode body.lume tr.table-primary > td, html.light-mode.green-mode body.lume .table-primary,
html.light-mode.green-mode body.lume [style*="background:#eff6ff"] { --bs-table-bg: #DCEBD1; background-color: #DCEBD1 !important; color: #1F2A26 !important; }
html.light-mode.green-mode body.lume .btn-sm:not(.btn-success):not(.btn-danger):not(.btn-warning):not(.periodo-apply):not(.active-pill):not(.dz-open),
html.light-mode.green-mode body.lume .periodo-quick, html.light-mode.green-mode body.lume .btn-light, html.light-mode.green-mode body.lume .btn-outline-secondary {
  background: #FFFEFA !important; border-color: #CFC4A6 !important; color: #164A41 !important;
}
html.light-mode.green-mode body.lume .periodo-quick:hover, html.light-mode.green-mode body.lume .btn-outline-secondary:hover { background: #EEF5E8 !important; }
html.light-mode.green-mode body.lume .dz-open, html.light-mode.green-mode body.lume .t2v-l { background: #FFFEFA !important; border-color: #CFC4A6 !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume .t2v button:not(.on) { background: #FFFEFA !important; color: #164A41 !important; border-color: #CFC4A6 !important; }
html.light-mode.green-mode body.lume .gn-side-close, html.light-mode.green-mode body.lume [style*="background:#f6f8fa"], html.light-mode.green-mode body.lume [style*="background:#f4f6f9"] { background: #F4F1E8 !important; }
html.light-mode.green-mode body.lume .op-tile, html.light-mode.green-mode body.lume .op-card, html.light-mode.green-mode body.lume .up-card,
html.light-mode.green-mode body.lume .t2-card, html.light-mode.green-mode body.lume .card, html.light-mode.green-mode body.lume .fm-opsede { border-color: #E3DCCB !important; }
html.light-mode.green-mode body.lume .op-tile { background: #F9F7F1 !important; }
html.light-mode.green-mode body.lume .up-list a.sel { background: #EEF5E8 !important; border-color: #4D774E !important; }
html.light-mode.green-mode body.lume .up-pill.l { background: #E3EDD9 !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume .up-pill.m { background: #4D774E !important; color: #ffffff !important; }
html.light-mode.green-mode body.lume .up-seg input:checked + span.v1 { background: #E3EDD9 !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume .up-seg input:checked + span.v2 { background: #4D774E !important; color: #ffffff !important; }
html.light-mode.green-mode body.lume .up-btn.pri { background: #4D774E !important; border-color: #4D774E !important; color: #ffffff !important; }
html.light-mode.green-mode body.lume .t2-badge.on { background: #E3EDD9 !important; color: #164A41 !important; }

/* ---------- v6: check di tutte le pagine (badge e pulsanti propri delle singole pagine) ---------- */
html.light-mode.green-mode body.lume #gn-desk .gn-menu-btn, html.light-mode.green-mode body.lume #gn-desk .gn-theme-btn { background: #4D774E !important; border-color: #6E9A6F !important; color: #ffffff !important; }
/* link e testi blu/viola/fucsia scritti nelle pagine di gestione */
html.light-mode.green-mode body.lume [style*="color:#1d4ed8"], html.light-mode.green-mode body.lume [style*="color:#0369a1"],
html.light-mode.green-mode body.lume [style*="color:#e879f9"], html.light-mode.green-mode body.lume [style*="color:#06b6d4"],
html.light-mode.green-mode body.lume [style*="color:#22d3ee"], html.light-mode.green-mode body.lume [style*="color:#93c5fd"],
html.light-mode.green-mode body.lume .resa, html.light-mode.green-mode body.lume .num.col-oggi, html.light-mode.green-mode body.lume .g-section-kicker,
html.light-mode.green-mode body.lume h3[style*="#0969da"], html.light-mode.green-mode body.lume .podio-pts { color: #164A41 !important; }
/* badge e etichette */
html.light-mode.green-mode body.lume .badge-struttura, html.light-mode.green-mode body.lume .badge-tipo, html.light-mode.green-mode body.lume .rule-badge,
html.light-mode.green-mode body.lume .badge-crm, html.light-mode.green-mode body.lume .badge.bg-info, html.light-mode.green-mode body.lume .badge.bg-primary,
html.light-mode.green-mode body.lume .badge.bg-light {
  background: #E3EDD9 !important; color: #164A41 !important; border-color: #C9DDB9 !important;
}
html.light-mode.green-mode body.lume .badge-num, html.light-mode.green-mode body.lume .aa-op-avatar, html.light-mode.green-mode body.lume .qbtn.active,
html.light-mode.green-mode body.lume .struttura-tab-btn.active .badge, html.light-mode.green-mode body.lume .badge[style*="#58a6ff"] {
  background: #4D774E !important; color: #ffffff !important; border-color: #4D774E !important;
}
html.light-mode.green-mode body.lume .struttura-tab-btn { color: #164A41 !important; border-color: #E3DCCB !important; }
html.light-mode.green-mode body.lume .struttura-tab-btn.active { border-color: #4D774E !important; background: #EEF5E8 !important; }
html.light-mode.green-mode body.lume .qbtn { border-color: #CFC4A6 !important; }
/* fisarmoniche, gruppi, riquadri riepilogo */
html.light-mode.green-mode body.lume .accordion-button, html.light-mode.green-mode body.lume .accordion-button.collapsed { background: #FAF8F2 !important; color: #164A41 !important; box-shadow: none !important; }
html.light-mode.green-mode body.lume .accordion-button:not(.collapsed) { background: #E3EDD9 !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume .accordion-item { border-color: #E3DCCB !important; }
html.light-mode.green-mode body.lume .group-header { background: #F4F1E8 !important; border-color: #E3DCCB !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume .upd-badge { background: #F4F1E8 !important; border-color: #E3DCCB !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume .sc, html.light-mode.green-mode body.lume .sc.sc-tot { border-color: #C9DDB9 !important; }
html.light-mode.green-mode body.lume .sc.sc-tot { background: #DCEBD1 !important; }
html.light-mode.green-mode body.lume code { background: #F4F1E8 !important; color: #8C6D3F !important; }
html.light-mode.green-mode body.lume strong[style*="#a78bfa"], html.light-mode.green-mode body.lume [style*="color:#a78bfa"] { color: #8C6D3F !important; }
html.light-mode.green-mode body.lume .rule-badge.rule-ok, html.light-mode.green-mode body.lume [class*="rule-ok"] { border-color: #4D774E !important; }

/* ---------- v7: ultimi residui del check ---------- */
html.light-mode.green-mode body.lume [style*="background:rgba(165,180,252"] { background: #E3EDD9 !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume .breakdown-item, html.light-mode.green-mode body.lume .pf-acc-btn,
html.light-mode.green-mode body.lume .up-btn:not(.pri) { background: #FAF8F2 !important; border-color: #E3DCCB !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume .sc.sc-sw-net, html.light-mode.green-mode body.lume [class*="sc-sw"] { background: #EEF5E8 !important; border-color: #C9DDB9 !important; }
html.light-mode.green-mode body.lume .imp-card, html.light-mode.green-mode body.lume .ar-tooltip { border-color: #E3DCCB !important; }
html.light-mode.green-mode body.lume .big-num, html.light-mode.green-mode body.lume .str-title,
html.light-mode.green-mode body.lume .breadcrumb a, html.light-mode.green-mode body.lume .breadcrumb-item.active { color: #164A41 !important; }
html.light-mode.green-mode body.lume .pwd-bar-wrap { background: #E3DCCB !important; }
html.light-mode.green-mode body.lume .badge:not([class*="bg-"]):not([style]) { background: #4D774E; color: #ffffff; }
html.light-mode.green-mode body.lume h3[style*="color"], html.light-mode.green-mode body.lume .ag-title { color: #164A41 !important; }

/* ---------- v8 (01/10 pomeriggio): mega check su 35 pagine, residui fuori palette ---------- */
/* titoli e link blu del tema chiaro (Produzione Agenzie, Import Agenzie, Utenti) */
html.light-mode.green-mode body.lume .card > h2, html.light-mode.green-mode body.lume .card > h3,
html.light-mode.green-mode body.lume .group-header small, html.light-mode.green-mode body.lume p > a[href="gestione_area_manager.php"] { color: #164A41 !important; }
/* grigi freddi chiari -> crema / sabbia */
html.light-mode.green-mode body.lume .funnel-split-item, html.light-mode.green-mode body.lume .stat-box,
html.light-mode.green-mode body.lume a.mc-tab:not(.active):not(.on), html.light-mode.green-mode body.lume .mp-actions { background: #F9F7F1 !important; }
html.light-mode.green-mode body.lume .funnel-stacked-bar, html.light-mode.green-mode body.lume .prog-bar,
html.light-mode.green-mode body.lume .progress-am, html.light-mode.green-mode body.lume .sb-bar { background-color: #ECE6D7 !important; }
html.light-mode.green-mode body.lume .pf-accordion, html.light-mode.green-mode body.lume .up-save, html.light-mode.green-mode body.lume .imp-info,
html.light-mode.green-mode body.lume .stat-card, html.light-mode.green-mode body.lume .str-card,
html.light-mode.green-mode body.lume .form-control-sm { border-color: #E3DCCB !important; }
html.light-mode.green-mode body.lume .sz-open { background: #FFFEFA !important; border-color: #CFC4A6 !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume #tbl-target tfoot tr, html.light-mode.green-mode body.lume #tbl-target tfoot tr > td { background: #DCEBD1 !important; }
/* badge: numeri agenzie (azzurri) e nomi AM in Utenti (grigi) */
html.light-mode.green-mode body.lume td > span.badge[style*="88,166,255"] { background: #E3EDD9 !important; color: #164A41 !important; }   /* power (Produzione Agenzie) */
html.light-mode.green-mode body.lume td > span.badge[style*="255,166,0"] { background: #F3E9D6 !important; color: #8C6D3F !important; }   /* gas */
html.light-mode.green-mode body.lume [style*="background:#1c2333"] { background: #ECE6D7 !important; color: #164A41 !important; }   /* badge nomi AM in Utenti */
/* Switchout: lavorazione selezionata */
html.light-mode.green-mode body.lume .sw-seg a.on { background: #E3EDD9 !important; border-color: #4D774E !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume .sw-seg a.on .n { background: #4D774E !important; color: #fff !important; }
html.light-mode.green-mode body.lume .sw-seg a.on small { color: #4D774E !important; }
/* Impostazioni (cambio password) */
html.light-mode.green-mode body.lume .imp-title, html.light-mode.green-mode body.lume .imp-title i { color: #164A41 !important; }
html.light-mode.green-mode body.lume .imp-subtitle { color: #5E6B62 !important; }
html.light-mode.green-mode body.lume .imp-btn { background: #4D774E !important; border-color: #4D774E !important; color: #fff !important; box-shadow: none !important; }
/* RCU: Protetta in sabbia come nel resto del tema */
html.light-mode.green-mode body.lume .sc.sc-prot { background: #F7F1E6 !important; border-color: #D1B284 !important; }
html.light-mode.green-mode body.lume .sb-dot-prot { color: #8C6D3F !important; }
html.light-mode.green-mode body.lume .sb-seg.sb-prot, html.light-mode.green-mode body.lume .sb-prot { background: #8C6D3F !important; }
/* loghi brand nella tabella Brand (bordo ciano 5G / viola Protetta) */
html.light-mode.green-mode body.lume .brand-logo { border-color: #E3DCCB !important; }   /* il bordo era il colore del brand (ciano 5G, viola Protetta) */
/* Chiamate (prima/ultima): azzurro -> verde */
html.light-mode.green-mode body.lume .pu-scope { color: #164A41 !important; border-color: #4D774E !important; background: #E3EDD9 !important; }
html.light-mode.green-mode body.lume .pu-head h1 i, html.light-mode.green-mode body.lume .pu-card-head h3 i { color: #4D774E !important; }
/* Resa AM: podio primo posto */
html.light-mode.green-mode body.lume .gam-pod.p1 { border-color: #D1B284 !important; box-shadow: 0 0 0 1px #D1B284 !important; }
html.light-mode.green-mode body.lume .me-badge { background: #E3EDD9 !important; color: #164A41 !important; }
/* Classifiche AM: viola -> petrolio */
html.light-mode.green-mode body.lume .global-card { border-color: #4D774E !important; }
html.light-mode.green-mode body.lume .str-total-badge { background: #E3EDD9 !important; border-color: #4D774E !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume .podio-badge { color: #164A41 !important; background: #E3EDD9 !important; }
/* Report giornaliero agenzie: viola dell'indicatore operatori e dei tooltip */
html.light-mode.green-mode body.lume .ar-tooltip strong { color: #9DC88D !important; }
html.light-mode.green-mode body.lume .kpi-op .kpi-value, html.light-mode.green-mode body.lume .kpi-op .kpi-icon-bg { color: #4D774E !important; }
html.light-mode.green-mode body.lume .bar-op { background: #4D774E !important; }
html.light-mode.green-mode body.lume .section-title .pill.op { background: #E3EDD9 !important; color: #164A41 !important; }
html.light-mode.green-mode body.lume input.form-control.form-control-sm, html.light-mode.green-mode body.lume .content-box { border-color: #E3DCCB !important; }
html.light-mode.green-mode body.lume .funnel-result { background: #F9F7F1 !important; }
html.light-mode.green-mode body.lume #tb_wrapper .dataTables_filter input, html.light-mode.green-mode body.lume #tb_strutture_wrapper .dataTables_filter input { border-color: #CFC4A6 !important; background: #FFFEFA !important; }   /* ricerca tabelle (regola con id del tema chiaro) */

/* ---------- v9 (01/10): sfumature fuori palette (barre e pulsanti a gradiente) -> tinte piene della palette ---------- */
/* Classifiche AM */
html.light-mode.green-mode body.lume .progress-am .fill { background: #4D774E !important; }
html.light-mode.green-mode body.lume .am-hero { background: #FFFEFA !important; border-color: #E3DCCB !important; }
html.light-mode.green-mode body.lume .global-card-header { background: #E3EDD9 !important; border-color: #CFC4A6 !important; }
html.light-mode.green-mode body.lume .str-card-header { background: #F1F6EC !important; border-color: #E3DCCB !important; }
/* Point / negozio: barre andamento */
html.light-mode.green-mode body.lume .ng-bar { background: #4D774E !important; }
/* pulsanti azzurri/viola: Filtra (Switchout), Mese (Resa AM), Chiamate, control, Report agenzie */
html.light-mode.green-mode body.lume .sw-btn:not(.ghost), html.light-mode.green-mode body.lume .gam-tb.active,
html.light-mode.green-mode body.lume .pu-vbtn.active, html.light-mode.green-mode body.lume .pu-filter-bar button,
html.light-mode.green-mode body.lume .b-run, html.light-mode.green-mode body.lume .dl-gas { background: #4D774E !important; border-color: #4D774E !important; color: #fff !important; box-shadow: none !important; }
html.light-mode.green-mode body.lume .b-sw, html.light-mode.green-mode body.lume .btn-audit { background: #164A41 !important; border-color: #164A41 !important; color: #fff !important; box-shadow: none !important; }
/* Dashboard, tabella Brand: barre col colore del brand (ciano 5G, viola Protetta) */
html.light-mode.green-mode body.lume [style*="linear-gradient(90deg,#06b6d4"] { background: #9DC88D !important; }
html.light-mode.green-mode body.lume [style*="linear-gradient(90deg,#a855f7"] { background: #8C6D3F !important; }
html.light-mode.green-mode body.lume .am-hero::before { display: none !important; }   /* alone viola decorativo */
html.light-mode.green-mode body.lume .rfbar { background: #E3EDD9 !important; }
html.light-mode.green-mode body.lume .rfbar-fill, html.light-mode.green-mode body.lume .rfbar > div { background: #4D774E !important; }   /* barra di aggiornamento in alto */
html.light-mode.green-mode body.lume .pf-hero::before { display: none !important; }   /* RCU: alone decorativo (il tema verde non usa bagliori) */
html.light-mode.green-mode body.lume .sc-prot::after { background: #8C6D3F !important; }   /* RCU: filo viola sotto la card Protetta */
