/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/*
 * Tableaux compacts partout (demande client 2026-10-18) : la hauteur de ligne
 * de la liste des factures fournisseurs (#611) — cellules à 4 px en haut et en
 * bas, lignes d'au moins 2,25 rem, en-têtes à 6 px. Cette feuille n'est pas
 * dans une couche (@layer) : elle passe devant les utilitaires Tailwind des
 * cellules (py-2, py-3, py-4…) sans les réécrire un à un.
 * Restent aérés : les cellules sur plusieurs colonnes (message « Aucun… »,
 * détail déplié) et un tableau marqué data-table-roomy ; plus serré : un
 * tableau marqué data-table-dense (ci-dessous).
 */
main table:not([data-table-roomy]) > thead > tr > th {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

main table:not([data-table-roomy]) > tbody > tr > td:not([colspan]),
main table:not([data-table-roomy]) > tbody > tr > th:not([colspan]),
main table:not([data-table-roomy]) > tfoot > tr > td:not([colspan]) {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

main table:not([data-table-roomy]) > tbody > tr {
  height: 2.25rem;
}

/*
 * Grilles de saisie façon tableur (lignes d'un devis, comme le DPGF Excel) :
 * data-table-dense — lignes à la hauteur de leur contenu, cellules à 2 px.
 */
main table[data-table-dense] > tbody > tr {
  height: auto;
}

main table[data-table-dense] > tbody > tr > td:not([colspan]),
main table[data-table-dense] > tfoot > tr > td:not([colspan]) {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
