/* ═══════════════════════════════════════════════════════════════
   GESTION BTP — Custom Filament Theme
   Design professionnel pour application de gestion BTP
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Font Import ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables globales ──────────────────────────────────────── */
:root {
    --btp-sidebar-bg: #0f172a;
    --btp-sidebar-hover: #1e293b;
    --btp-sidebar-active: rgba(245, 158, 11, 0.15);
    --btp-sidebar-active-border: #f59e0b;
    --btp-sidebar-text: #94a3b8;
    --btp-sidebar-text-active: #f8fafc;
    --btp-sidebar-group: #64748b;
    --btp-topbar-bg: #ffffff;
    --btp-radius: 0.75rem;
    --btp-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --btp-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --btp-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* ── Police globale ─────────────────────────────────────────── */
* {
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif !important;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════ */

/* Fond de la sidebar */
.fi-sidebar {
    background: var(--btp-sidebar-bg) !important;
    border-right: 1px solid rgba(255,255,255,0.05) !important;
}

/* Header sidebar (brand) */
.fi-sidebar-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 1px solid rgba(245, 158, 11, 0.3) !important;
    padding: 1.25rem 1rem !important;
}

/* Nom de la marque */
.fi-brand-name {
    color: #f8fafc !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
    letter-spacing: 0.025em !important;
}

/* Navigation items - base */
.fi-sidebar-item-button {
    border-radius: 0.5rem !important;
    margin: 0.125rem 0.5rem !important;
    transition: all 0.15s ease !important;
    color: var(--btp-sidebar-text) !important;
}

.fi-sidebar-item-button:hover {
    background-color: var(--btp-sidebar-hover) !important;
    color: #f8fafc !important;
}

/* Item actif */
.fi-sidebar-item-button.fi-active,
.fi-sidebar-item-button[aria-current="page"] {
    background-color: var(--btp-sidebar-active) !important;
    border-left: 3px solid var(--btp-sidebar-active-border) !important;
    color: #fbbf24 !important;
    font-weight: 600 !important;
}

/* Icônes sidebar */
.fi-sidebar-item-icon {
    color: inherit !important;
    opacity: 0.85;
}

/* Groupes de navigation */
.fi-sidebar-group-label {
    color: var(--btp-sidebar-group) !important;
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 0.75rem 1rem 0.25rem !important;
}

/* Bouton collapse du groupe */
.fi-sidebar-group-collapse-button {
    color: var(--btp-sidebar-group) !important;
}

.fi-sidebar-group-collapse-button:hover {
    color: #f8fafc !important;
}

/* Scrollbar sidebar */
.fi-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.fi-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}
.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

/* ══════════════════════════════════════════════════════════════
   TOPBAR / HEADER
══════════════════════════════════════════════════════════════ */

.fi-topbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08) !important;
    backdrop-filter: blur(8px) !important;
}

.fi-topbar nav {
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

/* ══════════════════════════════════════════════════════════════
   CONTENU PRINCIPAL
══════════════════════════════════════════════════════════════ */

.fi-main {
    background: #f1f5f9 !important;
}

.fi-body {
    background: #f1f5f9 !important;
}

/* Page header */
.fi-header {
    background: transparent !important;
}

.fi-page-header-heading {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    letter-spacing: -0.025em !important;
}

.fi-page-header-subheading {
    color: #64748b !important;
    font-size: 0.875rem !important;
}

/* ══════════════════════════════════════════════════════════════
   TABLES — Style Professionnel BTP
══════════════════════════════════════════════════════════════ */

/* ── Conteneur global ── */
.fi-ta-ctn {
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.10) !important;
    border: 1px solid #e2e8f0 !important;
    overflow: hidden !important;
    background: #fff !important;
}

