:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-soft: #f9fafb;
    --text: #172033;
    --muted: #6b7280;
    --border: #e5e7eb;
    --primary: #1d4ed8;
    --primary-dark: #1e40af;
    --success: #15803d;
    --success-soft: #ecfdf3;
    --danger: #b91c1c;
    --danger-soft: #fef2f2;
    --warning: #a16207;
    --warning-soft: #fffbeb;
    --info: #0f766e;
    --info-soft: #f0fdfa;
    --sidebar: #101827;
    --sidebar-muted: #94a3b8;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    display: flex;
    width: 270px;
    flex-direction: column;
    background: var(--sidebar);
    color: #ffffff;
    transition: transform 0.2s ease;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar .brand {
    padding: 24px 22px 18px;
}

.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-title {
    font-size: 16px;
    font-weight: 800;
}

.brand-subtitle {
    color: var(--sidebar-muted);
    font-size: 12px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 14px 20px;
}

.nav-section {
    margin: 22px 10px 8px;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-item.active {
    box-shadow: inset 3px 0 0 #60a5fa;
}

.nav-icon {
    display: inline-grid;
    width: 24px;
    place-items: center;
    font-size: 16px;
}

.sidebar-footer {
    padding: 18px 22px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer-label {
    font-size: 12px;
    font-weight: 700;
}

.sidebar-footer-version {
    margin-top: 3px;
    color: var(--sidebar-muted);
    font-size: 11px;
}

.main-shell {
    width: calc(100% - 270px);
    margin-left: 270px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 12px;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
}

.sidebar-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 22px;
}

.topbar-spacer {
    flex: 1;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-avatar {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #e0e7ff;
    color: #3730a3;
    font-weight: 800;
}

.user-meta {
    display: flex;
    flex-direction: column;
}

.user-meta strong {
    font-size: 13px;
}

.user-meta span {
    color: var(--muted);
    font-size: 11px;
}

.content {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 28px;
}

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.page-heading h1 {
    margin: 4px 0 6px;
    font-size: 28px;
    line-height: 1.2;
}

.page-heading p,
.panel-heading p {
    margin: 0;
    color: var(--muted);
}

.eyebrow {
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.panel {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.panel-heading h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.stat-card {
    min-height: 148px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stat-card strong {
    display: block;
    margin: 12px 0 6px;
    font-size: 32px;
    line-height: 1;
}

.stat-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.stat-card small {
    color: var(--muted);
}

.dashboard-grid,
.details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.metric-list {
    display: grid;
    gap: 10px;
}

.metric-list.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--surface-soft);
}

.metric-row span {
    color: var(--muted);
}

.metric-row strong {
    font-size: 17px;
}

.btn {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.15s ease;
}

.btn-sm {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    border-color: var(--border);
    background: #ffffff;
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--surface-soft);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
}

.btn-success {
    background: var(--success);
    color: #ffffff;
}

.btn-danger {
    background: var(--danger);
    color: #ffffff;
}

.btn-danger-outline {
    border-color: #fecaca;
    background: #ffffff;
    color: var(--danger);
}

.alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 10px;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

.alert-success {
    border-color: #bbf7d0;
    background: var(--success-soft);
    color: #166534;
}

.alert-danger {
    border-color: #fecaca;
    background: var(--danger-soft);
    color: #991b1b;
}

.alert-info {
    border-color: #99f6e4;
    background: var(--info-soft);
    color: #115e59;
}

.table-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.table-search {
    width: min(360px, 100%);
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    padding: 11px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-align: left;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table td {
    padding: 14px 12px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table tbody tr:hover {
    background: #fafbfc;
}

.table-primary {
    font-weight: 700;
}

.table-secondary {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.text-right {
    text-align: right !important;
}

.empty-state {
    padding: 32px !important;
    color: var(--muted);
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.badge-neutral {
    background: #f1f5f9;
    color: #475569;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.form-panel {
    padding: 24px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.full-width {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 12px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #d6dbe5;
    border-radius: 9px;
    outline: none;
    background: #ffffff;
    color: var(--text);
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px #dbeafe;
}

select:disabled,
input:disabled {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.form-actions.standalone {
    margin: 0 0 30px;
}

.optional {
    margin-left: 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.permission-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.permission-card {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.permission-card:hover {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.permission-card.disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.permission-card input {
    width: 17px;
    min-height: auto;
    height: 17px;
    margin-top: 2px;
}

.permission-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.permission-card-body small {
    color: var(--muted);
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
}

.detail-list div {
    padding: 12px;
    border-radius: 10px;
    background: var(--surface-soft);
}

.detail-list dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.detail-list dd {
    margin: 5px 0 0;
    font-weight: 700;
}

.summary-number {
    margin-top: 4px;
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}

.summary-caption {
    margin: 10px 0 0;
    color: var(--muted);
}

.inline-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-actions.end {
    justify-content: flex-end;
}

.reject-form {
    min-width: 280px;
    margin-top: 10px;
    padding: 12px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: var(--danger-soft);
}

.mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.auth-body {
    background: #eef2f7;
}

.auth-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    background: #111827;
    color: #ffffff;
}

.auth-brand-panel::after {
    position: absolute;
    right: -140px;
    bottom: -140px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.18);
    content: "";
}

.auth-brand-content {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
}

.auth-brand {
    margin-bottom: 64px;
}

.auth-brand-content h1 {
    max-width: 530px;
    margin: 0 0 16px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.08;
}

.auth-brand-content > p {
    max-width: 530px;
    margin: 0;
    color: #cbd5e1;
    font-size: 16px;
}

.auth-feature-list {
    display: grid;
    gap: 14px;
    margin-top: 42px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 13px;
}

.auth-feature > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: #93c5fd;
    font-size: 11px;
    font-weight: 800;
}

.auth-feature div {
    display: flex;
    flex-direction: column;
}

.auth-feature small {
    color: #94a3b8;
}

.auth-form-panel {
    background: #ffffff;
}

.auth-card {
    width: min(430px, 100%);
}

.auth-card-heading h2 {
    margin: 5px 0 2px;
    font-size: 30px;
}

.auth-card-heading p {
    margin: 0;
    color: var(--muted);
}

.stepper {
    display: flex;
    gap: 8px;
    margin: 24px 0;
}

.stepper-item {
    flex: 1;
}

.stepper-item span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 12px;
    font-weight: 800;
}

.stepper-item::after {
    display: block;
    height: 3px;
    margin-top: 7px;
    border-radius: 999px;
    background: #e5e7eb;
    content: "";
}

.stepper-item.active span,
.stepper-item.active::after {
    background: #2563eb;
    color: #ffffff;
}

.form-stack {
    display: grid;
    gap: 18px;
}

.info-box,
.dev-box {
    padding: 12px 14px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1e40af;
}

.dev-box {
    background: #fffbeb;
    color: #92400e;
}

.auth-reset {
    display: inline-block;
    margin-top: 18px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
}

.error-panel {
    max-width: 680px;
    margin: 80px auto;
    text-align: center;
}

.error-code {
    color: var(--primary);
    font-size: 64px;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .main-shell {
        width: 100%;
        margin-left: 0;
    }

    .sidebar-toggle {
        display: inline-flex;
    }

    .dashboard-grid,
    .details-grid,
    .permission-grid,
    .form-grid.two-columns {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: auto;
    }
}

@media (max-width: 640px) {
    .content,
    .topbar,
    .auth-panel {
        padding: 18px;
    }

    .page-heading {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .user-meta {
        display: none;
    }

    .metric-list.compact,
    .detail-list {
        grid-template-columns: 1fr;
    }
}

/* Dashboard personnalisé par profil et permissions */
.dashboard-section + .dashboard-section {
    margin-top: 2rem;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading h2 {
    margin: 0.15rem 0 0;
}

.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Compteur des validations ANIP en attente dans le menu latéral. */
.nav-label {
    min-width: 0;
}

.nav-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    margin-left: auto;
    padding: 0 7px;
    border-radius: 999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

/* Compteur de numéros configurés sur la liste des formations sanitaires. */
.number-counter {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid #bfd4f5;
    border-radius: 999px;
    background: #edf5ff;
    color: #0b56b3;
    font-size: 12px;
    font-weight: 800;
    cursor: help;
}

/* ==========================================================
   Identité visuelle ANIP - Gestion des référentiels
   ========================================================== */
:root {
    --bg: #f5f8fc;
    --surface: #ffffff;
    --surface-soft: #f7faff;
    --text: #102149;
    --muted: #66728c;
    --border: #dfe7f1;
    --primary: #175ab7;
    --primary-dark: #0a479b;
    --primary-soft: #eaf2ff;
    --success: #159447;
    --success-soft: #ecf9f0;
    --danger: #e53245;
    --danger-soft: #fff0f2;
    --warning: #be7700;
    --warning-soft: #fff7e7;
    --info: #078eb6;
    --info-soft: #ecf9fd;
    --sidebar: #074a9f;
    --sidebar-dark: #063d86;
    --sidebar-muted: #c9ddf8;
    --radius: 14px;
    --shadow: 0 8px 24px rgba(20, 58, 110, 0.08);
}

body {
    background:
        radial-gradient(circle at 94% 8%, rgba(23, 90, 183, 0.06), transparent 22rem),
        var(--bg);
    color: var(--text);
}

.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #0a54ad 0%, #06438f 100%);
    box-shadow: 8px 0 24px rgba(7, 47, 102, 0.08);
}

.sidebar-brand-panel {
    padding: 18px 18px 16px;
    background: #ffffff;
    border-bottom: 3px solid #175ab7;
}

.sidebar-logo {
    display: block;
    width: 100%;
    max-width: 228px;
    height: 72px;
    object-fit: contain;
    object-position: left center;
}

.platform-identity {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e5edf7;
}

.platform-identity strong {
    display: block;
    color: #0d3f88;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: -0.01em;
}

.platform-identity span {
    display: block;
    margin-top: 2px;
    color: #6c7890;
    font-size: 11px;
}

.sidebar-nav {
    padding: 18px 14px 20px;
}

.nav-section {
    margin: 22px 10px 8px;
    color: #9fc6f5;
}

.nav-item {
    color: #e6f0fd;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: inset 3px 0 0 #ffffff;
    color: #ffffff;
}

.nav-item-disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

.nav-label {
    flex: 1;
    min-width: 0;
}

.nav-counter {
    min-width: 25px;
    height: 25px;
    margin-left: 8px;
    padding: 0 7px;
    border: 2px solid rgba(255, 255, 255, 0.92);
    background: #ef3340;
    box-shadow: 0 3px 10px rgba(99, 10, 18, 0.22);
    color: #ffffff;
}

.sidebar-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 16px 14px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-account-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 800;
}

.sidebar-account strong,
.sidebar-account span {
    display: block;
}

.sidebar-account strong {
    color: #ffffff;
    font-size: 12px;
}

.sidebar-account span {
    margin-top: 2px;
    color: var(--sidebar-muted);
    font-size: 10px;
}

.sidebar-footer {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.sidebar-footer-label {
    color: #ffffff;
}

.main-shell {
    width: calc(100% - 280px);
    margin-left: 280px;
}

.topbar {
    min-height: 78px;
    border-top: 4px solid var(--primary);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 3px 14px rgba(15, 55, 105, 0.04);
}

.topbar-app-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar-app-title strong {
    color: #0d275d;
    font-size: 17px;
    font-weight: 850;
}

.topbar-app-title span {
    margin-top: 1px;
    color: var(--muted);
    font-size: 11px;
}

.user-avatar {
    background: #0f56ad;
    color: #ffffff;
}

.content {
    max-width: 1600px;
    padding: 30px;
}

.page-heading h1 {
    color: #0c2355;
    font-size: 30px;
    letter-spacing: -0.025em;
}

.eyebrow {
    color: var(--primary);
}

.panel,
.stat-card,
.form-panel,
.auth-card {
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--primary);
    content: "";
}

.stat-card strong {
    color: #102b68;
}

.btn-primary {
    background: linear-gradient(135deg, #175ab7, #074696);
    box-shadow: 0 6px 14px rgba(23, 90, 183, 0.18);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0e4fa9, #063c82);
}

.table thead th {
    background: #f4f8fd;
    color: #314d7a;
}

.number-counter {
    border-color: #bed4f4;
    background: #edf5ff;
    color: #0a54ad;
}

/* Page de connexion */
.auth-body {
    background: #f5f8fc;
}

.auth-brand-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #084ca2 0%, #062f70 100%);
}

.auth-brand-panel::after {
    position: absolute;
    right: -130px;
    bottom: -130px;
    width: 420px;
    height: 420px;
    border: 56px double rgba(255, 255, 255, 0.045);
    border-radius: 50%;
    content: "";
}

.auth-brand-content {
    position: relative;
    z-index: 1;
}

.auth-anip-logo {
    display: block;
    width: min(100%, 430px);
    max-height: 145px;
    padding: 14px 18px;
    border-radius: 14px;
    background: #ffffff;
    object-fit: contain;
}

.auth-platform-name {
    margin-top: 34px;
}

.auth-platform-name > span {
    color: #9fc9fb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-platform-name h1 {
    margin: 8px 0 4px;
    color: #ffffff;
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.06;
    letter-spacing: -0.035em;
}

.auth-platform-name p,
.auth-intro {
    color: #d8e9fb;
}

.auth-intro {
    max-width: 620px;
    margin-top: 24px;
}

.auth-feature {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.auth-feature > span {
    color: #a9d1ff;
}

.auth-feature strong {
    color: #ffffff;
}

.auth-feature small {
    color: #cfe2f7;
}

.auth-card-mobile-brand {
    display: none;
    margin-bottom: 24px;
}

.auth-card-mobile-brand img {
    width: 180px;
    max-height: 58px;
    object-fit: contain;
    object-position: left center;
}

.auth-card-mobile-brand strong {
    display: block;
    margin-top: 8px;
    color: #0d3f88;
}

@media (max-width: 900px) {
    .main-shell {
        width: 100%;
        margin-left: 0;
    }

    .topbar-app-title span {
        display: none;
    }
}

@media (max-width: 1100px) {
    .auth-card-mobile-brand {
        display: block;
    }
}

@media (max-width: 640px) {
    .topbar-app-title strong {
        max-width: 170px;
        overflow: hidden;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}


/* Loading global des boutons */
.btn.is-loading,
button.is-loading {
    position: relative;
    cursor: wait;
    opacity: 0.82;
}

.button-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    vertical-align: -2px;
    animation: button-spinner-rotate 0.7s linear infinite;
}

@keyframes button-spinner-rotate {
    to {
        transform: rotate(360deg);
    }
}

.rejection-history-panel {
    margin-top: 22px;
}

.rejection-history-panel .panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.rejection-history-panel .panel-header h2 {
    margin: 4px 0 4px;
}

.rejection-history-panel .panel-header p {
    margin: 0;
    color: var(--muted, #64748b);
}

.rejection-reason {
    display: block;
    max-width: 320px;
    white-space: normal;
    overflow-wrap: anywhere;
}


/* ==========================================================================
   Sidebar - identité textuelle de l'application
   ========================================================================== */
.sidebar-brand-panel-text-only {
    display: flex;
    min-height: 92px;
    align-items: center;
    padding: 18px 22px;
    background: linear-gradient(180deg, #0a54ad 0%, #084b9c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.platform-identity-text-only {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.platform-identity-text-only strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 800;
}

.platform-identity-text-only span {
    display: block;
    margin-top: 5px;
    color: #c9ddf8;
    font-size: 12px;
}

/* ==========================================================================
   Navigation repliable DDQS / DRPD
   ========================================================================== */
.nav-group {
    margin: 8px 0;
}

.nav-group > summary {
    list-style: none;
}

.nav-group > summary::-webkit-details-marker {
    display: none;
}

.nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--sidebar-muted);
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    transition:
        background 0.18s ease,
        color 0.18s ease;
    user-select: none;
}

.nav-group-toggle::before {
    content: none;
}

.nav-group-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.nav-group-summary-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.nav-group-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.nav-group[open] .nav-group-chevron {
    transform: rotate(180deg);
}

.nav-group-content {
    display: grid;
    gap: 4px;
    padding: 4px 0 3px;
}

.nav-group-content .nav-item {
    margin-left: 6px;
}

.nav-group[open] > .nav-group-toggle .nav-counter-group {
    display: none;
}

/* --------------------------------------------------------------------------
 | Ajout rapide d'un agent de santé
 * -------------------------------------------------------------------------- */
.field-with-action {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.field-with-action select {
    flex: 1 1 auto;
    min-width: 0;
}

.btn-icon-add {
    display: inline-grid;
    width: 42px;
    min-width: 42px;
    place-items: center;
    border: 1px solid #b8d2f3;
    border-radius: 9px;
    background: #edf5ff;
    color: #0b55ad;
    cursor: pointer;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.btn-icon-add:hover {
    border-color: #7eafea;
    background: #dfeeff;
    transform: translateY(-1px);
}

.modal-backdrop {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(7, 24, 54, 0.55);
    backdrop-filter: blur(2px);
}

.modal-backdrop.is-open {
    display: flex;
}

.modal-card {
    width: min(100%, 620px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(5, 35, 78, 0.25);
}

.modal-header,
.modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
}

.modal-header {
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    margin: 0;
    color: #0c285f;
    font-size: 20px;
}

.modal-header p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.modal-close {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f1f5fa;
    color: #39516f;
    cursor: pointer;
    font-size: 20px;
}

.modal-body {
    padding: 22px;
}

.modal-footer {
    border-top: 1px solid var(--border);
    background: #f8fbff;
}

.inline-form-message {
    display: none;
    margin-bottom: 16px;
    padding: 11px 13px;
    border-radius: 9px;
    font-size: 13px;
}

.inline-form-message.is-error {
    display: block;
    border: 1px solid #f2b8bf;
    background: #fff1f3;
    color: #a51f32;
}

.inline-form-message.is-success {
    display: block;
    border: 1px solid #a8dfb8;
    background: #effcf2;
    color: #176b35;
}

body.modal-open {
    overflow: hidden;
}

/* Filtres multicritères des listes */
.multi-filter-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(150px, 1fr)) auto;
    gap: 10px;
    align-items: end;
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    background: var(--surface-soft, #f8fafc);
}

.multi-filter-toolbar .filter-field {
    display: grid;
    gap: 5px;
}

.multi-filter-toolbar .filter-field label {
    color: var(--muted, #64748b);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.multi-filter-toolbar input,
.multi-filter-toolbar select {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--border, #dbe2ea);
    border-radius: 9px;
    background: #fff;
}

.multi-filter-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: -8px;
    margin-bottom: 14px;
    color: var(--muted, #64748b);
    font-size: 12px;
}

@media (max-width: 900px) {
    .multi-filter-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .multi-filter-toolbar {
        grid-template-columns: 1fr;
    }
}

/* Barre de filtres compacte : critères alignés sur une seule ligne */
.multi-filter-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
}

.multi-filter-toolbar .filter-field {
    flex: 0 1 180px;
    min-width: 135px;
}

.multi-filter-toolbar .filter-field:first-child {
    flex: 1 1 260px;
    min-width: 210px;
}

.multi-filter-toolbar .filter-field label {
    margin-bottom: 2px;
    font-size: 10px;
}

.multi-filter-toolbar input,
.multi-filter-toolbar select {
    min-height: 36px;
    padding: 6px 9px;
}

.multi-filter-toolbar > .btn {
    flex: 0 0 auto;
    min-height: 36px;
    white-space: nowrap;
}

.multi-filter-meta {
    margin-top: -10px;
    margin-bottom: 10px;
}

@media (max-width: 900px) {
    .multi-filter-toolbar {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
    }
}

@media (max-width: 640px) {
    .multi-filter-toolbar {
        display: flex;
        grid-template-columns: none;
        flex-wrap: nowrap;
    }
}

/* Indicateurs du tableau de bord - Gouvernance locale */
.stat-card-attention {
    border-color: #f4c96b;
    background: #fffaf0;
}

.stat-card-attention .stat-label {
    color: #8a5a00;
}

.action-counter {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    font-size: 11px;
    font-weight: 800;
}


/* Modale de confirmation des validations */
.validation-confirm-overlay {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(3px);
}

.validation-confirm-overlay[hidden] {
    display: none;
}

.validation-confirm-modal {
    width: min(560px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.validation-confirm-icon {
    display: flex;
    width: 52px;
    height: 52px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 26px;
    font-weight: 800;
}

.validation-confirm-modal h2 {
    margin: 0;
    color: #0f172a;
    font-size: 22px;
}

.validation-confirm-intro {
    margin: 10px 0 20px;
    color: #64748b;
    line-height: 1.55;
}

.validation-confirm-details {
    display: grid;
    gap: 10px;
    margin: 0 0 18px;
}

.validation-confirm-details div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f8fafc;
}

.validation-confirm-details dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.validation-confirm-details dd {
    margin: 0;
    color: #0f172a;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.validation-confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

/* ==========================================================
   RELOOK 2026 — reprise visuelle de l'interface SOURCE/Rapido
   La logique métier et les composants du TARGET sont conservés.
   ========================================================== */
body.relook-rapido{font-family:Raleway,Arial,sans-serif;background:#f7f7f7;color:#555;padding-top:50px;font-size:13px}
.relook-rapido .topbar{height:50px;min-height:50px;background:#2c2f3b;border:0;box-shadow:none;padding:0;position:fixed;left:0;right:0;top:0;z-index:1040}
.relook-topbar-container{padding-left:0!important;padding-right:15px!important}
.relook-rapido .topbar .navbar-header{width:240px;background:#242731;height:50px}
.relook-rapido .topbar .navbar-brand{color:#fff!important;font-size:17px;font-weight:300;height:50px;line-height:20px;padding:15px 20px;margin:0!important}
.relook-rapido .topbar-tools{float:right}.relook-rapido .topbar-tools .nav{margin:0}.relook-rapido .topbar-tools .nav>li>a{height:50px;padding:10px 15px;color:#fff;display:flex;align-items:center;gap:8px}.relook-rapido .topbar-tools .nav>li>a:hover,.relook-rapido .topbar-tools .nav>li.open>a{background:#20232c}
.relook-user-avatar{width:30px;height:30px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#fff;color:#777}.relook-role{padding:8px 15px;color:#999;border-bottom:1px solid #eee}.relook-logout{border:0;background:transparent;width:100%;text-align:left;padding:8px 15px;color:#555}.relook-logout:hover{background:#f5f5f5;color:#333}
.relook-mobile-toggle{display:none;float:left;width:45px;height:50px;border:0;background:transparent;color:#fff;font-size:18px}
.relook-sidebar{position:fixed;top:50px;bottom:0;left:0;width:240px;background:#2c2f3b;z-index:1030;color:#b4b6bd;display:flex;flex-direction:column}.relook-sidebar .navbar-content{flex:1;overflow-y:auto}.relook-sidebar .main-navigation{padding:0!important}.relook-hidden{display:none!important}
.relook-sidebar .sidebar-nav{padding:0!important;overflow:visible!important}.relook-sidebar .nav-section{padding:14px 15px 5px;margin:0;color:#777b86;font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.relook-sidebar .nav-item,.relook-sidebar .nav-group-toggle{display:flex!important;align-items:center;gap:9px;width:100%;min-height:42px;margin:0!important;padding:11px 15px!important;border:0!important;border-radius:0!important;background:transparent!important;color:#b4b6bd!important;font-weight:400;box-shadow:none!important;cursor:pointer;text-decoration:none!important}
.relook-sidebar .nav-item:hover,.relook-sidebar .nav-item.active,.relook-sidebar .nav-group[open]>.nav-group-toggle{background:#242731!important;color:#fff!important;border-left:3px solid #5cb85c!important;padding-left:12px!important}
.relook-sidebar .nav-icon{width:20px!important;font-size:14px;color:#8f929b}.relook-sidebar .nav-label{flex:1}.relook-sidebar .nav-counter{background:#d9534f;color:#fff;border-radius:10px;padding:1px 6px;font-size:10px}
.relook-sidebar details{margin:0}.relook-sidebar summary{list-style:none}.relook-sidebar summary::-webkit-details-marker{display:none}.relook-sidebar .nav-group-content{background:#242731}.relook-sidebar .nav-group-content .nav-item{padding-left:44px!important;font-size:12px}.relook-sidebar .nav-group-content .nav-item.active,.relook-sidebar .nav-group-content .nav-item:hover{border-left:0!important;padding-left:44px!important;color:#fff!important;background:#20232c!important}.relook-sidebar .nav-group-content .nav-icon{display:none!important}.relook-sidebar .nav-group-chevron{margin-left:auto}.relook-sidebar .slide-tools{height:45px;border-top:1px solid #3a3d48;display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:11px}.relook-sidebar .slide-tools form{margin:0}.relook-sidebar .slide-tools button{border:0;background:transparent;color:#b4b6bd;padding:0}.relook-sidebar .slide-tools button:hover{color:#fff}
.relook-main-container{margin-left:240px!important;padding:0!important;min-height:calc(100vh - 50px);background:#f7f7f7}.relook-content-container{padding:20px 25px 35px!important;max-width:none!important;width:auto!important}.relook-rapido .content{padding:0!important;max-width:none!important;margin:0!important}
.relook-rapido .page-heading{margin:-20px -25px 20px;padding:22px 25px 18px;background:#fff;border-bottom:1px solid #e6e6e6;align-items:center}.relook-rapido .page-heading h1{font-size:24px;font-weight:300;color:#666;margin:0 0 4px}.relook-rapido .page-heading p{font-size:12px;color:#999}.relook-rapido .eyebrow{color:#999;font-size:10px;letter-spacing:.08em;font-weight:600}
.relook-rapido .panel{background:#fff;border:1px solid #ddd;border-radius:0!important;box-shadow:none!important;margin-bottom:20px}.relook-rapido .panel-heading{padding:14px 15px;border-bottom:1px solid #eee;background:#fff}.relook-rapido .panel-heading h2,.relook-rapido .panel-heading h3{font-weight:300;color:#666}.relook-rapido .panel-body{padding:15px}
.relook-rapido .btn{border-radius:2px!important;box-shadow:none!important;font-size:12px}.relook-rapido .btn-primary{background:#5f8295!important;border-color:#55788a!important;color:#fff!important}.relook-rapido .btn-primary:hover{background:#4f7386!important}.relook-rapido .btn-success{background:#5cb85c!important;border-color:#4cae4c!important}.relook-rapido .btn-danger{background:#d9534f!important;border-color:#d43f3a!important}.relook-rapido .btn-ghost{background:#fff;border:1px solid #ddd;color:#666}
.relook-rapido input,.relook-rapido select,.relook-rapido textarea{border-radius:0!important;border:1px solid #d5d5d5!important;box-shadow:none!important}.relook-rapido input:focus,.relook-rapido select:focus,.relook-rapido textarea:focus{border-color:#aaa!important;box-shadow:none!important;outline:0}.relook-rapido label{font-weight:500;color:#666}
.relook-rapido table{background:#fff}.relook-rapido table thead th{background:#f8f8f8!important;color:#555!important;font-size:11px;font-weight:600;text-transform:none;border-bottom:2px solid #ddd!important}.relook-rapido table td{border-top:1px solid #eee!important}.relook-rapido table tbody tr:hover{background:#f5f5f5!important}
.relook-rapido .dashboard-kpi,.relook-rapido .stat-card,.relook-rapido .metric-card{border-radius:0!important;box-shadow:none!important;border:1px solid #ddd!important;background:#fff!important}.relook-rapido .dashboard-kpi-icon{border-radius:2px!important;color:#5f8295!important;background:#eef3f5!important}.relook-rapido .dashboard-decision-card,.relook-rapido .health-geo-card{border-radius:0!important;box-shadow:none!important}
.relook-rapido .badge,.relook-rapido .status-badge,.relook-rapido .pill{border-radius:2px!important}
@media(max-width:991px){.relook-mobile-toggle{display:block}.relook-rapido .topbar .navbar-header{width:auto}.relook-sidebar{transform:translateX(-240px);transition:transform .2s}.relook-sidebar.open{transform:translateX(0)}.relook-main-container{margin-left:0!important}.relook-rapido .topbar .navbar-brand{font-size:15px}.relook-content-container{padding:15px!important}.relook-rapido .page-heading{margin:-15px -15px 15px;padding:15px}}
/* Login — langage visuel de la SOURCE, workflow 3 étapes du TARGET conservé */
.auth-source-relook{background:#f7f7f7!important;font-family:Raleway,Arial,sans-serif!important}.auth-source-relook .auth-layout{display:block!important;min-height:100vh!important;padding:55px 15px!important}.auth-source-relook .auth-brand-panel{display:none!important}.auth-source-relook .auth-form-panel{display:block!important;width:100%!important;padding:0!important}.auth-source-relook .auth-card{width:100%!important;max-width:430px!important;margin:0 auto!important;background:#fff!important;border:1px solid #ddd!important;border-radius:0!important;box-shadow:0 2px 5px rgba(0,0,0,.08)!important;padding:28px 32px!important}.auth-source-relook .auth-card:before{content:'Gestion des référentiels';display:block;text-align:center;font-size:24px;font-weight:300;color:#666;margin:-72px 0 42px}.auth-source-relook .auth-card-mobile-brand{display:none!important}.auth-source-relook .auth-card-heading{text-align:left!important}.auth-source-relook .auth-card-heading .eyebrow{display:none}.auth-source-relook .auth-card-heading h2{font-size:20px!important;font-weight:400!important;color:#d9534f!important;margin:0 0 8px!important}.auth-source-relook .auth-card-heading p{color:#999!important;margin-bottom:18px!important}.auth-source-relook .stepper{margin:0 0 22px!important;gap:6px!important}.auth-source-relook .stepper-item{flex:1}.auth-source-relook .stepper-item span{width:100%!important;height:4px!important;border-radius:0!important;font-size:0!important;background:#e5e5e5!important}.auth-source-relook .stepper-item.active span{background:#5f8295!important}.auth-source-relook .form-group label{font-size:12px!important;font-weight:500!important;color:#666!important}.auth-source-relook input{height:38px!important;border-radius:0!important;border:1px solid #ccc!important}.auth-source-relook .btn-primary{background:#5f8295!important;border:1px solid #55788a!important;border-radius:2px!important;font-weight:500!important}.auth-source-relook .info-box,.auth-source-relook .dev-box{border-radius:0!important;border:1px solid #ddd!important;background:#f8f8f8!important;color:#666!important}.auth-source-relook .auth-reset{display:block;text-align:center;margin-top:18px;color:#5f8295!important;font-size:12px}.auth-source-relook .auth-card:after{content:'2026 © ANIP - WURI';display:block;text-align:center;color:#999;font-size:11px;margin-top:28px;padding-top:18px;border-top:1px solid #eee}

/* ==========================================================
   THÈMES — le design Rapido actuel reste le thème par défaut.
   Le mode clair est une variante volontairement légère.
   ========================================================== */
.relook-theme-item{height:50px;display:flex!important;align-items:center}
.relook-theme-toggle{height:50px;border:0;background:transparent;color:#d8d9de;padding:0 13px;display:flex;align-items:center;gap:7px;font:500 12px Raleway,Arial,sans-serif;outline:0}
.relook-theme-toggle:hover,.relook-theme-toggle:focus{background:#20232c;color:#fff}
.relook-theme-toggle .relook-theme-moon{display:none}
html.theme-light .relook-theme-toggle .relook-theme-sun{display:none}
html.theme-light .relook-theme-toggle .relook-theme-moon{display:inline-block}

/* Mode clair : même architecture, uniquement les surfaces de navigation changent. */
html.theme-light body.relook-rapido{background:#f7f8fa;color:#555}
html.theme-light .relook-rapido .topbar{background:#fff;border-bottom:1px solid #e4e6e9;box-shadow:0 1px 3px rgba(0,0,0,.04)}
html.theme-light .relook-rapido .topbar .navbar-header{background:#fff;border-right:1px solid #e4e6e9}
html.theme-light .relook-rapido .topbar .navbar-brand{color:#4f535b!important}
html.theme-light .relook-mobile-toggle{color:#555}
html.theme-light .relook-rapido .topbar-tools .nav>li>a{color:#555}
html.theme-light .relook-rapido .topbar-tools .nav>li>a:hover,
html.theme-light .relook-rapido .topbar-tools .nav>li.open>a{background:#f3f4f6;color:#333}
html.theme-light .relook-theme-toggle{color:#666}
html.theme-light .relook-theme-toggle:hover,html.theme-light .relook-theme-toggle:focus{background:#f3f4f6;color:#333}
html.theme-light .relook-user-avatar{background:#eef1f3;color:#666}
html.theme-light .relook-sidebar{background:#fff;color:#666;border-right:1px solid #e4e6e9}
html.theme-light .relook-sidebar .nav-section{color:#9a9da3}
html.theme-light .relook-sidebar .nav-item,
html.theme-light .relook-sidebar .nav-group-toggle{color:#666!important}
html.theme-light .relook-sidebar .nav-icon{color:#92969d}
html.theme-light .relook-sidebar .nav-item:hover,
html.theme-light .relook-sidebar .nav-item.active,
html.theme-light .relook-sidebar .nav-group[open]>.nav-group-toggle{background:#f3f4f6!important;color:#333!important;border-left-color:#5cb85c!important}
html.theme-light .relook-sidebar .nav-group-content{background:#f8f9fa}
html.theme-light .relook-sidebar .nav-group-content .nav-item.active,
html.theme-light .relook-sidebar .nav-group-content .nav-item:hover{background:#eef0f2!important;color:#333!important}
html.theme-light .relook-sidebar .slide-tools{border-top-color:#e5e7eb;color:#777}
html.theme-light .relook-sidebar .slide-tools button{color:#777}
html.theme-light .relook-sidebar .slide-tools button:hover{color:#333}
html.theme-light .relook-main-container{background:#f7f8fa}

@media(max-width:767px){.relook-theme-toggle{padding:0 11px}.relook-theme-toggle .fa{font-size:15px}}

/* Correctif d'alignement du header après ajout du sélecteur de thème. */
.relook-rapido .topbar .relook-topbar-container{
    height:50px;
    display:flex;
    align-items:stretch;
    flex-wrap:nowrap;
    width:100%;
}
.relook-rapido .topbar .navbar-header{
    float:none!important;
    flex:0 0 240px;
    width:240px!important;
    min-width:240px;
}
.relook-rapido .topbar-tools{
    float:none!important;
    margin-left:auto;
    min-width:0;
    height:50px;
    display:flex;
    align-items:stretch;
}
.relook-rapido .topbar-tools>.nav{
    float:none!important;
    margin:0!important;
    padding:0;
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:stretch;
    height:50px;
    white-space:nowrap;
}
.relook-rapido .topbar-tools>.nav>li{
    float:none!important;
    display:flex!important;
    align-items:stretch;
    height:50px;
}
.relook-rapido .topbar-tools>.nav>li>a,
.relook-theme-toggle{
    height:50px!important;
    min-height:50px!important;
    white-space:nowrap;
}
.relook-theme-toggle{
    width:46px;
    justify-content:center;
    padding:0!important;
}
.relook-theme-toggle [data-theme-label]{
    display:none!important;
}
.relook-rapido .current-user .dropdown-toggle{
    max-width:260px;
    overflow:hidden;
}
.relook-rapido .current-user .username{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

@media(max-width:991px){
    .relook-rapido .topbar .navbar-header{
        flex:0 1 auto;
        width:auto!important;
        min-width:0;
    }
    .relook-rapido .topbar .navbar-brand{
        max-width:220px;
        overflow:hidden;
        text-overflow:ellipsis;
        white-space:nowrap;
    }
}

/* Indicateurs légers en cas de chargement prolongé / perte de réseau. */
.anip-network-notice {position:fixed;bottom:12px;left:50%;transform:translateX(-50%);z-index:99999;max-width:calc(100vw - 24px);padding:9px 15px;border-radius:7px;background:#7b2d19;color:#fff;box-shadow:0 3px 12px #0003;font-size:13px;text-align:center;pointer-events:none}
.anip-network-notice[hidden] {display:none!important}
.anip-navigation-progress {position:fixed;z-index:100000;left:0;top:0;width:0;height:3px;background:#36b7b2;pointer-events:none;opacity:0;transition:width 7s cubic-bezier(.1,.5,.2,1),opacity .2s}
.anip-navigation-progress.is-active {width:82%;opacity:1}
