/**
 * Contrasti leggibili sulle pagine ERP scure.
 *
 * Causa tipica: Bootstrap 5 tiene --bs-body-color / --bs-table-striped-color
 * sul tema chiaro (#212529) anche se body { color: #e0e0e0 }.
 * Sulle righe alternate (table-striped) il testo resta scuro su sfondo scuro
 * (es. Performance per categoria → riga Pizze, colonne €).
 */

/* Body delle pagine operative dark */
body[class*="-dark"],
body.pagina-margini-categoria,
body.pagina-cruscotto-master,
body.pagina-food-cost-piatti,
body.pagina-giacenza-teorica,
body.pagina-indice-storico,
body.pagina-preventivi-fornitori,
body.pagina-storico-prezzi,
body.pagina-cruscotto-acquisti,
body.pagina-scarico-pos,
body.pagina-centro-operativo,
body.pagina-distinta-base,
body.pagina-fc-hub,
body.pagina-dashboard-griglia,
body.fc-sub-app,
body.conv-pdf-xml,
body.bonifa-page {
    --bs-body-color: #e8e8e8;
    --bs-body-color-rgb: 232, 232, 232;
    --bs-secondary-color: rgba(232, 232, 232, 0.75);
    --bs-tertiary-color: rgba(232, 232, 232, 0.55);
    --bs-emphasis-color: #ffffff;
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-bg: #2a2a2a;
    --bs-tertiary-bg: #1e1e1e;
    --bs-border-color: #444444;
}

/* Tabelle: striped / hover con testo chiaro (variabili Bootstrap 5.3) */
body[class*="-dark"] .table,
body.pagina-margini-categoria .table,
body.pagina-cruscotto-master .table,
body.pagina-food-cost-piatti .table,
body.pagina-giacenza-teorica .table,
body.pagina-indice-storico .table,
body.pagina-preventivi-fornitori .table,
body.pagina-storico-prezzi .table,
body.pagina-cruscotto-acquisti .table,
body.pagina-scarico-pos .table,
body.pagina-centro-operativo .table,
body.pagina-distinta-base .table,
body.pagina-fc-hub .table,
body.pagina-dashboard-griglia .table,
body.fc-sub-app .table,
body.conv-pdf-xml .table,
body.bonifa-page .table {
    --bs-table-color: #e8e8e8;
    --bs-table-striped-color: #e8e8e8;
    --bs-table-hover-color: #ffffff;
    --bs-table-active-color: #ffffff;
    --bs-table-striped-bg: rgba(255, 255, 255, 0.055);
    --bs-table-hover-bg: rgba(255, 255, 255, 0.1);
    --bs-table-active-bg: rgba(255, 255, 255, 0.12);
    --bs-table-border-color: #444;
}