/* ── Toolbar (recherche + filtres + bouton créer) ── */
.fi-ta-header-toolbar {
    background: #fff !important;
    border-bottom: 2px solid #1e3a5f !important;
    padding: 10px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

/* Barre de recherche */
.fi-ta-search-field input,
.fi-ta-search-field .fi-input {
    border-radius: 6px !important;
    border: 1px solid #d1d5db !important;
    font-size: 0.82rem !important;
    padding: 6px 10px !important;
    background: #f8fafc !important;
    color: #1e293b !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.fi-ta-search-field input:focus,
.fi-ta-search-field .fi-input:focus {
    border-color: #1e3a5f !important;
    box-shadow: 0 0 0 3px rgba(30,58,95,.10) !important;
    background: #fff !important;
}

/* Bouton filtres */
.fi-ta-filters-toggle-btn {
    background: #eff6ff !important;
    color: #1e3a5f !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 6px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    padding: 5px 12px !important;
}
.fi-ta-filters-toggle-btn:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
}

/* Zone filtres ouverts */
.fi-ta-filters-form {
    background: #f0f4ff !important;
    border-bottom: 1px solid #c7d7f8 !important;
    padding: 10px 16px !important;
}

/* ── Entêtes de colonnes ── */
.fi-ta-header-cell,
th.fi-ta-header-cell {
    background: #1e3a5f !important;
    color: #e2e8f0 !important;
    font-size: 0.70rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    border-bottom: 2px solid rgba(255,255,255,.12) !important;
    border-right: 1px solid rgba(255,255,255,.06) !important;
    padding: 10px 14px !important;
    white-space: nowrap !important;
}

/* Forcer le blanc sur TOUS les éléments enfants des entêtes */
.fi-ta-header-cell *,
th.fi-ta-header-cell *,
.fi-ta-header-cell span,
.fi-ta-header-cell button,
.fi-ta-header-cell div,
.fi-ta-header-cell label,
.fi-ta-header-cell a,
.fi-ta-header-cell p {
    color: #e2e8f0 !important;
    font-size: 0.70rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}

/* Flèche de tri — bleu clair pour se distinguer du texte */
.fi-ta-header-cell svg,
.fi-ta-header-cell .fi-ta-header-cell-sort-icon,
th.fi-ta-header-cell svg {
    color: #93c5fd !important;
    fill: #93c5fd !important;
    opacity: 1 !important;
    flex-shrink: 0 !important;
}

.fi-ta-header-cell:hover,
th.fi-ta-header-cell:hover {
    background: #243b5a !important;
}
.fi-ta-header-cell:hover *,
th.fi-ta-header-cell:hover * {
    color: #fff !important;
}

/* Colonne triée active */
.fi-ta-header-cell[aria-sort],
th.fi-ta-header-cell[aria-sort] {
    background: #16305a !important;
}
.fi-ta-header-cell[aria-sort] *,
th.fi-ta-header-cell[aria-sort] * {
    color: #fbbf24 !important;
}
.fi-ta-header-cell[aria-sort] svg,
th.fi-ta-header-cell[aria-sort] svg {
    color: #fbbf24 !important;
    fill: #fbbf24 !important;
}

/* Checkbox dans l'entête */
.fi-ta-header-cell input[type="checkbox"] {
    accent-color: #fbbf24 !important;
}

/* ── Lignes de données ── */
.fi-ta-row {
    transition: background-color 0.12s !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

/* Lignes paires — effet zébré doux */
.fi-ta-row:nth-child(even) td,
.fi-ta-row:nth-child(even) .fi-ta-cell {
    background: #fafbfd !important;
}

/* Hover — bleu très clair */
.fi-ta-row:hover td,
.fi-ta-row:hover .fi-ta-cell {
    background: #eff6ff !important;
}

/* ── Cellules ── */
.fi-ta-cell {
    padding: 9px 14px !important;
    color: #334155 !important;
    font-size: 0.825rem !important;
    vertical-align: middle !important;
    border-right: 1px solid #f8fafc !important;
}

/* Texte principal dans cellule (TextColumn) */
.fi-ta-col-column .fi-ta-text-item-label {
    font-size: 0.825rem !important;
    color: #1e293b !important;
    font-weight: 500 !important;
}

/* Description secondaire */
.fi-ta-col-column .fi-ta-text-item-description {
    font-size: 0.72rem !important;
    color: #94a3b8 !important;
    margin-top: 1px !important;
}

/* Montants monétaires */
.fi-ta-col-column .fi-ta-text-item-label[style*="money"],
.fi-ta-col-column .fi-money {
    font-variant-numeric: tabular-nums !important;
    font-weight: 700 !important;
}

/* ── Colonne actions ── */
.fi-ta-actions-cell {
    padding: 6px 10px !important;
    white-space: nowrap !important;
}

/* Boutons d'action dans les lignes */
.fi-ta-row .fi-btn,
.fi-ta-row .fi-ac-btn-action {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    letter-spacing: .01em !important;
}
.fi-ta-row .fi-btn:hover {
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.12) !important;
}

/* Bouton Edit — bleu doux */
.fi-ta-row .fi-btn-color-gray {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}
.fi-ta-row .fi-btn-color-gray:hover {
    background: #e2e8f0 !important;
    color: #1e293b !important;
}

/* Bouton Fiche — bleu marine */
.fi-ta-row .fi-btn-color-info {
    background: #eff6ff !important;
    color: #1d4ed8 !important;
    border: 1px solid #bfdbfe !important;
}
.fi-ta-row .fi-btn-color-info:hover {
    background: #dbeafe !important;
}

/* Bouton Delete — rouge doux */
.fi-ta-row .fi-btn-color-danger {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
}
.fi-ta-row .fi-btn-color-danger:hover {
    background: #fee2e2 !important;
}

/* ── Sélection de lignes (checkbox) ── */
.fi-ta-row.fi-ta-row-selected td,
.fi-ta-row[data-selected="true"] td {
    background: #eff6ff !important;
}
.fi-ta-cell input[type="checkbox"],
.fi-ta-header-cell input[type="checkbox"] {
    accent-color: #1e3a5f !important;
    width: 14px !important;
    height: 14px !important;
}

/* ── Zone bulk actions ── */
.fi-ta-bulk-actions {
    background: #1e3a5f !important;
    padding: 8px 16px !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
}
.fi-ta-bulk-actions .fi-btn {
    background: rgba(255,255,255,.12) !important;
    color: #e2e8f0 !important;
    border: 1px solid rgba(255,255,255,.2) !important;
    font-size: 0.75rem !important;
}
.fi-ta-bulk-actions .fi-btn:hover {
    background: rgba(255,255,255,.22) !important;
}

/* ── Footer pagination ── */
.fi-ta-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    padding: 8px 16px !important;
}

