/* TRADIM on Tabler: brand red as primary, Inter, light theme only. */
:root, [data-bs-theme=light] {
  --tblr-primary: #e30613;
  --tblr-primary-rgb: 227, 6, 19;
  --tblr-primary-text-emphasis: #8c040c;
  --tblr-primary-bg-subtle: #fdecee;
  --tblr-primary-border-subtle: #f7a8ad;
  --tblr-primary-darken: #b8050f;
  --tblr-primary-lt: #fdecee;
  --tblr-primary-lt-rgb: 253, 236, 238;
  --tblr-font-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --tblr-link-color: #e30613;
  --tblr-link-color-rgb: 227, 6, 19;
  --tblr-link-hover-color: #b8050f;
}
.btn-primary { --tblr-btn-bg: #e30613; --tblr-btn-border-color: #e30613; --tblr-btn-hover-bg: #b8050f;
  --tblr-btn-hover-border-color: #b8050f; --tblr-btn-active-bg: #b8050f; --tblr-btn-active-border-color: #b8050f;
  --tblr-btn-disabled-bg: #e30613; --tblr-btn-disabled-border-color: #e30613; }
.btn-outline-primary { --tblr-btn-color: #e30613; --tblr-btn-border-color: #e30613; --tblr-btn-hover-bg: #e30613;
  --tblr-btn-hover-border-color: #e30613; --tblr-btn-active-bg: #b8050f; }
.form-control:focus, .form-select:focus, .ts-wrapper.focus .ts-control {
  border-color: #f7a8ad; box-shadow: 0 0 0 .25rem rgba(227, 6, 19, .15); }
.form-check-input:checked { background-color: #e30613; border-color: #e30613; }

/* Sidebar */
.navbar-vertical .navbar-brand img { height: 44px; width: auto; }
.navbar-vertical .nav-link.active, .navbar-vertical .nav-item.active > .nav-link { color: #e30613; font-weight: 600; }
.navbar-vertical .nav-link.active .nav-link-icon { color: #e30613; }
.navbar-vertical { border-right: 1px solid var(--tblr-border-color); }
.page-header .page-pretitle a { color: inherit; }

/* Figures */
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kpi .h1 { font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; font-size: 1.5rem; }
.kpi-main .h1 { font-size: 2rem; }
.kpi-unite { font-size: .75rem; font-weight: 500; color: #667382; margin-left: .35rem; letter-spacing: 0; }
.graphe { position: relative; height: 16rem; }

/* Quote lines */
.lignes-vente td { min-width: 6.5rem; vertical-align: top; }
.lignes-vente td.produit { min-width: 16rem; }
.lignes-vente .champ-delete { display: none; }
.ts-wrapper.form-select, .ts-wrapper.form-control { padding: 0; }

/* Tom Select dropdown lives on <body>: must sit above Tabler cards, sticky header, modals (1055). */
.ts-dropdown { z-index: 2000; background: #fff; }
