﻿/* Base font size for REM calculations (1rem = 16px) */
:root {
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-h1: 2rem;
    --font-size-h2: 1.75rem;
    --font-size-h3: 1.5rem;
    --font-size-h4: 1.25rem;
    --font-size-h5: 1.125rem;
    
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    --border-radius: 0.25rem;
    --border-radius-lg: 0.5rem;
    
    /* Light mode colors */
    --bg-color: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-color: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --link-color: #006bb7;
    --header-bg: #ffffff;
    --sidebar-bg: #f8f9fa;

    /* Ligma brand signature — reused on Login, header, primary CTAs, accents */
    --ligma-brand-primary: #006bb7;
    --ligma-brand-mid: #003a66;
    --ligma-brand-deep: #1a1a4e;
    --ligma-brand-gradient: linear-gradient(135deg, #006bb7 0%, #003a66 60%, #1a1a4e 100%);
    --ligma-brand-gradient-soft: linear-gradient(135deg, rgba(0, 107, 183, 0.92) 0%, rgba(0, 58, 102, 0.92) 60%, rgba(26, 26, 78, 0.92) 100%);
    --ligma-brand-on-dark: #ffffff;
    --ligma-brand-on-dark-muted: rgba(255, 255, 255, 0.78);

    /* R1 (docs/design-uniformisation.md) — le thème Radzen adopte la marque :
       tous les composants primaires (boutons, badges, focus, liens de grille)
       prennent le bleu du login sans toucher aux pages. app.css est chargé
       APRÈS material-base.css : ces valeurs gagnent. */
    --rz-primary: var(--ligma-brand-primary);
    --rz-primary-dark: var(--ligma-brand-mid);
    --rz-primary-darker: var(--ligma-brand-deep);
    --rz-primary-light: #338fd0;
    --rz-primary-lighter: #e3f1fa;
    --rz-on-primary: #ffffff;
}

/* R1 — dark mode : mêmes accents, fonds "lighter" adaptés au sombre */
html.dark-mode {
    --rz-primary-light: #64a9dc;
    --rz-primary-lighter: rgba(0, 107, 183, 0.22);
}

/* Dark mode colors */
html.dark-mode {
    --bg-color: #1a1a2e;
    --bg-secondary: #16213e;
    --text-color: #e9ecef;
    --text-secondary: #adb5bd;
    --border-color: #495057;
    --link-color: #6ea8fe;
    --header-bg: #16213e;
    --sidebar-bg: #0f0f23;
}

/* === A11y: keyboard focus visible on interactive elements only === */
/* WCAG 2.4.7. Restricted to interactives so programmatic-focus targets (e.g. h1 via */
/* Blazor FocusOnNavigate with tabindex="-1") don't render an unwanted ring. */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible,
[role="button"]:focus-visible,
[role="link"]:focus-visible,
[role="menuitem"]:focus-visible,
[role="tab"]:focus-visible,
[tabindex="0"]:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 107, 183, 0.15);
    border-radius: 2px;
}
/* Programmatically-focused headings (Blazor FocusOnNavigate) shouldn't show a ring */
h1:focus-visible, h2:focus-visible, h3:focus-visible,
h4:focus-visible, h5:focus-visible, h6:focus-visible,
[tabindex="-1"]:focus-visible {
    outline: none;
    box-shadow: none;
}
/* Don't clobber Radzen's own focused states */
.rz-button:focus-visible,
.rz-textbox:focus-visible,
.rz-dropdown:focus-visible {
    outline: 2px solid var(--link-color);
    outline-offset: 1px;
}
/* A11y: respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* === Print mode: clean reports for paper / PDF browser export === */
@media print {
    /* Hide all chrome */
    .rz-header,
    .rz-sidebar,
    .rz-footer,
    [class*="sidebar-toggle"],
    .bi-hero-actions,
    .planner-card-actions,
    .home-hero-actions,
    .modal-overlay {
        display: none !important;
    }

    /* Force backgrounds and colors to print (Chrome/Edge respect this) */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body, html {
        background: #ffffff !important;
        color: #000000 !important;
    }

    .rz-body, .rz-content {
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    /* Each major section starts on a clean page break opportunity */
    .bi-hero, .bi-tables-grid, .bi-chart-container {
        page-break-inside: avoid;
    }

    /* Avoid breaking rows across pages */
    tr, .planner-card, .bi-ratio-card, .bi-kpi-card {
        page-break-inside: avoid;
    }

    /* Compact typography */
    body {
        font-size: 11pt;
    }

    a {
        color: inherit !important;
        text-decoration: none !important;
    }

    /* Brand gradient simplified to navy band for printers */
    .bi-hero, .home-hero, .auth-hero, .modal-header {
        background: #003a66 !important;
        color: #ffffff !important;
        box-shadow: none !important;
    }

    /* Sidebar margin removal */
    .rz-content {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
}

/* A11y: visually hidden but available to screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: var(--font-size-base);
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a, .btn-link {
    color: var(--link-color);
}

/* Radzen overrides for dark mode */
html.dark-mode .rz-sidebar {
    background-color: var(--sidebar-bg);
}

html.dark-mode .rz-header {
    background-color: var(--header-bg);
    border-bottom: 0.0625rem solid var(--border-color);
}

html.dark-mode .rz-body {
    background-color: var(--bg-color);
}

html.dark-mode .rz-panel-menu {
    background-color: var(--sidebar-bg);
}

html.dark-mode .rz-panelmenu-header,
html.dark-mode .rz-panelmenu-item {
    color: var(--text-color);
}

html.dark-mode .rz-panelmenu-header:hover,
html.dark-mode .rz-panelmenu-item:hover {
    background-color: var(--bg-secondary);
}

html.dark-mode .rz-text {
    color: var(--text-color);
}

/* Radzen émet rz-text-h* SANS la classe rz-text : les titres de page posés sur le fond
   sombre étaient illisibles (constaté sur la fiche client Goonster, 2026-07-10).
   Exclusion des cartes/dialogs qui restent blancs dans ce thème. */
html.dark-mode .rz-text-h3:not(.rz-card .rz-text-h3, .rz-dialog .rz-text-h3),
html.dark-mode .rz-text-h4:not(.rz-card .rz-text-h4, .rz-dialog .rz-text-h4),
html.dark-mode .rz-text-h5:not(.rz-card .rz-text-h5, .rz-dialog .rz-text-h5),
html.dark-mode .rz-text-h6:not(.rz-card .rz-text-h6, .rz-dialog .rz-text-h6) {
    color: var(--text-color);
}

html.dark-mode .rz-link {
    color: var(--link-color);
}

/* Responsive layout */
.header-container {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
}

.sidebar-container {
    background-color: var(--sidebar-bg);
}

.content-container {
    max-width: 120rem;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.app-title {
    font-size: var(--font-size-lg);
}

/* Module Switcher */
.module-switcher {
    position: relative;
    cursor: pointer;
    user-select: none;
}
.module-switcher-title {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    transition: opacity 0.15s;
}
.module-switcher-title:hover {
    opacity: 0.8;
}
.module-switcher-arrow {
    font-size: 1.25rem;
    transition: transform 0.2s;
}
.module-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-color, #fff);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.15);
    min-width: 16rem;
    z-index: 9999;
    overflow: hidden;
    animation: moduleDropdownIn 0.15s ease-out;
}
@keyframes moduleDropdownIn {
    from { opacity: 0; transform: translateY(-0.5rem); }
    to { opacity: 1; transform: translateY(0); }
}
.module-dropdown-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 0.15s, border-left 0.15s;
    border-left: 4px solid transparent;
}
.module-dropdown-item:hover {
    background: #f0f0f0;
}
.module-dropdown-item.active {
    border-left-color: #1976d2;
    background: #e8f0fe;
}
.module-dropdown-item strong {
    font-size: 0.9375rem;
    color: #1a1a1a;
}
.module-dropdown-item small {
    font-size: 0.75rem;
    color: #666;
}
.module-dropdown-item.active strong {
    font-weight: 700;
}
/* Badge compteur (rappels échus Goonster) sur une entrée du sélecteur de modules */
.module-badge {
    display: inline-block;
    margin-left: 0.375rem;
    padding: 0 0.4rem;
    min-width: 1.125rem;
    border-radius: 999px;
    background: #c2185b;
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    line-height: 1.125rem;
    text-align: center;
    vertical-align: middle;
}
/* Per-module accent colors */
.module-dropdown-item.mod-ligma.active {
    border-left-color: #1565c0;
    background: #e3f2fd;
}
.module-dropdown-item.mod-ligma.active strong { color: #0d47a1; }
.module-dropdown-item.mod-segond.active {
    border-left-color: #e65100;
    background: #fff3e0;
}
.module-dropdown-item.mod-segond.active strong { color: #bf360c; }
.module-dropdown-item.mod-wendeez.active {
    border-left-color: #2e7d32;
    background: #e8f5e9;
}
.module-dropdown-item.mod-wendeez.active strong { color: #1b5e20; }
.module-dropdown-item.mod-sugma.active {
    border-left-color: #6a1b9a;
    background: #f3e5f5;
}
.module-dropdown-item.mod-sugma.active strong { color: #4a148c; }
.module-dropdown-item.mod-cabine.active {
    border-left-color: #00838f;
    background: #e0f7fa;
}
.module-dropdown-item.mod-cabine.active strong { color: #006064; }
.module-dropdown-item.mod-goonster.active {
    border-left-color: #c2185b;
    background: #fce4ec;
}
.module-dropdown-item.mod-goonster.active strong { color: #880e4f; }
html.dark-mode .module-dropdown {
    background: var(--bg-color, #1e1e1e);
    border-color: var(--border-color, #333);
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.4);
}
html.dark-mode .module-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}
html.dark-mode .module-dropdown-item strong {
    color: #e0e0e0;
}
html.dark-mode .module-dropdown-item small {
    color: #999;
}
html.dark-mode .module-dropdown-item.active {
    background: rgba(25, 118, 210, 0.2);
    border-left-color: #64b5f6;
}
html.dark-mode .module-dropdown-item.mod-ligma.active {
    background: rgba(21, 101, 192, 0.2);
    border-left-color: #64b5f6;
}
html.dark-mode .module-dropdown-item.mod-ligma.active strong { color: #90caf9; }
html.dark-mode .module-dropdown-item.mod-segond.active {
    background: rgba(230, 81, 0, 0.2);
    border-left-color: #ffb74d;
}
html.dark-mode .module-dropdown-item.mod-segond.active strong { color: #ffcc80; }
html.dark-mode .module-dropdown-item.mod-wendeez.active {
    background: rgba(46, 125, 50, 0.2);
    border-left-color: #81c784;
}
html.dark-mode .module-dropdown-item.mod-wendeez.active strong { color: #a5d6a7; }
html.dark-mode .module-dropdown-item.mod-sugma.active {
    background: rgba(106, 27, 154, 0.2);
    border-left-color: #ba68c8;
}
html.dark-mode .module-dropdown-item.mod-sugma.active strong { color: #ce93d8; }
html.dark-mode .module-dropdown-item.mod-cabine.active {
    background: rgba(0, 131, 143, 0.2);
    border-left-color: #4dd0e1;
}
html.dark-mode .module-dropdown-item.mod-cabine.active strong { color: #80deea; }
html.dark-mode .module-dropdown-item.mod-goonster.active {
    background: rgba(194, 24, 91, 0.2);
    border-left-color: #f06292;
}
html.dark-mode .module-dropdown-item.mod-goonster.active strong { color: #f48fb1; }

/* Mobile-first responsive breakpoints */
@media (max-width: 48rem) {
    /* 768px */
    .header-container {
        padding: var(--spacing-xs) var(--spacing-sm);
    }
    
    .content-container {
        padding: var(--spacing-sm);
    }
    
    .app-title {
        font-size: var(--font-size-base);
    }
    
    .rz-sidebar {
        position: fixed;
        z-index: 1000;
        height: 100%;
    }
}

@media (max-width: 30rem) {
    /* 480px */
    html {
        font-size: 0.875rem;
    }
    
    .header-container {
        padding: var(--spacing-xs);
    }
    
    .content-container {
        padding: var(--spacing-xs);
    }
}

/* Form styling */
.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 0.0625rem solid #26b050;
}

.invalid {
    outline: 0.0625rem solid #e50000;
}

.validation-message {
    color: #e50000;
    font-size: var(--font-size-sm);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
    border-radius: var(--border-radius);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, 
.form-floating > .form-control::placeholder {
    color: var(--text-secondary);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, 
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Error UI */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -0.0625rem 0.125rem rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

html.dark-mode #blazor-error-ui {
    background: #4a4a00;
    color: #fff;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/*  */
/* Mobile Layout (PWA Conducteur)          */
/*  */
.mobile-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--bg-color);
}
.mobile-header {
    background-color: var(--header-bg);
    border-bottom: 0.0625rem solid var(--border-color);
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.mobile-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.mobile-logo {
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--text-color);
}
.mobile-user {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.mobile-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 3.5rem;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    color: white;
    text-decoration: none;
}
.mobile-btn:active { transform: scale(0.97); }
.mobile-btn-primary {
    background: linear-gradient(135deg, #006bb7, #0088e0);
    box-shadow: 0 0.25rem 0.75rem rgba(0,107,183,0.3);
}
.mobile-btn-danger {
    background: linear-gradient(135deg, #d32f2f, #f44336);
    box-shadow: 0 0.25rem 0.75rem rgba(211,47,47,0.3);
}
.mobile-btn-success {
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    box-shadow: 0 0.25rem 0.75rem rgba(76,175,80,0.3);
}
.mobile-btn-warning {
    background: linear-gradient(135deg, #ef6c00, #ff9800);
    box-shadow: 0 0.25rem 0.75rem rgba(255,152,0,0.3);
}
.mobile-btn-icon { font-size: 1.5rem; }
.mobile-card {
    background: var(--bg-secondary);
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 0.0625rem solid var(--border-color);
}
.mobile-km-input {
    font-size: 2.5rem !important;
    text-align: center;
    font-weight: 700;
    letter-spacing: 0.125rem;
    height: 4.5rem !important;
    border-radius: 0.75rem !important;
}
.zone-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.zone-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 0.125rem solid var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
    min-height: 5rem;
    text-align: center;
}
.zone-item.zone-ok {
    border-color: #4caf50;
    background: rgba(76,175,80,0.1);
}
.zone-item.zone-damaged {
    border-color: #f44336;
    background: rgba(244,67,54,0.1);
}
.zone-item-label { font-size: 0.875rem; font-weight: 600; }
.zone-item-icon { font-size: 1.5rem; }
.signature-container {
    border: 0.125rem dashed var(--border-color);
    border-radius: 0.75rem;
    position: relative;
    touch-action: none;
}
.signature-canvas {
    width: 100%;
    height: 12.5rem;
    display: block;
    border-radius: 0.625rem;
}

/* ===== Parc Vehicules - Tree View ===== */
.materiel-tree-item:hover {
    background: var(--rz-base-200) !important;
}

/* ===== Radzen Dropdown Checkbox Visibility ===== */
.rz-multiselect-item .rz-chkbox-box {
    border: 2px solid #999 !important;
    width: 20px !important;
    height: 20px !important;
}
.rz-multiselect-item .rz-chkbox-box.rz-state-active {
    background-color: var(--rz-primary) !important;
    border-color: var(--rz-primary) !important;
}
.rz-multiselect-item .rz-chkbox-box.rz-state-active .rz-chkbox-icon {
    color: #fff !important;
    font-size: 14px !important;
}

/* ═══════════════════════════════════════════════════════════════
   FEC Import - Icônes colorées dans le dropdown États financiers
   ═══════════════════════════════════════════════════════════════ */
.rz-splitbutton-menuitem .rzi-account_tree {
    color: #1565c0;
}
.rz-splitbutton-menuitem .rzi-trending_up {
    color: #2e7d32;
}
.rz-splitbutton-menuitem .rzi-water_drop {
    color: #0277bd;
}
.rz-splitbutton-menuitem .rzi-library_books {
    color: #6a1b9a;
}
.rz-splitbutton-menuitem .rzi-picture_as_pdf {
    color: #c62828;
}
.rz-splitbutton-menuitem .rzi-table_chart {
    color: #00695c;
}

/* ===== Loading Skeleton ===== */
.skeleton-container {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-line {
    height: 1rem;
    background: linear-gradient(90deg, var(--rz-base-200) 25%, var(--rz-base-300) 50%, var(--rz-base-200) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite ease-in-out;
    border-radius: 4px;
}

.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.long { width: 90%; }
.skeleton-line.full { width: 100%; }
.skeleton-line.title { height: 1.5rem; width: 30%; margin-bottom: 0.5rem; }

.skeleton-card {
    background: var(--rz-base-background);
    border: 1px solid var(--rz-base-300);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== Société Loading Indicator ===== */
.societe-loading-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    padding: 4px 12px;
    color: var(--rz-text-secondary-color);
    animation: societe-loading-pulse 1.5s infinite ease-in-out;
}

.societe-loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid var(--rz-base-400);
    border-top-color: var(--rz-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes societe-loading-pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