/* Boutons pagination */
.fi-ta-footer .fi-pagination-item button,
.fi-ta-footer nav button {
    font-size: 0.78rem !important;
    padding: 4px 9px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    background: #fff !important;
}
.fi-ta-footer .fi-pagination-item button:hover,
.fi-ta-footer nav button:hover {
    background: #eff6ff !important;
    color: #1e3a5f !important;
    border-color: #bfdbfe !important;
}
.fi-ta-footer [data-active="true"] button,
.fi-ta-footer .fi-pagination-item--active button {
    background: #1e3a5f !important;
    color: #fff !important;
    border-color: #1e3a5f !important;
}

/* Compteur "X résultats" */
.fi-ta-footer .fi-ta-pagination-records-per-page-select,
.fi-ta-footer select {
    font-size: 0.78rem !important;
    border-radius: 4px !important;
    border-color: #e2e8f0 !important;
    padding: 3px 6px !important;
    color: #475569 !important;
    background: #fff !important;
}

/* ── État vide ── */
.fi-ta-empty-state {
    padding: 3rem !important;
    text-align: center !important;
}
.fi-ta-empty-state-heading {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    color: #475569 !important;
    margin-bottom: 4px !important;
}
.fi-ta-empty-state-description {
    font-size: 0.82rem !important;
    color: #94a3b8 !important;
}

