/* ============================================================
   fix-fonts.css — Correction globale rendu + tailles
   À inclure dans header.php APRÈS layout.css
   ============================================================ */

/* ─── Anti-aliasing global ─── */
html, body, * {
  -webkit-font-smoothing : antialiased !important;
  !important;
  font-synthesis         : none        !important;
}

/* ─── Tailles réduites globalement ─── */
body { font-size: 13px; }

/* ─── Tableaux — tailles réduites + pas de saut de ligne ─── */
.data-table { font-size: 12px; }

.data-table th {
  font-size  : 10px;
  padding    : 8px 12px;
  font-weight: 500;
}

.data-table td {
  font-size  : 12px;
  padding    : 8px 12px;
  white-space: nowrap;
  font-weight: 400;
}

/* Première colonne : tronquer si trop long */
.data-table td:first-child {
  max-width     : 160px;
  overflow      : hidden;
  text-overflow : ellipsis;
  white-space   : nowrap;
}

/* ─── Supprimer font-mono partout — remplacer par police normale ─── */


/* ─── Montants dans les tableaux ─── */
.data-table td[style*="font-weight:600"],
.data-table td[style*="font-weight:700"] {
  font-weight: 500 !important;
}

/* ─── Badges ─── */
.badge {
  white-space: nowrap;
  font-size  : 11px;
}

/* ─── Textes trop grands ─── */
.stat-card-value { font-size: 20px; }
.page-header h1  { font-size: 20px; }

/* ─── Fournisseur / libellés longs dans tables ─── */
.data-table td div[style*="max-width"],
.data-table td div[style*="overflow"] {
  max-width     : 150px;
  overflow      : hidden;
  text-overflow : ellipsis;
  white-space   : nowrap;
}


/* Montants nets */
/* font-mono supprime */