/* ── Badges dans les tables ── */
.fi-ta-cell .fi-badge {
    font-size: 0.68rem !important;
    padding: 2px 8px !important;
    font-weight: 700 !important;
    letter-spacing: .04em !important;
    border-radius: 4px !important;
}

/* ── Image / Avatar column ── */
.fi-ta-cell .fi-ta-image-item img {
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0,0,0,.1) !important;
}

/* ── Groupement de lignes ── */
.fi-ta-row-group-header td {
    background: #f0f4ff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #1e3a5f !important;
    text-transform: uppercase !important;
    letter-spacing: .06em !important;
    padding: 6px 14px !important;
    border-left: 3px solid #1e3a5f !important;
}

/* ── Colonne numérique (right-align) ── */
.fi-ta-cell.text-right .fi-ta-text-item-label,
.fi-ta-col-align-right .fi-ta-text-item-label {
    font-variant-numeric: tabular-nums !important;
    font-weight: 600 !important;
}

/* ══════════════════════════════════════════════════════════════
   FORMULAIRES
══════════════════════════════════════════════════════════════ */

/* Section */
.fi-section {
    border-radius: var(--btp-radius) !important;
    box-shadow: var(--btp-shadow) !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.fi-section-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 1rem 1.25rem !important;
}

.fi-section-header-heading {
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    color: #1e293b !important;
}

.fi-section-content {
    padding: 1.25rem !important;
    background: #ffffff !important;
}

/* Inputs */
.fi-input {
    border-radius: 0.5rem !important;
    border-color: #e2e8f0 !important;
    font-size: 0.875rem !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05) !important;
}

.fi-input:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12) !important;
}

/* Labels */
.fi-fo-field-wrp-label {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #475569 !important;
    margin-bottom: 0.3rem !important;
}

/* ══════════════════════════════════════════════════════════════
   BOUTONS
══════════════════════════════════════════════════════════════ */

.fi-btn {
    border-radius: 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.01em !important;
    transition: all 0.15s ease !important;
    box-shadow: var(--btp-shadow) !important;
}

.fi-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: var(--btp-shadow-md) !important;
}

.fi-btn:active {
    transform: translateY(0) !important;
}

/* Bouton primaire */
.fi-btn-color-primary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.fi-btn-color-primary:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
}

/* Header actions */
.fi-header-actions .fi-btn {
    padding: 0.5rem 1rem !important;
}

/* ══════════════════════════════════════════════════════════════
   BADGES / STATUTS
══════════════════════════════════════════════════════════════ */

.fi-badge {
    border-radius: 9999px !important;
    font-size: 0.7rem !important;
    font-weight: 600 !important;
    padding: 0.2rem 0.6rem !important;
    letter-spacing: 0.02em !important;
}

/* ══════════════════════════════════════════════════════════════
   WIDGETS / STATS
══════════════════════════════════════════════════════════════ */

.fi-wi-stats-overview-stat {
    border-radius: var(--btp-radius) !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: var(--btp-shadow) !important;
    background: #ffffff !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    overflow: hidden !important;
}

.fi-wi-stats-overview-stat:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--btp-shadow-lg) !important;
}

.fi-wi-stats-overview-stat-value {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    letter-spacing: -0.025em !important;
}

.fi-wi-stats-overview-stat-label {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

/* Widgets généraux */
.fi-wi {
    border-radius: var(--btp-radius) !important;
    box-shadow: var(--btp-shadow) !important;
    border: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

/* ══════════════════════════════════════════════════════════════
   MODALES
══════════════════════════════════════════════════════════════ */

.fi-modal-window {
    border-radius: 1rem !important;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25) !important;
    border: 1px solid #e2e8f0 !important;
}

.fi-modal-header {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 1.25rem 1.5rem !important;
}

.fi-modal-heading {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}

/* ══════════════════════════════════════════════════════════════
   NOTIFICATIONS
══════════════════════════════════════════════════════════════ */

.fi-no-notification {
    border-radius: 0.75rem !important;
    box-shadow: var(--btp-shadow-lg) !important;
    border: 1px solid #e2e8f0 !important;
}

/* ══════════════════════════════════════════════════════════════
   PAGE CONTENT AREA
══════════════════════════════════════════════════════════════ */

.fi-page {
    padding: 1.5rem !important;
}

/* Breadcrumbs */
.fi-breadcrumbs ol {
    font-size: 0.8rem !important;
}

.fi-breadcrumbs-item-label {
    color: #64748b !important;
    font-weight: 500 !important;
}

.fi-breadcrumbs-item-separator {
    color: #cbd5e1 !important;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE TWEAKS
══════════════════════════════════════════════════════════════ */

.dark .fi-main,
.dark .fi-body {
    background: #0f172a !important;
}

.dark .fi-section,
.dark .fi-ta-ctn,
.dark .fi-wi {
    background: #1e293b !important;
    border-color: #334155 !important;
}

/* Dark mode — garder l'entête bleu marine, légèrement plus clair */
.dark .fi-ta-header-cell,
.dark th.fi-ta-header-cell {
    background: #162032 !important;
    color: #93c5fd !important;
    border-color: rgba(255,255,255,.08) !important;
}

.dark .fi-ta-header-toolbar {
    background: #1e293b !important;
    border-bottom-color: #162032 !important;
}

.dark .fi-ta-row {
    border-bottom-color: #1e293b !important;
}

.dark .fi-ta-row:nth-child(even) td {
    background: #1a2740 !important;
}

.dark .fi-ta-row:hover td {
    background: #1d3050 !important;
}

.dark .fi-ta-cell {
    color: #cbd5e1 !important;
    border-right-color: #243044 !important;
}

.dark .fi-ta-footer {
    background: #162032 !important;
    border-top-color: #334155 !important;
}

.dark .fi-ta-row-group-header td {
    background: #162032 !important;
    color: #93c5fd !important;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE / MOBILE
══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .fi-page {
        padding: 1rem !important;
    }

    .fi-wi-stats-overview-stat-value {
        font-size: 1.4rem !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   EXTRAS : Scrollbar globale
══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ══════════════════════════════════════════════════════════════
   FIX — Nom de société visible dans la sidebar
══════════════════════════════════════════════════════════════ */

/* Nom de la société — texte bien visible, doré */
.fi-brand-name,
.fi-sidebar-header a span,
.fi-sidebar-header .fi-brand-name,
[class*="brand-name"],
.fi-sidebar-header a,
.fi-sidebar-header *,
.fi-sidebar-header span,
.fi-sidebar nav > div:first-child span,
.fi-sidebar nav > div:first-child a,
aside .fi-brand-name,
aside [class*="brand"] {
    color: #fbbf24 !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 0 20px rgba(251,191,36,0.3) !important;
}

/* Filament 3 brand logo text — force gold */
/* When no image logo: div.fi-logo has Tailwind text-gray-950, override it */
.fi-logo,
div.fi-logo,
a .fi-logo,
a div.fi-logo,
.fi-sidebar-header .fi-logo,
.fi-sidebar-header a .fi-logo {
    color: #fbbf24 !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    letter-spacing: 0.02em !important;
    text-shadow: 0 0 16px rgba(251,191,36,0.4) !important;
}

/* Conteneur du brand — alignement et padding */
.fi-sidebar-header {
    padding: 1rem !important;
    display: flex !important;
    align-items: center !important;
    min-height: 64px !important;
}

/* Si logo image présent, garder une taille correcte */
.fi-sidebar-header img {
    max-height: 2.5rem !important;
    filter: brightness(1.2) !important;
}

/* Texte brand sans logo */
.fi-sidebar-header .fi-logo {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
}

/* Badge société — petite ligne ambre sous le nom */
.fi-sidebar-header::after {
    content: '' !important;
    display: block !important;
    width: 2.5rem !important;
    height: 2px !important;
    background: linear-gradient(90deg, #f59e0b, transparent) !important;
    border-radius: 1px !important;
    margin-top: 0.4rem !important;
    position: absolute !important;
    bottom: 0.5rem !important;
    left: 1rem !important;
}
