/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ============================================================
   01 — TOKENS GLOBAUX
   ============================================================ */
:root {
    /* Couleurs Unidet */
    --ud-gold:          #C9A227;
    --ud-gold-light:    #E3C766;
    --ud-gold-soft:     #FDF6E3;
    --ud-gold-deep:     #A0824D;
    --ud-dark:          #0A0E17;
    --ud-dark-2:        #0D1420;
    --ud-dark-3:        #1A1F2E;
    --ud-navy:          #0F172A;
    --ud-sidebar-bg:    #0D0D0D;
    --ud-sidebar-hover: #1C1C1C;

    /* Neutres */
    --ud-bg:            #FAFAF9;
    --ud-card:          #FFFFFF;
    --ud-border:        #EAEAEA;
    --ud-border-soft:   #F0F4F8;
    --ud-border-hard:   #E5E9F0;
    --ud-text:          #1A1A1A;
    --ud-text-soft:     #4B5563;
    --ud-text-muted:    #8A8A8A;
    --ud-text-light:    #94A3B8;

    /* États */
    --ud-blue:          #3B82F6;
    --ud-green:         #22C55E;
    --ud-orange:        #F59E0B;
    --ud-red:           #EF4444;

    /* Rayons */
    --ud-radius:        14px;
    --ud-radius-sm:     10px;
    --ud-radius-xs:     8px;

    /* Ombres */
    --ud-shadow:        0 1px 3px rgba(0,0,0,.06);
    --ud-shadow-md:     0 6px 16px rgba(15,23,42,.08);
    --ud-shadow-lg:     0 20px 40px rgba(15,23,42,.15);
}

/* ============================================================
   02 — AUTH PAGES
   ============================================================ */

/* ---------- 02.1 — Base ---------- */
body.unidet-auth-body {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fafaf7;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #0a0e17;
}

body.unidet-auth-body header,
body.unidet-auth-body footer,
body.unidet-auth-body .site-header,
body.unidet-auth-body .site-footer,
body.unidet-auth-body .elementor-location-header,
body.unidet-auth-body .elementor-location-footer {
    display: none !important;
}

/* Neutralisation des parents Elementor (desktop) */
@media (min-width: 901px) {
    html body.unidet-auth-body,
    html body.unidet-auth-body #page,
    html body.unidet-auth-body #content,
    html body.unidet-auth-body #primary,
    html body.unidet-auth-body .site,
    html body.unidet-auth-body .site-content,
    html body.unidet-auth-body .entry-content,
    html body.unidet-auth-body main,
    html body.unidet-auth-body article,
    html body.unidet-auth-body .elementor,
    html body.unidet-auth-body .elementor-section,
    html body.unidet-auth-body .elementor-container,
    html body.unidet-auth-body .elementor-column,
    html body.unidet-auth-body .elementor-column-wrap,
    html body.unidet-auth-body .elementor-widget-wrap,
    html body.unidet-auth-body .elementor-widget,
    html body.unidet-auth-body .elementor-widget-container,
    html body.unidet-auth-body .elementor-shortcode,
    html body.unidet-auth-body .e-con,
    html body.unidet-auth-body .e-con-inner,
    html body.unidet-auth-body .e-con-boxed,
    html body.unidet-auth-body .e-con-full {
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    html body.unidet-auth-body {
        --container-max-width:         100vw !important;
        --container-default-max-width: 100vw !important;
        --content-width:               100vw !important;
        --kit-container-width:         100vw !important;
    }
}

/* ---------- 02.2 — Layout 2 colonnes ---------- */
body.unidet-auth-body .unidet-reg-page {
    display: grid;
    grid-template-columns: 42% 1fr;
    min-height: 100vh;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

@media (min-width: 901px) {
    body.unidet-auth-body .unidet-reg-page {
        grid-template-columns: 36% 1fr;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }
    html body.unidet-auth-body {
        overflow: hidden !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }
}

/* ---------- 02.3 — Panneau gauche ---------- */
body.unidet-auth-body .unidet-reg-left {
    position: relative;
    background: linear-gradient(160deg, #0a0e17 0%, #0d1420 60%, #111827 100%);
    overflow: hidden;
    display: flex;
}

body.unidet-auth-body .unidet-reg-left-bg {
    position: absolute;
    inset: 0;
    /* Un seul dégradé, plus léger, qui laisse respirer l'image */
    background-image:
        linear-gradient(160deg,
            rgba(10, 14, 23, 0.62) 0%,
            rgba(13, 20, 32, 0.42) 45%,
            rgba(17, 24, 39, 0.68) 100%),
        url('http://app.unidet.fr/wp-content/uploads/2026/09/unidet_auth_pages.webp');
    background-size: cover;
    background-position: 55% 50%;
    background-repeat: no-repeat;
    opacity: 1;
    /* Contraste et saturation préservés pour que l'image soit visible */
    filter: brightness(1.05) contrast(0.92) saturate(0.75);
    z-index: 0;
    pointer-events: none;
}

/* Plus d'overlay ::after → on supprime le double assombrissement */
body.unidet-auth-body .unidet-reg-left-bg::after {
    display: none;
}

body.unidet-auth-body .unidet-reg-left-glow {
    position: absolute;
    top: -180px;
    right: -180px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

body.unidet-auth-body .unidet-reg-left-inner {
    position: relative;
    z-index: 2;
    padding: 48px 52px 32px;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    color: #fff;
}

@media (min-width: 901px) {
    body.unidet-auth-body .unidet-reg-left-inner {
        padding: 42px 44px 32px;
        height: 100%;
        gap: 0;
    }
}

/* Brand : logo seul */
body.unidet-auth-body .unidet-reg-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0 0 60px 0;
    align-self: flex-start;
    text-decoration: none;
}

body.unidet-auth-body .unidet-reg-brand-name { display: none; }

body.unidet-auth-body .unidet-reg-logo {
    width: 84px;
    height: 84px;
    min-width: 84px;
    max-width: 84px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    flex-shrink: 0;
}
body.unidet-auth-body .unidet-reg-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    margin: 0 0 68px 0;   /* ← était 60px, +8px pour aérer */
    align-self: flex-start;
    text-decoration: none;
}
body.unidet-auth-body .unidet-reg-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: none;
}

/* Hero */
body.unidet-auth-body .unidet-reg-hero {
    margin: 0;
    padding: 0;
}

body.unidet-auth-body .unidet-reg-tag {
    display: block;
    font-size: 11px;
    color: #d4a373;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    margin: 0 0 20px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(212, 163, 115, 0.35);
    width: 100%;
}

body.unidet-auth-body .unidet-reg-h1 {
    font-size: clamp(30px, 2.8vw, 42px);
    font-weight: 500;
    line-height: 1.12;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.8px;
}

body.unidet-auth-body .unidet-reg-accent {
    color: #d4a373;
    font-weight: 500;
}

body.unidet-auth-body .unidet-reg-lead {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.65;
    margin: 0 0 28px;
    max-width: 380px;
}

body.unidet-auth-body .unidet-reg-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.unidet-auth-body .unidet-reg-feat {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.4;
}

body.unidet-auth-body .unidet-reg-check {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    background: linear-gradient(135deg, #d4a373 0%, #b8895c 100%);
    color: #0a0e17;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.35);
    line-height: 1;
}

body.unidet-auth-body .unidet-reg-quote {
    margin: auto 0 0 0;
    padding: 24px 0 20px 0;
}

body.unidet-auth-body .unidet-reg-quote p {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 12px;
}

body.unidet-auth-body .unidet-reg-quote::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #d4a373, #b8895c);
    border-radius: 2px;
}

body.unidet-auth-body .unidet-reg-left-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
    width: 100%;
}

body.unidet-auth-body .unidet-reg-left-footer span {
    padding: 0 18px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
}

body.unidet-auth-body .unidet-reg-left-footer span:first-child { padding-left: 0; }
body.unidet-auth-body .unidet-reg-left-footer span:last-child  { padding-right: 0; }

body.unidet-auth-body .unidet-reg-left-footer span:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.25);
    font-weight: 300;
    font-size: 12px;
    line-height: 1;
}

/* ---------- 02.4 — Panneau droit ---------- */
body.unidet-auth-body .unidet-reg-right {
    padding: 48px 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: #fafaf7;
    box-sizing: border-box;
}

body.unidet-auth-body .unidet-reg-right-inner {
    width: 100%;
    max-width: 640px;
    margin: auto;
}

@media (min-width: 901px) {
    body.unidet-auth-body .unidet-reg-right {
        padding: 40px 48px;
        height: 100dvh;
        max-height: 100dvh;
        overflow: hidden;
    }
    body.unidet-auth-body .unidet-reg-right-inner {
        max-width: 780px;
        padding-left: 22px;
        padding-right: 22px;
        max-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
    }
}

@media (min-width: 1400px) {
    body.unidet-auth-body .unidet-reg-right-inner { max-width: 860px; }
}

/* Topbar */
body.unidet-auth-body .unidet-reg-topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    margin-bottom: 40px;
    font-size: 14px;
    color: #64748b;
}

body.unidet-auth-body .unidet-reg-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a0824d;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dotted #a0824d;
    padding-bottom: 1px;
    transition: all 0.2s;
}
body.unidet-auth-body .unidet-reg-topbar-link:hover {
    color: #d4a373;
    border-bottom-color: #d4a373;
}

body.unidet-auth-body .unidet-arrow {
    display: inline-block;
    transition: transform 0.2s;
}
body.unidet-auth-body .unidet-reg-topbar-link:hover .unidet-arrow {
    transform: translateX(3px);
}

/* Heading */
body.unidet-auth-body .unidet-reg-heading {
    text-align: center;
    margin-bottom: 38px;
}

body.unidet-auth-body .unidet-reg-h2 {
    font-size: 34px;
    font-weight: 800;
    color: #0a0e17;
    margin: 0 0 10px;
    letter-spacing: -0.7px;
}

body.unidet-auth-body .unidet-reg-h2-sub {
    font-size: 15px;
    color: #94a3b8;
    margin: 0;
    line-height: 1.5;
}

body.unidet-auth-body .unidet-reg-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 14px;
    background: #fff;
    border: 1px solid #e8e5dc;
    border-radius: 20px;
    font-size: 11px;
    color: #666;
    margin-bottom: 14px;
    font-weight: 600;
}

body.unidet-auth-body .unidet-reg-badge-dot {
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* Form */
body.unidet-auth-body .unidet-reg-form {
    display: flex;
    flex-direction: column;
}

body.unidet-auth-body .unidet-reg-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 22px;
    margin-bottom: 20px;
}

body.unidet-auth-body .unidet-reg-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.unidet-auth-body .unidet-reg-field.full { grid-column: 1 / -1; }

body.unidet-auth-body .unidet-reg-field label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #0a0e17;
    margin-bottom: 10px;
}
body.unidet-auth-body .unidet-reg-field .req { color: #e74c3c; }

body.unidet-auth-body .unidet-reg-field input[type="text"],
body.unidet-auth-body .unidet-reg-field input[type="email"],
body.unidet-auth-body .unidet-reg-field input[type="tel"],
body.unidet-auth-body .unidet-reg-field input[type="password"] {
    width: 100%;
    padding: 17px 20px;
    border: 1.5px solid #e5e9f0;
    border-radius: 11px;
    font-size: 15.5px;
    font-family: inherit;
    background: #fff;
    color: #0a0e17;
    box-sizing: border-box;
    outline: none;
    transition: all 0.15s;
    height: 54px;
}

body.unidet-auth-body .unidet-reg-field input:focus {
    border-color: #d4a373;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}

body.unidet-auth-body .unidet-reg-field input.unidet-input-error {
    border-color: #e74c3c;
    background: #fdf2f2;
}

body.unidet-auth-body .unidet-reg-field input.unidet-input-success {
    border-color: #16a34a;
    background: #f0fdf4;
}

body.unidet-auth-body .unidet-error-msg {
    display: none;
    margin-top: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: #e74c3c;
    line-height: 1.4;
}

body.unidet-auth-body .unidet-field-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
}

body.unidet-auth-body .unidet-hint-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: #dbeafe;
    color: #1e40af;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
    font-family: Georgia, serif;
    font-style: italic;
    flex-shrink: 0;
}

/* Password wrapper */
body.unidet-auth-body .unidet-pwd-wrapper {
    position: relative;
    width: 100%;
}
body.unidet-auth-body .unidet-pwd-wrapper input {
    padding-right: 58px !important;
}
body.unidet-auth-body .unidet-toggle-pwd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0.55;
    z-index: 5;
    transition: all 0.15s;
    font-family: inherit;
}
body.unidet-auth-body .unidet-toggle-pwd:hover {
    opacity: 1;
    background: rgba(212, 163, 115, 0.1);
}

/* Password strength */
body.unidet-auth-body .unidet-password-strength { margin: 8px 0 4px; }
body.unidet-auth-body .unidet-pwd-bar {
    height: 4px;
    background: #f0ede4;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 5px;
}
body.unidet-auth-body .unidet-pwd-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 2px;
    transition: all 0.3s ease;
}
body.unidet-auth-body #unidet-pwd-text,
body.unidet-auth-body [id$="_pwd_text"] {
    font-size: 11.5px;
    font-weight: 700;
}

/* CGU */
body.unidet-auth-body .unidet-reg-cgu-flat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0 26px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    line-height: 1.55;
}
body.unidet-auth-body .unidet-reg-cgu-flat input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #d4a373;
    cursor: pointer;
    flex-shrink: 0;
}
body.unidet-auth-body .unidet-reg-cgu-flat a {
    color: #a0824d;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Login extras */
body.unidet-auth-body .unidet-login-remember {
    display: flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    color: #555;
    font-size: 12.5px;
}
body.unidet-auth-body .unidet-login-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #d4a373;
    cursor: pointer;
}
body.unidet-auth-body .unidet-login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 4px 0 20px;
    font-size: 12.5px;
}

/* Submit */
body.unidet-auth-body .unidet-reg-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 32px;
    background: #cbd5e1;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: not-allowed;
    transition: all 0.25s;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
    min-height: 56px;
}

body.unidet-auth-body .unidet-reg-submit.active {
    background: linear-gradient(135deg, #d4a373 0%, #b8895c 100%);
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(212, 163, 115, 0.35);
}
body.unidet-auth-body .unidet-reg-submit.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(212, 163, 115, 0.45);
}
body.unidet-auth-body .unidet-reg-submit .unidet-arrow { font-size: 18px; }
body.unidet-auth-body .unidet-reg-submit.active:hover .unidet-arrow { transform: translateX(4px); }

/* Secure badge */
body.unidet-auth-body .unidet-reg-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 18px 0 0;
    font-size: 12.5px;
    color: #94a3b8;
    font-weight: 500;
}

/* ---------- 02.5 — Messages ---------- */
body.unidet-auth-body .unidet-reg-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 20px;
    margin: 0 auto 24px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    animation: unidetShake 0.4s ease;
}

body.unidet-auth-body .unidet-reg-message-icon { font-size: 20px; flex-shrink: 0; line-height: 1; }
body.unidet-auth-body .unidet-reg-message-text { flex: 1; }

body.unidet-auth-body .unidet-reg-message.success {
    background: #ecfdf5;
    border: 1.5px solid #d1fae5;
    border-left: 4px solid #16a34a;
    color: #065f46;
}
body.unidet-auth-body .unidet-reg-message.success .unidet-reg-message-icon { color: #16a34a; }

body.unidet-auth-body .unidet-reg-message.error {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-left: 4px solid #dc2626;
    color: #991b1b;
}
body.unidet-auth-body .unidet-reg-message.error .unidet-reg-message-icon { color: #dc2626; }

body.unidet-auth-body .unidet-reg-message.warning {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-left: 4px solid #f59e0b;
    color: #78350f;
}
body.unidet-auth-body .unidet-reg-message.warning .unidet-reg-message-icon { color: #f59e0b; }

@keyframes unidetShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ---------- 02.6 — Already logged card ---------- */
body.ud-dash-body .unidet-already-logged,
.unidet-already-logged {
    max-width: 520px;
    margin: 80px auto;
    padding: 44px 32px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(10, 14, 23, 0.08);
    border: 1px solid #eef2f6;
    text-align: center;
}
body.ud-dash-body .unidet-already-logged-icon,
.unidet-already-logged-icon {
    width: 64px; height: 64px;
    background: #f0f8ff;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    border: 2px solid #cce4f5;
    font-size: 28px;
}
body.ud-dash-body .unidet-already-logged h2,
.unidet-already-logged h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #0a0e17;
}
body.ud-dash-body .unidet-already-logged p,
.unidet-already-logged p {
    margin: 0 0 24px;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}
body.ud-dash-body .unidet-already-logged a.btn,
.unidet-already-logged a.btn {
    display: inline-block;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
    color: #fff;
    padding: 14px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14.5px;
    box-shadow: 0 4px 14px rgba(10, 14, 23, 0.2);
}
body.ud-dash-body .unidet-already-logged .logout-link,
.unidet-already-logged .logout-link {
    margin-top: 20px;
    font-size: 12.5px;
    color: #999;
}
body.ud-dash-body .unidet-already-logged .logout-link a,
.unidet-already-logged .logout-link a {
    color: #a0824d;
    font-weight: 700;
    text-decoration: none;
}

/* ---------- 02.7 — Champ téléphone (consolidé v10) ---------- */
body.unidet-auth-body .unidet-phone-wrapper {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.unidet-auth-body .unidet-phone-wrapper .iti {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
    width: 100%;
    height: 54px;
    background: #fff;
    border: 1.5px solid #e5e9f0;
    border-radius: 11px;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

body.unidet-auth-body .unidet-phone-wrapper .iti:focus-within {
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

body.unidet-auth-body .unidet-phone-wrapper .iti__country-container,
body.unidet-auth-body .unidet-phone-wrapper .iti__flag-container {
    position: static;
    grid-column: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    min-width: 120px;
    max-width: 120px;
    height: 100%;
    padding: 0;
    margin: 0;
    background: #f8fafc;
    border: none;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    box-shadow: none;
    z-index: 2;
}

body.unidet-auth-body .unidet-phone-wrapper .iti__selected-country,
body.unidet-auth-body .unidet-phone-wrapper .iti__selected-flag {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    height: 100%;
    padding: 0 8px 0 10px;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

body.unidet-auth-body .unidet-phone-wrapper .iti__selected-country:hover,
body.unidet-auth-body .unidet-phone-wrapper .iti__selected-flag:hover {
    background: rgba(0, 0, 0, 0.03);
}

body.unidet-auth-body .unidet-phone-wrapper .iti__selected-country-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

body.unidet-auth-body .unidet-phone-wrapper .iti__flag {
    flex-shrink: 0;
    margin: 0 0 0 -2px;
    box-shadow: none;
}

body.unidet-auth-body .unidet-phone-wrapper .iti__selected-dial-code {
    flex-shrink: 0;
    font-size: 14.5px;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    line-height: 1;
    margin: 0;
    padding: 0;
}

body.unidet-auth-body .unidet-phone-wrapper .iti__arrow {
    flex-shrink: 0;
    margin: 0 0 0 auto;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 4px solid #94a3b8;
}

body.unidet-auth-body .unidet-reg-field .unidet-phone-wrapper input[type="tel"],
body.unidet-auth-body .unidet-phone-wrapper .iti input.iti__tel-input[type="tel"] {
    grid-column: 2;
    display: block;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 16px 0 18px;
    margin: 0;
    border: none;
    border-left: 0;
    outline: none;
    box-shadow: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #0F172A;
    text-align: left;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

body.unidet-auth-body .unidet-phone-wrapper input[type="tel"]::placeholder {
    color: #CBD5E1;
    font-weight: 400;
    font-style: normal;
    opacity: 1;
}

body.unidet-auth-body .unidet-phone-wrapper .iti.phone-invalid {
    border-color: #E74C3C !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,.12) !important;
}

body.unidet-auth-body .unidet-phone-wrapper .iti.phone-valid {
    border-color: #10B981 !important;
    box-shadow: 0 0 0 3px rgba(16,185,129,.10) !important;
}

body.unidet-auth-body .unidet-phone-msg {
    display: block;
    min-height: 16px;
    margin-top: 6px;
    padding-left: 2px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 500;
    color: transparent;
    transition: color .15s ease;
    pointer-events: none;
    user-select: none;
}
body.unidet-auth-body .unidet-phone-msg.is-error { color: #E74C3C; }
body.unidet-auth-body .unidet-phone-msg.is-valid { color: #10B981; font-weight: 600; }

body.unidet-auth-body .unidet-phone-wrapper .iti.unidet-input-error,
body.unidet-auth-body .unidet-phone-wrapper .iti.unidet-input-success {
    border-color: #E5E7EB;
    box-shadow: none;
}

body.unidet-auth-body .unidet-reg-field .unidet-error-msg[data-for="user_phone"],
body.unidet-auth-body .unidet-reg-field [data-format-hint],
body.unidet-auth-body .unidet-reg-field .unidet-phone-format-hint,
body.unidet-auth-body #phone-success-icon,
body.unidet-auth-body .unidet-phone-success-icon,
body.unidet-auth-body .unidet-phone-format {
    display: none !important;
}

/* Dropdown pays */
.iti__dropdown-content {
    width: 340px !important;
    max-width: calc(100vw - 24px) !important;
    padding: 8px !important;
    border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05), 0 20px 40px -8px rgba(15, 23, 42, 0.14) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    z-index: 999999 !important;
}

.iti__country-list {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 320px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}

.iti__country-container {
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
}

.iti__search-input {
    display: block !important;
    width: 100% !important;
    height: 38px !important;
    margin: 0 0 6px 0 !important;
    padding: 0 12px !important;
    border: 1.5px solid #E5E7EB !important;
    border-radius: 8px !important;
    background: #FAFBFC !important;
    color: #0F172A !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
    outline: none !important;
}
.iti__search-input:focus {
    border-color: #C9A227 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .12) !important;
}
.iti__search-input::placeholder { color: #94A3B8 !important; }

.iti__country {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    margin: 1px 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #0F172A !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    transition: background-color .12s ease !important;
}
.iti__country:hover,
.iti__country.iti__highlight,
.iti__country:focus,
.iti__country:active {
    background: #F1F5F9 !important;
    color: #0F172A !important;
}
.iti__country.iti__active,
.iti__country[aria-selected="true"] {
    background: #FEF9E7 !important;
    font-weight: 600 !important;
}
.iti__country-name { flex: 1 !important; color: #0F172A !important; font-size: 14px !important; }
.iti__dial-code { margin-left: auto !important; color: #94A3B8 !important; font-size: 13px !important; font-weight: 500 !important; }

.iti__country-list::-webkit-scrollbar { width: 6px; }
.iti__country-list::-webkit-scrollbar-track { background: transparent; }
.iti__country-list::-webkit-scrollbar-thumb { background: #E5E7EB; border-radius: 3px; }

/* ---------- 02.8 — Responsive AUTH ---------- */
@media (max-width: 900px) {
    html body.unidet-auth-body {
        overflow: auto !important;
        height: auto !important;
        max-height: none !important;
    }
    body.unidet-auth-body .unidet-reg-page {
        display: block !important;
        grid-template-columns: 1fr !important;
        height: auto !important;
        max-height: none !important;
        min-height: 100vh !important;
        overflow: visible !important;
    }
    body.unidet-auth-body .unidet-reg-left {
        position: relative;
        display: block;
        width: 100%;
        min-height: auto;
        height: auto;
        overflow: hidden;
        border-radius: 0 0 24px 24px;
    }
    body.unidet-auth-body .unidet-reg-left-bg {
        background-position: 60% 45%;
        filter: brightness(0.95) contrast(0.75) saturate(0.35);
    }
    body.unidet-auth-body .unidet-reg-left-bg::after {
        background: linear-gradient(160deg,
            rgba(10, 14, 23, 0.82) 0%,
            rgba(13, 20, 32, 0.72) 50%,
            rgba(17, 24, 39, 0.90) 100%);
    }
    body.unidet-auth-body .unidet-reg-left-glow { display: none; }

    body.unidet-auth-body .unidet-reg-left-inner {
        padding: 28px 28px 30px;
        gap: 20px;
        height: auto;
        justify-content: flex-start;
    }

    body.unidet-auth-body .unidet-reg-brand {
        margin: 0 0 4px 0;
        justify-content: flex-start;
    }
    body.unidet-auth-body .unidet-reg-logo {
        width: 68px; height: 68px;
        min-width: 68px; max-width: 68px;
    }

    body.unidet-auth-body .unidet-reg-hero { text-align: left; }
    body.unidet-auth-body .unidet-reg-tag {
        font-size: 10px;
        letter-spacing: 2px;
        margin: 0 0 12px 0;
        padding: 0 0 10px 0;
    }
    body.unidet-auth-body .unidet-reg-h1 {
        font-size: 26px;
        line-height: 1.2;
        margin: 0 0 10px 0;
        letter-spacing: -0.5px;
    }
    body.unidet-auth-body .unidet-reg-lead {
        font-size: 13.5px;
        line-height: 1.55;
        margin: 0 0 18px 0;
        max-width: 100%;
    }

    body.unidet-auth-body .unidet-reg-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
        margin-bottom: 4px;
    }
    body.unidet-auth-body .unidet-reg-feat {
        font-size: 12.5px;
        gap: 10px;
        color: rgba(255, 255, 255, 0.85);
    }
    body.unidet-auth-body .unidet-reg-check {
        width: 24px; height: 24px;
        min-width: 24px; max-width: 24px;
        font-size: 11px;
    }

    body.unidet-auth-body .unidet-reg-quote {
        margin: 12px 0 0 0;
        padding: 18px 0 0 0;
        border-top: 1px solid rgba(212, 163, 115, 0.18);
    }
    body.unidet-auth-body .unidet-reg-quote p {
        font-size: 13.5px;
        line-height: 1.5;
        margin: 0 0 10px 0;
    }

    body.unidet-auth-body .unidet-reg-left-footer {
        justify-content: flex-start;
        margin: 4px 0 0 0;
        gap: 0;
    }
    body.unidet-auth-body .unidet-reg-left-footer span {
        padding: 0 14px;
        font-size: 9.5px;
        letter-spacing: 2px;
    }
    body.unidet-auth-body .unidet-reg-left-footer span:first-child { padding-left: 0; }

    body.unidet-auth-body .unidet-reg-right {
        padding: 32px 28px 48px;
        height: auto;
        max-height: none;
        min-height: auto;
        display: block;
        overflow: visible;
    }
    body.unidet-auth-body .unidet-reg-right-inner {
        max-width: 560px;
        margin: 0 auto;
        padding-left: 0;
        padding-right: 0;
        display: block;
        height: auto;
        max-height: none;
    }

    body.unidet-auth-body .unidet-reg-topbar {
        margin-bottom: 22px;
        justify-content: center;
    }
    body.unidet-auth-body .unidet-reg-heading {
        margin-bottom: 24px;
        text-align: center;
    }
    body.unidet-auth-body .unidet-reg-h2 { font-size: 24px; }
    body.unidet-auth-body .unidet-reg-h2-sub { font-size: 13.5px; }

    body.unidet-auth-body .unidet-reg-grid {
        gap: 16px;
        margin-bottom: 16px;
    }
    body.unidet-auth-body .unidet-reg-field input[type="text"],
    body.unidet-auth-body .unidet-reg-field input[type="email"],
    body.unidet-auth-body .unidet-reg-field input[type="tel"],
    body.unidet-auth-body .unidet-reg-field input[type="password"] {
        padding: 14px 16px;
        font-size: 15px;
        height: 50px;
    }
    body.unidet-auth-body .unidet-phone-wrapper .iti { height: 50px; }
    body.unidet-auth-body .unidet-phone-wrapper .iti__country-container,
    body.unidet-auth-body .unidet-phone-wrapper .iti__flag-container {
        width: 100px; min-width: 100px; max-width: 100px;
    }
    body.unidet-auth-body .unidet-phone-wrapper .iti__selected-country,
    body.unidet-auth-body .unidet-phone-wrapper .iti__selected-flag {
        padding: 0 10px;
        gap: 7px;
    }
    body.unidet-auth-body .unidet-reg-submit {
        padding: 15px 28px;
        font-size: 15px;
        min-height: 52px;
    }

        /* Dropdown pays : plein écran mobile */
    body .iti--container,
    body .iti__country-container[style*="position"] {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 24px) !important;
        max-width: 460px !important;
        max-height: 80vh !important;
        z-index: 9999999 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .iti__dropdown-content,
    .iti__country-list {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
    }
    .iti__country-list {
        max-height: calc(80vh - 70px) !important;
        padding: 8px !important;
    }
    .iti__search-input {
        height: 46px !important;
        margin: 0 8px 8px 8px !important;
        font-size: 15px !important;
        width: calc(100% - 16px) !important;
        box-sizing: border-box !important;
    }
    .iti__country { min-height: 48px !important; padding: 12px 14px !important; font-size: 14.5px !important; }
    .iti__country-name { font-size: 14.5px !important; }
    .iti__dial-code { font-size: 13.5px !important; }
	
	    /* ═══════════════════════════════════════════════════════════
       🌑 BACKDROP SOMBRE derrière le dropdown mobile
       (assombrit la page + clic = fermeture)
       ═══════════════════════════════════════════════════════════ */
    body.ud-country-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(10, 14, 23, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9999998;
        animation: udCountryBackdropIn 0.2s ease;
    }
    @keyframes udCountryBackdropIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
}

/* ═══════════════════════════════════════════════════════════════
   🎯 TABLETTE — Dropdown pays plein écran (900–1024px)
   Complète la règle mobile (≤900px) pour couvrir TOUTE tablette
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 901px) and (max-width: 1024px) {
    body .iti--container,
    body .iti__country-container[style*="position"] {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 60px) !important;
        max-width: 520px !important;
        max-height: 75vh !important;
        z-index: 9999999 !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .iti__dropdown-content,
    .iti__country-list {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border-radius: 16px !important;
    }
    .iti__country-list {
        max-height: calc(75vh - 70px) !important;
        padding: 8px !important;
    }
    .iti__search-input {
        height: 46px !important;
        margin: 0 8px 8px 8px !important;
        font-size: 15px !important;
        width: calc(100% - 16px) !important;
    }
    .iti__country { min-height: 46px !important; padding: 12px 14px !important; font-size: 14.5px !important; }

    /* Backdrop sombre */
    body.ud-country-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(10, 14, 23, 0.55);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 9999998;
    }
}

@media (max-width: 560px) {
    body.unidet-auth-body .unidet-reg-left { border-radius: 0 0 20px 20px; }
    body.unidet-auth-body .unidet-reg-left-bg { background-position: 65% 40%; }
    body.unidet-auth-body .unidet-reg-left-inner { padding: 22px 20px 24px; gap: 14px; }
    body.unidet-auth-body .unidet-reg-logo {
        width: 56px; height: 56px;
        min-width: 56px; max-width: 56px;
    }
    body.unidet-auth-body .unidet-reg-tag {
        font-size: 9.5px;
        letter-spacing: 1.8px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    body.unidet-auth-body .unidet-reg-h1 { font-size: 22px; margin-bottom: 8px; }
    body.unidet-auth-body .unidet-reg-lead { font-size: 12.5px; margin-bottom: 14px; }
    body.unidet-auth-body .unidet-reg-features { grid-template-columns: 1fr 1fr; gap: 8px 10px; }
    body.unidet-auth-body .unidet-reg-feat { font-size: 11.5px; gap: 8px; }
    body.unidet-auth-body .unidet-reg-check {
        width: 20px; height: 20px;
        min-width: 20px; max-width: 20px;
        font-size: 10px;
    }
    body.unidet-auth-body .unidet-reg-quote { display: none; }
    body.unidet-auth-body .unidet-reg-left-footer { justify-content: flex-start; margin-top: 2px; }
    body.unidet-auth-body .unidet-reg-left-footer span {
        padding: 0 10px;
        font-size: 9px;
        letter-spacing: 1.5px;
    }

    body.unidet-auth-body .unidet-reg-right { padding: 28px 18px 40px; }
    body.unidet-auth-body .unidet-reg-right-inner { max-width: 100%; }

    body.unidet-auth-body .unidet-reg-topbar { margin-bottom: 18px; font-size: 12.5px; }
    body.unidet-auth-body .unidet-reg-heading { margin-bottom: 20px; }
    body.unidet-auth-body .unidet-reg-h2 { font-size: 21px; letter-spacing: -0.4px; }
    body.unidet-auth-body .unidet-reg-h2-sub { font-size: 12.5px; }
    body.unidet-auth-body .unidet-reg-grid { gap: 14px; margin-bottom: 14px; }
    body.unidet-auth-body .unidet-reg-field label { font-size: 12.5px; margin-bottom: 6px; }
    body.unidet-auth-body .unidet-reg-field input[type="text"],
    body.unidet-auth-body .unidet-reg-field input[type="email"],
    body.unidet-auth-body .unidet-reg-field input[type="tel"],
    body.unidet-auth-body .unidet-reg-field input[type="password"] {
        padding: 13px 14px;
        font-size: 15px;
        height: 48px;
        border-radius: 10px;
    }
    body.unidet-auth-body .unidet-phone-wrapper .iti { height: 48px; }
    body.unidet-auth-body .unidet-phone-wrapper .iti__country-container,
    body.unidet-auth-body .unidet-phone-wrapper .iti__flag-container {
        width: 100px; min-width: 100px; max-width: 100px;
    }
    body.unidet-auth-body .unidet-phone-wrapper .iti__selected-country,
    body.unidet-auth-body .unidet-phone-wrapper .iti__selected-flag {
        padding: 0 8px;
        gap: 7px;
    }
    body.unidet-auth-body .unidet-phone-wrapper .iti__selected-dial-code { font-size: 13.5px; }
    body.unidet-auth-body .unidet-toggle-pwd {
        right: 8px;
        width: 34px; height: 34px;
        font-size: 15px;
    }
    body.unidet-auth-body .unidet-pwd-wrapper input { padding-right: 48px !important; }
    body.unidet-auth-body .unidet-reg-cgu-flat {
        font-size: 12px;
        gap: 8px;
        margin: 10px 0 18px;
    }
    body.unidet-auth-body .unidet-reg-cgu-flat input[type="checkbox"] {
        width: 16px; height: 16px;
    }
    body.unidet-auth-body .unidet-reg-submit {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 50px;
    }
    body.unidet-auth-body .unidet-login-row {
        font-size: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    body.unidet-auth-body .unidet-reg-secure { font-size: 11.5px; margin-top: 14px; }
    body.unidet-auth-body .unidet-reg-message { padding: 11px 14px; font-size: 12.5px; margin-bottom: 18px; }
}

@media (max-width: 380px) {
    body.unidet-auth-body .unidet-reg-left-inner { padding: 18px 16px 20px; }
    body.unidet-auth-body .unidet-reg-h1 { font-size: 20px; }
    body.unidet-auth-body .unidet-reg-lead { font-size: 12px; }
    body.unidet-auth-body .unidet-reg-features { grid-template-columns: 1fr; gap: 6px; }
    body.unidet-auth-body .unidet-reg-feat { font-size: 11px; }
    body.unidet-auth-body .unidet-reg-right { padding: 24px 14px 36px; }
    body.unidet-auth-body .unidet-reg-h2 { font-size: 19px; }
    body.unidet-auth-body .unidet-phone-wrapper .iti { height: 48px; border-radius: 10px; }
    body.unidet-auth-body .unidet-phone-wrapper .iti__country-container,
    body.unidet-auth-body .unidet-phone-wrapper .iti__flag-container {
        width: 100px; min-width: 100px; max-width: 100px;
    }
    body.unidet-auth-body .unidet-phone-wrapper .iti__selected-country,
    body.unidet-auth-body .unidet-phone-wrapper .iti__selected-flag {
        padding: 0 8px; gap: 6px;
    }
    body.unidet-auth-body .unidet-phone-wrapper .iti__selected-dial-code { font-size: 13px; }
    body.unidet-auth-body .unidet-phone-wrapper input[type="tel"] { padding: 0 12px 0 14px; }
    body .iti--container { width: calc(100vw - 16px) !important; }
}

@media (min-width: 901px) and (max-height: 800px) {
    body.unidet-auth-body .unidet-reg-left-inner { padding: 32px 44px 24px; }
    body.unidet-auth-body .unidet-reg-brand { margin-bottom: 40px; }
    body.unidet-auth-body .unidet-reg-h1 { font-size: 30px; }
    body.unidet-auth-body .unidet-reg-right { padding: 16px 48px; }
    body.unidet-auth-body .unidet-reg-right-inner { padding-left: 15px; padding-right: 15px; }
    body.unidet-auth-body .unidet-reg-topbar { margin-bottom: 14px; }
    body.unidet-auth-body .unidet-reg-heading { margin-bottom: 14px; }
    body.unidet-auth-body .unidet-reg-h2 { font-size: 22px; }
    body.unidet-auth-body .unidet-reg-h2-sub { font-size: 12.5px; }
    body.unidet-auth-body .unidet-reg-grid { gap: 10px 14px; margin-bottom: 12px; }
    body.unidet-auth-body .unidet-reg-field input[type="text"],
    body.unidet-auth-body .unidet-reg-field input[type="email"],
    body.unidet-auth-body .unidet-reg-field input[type="tel"],
    body.unidet-auth-body .unidet-reg-field input[type="password"] {
        padding: 10px 12px;
        font-size: 14px;
        height: 42px;
    }
    body.unidet-auth-body .unidet-phone-wrapper .iti { height: 42px; }
    body.unidet-auth-body .unidet-reg-submit { padding: 12px 24px; min-height: 46px; font-size: 14px; }
    body.unidet-auth-body .unidet-reg-quote { padding: 18px 0 14px 0; }
}

@media (min-width: 901px) and (max-height: 700px) {
    body.unidet-auth-body .unidet-reg-brand { margin-bottom: 28px; }
    body.unidet-auth-body .unidet-reg-h1 { font-size: 26px; }
    body.unidet-auth-body .unidet-reg-lead { margin-bottom: 20px; font-size: 13.5px; }
    body.unidet-auth-body .unidet-reg-features { gap: 10px; }
    body.unidet-auth-body .unidet-reg-quote p { font-size: 14px; }
    body.unidet-auth-body .unidet-reg-h2 { font-size: 20px; }
    body.unidet-auth-body .unidet-reg-heading { margin-bottom: 10px; }
    body.unidet-auth-body .unidet-reg-topbar { margin-bottom: 10px; }
    body.unidet-auth-body .unidet-reg-cgu-flat { margin: 8px 0 12px; }
    body.unidet-auth-body .unidet-reg-grid { gap: 8px 12px; }
}

/* ============================================================
   03 — DASHBOARD (client + admin) — structure commune
   ============================================================ */

/* ---------- 03.1 — Body & reset Elementor ---------- */
html body.ud-dash-body {
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    background: var(--ud-bg);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --container-max-width:         100vw !important;
    --container-default-max-width: 100vw !important;
    --content-width:               100vw !important;
    --kit-container-width:         100vw !important;
}

html body.ud-dash-body header:not(.ud-topbar),
html body.ud-dash-body footer:not(.ud-footer),
html body.ud-dash-body .site-header,
html body.ud-dash-body .site-footer,
html body.ud-dash-body .elementor-location-header,
html body.ud-dash-body .elementor-location-footer {
    display: none !important;
}

html body.ud-dash-body #page,
html body.ud-dash-body #content,
html body.ud-dash-body #primary,
html body.ud-dash-body #main,
html body.ud-dash-body .site,
html body.ud-dash-body .site-content,
html body.ud-dash-body .site-main,
html body.ud-dash-body .entry-content,
html body.ud-dash-body .post-content,
html body.ud-dash-body main,
html body.ud-dash-body article,
html body.ud-dash-body .elementor,
html body.ud-dash-body .elementor-section,
html body.ud-dash-body .elementor-container,
html body.ud-dash-body .elementor-column,
html body.ud-dash-body .elementor-column-wrap,
html body.ud-dash-body .elementor-widget-wrap,
html body.ud-dash-body .elementor-widget,
html body.ud-dash-body .elementor-widget-container,
html body.ud-dash-body .elementor-widget-shortcode,
html body.ud-dash-body .elementor-shortcode,
html body.ud-dash-body .e-con,
html body.ud-dash-body .e-con-boxed,
html body.ud-dash-body .e-con-inner,
html body.ud-dash-body .e-con-full,
html body.ud-dash-body .e-con.e-parent,
html body.ud-dash-body [class*="e-con-"],
html body.ud-dash-body [class*="elementor-element-"],
html body.ud-dash-body [data-elementor-type],
html body.ud-dash-body [data-elementor-id] {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}

html body.ud-dash-body .e-con-inner {
    --container-max-width: 100% !important;
    --content-width:       100% !important;
}

/* ---------- 03.2 — Layout ---------- */
.ud-layout {
    display: grid !important;
    grid-template-columns: 240px minmax(0, 1fr) !important;
    grid-template-rows: 100vh !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--ud-bg);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    box-sizing: border-box;
    transition: grid-template-columns .35s cubic-bezier(.4, 0, .2, 1);
}

.ud-layout.ud-collapsed {
    grid-template-columns: 80px minmax(0, 1fr) !important;
}

/* ---------- 03.3 — Sidebar ---------- */
.ud-sidebar {
    grid-column: 1;
    grid-row: 1;
    width: 240px;
    height: 100vh;
    background: var(--ud-sidebar-bg);
    color: #fff;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    box-sizing: border-box;
    transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.ud-layout.ud-collapsed .ud-sidebar {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
}

.ud-sidebar::-webkit-scrollbar { width: 4px; }
.ud-sidebar::-webkit-scrollbar-track { background: transparent; }
.ud-sidebar::-webkit-scrollbar-thumb { background: rgba(201, 162, 39, .25); border-radius: 2px; }
.ud-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(201, 162, 39, .5); }

.ud-sidebar-head {
    padding: 22px 20px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    min-height: 96px;
    box-sizing: border-box;
    position: relative;
}

.ud-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex: 1;
    min-width: 0;
}

.ud-brand-logo {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
    border: none;
    padding: 0;
    border-radius: 0;
}
.ud-brand-logo img {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    object-fit: contain;
    display: block;
}

.ud-brand-name {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: .12em;
    color: var(--ud-gold);
    white-space: nowrap;
    line-height: 1.1;
}

.ud-sidebar-toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(201, 162, 39, .12);
    border: 1px solid rgba(201, 162, 39, .28);
    color: var(--ud-gold);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: all .25s ease;
}
.ud-sidebar-toggle:hover {
    background: rgba(201, 162, 39, .25);
    border-color: rgba(201, 162, 39, .5);
    transform: scale(1.08);
}

.ud-toggle-icon {
    display: block;
    line-height: 1;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.ud-layout.ud-collapsed .ud-toggle-icon { transform: rotate(180deg); }

.ud-sidebar-close {
    display: none;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}

/* Nav */
.ud-nav {
    flex: 1 1 auto;
    padding: 22px 12px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    overflow-y: auto;
}

.ud-nav-group { display: flex; flex-direction: column; gap: 4px; }

.ud-nav-group-title {
    font-size: 10.5px;
    color: #6B6B6B;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    padding: 0 14px 8px;
}

.ud-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #B8B8B8;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    border-radius: 10px;
    transition: all .2s ease;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}
.ud-nav-item:hover {
    background: var(--ud-sidebar-hover);
    color: #fff;
}
.ud-nav-item.active {
    background: rgba(201, 162, 39, .12);
    color: var(--ud-gold);
    font-weight: 600;
    box-shadow: none;
}
.ud-nav-item.active .ud-nav-icon { color: var(--ud-gold); }

.ud-nav-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 22px;
    min-width: 22px;
    text-align: center;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ud-nav-label { flex: 1; }

.ud-nav-badge {
    background: rgba(201, 162, 39, .18);
    color: var(--ud-gold);
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
}
.ud-nav-item.active .ud-nav-badge {
    background: rgba(201, 162, 39, .25);
    color: var(--ud-gold);
}
.ud-nav-badge-alert {
    background: var(--ud-red) !important;
    color: #fff !important;
}

/* État replié */
.ud-layout.ud-collapsed .ud-sidebar-head {
    padding: 20px 10px;
    min-height: 96px;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}
.ud-layout.ud-collapsed .ud-brand { justify-content: center; flex: 0 0 auto; gap: 0; }
.ud-layout.ud-collapsed .ud-brand-logo { width: 40px; height: 40px; }
.ud-layout.ud-collapsed .ud-brand-name { display: none; }

.ud-layout.ud-collapsed .ud-nav { padding: 22px 10px; gap: 20px; }
.ud-layout.ud-collapsed .ud-nav-group-title { display: none; }
.ud-layout.ud-collapsed .ud-nav-item {
    justify-content: center;
    padding: 12px 8px;
    gap: 0;
}
.ud-layout.ud-collapsed .ud-nav-label { display: none; }
.ud-layout.ud-collapsed .ud-nav-badge,
.ud-layout.ud-collapsed .ud-nav-badge-alert {
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    font-size: 9px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tooltips */
.ud-layout.ud-collapsed .ud-nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: var(--ud-sidebar-bg);
    color: #fff;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    border: 1px solid rgba(201, 162, 39, .3);
    z-index: 9999;
}
.ud-layout.ud-collapsed .ud-nav-item:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* Footer sidebar */
.ud-sidebar-foot {
    padding: 14px 12px;
    border-top: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.ud-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: transparent;
    border: none;
    transition: background .2s ease;
}
.ud-user-card:hover { background: rgba(255, 255, 255, .03); }

.ud-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--ud-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.ud-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.ud-avatar-initials {
    font-size: 13px;
    font-weight: 800;
    color: var(--ud-sidebar-bg);
    letter-spacing: 0.5px;
}
.ud-avatar-initials.big { font-size: 26px; }

.ud-user-info { flex: 1; min-width: 0; }
.ud-user-name {
    font-size: 13.5px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.ud-user-role {
    font-size: 10px;
    color: #6B6B6B;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 600;
    margin-top: 2px;
}

.ud-logout-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    background: transparent;
    color: #B8B8B8;
    border: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s ease;
    width: 100%;
    text-align: left;
}
.ud-logout-btn:hover {
    background: rgba(239, 68, 68, .12);
    color: var(--ud-red);
}
.ud-logout-btn > span:first-child { font-size: 15px; line-height: 1; }

.ud-layout.ud-collapsed .ud-sidebar-foot { padding: 14px 10px; gap: 8px; }
.ud-layout.ud-collapsed .ud-user-card {
    justify-content: center;
    padding: 6px;
    background: transparent;
}
.ud-layout.ud-collapsed .ud-avatar { width: 34px; height: 34px; }
.ud-layout.ud-collapsed .ud-user-info,
.ud-layout.ud-collapsed .ud-logout-btn > span:not(:first-child) {
    display: none;
}
.ud-layout.ud-collapsed .ud-logout-btn {
    justify-content: center;
    padding: 12px 8px;
    gap: 0;
}
.ud-layout.ud-collapsed .ud-logout-btn > span:first-child { font-size: 18px; }

/* ---------- 03.4 — Content ---------- */
.ud-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: var(--ud-bg);
    min-width: 0;
}

.ud-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 36px;
    background: var(--ud-bg);
    border-bottom: 1px solid var(--ud-border);
    flex-shrink: 0;
    gap: 20px;
    box-sizing: border-box;
}

.ud-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: #f0f4f8;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 10px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}
.ud-menu-toggle span {
    display: block;
    width: 20px;
    height: 2.5px;
    background: var(--ud-dark);
    border-radius: 2px;
}

.ud-topbar-title { flex: 1; min-width: 0; }
.ud-topbar-title h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--ud-text);
    letter-spacing: -.5px;
    line-height: 1.15;
}
.ud-topbar-title p {
    margin: 6px 0 0;
    font-size: 13.5px;
    color: var(--ud-text-muted);
    font-weight: 400;
    line-height: 1.45;
}

.ud-topbar-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-shrink: 0;
}

.ud-topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 16px;
    border-left: 1px solid var(--ud-border);
}
.ud-topbar-brand img {
    height: 40px;
    width: auto;
    max-width: 60px;
    object-fit: contain;
    display: block;
}
.ud-topbar-tagline {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ud-text-muted);
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

/* Bell */
.ud-bell-wrap { position: relative; }
.ud-bell {
    position: relative;
    background: var(--ud-card);
    border: 1px solid var(--ud-border);
    width: 44px;
    height: 44px;
    border-radius: var(--ud-radius-sm);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.ud-bell:hover { background: #e1ecf5; }
.ud-bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--ud-red);
    color: #fff;
    min-width: 18px;
    height: 18px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 0 0 2px var(--ud-bg);
}

.ud-notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: calc(100vw - 40px);
    max-height: 460px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.15);
    z-index: 999;
    overflow: hidden;
}
.ud-notif-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(135deg, var(--ud-dark), var(--ud-dark-3));
    color: #fff;
}
.ud-notif-mark {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.ud-notif-list { max-height: 380px; overflow-y: auto; }
.ud-notif-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 13px 18px;
    border-bottom: 1px solid var(--ud-border-soft);
}
.ud-notif-item.unread { background: #f0f8ff; }
.ud-notif-icon {
    width: 32px;
    height: 32px;
    background: var(--ud-border-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.ud-notif-msg {
    font-size: 12.5px;
    color: var(--ud-text);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 3px;
}
.ud-notif-date { font-size: 10.5px; color: var(--ud-text-muted); }

/* Body scrollable */
.ud-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px 36px 40px;
    min-width: 0;
    height: 0;
    box-sizing: border-box;
}

/* Sections */
.ud-section { display: none; }
.ud-section.active { display: block; animation: udFadeIn 0.3s ease; }
@keyframes udFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Blocks */
.ud-block {
    background: var(--ud-card);
    border: 1px solid var(--ud-border);
    border-radius: var(--ud-radius);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--ud-shadow);
    box-sizing: border-box;
    width: 100%;
}
.ud-block-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.ud-block-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ud-text);
}
.ud-block-sub {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--ud-text-muted);
}

/* Footer content */
.ud-footer {
    padding: 20px 36px;
    background: transparent;
    border-top: 1px solid var(--ud-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12.5px;
    color: var(--ud-text-muted);
    flex-shrink: 0;
}
.ud-footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ud-footer-links a {
    color: var(--ud-text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease;
}
.ud-footer-links a:hover { color: var(--ud-gold); }
.ud-footer-sep { color: #D4D4D4; user-select: none; }

/* Overlay mobile */
.ud-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 23, 0.55);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.ud-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---------- 03.5 — KPI cards (client Home) ---------- */
.ud-home-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}
.ud-home-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: var(--ud-card);
    border: 1px solid var(--ud-border);
    border-left: 4px solid var(--ud-blue);
    border-radius: var(--ud-radius);
    min-width: 0;
    box-sizing: border-box;
    box-shadow: var(--ud-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.ud-home-kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--ud-shadow-md);
}
.ud-home-kpi.total   { border-left-color: var(--ud-blue); }
.ud-home-kpi.recupe  { border-left-color: var(--ud-green); }
.ud-home-kpi.cours   { border-left-color: var(--ud-orange); }
.ud-home-kpi.cloture { border-left-color: var(--ud-dark); }

.ud-home-kpi-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: var(--ud-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}
.ud-home-kpi.total   .ud-home-kpi-icon { background: rgba(59, 130, 246, .12); }
.ud-home-kpi.recupe  .ud-home-kpi-icon { background: rgba(34, 197, 94, .12); }
.ud-home-kpi.cours   .ud-home-kpi-icon { background: rgba(245, 158, 11, .12); }
.ud-home-kpi.cloture .ud-home-kpi-icon { background: rgba(26, 26, 26, .08); }

.ud-home-kpi-body { min-width: 0; flex: 1; }
.ud-home-kpi-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ud-text-muted);
    margin-bottom: 4px;
}
.ud-home-kpi-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--ud-text);
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 3px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ud-home-kpi-sub {
    font-size: 12px;
    color: var(--ud-text-muted);
    font-weight: 400;
    white-space: nowrap;
}

/* ---------- 03.6 — Bandeau CTA noir ---------- */
.ud-home-hero-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: var(--ud-dark);
    color: #fff;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 24px;
    box-sizing: border-box;
}
.ud-home-hero-cta-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 0;
}
.ud-home-hero-cta-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #262626;
    color: var(--ud-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    line-height: 1;
}
.ud-home-hero-cta-text h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.ud-home-hero-cta-text p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    line-height: 1.55;
    max-width: 520px;
}
.ud-home-hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #E3C766, #C9A227);
    color: var(--ud-sidebar-bg);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.ud-home-hero-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, .4);
}

/* ---------- 03.7 — Sections Home ---------- */
.ud-home-section {
    background: var(--ud-card);
    border: 1px solid var(--ud-border);
    border-radius: var(--ud-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-sizing: border-box;
    box-shadow: var(--ud-shadow);
}
.ud-home-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.ud-home-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ud-text);
    margin: 0;
}
.ud-home-section-title .icon { font-size: 18px; color: var(--ud-gold); }

.ud-home-section-link {
    background: none;
    border: none;
    color: var(--ud-gold);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 6px 0;
    white-space: nowrap;
    transition: color .2s ease;
}
.ud-home-section-link:hover { color: var(--ud-gold-light); }

/* Mini-table */
.ud-mini-table { overflow-x: auto; }
.ud-mini-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.ud-mini-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--ud-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--ud-border);
    background: #F7F7F7;
}
.ud-mini-table td {
    padding: 16px;
    border-bottom: 1px solid #F2F2F2;
    color: var(--ud-text);
    font-size: 13.5px;
}
.ud-mini-table tr:last-child td { border-bottom: none; }
.ud-mini-table tr:hover td { background: #f8fbfd; }

.ud-col-num {
    color: var(--ud-text-light);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    width: 44px;
    text-align: center;
}
.ud-col-date { color: var(--ud-text-soft); font-size: 12.5px; }

.ud-mini-empty-row td {
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}
.ud-mini-empty-row:hover td { background: transparent !important; }

/* Empty Home */
.ud-home-empty { text-align: center; padding: 60px 20px; }
.ud-home-empty-icon {
    font-size: 48px;
    line-height: 1;
    opacity: .3;
    margin-bottom: 18px;
}
.ud-home-empty-text {
    font-size: 15px;
    color: var(--ud-text);
    font-weight: 500;
    margin: 0 0 6px;
}
.ud-home-empty-sub {
    font-size: 13px;
    color: var(--ud-text-muted);
    margin: 0;
    line-height: 1.55;
}

/* Grid 2 cols */
.ud-home-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
    align-items: stretch;
}
.ud-home-grid-2 > .ud-home-section {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.ud-home-chart,
.ud-chart-wrap {
    flex: 1 1 auto;
    min-height: 280px;
    position: relative;
}

/* Activités */
.ud-home-activity {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px dashed #F0F0F0;
}
.ud-home-activity:last-child { border-bottom: none; }
.ud-home-activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.ud-home-activity-text {
    font-size: 13.5px;
    color: var(--ud-text);
    font-weight: 500;
    line-height: 1.5;
}
.ud-home-activity-date {
    font-size: 11.5px;
    color: var(--ud-text-muted);
    margin-top: 3px;
}
.ud-home-activity-empty { text-align: center; padding: 50px 20px; }
.ud-home-activity-empty-icon {
    font-size: 40px;
    opacity: .25;
    margin-bottom: 14px;
}
.ud-home-activity-empty-text {
    font-size: 14px;
    color: var(--ud-text);
    font-weight: 600;
    margin: 0 0 6px;
}
.ud-home-activity-empty-sub {
    font-size: 13px;
    color: var(--ud-text-muted);
    margin: 0;
}

/* Support banner */
.ud-home-support {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 24px;
    background: linear-gradient(90deg, #FDF6E3, #FAF3E0);
    border: 1px solid #F0E4C0;
    border-radius: var(--ud-radius);
    margin-bottom: 8px;
    box-sizing: border-box;
}
.ud-home-support-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.ud-home-support-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #E3C766, #C9A227);
    color: var(--ud-sidebar-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
}
.ud-home-support-text h4 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ud-text);
}
.ud-home-support-text p {
    margin: 0;
    font-size: 12.5px;
    color: var(--ud-text-muted);
    line-height: 1.45;
}
.ud-home-support-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #E8DCC0;
    border-radius: 10px;
    color: var(--ud-text);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.ud-home-support-btn:hover {
    background: linear-gradient(135deg, #E3C766, #C9A227);
    color: var(--ud-sidebar-bg);
    border-color: var(--ud-gold);
    transform: translateY(-1px);
}

/* ---------- 03.8 — Filters ---------- */
.ud-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 10px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
    box-sizing: border-box;
}
.ud-filter { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ud-filter label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .05em;
}
.ud-filter input,
.ud-filter select {
    padding: 8px 10px;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 8px;
    font-size: 12.5px;
    font-family: inherit;
    background: #fff;
    box-sizing: border-box;
    width: 100%;
}
.ud-filter input:focus,
.ud-filter select:focus {
    border-color: var(--ud-gold);
    outline: none;
}
.ud-btn-reset {
    background: #475569;
    color: #fff;
    border: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
}
.ud-results { font-size: 13px; color: #666; margin-bottom: 10px; }
.ud-results strong { color: var(--ud-text); font-weight: 700; }

/* ---------- 03.9 — Tables ---------- */
.ud-table-wrap {
    background: #fff;
    border: 1px solid var(--ud-border-soft);
    border-radius: 12px;
    overflow-x: auto;
}
.ud-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ud-table th {
    padding: 11px 12px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    color: var(--ud-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--ud-border-soft);
    background: #f8fafc;
    white-space: nowrap;
}
.ud-table td {
    padding: 12px;
    border-bottom: 1px solid var(--ud-border-soft);
    color: #333;
    vertical-align: middle;
}
.ud-table tr:hover td { background: #f8fbfd; }
.ud-table tr:last-child td { border-bottom: none; }

.ud-muted { color: var(--ud-text-muted); font-size: 11.5px; }
.ud-ref {
    font-family: monospace;
    font-size: 11.5px;
    font-weight: 700;
    color: #0073aa;
    background: #e8f2fa;
    padding: 4px 8px;
    border-radius: 5px;
    white-space: nowrap;
}
.ud-montant {
    font-weight: 700;
    color: var(--ud-text);
    font-size: 14px;
    white-space: nowrap;
}
.ud-action-btn {
    background: var(--ud-navy);
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: all .15s;
}
.ud-action-btn:hover {
    background: var(--ud-gold);
    color: var(--ud-sidebar-bg);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 162, 39, .3);
}
.ud-btn-edit {
    background: var(--ud-navy);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    transition: all .15s;
}
.ud-btn-edit:hover {
    background: var(--ud-gold);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(201, 162, 39, .3);
}
.ud-actions-cell {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    white-space: nowrap;
}

/* Badges statut */
.ud-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.ud-badge-actif      { background: #DCFCE7; color: #166534; }
.ud-badge-en_cours   { background: #FEF3C7; color: #92400E; }
.ud-badge-en_attente { background: #FEF9C3; color: #854D0E; }
.ud-badge-paye       { background: #D1FAE5; color: #065F46; }
.ud-badge-impaye     { background: #FEE2E2; color: #991B1B; }
.ud-badge-refuse     { background: #F3F4F6; color: #4B5563; }
.ud-badge-default    { background: var(--ud-border-soft); color: #555; }
.ud-badge-role       { background: #FDF9F0; color: #8B6F1F; padding: 4px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; }

/* Permission badges */
.ud-perm-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 3px;
}
.ud-perm-badge.lecture { background: #e0f2fe; color: #0369a1; }
.ud-perm-badge.edition { background: #fef3c7; color: #92400e; }
.ud-perm-badge.complet { background: #d1fae5; color: #065f46; }

/* Empty state */
.ud-empty {
    background: #f8fafc;
    border: 2px dashed #e0e6ed;
    border-radius: var(--ud-radius);
    padding: 45px 30px;
    text-align: center;
}
.ud-empty-icon { font-size: 44px; margin-bottom: 10px; opacity: 0.5; }
.ud-empty h3 { margin: 0 0 6px; color: #333; font-size: 16px; }
.ud-empty p { color: var(--ud-text-muted); font-size: 13.5px; margin: 0 0 16px; }
.ud-empty-text {
    color: var(--ud-text-muted);
    font-size: 13.5px;
    text-align: center;
    padding: 24px 0;
    margin: 0;
}

/* ---------- 03.10 — Forms ---------- */
.ud-form {
    background: #f8fafc;
    border-radius: 12px;
    padding: 22px;
}
.ud-form-title {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ud-text);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ud-border-soft);
}
.ud-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}
.ud-field { display: flex; flex-direction: column; }
.ud-field.ud-full { grid-column: 1 / -1; }
.ud-field label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ud-text);
    margin-bottom: 5px;
}
.ud-field input {
    padding: 9px 11px;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
}
.ud-field input:focus {
    border-color: var(--ud-gold);
    outline: none;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.1);
}
.ud-error {
    display: none;
    margin-top: 4px;
    font-size: 11px;
    font-weight: 600;
}
.ud-form-submit { text-align: right; padding-top: 8px; }

.ud-photo-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
    padding: 14px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid var(--ud-border-soft);
}
.ud-photo-preview {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a373, #b8895c);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* Buttons */
.ud-btn-primary {
    background: var(--ud-dark);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: var(--ud-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.ud-btn-primary:hover {
    background: #262626;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 14, 23, 0.2);
}
.ud-btn-secondary {
    background: #f0f4f8;
    color: #0073aa;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12.5px;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}
.ud-btn-secondary:hover { background: #e1ecf5; }

/* ---------- 03.11 — Support cards (section support du dashboard) ---------- */
.ud-support {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.ud-support-card {
    background: #f8fafc;
    border: 1px solid var(--ud-border-soft);
    border-radius: 12px;
    padding: 22px;
    text-align: center;
}
.ud-support-icon { font-size: 34px; margin-bottom: 10px; }
.ud-support-card h3 {
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--ud-text);
}
.ud-support-card p {
    margin: 0 0 14px;
    font-size: 13px;
    color: #666;
}

/* ============================================================
   04 — COMPOSANTS (notifications, FAQ, stats, modals)
   ============================================================ */

/* ---------- 04.1 — Notifications full ---------- */
.ud-notif-list-full {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.ud-notif-full-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--ud-border-soft);
    border-radius: 10px;
    position: relative;
    transition: all 0.15s;
}
.ud-notif-full-item:hover {
    border-color: var(--ud-gold);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.ud-notif-full-item.unread {
    background: #f0f8ff;
    border-color: #cce4f5;
}
.ud-notif-full-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.ud-notif-full-content { flex: 1 1 auto; min-width: 0; }
.ud-notif-full-msg {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ud-text);
    line-height: 1.5;
    margin-bottom: 3px;
    word-wrap: break-word;
}
.ud-notif-full-date { font-size: 11.5px; color: var(--ud-text-muted); font-weight: 500; }
.ud-notif-full-dot {
    width: 8px;
    height: 8px;
    background: #0073aa;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.15);
}

.ud-mark-all-link {
    background: none;
    border: none;
    color: #0073aa;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}
.ud-mark-all-link:hover { color: var(--ud-gold); }

/* Pagination */
.ud-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--ud-border-soft);
    flex-wrap: wrap;
}
.ud-pag-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    background: #fff;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ud-pag-btn:hover:not(:disabled):not(.active) {
    border-color: var(--ud-gold);
    color: var(--ud-gold-deep);
    background: #fefcf8;
    transform: translateY(-1px);
}
.ud-pag-btn.active {
    background: linear-gradient(135deg, var(--ud-dark), var(--ud-dark-3));
    border-color: var(--ud-dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(10, 14, 23, 0.18);
}
.ud-pag-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ud-pag-dots {
    color: var(--ud-text-light);
    font-weight: 700;
    padding: 0 4px;
    user-select: none;
}

/* ---------- 04.2 — FAQ (client + admin) ---------- */
.ud-faq-search {
    position: relative;
    margin-bottom: 18px;
}
.ud-faq-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: .5;
    pointer-events: none;
}
.ud-faq-search input {
    width: 100%;
    padding: 14px 18px 14px 48px;
    border: 1.5px solid var(--ud-border);
    border-radius: 12px;
    background: #fff;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ud-text);
    outline: none;
    transition: all .2s ease;
    box-shadow: var(--ud-shadow);
    box-sizing: border-box;
}
.ud-faq-search input:focus {
    border-color: var(--ud-gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, .12);
}

.ud-faq-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}
.ud-faq-chip {
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid var(--ud-border);
    border-radius: 100px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ud-text-muted);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.ud-faq-chip:hover { border-color: var(--ud-gold); color: var(--ud-gold); }
.ud-faq-chip.active {
    background: var(--ud-dark);
    border-color: var(--ud-dark);
    color: #fff;
}

.ud-faq-section { margin-bottom: 22px; scroll-margin-top: 24px; }
.ud-faq-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: #fff;
    border: 1px solid var(--ud-border);
    border-radius: 14px 14px 0 0;
    border-bottom: none;
}
.ud-faq-section-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--ud-gold-soft), #FAF3E0);
    border: 1px solid #F0E4C0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.ud-faq-section-text { flex: 1; min-width: 0; }
.ud-faq-section-title {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ud-text);
}
.ud-faq-section-desc {
    margin: 0;
    font-size: 12.5px;
    color: var(--ud-text-muted);
}
.ud-faq-count {
    min-width: 28px;
    height: 28px;
    padding: 0 9px;
    background: var(--ud-gold-soft);
    color: var(--ud-gold-deep);
    border-radius: 14px;
    font-size: 11.5px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ud-faq-list {
    background: #fff;
    border: 1px solid var(--ud-border);
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}
.ud-faq-item { border-bottom: 1px solid #F2F2F2; }
.ud-faq-item:last-child { border-bottom: none; }

.ud-faq-question {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ud-text);
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    transition: background .2s ease;
    box-sizing: border-box;
}
.ud-faq-question:hover { background: var(--ud-bg); }
.ud-faq-q-text { flex: 1; }

.ud-faq-q-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ud-gold-soft);
    color: var(--ud-gold-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
    transition: all .3s ease;
    line-height: 1;
}
.ud-faq-item.open .ud-faq-q-icon {
    background: var(--ud-gold);
    color: var(--ud-sidebar-bg);
    transform: rotate(45deg);
}

.ud-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
}
.ud-faq-item.open .ud-faq-answer { max-height: 800px; }

.ud-faq-answer-inner {
    padding: 0 22px 20px;
    font-size: 13.5px;
    line-height: 1.7;
    color: var(--ud-text-soft);
}
.ud-faq-answer-inner a {
    color: var(--ud-gold);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ud-faq-answer-inner strong { color: var(--ud-text); font-weight: 700; }

.ud-faq-no-result {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    border: 1px solid var(--ud-border);
    border-radius: var(--ud-radius);
    margin-bottom: 22px;
}
.ud-faq-no-result-icon {
    font-size: 42px;
    opacity: .3;
    margin-bottom: 12px;
}
.ud-faq-no-result h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ud-text);
}
.ud-faq-no-result p {
    margin: 0;
    font-size: 13.5px;
    color: var(--ud-text-muted);
}

/* ---------- 04.3 — Statistiques ---------- */
.uds-filters {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--ud-border);
    border-radius: var(--ud-radius);
    padding: 18px 20px;
    margin-bottom: 24px;
    box-shadow: var(--ud-shadow);
    align-items: end;
}
.uds-filter {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.uds-filter label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ud-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.uds-filter select {
    padding: 10px 14px;
    border: 1.5px solid var(--ud-border);
    border-radius: 10px;
    font-size: 13.5px;
    font-family: inherit;
    background: #fff;
    color: var(--ud-text);
    cursor: pointer;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font-weight: 500;
}
.uds-filter select:focus {
    border-color: var(--ud-gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .12);
}

.uds-period-toggle {
    display: inline-flex;
    background: #F4F4F5;
    border-radius: 10px;
    padding: 4px;
    gap: 2px;
    width: fit-content;
}
.uds-period-toggle button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--ud-text-muted);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}
.uds-period-toggle button:hover { color: var(--ud-text); }
.uds-period-toggle button.active {
    background: var(--ud-dark);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.uds-reset,
.uds-reset-filters {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: linear-gradient(135deg, var(--ud-gold-soft) 0%, #FAF3E0 100%);
    border: 1.5px solid #E8DCC0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    color: var(--ud-gold-deep);
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
}
.uds-reset:hover,
.uds-reset-filters:hover {
    background: linear-gradient(135deg, #E3C766 0%, #C9A227 100%);
    border-color: var(--ud-gold);
    color: var(--ud-sidebar-bg);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(201, 162, 39, .28);
}

/* KPI grid stats */
.uds-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}
@media (min-width: 1400px) {
    .uds-kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
.uds-kpi {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--ud-border);
    border-left: 4px solid var(--ud-blue);
    border-radius: var(--ud-radius);
    padding: 18px;
    box-shadow: var(--ud-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    min-width: 0;
    box-sizing: border-box;
}
.uds-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .07);
}
.uds-kpi-total   { border-left-color: var(--ud-blue); }
.uds-kpi-recupe  { border-left-color: var(--ud-green); }
.uds-kpi-cours   { border-left-color: var(--ud-orange); }
.uds-kpi-perdu   { border-left-color: var(--ud-red); }
.uds-kpi-gagne   { border-left-color: #10B981; }
.uds-kpi-perdu2  { border-left-color: #B91C1C; }

.uds-kpi-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    background: rgba(59, 130, 246, .10);
}
.uds-kpi-total  .uds-kpi-icon { background: rgba(59, 130, 246, .10); }
.uds-kpi-recupe .uds-kpi-icon { background: rgba(34, 197, 94, .12); }
.uds-kpi-cours  .uds-kpi-icon { background: rgba(245, 158, 11, .12); }
.uds-kpi-perdu  .uds-kpi-icon { background: rgba(239, 68, 68, .12); }
.uds-kpi-gagne  .uds-kpi-icon { background: rgba(16, 185, 129, .12); }
.uds-kpi-perdu2 .uds-kpi-icon { background: rgba(185, 28, 28, .12); }

.uds-kpi-body { flex: 1; min-width: 0; overflow: hidden; }
.uds-kpi-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ud-text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uds-kpi-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--ud-text);
    letter-spacing: -.4px;
    line-height: 1.1;
    margin-bottom: 4px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.uds-kpi-sub {
    font-size: 11.5px;
    color: var(--ud-text-muted);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ratio card */
.uds-ratio-card {
    background: #fff;
    border: 1px solid var(--ud-border);
    border-radius: var(--ud-radius);
    padding: 26px 28px;
    margin-bottom: 24px;
    box-shadow: var(--ud-shadow);
}
.uds-ratio-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 16px;
}
.uds-ratio-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ud-text);
    letter-spacing: -.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.uds-ratio-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--ud-green);
    font-variant-numeric: tabular-nums;
    letter-spacing: -.8px;
}
.uds-ratio-bar {
    display: flex;
    height: 16px;
    border-radius: 8px;
    overflow: hidden;
    background: #F3F4F6;
    margin-bottom: 16px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
}
.uds-ratio-seg {
    height: 100%;
    transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
.uds-ratio-win  { background: linear-gradient(90deg, #22C55E, #10B981); }
.uds-ratio-lose { background: linear-gradient(90deg, #EF4444, #B91C1C); }

.uds-ratio-legend {
    display: flex;
    gap: 24px;
    font-size: 13px;
    color: var(--ud-text-soft);
    flex-wrap: wrap;
}
.uds-ratio-leg-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.uds-ratio-leg-item strong {
    color: var(--ud-text);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.uds-ratio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .04);
}

/* Blocks stats */
.uds-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.uds-block {
    background: #fff;
    border: 1px solid var(--ud-border);
    border-radius: var(--ud-radius);
    padding: 24px;
    box-shadow: var(--ud-shadow);
    box-sizing: border-box;
    margin-bottom: 20px;
}
.uds-grid-2 > .uds-block { margin-bottom: 0; }
.uds-block-head { margin-bottom: 20px; }
.uds-block-title {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--ud-text);
    letter-spacing: -.2px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.uds-block-sub {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--ud-text-muted);
    font-weight: 500;
}
.uds-chart-wrap {
    position: relative;
    width: 100%;
    height: 300px;
}
.uds-chart-sm { height: 280px; }

/* Table détails */
.uds-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--ud-border);
}
.uds-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.uds-table th {
    padding: 14px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--ud-text-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    background: #F7F7F7;
    border-bottom: 1px solid var(--ud-border);
    white-space: nowrap;
}
.uds-table td {
    padding: 14px 18px;
    border-bottom: 1px solid #F2F2F2;
    color: var(--ud-text);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.uds-table tr:last-child td { border-bottom: none; }
.uds-table tr:hover td { background: var(--ud-bg); }
.uds-table .uds-empty {
    text-align: center;
    padding: 40px;
    color: var(--ud-text-muted);
    font-style: italic;
}
.uds-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}
.uds-pct {
    font-weight: 800;
    color: var(--ud-gold);
    font-variant-numeric: tabular-nums;
    font-size: 13.5px;
}

/* ---------- 04.4 — Modal dossier CLIENT (udm-*) ---------- */
.ud-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ud-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 14, 23, 0.78);
    z-index: 1;
}
.ud-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 780px;
    max-height: 92vh;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
    padding: 0;
}
#ud-modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    min-height: 0;
}
#ud-modal-body::-webkit-scrollbar { width: 6px; }
#ud-modal-body::-webkit-scrollbar-thumb { background: #D6D3CE; border-radius: 3px; }

.ud-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #E8E4DE;
    color: #6B6B6B;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    line-height: 1;
    transition: all 0.15s;
}
.ud-modal-close:hover {
    background: var(--ud-navy);
    border-color: var(--ud-navy);
    color: #fff;
}

/* Contenu modal dossier */
.udm { padding: 0; background: #FDFCFA; }

.udm-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 32px;
    border-bottom: 1px solid #F0EDE8;
    background: #FDFCFA;
}
.udm-top-left { flex: 1; min-width: 0; }
.udm-ref {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    font-size: 14px;
    font-weight: 800;
    color: var(--ud-navy);
    letter-spacing: 0.02em;
    word-break: break-all;
}
.udm-meta {
    font-size: 11.5px;
    color: #A69B85;
    font-weight: 500;
    margin-top: 4px;
}
.udm-status {
    font-size: 10.5px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 100px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    flex-shrink: 0;
    border: 1.5px solid;
}
.udm-status-actif      { background: #ECFDF5; color: #065F46; border-color: #A7F3D0; }
.udm-status-en_cours   { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.udm-status-en_attente { background: #FEF3C7; color: #78350F; border-color: #FCD34D; }
.udm-status-paye       { background: #ECFDF5; color: #065F46; border-color: #6EE7B7; }
.udm-status-impaye     { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.udm-status-refuse     { background: #F5F5F4; color: #57534E; border-color: #D6D3D1; }
.udm-status-default    { background: #F5F5F4; color: #57534E; border-color: #D6D3D1; }

.udm-hero {
    padding: 40px 32px 36px;
    text-align: center;
    background: linear-gradient(180deg, #FDFCFA 0%, #F8F5F0 100%);
    border-bottom: 1px solid #F0EDE8;
    position: relative;
}
.udm-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #D4A373, #C9A227);
    border-radius: 0 0 3px 3px;
}
.udm-hero-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 800;
    color: #A69B85;
    margin-bottom: 12px;
}
.udm-hero-amount {
    font-size: 46px;
    font-weight: 800;
    color: var(--ud-navy);
    letter-spacing: -1.5px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 14px;
    word-break: break-word;
}
.udm-hero-sub {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    background: #fff;
    border: 1px solid #F0EDE8;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #6B6B6B;
}
.udm-hero-sub strong { color: var(--ud-navy); font-weight: 800; }

.udm-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-bottom: 1px solid #F0EDE8;
}
.udm-duo > .udm-block { padding: 26px 28px; }
.udm-duo > .udm-block:first-child { border-right: 1px solid #F0EDE8; }

.udm-block { background: transparent; }
.udm-block-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 800;
    color: #A69B85;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F0EDE8;
}
.udm-block-title .icon { font-size: 13px; }

.udm-line {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
}
.udm-line:last-child { margin-bottom: 0; }
.udm-line-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #A69B85;
}
.udm-line-value {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ud-navy);
    line-height: 1.45;
    word-break: break-word;
}
.udm-line-value a {
    color: #8B6F1F;
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dotted #8B6F1F;
}
.udm-line-value a:hover { color: var(--ud-gold); border-bottom-color: var(--ud-gold); }
.udm-line-empty { color: #C4BEB3; font-style: italic; font-weight: 500; }

.udm-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #FDF9F0;
    border: 1px solid #F0E4C0;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: #8B6F1F;
}
.udm-inline-badge.green {
    background: #ECFDF5;
    border-color: #A7F3D0;
    color: #065F46;
}

.udm-full {
    padding: 26px 32px;
    border-bottom: 1px solid #F0EDE8;
}
.udm-desc {
    font-size: 13.5px;
    color: #3F3A32;
    line-height: 1.75;
    font-weight: 500;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #F0EDE8;
    border-left: 3px solid #D4A373;
    border-radius: 4px 10px 10px 4px;
    white-space: pre-wrap;
    word-break: break-word;
}

.udm-files-block {
    padding: 26px 32px 30px;
    border-bottom: 1px solid #F0EDE8;
}
.udm-files-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #F0EDE8;
}
.udm-files-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 800;
    color: #A69B85;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.udm-files-count {
    background: var(--ud-navy);
    color: #fff;
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 100px;
    font-weight: 800;
}
.udm-files {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}
.udm-file-img {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    background: #F5F5F4;
    border: 1px solid #F0EDE8;
    cursor: zoom-in;
    text-decoration: none;
    display: block;
    transition: all 0.15s;
}
.udm-file-img:hover {
    border-color: var(--ud-gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(201, 162, 39, 0.15);
}
.udm-file-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.udm-file-ext {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 9.5px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}
.udm-file-doc {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #F0EDE8;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    grid-column: span 2;
    transition: all 0.15s;
}
.udm-file-doc:hover {
    background: #FDF9F0;
    border-color: var(--ud-gold);
    transform: translateY(-1px);
}
.udm-file-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #FDF9F0;
    border: 1px solid #F0E4C0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.udm-file-info { flex: 1; min-width: 0; }
.udm-file-name {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ud-navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.udm-file-meta {
    display: block;
    font-size: 10.5px;
    color: #A69B85;
    margin-top: 2px;
    font-weight: 600;
}
.udm-files-empty {
    padding: 20px;
    background: var(--ud-bg);
    border: 1px dashed #E8E4DE;
    border-radius: 10px;
    text-align: center;
    font-size: 12.5px;
    color: #A69B85;
    font-weight: 500;
}

.udm-foot {
    padding: 18px 32px;
    background: #F8F5F0;
    text-align: center;
    font-size: 11.5px;
    color: #A69B85;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.udm-foot strong {
    font-family: 'SF Mono', Menlo, Consolas, monospace;
    color: var(--ud-navy);
    font-weight: 800;
}

/* Lightbox */
.udm-lb {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: zoom-out;
}
.udm-lb.open { opacity: 1; }
.udm-lb img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    display: block;
    object-fit: contain;
    cursor: zoom-out;
}
.udm-lb-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 10;
    transition: all 0.15s;
}
.udm-lb-close:hover { background: #fff; color: var(--ud-navy); border-color: #fff; transform: rotate(90deg); }
.udm-lb-caption {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.95);
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    max-width: 80%;
    text-align: center;
    word-break: break-all;
    z-index: 2;
    pointer-events: none;
}

/* ---------- 04.5 — Modal ADMIN (formulaires) ---------- */
.unidet-admin-modal-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 1020px !important;
    width: calc(100% - 40px) !important;
    margin: 20px auto !important;
    border-radius: 16px !important;
    background: #fff !important;
    max-height: calc(100vh - 40px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-shadow: 0 25px 60px rgba(10, 14, 23, 0.25) !important;
}
.unidet-admin-modal-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 24px 28px 20px !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
    min-height: 0 !important;
}
.unidet-admin-modal-body::-webkit-scrollbar { width: 6px; }
.unidet-admin-modal-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.unidet-admin-modal-content .ud-modal-close {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    z-index: 10 !important;
}

/* Hero headers modals admin */
.unidet-hero-form,
.unidet-hero-dossier {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef4fa 100%);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    margin-bottom: 22px;
}
.unidet-hero-form-icon,
.unidet-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ud-dark) 0%, var(--ud-dark-3) 100%);
    color: var(--ud-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(10, 14, 23, 0.15);
}
.unidet-hero-icon {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: inherit;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.unidet-hero-form-text,
.unidet-hero-main { flex: 1; min-width: 0; }
.unidet-hero-form-text h2 {
    margin: 0 0 4px;
    font-size: 19px;
    font-weight: 800;
    color: var(--ud-dark);
    letter-spacing: -0.3px;
}
.unidet-hero-form-text p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}
.unidet-hero-ref {
    font-family: 'Courier New', monospace;
    font-size: 17px;
    font-weight: 800;
    color: var(--ud-dark);
    margin-bottom: 4px;
    word-break: break-all;
}
.unidet-hero-meta {
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}
.unidet-hero-meta strong { color: var(--ud-dark); font-weight: 700; }
.unidet-hero-actions { flex-shrink: 0; }

/* KPI row modal admin */
.unidet-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 24px;
}
.unidet-kpi-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--ud-border-soft);
    border-radius: 12px;
    transition: all 0.2s;
}
.unidet-kpi-item:hover {
    border-color: var(--ud-gold);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.1);
}
.unidet-kpi-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f4f6f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.unidet-kpi-body { min-width: 0; flex: 1; }
.unidet-kpi-label {
    font-size: 10px;
    font-weight: 800;
    color: var(--ud-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
    white-space: nowrap;
}
.unidet-kpi-value {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--ud-dark);
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

/* Sections flat */
.unidet-flat-section {
    padding: 20px 0 24px;
    border-bottom: 1px solid var(--ud-border-soft);
    background: transparent;
    margin-bottom: 0;
}
.unidet-flat-section:last-child { border-bottom: none; }
.unidet-flat-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ud-border-soft);
}
.unidet-flat-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 14px;
    line-height: 1;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #93c5fd;
    margin-top: 1px;
}
.unidet-flat-section[data-color="blue"]   .unidet-flat-icon { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); border-color: #93c5fd; }
.unidet-flat-section[data-color="purple"] .unidet-flat-icon { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); border-color: #c4b5fd; }
.unidet-flat-section[data-color="gold"]   .unidet-flat-icon { background: linear-gradient(135deg, #fdf6ec 0%, #f5e6cf 100%); border-color: #e8c99a; }
.unidet-flat-section[data-color="green"]  .unidet-flat-icon { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); border-color: #6ee7b7; }
.unidet-flat-section[data-color="amber"]  .unidet-flat-icon { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); border-color: #fcd34d; }
.unidet-flat-section[data-color="red"]    .unidet-flat-icon { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); border-color: #fca5a5; }
.unidet-flat-section[data-color="cyan"]   .unidet-flat-icon { background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%); border-color: #67e8f9; }

.unidet-flat-text { flex: 1; min-width: 0; }
.unidet-flat-text h3 {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ud-dark);
    line-height: 1.3;
    letter-spacing: -0.1px;
}
.unidet-flat-section[data-color="blue"]   .unidet-flat-text h3 { color: #1e40af; }
.unidet-flat-section[data-color="purple"] .unidet-flat-text h3 { color: #6d28d9; }
.unidet-flat-section[data-color="gold"]   .unidet-flat-text h3 { color: var(--ud-gold-deep); }
.unidet-flat-section[data-color="green"]  .unidet-flat-text h3 { color: #047857; }
.unidet-flat-section[data-color="amber"]  .unidet-flat-text h3 { color: #92400e; }
.unidet-flat-section[data-color="red"]    .unidet-flat-text h3 { color: #991b1b; }
.unidet-flat-section[data-color="cyan"]   .unidet-flat-text h3 { color: #0e7490; }

.unidet-flat-text p {
    margin: 0;
    font-size: 11.5px;
    color: var(--ud-text-light);
    line-height: 1.4;
    font-weight: 500;
}

.unidet-flat-body { padding-left: 0; }

.unidet-flat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.unidet-flat-grid > div.full { grid-column: 1 / -1; }

.unidet-flat-grid label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ud-dark);
    margin-bottom: 6px;
}
.unidet-flat-grid .req { color: #e74c3c; }

.unidet-flat-grid input,
.unidet-flat-grid select,
.unidet-flat-grid textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13.5px;
    background: #fff;
    color: var(--ud-dark);
    transition: all 0.15s;
    box-sizing: border-box;
    outline: none;
}
.unidet-flat-grid input:focus,
.unidet-flat-grid select:focus,
.unidet-flat-grid textarea:focus {
    border-color: var(--ud-gold);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.unidet-flat-grid textarea { resize: vertical; min-height: 80px; line-height: 1.55; }

/* Grille 2 colonnes modal admin */
.unidet-modal-row-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 0;
}
.unidet-modal-row-2col > .unidet-flat-section {
    border-bottom: 1px solid var(--ud-border-soft);
    min-width: 0;
}

/* Actions modal admin */
.unidet-admin-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--ud-border-soft);
    margin-top: 8px;
}
.unidet-admin-modal-actions.unidet-actions-split {
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 4px;
    border-top: 2px solid var(--ud-border-soft);
}

.unidet-admin-btn {
    padding: 10px 20px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.unidet-admin-btn.primary {
    background: linear-gradient(135deg, var(--ud-dark), var(--ud-dark-3));
    color: #fff;
}
.unidet-admin-btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(10,14,23,0.2); }
.unidet-admin-btn.primary.big { padding: 12px 28px; font-size: 14px; }
.unidet-admin-btn.primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.unidet-admin-btn.ghost { background: #f0f4f8; color: #475569; }
.unidet-admin-btn.ghost:hover { background: #e2e8f0; }
.unidet-btn-full { width: 100%; justify-content: center; }

/* Choice cards */
.unidet-choice-cards { display: grid; gap: 10px; margin-top: 6px; }
.unidet-choice-2 { grid-template-columns: 1fr 1fr; }
.unidet-choice-card {
    position: relative;
    cursor: pointer;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s;
    overflow: hidden;
    margin: 0;
}
.unidet-choice-card:hover {
    border-color: var(--ud-gold);
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.12);
    transform: translateY(-1px);
}
.unidet-choice-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.unidet-choice-inner {
    padding: 14px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    position: relative;
    transition: all 0.2s;
}
.unidet-choice-card input:checked ~ .unidet-choice-inner {
    background: linear-gradient(135deg, #fdf9f0 0%, #f9f0dd 100%);
}
.unidet-choice-card input:checked ~ .unidet-choice-inner::before {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--ud-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 10px;
}
.unidet-choice-card:has(input:checked) {
    border-color: var(--ud-gold);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.unidet-choice-icon { font-size: 22px; line-height: 1; margin-bottom: 2px; }
.unidet-choice-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--ud-dark);
    line-height: 1.2;
    display: block;
}
.unidet-choice-desc {
    display: block;
    font-size: 10.5px;
    color: var(--ud-text-muted);
    line-height: 1.3;
    font-weight: 500;
}
.unidet-choice-card input:checked ~ .unidet-choice-inner .unidet-choice-title,
.unidet-choice-card input:checked ~ .unidet-choice-inner .unidet-choice-desc {
    color: var(--ud-gold-deep);
}

/* Permissions cards */
.unidet-perms-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 6px;
}
.unidet-perm-card {
    position: relative;
    cursor: pointer;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 10px;
    background: #fff;
    transition: all 0.2s;
    overflow: hidden;
    margin: 0;
}
.unidet-perm-card:hover { border-color: var(--ud-gold); box-shadow: 0 4px 12px rgba(212, 163, 115, 0.12); }
.unidet-perm-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.unidet-perm-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 10px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
}
.unidet-perm-card input:checked ~ .unidet-perm-inner {
    background: linear-gradient(135deg, #fdf9f0 0%, #f9f0dd 100%);
}
.unidet-perm-card input:checked ~ .unidet-perm-inner::before {
    content: '✓';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 18px;
    height: 18px;
    background: var(--ud-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 10px;
}
.unidet-perm-card:has(input:checked) {
    border-color: var(--ud-gold);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.unidet-perm-icon { font-size: 22px; line-height: 1; margin-bottom: 2px; }
.unidet-perm-title { font-size: 13px; font-weight: 700; color: var(--ud-dark); line-height: 1.2; }
.unidet-perm-desc { font-size: 10.5px; color: var(--ud-text-muted); font-weight: 500; line-height: 1.3; }
.unidet-perm-card input:checked ~ .unidet-perm-inner .unidet-perm-title,
.unidet-perm-card input:checked ~ .unidet-perm-inner .unidet-perm-desc {
    color: var(--ud-gold-deep);
}

/* Optional badge */
.unidet-optional-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: #f0f4f8;
    color: #64748b;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    vertical-align: middle;
}

/* Email status (détection client) */
.unidet-email-status {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    font-size: 12.5px;
    line-height: 1.5;
    animation: unidetFadeIn 0.25s ease;
}
.unidet-email-status-loading { background: #f8fafc; border: 1px solid var(--ud-border-soft); color: #64748b; }
.unidet-email-status-warning { background: #fef3c7; border-left: 3px solid #f59e0b; color: #78350f; }
.unidet-email-status-success { background: #ecfdf5; border-left: 3px solid #27ae60; color: #065f46; }
@keyframes unidetFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Validation temps réel */
.unidet-flat-grid input.unidet-field-ok,
.unidet-flat-grid select.unidet-field-ok,
.unidet-flat-grid textarea.unidet-field-ok {
    border-color: #27ae60 !important;
    background: #f0fdf4 !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2327ae60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px 16px !important;
    padding-right: 34px !important;
}
.unidet-flat-grid select.unidet-field-ok {
    background-position: right 34px center !important;
    padding-right: 56px !important;
}
.unidet-flat-grid input.unidet-field-err,
.unidet-flat-grid select.unidet-field-err,
.unidet-flat-grid textarea.unidet-field-err {
    border-color: #e74c3c !important;
    background: #fdf2f2 !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e74c3c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 16px 16px !important;
    padding-right: 34px !important;
}
.unidet-flat-grid select.unidet-field-err {
    background-position: right 34px center !important;
    padding-right: 56px !important;
}
.unidet-live-error {
    display: block;
    margin-top: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #e74c3c;
    line-height: 1.3;
    animation: unidetFadeIn 0.2s ease;
}
.unidet-amount-input-formatted {
    text-align: right !important;
    font-variant-numeric: tabular-nums !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
}
.unidet-flat-sublabel {
    display: block;
    margin: 22px 0 10px;
    padding-top: 18px;
    border-top: 1px dashed var(--ud-border-hard);
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ud-dark);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}
.unidet-status-select {
    padding: 9px 14px;
    border: 1.5px solid #cbd5e1;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    background: #fff;
    min-width: 200px;
    color: var(--ud-dark);
    transition: all 0.15s;
}
.unidet-status-select:hover { border-color: var(--ud-text-light); }
.unidet-status-select:focus { border-color: var(--ud-gold); box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12); }

.unidet-notify-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    resize: vertical;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none;
    min-height: 70px;
}
.unidet-notify-textarea:focus { border-color: var(--ud-gold); box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12); }

/* PJ admin */
.unidet-admin-pj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}
.unidet-admin-pj-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid var(--ud-border-soft);
    border-radius: 10px;
    text-decoration: none !important;
    color: inherit;
    transition: all 0.15s;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    max-width: 100%;
}
.unidet-admin-pj-card:hover {
    background: #eef6fb;
    border-color: #cce4f5;
    transform: translateY(-1px);
}
.unidet-admin-pj-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #fff;
    border: 1px solid var(--ud-border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.unidet-admin-pj-info { flex: 1; min-width: 0; }
.unidet-admin-pj-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ud-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.unidet-admin-pj-meta { font-size: 10.5px; color: var(--ud-text-light); margin-top: 2px; }
.unidet-admin-pj-open {
    position: absolute;
    top: 6px;
    right: 8px;
    color: #0073aa;
    font-weight: 700;
    opacity: 0.5;
}
.unidet-admin-pj-card:hover .unidet-admin-pj-open { opacity: 1; }

/* Notes internes */
.unidet-admin-notes-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 12px;
}
.unidet-admin-note {
    padding: 10px 14px;
    background: #fff8e1;
    border-left: 3px solid #f39c12;
    border-radius: 0 8px 8px 0;
}
.unidet-admin-note-header {
    display: flex;
    justify-content: space-between;
    font-size: 11.5px;
    margin-bottom: 4px;
}
.unidet-admin-note-content {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    white-space: pre-wrap;
}
.unidet-admin-note-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    resize: vertical;
    margin-bottom: 10px;
    box-sizing: border-box;
    outline: none;
}

/* ---------- 04.6 — Équipe admin (team cards, assign modal) ---------- */
.ud-admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 24px;
    width: 100%;
}
.ud-admin-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--ud-border);
    border-left: 4px solid var(--ud-blue);
    border-radius: var(--ud-radius);
    box-shadow: var(--ud-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    box-sizing: border-box;
}
.ud-admin-stat:hover { transform: translateY(-2px); box-shadow: var(--ud-shadow-md); }
.ud-admin-stat.total   { border-left-color: var(--ud-blue); }
.ud-admin-stat.actif   { border-left-color: var(--ud-green); }
.ud-admin-stat.cours   { border-left-color: var(--ud-orange); }
.ud-admin-stat.attente { border-left-color: var(--ud-orange); }
.ud-admin-stat.paye    { border-left-color: #10B981; }
.ud-admin-stat.impaye  { border-left-color: var(--ud-red); }
.ud-admin-stat.refuse  { border-left-color: var(--ud-text-light); }

.ud-admin-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
    background: #F4F6F9;
}
.ud-admin-stat.total   .ud-admin-stat-icon { background: rgba(59, 130, 246, .12); }
.ud-admin-stat.actif   .ud-admin-stat-icon { background: rgba(34, 197, 94, .12); }
.ud-admin-stat.cours   .ud-admin-stat-icon { background: rgba(245, 158, 11, .12); }
.ud-admin-stat.attente .ud-admin-stat-icon { background: rgba(245, 158, 11, .12); }
.ud-admin-stat.paye    .ud-admin-stat-icon { background: rgba(16, 185, 129, .12); }
.ud-admin-stat.impaye  .ud-admin-stat-icon { background: rgba(239, 68, 68, .12); }
.ud-admin-stat.refuse  .ud-admin-stat-icon { background: rgba(148, 163, 184, .15); }

.ud-admin-stat-body { flex: 1; min-width: 0; overflow: hidden; }
.ud-admin-stat-label {
    font-size: 12.5px;
    color: var(--ud-text-muted);
    font-weight: 500;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ud-admin-stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--ud-text);
    letter-spacing: -0.8px;
    line-height: 1.1;
    margin-bottom: 3px;
    font-variant-numeric: tabular-nums;
}
.ud-admin-stat-money {
    font-size: 12px;
    color: var(--ud-text-muted);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Finance */
.ud-finance {
    background: #fff;
    border: 1px solid var(--ud-border);
    border-radius: var(--ud-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--ud-shadow);
}
.ud-finance-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ud-text);
    margin: 0 0 20px;
}
.ud-finance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 18px;
}
.ud-finance-item {
    padding: 20px;
    border-radius: var(--ud-radius);
    border: 1px solid var(--ud-border);
    background: #fff;
    box-shadow: var(--ud-shadow);
    border-left: 4px solid var(--ud-blue);
}
.ud-finance-item.total      { border-left-color: var(--ud-blue); }
.ud-finance-item.recovered  { border-left-color: var(--ud-green); }
.ud-finance-item.inprogress { border-left-color: var(--ud-orange); }
.ud-finance-item.lost       { border-left-color: var(--ud-red); }
.ud-finance-label {
    font-size: 12.5px;
    color: var(--ud-text-muted);
    font-weight: 500;
    margin-bottom: 6px;
}
.ud-finance-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--ud-text);
    margin-bottom: 4px;
    line-height: 1.1;
    letter-spacing: -0.8px;
    font-variant-numeric: tabular-nums;
}
.ud-finance-sub { font-size: 12px; color: var(--ud-text-muted); font-weight: 400; }
.ud-finance-bar {
    display: flex;
    height: 14px;
    border-radius: 8px;
    overflow: hidden;
    background: #F4F6F9;
}
.ud-finance-bar-seg { height: 100%; transition: width .4s ease; }
.ud-finance-bar-seg.recovered  { background: linear-gradient(90deg, #27ae60, #16a085); }
.ud-finance-bar-seg.inprogress { background: linear-gradient(90deg, #f39c12, #d68910); }
.ud-finance-bar-seg.lost       { background: linear-gradient(90deg, #e74c3c, #c0392b); }

/* Section actions */
.ud-section-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

/* Team */
.ud-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.ud-team-card {
    background: #fff;
    border: 1px solid var(--ud-border);
    border-radius: var(--ud-radius);
    padding: 22px;
    box-shadow: var(--ud-shadow);
    transition: all 0.2s ease;
}
.ud-team-card:hover {
    border-color: var(--ud-gold);
    box-shadow: 0 6px 20px rgba(201, 162, 39, 0.12);
    transform: translateY(-2px);
}
.ud-team-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.ud-team-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a373, #b8895c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 15px;
    flex-shrink: 0;
}
.ud-team-info { flex: 1; min-width: 0; }
.ud-team-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--ud-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ud-team-email {
    font-size: 12.5px;
    color: var(--ud-text-muted);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ud-team-role {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.ud-team-role.admin { background: #FEE2E2; color: #991B1B; }
.ud-team-role.gest  { background: #FEF3C7; color: #92400E; }
.ud-team-stats {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--ud-border-soft);
    border-bottom: 1px solid var(--ud-border-soft);
    margin-bottom: 12px;
}
.ud-team-stat { flex: 1; text-align: center; }
.ud-team-stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--ud-gold);
    line-height: 1.1;
}
.ud-team-stat-label {
    font-size: 10.5px;
    color: var(--ud-text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.4px;
    margin-top: 2px;
}
.ud-team-actions { display: flex; gap: 8px; }
.ud-team-actions .ud-btn-assign { flex: 1; justify-content: center; }
.ud-btn-danger {
    background: #fee2e2;
    color: #991b1b;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-family: inherit;
    transition: all 0.15s;
}
.ud-btn-danger:hover { background: #fecaca; }

/* Assign modal */
.ud-assign-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ud-assign-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
}
.ud-assign-search input:focus { border-color: var(--ud-gold); box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12); }
.ud-assign-counter {
    font-size: 12.5px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}
.ud-assign-counter strong { color: #27ae60; font-size: 15px; font-weight: 800; }
.ud-assign-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.ud-assign-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--ud-border-soft);
    border-radius: 10px;
    padding: 6px;
    background: #f8fafc;
}
.ud-assign-row {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: all 0.15s;
    align-items: flex-start;
    border: 1.5px solid transparent;
}
.ud-assign-row:hover { border-color: var(--ud-gold); background: #fefcf8; }
.ud-assign-row:has(input:checked) { background: #f0fdf4; border-color: #27ae60; }
.ud-assign-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #27ae60;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}
.ud-assign-row-body { flex: 1; min-width: 0; }
.ud-assign-row-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.ud-assign-row-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12.5px;
    color: #555;
    margin-bottom: 6px;
}
.ud-assign-warning {
    background: #fff8e1;
    color: #7f5539;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    margin-bottom: 6px;
    font-weight: 600;
}
.ud-assign-perms { display: flex; align-items: center; gap: 8px; }
.ud-assign-perms select {
    padding: 4px 8px;
    border: 1px solid var(--ud-border-hard);
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
    outline: none;
}

/* Actions rapides */
.ud-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.ud-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--ud-border);
    border-radius: var(--ud-radius);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: var(--ud-shadow);
}
.ud-action:hover {
    border-color: var(--ud-gold);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 162, 39, 0.15);
}
.ud-action-primary {
    background: linear-gradient(135deg, var(--ud-navy) 0%, #1E293B 100%);
    border-color: var(--ud-navy);
    color: #fff;
}
.ud-action-primary .ud-action-text strong,
.ud-action-primary .ud-action-text small { color: #fff; }
.ud-action-primary:hover { box-shadow: 0 8px 22px rgba(15, 23, 42, 0.3); }
.ud-action-icon { font-size: 22px; flex-shrink: 0; }
.ud-action-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ud-action-text strong { font-size: 14px; font-weight: 700; color: var(--ud-text); }
.ud-action-text small { font-size: 11.5px; color: var(--ud-text-muted); font-weight: 500; }

/* ---------- 04.7 — SweetAlert (popups globaux) ---------- */
.unidet-swal-popup {
    border-radius: 16px !important;
    padding: 28px 26px 22px !important;
    box-shadow: 0 20px 60px rgba(10, 14, 23, 0.25) !important;
    border: 1px solid #f1f5f9 !important;
}
.unidet-swal-popup .swal2-html-container { margin: 0 !important; padding: 0 !important; overflow: visible !important; }
.unidet-swal-popup .swal2-actions { margin-top: 8px !important; }
.unidet-swal-popup .swal2-title { display: none !important; }

.unidet-swal-confirm {
    background: linear-gradient(135deg, var(--ud-dark) 0%, var(--ud-dark-3) 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 9px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 12px rgba(10, 14, 23, 0.2) !important;
    letter-spacing: 0.3px !important;
    min-width: 160px !important;
}
.unidet-swal-confirm:hover {
    background: linear-gradient(135deg, var(--ud-dark-3) 0%, #2a3142 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(10, 14, 23, 0.3) !important;
}
.unidet-swal-confirm:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.2) !important;
}

.unidet-swal-cancel {
    background: #f0f0f0 !important;
    color: #555 !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 9px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all 0.2s !important;
}
.unidet-swal-cancel:hover { background: #e5e5e5 !important; }

.swal2-container.swal2-backdrop-show {
    background: rgba(10, 14, 23, 0.65) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

/* Popup logout */
.ud-logout-popup.swal2-popup {
    padding: 0 !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28) !important;
    border: none !important;
    width: 440px !important;
    max-width: calc(100vw - 32px) !important;
    overflow: hidden !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
.ud-logout-popup .swal2-icon,
.ud-logout-popup .swal2-title { display: none !important; }
.ud-logout-popup .swal2-html-container { margin: 0 !important; padding: 0 !important; overflow: visible !important; }
.udlp { padding: 32px 32px 24px; text-align: center; }
.udlp-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    position: relative;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.18);
}
.udlp-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1px solid rgba(245, 158, 11, 0.15);
}
.udlp-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--ud-navy);
    letter-spacing: -0.3px;
    line-height: 1.3;
}
.udlp-sub {
    margin: 0 0 4px;
    font-size: 14px;
    color: #64748B;
    line-height: 1.6;
    font-weight: 500;
}
.udlp-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 8px 14px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #64748B;
}
.ud-logout-popup .swal2-actions {
    display: flex !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 0 32px 28px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
.udlp-confirm {
    flex: 1 !important;
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 20px !important;
    border-radius: 11px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.25) !important;
}
.udlp-confirm:hover { transform: translateY(-2px) !important; box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35) !important; }
.udlp-cancel {
    flex: 1 !important;
    background: #F8FAFC !important;
    color: #334155 !important;
    border: 1.5px solid #E2E8F0 !important;
    padding: 13px 20px !important;
    border-radius: 11px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.udlp-cancel:hover { background: #F1F5F9 !important; border-color: #CBD5E1 !important; color: var(--ud-navy) !important; }
.ud-logout-popup.swal2-show { animation: udlpIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
@keyframes udlpIn {
    from { opacity: 0; transform: scale(0.94) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   05 — FORMULAIRE DÉPÔT DE CRÉANCE
   ============================================================ */
.unidet-form-container { width: 100%; max-width: 100%; }
.unidet-depot-header { margin-bottom: 20px; }
.unidet-depot-header h1 {
    font-size: 24px;
    font-weight: 800;
    color: var(--ud-dark);
    margin: 0 0 4px;
    letter-spacing: -0.4px;
}
.unidet-depot-header p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.unidet-depot-section {
    background: #fff;
    border: 1px solid var(--ud-border-soft);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 14px;
}
.unidet-depot-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--ud-border-soft);
}
.unidet-depot-section-num {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4a373 0%, #b8895c 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}
.unidet-depot-section-text { flex: 1; min-width: 0; }
.unidet-depot-section-title {
    margin: 0 0 2px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ud-dark);
    letter-spacing: -0.2px;
}
.unidet-depot-section-sub {
    margin: 0;
    font-size: 12.5px;
    color: var(--ud-text-light);
    line-height: 1.5;
    font-weight: 500;
}

.unidet-depot-field { display: flex; flex-direction: column; min-width: 0; }
.unidet-depot-field label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ud-dark);
    margin-bottom: 6px;
}
.unidet-depot-field .req { color: #e74c3c; margin-left: 2px; }
.unidet-depot-field .hint {
    font-size: 11px;
    color: var(--ud-text-light);
    font-weight: 500;
    margin-bottom: 5px;
    line-height: 1.4;
}
.unidet-depot-field input[type="text"],
.unidet-depot-field input[type="email"],
.unidet-depot-field input[type="tel"],
.unidet-depot-field input[type="date"],
.unidet-depot-field input[type="number"],
.unidet-depot-field textarea,
.unidet-depot-field select {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 9px;
    font-size: 13.5px;
    font-family: inherit;
    color: var(--ud-dark);
    background: #fff;
    transition: all 0.15s;
    box-sizing: border-box;
    outline: none;
}
.unidet-depot-field input:focus,
.unidet-depot-field textarea:focus,
.unidet-depot-field select:focus {
    border-color: var(--ud-gold);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.unidet-depot-field textarea { resize: vertical; line-height: 1.6; }

.unidet-depot-field input.unidet-input-error,
.unidet-depot-field textarea.unidet-input-error,
.unidet-depot-field select.unidet-input-error {
    border-color: #e74c3c;
    background: #fdf2f2;
}
.unidet-depot-field input.unidet-input-success,
.unidet-depot-field textarea.unidet-input-success,
.unidet-depot-field select.unidet-input-success {
    border-color: #16a34a;
    background: #f0fdf4;
}

.unidet-error-msg {
    display: none;
    font-size: 11px;
    font-weight: 600;
    color: #e74c3c;
    margin-top: 4px;
    line-height: 1.4;
}

/* Section 1 */
.unidet-section1-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
    width: 100%;
}
.unidet-section1-grid .full { grid-column: 1 / -1; }
.unidet-section1-grid .unidet-depot-field { margin: 0; }
.unidet-section1-grid .unidet-depot-field input,
.unidet-section1-grid .unidet-depot-field select {
    padding: 13px 15px;
    font-size: 14px;
}

.unidet-depot-phone {
    display: flex;
    background: #fff;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 9px;
    overflow: hidden;
    height: 42px;
    transition: all 0.15s;
}
.unidet-depot-phone:focus-within {
    border-color: var(--ud-gold);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.unidet-depot-phone select {
    flex: 0 0 auto;
    min-width: 100px;
    max-width: 120px;
    padding: 0 28px 0 10px;
    border: none;
    background: transparent;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 13px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ud-dark);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}
.unidet-depot-phone input[type="tel"] {
    flex: 1;
    min-width: 0;
    padding: 0 12px;
    border: none;
    border-left: 1.5px solid var(--ud-border-hard);
    background: transparent;
    font-size: 13.5px;
    outline: none;
}

/* Section 2 */
.unidet-section2-row1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 20px;
    margin-bottom: 14px;
}
.unidet-section2-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
}
.unidet-section2-row2 > .unidet-depot-field textarea {
    flex: 1;
    min-height: 180px;
}

.unidet-depot-amount { display: flex; gap: 8px; }
.unidet-depot-amount input { flex: 1; min-width: 0; }
.unidet-depot-amount select {
    flex: 0 0 auto;
    min-width: 95px;
    max-width: 110px;
    cursor: pointer;
}

.unidet-depot-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 20px 16px;
    border: 2px dashed #d4dbe6;
    border-radius: 10px;
    background: #fafbfd;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 4px;
    flex: 1;
    min-height: 180px;
    box-sizing: border-box;
}
.unidet-depot-dropzone:hover { border-color: var(--ud-gold); background: #fefcf8; }
.unidet-depot-dropzone.unidet-dropzone-active { border-color: var(--ud-gold); background: #fdf6ec; }
.unidet-depot-dropzone-icon { font-size: 30px; line-height: 1; opacity: 0.85; }
.unidet-depot-dropzone-text {
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1.5;
}
.unidet-depot-dropzone-text u {
    color: var(--ud-gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Section 3 */
.unidet-section3-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.unidet-col { min-width: 0; display: flex; flex-direction: column; }
.unidet-col-title {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ud-dark);
    margin: 0 0 3px;
    letter-spacing: 0.2px;
    line-height: 1.35;
}
.unidet-col-hint {
    font-size: 11px;
    color: var(--ud-text-light);
    margin: 0 0 12px;
    line-height: 1.45;
    font-weight: 500;
}
.unidet-col-list { display: flex; flex-direction: column; gap: 6px; }
.unidet-col-note {
    display: flex;
    gap: 7px;
    padding: 9px 11px;
    background: #f0f8ff;
    border-left: 3px solid #0073aa;
    border-radius: 0 6px 6px 0;
    font-size: 11px;
    color: #1e40af;
    line-height: 1.5;
    margin-top: 12px;
}
.unidet-col-note-icon { font-size: 12px; flex-shrink: 0; line-height: 1.4; }
.unidet-section3-note-full {
    grid-column: 1 / -1;
    display: flex;
    gap: 9px;
    padding: 12px 16px;
    background: #f0f8ff;
    border-left: 3px solid #0073aa;
    border-radius: 0 8px 8px 0;
    font-size: 11.5px;
    color: #1e40af;
    line-height: 1.6;
    margin-top: 6px;
}

/* Offres cards */
.unidet-offre-grid { display: flex; flex-direction: column; gap: 8px; }
.unidet-offre-card {
    position: relative;
    cursor: pointer;
    border: 1.5px solid var(--ud-border-hard);
    border-left-width: 3px;
    border-radius: 10px;
    background: #fff;
    padding: 12px 14px;
    transition: all 0.2s;
    display: block;
    margin: 0;
}
.unidet-offre-card:nth-child(1) { border-left-color: #27ae60; }
.unidet-offre-card:nth-child(2) { border-left-color: #0073aa; }
.unidet-offre-card:nth-child(3) { border-left-color: #e74c3c; }
.unidet-offre-card:hover { border-color: var(--ud-gold); }
.unidet-offre-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.unidet-offre-card-inner { display: flex; flex-direction: column; }
.unidet-offre-head { display: flex; align-items: center; gap: 9px; }
.unidet-offre-radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}
.unidet-offre-card input:checked ~ .unidet-offre-card-inner .unidet-offre-radio-circle { border-color: var(--ud-gold); }
.unidet-offre-card input:checked ~ .unidet-offre-card-inner .unidet-offre-radio-circle::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--ud-gold);
}
.unidet-offre-emoji { font-size: 18px; line-height: 1; flex-shrink: 0; }
.unidet-offre-name {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ud-dark);
    flex: 1;
    line-height: 1.2;
}
.unidet-offre-pct {
    font-size: 18px;
    font-weight: 800;
    color: var(--ud-dark);
    white-space: nowrap;
    letter-spacing: -0.4px;
}
.unidet-offre-desc {
    font-size: 11.5px;
    color: #64748b;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 3px;
    padding-left: 27px;
}
.unidet-offre-delai {
    font-size: 11px;
    color: var(--ud-gold);
    font-weight: 700;
    margin-top: 2px;
    padding-left: 27px;
}
.unidet-offre-target {
    font-size: 10.5px;
    color: var(--ud-text-light);
    font-weight: 500;
    line-height: 1.4;
    font-style: italic;
    margin-top: 6px;
    padding-top: 6px;
    padding-left: 27px;
    border-top: 1px dashed var(--ud-border-soft);
}
.unidet-offre-card:has(input:checked) {
    border-color: var(--ud-gold);
    border-left-color: var(--ud-gold);
    background: linear-gradient(135deg, #fdf9f0 0%, #fff 70%);
}
.unidet-offre-card input:checked ~ .unidet-offre-card-inner .unidet-offre-name,
.unidet-offre-card input:checked ~ .unidet-offre-card-inner .unidet-offre-pct {
    color: var(--ud-gold-deep);
}

/* Radio items */
.unidet-radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    font-weight: 600;
    color: var(--ud-dark);
    margin: 0;
    position: relative;
    min-height: 50px;
    box-sizing: border-box;
    text-align: left;
}
.unidet-radio-item:hover { border-color: var(--ud-gold); }
.unidet-radio-item input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.unidet-radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
}
.unidet-radio-item input:checked ~ .unidet-radio-circle { border-color: var(--ud-gold); }
.unidet-radio-item input:checked ~ .unidet-radio-circle::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--ud-gold);
}
.unidet-radio-item:has(input:checked) {
    border-color: var(--ud-gold);
    background: linear-gradient(135deg, #fdf9f0 0%, #fff 100%);
}
.unidet-radio-label {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}
.unidet-radio-sub {
    display: block;
    font-size: 11px;
    color: var(--ud-text-light);
    font-weight: 500;
    margin-top: 2px;
    line-height: 1.35;
    text-align: left;
}
.unidet-radio-item:has(input:checked) .unidet-radio-label { color: var(--ud-gold-deep); }

.unidet-radio-inline {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    text-align: left;
}
.unidet-radio-inline > span:first-child {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--ud-dark);
}
.unidet-radio-other-input {
    display: inline-block;
    width: 90px;
    min-width: 90px;
    max-width: 90px;
    height: 34px;
    flex: 0 0 90px;
    padding: 0 10px;
    text-align: center;
    box-sizing: border-box;
    font-size: 13.5px;
    font-weight: 700;
    font-family: inherit;
    color: var(--ud-dark);
    background: #fff;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    margin: 0;
    transition: all 0.15s;
    -moz-appearance: textfield;
    appearance: textfield;
}
.unidet-radio-other-input::-webkit-outer-spin-button,
.unidet-radio-other-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.unidet-radio-other-input::placeholder { color: #cbd5e1; font-weight: 700; }
.unidet-radio-other-input:focus {
    border-color: var(--ud-gold);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.unidet-radio-other-input:disabled {
    background: #f4f6f9;
    color: var(--ud-text-light);
    border-color: var(--ud-border-hard);
    cursor: not-allowed;
}
.unidet-radio-unit {
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
}

/* Section 4 */
.unidet-validation-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    line-height: 1.55;
    margin: 0;
}
.unidet-validation-box input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ud-gold);
    cursor: pointer;
    flex-shrink: 0;
}
.unidet-validation-box:has(input:checked) {
    background: #fdf9f0;
    border-color: var(--ud-gold);
}

.unidet-depot-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 2px solid var(--ud-border-soft);
}
.unidet-btn-cancel {
    padding: 13px 26px;
    background: #fff;
    border: 1.5px solid var(--ud-border-hard);
    border-radius: 9px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
.unidet-btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: var(--ud-dark);
}
.unidet-btn-transmettre {
    flex: 1;
    max-width: 400px;
    padding: 14px 28px;
    background: #cbd5e1;
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 800;
    cursor: not-allowed;
    transition: all 0.25s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.2px;
}
.unidet-btn-transmettre.ready {
    background: linear-gradient(135deg, #d4a373 0%, #b8895c 100%);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.25);
}
.unidet-btn-transmettre.ready:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(212, 163, 115, 0.35);
}

/* File preview */
.unidet-file-preview {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}
.unidet-file-preview.has-files { display: flex; }
.unidet-file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid var(--ud-border-soft);
    border-radius: 9px;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative;
}
.unidet-file-item:hover {
    border-color: var(--ud-gold);
    box-shadow: 0 2px 8px rgba(212, 163, 115, 0.1);
}
.unidet-file-thumb {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 8px;
    background-color: #f8fafc;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    border: 1px solid var(--ud-border-soft);
}
.unidet-file-thumb-icon { background-image: none !important; }
.unidet-file-info { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.unidet-file-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ud-dark);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}
.unidet-file-meta { font-size: 10.5px; color: var(--ud-text-light); margin-top: 2px; font-weight: 500; }
.unidet-file-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: none;
    border-radius: 7px;
    color: #888;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
    line-height: 1;
}
.unidet-file-remove:hover { background: #fdecea; color: #e74c3c; transform: scale(1.05); }
.unidet-file-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 2px;
    margin-top: 2px;
}
.unidet-file-counter { font-size: 11.5px; color: #666; font-weight: 500; }
.unidet-file-counter strong { color: var(--ud-gold); font-weight: 800; }
.unidet-file-add {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    background: #f8fafc;
    border: 1.5px dashed #d4dbe6;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.15s;
}
.unidet-file-add:hover {
    border-color: var(--ud-gold);
    color: var(--ud-gold-deep);
    background: #fefcf8;
}
.unidet-file-input-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}

/* Responsive dépôt */
@media (max-width: 1100px) {
    .unidet-section3-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
    .unidet-section3-grid .unidet-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
    .unidet-depot-section { padding: 18px 20px; }
    .unidet-section1-grid,
    .unidet-section2-row1,
    .unidet-section2-row2,
    .unidet-section3-grid { grid-template-columns: 1fr; gap: 20px; }
    .unidet-section3-grid .unidet-col:first-child { grid-column: auto; }
    .unidet-depot-actions { flex-direction: column-reverse; align-items: stretch; }
    .unidet-btn-transmettre { max-width: 100%; width: 100%; }
    .unidet-btn-cancel { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
    .unidet-depot-header h1 { font-size: 20px; }
    .unidet-depot-section { padding: 16px 14px; }
    .unidet-depot-section-num { width: 32px; height: 32px; font-size: 14px; }
    .unidet-depot-section-title { font-size: 15px; }
    .unidet-file-item { padding: 7px 9px; gap: 8px; }
    .unidet-file-thumb { width: 36px; height: 36px; font-size: 17px; }
    .unidet-file-name { font-size: 12px; }
    .unidet-file-meta { font-size: 10px; }
    .unidet-file-remove { width: 26px; height: 26px; font-size: 11px; }
    .unidet-file-footer { flex-direction: column; gap: 6px; }
    .unidet-file-add { width: 100%; justify-content: center; }
}

/* ============================================================
   06 — PAGES LÉGALES v4 — Magazine + TOC horizontal sticky
   Palette alignée sur les pages auth (#d4a373 / #0a0e17)
   ============================================================ */

html:has(body.unidet-legal-body),
body.unidet-legal-body {
    margin: 0 !important;
    padding: 0 !important;
    background: #FAFAF7 !important;
    color: #1A1A1A !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100vh !important;
    width: 100% !important;
    box-sizing: border-box !important;
    line-height: 1.6;
}

/* Neutralisation parents Elementor */
html body.unidet-legal-body #page,
html body.unidet-legal-body #content,
html body.unidet-legal-body #primary,
html body.unidet-legal-body #main,
html body.unidet-legal-body .site,
html body.unidet-legal-body .site-content,
html body.unidet-legal-body .site-main,
html body.unidet-legal-body .entry-content,
html body.unidet-legal-body .post-content,
html body.unidet-legal-body main,
html body.unidet-legal-body article,
html body.unidet-legal-body .elementor,
html body.unidet-legal-body .elementor-section,
html body.unidet-legal-body .elementor-container,
html body.unidet-legal-body .elementor-column,
html body.unidet-legal-body .elementor-column-wrap,
html body.unidet-legal-body .elementor-widget-wrap,
html body.unidet-legal-body .elementor-widget,
html body.unidet-legal-body .elementor-widget-container,
html body.unidet-legal-body .elementor-widget-shortcode,
html body.unidet-legal-body .elementor-shortcode,
html body.unidet-legal-body .e-con,
html body.unidet-legal-body .e-con-inner,
html body.unidet-legal-body .e-con-boxed,
html body.unidet-legal-body [data-elementor-type],
html body.unidet-legal-body [class*="e-con-"],
html body.unidet-legal-body [class*="elementor-element-"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

html body.unidet-legal-body .site-header,
html body.unidet-legal-body .site-footer,
html body.unidet-legal-body .elementor-location-header,
html body.unidet-legal-body .elementor-location-footer,
html body.unidet-legal-body #masthead,
html body.unidet-legal-body #colophon {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════ */
/* WRAPPER                                                     */
/* ══════════════════════════════════════════════════════════ */
.ulg {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh !important;
    background: #FAFAF7 !important;
    position: relative !important;
    overflow-x: hidden !important;
}

.ulg-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #E3C766, #d4a373);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(212, 163, 115, 0.5);
}

/* ══════════════════════════════════════════════════════════ */
/* NAV                                                         */
/* ══════════════════════════════════════════════════════════ */
.ulg-nav-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    z-index: 50;
}

.ulg-nav {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
}

.ulg-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.ulg-brand img {
    height: 40px;
    width: auto;
    max-width: 70px;
    object-fit: contain;
    display: block;
}

.ulg-nav-actions { display: flex; align-items: center; gap: 8px; }

.ulg-nav-link {
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 8px 14px;
    transition: color 0.2s;
}
.ulg-nav-link:hover { color: #fff; }

.ulg-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    background: linear-gradient(135deg, #d4a373, #b8895c);
    color: #fff;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(212, 163, 115, 0.3);
    letter-spacing: 0.02em;
}
.ulg-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(212, 163, 115, 0.45);
}

/* ══════════════════════════════════════════════════════════ */
/* HERO SOMBRE                                                 */
/* ══════════════════════════════════════════════════════════ */
.ulg-hero {
    position: relative;
    background: linear-gradient(160deg, #0a0e17 0%, #0d1420 60%, #111827 100%);
    color: #fff;
    padding: 140px 40px 90px;
    overflow: hidden;
}

.ulg-hero-glow {
    position: absolute;
    top: -40%;
    right: -10%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.18) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.ulg-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.ulg-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 163, 115, 0.25);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: #d4a373;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}
.ulg-hero-eyebrow-dot {
    width: 6px;
    height: 6px;
    background: #d4a373;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.25);
}

.ulg-hero-title {
    margin: 0 0 28px;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.06;
    max-width: 860px;
}

.ulg-hero-rule {
    width: 72px;
    height: 4px;
    background: linear-gradient(90deg, #E3C766, #d4a373);
    border-radius: 2px;
    margin: 0 0 28px;
}

.ulg-hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}
.ulg-hero-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.ulg-hero-meta-item svg { color: #d4a373; flex-shrink: 0; }
.ulg-hero-meta-sep { color: rgba(255, 255, 255, 0.25); }

/* ══════════════════════════════════════════════════════════ */
/* TOC BAR HORIZONTAL STICKY                                   */
/* ══════════════════════════════════════════════════════════ */
.ulg-toc-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: #fff;
    border-bottom: 1px solid #EBE8E0;
    box-shadow: 0 2px 12px rgba(10, 14, 23, 0.04);
    transition: box-shadow 0.2s ease;
}
.ulg-toc-bar.is-stuck {
    box-shadow: 0 4px 20px rgba(10, 14, 23, 0.08);
}

.ulg-toc-bar-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 14px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-sizing: border-box;
}

.ulg-toc-bar-label {
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 800;
    color: #0A0E17;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding-right: 20px;
    border-right: 1px solid #EBE8E0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    height: 34px;
}

/* Zone chips scrollable horizontalement */
.ulg-toc-chips {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.ulg-toc-chips::-webkit-scrollbar { height: 3px; }
.ulg-toc-chips::-webkit-scrollbar-track { background: transparent; }
.ulg-toc-chips::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 2px;
}

/* Chip individuel */
.ulg-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 7px 14px;
    background: #FAFAF7;
    border: 1px solid #EBE8E0;
    border-radius: 100px;
    text-decoration: none;
    color: #4B5563;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.ulg-chip:hover {
    background: #fff;
    border-color: #d4a373;
    color: #0A0E17;
}

.ulg-chip.active {
    background: linear-gradient(135deg, #0a0e17 0%, #0d1420 100%);
    border-color: #0a0e17;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(10, 14, 23, 0.18);
}

.ulg-chip-num {
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 800;
    color: #A0824D;
    background: rgba(212, 163, 115, 0.15);
    padding: 2px 7px;
    border-radius: 100px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    transition: all 0.2s;
}
.ulg-chip.active .ulg-chip-num {
    background: #d4a373;
    color: #0a0e17;
}

.ulg-chip-text { display: inline-block; }

/* ══════════════════════════════════════════════════════════ */
/* CONTENU                                                     */
/* ══════════════════════════════════════════════════════════ */
.ulg-content-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 64px 40px 100px;
    box-sizing: border-box;
}

.ulg-content { min-width: 0; }

.ulg-card {
    background: #fff;
    border: 1px solid #EBE8E0;
    border-radius: 20px;
    padding: 72px 80px;
    box-shadow: 0 8px 32px rgba(10, 14, 23, 0.05);
    font-size: 15.5px;
    line-height: 1.85;
    color: #374151;
    max-width: 960px;
    margin: 0 auto;
}

/* Section head — badge numéroté + h2 */
.ulg-card .ulg-sec-head {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin: 72px 0 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #F0EDE5;
    position: relative;
}
.ulg-card .ulg-sec-head:first-child { margin-top: 0; }
.ulg-card .ulg-sec-head::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 72px;
    height: 3px;
    background: linear-gradient(90deg, #E3C766, #d4a373);
    border-radius: 2px;
}

.ulg-card .ulg-sec-num {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #0a0e17 0%, #0d1420 100%);
    color: #d4a373;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 6px 16px rgba(10, 14, 23, 0.18);
    margin-top: 2px;
}

.ulg-card .ulg-sec-head h2 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    color: #0A0E17 !important;
    letter-spacing: -0.6px !important;
    line-height: 1.25 !important;
    scroll-margin-top: 100px !important;
    flex: 1;
    min-width: 0;
}
.ulg-card .ulg-sec-head h2::before { display: none !important; }

/* Typographie */
.ulg-card h3 { font-size: 17.5px; font-weight: 700; color: #0A0E17; margin: 36px 0 14px; letter-spacing: -0.2px; }
.ulg-card h4 { font-size: 15.5px; font-weight: 700; color: #0A0E17; margin: 28px 0 12px; }
.ulg-card p { margin: 0 0 20px; color: #374151; }
.ulg-card p:last-child { margin-bottom: 0; }

.ulg-card ul,
.ulg-card ol { margin: 0 0 24px; padding-left: 24px; }
.ulg-card li { margin-bottom: 12px; padding-left: 6px; line-height: 1.75; }
.ulg-card li::marker { color: #d4a373; font-weight: 800; }

.ulg-card a {
    color: #b8895c;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(212, 163, 115, 0.35);
    transition: all 0.15s;
}
.ulg-card a:hover { color: #0A0E17; border-bottom-color: #0A0E17; }
.ulg-card strong { color: #0A0E17; font-weight: 700; }

.ulg-card blockquote {
    margin: 28px 0;
    padding: 22px 28px;
    background: #FDF6EC;
    border-left: 4px solid #d4a373;
    border-radius: 0 12px 12px 0;
    color: #4B5563;
    font-style: italic;
    font-size: 15px;
}

.ulg-card img { max-width: 100%; height: auto; border-radius: 12px; margin: 28px 0; display: block; }
.ulg-card hr { border: none; border-top: 1px solid #EBE8E0; margin: 48px 0; }
.ulg-card table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14.5px; }
.ulg-card th {
    background: #FAFAF7;
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: #0A0E17;
    border-bottom: 2px solid #EBE8E0;
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ulg-card td { padding: 14px 18px; border-bottom: 1px solid #F0EDE5; }

/* ══════════════════════════════════════════════════════════ */
/* BLOC CONTACT                                                */
/* ══════════════════════════════════════════════════════════ */
.ulg-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 28px auto 0;
    padding: 26px 32px;
    max-width: 960px;
    background: linear-gradient(135deg, #0a0e17 0%, #0d1420 100%);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(10, 14, 23, 0.15);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}
.ulg-contact::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.18) 0%, transparent 60%);
    pointer-events: none;
}
.ulg-contact-icon {
    width: 52px; height: 52px;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #d4a373, #b8895c);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    position: relative;
    z-index: 1;
}
.ulg-contact-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.ulg-contact-text h4 {
    margin: 0 0 4px;
    font-size: 15.5px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.2px;
}
.ulg-contact-text p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.6); }

.ulg-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: transparent;
    border: 1.5px solid rgba(212, 163, 115, 0.4);
    color: #d4a373;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s;
    position: relative;
    z-index: 1;
    letter-spacing: 0.02em;
}
.ulg-contact-btn:hover {
    background: linear-gradient(135deg, #d4a373, #b8895c);
    color: #fff;
    border-color: #d4a373;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(212, 163, 115, 0.35);
}
.ulg-contact-btn svg { transition: transform 0.2s; }
.ulg-contact-btn:hover svg { transform: translateX(3px); }

/* ══════════════════════════════════════════════════════════ */
/* FOOTER                                                      */
/* ══════════════════════════════════════════════════════════ */
.ulg-footer {
    background: #0a0e17;
    color: rgba(255, 255, 255, 0.55);
    padding: 36px 40px;
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent, #d4a373, transparent) 1;
    border-image-slice: 1;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
}
.ulg-footer-inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.ulg-footer-copy { font-size: 13px; font-weight: 500; }
.ulg-footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}
.ulg-footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.ulg-footer-links a:hover { color: #d4a373; }
.ulg-footer-links span { color: rgba(255, 255, 255, 0.25); }

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

@media (max-width: 1024px) {
    .ulg-nav { padding: 20px 28px; }
    .ulg-hero { padding: 120px 28px 70px; }
    .ulg-hero-title { font-size: 40px; }

    .ulg-toc-bar-inner { padding: 12px 28px; gap: 14px; }
    .ulg-toc-bar-label { padding-right: 14px; font-size: 10px; }
    .ulg-chip { padding: 6px 12px; font-size: 12.5px; }

    .ulg-content-wrap { padding: 48px 28px 80px; }
    .ulg-card { padding: 48px 40px; }
    .ulg-card .ulg-sec-head { margin: 56px 0 20px; }
    .ulg-card .ulg-sec-num { width: 46px; height: 46px; font-size: 15px; }
    .ulg-card .ulg-sec-head h2 { font-size: 22px !important; }

    .ulg-footer { padding: 28px 28px; }
}

@media (max-width: 640px) {
    .ulg-nav { padding: 16px 20px; gap: 12px; }
    .ulg-brand img { height: 34px; }
    .ulg-nav-link { display: none; }
    .ulg-nav-btn { padding: 9px 16px; font-size: 12.5px; }

    .ulg-hero { padding: 100px 20px 60px; }
    .ulg-hero-eyebrow { font-size: 10px; padding: 7px 13px; margin-bottom: 24px; }
    .ulg-hero-title { font-size: 30px; letter-spacing: -1px; margin-bottom: 22px; }
    .ulg-hero-rule { margin-bottom: 22px; width: 56px; }
    .ulg-hero-meta { font-size: 12.5px; gap: 10px; }

    .ulg-toc-bar-inner {
        padding: 10px 16px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }
    .ulg-toc-bar-label {
        border-right: none;
        border-bottom: 1px solid #EBE8E0;
        padding-right: 0;
        padding-bottom: 8px;
        height: auto;
    }
    .ulg-toc-chips {
        gap: 6px;
        padding-bottom: 2px;
    }
    .ulg-chip { padding: 6px 11px; font-size: 12px; gap: 6px; }
    .ulg-chip-num { padding: 2px 6px; font-size: 10px; }

    .ulg-content-wrap { padding: 32px 16px 60px; }
    .ulg-card {
        padding: 32px 22px;
        border-radius: 16px;
        font-size: 15px;
    }
    .ulg-card .ulg-sec-head {
        gap: 14px;
        margin: 44px 0 18px;
        padding-bottom: 18px;
    }
    .ulg-card .ulg-sec-num {
        width: 40px;
        height: 40px;
        font-size: 13px;
        border-radius: 10px;
    }
    .ulg-card .ulg-sec-head h2 {
        font-size: 19px !important;
        letter-spacing: -0.4px !important;
    }
    .ulg-card h3 { font-size: 16px; }

    .ulg-contact {
        flex-direction: column;
        text-align: center;
        gap: 14px;
        padding: 26px 22px;
    }
    .ulg-contact-icon { margin: 0 auto; }
    .ulg-contact-btn { width: 100%; justify-content: center; }

    .ulg-footer { padding: 24px 20px; }
    .ulg-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
    .ulg-footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ============================================================
   07 — RESPONSIVE FINAL — DASHBOARD ≤1024px
   (un seul bloc, override unique pour mobile + tablette)
   ============================================================ */
@media (max-width: 1024px) {

    html body.ud-dash-body {
        overflow: hidden !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }

    /* Neutralisation parents Elementor en mobile : hauteur verrouillée */
    html body.ud-dash-body #page,
    html body.ud-dash-body #content,
    html body.ud-dash-body #primary,
    html body.ud-dash-body #main,
    html body.ud-dash-body .site,
    html body.ud-dash-body .site-content,
    html body.ud-dash-body .site-main,
    html body.ud-dash-body .entry-content,
    html body.ud-dash-body .post-content,
    html body.ud-dash-body main,
    html body.ud-dash-body article,
    html body.ud-dash-body .elementor,
    html body.ud-dash-body .elementor-section,
    html body.ud-dash-body .elementor-container,
    html body.ud-dash-body .elementor-column,
    html body.ud-dash-body .elementor-column-wrap,
    html body.ud-dash-body .elementor-widget-wrap,
    html body.ud-dash-body .elementor-widget,
    html body.ud-dash-body .elementor-widget-container,
    html body.ud-dash-body .elementor-widget-shortcode,
    html body.ud-dash-body .elementor-shortcode,
    html body.ud-dash-body .e-con,
    html body.ud-dash-body .e-con-boxed,
    html body.ud-dash-body .e-con-inner,
    html body.ud-dash-body .e-con-full {
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 0 !important;
        overflow: hidden !important;
    }

    /* Layout racine : block plein écran */
    html body.ud-dash-body .ud-layout,
    html body.ud-dash-body .ud-layout.ud-collapsed {
        display: block !important;
        grid-template-columns: none !important;
        grid-template-rows: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Sidebar : overlay fixe */
    html body.ud-dash-body .ud-sidebar,
    html body.ud-dash-body .ud-layout.ud-collapsed .ud-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 280px !important;
        min-width: 280px !important;
        max-width: 85vw !important;
        height: 100dvh !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 9999 !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        flex-direction: column !important;
    }
    html body.ud-dash-body .ud-sidebar.open { transform: translateX(0) !important; }

    /* Toggle desktop caché, close affiché */
    html body.ud-dash-body .ud-sidebar-toggle { display: none !important; }
    html body.ud-dash-body .ud-sidebar-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #fff;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
    }

    /* Overlay */
    html body.ud-dash-body .ud-overlay { display: block !important; }

    /* Contenu : flex column plein écran */
    html body.ud-dash-body .ud-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 0 !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        grid-column: auto !important;
    }

    /* Hamburger visible */
    html body.ud-dash-body .ud-menu-toggle { display: flex !important; }

    /* Topbar */
    html body.ud-dash-body .ud-topbar {
        display: flex !important;
        flex: 0 0 auto !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 20px !important;
        gap: 12px !important;
        min-height: 76px !important;
        width: 100% !important;
        margin: 0 !important;
        background: #fff !important;
        border-bottom: 1px solid var(--ud-border-soft) !important;
        box-sizing: border-box !important;
    }
    html body.ud-dash-body .ud-topbar-title { flex: 1 !important; min-width: 0 !important; }
    html body.ud-dash-body .ud-topbar-title h1 {
        font-size: 17px !important;
        margin: 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    html body.ud-dash-body .ud-topbar-title p {
        font-size: 11.5px !important;
        margin: 2px 0 0 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Body scrollable */
    html body.ud-dash-body .ud-body,
    html body.ud-dash-body .ud-content .ud-body {
        display: block !important;
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 28px 22px 48px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Footer */
    html body.ud-dash-body .ud-footer {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-direction: column !important;
        width: 100% !important;
        padding: 16px !important;
        margin: 0 !important;
        background: #fff !important;
        border-top: 1px solid var(--ud-border-soft) !important;
        box-sizing: border-box !important;
        text-align: center !important;
        gap: 6px !important;
        font-size: 11px !important;
    }

    /* Grilles responsive */
    .ud-home-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .ud-admin-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .ud-finance-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .uds-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .uds-filters { grid-template-columns: 1fr 1fr !important; }
    .uds-grid-2 { grid-template-columns: 1fr !important; }
    .ud-home-grid-2 { grid-template-columns: 1fr !important; }
    .ud-actions { grid-template-columns: 1fr !important; }
    .ud-filters { grid-template-columns: 1fr 1fr !important; }
    .ud-form-grid { grid-template-columns: 1fr !important; }
    .unidet-modal-row-2col { grid-template-columns: 1fr !important; gap: 0 !important; }
    .unidet-flat-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
    .unidet-admin-modal-grid { grid-template-columns: 1fr !important; }
    .unidet-choice-2 { grid-template-columns: 1fr !important; }
    .unidet-kpi-row { grid-template-columns: 1fr !important; }
    .unidet-perms-cards { grid-template-columns: 1fr !important; }

    /* Blocks */
    .ud-block { padding: 20px !important; border-radius: 12px !important; margin-bottom: 20px !important; }
    .ud-block-head { flex-direction: column !important; align-items: flex-start !important; gap: 12px !important; }
    .ud-home-section { padding: 20px !important; border-radius: 12px !important; margin-bottom: 20px !important; }

    /* Hero CTA + Support */
    .ud-home-hero-cta { flex-direction: column !important; align-items: flex-start !important; gap: 18px !important; }
    .ud-home-hero-cta-btn { width: 100% !important; justify-content: center !important; }
    .ud-home-support { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
    .ud-home-support-btn { width: 100% !important; justify-content: center !important; }

    /* Modals */
    .ud-modal-content { max-width: calc(100vw - 16px) !important; margin: 8px !important; }
    .udm-top { padding: 18px 20px !important; flex-wrap: wrap !important; }
    .udm-ref { font-size: 12.5px !important; }
    .udm-status { font-size: 10px !important; padding: 5px 10px !important; }
    .udm-hero { padding: 30px 20px 26px !important; }
    .udm-hero-amount { font-size: 34px !important; }
    .udm-duo { grid-template-columns: 1fr !important; }
    .udm-duo > .udm-block { padding: 22px 20px !important; }
    .udm-duo > .udm-block:first-child { border-right: none !important; border-bottom: 1px solid #F0EDE8 !important; }
    .udm-full { padding: 22px 20px !important; }
    .udm-files-block { padding: 22px 20px 26px !important; }
    .udm-files { grid-template-columns: repeat(2, 1fr) !important; }
    .udm-foot { padding: 14px 20px !important; }

    .unidet-admin-modal-content { width: calc(100% - 20px) !important; margin: 10px auto !important; max-height: calc(100vh - 20px) !important; }
    .unidet-admin-modal-body { padding: 18px 16px !important; }

    /* Modal admin responsive */
    .unidet-admin-modal-actions.unidet-actions-split {
        flex-direction: column-reverse !important;
        align-items: stretch !important;
    }
    .unidet-admin-modal-actions.unidet-actions-split .unidet-admin-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Lightbox */
    .udm-lb-close { top: 16px !important; right: 16px !important; width: 42px !important; height: 42px !important; font-size: 16px !important; }
    .udm-lb-caption { font-size: 12px !important; padding: 8px 16px !important; }

    /* FAQ */
    .ud-faq-section-head { padding: 14px 16px !important; gap: 10px !important; }
    .ud-faq-section-icon { width: 38px !important; height: 38px !important; font-size: 17px !important; }
    .ud-faq-section-title { font-size: 15px !important; }
    .ud-faq-question { padding: 15px 16px !important; font-size: 13.5px !important; }
    .ud-faq-answer-inner { padding: 0 16px 16px !important; font-size: 13px !important; }
    .ud-faq-chips { gap: 6px !important; }
    .ud-faq-chip { padding: 7px 13px !important; font-size: 12.5px !important; }

    /* Stats responsive */
    .uds-ratio-value { font-size: 24px !important; }
    .uds-chart-wrap { height: 260px !important; }
    .uds-chart-sm { height: 240px !important; }

    /* Notifs */
    .ud-notif-full-item { padding: 12px 14px !important; gap: 10px !important; }
    .ud-notif-full-icon { width: 36px !important; height: 36px !important; font-size: 16px !important; }
    .ud-notif-full-msg { font-size: 13px !important; }

    /* Pagination */
    .ud-pag-btn { min-width: 36px !important; height: 36px !important; padding: 0 10px !important; font-size: 12.5px !important; }
    .ud-pagination { gap: 4px !important; }
}

@media (max-width: 640px) {
    .ud-home-kpis { grid-template-columns: 1fr !important; }
    .ud-admin-stats-grid { grid-template-columns: 1fr !important; }
    .ud-finance-grid { grid-template-columns: 1fr !important; }
    .uds-kpi-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 560px) {
    .uds-kpi-grid { grid-template-columns: 1fr !important; }
    .uds-filters { grid-template-columns: 1fr !important; }
    .ud-filters { grid-template-columns: 1fr !important; }
    .ud-pagination { gap: 4px !important; }
    .ud-pag-dots { padding: 0 2px !important; font-size: 12px !important; }
}

@media (max-width: 480px) {
    html body.ud-dash-body .ud-topbar { padding: 16px !important; min-height: 68px !important; }
    html body.ud-dash-body .ud-body { padding: 22px 16px 40px !important; }
    html body.ud-dash-body .ud-menu-toggle { width: 38px !important; height: 38px !important; }
    html body.ud-dash-body .ud-menu-toggle span { width: 18px !important; }
    html body.ud-dash-body .ud-sidebar { width: 100% !important; max-width: 320px !important; }
    html body.ud-dash-body .ud-block { padding: 16px !important; }
}

/* ============================================================
   08 — ACCESSIBILITÉ
   ============================================================ */
body.ud-dash-body :focus-visible,
body.unidet-auth-body :focus-visible {
    outline: 2px solid var(--ud-gold);
    outline-offset: 2px;
}

/* ============================================================
   🎯 PATCH BLOCS PANNEAU GAUCHE v2 — Citation + Footer en bas
   À placer EN DERNIER dans style.css
   ============================================================ */

@media (min-width: 901px) {

    /* ============================================================
       CONTENEUR : espacement des blocs
       ============================================================ */
    body.unidet-auth-body .unidet-reg-left-inner {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        gap: 56px !important;              /* espace entre logo→hero et citation→footer */
        padding: 56px 40px 44px 32px !important;
        height: 100% !important;
        box-sizing: border-box !important;
    }

    /* ============================================================
       BLOC 1 — LOGO
       ============================================================ */
    body.unidet-auth-body .unidet-reg-brand {
        margin: 0 !important;
        padding: 0 !important;
        align-self: flex-start !important;
        flex-shrink: 0 !important;
    }

    /* ============================================================
       BLOC 2 — HERO (tag + h1 + lead + features)
       ============================================================ */
    body.unidet-auth-body .unidet-reg-hero {
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    body.unidet-auth-body .unidet-reg-tag {
        margin: 0 0 16px 0 !important;
        padding: 0 0 14px 0 !important;
        font-size: 11px !important;
        letter-spacing: 3px !important;
    }

    body.unidet-auth-body .unidet-reg-h1 {
        margin: 0 0 14px 0 !important;
        line-height: 1.14 !important;
    }

    body.unidet-auth-body .unidet-reg-lead {
        margin: 0 0 24px 0 !important;
        max-width: 100% !important;
        font-size: 14.5px !important;
        line-height: 1.6 !important;
    }

    body.unidet-auth-body .unidet-reg-features {
        gap: 12px !important;
    }

    body.unidet-auth-body .unidet-reg-feat {
        gap: 14px !important;
        font-size: 14.5px !important;
    }

    /* ============================================================
       BLOC 3 — CITATION
       🎯 margin-top: auto → POUSSE la citation + le footer en bas
       ============================================================ */
    body.unidet-auth-body .unidet-reg-quote {
        margin: auto 0 0 0 !important;     /* ⬅️ LE `auto` fait tout le boulot */
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    body.unidet-auth-body .unidet-reg-quote p {
        margin: 0 0 16px 0 !important;
        font-size: 15.5px !important;
        line-height: 1.6 !important;
    }

    body.unidet-auth-body .unidet-reg-quote::after {
        width: 52px !important;
        height: 3px !important;
    }

    /* ============================================================
       BLOC 4 — FOOTER 3 mots
       ============================================================ */
    body.unidet-auth-body .unidet-reg-left-footer {
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: flex-start !important;
        align-items: center !important;
        flex-shrink: 0 !important;
    }

    body.unidet-auth-body .unidet-reg-left-footer span {
        padding: 0 20px !important;
        font-size: 10.5px !important;
        letter-spacing: 2.5px !important;
        color: rgba(255, 255, 255, 0.55) !important;
    }

    body.unidet-auth-body .unidet-reg-left-footer span:first-child {
        padding-left: 0 !important;
    }

    body.unidet-auth-body .unidet-reg-left-footer span:last-child {
        padding-right: 0 !important;
    }
}

/* ============================================================
   ÉCRANS COURTS — on ajuste les gaps
   ============================================================ */
@media (min-width: 901px) and (max-height: 850px) {
    body.unidet-auth-body .unidet-reg-left-inner {
        gap: 40px !important;
        padding: 44px 36px 32px 28px !important;
    }
    body.unidet-auth-body .unidet-reg-lead {
        margin-bottom: 20px !important;
    }
    body.unidet-auth-body .unidet-reg-features {
        gap: 10px !important;
    }
}

@media (min-width: 901px) and (max-height: 720px) {
    body.unidet-auth-body .unidet-reg-left-inner {
        gap: 28px !important;
        padding: 32px 32px 24px 24px !important;
    }
    body.unidet-auth-body .unidet-reg-tag {
        margin-bottom: 10px !important;
        padding-bottom: 10px !important;
        font-size: 10px !important;
    }
    body.unidet-auth-body .unidet-reg-h1 {
        margin-bottom: 10px !important;
        font-size: 26px !important;
    }
    body.unidet-auth-body .unidet-reg-lead {
        margin-bottom: 14px !important;
        font-size: 13px !important;
    }
    body.unidet-auth-body .unidet-reg-features {
        gap: 8px !important;
    }
    body.unidet-auth-body .unidet-reg-feat {
        font-size: 13px !important;
    }
    body.unidet-auth-body .unidet-reg-quote p {
        font-size: 14px !important;
    }
}

/* ============================================================
   🎯 PATCH MARGE VERTICALE PANNEAU DROIT
   À placer EN DERNIER dans style.css
   ============================================================ */

@media (min-width: 901px) {

    /* Padding vertical AUGMENTÉ : le form ne colle plus ni en haut ni en bas */
    body.unidet-auth-body .unidet-reg-right {
        padding: 96px 72px !important;   /* ⬅️ top/bottom = 96px (au lieu de 48px) */
    }

    /* Optionnel : l'inner reste centré verticalement */
    body.unidet-auth-body .unidet-reg-right-inner {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        max-height: 100% !important;
    }
}

/* Écran moyen (1200-1599px) : un peu moins */
@media (min-width: 901px) and (max-width: 1599px) {
    body.unidet-auth-body .unidet-reg-right {
        padding: 80px 72px !important;
    }
}

/* Écran court ≤900px de haut : on réduit pour ne pas pousser le contenu hors écran */
@media (min-width: 901px) and (max-height: 900px) {
    body.unidet-auth-body .unidet-reg-right {
        padding: 56px 64px !important;
    }
}

@media (min-width: 901px) and (max-height: 800px) {
    body.unidet-auth-body .unidet-reg-right {
        padding: 40px 56px !important;
    }
}

@media (min-width: 901px) and (max-height: 700px) {
    body.unidet-auth-body .unidet-reg-right {
        padding: 28px 48px !important;
    }
}
/* ============================================================
   🎯 PATCH PADDING CHAMP TÉLÉPHONE
   À placer EN DERNIER dans style.css
   ============================================================ */

@media (min-width: 901px) {

    /* Réduit le padding interne du champ téléphone */
    body.unidet-auth-body .unidet-phone-wrapper input[type="tel"],
    body.unidet-auth-body .unidet-phone-wrapper .iti input.iti__tel-input[type="tel"],
    body.unidet-auth-body .unidet-phone-wrapper input.iti__tel-input[type="tel"] {
        padding: 0 14px 0 12px !important;   /* ⬅️ gauche 18 → 12 · droite 16 → 14 */
    }
}

/* Mobile : encore plus serré pour gagner de la place */
@media (max-width: 900px) {
    body.unidet-auth-body .unidet-phone-wrapper input[type="tel"],
    body.unidet-auth-body .unidet-phone-wrapper .iti input.iti__tel-input[type="tel"] {
        padding: 0 12px 0 10px !important;
    }
}

/* ============================================================
   🎯 FIX PAGES LÉGALES — Scroll natif + scroll-margin
   ============================================================ */

/* 1. Force le scroll natif sur html + body */
html:has(body.unidet-legal-body),
html.unidet-legal-html,
html body.unidet-legal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100% !important;
    position: static !important;
    scroll-behavior: smooth !important;
}

/* 2. scroll-margin-top pour compenser la sticky TOC bar (~70px) */
.ulg-card .ulg-sec-head h2,
.ulg-card h2[id] {
    scroll-margin-top: 100px !important;
}

/* 3. Neutralise TOUT parent pouvant bloquer le scroll */
html body.unidet-legal-body #page,
html body.unidet-legal-body #content,
html body.unidet-legal-body .site,
html body.unidet-legal-body .site-content,
html body.unidet-legal-body .entry-content,
html body.unidet-legal-body main,
html body.unidet-legal-body .elementor,
html body.unidet-legal-body .e-con,
html body.unidet-legal-body .e-con-inner,
html body.unidet-legal-body .e-con-boxed {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
}

/* 4. La TOC bar reste sticky sous le top */
.ulg-toc-bar {
    position: sticky !important;
    top: 0 !important;
    z-index: 90 !important;
}

/* 5. Le contenu a le bon espacement sous la TOC */
.ulg-content-wrap {
    scroll-margin-top: 100px;
}

/* 6. Mobile : le TOC bar est plus haut → scroll-margin plus large */
@media (max-width: 640px) {
    .ulg-card .ulg-sec-head h2,
    .ulg-card h2[id] {
        scroll-margin-top: 140px !important;
    }
}

/* ============================================================
   🎯 DASHBOARD CLIENT — PATCH FINAL v3
   Desktop + Tablette + Mobile · Sidebar toggle + Logo XL + Grid 2 cols
   À placer EN DERNIER dans style.css
   ============================================================ */

/* ============================================================
   1. LAYOUT DESKTOP — Grid 240px / 1fr, transition fluide
   ============================================================ */
@media (min-width: 1025px) {

    body.ud-dash-body .ud-layout {
        display: grid !important;
        grid-template-columns: 240px minmax(0, 1fr) !important;
        grid-template-rows: 100vh !important;
        width: 100vw !important;
        height: 100vh !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        transition: grid-template-columns 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    body.ud-dash-body .ud-layout.ud-collapsed {
        grid-template-columns: 72px minmax(0, 1fr) !important;
    }

    body.ud-dash-body .ud-sidebar {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        height: 100vh !important;
        overflow: hidden !important;
        overflow-y: auto !important;
    }

    body.ud-dash-body .ud-content {
        height: 100vh !important;
        overflow: hidden !important;
    }

    /* --- Toggle bouton --- */
    body.ud-dash-body .ud-sidebar-toggle {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        flex-shrink: 0 !important;
        border-radius: 50% !important;
        background: rgba(201, 162, 39, 0.12) !important;
        border: 1px solid rgba(201, 162, 39, 0.3) !important;
        color: #C9A227 !important;
        font-size: 11px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        cursor: pointer !important;
        padding: 0 !important;
        z-index: 5 !important;
        transition: all 0.2s ease !important;
    }
    body.ud-dash-body .ud-sidebar-toggle:hover {
        background: rgba(201, 162, 39, 0.25) !important;
        border-color: rgba(201, 162, 39, 0.5) !important;
        transform: scale(1.1) !important;
    }
    body.ud-dash-body .ud-toggle-icon {
        display: block !important;
        line-height: 1 !important;
        transition: transform 0.3s ease !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-toggle-icon {
        transform: rotate(180deg) !important;
    }

    /* --- État replié : 3 zones --- */
    body.ud-dash-body .ud-layout.ud-collapsed .ud-sidebar-head {
        flex-direction: column !important;
        padding: 18px 8px 14px !important;
        gap: 10px !important;
        min-height: auto !important;
        align-items: center !important;
        justify-content: center !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-brand {
        justify-content: center !important;
        flex: 0 0 auto !important;
        gap: 0 !important;
        width: 100% !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-brand-logo {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-brand-name {
        display: none !important;
    }

    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav {
        padding: 16px 8px !important;
        gap: 16px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-group {
        gap: 2px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-group-title {
        display: none !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-item {
        justify-content: center !important;
        padding: 12px 8px !important;
        gap: 0 !important;
        min-height: 44px !important;
        position: relative !important;
        overflow: visible !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-label {
        display: none !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-icon {
        font-size: 18px !important;
        width: auto !important;
        text-align: center !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-badge,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-badge-alert {
        position: absolute !important;
        top: 4px !important;
        right: 4px !important;
        min-width: 16px !important;
        height: 16px !important;
        padding: 0 4px !important;
        font-size: 9px !important;
        line-height: 1 !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    body.ud-dash-body .ud-layout.ud-collapsed .ud-sidebar-foot {
        padding: 12px 8px !important;
        gap: 8px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-user-card {
        justify-content: center !important;
        padding: 6px !important;
        background: transparent !important;
        border: none !important;
        gap: 0 !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-user-info {
        display: none !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-avatar {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-logout-btn {
        justify-content: center !important;
        padding: 10px 6px !important;
        gap: 0 !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-logout-btn > span:not(:first-child) {
        display: none !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-logout-btn > span:first-child {
        font-size: 16px !important;
    }

    /* Tooltips en mode replié */
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-item::after {
        content: attr(data-tooltip) !important;
        position: absolute !important;
        left: calc(100% + 12px) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: #0D0D0D !important;
        color: #fff !important;
        padding: 6px 12px !important;
        border-radius: 6px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        white-space: nowrap !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.2s !important;
        z-index: 9999 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-item:hover::after {
        opacity: 1 !important;
    }
}

/* ============================================================
   2. LOGO XL SIDEBAR (tous écrans)
   ============================================================ */
body.ud-dash-body .ud-sidebar-head {
    min-height: 110px !important;
    padding: 22px 20px !important;
    gap: 12px !important;
}
body.ud-dash-body .ud-brand-logo {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
}
body.ud-dash-body .ud-brand-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    filter: none !important;
}
body.ud-dash-body .ud-brand-name {
    font-size: 16px !important;
    letter-spacing: 0.14em !important;
    font-weight: 500 !important;
}

/* ============================================================
   3. AÉRATION DESKTOP — Topbar, body, KPI, CTA, sections
   ============================================================ */
@media (min-width: 1025px) {

    /* --- Topbar --- */
    body.ud-dash-body .ud-topbar {
        padding: 26px 40px !important;
        gap: 24px !important;
        min-height: auto !important;
    }
    body.ud-dash-body .ud-topbar-title h1 {
        font-size: 28px !important;
        font-weight: 700 !important;
        letter-spacing: -0.6px !important;
    }
    body.ud-dash-body .ud-topbar-title p {
        font-size: 13.5px !important;
        margin-top: 6px !important;
        color: #6B7280 !important;
    }
    body.ud-dash-body .ud-bell {
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        font-size: 18px !important;
        background: #F8F8F6 !important;
        border: 1px solid #EBEAE6 !important;
    }

    /* --- Body --- */
    body.ud-dash-body .ud-body {
        padding: 32px 40px 48px !important;
    }

    /* --- KPI cards --- */
    body.ud-dash-body .ud-home-kpis {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 16px !important;
        margin-bottom: 22px !important;
    }
    body.ud-dash-body .ud-home-kpi {
        padding: 22px 24px !important;
        gap: 16px !important;
        border-radius: 14px !important;
        border-left-width: 3px !important;
        min-height: 96px !important;
        display: flex !important;
        align-items: center !important;
    }
    body.ud-dash-body .ud-home-kpi-icon {
        width: 48px !important;
        height: 48px !important;
        border-radius: 11px !important;
        font-size: 22px !important;
    }
    body.ud-dash-body .ud-home-kpi-label {
        font-size: 12.5px !important;
        font-weight: 500 !important;
        color: #6B7280 !important;
        margin-bottom: 6px !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
    }
    body.ud-dash-body .ud-home-kpi-value {
        font-size: 26px !important;
        font-weight: 700 !important;
        letter-spacing: -0.8px !important;
        margin-bottom: 4px !important;
    }
    body.ud-dash-body .ud-home-kpi-sub {
        font-size: 12px !important;
        color: #8A8A8A !important;
    }

    /* --- Bandeau noir CTA --- */
    body.ud-dash-body .ud-home-hero-cta {
        padding: 24px 28px !important;
        gap: 24px !important;
        border-radius: 14px !important;
        margin-bottom: 22px !important;
        min-height: 108px !important;
    }
    body.ud-dash-body .ud-home-hero-cta-icon {
        width: 60px !important;
        height: 60px !important;
        border-radius: 13px !important;
        font-size: 26px !important;
    }
    body.ud-dash-body .ud-home-hero-cta-text h3 {
        font-size: 18px !important;
        margin-bottom: 5px !important;
    }
    body.ud-dash-body .ud-home-hero-cta-text p {
        font-size: 13px !important;
        max-width: 560px !important;
    }
    body.ud-dash-body .ud-home-hero-cta-btn {
        padding: 14px 26px !important;
        font-size: 14px !important;
        min-height: 48px !important;
    }

    /* --- Sections --- */
    body.ud-dash-body .ud-home-section {
        padding: 24px 28px !important;
        border-radius: 14px !important;
        margin-bottom: 22px !important;
    }
    body.ud-dash-body .ud-home-section-head {
        margin-bottom: 20px !important;
        gap: 16px !important;
    }
    body.ud-dash-body .ud-home-section-title {
        font-size: 17px !important;
        gap: 10px !important;
    }
    body.ud-dash-body .ud-home-section-title .icon {
        font-size: 18px !important;
    }
    body.ud-dash-body .ud-home-section-link {
        font-size: 13.5px !important;
    }

    /* --- Table --- */
    body.ud-dash-body .ud-mini-table {
        border-radius: 10px !important;
        overflow: hidden !important;
        border: 1px solid #F0F0EC !important;
    }
    body.ud-dash-body .ud-mini-table th {
        background: #FAFAF7 !important;
        padding: 14px 20px !important;
        font-size: 10.5px !important;
        font-weight: 700 !important;
        letter-spacing: 0.06em !important;
        color: #8A8A8A !important;
        text-transform: uppercase !important;
        border-bottom: 1px solid #F0F0EC !important;
    }
    body.ud-dash-body .ud-mini-table td {
        padding: 16px 20px !important;
        font-size: 13.5px !important;
        border-bottom: 1px solid #F5F5F1 !important;
    }
    body.ud-dash-body .ud-home-empty {
        padding: 56px 24px !important;
    }
    body.ud-dash-body .ud-home-empty-icon {
        font-size: 42px !important;
        opacity: 0.28 !important;
        margin-bottom: 16px !important;
    }
    body.ud-dash-body .ud-home-empty-text {
        font-size: 14.5px !important;
        color: #4B5563 !important;
        margin-bottom: 6px !important;
    }
    body.ud-dash-body .ud-home-empty-sub {
        font-size: 13px !important;
        color: #9CA3AF !important;
    }

    /* --- GRILLE 2 COLONNES (chart + activités) --- */
    body.ud-dash-body .ud-home-grid-2 {
        display: grid !important;
        grid-template-columns: 1.4fr 1fr !important;
        gap: 22px !important;
        margin-bottom: 22px !important;
        align-items: stretch !important;
    }
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
        margin-bottom: 0 !important;
        padding: 24px 28px !important;
        min-height: 340px !important;
    }
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-home-chart,
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-chart-wrap {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-height: 240px !important;
        position: relative !important;
    }
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section:nth-child(2) > :last-child {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
    }

    /* --- Activités empty --- */
    body.ud-dash-body .ud-home-activity-empty {
        padding: 50px 20px !important;
    }
    body.ud-dash-body .ud-home-activity-empty-icon {
        font-size: 40px !important;
        opacity: 0.28 !important;
        margin-bottom: 14px !important;
    }

    /* --- Support --- */
    body.ud-dash-body .ud-home-support {
        padding: 20px 26px !important;
        gap: 20px !important;
        border-radius: 14px !important;
        margin-bottom: 8px !important;
    }
    body.ud-dash-body .ud-home-support-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 22px !important;
    }
    body.ud-dash-body .ud-home-support-text h4 {
        font-size: 14.5px !important;
    }
    body.ud-dash-body .ud-home-support-text p {
        font-size: 12.5px !important;
    }
    body.ud-dash-body .ud-home-support-btn {
        padding: 11px 22px !important;
        font-size: 13.5px !important;
        min-height: 44px !important;
    }

    /* --- Footer --- */
    body.ud-dash-body .ud-footer {
        padding: 20px 40px !important;
        font-size: 12.5px !important;
    }
}

/* ============================================================
   4. TABLETTE — 769px à 1024px
   Sidebar en overlay (pas de collapse), padding réduit, KPI 2 cols
   ============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {

    /* --- Reset body/html --- */
    html body.ud-dash-body {
        overflow: hidden !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }

    /* --- Layout : block simple --- */
    body.ud-dash-body .ud-layout,
    body.ud-dash-body .ud-layout.ud-collapsed {
        display: block !important;
        grid-template-columns: none !important;
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* --- Sidebar : overlay fixe, cachée par défaut --- */
    body.ud-dash-body .ud-sidebar,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 300px !important;
        max-width: 85vw !important;
        height: 100dvh !important;
        min-width: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 9999 !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
    }
    body.ud-dash-body .ud-sidebar.open {
        transform: translateX(0) !important;
    }

    /* --- Force l'affichage complet en tablette --- */
    body.ud-dash-body .ud-layout.ud-collapsed .ud-brand-name,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-label,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-group-title,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-user-info,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-logout-btn > span:not(:first-child) {
        display: revert !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-sidebar-head {
        flex-direction: row !important;
        padding: 22px 20px !important;
        min-height: 110px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-brand {
        justify-content: flex-start !important;
        flex: 1 !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-brand-logo {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        max-width: 56px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav {
        padding: 20px 10px !important;
        gap: 18px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-item {
        justify-content: flex-start !important;
        padding: 10px 12px !important;
        gap: 12px !important;
        min-height: auto !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-icon {
        font-size: 16px !important;
        width: 20px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-badge {
        position: static !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-sidebar-foot {
        padding: 14px 10px 16px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-user-card {
        justify-content: flex-start !important;
        padding: 10px !important;
        gap: 10px !important;
        background: rgba(255, 255, 255, 0.03) !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-avatar {
        width: 38px !important;
        height: 38px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-logout-btn {
        justify-content: flex-start !important;
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    /* --- Boutons toggle / close --- */
    body.ud-dash-body .ud-sidebar-toggle {
        display: none !important;
    }
    body.ud-dash-body .ud-sidebar-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #fff;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        flex-shrink: 0;
    }

    /* --- Overlay --- */
    body.ud-dash-body .ud-overlay {
        display: block !important;
    }

    /* --- Contenu --- */
    body.ud-dash-body .ud-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100dvh !important;
        overflow: hidden !important;
    }

    /* --- Hamburger visible --- */
    body.ud-dash-body .ud-menu-toggle {
        display: flex !important;
    }

    /* --- Topbar --- */
    body.ud-dash-body .ud-topbar {
        padding: 20px 24px !important;
        gap: 16px !important;
        min-height: 80px !important;
        flex-shrink: 0 !important;
        background: #fff !important;
        border-bottom: 1px solid #eef2f6 !important;
    }
    body.ud-dash-body .ud-topbar-title h1 {
        font-size: 22px !important;
    }
    body.ud-dash-body .ud-topbar-title p {
        font-size: 12.5px !important;
        margin-top: 4px !important;
    }
    body.ud-dash-body .ud-topbar-brand {
        display: none !important;
    }

    /* --- Body scrollable --- */
    body.ud-dash-body .ud-body,
    body.ud-dash-body .ud-content .ud-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 24px 22px 40px !important;
        box-sizing: border-box !important;
    }

    /* --- KPI 2 colonnes --- */
    body.ud-dash-body .ud-home-kpis {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
        margin-bottom: 20px !important;
    }
    body.ud-dash-body .ud-home-kpi {
        padding: 18px 20px !important;
        gap: 14px !important;
        min-height: 86px !important;
    }
    body.ud-dash-body .ud-home-kpi-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
    }
    body.ud-dash-body .ud-home-kpi-value {
        font-size: 22px !important;
    }

    /* --- CTA empilé --- */
    body.ud-dash-body .ud-home-hero-cta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 18px !important;
        padding: 22px 24px !important;
        margin-bottom: 20px !important;
    }
    body.ud-dash-body .ud-home-hero-cta-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* --- Sections --- */
    body.ud-dash-body .ud-home-section {
        padding: 20px 22px !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
    }

    /* --- Grille 2 col → 1 col --- */
    body.ud-dash-body .ud-home-grid-2 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        margin-bottom: 20px !important;
    }
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section {
        min-height: auto !important;
        padding: 20px 22px !important;
    }
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-home-chart,
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-chart-wrap {
        min-height: 260px !important;
    }

    /* --- Table scrollable horizontalement --- */
    body.ud-dash-body .ud-mini-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    body.ud-dash-body .ud-mini-table table {
        min-width: 700px !important;
    }

    /* --- Support empilé --- */
    body.ud-dash-body .ud-home-support {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 14px !important;
        padding: 20px 22px !important;
    }
    body.ud-dash-body .ud-home-support-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* --- Footer --- */
    body.ud-dash-body .ud-footer {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
        padding: 18px 22px !important;
        font-size: 12px !important;
        flex-shrink: 0 !important;
    }
}

/* ============================================================
   5. MOBILE — ≤ 768px
   Tout en 1 colonne, sidebar plein écran, hamburger
   ============================================================ */
@media (max-width: 768px) {

    /* --- Reset --- */
    html body.ud-dash-body {
        overflow: hidden !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
    }

    body.ud-dash-body .ud-layout,
    body.ud-dash-body .ud-layout.ud-collapsed {
        display: block !important;
        width: 100% !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        overflow: hidden !important;
    }

    /* --- Sidebar plein écran --- */
    body.ud-dash-body .ud-sidebar,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: 320px !important;
        height: 100dvh !important;
        min-width: 0 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        z-index: 9999 !important;
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.3) !important;
        display: flex !important;
        flex-direction: column !important;
        overflow-y: auto !important;
    }
    body.ud-dash-body .ud-sidebar.open {
        transform: translateX(0) !important;
    }

    /* --- Force l'affichage complet mobile --- */
    body.ud-dash-body .ud-layout.ud-collapsed .ud-brand-name,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-label,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-group-title,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-user-info,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-logout-btn > span:not(:first-child) {
        display: revert !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-sidebar-head {
        flex-direction: row !important;
        padding: 20px 18px !important;
        min-height: 100px !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-brand {
        justify-content: flex-start !important;
        flex: 1 !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-brand-logo {
        width: 48px !important;
        height: 48px !important;
        min-width: 48px !important;
        max-width: 48px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav {
        padding: 18px 10px !important;
        gap: 16px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-item {
        justify-content: flex-start !important;
        padding: 11px 12px !important;
        gap: 12px !important;
        min-height: auto !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-icon {
        font-size: 16px !important;
        width: 20px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-nav-badge {
        position: static !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-sidebar-foot {
        padding: 14px 10px 18px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-user-card {
        justify-content: flex-start !important;
        padding: 10px !important;
        gap: 10px !important;
        background: rgba(255, 255, 255, 0.03) !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-avatar {
        width: 38px !important;
        height: 38px !important;
    }
    body.ud-dash-body .ud-layout.ud-collapsed .ud-logout-btn {
        justify-content: flex-start !important;
        padding: 10px 12px !important;
        gap: 10px !important;
    }

    /* --- Boutons --- */
    body.ud-dash-body .ud-sidebar-toggle {
        display: none !important;
    }
    body.ud-dash-body .ud-sidebar-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        color: #fff;
        border-radius: 8px;
        cursor: pointer;
        font-size: 16px;
        flex-shrink: 0;
    }
    body.ud-dash-body .ud-overlay {
        display: block !important;
    }

    /* --- Contenu --- */
    body.ud-dash-body .ud-content {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        height: 100dvh !important;
        overflow: hidden !important;
    }

    body.ud-dash-body .ud-menu-toggle {
        display: flex !important;
    }

    /* --- Topbar compact --- */
    body.ud-dash-body .ud-topbar {
        padding: 16px 18px !important;
        gap: 12px !important;
        min-height: 68px !important;
        flex-shrink: 0 !important;
    }
    body.ud-dash-body .ud-topbar-title h1 {
        font-size: 19px !important;
        letter-spacing: -0.4px !important;
    }
    body.ud-dash-body .ud-topbar-title p {
        font-size: 11.5px !important;
        margin-top: 3px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    body.ud-dash-body .ud-topbar-brand {
        display: none !important;
    }
    body.ud-dash-body .ud-menu-toggle {
        width: 40px !important;
        height: 40px !important;
    }
    body.ud-dash-body .ud-menu-toggle span {
        width: 18px !important;
    }
    body.ud-dash-body .ud-bell {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }

    /* --- Body scrollable --- */
    body.ud-dash-body .ud-body,
    body.ud-dash-body .ud-content .ud-body {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: auto !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 18px 16px 40px !important;
        box-sizing: border-box !important;
    }

    /* --- KPI 1 colonne --- */
    body.ud-dash-body .ud-home-kpis {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 18px !important;
    }
    body.ud-dash-body .ud-home-kpi {
        padding: 16px 18px !important;
        gap: 14px !important;
        min-height: auto !important;
        border-radius: 12px !important;
    }
    body.ud-dash-body .ud-home-kpi-icon {
        width: 42px !important;
        height: 42px !important;
        font-size: 20px !important;
        border-radius: 10px !important;
    }
    body.ud-dash-body .ud-home-kpi-label {
        font-size: 12px !important;
        margin-bottom: 4px !important;
    }
    body.ud-dash-body .ud-home-kpi-value {
        font-size: 22px !important;
    }
    body.ud-dash-body .ud-home-kpi-sub {
        font-size: 11.5px !important;
    }

    /* --- CTA --- */
    body.ud-dash-body .ud-home-hero-cta {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
        padding: 20px 18px !important;
        margin-bottom: 18px !important;
        border-radius: 12px !important;
    }
    body.ud-dash-body .ud-home-hero-cta-left {
        gap: 14px !important;
        width: 100% !important;
    }
    body.ud-dash-body .ud-home-hero-cta-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 22px !important;
        border-radius: 11px !important;
    }
    body.ud-dash-body .ud-home-hero-cta-text h3 {
        font-size: 15.5px !important;
        margin-bottom: 4px !important;
    }
    body.ud-dash-body .ud-home-hero-cta-text p {
        font-size: 12px !important;
        line-height: 1.45 !important;
    }
    body.ud-dash-body .ud-home-hero-cta-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
        font-size: 13.5px !important;
        min-height: 46px !important;
    }

    /* --- Sections --- */
    body.ud-dash-body .ud-home-section {
        padding: 18px 16px !important;
        margin-bottom: 18px !important;
        border-radius: 12px !important;
    }
    body.ud-dash-body .ud-home-section-head {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }
    body.ud-dash-body .ud-home-section-title {
        font-size: 15.5px !important;
        gap: 8px !important;
    }
    body.ud-dash-body .ud-home-section-title .icon {
        font-size: 16px !important;
    }
    body.ud-dash-body .ud-home-section-link {
        font-size: 12.5px !important;
    }

    /* --- Table scrollable --- */
    body.ud-dash-body .ud-mini-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 10px !important;
        margin: 0 -16px !important;    /* déborde du padding pour scroll edge-to-edge */
        padding: 0 16px !important;
    }
    body.ud-dash-body .ud-mini-table table {
        min-width: 640px !important;
    }
    body.ud-dash-body .ud-mini-table th {
        padding: 12px 14px !important;
        font-size: 10px !important;
    }
    body.ud-dash-body .ud-mini-table td {
        padding: 13px 14px !important;
        font-size: 13px !important;
    }

    /* --- Empty states --- */
    body.ud-dash-body .ud-home-empty {
        padding: 40px 16px !important;
    }
    body.ud-dash-body .ud-home-empty-icon {
        font-size: 36px !important;
        margin-bottom: 12px !important;
    }
    body.ud-dash-body .ud-home-empty-text {
        font-size: 13.5px !important;
    }
    body.ud-dash-body .ud-home-empty-sub {
        font-size: 12px !important;
    }

    /* --- Grille 2 cols → 1 col --- */
    body.ud-dash-body .ud-home-grid-2 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 18px !important;
    }
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section {
        min-height: auto !important;
        padding: 18px 16px !important;
    }
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-home-chart,
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-chart-wrap {
        min-height: 220px !important;
    }

    /* --- Activités empty --- */
    body.ud-dash-body .ud-home-activity-empty {
        padding: 36px 16px !important;
    }
    body.ud-dash-body .ud-home-activity-empty-icon {
        font-size: 32px !important;
    }
    body.ud-dash-body .ud-home-activity-empty-text {
        font-size: 13px !important;
    }
    body.ud-dash-body .ud-home-activity-empty-sub {
        font-size: 12px !important;
    }

    /* --- Support --- */
    body.ud-dash-body .ud-home-support {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 18px 16px !important;
        border-radius: 12px !important;
    }
    body.ud-dash-body .ud-home-support-left {
        gap: 12px !important;
    }
    body.ud-dash-body .ud-home-support-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
        border-radius: 11px !important;
    }
    body.ud-dash-body .ud-home-support-text h4 {
        font-size: 13.5px !important;
    }
    body.ud-dash-body .ud-home-support-text p {
        font-size: 12px !important;
    }
    body.ud-dash-body .ud-home-support-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 18px !important;
        font-size: 13px !important;
        min-height: 44px !important;
    }

    /* --- Footer --- */
    body.ud-dash-body .ud-footer {
        flex-direction: column !important;
        text-align: center !important;
        gap: 8px !important;
        padding: 16px !important;
        font-size: 11.5px !important;
        flex-shrink: 0 !important;
    }
    body.ud-dash-body .ud-footer-links {
        gap: 8px !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* --- Notifications panel --- */
    body.ud-dash-body .ud-notif-panel {
        width: calc(100vw - 24px) !important;
        max-width: 340px !important;
        right: -8px !important;
    }

    /* --- Modals --- */
    body.ud-dash-body .ud-modal-content {
        max-width: calc(100vw - 20px) !important;
        max-height: calc(100dvh - 40px) !important;
        margin: 20px auto !important;
        border-radius: 14px !important;
    }
}

/* ============================================================
   6. TRÈS PETIT MOBILE — ≤ 480px
   ============================================================ */
@media (max-width: 480px) {

    body.ud-dash-body .ud-body {
        padding: 16px 14px 36px !important;
    }
    body.ud-dash-body .ud-topbar {
        padding: 14px 16px !important;
        min-height: 64px !important;
    }
    body.ud-dash-body .ud-topbar-title h1 {
        font-size: 17px !important;
    }
    body.ud-dash-body .ud-topbar-title p {
        font-size: 11px !important;
    }
    body.ud-dash-body .ud-menu-toggle {
        width: 36px !important;
        height: 36px !important;
    }
    body.ud-dash-body .ud-bell {
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
    }

    body.ud-dash-body .ud-sidebar,
    body.ud-dash-body .ud-layout.ud-collapsed .ud-sidebar {
        max-width: 300px !important;
    }

    body.ud-dash-body .ud-home-kpi {
        padding: 14px 16px !important;
    }
    body.ud-dash-body .ud-home-kpi-value {
        font-size: 20px !important;
    }
    body.ud-dash-body .ud-home-kpi-icon {
        width: 38px !important;
        height: 38px !important;
        font-size: 18px !important;
    }

    body.ud-dash-body .ud-home-hero-cta {
        padding: 18px 16px !important;
    }
    body.ud-dash-body .ud-home-hero-cta-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 20px !important;
    }
    body.ud-dash-body .ud-home-hero-cta-text h3 {
        font-size: 14.5px !important;
    }

    body.ud-dash-body .ud-home-section {
        padding: 16px 14px !important;
    }
    body.ud-dash-body .ud-home-section-title {
        font-size: 14.5px !important;
    }

    body.ud-dash-body .ud-mini-table {
        margin: 0 -14px !important;
        padding: 0 14px !important;
    }

    body.ud-dash-body .ud-footer {
        font-size: 11px !important;
        padding: 14px !important;
    }
}

/* ============================================================
   🎯 FIX — Chart height + Bell mobile
   À placer EN DERNIER dans style.css
   ============================================================ */

/* ============================================================
   1. FIX CHART — hauteur fixe, plus de flex-grow
   ============================================================ */

/* La section ne doit plus avoir height: 100% (source du bug) */
body.ud-dash-body .ud-home-grid-2 > .ud-home-section {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    margin-bottom: 0 !important;
}

/* Le conteneur du chart : hauteur fixe, pas de flex-grow */
body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-home-chart,
body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-chart-wrap {
    flex: 0 0 auto !important;
    width: 100% !important;
    height: 320px !important;
    max-height: 320px !important;
    min-height: 0 !important;
    position: relative !important;
}

/* Le canvas Chart.js : pleine taille du parent */
body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-home-chart canvas,
body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
}

/* Desktop : 2 colonnes ont la même hauteur, alignées en haut */
@media (min-width: 1025px) {
    body.ud-dash-body .ud-home-grid-2 {
        align-items: start !important;
    }
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section {
        height: auto !important;
    }
}

/* Tablette : chart un peu plus petit */
@media (min-width: 769px) and (max-width: 1024px) {
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-home-chart,
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-chart-wrap {
        height: 300px !important;
        max-height: 300px !important;
    }
}

/* Mobile : encore plus compact */
@media (max-width: 768px) {
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-home-chart,
    body.ud-dash-body .ud-home-grid-2 > .ud-home-section .ud-chart-wrap {
        height: 260px !important;
        max-height: 260px !important;
    }
}

/* ============================================================
   2. BELL ICON — plus grand sur mobile
   ============================================================ */

@media (max-width: 768px) {
    body.ud-dash-body .ud-bell {
        width: 46px !important;
        height: 46px !important;
        font-size: 20px !important;
        border-radius: 11px !important;
    }
    body.ud-dash-body .ud-bell-badge {
        min-width: 20px !important;
        height: 20px !important;
        font-size: 11px !important;
        top: -5px !important;
        right: -5px !important;
    }
}

@media (max-width: 480px) {
    body.ud-dash-body .ud-bell {
        width: 44px !important;
        height: 44px !important;
        font-size: 19px !important;
    }
}

/* ============================================================
   3. CTA BAND — défensif : reste sombre sur tous breakpoints
   ============================================================ */
body.ud-dash-body .ud-home-hero-cta {
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%) !important;
    color: #fff !important;
}
body.ud-dash-body .ud-home-hero-cta h3,
body.ud-dash-body .ud-home-hero-cta p {
    color: #fff !important;
}
body.ud-dash-body .ud-home-hero-cta p {
    color: rgba(255, 255, 255, 0.68) !important;
}

/* ============================================================
   🎯 FORMULAIRE DÉPÔT — Rendu EXACT (aligné capture)
   ============================================================ */

/* ---------- Champ téléphone : 46px, drapeau + indicatif + flèche ---------- */
.unidet-depot-field .unidet-phone-wrapper {
    display: block !important;
    width: 100% !important;
}

.unidet-depot-field .unidet-phone-wrapper .iti {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 43px !important;
    min-height: 43px !important;
    background: #fff !important;
    border: 1.5px solid #e5e9f0 !important;
    border-radius: 9px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.unidet-depot-field .unidet-phone-wrapper .iti:focus-within {
    border-color: #d4a373 !important;
    box-shadow: 0 0 0 3px rgba(212,163,115,.12) !important;
}


.unidet-depot-field .unidet-phone-wrapper .iti__country-container,
.unidet-depot-field .unidet-phone-wrapper .iti__flag-container {
    position: static !important;
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 88px !important;
	max-width: 100px !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: none !important;
    border-right: 1.5px solid #e5e9f0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.unidet-depot-field .unidet-phone-wrapper .iti__selected-country,
.unidet-depot-field .unidet-phone-wrapper .iti__selected-flag {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 8px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.unidet-depot-field .unidet-phone-wrapper .iti__selected-country:hover,
.unidet-depot-field .unidet-phone-wrapper .iti__selected-flag:hover {
    background: rgba(0,0,0,.03) !important;
}

.unidet-depot-field .unidet-phone-wrapper .iti__selected-country-primary {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

.unidet-depot-field .unidet-phone-wrapper .iti__flag {
    flex-shrink: 0 !important;
    display: block !important;
    width: 20px !important;
    height: 15px !important;
    border-radius: 2px !important;
}

.unidet-depot-field .unidet-phone-wrapper .iti__selected-dial-code {
    flex-shrink: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.unidet-depot-field .unidet-phone-wrapper .iti__arrow {
    flex-shrink: 0 !important;
    margin-left: 2px !important;
    width: 0 !important;
    height: 0 !important;
    display: inline-block !important;
    border-left: 3px solid transparent !important;
    border-right: 3px solid transparent !important;
    border-top: 5px solid #94a3b8 !important;
}

.unidet-depot-field .unidet-phone-wrapper input[type="tel"],
.unidet-depot-field .unidet-phone-wrapper input.iti__tel-input {
    grid-column: 2 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 10px !important;
    margin: 0 !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 13.5px !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    color: #0a0e17 !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    text-align: left !important;
}
.unidet-depot-field .unidet-phone-wrapper input[type="tel"]::placeholder {
    color: #b8c0cc !important;
    opacity: 1 !important;
}

/* États validation */
.unidet-depot-field .unidet-phone-wrapper .iti.phone-invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231,76,60,.12) !important;
}
.unidet-depot-field .unidet-phone-wrapper .iti.phone-valid {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22,163,74,.10) !important;
}

/* Message sous le champ */
.unidet-depot-field .unidet-phone-msg {
    display: block !important;
    min-height: 14px !important;
    margin-top: 4px !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    color: transparent !important;
    pointer-events: none !important;
}
.unidet-depot-field .unidet-phone-msg.is-error { color: #e74c3c !important; }
.unidet-depot-field .unidet-phone-msg.is-valid { color: #16a34a !important; }

/* ---------- Select Pays : hauteur 46px, flèche à droite ---------- */
.unidet-depot-field select,
.unidet-section1-grid .unidet-depot-field select,
.unidet-section1-grid select[name="pays"] {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 38px 0 14px !important;
    border: 1.5px solid #e5e9f0 !important;
    border-radius: 9px !important;
    font-size: 13.5px !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    color: #0a0e17 !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 14px 14px !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    line-height: 46px !important;
    outline: none !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.unidet-depot-field select:focus,
.unidet-section1-grid select[name="pays"]:focus {
    border-color: #d4a373 !important;
    box-shadow: 0 0 0 3px rgba(212,163,115,.12) !important;
}

/* ---------- Alignement parfait : Téléphone & Pays même hauteur ---------- */
.unidet-section1-grid {
    align-items: start !important;
}
.unidet-section1-grid .unidet-depot-field {
    display: flex !important;
    flex-direction: column !important;
}
.unidet-section1-grid .unidet-depot-field > label,
.unidet-section1-grid .unidet-depot-field > .hint {
    line-height: 1.4 !important;
}
.unidet-section1-grid .unidet-depot-field > .hint {
    margin-bottom: 6px !important;
    min-height: 16px !important;
    display: block !important;
}

/* ============================================================
   🎯 DROPDOWN PAYS CUSTOM — même style que intl-tel-input
   ============================================================ */

/* ---------- Wrapper ---------- */
.unidet-country-wrapper {
    position: relative;
    width: 100%;
    display: block;
}

/* Select natif caché (reste dans le DOM pour le submit) */
.unidet-country-native-select {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ---------- Trigger (bouton principal) ---------- */
.unidet-country-trigger {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 14px !important;
    background: #fff !important;
    border: 1.5px solid #e5e9f0 !important;
    border-radius: 9px !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #0a0e17 !important;
    text-align: left !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.unidet-country-trigger:hover {
    border-color: #d4c8b0 !important;
}
.unidet-country-trigger:focus,
.unidet-country-wrapper.is-open .unidet-country-trigger {
    border-color: #d4a373 !important;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12) !important;
    outline: none !important;
}

.unidet-country-trigger-flag {
    flex-shrink: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.unidet-country-trigger-label {
    flex: 1 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #0a0e17 !important;
}
.unidet-country-trigger-label.is-placeholder {
    color: #94a3b8 !important;
}

.unidet-country-trigger-arrow {
    flex-shrink: 0 !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 3px solid transparent !important;
    border-right: 3px solid transparent !important;
    border-top: 5px solid #94a3b8 !important;
    margin-left: auto !important;
    transition: transform 0.2s !important;
}
.unidet-country-wrapper.is-open .unidet-country-trigger-arrow {
    transform: rotate(180deg) !important;
}

/* ---------- Dropdown panel ---------- */
.unidet-country-dropdown {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 14px !important;
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 20px 40px -8px rgba(15, 23, 42, 0.14) !important;
    padding: 8px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    animation: unidetCountryOpen 0.15s ease !important;
}
@keyframes unidetCountryOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Barre de recherche ---------- */
.unidet-country-search-wrap {
    padding: 0 0 6px 0 !important;
}

.unidet-country-search {
    display: block !important;
    width: 100% !important;
    height: 38px !important;
    padding: 0 12px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fafbfc !important;
    color: #0f172a !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    line-height: 38px !important;
    box-sizing: border-box !important;
    outline: none !important;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s !important;
}
.unidet-country-search:focus {
    border-color: #c9a227 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12) !important;
}
.unidet-country-search::placeholder {
    color: #94a3b8 !important;
}

/* ---------- Liste ---------- */
.unidet-country-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.unidet-country-list::-webkit-scrollbar { width: 6px; }
.unidet-country-list::-webkit-scrollbar-track { background: transparent; }
.unidet-country-list::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 3px;
}
.unidet-country-list::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

/* ---------- Item ---------- */
.unidet-country-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-height: 38px !important;
    padding: 8px 10px !important;
    margin: 1px 0 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    transition: background-color 0.12s ease !important;
    user-select: none !important;
}
.unidet-country-item:hover,
.unidet-country-item.is-highlight {
    background: #f1f5f9 !important;
}
.unidet-country-item.is-selected {
    background: #fef9e7 !important;
    font-weight: 600 !important;
}

.unidet-country-item-flag {
    flex-shrink: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    width: 22px !important;
    text-align: center !important;
}

.unidet-country-item-name {
    flex: 1 !important;
    min-width: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.unidet-country-item-check {
    flex-shrink: 0 !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #c9a227 !important;
    opacity: 0 !important;
    transition: opacity 0.15s !important;
}
.unidet-country-item.is-selected .unidet-country-item-check {
    opacity: 1 !important;
}

/* ---------- État vide ---------- */
.unidet-country-empty {
    padding: 24px 12px !important;
    text-align: center !important;
    font-size: 13px !important;
    color: #94a3b8 !important;
    font-style: italic !important;
}

/* ============================================================
   MOBILE — Dropdown pays plein écran comme intl-tel-input
   ============================================================ */
@media (max-width: 900px) {
    .unidet-country-dropdown {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        bottom: auto !important;
        transform: translate(-50%, -50%) !important;
        width: calc(100vw - 24px) !important;
        max-width: 460px !important;
        max-height: 80vh !important;
        padding: 8px !important;
        border-radius: 16px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .unidet-country-list {
        max-height: calc(80vh - 70px) !important;
        flex: 1 !important;
    }
    .unidet-country-search {
        height: 46px !important;
        font-size: 15px !important;
        line-height: 46px !important;
    }
    .unidet-country-item {
        min-height: 48px !important;
        padding: 12px 14px !important;
        font-size: 14.5px !important;
    }
    .unidet-country-item-flag {
        font-size: 20px !important;
        width: 26px !important;
    }

    /* Overlay sombre mobile */
    body.ud-dash-body.ud-country-open::after,
    body.unidet-auth-body.ud-country-open::after {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(10, 14, 23, 0.5);
        z-index: 999;
        pointer-events: none;
    }
    .unidet-country-dropdown { z-index: 1000 !important; }
}



/* ============================================================
   🎯 VALIDATION TEMPS RÉEL — États visuels
   ============================================================ */

/* Shake sur erreur */
@keyframes unidetShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}
.unidet-shake {
    animation: unidetShake 0.4s ease;
}

/* Highlight temporaire au scroll */
@keyframes unidetHighlight {
    0%, 100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
    50%      { box-shadow: 0 0 0 6px rgba(231, 76, 60, 0.25); }
}
.unidet-error-highlight {
    animation: unidetHighlight 1s ease 2;
    border-radius: 9px;
}

/* Dropzone succès */
.unidet-depot-dropzone.unidet-dropzone-success {
    border-color: #16a34a !important;
    background: #f0fdf4 !important;
}

/* Validation box en erreur */
.unidet-validation-box.unidet-validation-box-error {
    border-color: #e74c3c !important;
    background: #fef2f2 !important;
    animation: unidetShake 0.4s ease;
}

/* Spinner bouton */
.unidet-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: unidetSpin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes unidetSpin {
    to { transform: rotate(360deg); }
}

/* Message d'erreur avec ⚠ */
.unidet-error-msg {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: #e74c3c;
}
.unidet-error-msg:not(:empty) {
    display: block;
}


/* ============================================================
   🎯 FLASH MESSAGES DANS LE DASHBOARD
   ============================================================ */
.ud-body .unidet-dash-flash {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    margin-bottom: 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
    animation: unidetShake 0.4s ease;
    position: relative;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
.ud-body .unidet-dash-flash-icon {
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
    margin-top: 1px;
}
.ud-body .unidet-dash-flash-text { flex: 1; }
.ud-body .unidet-dash-flash-text strong { font-weight: 800; }

.ud-body .unidet-dash-flash-close {
    background: transparent;
    border: none;
    font-size: 14px;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.ud-body .unidet-dash-flash-close:hover { opacity: 1; background: rgba(0,0,0,0.06); }

.ud-body .unidet-dash-flash-error,
.ud-body .unidet-dash-flash-danger {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-left: 5px solid #dc2626;
    color: #991b1b;
}
.ud-body .unidet-dash-flash-warning {
    background: #fffbeb;
    border: 1.5px solid #fde68a;
    border-left: 5px solid #f59e0b;
    color: #78350f;
}
.ud-body .unidet-dash-flash-success {
    background: #ecfdf5;
    border: 1.5px solid #d1fae5;
    border-left: 5px solid #16a34a;
    color: #065f46;
}


/* ══════════════════════════════════════════════════════════
   🎯 UNIDET ADMIN — CSS GLOBAL
   ══════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────
   1. KPI STATS (rangée du haut — 8 cards)
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-admin-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
}
.ud-admin-body .ud-admin-stat {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    min-height: 58px !important;
    border-radius: 9px !important;
    border-left-width: 3px !important;
}
.ud-admin-body .ud-admin-stat-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    font-size: 16px !important;
    border-radius: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
.ud-admin-body .ud-admin-stat-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    min-width: 0 !important;
}
.ud-admin-body .ud-admin-stat-label {
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}
.ud-admin-body .ud-admin-stat-value {
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
}
.ud-admin-body .ud-admin-stat-money {
    font-size: 10.5px !important;
    font-weight: 500 !important;
    color: #9ca3af !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

/* ────────────────────────────────────────────────
   2. VUE FINANCIÈRE
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-finance {
    padding: 14px 16px !important;
    margin-bottom: 14px !important;
    border-radius: 10px !important;
}
.ud-admin-body .ud-finance-head {
    margin-bottom: 10px !important;
}
.ud-admin-body .ud-finance-title {
    font-size: 14.5px !important;
    font-weight: 700 !important;
}
.ud-admin-body .ud-finance-grid {
    gap: 10px !important;
    margin-bottom: 12px !important;
}
.ud-admin-body .ud-finance-item {
    padding: 10px 14px !important;
    min-height: 66px !important;
    border-radius: 10px !important;
}
.ud-admin-body .ud-finance-label {
    font-size: 11.5px !important;
    font-weight: 600 !important;
    margin-bottom: 2px !important;
}
.ud-admin-body .ud-finance-value {
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 2px 0 !important;
    line-height: 1.15 !important;
}
.ud-admin-body .ud-finance-sub {
    font-size: 11px !important;
    opacity: 0.7 !important;
}
.ud-admin-body .ud-finance-bar {
    height: 6px !important;
    border-radius: 3px !important;
}

/* ────────────────────────────────────────────────
   3. BLOCS GÉNÉRIQUES (ud-block)
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-block {
    padding: 16px 18px !important;
    margin-bottom: 14px !important;
    border-radius: 10px !important;
}
.ud-admin-body .ud-block-title {
    margin: 0 0 12px 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #0a0e17 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.ud-admin-body .ud-block-sub {
    font-size: 12.5px !important;
    color: #6b7280 !important;
    margin: 0 0 10px 0 !important;
}
.ud-admin-body .ud-block-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}

/* ────────────────────────────────────────────────
   4. ACTIONS RAPIDES
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-actions {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 10px !important;
}
.ud-admin-body .ud-action {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px 14px !important;
    min-height: 58px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    cursor: pointer !important;
    text-align: left !important;
    font-family: inherit !important;
    transition: all 0.18s ease !important;
}
.ud-admin-body .ud-action:hover,
.ud-admin-body .ud-action:focus,
.ud-admin-body .ud-action:active {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: inherit !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(10, 14, 23, 0.06) !important;
    outline: none !important;
}
.ud-admin-body .ud-action-primary {
    background: #0a0e17 !important;
    border-color: #0a0e17 !important;
    color: #fff !important;
}
.ud-admin-body .ud-action-primary:hover,
.ud-admin-body .ud-action-primary:focus,
.ud-admin-body .ud-action-primary:active {
    background: #1a1f2e !important;
    border-color: #1a1f2e !important;
    color: #fff !important;
}
.ud-admin-body .ud-action-primary .ud-action-text strong,
.ud-admin-body .ud-action-primary .ud-action-text small {
    color: #fff !important;
}
.ud-admin-body .ud-action-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
    border-radius: 8px !important;
}
.ud-admin-body .ud-action-text {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
}
.ud-admin-body .ud-action-text strong {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #0a0e17 !important;
}
.ud-admin-body .ud-action-text small {
    font-size: 11.5px !important;
    color: #94a3b8 !important;
}

/* ────────────────────────────────────────────────
   5. FILTRES (recherche, selects, dates)
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-filters {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    margin-bottom: 12px !important;
    background: #f9fafb !important;
    border: 1px solid #f0f2f5 !important;
    border-radius: 10px !important;
}
.ud-admin-body .ud-filter {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    min-width: 0 !important;
}
.ud-admin-body .ud-filter label {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}
.ud-admin-body .ud-filter input,
.ud-admin-body .ud-filter select {
    width: 100% !important;
    padding: 7px 10px !important;
    font-size: 12.5px !important;
    height: 34px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #0a0e17 !important;
    font-family: inherit !important;
    transition: border-color 0.15s ease !important;
}
.ud-admin-body .ud-filter input:focus,
.ud-admin-body .ud-filter select:focus {
    border-color: #0a0e17 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(10, 14, 23, 0.06) !important;
}
.ud-admin-body .ud-btn-reset {
    padding: 7px 12px !important;
    font-size: 12px !important;
    height: 34px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.ud-admin-body .ud-btn-reset:hover {
    background: #0a0e17 !important;
    color: #fff !important;
    border-color: #0a0e17 !important;
}

/* ────────────────────────────────────────────────
   6. RÉSULTATS ("X dossiers")
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-results {
    font-size: 12px !important;
    color: #6b7280 !important;
    padding: 4px 2px 10px !important;
}
.ud-admin-body .ud-results strong {
    color: #0a0e17 !important;
    font-size: 13px !important;
}

/* ────────────────────────────────────────────────
   7. BOUTONS PRINCIPAUX & SECONDAIRES
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-btn-primary,
.ud-admin-body .ud-btn-secondary,
.ud-admin-body .ud-btn-edit,
.ud-admin-body .ud-btn-danger {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    font-family: inherit !important;
    border: none !important;
    white-space: nowrap !important;
}
.ud-admin-body .ud-btn-primary {
    background: #0a0e17 !important;
    color: #fff !important;
}
.ud-admin-body .ud-btn-primary:hover {
    background: #1a1f2e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(10, 14, 23, 0.15) !important;
}
.ud-admin-body .ud-btn-secondary {
    background: #f3f4f6 !important;
    color: #0a0e17 !important;
    border: 1px solid #e5e7eb !important;
}
.ud-admin-body .ud-btn-secondary:hover {
    background: #e5e7eb !important;
}
.ud-admin-body .ud-btn-edit {
    background: #f0f8ff !important;
    color: #005177 !important;
    border: 1px solid #d4e8f5 !important;
    padding: 6px 11px !important;
    font-size: 11.5px !important;
}
.ud-admin-body .ud-btn-edit:hover {
    background: #e0f0fb !important;
}
.ud-admin-body .ud-btn-danger {
    background: #fdecea !important;
    color: #b32d2e !important;
    border: 1px solid #fecaca !important;
}
.ud-admin-body .ud-btn-danger:hover {
    background: #fccac4 !important;
}
.ud-admin-body .ud-section-actions {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}

/* ────────────────────────────────────────────────
   8. TABLEAUX (dossiers, clients, FAQ)
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-table-wrap {
    overflow-x: auto !important;
    border-radius: 10px !important;
    border: 1px solid #f0f2f5 !important;
}
.ud-admin-body .ud-table {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 12.5px !important;
}
.ud-admin-body .ud-table thead {
    background: #f9fafb !important;
}
.ud-admin-body .ud-table th {
    padding: 10px 12px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    text-align: left !important;
    border-bottom: 1px solid #e5e7eb !important;
    white-space: nowrap !important;
}
.ud-admin-body .ud-table td {
    padding: 10px 12px !important;
    color: #374151 !important;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle !important;
}
.ud-admin-body .ud-table tbody tr:last-child td {
    border-bottom: none !important;
}
.ud-admin-body .ud-table tbody tr {
    transition: background 0.12s ease !important;
}
.ud-admin-body .ud-table tbody tr:hover {
    background: #fafbfc !important;
}
.ud-admin-body .ud-table strong {
    color: #0a0e17 !important;
    font-weight: 600 !important;
}
.ud-admin-body .ud-table .ud-ref {
    font-family: 'Courier New', monospace !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    background: #f3f4f6 !important;
    padding: 3px 7px !important;
    border-radius: 5px !important;
}
.ud-admin-body .ud-table .ud-montant {
    font-weight: 700 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
}
.ud-admin-body .ud-table .ud-muted {
    color: #9ca3af !important;
    font-size: 11px !important;
}

/* ────────────────────────────────────────────────
   9. BADGES (statuts)
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 3px 9px !important;
    border-radius: 20px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    line-height: 1.4 !important;
}
.ud-admin-body .ud-badge-actif,
.ud-admin-body .ud-badge-actif {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}
.ud-admin-body .ud-badge-en_cours {
    background: #fff3e0 !important;
    color: #e65100 !important;
}
.ud-admin-body .ud-badge-en_attente {
    background: #fff8e1 !important;
    color: #7f5539 !important;
}
.ud-admin-body .ud-badge-paye {
    background: #e0f2f1 !important;
    color: #00695c !important;
}
.ud-admin-body .ud-badge-impaye {
    background: #fdecea !important;
    color: #b71c1c !important;
}
.ud-admin-body .ud-badge-refuse {
    background: #f5f5f5 !important;
    color: #616161 !important;
}
.ud-admin-body .ud-badge-role {
    background: #f0f8ff !important;
    color: #005177 !important;
}

/* Badges de permission */
.ud-admin-body .ud-perm-badge {
    display: inline-block !important;
    font-size: 10px !important;
    padding: 2px 7px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    margin-top: 3px !important;
}
.ud-admin-body .ud-perm-badge.lecture {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
}
.ud-admin-body .ud-perm-badge.edition {
    background: #fff3e0 !important;
    color: #e65100 !important;
}
.ud-admin-body .ud-perm-badge.complet {
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
}

/* ────────────────────────────────────────────────
   10. ÉTAT VIDE (ud-empty)
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-empty {
    text-align: center !important;
    padding: 40px 20px !important;
}
.ud-admin-body .ud-empty-icon {
    font-size: 48px !important;
    margin-bottom: 12px !important;
    opacity: 0.6 !important;
}
.ud-admin-body .ud-empty h3 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    margin: 0 0 6px !important;
}
.ud-admin-body .ud-empty p {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 0 0 16px !important;
}

/* ────────────────────────────────────────────────
   11. CARTES ÉQUIPE
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-team-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)) !important;
    gap: 12px !important;
}
.ud-admin-body .ud-team-card {
    padding: 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    transition: all 0.15s ease !important;
}
.ud-admin-body .ud-team-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(10, 14, 23, 0.05) !important;
}
.ud-admin-body .ud-team-card-head {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    margin-bottom: 12px !important;
}
.ud-admin-body .ud-team-avatar {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0a0e17, #1a1f2e) !important;
    color: #d4a373 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.ud-admin-body .ud-team-name {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    line-height: 1.2 !important;
}
.ud-admin-body .ud-team-email {
    font-size: 11.5px !important;
    color: #6b7280 !important;
    line-height: 1.3 !important;
    margin-top: 2px !important;
}
.ud-admin-body .ud-team-role {
    display: inline-block !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 8px !important;
    border-radius: 10px !important;
    margin-top: 4px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
}
.ud-admin-body .ud-team-role.admin {
    background: #0a0e17 !important;
    color: #d4a373 !important;
}
.ud-admin-body .ud-team-role.gest {
    background: #f0f8ff !important;
    color: #005177 !important;
}
.ud-admin-body .ud-team-stats {
    display: flex !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    background: #f9fafb !important;
    border-radius: 8px !important;
    margin-bottom: 12px !important;
}
.ud-admin-body .ud-team-stat {
    flex: 1 !important;
    text-align: center !important;
}
.ud-admin-body .ud-team-stat-value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    line-height: 1.1 !important;
}
.ud-admin-body .ud-team-stat-label {
    font-size: 10.5px !important;
    color: #6b7280 !important;
    margin-top: 2px !important;
}
.ud-admin-body .ud-team-actions {
    display: flex !important;
    gap: 6px !important;
}
.ud-admin-body .ud-team-actions .ud-btn-secondary {
    flex: 1 !important;
    font-size: 11.5px !important;
    padding: 7px 10px !important;
}

/* ────────────────────────────────────────────────
   12. LISTE NOTIFICATIONS (page complète)
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-notif-list-full {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    border: 1px solid #f0f2f5 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
}
.ud-admin-body .ud-notif-full-item {
    display: flex !important;
    gap: 12px !important;
    padding: 12px 16px !important;
    align-items: flex-start !important;
    border-bottom: 1px solid #f3f4f6 !important;
    transition: background 0.12s ease !important;
    position: relative !important;
}
.ud-admin-body .ud-notif-full-item:last-child {
    border-bottom: none !important;
}
.ud-admin-body .ud-notif-full-item:hover {
    background: #fafbfc !important;
}
.ud-admin-body .ud-notif-full-item.unread {
    background: #f0f8ff !important;
}
.ud-admin-body .ud-notif-full-item.unread:hover {
    background: #e5f2fb !important;
}
.ud-admin-body .ud-notif-full-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    flex-shrink: 0 !important;
}
.ud-admin-body .ud-notif-full-content {
    flex: 1 !important;
    min-width: 0 !important;
}
.ud-admin-body .ud-notif-full-msg {
    font-size: 13px !important;
    color: #0a0e17 !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}
.ud-admin-body .ud-notif-full-item.unread .ud-notif-full-msg {
    font-weight: 600 !important;
}
.ud-admin-body .ud-notif-full-date {
    font-size: 11px !important;
    color: #9ca3af !important;
    margin-top: 3px !important;
}
.ud-admin-body .ud-notif-full-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    background: #0073aa !important;
    flex-shrink: 0 !important;
    margin-top: 6px !important;
}

/* ────────────────────────────────────────────────
   13. PAGINATION
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-pagination {
    display: flex !important;
    gap: 4px !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 16px 0 !important;
    flex-wrap: wrap !important;
}
.ud-admin-body .ud-pag-btn {
    min-width: 34px !important;
    height: 34px !important;
    padding: 0 10px !important;
    border: 1px solid #e5e7eb !important;
    background: #fff !important;
    color: #0a0e17 !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: 7px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.ud-admin-body .ud-pag-btn:hover:not(:disabled) {
    background: #0a0e17 !important;
    color: #fff !important;
    border-color: #0a0e17 !important;
}
.ud-admin-body .ud-pag-btn.active {
    background: #0a0e17 !important;
    color: #fff !important;
    border-color: #0a0e17 !important;
}
.ud-admin-body .ud-pag-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}
.ud-admin-body .ud-pag-dots {
    color: #9ca3af !important;
    font-size: 12px !important;
    padding: 0 4px !important;
}

/* ────────────────────────────────────────────────
   14. MODALES — Conteneur
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-modal-content {
    max-height: 92vh !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}
.ud-admin-body .unidet-admin-modal-body {
    padding: 20px 24px !important;
    overflow-y: auto !important;
    max-height: calc(92vh - 60px) !important;
}
.ud-admin-body .ud-modal-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 8px !important;
    background: #f3f4f6 !important;
    color: #0a0e17 !important;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 10 !important;
}
.ud-admin-body .ud-modal-close:hover {
    background: #0a0e17 !important;
    color: #fff !important;
}

/* ────────────────────────────────────────────────
   15. MODALES — Hero dossier
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-hero-dossier {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 14px 18px !important;
    margin-bottom: 14px !important;
    background: linear-gradient(135deg, #0a0e17, #1a1f2e) !important;
    border-radius: 10px !important;
    color: #fff !important;
}
.ud-admin-body .unidet-hero-icon {
    width: 40px !important;
    height: 40px !important;
    background: rgba(212, 163, 115, 0.15) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
    flex-shrink: 0 !important;
}
.ud-admin-body .unidet-hero-main {
    flex: 1 !important;
    min-width: 0 !important;
}
.ud-admin-body .unidet-hero-ref {
    font-family: 'Courier New', monospace !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #d4a373 !important;
    letter-spacing: 0.5px !important;
}
.ud-admin-body .unidet-hero-meta {
    font-size: 11.5px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-top: 4px !important;
}
.ud-admin-body .unidet-hero-actions {
    flex-shrink: 0 !important;
}
.ud-admin-body .unidet-status-select {
    padding: 8px 12px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}
.ud-admin-body .unidet-status-select option {
    background: #1a1f2e !important;
    color: #fff !important;
}

/* ────────────────────────────────────────────────
   16. MODALES — KPI row
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-kpi-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
}
.ud-admin-body .unidet-kpi-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    background: #f9fafb !important;
    border: 1px solid #f0f2f5 !important;
    border-radius: 10px !important;
}
.ud-admin-body .unidet-kpi-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    background: #fff !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
}
.ud-admin-body .unidet-kpi-label {
    font-size: 10.5px !important;
    color: #6b7280 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
}
.ud-admin-body .unidet-kpi-value {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    margin-top: 2px !important;
    line-height: 1.2 !important;
}

/* ────────────────────────────────────────────────
   17. MODALES — Sections plates (unidet-flat-section)
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-flat-section {
    background: #fff !important;
    border: 1px solid #f0f2f5 !important;
    border-radius: 10px !important;
    padding: 14px 16px !important;
    margin-bottom: 12px !important;
}
.ud-admin-body .unidet-flat-head {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 12px !important;
}
.ud-admin-body .unidet-flat-icon {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    background: #f3f4f6 !important;
}
.ud-admin-body .unidet-flat-text h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}
.ud-admin-body .unidet-flat-text p {
    font-size: 11.5px !important;
    color: #6b7280 !important;
    margin: 2px 0 0 !important;
}
.ud-admin-body .unidet-flat-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px 12px !important;
}
.ud-admin-body .unidet-flat-grid > .full {
    grid-column: 1 / -1 !important;
}
.ud-admin-body .unidet-flat-grid label {
    display: block !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    color: #374151 !important;
    margin-bottom: 4px !important;
}
.ud-admin-body .unidet-flat-grid input,
.ud-admin-body .unidet-flat-grid select,
.ud-admin-body .unidet-flat-grid textarea {
    width: 100% !important;
    padding: 8px 11px !important;
    font-size: 13px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #0a0e17 !important;
    font-family: inherit !important;
    transition: border-color 0.15s ease !important;
}
.ud-admin-body .unidet-flat-grid input:focus,
.ud-admin-body .unidet-flat-grid select:focus,
.ud-admin-body .unidet-flat-grid textarea:focus {
    border-color: #0a0e17 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(10, 14, 23, 0.06) !important;
}
.ud-admin-body .unidet-flat-sublabel {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #374151 !important;
    margin: 14px 0 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* ────────────────────────────────────────────────
   18. MODALES — Grid 2 colonnes
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-modal-row-2col {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

/* ────────────────────────────────────────────────
   19. MODALES — Pièces jointes
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-admin-pj-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
    gap: 8px !important;
}
.ud-admin-body .unidet-admin-pj-card {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fff !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.15s ease !important;
}
.ud-admin-body .unidet-admin-pj-card:hover {
    border-color: #0a0e17 !important;
    background: #f9fafb !important;
}
.ud-admin-body .unidet-admin-pj-thumb {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 6px !important;
    background-size: cover !important;
    background-position: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 18px !important;
}
.ud-admin-body .unidet-admin-pj-pdf {
    background: #fdecea !important;
}
.ud-admin-body .unidet-admin-pj-info {
    flex: 1 !important;
    min-width: 0 !important;
}
.ud-admin-body .unidet-admin-pj-name {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.ud-admin-body .unidet-admin-pj-meta {
    font-size: 10.5px !important;
    color: #9ca3af !important;
    margin-top: 2px !important;
}
.ud-admin-body .unidet-admin-pj-open {
    font-size: 14px !important;
    color: #9ca3af !important;
    flex-shrink: 0 !important;
}

/* ────────────────────────────────────────────────
   20. MODALES — Notes internes
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-admin-notes-list {
    max-height: 200px !important;
    overflow-y: auto !important;
    margin-bottom: 10px !important;
}
.ud-admin-body .unidet-admin-note {
    padding: 8px 10px !important;
    background: #fffbeb !important;
    border-left: 3px solid #f59e0b !important;
    border-radius: 0 6px 6px 0 !important;
    margin-bottom: 6px !important;
}
.ud-admin-body .unidet-admin-note-header {
    display: flex !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 3px !important;
}
.ud-admin-body .unidet-admin-note-header strong {
    font-size: 11.5px !important;
    color: #78350f !important;
}
.ud-admin-body .unidet-admin-note-header .unidet-admin-muted {
    font-size: 10.5px !important;
    color: #a16207 !important;
}
.ud-admin-body .unidet-admin-note-content {
    font-size: 12.5px !important;
    color: #451a03 !important;
    line-height: 1.5 !important;
}
.ud-admin-body .unidet-admin-note-form {
    display: flex !important;
    gap: 8px !important;
    flex-direction: column !important;
}
.ud-admin-body .unidet-admin-note-form textarea,
.ud-admin-body .unidet-notify-textarea {
    width: 100% !important;
    padding: 9px 12px !important;
    font-size: 12.5px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 7px !important;
    font-family: inherit !important;
    resize: vertical !important;
}
.ud-admin-body .unidet-admin-note-form textarea:focus,
.ud-admin-body .unidet-notify-textarea:focus {
    border-color: #0a0e17 !important;
    outline: none !important;
}

/* ────────────────────────────────────────────────
   21. MODALES — Actions footer
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-admin-modal-actions {
    display: flex !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding-top: 14px !important;
    border-top: 1px solid #f0f2f5 !important;
    margin-top: 12px !important;
}
.ud-admin-body .unidet-admin-modal-actions.unidet-actions-split {
    justify-content: space-between !important;
}
.ud-admin-body .unidet-admin-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 9px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    border: none !important;
    font-family: inherit !important;
    text-decoration: none !important;
    white-space: nowrap !important;
}
.ud-admin-body .unidet-admin-btn.primary {
    background: #0a0e17 !important;
    color: #fff !important;
}
.ud-admin-body .unidet-admin-btn.primary:hover {
    background: #1a1f2e !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(10, 14, 23, 0.15) !important;
}
.ud-admin-body .unidet-admin-btn.primary.big {
    padding: 11px 22px !important;
    font-size: 13.5px !important;
}
.ud-admin-body .unidet-admin-btn.ghost {
    background: #f3f4f6 !important;
    color: #0a0e17 !important;
    border: 1px solid #e5e7eb !important;
}
.ud-admin-body .unidet-admin-btn.ghost:hover {
    background: #e5e7eb !important;
}
.ud-admin-body .unidet-admin-btn.unidet-btn-full {
    width: 100% !important;
}

/* ────────────────────────────────────────────────
   22. MODALES — Dropzone fichiers
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-dropzone {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 22px 16px !important;
    border: 2px dashed #d1d5db !important;
    border-radius: 10px !important;
    background: #f9fafb !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: center !important;
}
.ud-admin-body .unidet-dropzone:hover,
.ud-admin-body .unidet-dropzone.unidet-dropzone-active {
    border-color: #0a0e17 !important;
    background: #f3f4f6 !important;
}
.ud-admin-body .unidet-dropzone.unidet-dropzone-success {
    border-color: #27ae60 !important;
    background: #ecfdf5 !important;
}
.ud-admin-body .unidet-dropzone-icon {
    font-size: 26px !important;
}
.ud-admin-body .unidet-dropzone-text {
    font-size: 12.5px !important;
    color: #6b7280 !important;
    line-height: 1.4 !important;
}
.ud-admin-body .unidet-dropzone-text strong {
    color: #0a0e17 !important;
    font-weight: 700 !important;
}
.ud-admin-body .unidet-dropzone-text u {
    color: #0a0e17 !important;
    font-weight: 600 !important;
}
.ud-admin-body .unidet-file-input-hidden {
    display: none !important;
}
.ud-admin-body .unidet-file-preview {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin-top: 10px !important;
}
.ud-admin-body .unidet-file-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 12px !important;
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
}
.ud-admin-body .unidet-file-thumb {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 6px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
}
.ud-admin-body .unidet-file-info {
    flex: 1 !important;
    min-width: 0 !important;
}
.ud-admin-body .unidet-file-name {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.ud-admin-body .unidet-file-meta {
    font-size: 10.5px !important;
    color: #9ca3af !important;
    margin-top: 1px !important;
}
.ud-admin-body .unidet-file-remove {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 6px !important;
    background: #fdecea !important;
    color: #b32d2e !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    transition: all 0.15s ease !important;
}
.ud-admin-body .unidet-file-remove:hover {
    background: #b32d2e !important;
    color: #fff !important;
}
.ud-admin-body .unidet-file-footer {
    font-size: 11px !important;
    color: #6b7280 !important;
    padding: 6px 2px !important;
}

/* ────────────────────────────────────────────────
   23. FAQ ADMIN — Tableau
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-mark-all-link {
    background: transparent !important;
    border: none !important;
    color: #005177 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    padding: 0 !important;
}
.ud-admin-body .ud-mark-all-link:hover {
    color: #0a0e17 !important;
}

/* ────────────────────────────────────────────────
   24. HERO FORM (modale nouveau dossier)
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-hero-form {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    margin-bottom: 14px !important;
    background: linear-gradient(135deg, #0a0e17, #1a1f2e) !important;
    border-radius: 10px !important;
    color: #fff !important;
}
.ud-admin-body .unidet-hero-form-icon {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    background: rgba(212, 163, 115, 0.15) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 20px !important;
}
.ud-admin-body .unidet-hero-form-text h2 {
    font-size: 16px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #fff !important;
}
.ud-admin-body .unidet-hero-form-text p {
    font-size: 12px !important;
    margin: 3px 0 0 !important;
    color: rgba(255, 255, 255, 0.7) !important;
}

/* ────────────────────────────────────────────────
   25. SCROLLBARS FINES
   ──────────────────────────────────────────────── */
.ud-admin-body .ud-body::-webkit-scrollbar,
.ud-admin-body .ud-table-wrap::-webkit-scrollbar,
.ud-admin-body .ud-sidebar::-webkit-scrollbar,
.ud-admin-body .unidet-admin-modal-body::-webkit-scrollbar,
.ud-admin-body .unidet-admin-notes-list::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
}
.ud-admin-body .ud-body::-webkit-scrollbar-thumb,
.ud-admin-body .ud-table-wrap::-webkit-scrollbar-thumb,
.ud-admin-body .ud-sidebar::-webkit-scrollbar-thumb,
.ud-admin-body .unidet-admin-modal-body::-webkit-scrollbar-thumb,
.ud-admin-body .unidet-admin-notes-list::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 3px !important;
}
.ud-admin-body .ud-body::-webkit-scrollbar-thumb:hover,
.ud-admin-body .ud-table-wrap::-webkit-scrollbar-thumb:hover,
.ud-admin-body .ud-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* ────────────────────────────────────────────────
   26. RESPONSIVE — Mobile / Tablette
   ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ud-admin-body .unidet-modal-row-2col {
        grid-template-columns: 1fr !important;
    }
}
@media (max-width: 768px) {
    .ud-admin-body .ud-admin-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .ud-admin-body .ud-admin-stat {
        padding: 8px 10px !important;
        min-height: 52px !important;
        gap: 8px !important;
    }
    .ud-admin-body .ud-admin-stat-icon {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        font-size: 14px !important;
    }
    .ud-admin-body .ud-admin-stat-value {
        font-size: 15px !important;
    }
    .ud-admin-body .ud-finance-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .ud-admin-body .ud-actions {
        grid-template-columns: 1fr !important;
    }
    .ud-admin-body .unidet-kpi-row {
        grid-template-columns: 1fr !important;
    }
    .ud-admin-body .unidet-flat-grid {
        grid-template-columns: 1fr !important;
    }
    .ud-admin-body .unidet-modal-row-2col {
        grid-template-columns: 1fr !important;
    }
    .ud-admin-body .ud-filters {
        grid-template-columns: 1fr !important;
    }
    .ud-admin-body .ud-team-grid {
        grid-template-columns: 1fr !important;
    }
    .ud-admin-body .unidet-admin-modal-body {
        padding: 14px 16px !important;
    }
}

/* ============================================================
   📞 INTEL-TEL-INPUT — FIX UNIVERSEL (tous contextes)
   Ne dépend pas du parent — fonctionne dans :
   - Formulaire dépôt client
   - Modale admin (nouveau dossier)
   - Pages auth
   ============================================================ */

/* ─────── Wrapper ─────── */
.unidet-phone-wrapper {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* ─────── .iti : grille 2 colonnes (drapeau | input) ─────── */
.unidet-phone-wrapper .iti {
    position: relative !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: stretch !important;
    width: 100% !important;
    height: 39px !important;
    min-height: 39px !important;
    background: #fff !important;
    border: 1.5px solid #e5e9f0 !important;
    border-radius: 9px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.unidet-phone-wrapper .iti:focus-within {
    border-color: #d4a373 !important;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, .12) !important;
}

.unidet-country-trigger {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  background: #fff !important;
  border: 1.5px solid #e5e9f0 !important;
  border-radius: 9px !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #0a0e17 !important;
  text-align: left !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

/* ─────── Container du drapeau (colonne 1) ─────── */
.unidet-phone-wrapper .iti__country-container,
.unidet-phone-wrapper .iti__flag-container {
    position: static !important;
    grid-column: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 105px !important;
    max-width: 120px !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #f8fafc !important;
    border: none !important;
    border-right: 1.5px solid #e5e9f0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    z-index: 1 !important;
}

.unidet-phone-wrapper .iti__arrow {
  flex-shrink: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 0 0 8px !important;
  padding: 0 !important;
  border-left: 3px solid transparent !important;
  border-right: 3px solid transparent !important;
  border-top: 5px solid #94a3b8 !important;
  transition: transform .2s !important;
}

/* ─────── Zone cliquable drapeau + indicatif ─────── */
.unidet-phone-wrapper .iti__selected-country,
.unidet-phone-wrapper .iti__selected-flag {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 10px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

/* Hover : léger feedback cohérent */
.unidet-phone-wrapper .iti__selected-country:hover,
.unidet-phone-wrapper .iti__selected-flag:hover,
.unidet-phone-wrapper .iti__selected-country:focus,
.unidet-phone-wrapper .iti__selected-flag:focus,
.unidet-phone-wrapper .iti__selected-flag[aria-expanded="true"] {
    background: rgba(0, 0, 0, .03) !important;
    outline: none !important;
}

/* ─────── Drapeau ─────── */
.unidet-phone-wrapper .iti__flag {
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 15px !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 2px !important;
    display: block !important;
}

/* ─────── Code indicatif +33 ─────── */
.unidet-phone-wrapper .iti__selected-dial-code {
    flex-shrink: 0 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #0a0e17 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ─────── Flèche ▾ ─────── */
.unidet-phone-wrapper .iti__arrow {
    flex-shrink: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 0 0 2px !important;
    padding: 0 !important;
    border-left: 3px solid transparent !important;
    border-right: 3px solid transparent !important;
    border-top: 5px solid #94a3b8 !important;
    transition: transform .2s !important;
}
.unidet-phone-wrapper .iti__selected-flag[aria-expanded="true"] .iti__arrow {
    transform: rotate(180deg) !important;
}

/* ─────── INPUT téléphone (colonne 2) ─────── */
.unidet-phone-wrapper input[type="tel"],
.unidet-phone-wrapper input.iti__tel-input,
.unidet-phone-wrapper .iti input.iti__tel-input {
    grid-column: 2 !important;
    position: static !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 14px !important;    /* ⬅️ AUCUN padding-left spécial */
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    color: #0a0e17 !important;
    text-align: left !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.unidet-phone-wrapper input[type="tel"]::placeholder {
    color: #b8c0cc !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

/* ─────── États validation ─────── */
.unidet-phone-wrapper .iti.phone-invalid {
    border-color: #e74c3c !important;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, .12) !important;
}
.unidet-phone-wrapper .iti.phone-valid {
    border-color: #16a34a !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, .10) !important;
}

/* ─────── Dropdown pays ─────── */
.iti--container {
    z-index: 999999 !important;
}
.iti__country-list {
    z-index: 999999 !important;
    max-height: 320px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(10, 14, 23, .15) !important;
}
.iti__search-input {
    width: 100% !important;
    height: 38px !important;
    padding: 0 12px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fafbfc !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    outline: none !important;
}
.iti__search-input:focus {
    border-color: #d4a373 !important;
    background: #fff !important;
}
.iti__country {
    padding: 10px 14px !important;
    font-size: 14px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
}
.iti__country:hover,
.iti__country.iti__highlight {
    background: #f1f5f9 !important;
}
.iti__country.iti__active {
    background: #fef9e7 !important;
    font-weight: 600 !important;
}
.iti__dial-code {
    color: #94a3b8 !important;
    font-size: 13px !important;
}

/* ─────── Responsive mobile ─────── */
@media (max-width: 640px) {
    .unidet-phone-wrapper .iti {
        height: 48px !important;
    }
    .unidet-phone-wrapper .iti__country-container,
    .unidet-phone-wrapper .iti__flag-container {
        min-width: 100px !important;
        max-width: 110px !important;
    }
    .unidet-phone-wrapper input[type="tel"] {
        font-size: 15px !important;
        padding: 0 12px !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   🎯 SECTION 5 — ASSIGNATION (Formulaire nouveau dossier admin)
   Trois sous-sections : Gestionnaire / Permissions / Priorité
   ══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────
   5.1 — Gestionnaire assigné (cartes)
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-assign-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    align-items: stretch !important;
}

.ud-admin-body .unidet-assign-card {
    display: block !important;
    position: relative !important;
    cursor: pointer !important;
    margin: 0 !important;
    min-width: 0 !important;
}

.ud-admin-body .unidet-assign-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.ud-admin-body .unidet-assign-inner {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    min-height: 60px !important;
    box-sizing: border-box !important;
    transition: all .15s ease !important;
}

.ud-admin-body .unidet-assign-card:hover .unidet-assign-inner {
    border-color: #cbd5e1 !important;
    background: #fafbfc !important;
}

.ud-admin-body .unidet-assign-card input:checked + .unidet-assign-inner {
    border-color: #0a0e17 !important;
    background: #f9fafb !important;
    box-shadow: 0 0 0 3px rgba(10, 14, 23, .08) !important;
}

.ud-admin-body .unidet-assign-avatar {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #e5e7eb, #cbd5e1) !important;
    color: #0a0e17 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0 !important;
}

.ud-admin-body .unidet-assign-card-me .unidet-assign-avatar {
    background: linear-gradient(135deg, #0a0e17, #1a1f2e) !important;
    color: #d4a373 !important;
    font-size: 10px !important;
}

.ud-admin-body .unidet-assign-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.ud-admin-body .unidet-assign-name {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ud-admin-body .unidet-assign-meta {
    font-size: 10.5px !important;
    color: #6b7280 !important;
    line-height: 1.3 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ud-admin-body .unidet-assign-badge {
    font-size: 9.5px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    background: #0a0e17 !important;
    color: #d4a373 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.3px !important;
}

/* ────────────────────────────────────────────────
   5.2 — Niveau de permission (3 cards)
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-perms-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
}

.ud-admin-body .unidet-perm-card {
    display: block !important;
    position: relative !important;
    cursor: pointer !important;
    margin: 0 !important;
    min-width: 0 !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    transition: all .15s ease !important;
    overflow: hidden !important;
}

.ud-admin-body .unidet-perm-card:hover {
    border-color: #d4a373 !important;
    box-shadow: 0 4px 12px rgba(212, 163, 115, .12) !important;
}

.ud-admin-body .unidet-perm-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.ud-admin-body .unidet-perm-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 14px 10px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.ud-admin-body .unidet-perm-icon {
    font-size: 22px !important;
    line-height: 1 !important;
    display: block !important;
    margin-bottom: 2px !important;
}

.ud-admin-body .unidet-perm-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    line-height: 1.2 !important;
    display: block !important;
}

.ud-admin-body .unidet-perm-desc {
    display: block !important;
    font-size: 10.5px !important;
    color: #6b7280 !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

.ud-admin-body .unidet-perm-card:has(input:checked) {
    border-color: #d4a373 !important;
    background: linear-gradient(135deg, #fdf9f0 0%, #fff 80%) !important;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, .12) !important;
}

.ud-admin-body .unidet-perm-card input:checked ~ .unidet-perm-inner .unidet-perm-title,
.ud-admin-body .unidet-perm-card input:checked ~ .unidet-perm-inner .unidet-perm-desc {
    color: #8B6F1F !important;
}

.ud-admin-body .unidet-perm-card input:checked ~ .unidet-perm-inner::before {
    content: '✓' !important;
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 18px !important;
    height: 18px !important;
    background: #d4a373 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: 10px !important;
    line-height: 1 !important;
}

/* ────────────────────────────────────────────────
   5.3 — Priorité (3 cards)
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-choice-cards.unidet-choice-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 6px !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-card {
    display: block !important;
    position: relative !important;
    margin: 0 !important;
    min-width: 0 !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 10px !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: all .15s ease !important;
    overflow: hidden !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-card:hover {
    border-color: #d4a373 !important;
    box-shadow: 0 4px 12px rgba(212, 163, 115, .12) !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    padding: 12px 6px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-icon {
    font-size: 22px !important;
    line-height: 1 !important;
    display: block !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-title {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    line-height: 1.2 !important;
    display: block !important;
    margin: 0 !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-card:has(input:checked) {
    border-color: #d4a373 !important;
    background: linear-gradient(135deg, #fdf9f0 0%, #fff 80%) !important;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, .12) !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-card input:checked ~ .unidet-choice-inner .unidet-choice-title {
    color: #8B6F1F !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-card input:checked ~ .unidet-choice-inner::before {
    content: '✓' !important;
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 18px !important;
    height: 18px !important;
    background: #d4a373 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: 10px !important;
    line-height: 1 !important;
}

/* ────────────────────────────────────────────────
   5.4 — Layout Section 5 (Priorité | Date)
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-flat-section[data-color="green"] .unidet-flat-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    align-items: start !important;
}

.ud-admin-body .unidet-flat-section[data-color="green"] .unidet-flat-grid > .full {
    grid-column: 1 / -1 !important;
}

/* ────────────────────────────────────────────────
   5.5 — Responsive Section 5
   ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ud-admin-body .unidet-assign-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
}

@media (max-width: 768px) {
    .ud-admin-body .unidet-assign-grid {
        grid-template-columns: 1fr !important;
    }
    .ud-admin-body .unidet-perms-cards {
        grid-template-columns: 1fr !important;
    }
    .ud-admin-body .unidet-choice-cards.unidet-choice-3 {
        grid-template-columns: 1fr !important;
    }
    .ud-admin-body .unidet-flat-section[data-color="green"] .unidet-flat-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   🎯 SECTION 5 — Cartes Permissions & Priorité : VERSION COMPACTE
   Override : réduit hauteur, icônes, paddings et gaps
   ══════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────
   Permissions — 3 cards compactes
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-perms-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

.ud-admin-body .unidet-perm-inner {
    padding: 8px 6px !important;
    gap: 1px !important;
}

.ud-admin-body .unidet-perm-icon {
    font-size: 16px !important;
    margin-bottom: 1px !important;
    line-height: 1 !important;
}

.ud-admin-body .unidet-perm-title {
    font-size: 11.5px !important;
    line-height: 1.15 !important;
}

.ud-admin-body .unidet-perm-desc {
    font-size: 9.5px !important;
    line-height: 1.2 !important;
}

/* Coche ✓ plus petite */
.ud-admin-body .unidet-perm-card input:checked ~ .unidet-perm-inner::before {
    width: 14px !important;
    height: 14px !important;
    font-size: 8px !important;
    top: 4px !important;
    right: 4px !important;
}

/* ────────────────────────────────────────────────
   Priorité — 3 cards compactes
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-choice-cards.unidet-choice-3 {
    gap: 6px !important;
    margin-top: 4px !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-inner {
    padding: 8px 6px !important;
    gap: 2px !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-icon {
    font-size: 16px !important;
    margin-bottom: 1px !important;
}

.ud-admin-body .unidet-choice-3 .unidet-choice-title {
    font-size: 11.5px !important;
    line-height: 1.15 !important;
}

/* Coche ✓ plus petite */
.ud-admin-body .unidet-choice-3 .unidet-choice-card input:checked ~ .unidet-choice-inner::before {
    width: 14px !important;
    height: 14px !important;
    font-size: 8px !important;
    top: 4px !important;
    right: 4px !important;
}

/* ────────────────────────────────────────────────
   Labels sections (Gestionnaire / Niveau de permission / Priorité)
   ──────────────────────────────────────────────── */
.ud-admin-body .unidet-flat-section[data-color="green"] label[style*="font-size:12px"] {
    font-size: 11px !important;
    margin-bottom: 6px !important;
}


/* ══════════════════════════════════════════════════════════
   🎯 TABLE DOSSIERS — Refonte
   ══════════════════════════════════════════════════════════ */

.ud-admin-body .ud-table-dossiers {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 13px !important;
    table-layout: fixed !important;
}

/* En-têtes */
.ud-admin-body .ud-table-dossiers thead th {
    padding: 12px 14px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-align: left !important;
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
    white-space: nowrap !important;
}

/* Cellules */
.ud-admin-body .ud-table-dossiers tbody td {
    padding: 12px 14px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle !important;
    color: #0a0e17 !important;
    font-size: 13px !important;
}
.ud-admin-body .ud-table-dossiers tbody tr {
    transition: background 0.12s ease !important;
}
.ud-admin-body .ud-table-dossiers tbody tr:hover {
    background: #fafbfc !important;
}
.ud-admin-body .ud-table-dossiers tbody tr:last-child td {
    border-bottom: none !important;
}

/* Largeurs de colonnes */
.ud-admin-body .ud-table-dossiers .ud-col-num      { width: 48px;  text-align: center; }
.ud-admin-body .ud-table-dossiers .ud-col-ref      { width: 195px; }
.ud-admin-body .ud-table-dossiers .ud-col-client   { width: 180px; }
.ud-admin-body .ud-table-dossiers .ud-col-debiteur { width: 180px; }
.ud-admin-body .ud-table-dossiers .ud-col-gest     { width: 200px; }
.ud-admin-body .ud-table-dossiers .ud-col-montant  { width: 120px; text-align: right; }
.ud-admin-body .ud-table-dossiers .ud-col-statut   { width: 130px; }
.ud-admin-body .ud-table-dossiers .ud-col-date     { width: 100px; }
.ud-admin-body .ud-table-dossiers .ud-col-actions  { width: 60px;  text-align: center; }

/* # (numéro de ligne) */
.ud-admin-body .ud-table-dossiers .ud-row-num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 26px !important;
    height: 26px !important;
    padding: 0 6px !important;
    background: #f3f4f6 !important;
    color: #64748b !important;
    border-radius: 6px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums !important;
}

/* Référence */
.ud-admin-body .ud-table-dossiers .ud-ref {
    display: block !important;
    font-family: 'Courier New', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    background: #f3f4f6 !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    word-break: break-all !important;
    line-height: 1.35 !important;
}

/* Cellule 2 lignes (Client, Débiteur) */
.ud-admin-body .ud-table-dossiers .ud-cell-primary {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #0a0e17 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.ud-admin-body .ud-table-dossiers .ud-cell-secondary {
    font-size: 11px !important;
    color: #94a3b8 !important;
    line-height: 1.3 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Cellule Gestionnaire */
.ud-admin-body .ud-gest-cell {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}
.ud-admin-body .ud-gest-avatar {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0a0e17, #1a1f2e) !important;
    color: #d4a373 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    flex-shrink: 0 !important;
    letter-spacing: 0.3px !important;
}
.ud-admin-body .ud-gest-info {
    flex: 1 !important;
    min-width: 0 !important;
}
.ud-admin-body .ud-gest-name {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #0a0e17 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.ud-admin-body .ud-gest-unassigned {
    font-size: 11.5px !important;
    color: #cbd5e1 !important;
    font-style: italic !important;
}

/* Badge permission (dans cellule gestionnaire) */
.ud-admin-body .ud-gest-info .ud-perm-badge {
    display: inline-block !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 10px !important;
    margin-top: 3px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    line-height: 1.4 !important;
}
.ud-admin-body .ud-gest-info .ud-perm-badge.lecture { background: #f3f4f6 !important; color: #6b7280 !important; }
.ud-admin-body .ud-gest-info .ud-perm-badge.edition { background: #fff3e0 !important; color: #e65100 !important; }
.ud-admin-body .ud-gest-info .ud-perm-badge.complet { background: #d1fae5 !important; color: #065f46 !important; }

/* Montant */
.ud-admin-body .ud-table-dossiers .ud-montant {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
}

/* Bouton Gérer (icône seule) */
.ud-admin-body .ud-table-dossiers .ud-btn-edit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    background: #f0f8ff !important;
    color: #005177 !important;
    border: 1px solid #d4e8f5 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}
.ud-admin-body .ud-table-dossiers .ud-btn-edit:hover {
    background: #005177 !important;
    color: #fff !important;
    border-color: #005177 !important;
    transform: translateY(-1px) !important;
}

/* Filtres — nouvelle grille */
.ud-admin-body .ud-filters-dossiers {
    display: grid !important;
    grid-template-columns: minmax(200px, 1.4fr) repeat(6, minmax(120px, 1fr)) auto !important;
    gap: 10px !important;
    padding: 14px !important;
    margin-bottom: 12px !important;
    background: #f9fafb !important;
    border: 1px solid #f0f2f5 !important;
    border-radius: 10px !important;
    align-items: end !important;
}
.ud-admin-body .ud-filters-dossiers .ud-filter-reset {
    min-width: 0 !important;
}
.ud-admin-body .ud-filters-dossiers .ud-btn-reset {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 34px !important;
    padding: 0 !important;
    font-size: 14px !important;
}

/* Responsive filtres */
@media (max-width: 1400px) {
    .ud-admin-body .ud-filters-dossiers {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
@media (max-width: 1024px) {
    .ud-admin-body .ud-filters-dossiers {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .ud-admin-body .ud-table-dossiers {
        min-width: 1200px !important;
    }
}
@media (max-width: 640px) {
    .ud-admin-body .ud-filters-dossiers {
        grid-template-columns: 1fr !important;
    }
}

/* ─── Carte "Non assigné" ─── */
.ud-admin-body .unidet-assign-card-none .unidet-assign-inner {
    border-style: dashed !important;
    border-color: #d1d5db !important;
    background: #fafbfc !important;
}
.ud-admin-body .unidet-assign-card-none:hover .unidet-assign-inner {
    border-color: #94a3b8 !important;
}
.ud-admin-body .unidet-assign-card-none input:checked + .unidet-assign-inner {
    border-style: solid !important;
    border-color: #0a0e17 !important;
    background: #f9fafb !important;
    box-shadow: 0 0 0 3px rgba(10, 14, 23, .08) !important;
}

/* ══════════════════════════════════════════════════════════
   🎯 SECTION 5 — États désactivés (Non assigné / Moi-même)
   ══════════════════════════════════════════════════════════ */

/* Cartes désactivées : curseur interdit */
.ud-admin-body .unidet-perm-card[style*="pointer-events: none"],
.ud-admin-body .unidet-choice-3 .unidet-choice-card[style*="pointer-events: none"] {
    cursor: not-allowed !important;
}

/* Carte "Non assigné" : style distinct */
.ud-admin-body .unidet-assign-card-none .unidet-assign-inner {
    border-style: dashed !important;
    border-color: #d1d5db !important;
    background: #fafbfc !important;
}
.ud-admin-body .unidet-assign-card-none:hover .unidet-assign-inner {
    border-color: #94a3b8 !important;
}
.ud-admin-body .unidet-assign-card-none input:checked + .unidet-assign-inner {
    border-style: solid !important;
    border-color: #0a0e17 !important;
    background: #f9fafb !important;
    box-shadow: 0 0 0 3px rgba(10, 14, 23, .08) !important;
}

/* Carte "Moi-même" : bordure marine quand sélectionnée */
.ud-admin-body .unidet-assign-card-me input:checked + .unidet-assign-inner {
    border-color: #0a0e17 !important;
    background: linear-gradient(135deg, #fdf9f0 0%, #fff 80%) !important;
    box-shadow: 0 0 0 3px rgba(10, 14, 23, .10) !important;
}

/* Message d'aide sous le bloc désactivé */
.ud-admin-body .unidet-assign-disabled-hint {
    display: none;
    margin-top: 10px;
    padding: 10px 14px;
    background: #f0f8ff;
    border-left: 3px solid #0073aa;
    border-radius: 0 8px 8px 0;
    font-size: 11.5px;
    color: #1e40af;
    line-height: 1.5;
    font-weight: 500;
}
.ud-admin-body .unidet-assign-disabled-hint.active {
    display: block;
}

/* ══════════════════════════════════════════════════════════
   🎯 CARTE "CLIENT EXISTANT DÉTECTÉ"
   ══════════════════════════════════════════════════════════ */

.unidet-client-found {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1.5px solid #a7f3d0;
    border-radius: 14px;
    margin-top: 12px;
    position: relative;
    overflow: hidden;
    animation: unidetClientFoundIn 0.35s cubic-bezier(.34,1.56,.64,1);
}

.unidet-client-found::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #10b981 0%, #059669 100%);
}

@keyframes unidetClientFoundIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Avatar initiales */
.unidet-client-found-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    flex-shrink: 0;
}

/* Corps central */
.unidet-client-found-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.unidet-client-found-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Badge "Client existant" */
.unidet-client-found-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #a7f3d0;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 700;
    color: #065f46;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1;
}
.unidet-client-found-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

/* Compteur dossiers */
.unidet-client-found-count {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: #fff;
    border: 1px solid #d1fae5;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 700;
    color: #059669;
    line-height: 1;
}

/* Nom du client */
.unidet-client-found-name {
    font-size: 15px;
    font-weight: 700;
    color: #0a0e17;
    line-height: 1.25;
    letter-spacing: -0.1px;
    margin: 0;
}

/* Métadonnées (email + société) */
.unidet-client-found-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 2px;
}
.unidet-client-found-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #047857;
    line-height: 1.3;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.unidet-client-found-meta-item svg {
    flex-shrink: 0;
    opacity: 0.75;
}

/* Bouton "Retirer" */
.unidet-client-found-clear {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #059669;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
}
.unidet-client-found-clear:hover {
    background: #059669;
    border-color: #059669;
    color: #fff;
    transform: scale(1.05);
}

/* Responsive mobile */
@media (max-width: 640px) {
    .unidet-client-found {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }
    .unidet-client-found-avatar {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 15px;
    }
    .unidet-client-found-clear {
        position: absolute;
        top: 12px;
        right: 12px;
    }
    .unidet-client-found-meta {
        flex-direction: column;
        gap: 4px;
    }
}

/* ══════════════════════════════════════════════════════════
   🎯 SWEETALERT2 — Toujours au-dessus de tous les modals
   ══════════════════════════════════════════════════════════ */
.swal2-container {
    z-index: 99999999 !important;
}
.swal2-popup {
    z-index: 99999999 !important;
}


/* ══════════════════════════════════════════════════════════
   🎉 POPUP SUCCÈS — Design Unidet
   ══════════════════════════════════════════════════════════ */

.unidet-swal-success-popup {
    border-radius: 20px !important;
    box-shadow: 0 25px 70px rgba(10, 14, 23, 0.28) !important;
    border: none !important;
}

.unidet-swal-success-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

.unidet-swal-success-popup .swal2-title {
    display: none !important;
}

.unidet-swal-success-popup .swal2-icon {
    display: none !important;
}

.unidet-swal-success-actions {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.unidet-swal-success-confirm {
    width: 100% !important;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px 24px !important;
    border-radius: 11px !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 14px rgba(10, 14, 23, 0.2) !important;
    letter-spacing: 0.2px !important;
    margin-top: 22px !important;
}
.unidet-swal-success-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(10, 14, 23, 0.3) !important;
    background: linear-gradient(135deg, #1a1f2e 0%, #2a3142 100%) !important;
}
.unidet-swal-success-confirm:active {
    transform: translateY(0) !important;
}


/* ══════════════════════════════════════════════════════════
   🎯 BOUTON "GÉRER" dans la table des dossiers
   ══════════════════════════════════════════════════════════ */

.ud-admin-body .ud-table-dossiers .ud-btn-edit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: auto !important;
    min-width: 36px !important;
    height: 34px !important;
    padding: 0 12px !important;
    background: linear-gradient(135deg, #f0f8ff 0%, #e5f2fb 100%) !important;
    color: #005177 !important;
    border: 1px solid #cce4f5 !important;
    border-radius: 9px !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

/* Ajoute une icône crayon avant le texte */
.ud-admin-body .ud-table-dossiers .ud-btn-edit::before {
    content: '✏️' !important;
    font-size: 13px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* Hover */
.ud-admin-body .ud-table-dossiers .ud-btn-edit:hover {
    background: linear-gradient(135deg, #005177 0%, #003a5a 100%) !important;
    border-color: #005177 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.22) !important;
}

.ud-admin-body .ud-table-dossiers .ud-btn-edit:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 6px rgba(0, 115, 170, 0.2) !important;
}

/* État "loading" */
.ud-admin-body .ud-table-dossiers .ud-btn-edit.is-loading {
    pointer-events: none !important;
    opacity: 0.7 !important;
}
.ud-admin-body .ud-table-dossiers .ud-btn-edit.is-loading::before {
    display: none !important;
}

/* Mini spinner dans le bouton */
.ud-spin {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(0, 81, 119, 0.2);
    border-top-color: #005177;
    border-radius: 50%;
    animation: ud-spin-rotate 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes ud-spin-rotate {
    to { transform: rotate(360deg); }
}

/* ──────── Si vous voulez garder uniquement l'icône (sans texte) ──────── */
/*
.ud-admin-body .ud-table-dossiers .ud-btn-edit {
    width: 34px !important;
    padding: 0 !important;
    font-size: 0 !important;
}
.ud-admin-body .ud-table-dossiers .ud-btn-edit::before {
    font-size: 15px !important;
}
*/

/* ══════════════════════════════════════════════════════════
   🎯 LOADER DE LA MODALE "GÉRER"
   ══════════════════════════════════════════════════════════ */

.unidet-modal-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.unidet-modal-loader-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid #e5e9f0;
    border-top-color: #d4a373;
    border-radius: 50%;
    animation: unidetModalSpin 0.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    margin-bottom: 20px;
}
@keyframes unidetModalSpin {
    to { transform: rotate(360deg); }
}

.unidet-modal-loader-text {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.2px;
}

/* ══════════════════════════════════════════════════════════
   🎯 ERREUR DANS LA MODALE
   ══════════════════════════════════════════════════════════ */

.unidet-modal-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    text-align: center;
}

.unidet-modal-error-icon {
    font-size: 52px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.unidet-modal-error h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0a0e17;
}

.unidet-modal-error p {
    margin: 0 0 22px;
    font-size: 13.5px;
    color: #6b7280;
    line-height: 1.6;
    max-width: 360px;
}


/* ══════════════════════════════════════════════════════════
   🎯 CORRECTIFS TABLE DOSSIERS
   ══════════════════════════════════════════════════════════ */

/* ───── Fix 1 : Retirer le crayon ::before ───── */
.ud-admin-body .ud-table-dossiers .ud-btn-edit::before {
    content: none !important;
    display: none !important;
}

/* ───── Fix 2 : Colonne # visible et centrée ───── */
.ud-admin-body .ud-table-dossiers .ud-col-num {
    width: 55px !important;
    min-width: 55px !important;
    max-width: 55px !important;
    text-align: center !important;
    padding: 12px 8px !important;
    vertical-align: middle !important;
}

/* ───── Fix 3 : Colonne Référence — largeur correcte + ellipsis ───── */
.ud-admin-body .ud-table-dossiers .ud-col-ref {
    width: 200px !important;
    min-width: 200px !important;
    max-width: 200px !important;
    padding: 12px 10px !important;
    vertical-align: middle !important;
}

.ud-admin-body .ud-table-dossiers .ud-ref {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    /* ✅ Force l'affichage gauche-droite normal */
    direction: ltr !important;
    text-align: left !important;
    unicode-bidi: plaintext !important;

    /* ✅ Coupure propre avec ellipsis au lieu de break-all */
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: normal !important;
    overflow-wrap: normal !important;

    /* Style visuel */
    font-family: 'Courier New', monospace !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    background: #f3f4f6 !important;
    padding: 5px 10px !important;
    border-radius: 6px !important;
    line-height: 1.35 !important;

    /* Reset vertical */
    vertical-align: middle !important;
}

/* ───── Fix 4 : Ajuster les autres colonnes (tient sur 1200px) ───── */
.ud-admin-body .ud-table-dossiers .ud-col-client   { width: 170px !important; }
.ud-admin-body .ud-table-dossiers .ud-col-debiteur { width: 170px !important; }
.ud-admin-body .ud-table-dossiers .ud-col-gest     { width: 200px !important; }
.ud-admin-body .ud-table-dossiers .ud-col-montant  { width: 110px !important; }
.ud-admin-body .ud-table-dossiers .ud-col-statut   { width: 125px !important; }
.ud-admin-body .ud-table-dossiers .ud-col-date     { width: 100px !important; }
.ud-admin-body .ud-table-dossiers .ud-col-actions  { width: 60px  !important; }

/* ───── Fix 5 : Bouton Gérer — cohérent (1 seule icône) ───── */
.ud-admin-body .ud-table-dossiers .ud-btn-edit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 !important;
    font-size: 15px !important;
    line-height: 1 !important;
    background: linear-gradient(135deg, #f0f8ff 0%, #e5f2fb 100%) !important;
    color: #005177 !important;
    border: 1px solid #cce4f5 !important;
    border-radius: 9px !important;
    cursor: pointer !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.ud-admin-body .ud-table-dossiers .ud-btn-edit:hover {
    background: linear-gradient(135deg, #005177 0%, #003a5a 100%) !important;
    border-color: #005177 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 16px rgba(0, 115, 170, 0.22) !important;
}

/* ───── Fix 6 : Empêcher le scroll horizontal bizarre ───── */
.ud-admin-body .ud-table-dossiers {
    min-width: 1120px !important;
}

.ud-admin-body .ud-table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
}

/* ───── Fix 7 : Mobile — masquer les colonnes non essentielles ───── */
@media (max-width: 900px) {
    .ud-admin-body .ud-table-dossiers .ud-col-client,
    .ud-admin-body .ud-table-dossiers .ud-col-date {
        display: none !important;
    }
    .ud-admin-body .ud-table-dossiers {
        min-width: 800px !important;
    }
}


/* ══════════════════════════════════════════════════════════
   🎯 MODAL "GÉRER DOSSIER" — Refonte complète
   ══════════════════════════════════════════════════════════ */

/* Le modal prend plus de largeur */
.ud-modal .unidet-admin-modal-content {
    max-width: 1080px !important;
}

/* ─────── HERO ─────── */
.ud-dossier-hero {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
    border-radius: 14px;
    margin-bottom: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ud-dossier-hero::before {
    content: '';
    position: absolute;
    top: -60%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.15) 0%, transparent 65%);
    pointer-events: none;
}
.ud-dossier-hero-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: rgba(212, 163, 115, 0.15);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.ud-dossier-hero-main {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.ud-dossier-hero-ref {
    font-family: 'Courier New', monospace;
    font-size: 17px;
    font-weight: 800;
    color: #d4a373;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    word-break: break-all;
}
.ud-dossier-hero-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}
.ud-dossier-hero-sep { margin: 0 6px; opacity: 0.5; }
.ud-dossier-hero-client { color: #fff; font-weight: 600; }
.ud-dossier-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.ud-dossier-hero-status-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    padding-left: 4px;
}
.ud-dossier-hero-actions .unidet-status-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    min-width: 220px;
    font-family: inherit;
    outline: none;
    transition: all 0.15s;
}
.ud-dossier-hero-actions .unidet-status-select:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}
.ud-dossier-hero-actions .unidet-status-select option {
    background: #1a1f2e;
    color: #fff;
}

/* ─────── KPI ROW ─────── */
.ud-dossier-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.ud-dossier-kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 11px;
    transition: all 0.15s;
}
.ud-dossier-kpi:hover {
    border-color: #d4a373;
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.08);
}
.ud-dossier-kpi-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: #f8fafc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ud-dossier-kpi-body { min-width: 0; flex: 1; }
.ud-dossier-kpi-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 3px;
    white-space: nowrap;
}
.ud-dossier-kpi-value {
    font-size: 14.5px;
    font-weight: 800;
    color: #0a0e17;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums;
}

/* ─────── SECTIONS ─────── */
.ud-modal-section {
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
}
.ud-modal-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #f9fafb;
    border-bottom: 1px solid #f0f2f5;
}
.ud-modal-section-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.ud-modal-section[data-color="blue"]   .ud-modal-section-icon { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.ud-modal-section[data-color="purple"] .ud-modal-section-icon { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.ud-modal-section[data-color="gold"]   .ud-modal-section-icon { background: linear-gradient(135deg, #fdf6ec, #f5e6cf); }
.ud-modal-section[data-color="cyan"]   .ud-modal-section-icon { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.ud-modal-section[data-color="green"]  .ud-modal-section-icon { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.ud-modal-section[data-color="amber"]  .ud-modal-section-icon { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.ud-modal-section[data-color="red"]    .ud-modal-section-icon { background: linear-gradient(135deg, #fee2e2, #fecaca); }

.ud-modal-section-text { flex: 1; min-width: 0; }
.ud-modal-section-text h3 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    color: #0a0e17;
    line-height: 1.25;
}
.ud-modal-section-text p {
    margin: 0;
    font-size: 11.5px;
    color: #6b7280;
    line-height: 1.4;
}
.ud-modal-section-body {
    padding: 16px 18px;
}

/* ─────── Client card ─────── */
.ud-client-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0f8ff 0%, #e5f2fb 100%);
    border: 1.5px solid #cce4f5;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.ud-client-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #0073aa, #005177);
}
.ud-client-card-avatar {
    width: 46px;
    height: 46px;
    min-width: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0073aa, #005177);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.2);
    flex-shrink: 0;
}
.ud-client-card-body { flex: 1; min-width: 0; }
.ud-client-card-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0a0e17;
    margin-bottom: 4px;
    line-height: 1.25;
}
.ud-client-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
}
.ud-client-card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #1e40af;
    font-weight: 500;
}
.ud-client-card-meta-item svg { opacity: 0.7; flex-shrink: 0; }
.ud-client-card-badge {
    padding: 4px 10px;
    background: #fff;
    border: 1px solid #cce4f5;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #005177;
    flex-shrink: 0;
}

/* ─────── Form grid ─────── */
.ud-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 18px;
}
.ud-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ud-field-full { grid-column: 1 / -1; }
.ud-field label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 6px;
    line-height: 1.35;
}
.ud-field label .req { color: #e74c3c; margin-left: 2px; }
.ud-field input,
.ud-field select,
.ud-field textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #e5e9f0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13.5px;
    color: #0a0e17;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    transition: all 0.15s;
}
.ud-field input:focus,
.ud-field select:focus,
.ud-field textarea:focus {
    border-color: #d4a373;
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.ud-field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }

/* Amount row (montant + devise) */
.ud-amount-row {
    display: flex;
    gap: 8px;
}
.ud-amount-row input { flex: 1; min-width: 0; }
.ud-currency-select {
    flex: 0 0 auto;
    min-width: 110px !important;
    max-width: 130px !important;
}

/* ─────── PJ ─────── */
.ud-pj-block {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed #e5e9f0;
}
.ud-pj-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.ud-pj-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.ud-pj-count {
    background: #0a0e17;
    color: #fff;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 100px;
    line-height: 1;
}
.ud-pj-empty {
    margin: 0;
    padding: 16px;
    text-align: center;
    font-size: 12.5px;
    color: #94a3b8;
    background: #f9fafb;
    border: 1px dashed #e5e9f0;
    border-radius: 9px;
    font-style: italic;
}
.ud-pj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.ud-pj-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s;
    position: relative;
    overflow: hidden;
}
.ud-pj-card:hover {
    border-color: #0073aa;
    background: #f0f8ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.08);
}
.ud-pj-thumb {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ud-pj-thumb-pdf { background: #fdecea; }
.ud-pj-info { flex: 1; min-width: 0; }
.ud-pj-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0a0e17;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.ud-pj-meta {
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
}
.ud-pj-open {
    font-size: 14px;
    color: #94a3b8;
    flex-shrink: 0;
}

/* ─────── Sous-blocs ─────── */
.ud-subblock { margin-bottom: 16px; }
.ud-subblock:last-child { margin-bottom: 0; }
.ud-subblock-mt { margin-top: 18px; }
.ud-subblock-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    margin-bottom: 8px;
    letter-spacing: 0.2px;
}

.ud-two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.ud-section-outside-form { margin-top: 12px; }

/* ─────── Offres ─────── */
.ud-offre-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.ud-offre-card {
    cursor: pointer;
    display: block;
    margin: 0;
    position: relative;
}
.ud-offre-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ud-offre-inner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1.5px solid #e5e9f0;
    border-left: 3px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    transition: all 0.15s;
    height: 100%;
    box-sizing: border-box;
}
.ud-offre-card:nth-child(1) .ud-offre-inner { border-left-color: #27ae60; }
.ud-offre-card:nth-child(2) .ud-offre-inner { border-left-color: #0073aa; }
.ud-offre-card:nth-child(3) .ud-offre-inner { border-left-color: #e74c3c; }

.ud-offre-card:hover .ud-offre-inner {
    border-color: #d4a373;
    transform: translateY(-1px);
}
.ud-offre-card input:checked ~ .ud-offre-inner {
    border-color: #d4a373;
    background: linear-gradient(135deg, #fdf9f0 0%, #fff 80%);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.ud-offre-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ud-offre-radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
}
.ud-offre-card input:checked ~ .ud-offre-inner .ud-offre-radio {
    border-color: #d4a373;
}
.ud-offre-card input:checked ~ .ud-offre-inner .ud-offre-radio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #d4a373;
}
.ud-offre-emoji { font-size: 15px; line-height: 1; }
.ud-offre-name {
    font-size: 13px;
    font-weight: 800;
    color: #0a0e17;
    flex: 1;
    min-width: 0;
    line-height: 1.2;
}
.ud-offre-pct {
    font-size: 14px;
    font-weight: 800;
    color: #0a0e17;
    letter-spacing: -0.3px;
    white-space: nowrap;
}
.ud-offre-desc {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    padding-left: 24px;
    line-height: 1.35;
}
.ud-offre-delai {
    font-size: 10.5px;
    color: #d4a373;
    font-weight: 700;
    padding-left: 24px;
    line-height: 1.35;
}

/* ─────── Radios (échéancier / remise) ─────── */
.ud-radio-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ud-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 1.5px solid #e5e9f0;
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    margin: 0;
    position: relative;
}
.ud-radio-item:hover { border-color: #d4a373; }
.ud-radio-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ud-radio-circle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
}
.ud-radio-item input:checked ~ .ud-radio-circle { border-color: #d4a373; }
.ud-radio-item input:checked ~ .ud-radio-circle::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: #d4a373;
}
.ud-radio-item:has(input:checked) {
    border-color: #d4a373;
    background: linear-gradient(135deg, #fdf9f0 0%, #fff 100%);
}
.ud-radio-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #0a0e17;
    line-height: 1.25;
    flex: 1;
    min-width: 0;
}
.ud-radio-sub {
    display: block;
    font-size: 10.5px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 1px;
}
.ud-radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.ud-radio-input {
    width: 70px;
    padding: 5px 8px;
    border: 1.5px solid #e5e9f0;
    border-radius: 7px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    font-family: inherit;
    outline: none;
    transition: all 0.15s;
}
.ud-radio-input:focus { border-color: #d4a373; box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1); }
.ud-radio-input:disabled { background: #f9fafb; color: #cbd5e1; }
.ud-radio-unit { font-size: 12px; font-weight: 700; color: #64748b; }

/* ─────── Assignation : cartes gestionnaire ─────── */
.ud-assign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}
.ud-assign-card {
    display: block;
    position: relative;
    cursor: pointer;
    margin: 0;
    min-width: 0;
}
.ud-assign-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ud-assign-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1.5px solid #e5e9f0;
    border-radius: 10px;
    background: #fff;
    min-height: 58px;
    box-sizing: border-box;
    transition: all 0.15s;
}
.ud-assign-card:hover .ud-assign-inner {
    border-color: #cbd5e1;
    background: #fafbfc;
}
.ud-assign-card input:checked ~ .ud-assign-inner,
.ud-assign-card.is-selected .ud-assign-inner {
    border-color: #0a0e17;
    background: #f9fafb;
    box-shadow: 0 0 0 3px rgba(10, 14, 23, 0.06);
}
.ud-assign-card-me.is-selected .ud-assign-inner {
    border-color: #d4a373;
    background: linear-gradient(135deg, #fdf9f0 0%, #fff 80%);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.ud-assign-avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
    color: #0a0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.3px;
}
.ud-assign-avatar-me {
    background: linear-gradient(135deg, #0a0e17, #1a1f2e);
    color: #d4a373;
    font-size: 10px;
}
.ud-assign-avatar-none {
    background: #f3f4f6;
    color: #94a3b8;
    font-size: 14px;
}
.ud-assign-info { flex: 1; min-width: 0; }
.ud-assign-name {
    font-size: 12.5px;
    font-weight: 700;
    color: #0a0e17;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ud-assign-meta {
    font-size: 10.5px;
    color: #6b7280;
    line-height: 1.3;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ud-assign-badge {
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    background: #0a0e17;
    color: #d4a373;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Hint assignation */
.ud-assign-hint {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: #f0f8ff;
    border-left: 3px solid #0073aa;
    border-radius: 0 8px 8px 0;
    font-size: 11.5px;
    color: #1e40af;
    line-height: 1.55;
    font-weight: 500;
}
.ud-assign-hint.active { display: block; }

/* ─────── Permissions ─────── */
.ud-perms-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.ud-perm-card {
    display: block;
    position: relative;
    cursor: pointer;
    margin: 0;
    min-width: 0;
    border: 1.5px solid #e5e9f0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.15s;
    overflow: hidden;
}
.ud-perm-card:hover { border-color: #d4a373; }
.ud-perm-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ud-perm-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 12px 8px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
}
.ud-perm-icon { font-size: 18px; line-height: 1; }
.ud-perm-title {
    font-size: 12px;
    font-weight: 700;
    color: #0a0e17;
    line-height: 1.2;
}
.ud-perm-desc {
    font-size: 10px;
    color: #6b7280;
    font-weight: 500;
    line-height: 1.3;
}
.ud-perm-card:has(input:checked) {
    border-color: #d4a373;
    background: linear-gradient(135deg, #fdf9f0 0%, #fff 80%);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.ud-perm-card input:checked ~ .ud-perm-inner .ud-perm-title,
.ud-perm-card input:checked ~ .ud-perm-inner .ud-perm-desc {
    color: #8B6F1F;
}
.ud-perm-card input:checked ~ .ud-perm-inner::before {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: #d4a373;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 9px;
    line-height: 1;
}

/* ─────── Priorité ─────── */
.ud-priority-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.ud-priority-card {
    display: block;
    position: relative;
    cursor: pointer;
    margin: 0;
    min-width: 0;
    border: 1.5px solid #e5e9f0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.15s;
    overflow: hidden;
}
.ud-priority-card:hover { border-color: #d4a373; }
.ud-priority-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ud-priority-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 6px;
    text-align: center;
    box-sizing: border-box;
    position: relative;
}
.ud-priority-icon { font-size: 18px; line-height: 1; }
.ud-priority-title {
    font-size: 12px;
    font-weight: 700;
    color: #0a0e17;
    line-height: 1.2;
}
.ud-priority-card:has(input:checked) {
    border-color: #d4a373;
    background: linear-gradient(135deg, #fdf9f0 0%, #fff 80%);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.12);
}
.ud-priority-card input:checked ~ .ud-priority-inner .ud-priority-title {
    color: #8B6F1F;
}
.ud-priority-card input:checked ~ .ud-priority-inner::before {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 16px;
    height: 16px;
    background: #d4a373;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 9px;
    line-height: 1;
}

/* ─────── Notes internes ─────── */
.ud-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 14px;
}
.ud-notes-list::-webkit-scrollbar { width: 6px; }
.ud-notes-list::-webkit-scrollbar-thumb { background: #e5e9f0; border-radius: 3px; }

.ud-notes-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #fffbeb;
    border: 1px dashed #fde68a;
    border-radius: 10px;
    text-align: center;
}
.ud-notes-empty-icon { font-size: 32px; margin-bottom: 8px; opacity: 0.5; }
.ud-notes-empty p {
    margin: 0;
    font-size: 12.5px;
    color: #78350f;
    font-weight: 600;
}

.ud-note {
    display: flex;
    gap: 10px;
    padding: 11px 13px;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0 10px 10px 0;
}
.ud-note-avatar {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex-shrink: 0;
}
.ud-note-body { flex: 1; min-width: 0; }
.ud-note-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.ud-note-head strong {
    font-size: 12px;
    color: #78350f;
    font-weight: 700;
}
.ud-note-date {
    font-size: 10.5px;
    color: #a16207;
    font-weight: 500;
}
.ud-note-content {
    font-size: 12.5px;
    color: #451a03;
    line-height: 1.55;
    word-break: break-word;
}

.ud-note-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ud-note-form textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #e5e9f0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12.5px;
    color: #0a0e17;
    background: #fff;
    resize: vertical;
    outline: none;
    transition: all 0.15s;
    box-sizing: border-box;
    line-height: 1.5;
}
.ud-note-form textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}
.ud-btn-note-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    align-self: flex-start;
}
.ud-btn-note-add:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.28);
}

/* ─────── Notifier client ─────── */
.ud-notify-textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1.5px solid #e5e9f0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    color: #0a0e17;
    background: #fff;
    resize: vertical;
    outline: none;
    transition: all 0.15s;
    box-sizing: border-box;
    line-height: 1.55;
    margin-bottom: 12px;
}
.ud-notify-textarea:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
.ud-btn-notify {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    border: none;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.ud-btn-notify:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.28);
}
.ud-notify-hint {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 10px 0 0;
    font-size: 11.5px;
    color: #6b7280;
    line-height: 1.5;
}
.ud-notify-hint span { flex-shrink: 0; }

/* ─────── Footer ─────── */
.ud-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 16px 0 4px;
    border-top: 1px solid #f0f2f5;
    margin-top: 16px;
}
.ud-btn-cancel {
    padding: 11px 22px;
    background: #fff;
    color: #6b7280;
    border: 1.5px solid #e5e9f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.ud-btn-cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0a0e17;
}
.ud-btn-save {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: 0 4px 12px rgba(10, 14, 23, 0.18);
}
.ud-btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(10, 14, 23, 0.28);
}

/* ─────── Responsive ─────── */
@media (max-width: 900px) {
    .ud-dossier-kpis { grid-template-columns: repeat(2, 1fr); }
    .ud-form-grid { grid-template-columns: 1fr; }
    .ud-two-cols { grid-template-columns: 1fr; }
    .ud-offre-grid { grid-template-columns: 1fr; }
    .ud-dossier-hero { flex-wrap: wrap; }
    .ud-dossier-hero-actions { width: 100%; }
    .ud-dossier-hero-actions .unidet-status-select { width: 100%; min-width: 0; }
}
@media (max-width: 640px) {
    .ud-dossier-kpis { grid-template-columns: 1fr; }
    .ud-assign-grid { grid-template-columns: 1fr; }
    .ud-perms-cards { grid-template-columns: 1fr; }
    .ud-priority-cards { grid-template-columns: 1fr; }
    .ud-pj-grid { grid-template-columns: 1fr; }
    .ud-modal-footer { flex-direction: column-reverse; }
    .ud-btn-cancel, .ud-btn-save { width: 100%; justify-content: center; }
}


/* ══════════════════════════════════════════════════════════
   🎯 BOUTON HISTORIQUE (dans la section Notifier)
   ══════════════════════════════════════════════════════════ */
.ud-btn-history {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: #fff;
    color: #0a0e17;
    border: 1.5px solid #e5e9f0;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    flex-shrink: 0;
}
.ud-btn-history:hover {
    border-color: #d4a373;
    background: #fdf9f0;
    color: #8B6F1F;
    transform: translateY(-1px);
}
.ud-btn-history-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: #ef4444;
    color: #fff;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1;
    margin-left: 2px;
}

/* ══════════════════════════════════════════════════════════
   🎯 POPUP HISTORIQUE (SweetAlert custom)
   ══════════════════════════════════════════════════════════ */
.unidet-swal-history-popup {
    border-radius: 20px !important;
    padding: 28px 26px 22px !important;
    box-shadow: 0 25px 70px rgba(10, 14, 23, 0.28) !important;
    border: none !important;
}
.unidet-swal-history-popup .swal2-html-container {
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}
.unidet-swal-history-popup .swal2-title,
.unidet-swal-history-popup .swal2-icon {
    display: none !important;
}
.unidet-swal-history-popup .swal2-close {
    font-size: 22px !important;
    color: #94a3b8 !important;
    transition: all 0.15s !important;
}
.unidet-swal-history-popup .swal2-close:hover {
    color: #0a0e17 !important;
    transform: rotate(90deg) !important;
}
.unidet-swal-history-confirm {
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 32px !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 14px rgba(10, 14, 23, 0.2) !important;
    margin-top: 20px !important;
    min-width: 140px !important;
}
.unidet-swal-history-confirm:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(10, 14, 23, 0.3) !important;
}

/* Scrollbar du contenu historique */
.unidet-swal-history-popup div::-webkit-scrollbar {
    width: 6px;
}
.unidet-swal-history-popup div::-webkit-scrollbar-thumb {
    background: #e5e9f0;
    border-radius: 3px;
}

/* ══════════════════════════════════════════════════════════
   🎯 BOUTON DANGER (SweetAlert — pour notifications)
   ══════════════════════════════════════════════════════════ */
.unidet-swal-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 28px !important;
    border-radius: 10px !important;
    font-family: inherit !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25) !important;
    letter-spacing: 0.2px !important;
    min-width: 140px !important;
}
.unidet-swal-danger:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 22px rgba(239, 68, 68, 0.35) !important;
}


/* ══════════════════════════════════════════════════════════
   🎯 BLOCS DE CONFIRMATION DANS LES POPUPS
   Uniformise le centrage + design
   ══════════════════════════════════════════════════════════ */

/* Les blocs colorés dans les popups SweetAlert */
.unidet-swal-success-popup .swal2-html-container > div > div[style*="border-left"],
.unidet-swal-popup .swal2-html-container > div > div[style*="border-left"] {
    text-align: center !important;
    border-left: none !important;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    max-width: 380px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Force tous les textes à rester centrés */
.unidet-swal-success-popup .swal2-html-container,
.unidet-swal-popup .swal2-html-container {
    text-align: center;
}


/* ══════════════════════════════════════════════════════════
   👥 ÉQUIPE — KPI CARDS
   ══════════════════════════════════════════════════════════ */
.ud-team-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.ud-team-kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    transition: all 0.15s;
}
.ud-team-kpi:hover {
    border-color: #d4a373;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(212, 163, 115, 0.08);
}
.ud-team-kpi-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.ud-team-kpi-body { min-width: 0; flex: 1; }
.ud-team-kpi-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 3px;
}
.ud-team-kpi-value {
    font-size: 20px;
    font-weight: 800;
    color: #0a0e17;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.ud-team-kpi-sub {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   👥 ÉQUIPE — FILTRES
   ══════════════════════════════════════════════════════════ */
.ud-team-filters {
    display: grid;
    grid-template-columns: minmax(200px, 2fr) 1fr 1fr 1fr;
    gap: 10px;
    padding: 14px;
    background: #f9fafb;
    border: 1px solid #f0f2f5;
    border-radius: 12px;
    margin-bottom: 14px;
}

/* ══════════════════════════════════════════════════════════
   👥 ÉQUIPE — GRID & CARTES
   ══════════════════════════════════════════════════════════ */
.ud-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}

.ud-team-card {
    background: #fff;
    border: 1px solid #f0f2f5;
    border-radius: 14px;
    padding: 16px;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    overflow: hidden;
}
.ud-team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #d4a373, #e5c89a);
    opacity: 0;
    transition: opacity 0.2s;
}
.ud-team-card:hover {
    border-color: #d4a373;
    box-shadow: 0 8px 24px rgba(212, 163, 115, 0.12);
    transform: translateY(-2px);
}
.ud-team-card:hover::before { opacity: 1; }

/* Head */
.ud-team-card-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ud-team-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5e7eb, #cbd5e1);
    color: #0a0e17;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.5px;
    position: relative;
    flex-shrink: 0;
}
.ud-team-avatar.is-admin {
    background: linear-gradient(135deg, #0a0e17, #1a1f2e);
    color: #d4a373;
}

/* Status dot */
.ud-team-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
}
.ud-team-status-dot.online  { background: #10b981; }
.ud-team-status-dot.offline { background: #94a3b8; }
.ud-team-status-dot.pending { background: #f59e0b; animation: udTeamPulse 1.5s infinite; }

@keyframes udTeamPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
    50%      { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.ud-team-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ud-team-name {
    font-size: 14.5px;
    font-weight: 700;
    color: #0a0e17;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ud-team-you {
    display: inline-flex;
    padding: 2px 8px;
    background: #f0f8ff;
    color: #005177;
    border-radius: 100px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.ud-team-email {
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ud-team-badges {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.ud-team-role {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}
.ud-team-role.admin { background: #0a0e17; color: #d4a373; }
.ud-team-role.gest  { background: #f0f8ff; color: #005177; }

.ud-team-suspended {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}
.ud-team-pending {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

/* Stats */
.ud-team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 12px;
    background: #f9fafb;
    border-radius: 10px;
    border: 1px solid #f0f2f5;
}
.ud-team-stat {
    text-align: center;
    min-width: 0;
}
.ud-team-stat-value {
    font-size: 18px;
    font-weight: 800;
    color: #0a0e17;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 3px;
}
.ud-team-stat-value.is-green  { color: #10b981; }
.ud-team-stat-value.is-orange { color: #f59e0b; }
.ud-team-stat-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #94a3b8;
    font-weight: 700;
}

/* Meta */
.ud-team-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 11.5px;
    color: #6b7280;
}
.ud-team-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}
.ud-team-meta-icon {
    font-size: 12px;
    opacity: 0.8;
    flex-shrink: 0;
}

/* Actions */
.ud-team-actions {
    display: flex;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
    margin-top: auto;
}
.ud-team-btn {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 9px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    white-space: nowrap;
}
.ud-btn-assign {
    background: linear-gradient(135deg, #0073aa, #005177);
    color: #fff;
}
.ud-btn-assign:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.25);
}
.ud-btn-edit-gest {
    background: #f0f8ff;
    color: #005177;
    border: 1px solid #d4e8f5;
}
.ud-btn-edit-gest:hover { background: #e0f2fa; }

.ud-team-btn-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e9f0;
    background: #fff;
    border-radius: 9px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.15s;
    padding: 0;
}
.ud-team-btn-icon:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}
.ud-btn-suspend-gest:hover {
    background: #fffbeb;
    border-color: #fcd34d;
}
.ud-btn-danger {
    color: #b32d2e;
    border-color: #fecaca;
}
.ud-btn-danger:hover {
    background: #fdecea;
    border-color: #ef4444;
    color: #991b1b;
}

/* ══════════════════════════════════════════════════════════
   👥 MODAL MODIFIER GESTIONNAIRE
   ══════════════════════════════════════════════════════════ */
.ud-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #f0f2f5;
}
.ud-modal-header-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.ud-modal-header-icon[data-color="blue"] {
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}
.ud-modal-header-icon[data-color="amber"] {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}
.ud-modal-header-text h3 {
    margin: 0 0 3px;
    font-size: 17px;
    font-weight: 800;
    color: #0a0e17;
    letter-spacing: -0.3px;
}
.ud-modal-header-text p {
    margin: 0;
    font-size: 12.5px;
    color: #94a3b8;
}

.ud-edit-gest-extra {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed #e5e9f0;
    text-align: center;
}
.ud-edit-gest-extra .ud-btn-secondary {
    width: 100%;
    justify-content: center;
    padding: 10px 18px;
}
.ud-edit-gest-extra-hint {
    margin: 8px 0 0;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.5;
    text-align: center;
}

/* ══════════════════════════════════════════════════════════
   🎯 SPINNER GLOBAL
   ══════════════════════════════════════════════════════════ */
@keyframes udSpin {
    to { transform: rotate(360deg); }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .ud-team-kpis { grid-template-columns: repeat(2, 1fr); }
    .ud-team-filters { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .ud-team-kpis { grid-template-columns: 1fr; }
    .ud-team-filters { grid-template-columns: 1fr; }
    .ud-team-grid { grid-template-columns: 1fr; }
    .ud-team-actions { flex-wrap: wrap; }
    .ud-team-btn { flex-basis: calc(50% - 3px); }
    .ud-team-btn-icon { flex-basis: auto; }
}

/* ══════════════════════════════════════════════════════════
   👥 MODAL CRÉER GESTIONNAIRE — Refonte
   ══════════════════════════════════════════════════════════ */

/* ─────── Hero Header ─────── */
.ud-create-gest-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #0a0e17 0%, #1a1f2e 100%);
    border-radius: 14px;
    margin-bottom: 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.ud-create-gest-hero::before {
    content: '';
    position: absolute;
    top: -60%; right: -10%;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.15) 0%, transparent 65%);
    pointer-events: none;
}
.ud-create-gest-hero-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    background: rgba(212, 163, 115, 0.15);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.ud-create-gest-hero-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}
.ud-create-gest-hero-text h3 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}
.ud-create-gest-hero-text p {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.45;
}

/* ─────── Field avec icône ─────── */
.ud-field-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}
.ud-field-with-icon .ud-field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 1;
}
.ud-field-with-icon input {
    padding-left: 42px !important;
}

/* ─────── Small error field ─────── */
.ud-field-error {
    display: none;
    margin-top: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #e74c3c;
    line-height: 1.4;
}

/* ─────── Role Cards ─────── */
.ud-role-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.ud-role-card {
    display: block;
    position: relative;
    cursor: pointer;
    margin: 0;
}
.ud-role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.ud-role-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #e5e9f0;
    border-radius: 12px;
    background: #fff;
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}
.ud-role-card:hover .ud-role-inner {
    border-color: #d4a373;
    background: #fdfcf9;
    transform: translateY(-1px);
}
.ud-role-card input:checked ~ .ud-role-inner {
    border-color: #d4a373;
    background: linear-gradient(135deg, #fdf9f0 0%, #fff 80%);
    box-shadow: 0 0 0 3px rgba(212, 163, 115, 0.1);
}
.ud-role-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.15s;
}
.ud-role-card input:checked ~ .ud-role-inner .ud-role-icon {
    background: linear-gradient(135deg, #d4a373, #b8895c);
    color: #fff;
    box-shadow: 0 4px 10px rgba(212, 163, 115, 0.3);
}
.ud-role-content {
    flex: 1;
    min-width: 0;
}
.ud-role-name {
    font-size: 14px;
    font-weight: 700;
    color: #0a0e17;
    margin-bottom: 3px;
    line-height: 1.2;
}
.ud-role-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
}
.ud-role-card input:checked ~ .ud-role-inner .ud-role-name {
    color: #8B6F1F;
}

/* Coche */
.ud-role-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s;
    margin-top: 2px;
}
.ud-role-card input:checked ~ .ud-role-inner .ud-role-check {
    border-color: #d4a373;
    background: #d4a373;
}
.ud-role-card input:checked ~ .ud-role-inner .ud-role-check::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

/* ─────── Info Banner ─────── */
.ud-create-gest-info {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: #f0f8ff;
    border: 1px solid #cce4f5;
    border-left: 4px solid #0073aa;
    border-radius: 0 12px 12px 0;
    margin: 16px 0;
    font-size: 12.5px;
    color: #1e40af;
    line-height: 1.6;
}
.ud-create-gest-info-icon {
    width: 34px;
    height: 34px;
    min-width: 34px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.ud-create-gest-info-text {
    flex: 1;
    min-width: 0;
}
.ud-create-gest-info-text strong {
    color: #0a4f78;
    font-weight: 700;
}

/* ─────── Footer (hérite du style existant .ud-modal-footer) ─────── */
.ud-modal-footer .ud-btn-save:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}
.ud-modal-footer .ud-btn-save:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ─────── Responsive ─────── */
@media (max-width: 640px) {
    .ud-role-inner {
        padding: 12px 14px;
        gap: 10px;
    }
    .ud-role-icon {
        width: 34px;
        height: 34px;
        min-width: 34px;
        font-size: 16px;
    }
    .ud-role-name { font-size: 13px; }
    .ud-role-desc { font-size: 11.5px; }
}


/* ═══════════════════════════════════════════════ */
/* FAQ Admin — Dashboard admin-unidet              */
/* ═══════════════════════════════════════════════ */

.ud-faq-admin-list { margin-top: 20px; }

.ud-faq-admin-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #94a3b8;
    font-size: 13px;
}

.ud-faq-admin-group {
    margin-bottom: 24px;
}

.ud-faq-admin-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px 10px 0 0;
    border: 1px solid #e5e9f0;
    border-bottom: none;
    font-size: 13px;
    font-weight: 700;
    color: #0a0e17;
}
.ud-faq-admin-group-icon { font-size: 18px; }
.ud-faq-admin-group-title { text-transform: uppercase; letter-spacing: 0.5px; }

.ud-faq-admin-items {
    border: 1px solid #e5e9f0;
    border-radius: 0 0 10px 10px;
    background: #fff;
    overflow: hidden;
}

.ud-faq-admin-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f4f8;
    transition: background 0.15s;
    cursor: grab;
}
.ud-faq-admin-item:last-child { border-bottom: none; }
.ud-faq-admin-item:hover { background: #fafbfc; }
.ud-faq-admin-item.is-dragging { opacity: 0.5; background: #f0f8ff; }
.ud-faq-admin-item.is-draft { background: #fffbeb; }
.ud-faq-admin-item.is-draft:hover { background: #fef3c7; }

.ud-faq-drag {
    color: #cbd5e1;
    font-size: 20px;
    line-height: 1;
    user-select: none;
    cursor: grab;
}
.ud-faq-drag:active { cursor: grabbing; }

.ud-faq-admin-body { flex: 1; min-width: 0; }

.ud-faq-admin-q {
    font-weight: 600;
    font-size: 14px;
    color: #0a0e17;
    line-height: 1.4;
    margin-bottom: 6px;
    word-break: break-word;
}

.ud-faq-admin-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
}

.ud-faq-admin-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 100px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-size: 10.5px;
}
.ud-faq-admin-status.is-published { background: #ecfdf5; color: #047857; }
.ud-faq-admin-status.is-draft     { background: #fef3c7; color: #92400e; }

.ud-faq-admin-order {
    color: #94a3b8;
    font-weight: 500;
    font-family: monospace;
}

.ud-faq-admin-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.ud-faq-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #e5e9f0;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
    padding: 0;
    line-height: 1;
}
.ud-faq-btn:hover {
    border-color: #0a0e17;
    background: #f8fafc;
    transform: translateY(-1px);
}
.ud-faq-btn-delete:hover {
    border-color: #e74c3c;
    background: #fee2e2;
}

/* ─── Modal catégories ─── */
.ud-faq-cats-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ud-faq-cat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #e5e9f0;
    border-radius: 10px;
    background: #fff;
    transition: all 0.15s;
}
.ud-faq-cat-row:hover { border-color: #cbd5e1; background: #fafbfc; }

.ud-faq-cat-icon {
    font-size: 22px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 10px;
    flex-shrink: 0;
}

.ud-faq-cat-info { flex: 1; min-width: 0; }
.ud-faq-cat-name { font-weight: 700; font-size: 14px; color: #0a0e17; }
.ud-faq-cat-desc { font-size: 12px; color: #94a3b8; margin-top: 2px; }

.ud-faq-cat-count {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 700;
    flex-shrink: 0;
}

/* ─── Spin loader (utilisé ailleurs aussi) ─── */
.ud-spin {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e9f0;
    border-top-color: #0a0e17;
    border-radius: 50%;
    animation: udSpin 0.7s linear infinite;
}
@keyframes udSpin { to { transform: rotate(360deg); } }

/* ─── SweetAlert custom ─── */
.unidet-swal-popup { border-radius: 16px !important; }
.unidet-swal-confirm {
    background: #0a0e17 !important;
    color: #fff !important;
    padding: 12px 26px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    cursor: pointer !important;
}
.unidet-swal-cancel {
    background: #f1f5f9 !important;
    color: #475569 !important;
    padding: 12px 26px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    cursor: pointer !important;
}
.unidet-swal-danger {
    background: #e74c3c !important;
    color: #fff !important;
    padding: 12px 26px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    border: none !important;
    cursor: pointer !important;
}
.swal2-input, .swal2-textarea, .swal2-select {
    border: 1.5px solid #e5e9f0 !important;
    border-radius: 8px !important;
    padding: 10px 12px !important;
    font-family: inherit !important;
    transition: border-color 0.15s !important;
}
.swal2-input:focus, .swal2-textarea:focus, .swal2-select:focus {
    border-color: #0a0e17 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(10,14,23,0.08) !important;
}

/* ───── Boutons du modal catégories ───── */
.ud-faq-cat-add-btn {
    background: #0a0e17;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.ud-faq-cat-add-btn:hover {
    background: #1a1f2e;
    transform: translateY(-1px);
}

.ud-faq-cat-btn-primary {
    background: #0a0e17;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.15s;
}
.ud-faq-cat-btn-primary:hover:not(:disabled) {
    background: #1a1f2e;
    transform: translateY(-1px);
}
.ud-faq-cat-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ud-faq-cat-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 10px 22px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.15s;
}
.ud-faq-cat-btn-secondary:hover {
    background: #e2e8f0;
}

.ud-faq-cat-btn-danger {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 9px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.15s;
}
.ud-faq-cat-btn-danger:hover:not(:disabled) {
    background: #c0392b;
    transform: translateY(-1px);
}
.ud-faq-cat-btn-danger:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.ud-faq-cat-back-btn {
    background: transparent;
    border: 1px solid #e5e9f0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    transition: all 0.15s;
}
.ud-faq-cat-back-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

/* ───── Toast ───── */
.unidet-swal-toast {
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
    font-family: inherit !important;
}
.unidet-swal-toast .swal2-title {
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: #0a0e17 !important;
}


/* ═══════════════════════════════════════════════ */
/* 🔓 IP Lockout — Dashboard                       */
/* ═══════════════════════════════════════════════ */

.ud-btn-danger-soft {
    background: #fef2f2 !important;
    color: #b91c1c !important;
    border: 1px solid #fecaca !important;
}
.ud-btn-danger-soft:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
}

/* ─── Formulaire déblocage manuel ─── */
.ud-ip-manual {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 20px;
}
.ud-ip-manual-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.ud-ip-manual-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}
.ud-ip-manual-title {
    font-weight: 700;
    font-size: 14px;
    color: #0a0e17;
    margin-bottom: 2px;
}
.ud-ip-manual-sub {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.5;
}
.ud-ip-manual-row {
    display: flex;
    gap: 10px;
}
.ud-ip-manual-row input {
    flex: 1;
    padding: 11px 14px;
    border: 1.5px solid #e5e9f0;
    border-radius: 9px;
    font-size: 13.5px;
    font-family: 'Courier New', monospace;
    transition: border-color 0.15s;
}
.ud-ip-manual-row input:focus {
    outline: none;
    border-color: #0a0e17;
    box-shadow: 0 0 0 3px rgba(10,14,23,0.06);
}
.ud-ip-manual-row .ud-btn-primary {
    padding: 11px 24px;
    font-size: 13.5px;
    white-space: nowrap;
}

/* ─── Liste ─── */
.ud-ip-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ud-ip-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1.5px solid #e5e9f0;
    background: #fff;
    transition: all 0.15s;
}
.ud-ip-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.ud-ip-item.is-locked {
    background: linear-gradient(90deg, #fef2f2 0%, #fff 100%);
    border-color: #fecaca;
}
.ud-ip-item.is-locked:hover {
    border-color: #fca5a5;
}

.ud-ip-item.is-watching {
    background: linear-gradient(90deg, #fffbeb 0%, #fff 100%);
    border-color: #fde68a;
}

.ud-ip-item-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 200px;
}
.ud-ip-ip {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 800;
    color: #0a0e17;
    letter-spacing: 0.3px;
    word-break: break-all;
}

.ud-ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    width: fit-content;
}
.ud-ip-badge-locked {
    background: #fee2e2;
    color: #991b1b;
}
.ud-ip-badge-watching {
    background: #fef3c7;
    color: #92400e;
}

.ud-ip-item-mid {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ud-ip-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 12.5px;
    color: #475569;
}
.ud-ip-meta-item { white-space: nowrap; }
.ud-ip-meta-item strong { color: #0a0e17; }

.ud-ip-remaining {
    font-size: 12px;
    color: #b91c1c;
    background: #fef2f2;
    padding: 5px 10px;
    border-radius: 6px;
    width: fit-content;
    border-left: 3px solid #ef4444;
}
.ud-ip-remaining strong { color: #991b1b; font-weight: 800; }

.ud-ip-item-right { flex-shrink: 0; }

.ud-ip-btn-unlock {
    background: #0a0e17;
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.ud-ip-btn-unlock:hover:not(:disabled) {
    background: #1a1f2e;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10,14,23,0.15);
}
.ud-ip-btn-unlock:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .ud-ip-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .ud-ip-item-left {
        min-width: auto;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    .ud-ip-item-right { width: 100%; }
    .ud-ip-btn-unlock { width: 100%; justify-content: center; }
    .ud-ip-manual-row { flex-direction: column; }
}

/* ═══════════════════════════════════════════════ */
/* 🎯 VUES DOSSIERS — Style type Notion            */
/* ═══════════════════════════════════════════════ */

/* ─── Container ─── */
.ud-view-tabs-wrap {
    margin: 0 0 22px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #eef2f6;
}

.ud-view-tabs {
    display: flex;
    align-items: stretch;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 1px;
    scroll-behavior: smooth;
}
.ud-view-tabs::-webkit-scrollbar { height: 6px; }
.ud-view-tabs::-webkit-scrollbar-track { background: transparent; }
.ud-view-tabs::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 3px;
}

/* ─── Chaque onglet ─── */
.ud-view-tab {
    --tab-color: #0a0e17;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px 14px;
    background: transparent;
    border: none;
    border-radius: 10px 10px 0 0;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s ease;
    outline: none;
    flex-shrink: 0;
}

/* Hover */
.ud-view-tab:hover:not(.active) {
    background: #f8fafc;
    color: #0a0e17;
}

/* Focus clavier */
.ud-view-tab:focus-visible {
    box-shadow: 0 0 0 2px var(--tab-color);
}

/* ─── Onglet ACTIF ─── */
.ud-view-tab.active {
    color: var(--tab-color);
    background: linear-gradient(180deg, transparent 60%, color-mix(in srgb, var(--tab-color) 8%, transparent) 100%);
}

/* Barre colorée sous l'onglet actif */
.ud-view-tab::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 3px;
    background: var(--tab-color);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.ud-view-tab.active::after {
    transform: scaleX(1);
}

/* ─── Icône ─── */
.ud-view-tab-icon {
    font-size: 15px;
    line-height: 1;
    transition: transform 0.2s;
}
.ud-view-tab.active .ud-view-tab-icon {
    transform: scale(1.15);
}

/* ─── Label ─── */
.ud-view-tab-label {
    letter-spacing: 0.2px;
}

/* ─── Compteur ─── */
.ud-view-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    background: #f1f5f9;
    color: #475569;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    transition: all 0.18s;
}
.ud-view-tab.active .ud-view-tab-count {
    background: var(--tab-color);
    color: #fff;
    box-shadow: 0 2px 8px color-mix(in srgb, var(--tab-color) 30%, transparent);
}

/* ─── Onglet vide (compteur = 0) ─── */
.ud-view-tab.is-empty:not(.active) {
    opacity: 0.5;
}
.ud-view-tab.is-empty:not(.active):hover {
    opacity: 0.8;
}
.ud-view-tab.is-empty .ud-view-tab-count {
    background: #f8fafc;
    color: #cbd5e1;
}

/* ─── Pastille rouge sur "À traiter" ─── */
.ud-view-tab-dot {
    position: absolute;
    top: 10px;
    right: 8px;
    width: 7px;
    height: 7px;
    background: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff;
    animation: udPulseDot 2s ease-in-out infinite;
}
@keyframes udPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.2); opacity: 0.7; }
}

/* ─── Couleurs par onglet ─── */
.ud-view-tab-all            { --tab-color: #0a0e17; }
.ud-view-tab-en_attente     { --tab-color: #f39c12; }
.ud-view-tab-actif          { --tab-color: #27ae60; }
.ud-view-tab-en_cours       { --tab-color: #0073aa; }
.ud-view-tab-cloture_paye   { --tab-color: #16a085; }
.ud-view-tab-cloture_impaye { --tab-color: #e74c3c; }
.ud-view-tab-refuse         { --tab-color: #94a3b8; }

/* ─── Animation fade-in de la table au switch ─── */
.ud-table-wrap.ud-table-fade-in,
.ud-table.ud-table-fade-in {
    animation: udViewFadeIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes udViewFadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── État vide ─── */
.ud-view-empty {
    padding: 60px 30px;
    text-align: center;
    background: #fff;
    border: 1.5px dashed #e5e9f0;
    border-radius: 14px;
    margin: 20px 0;
}
.ud-view-empty-icon {
    font-size: 56px;
    line-height: 1;
    opacity: 0.4;
    margin-bottom: 14px;
}
.ud-view-empty h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: #0a0e17;
}
.ud-view-empty p {
    margin: 0 0 20px;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.6;
}
.ud-view-empty .ud-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-size: 13.5px;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .ud-view-tabs {
        gap: 0;
        padding: 0 4px;
    }
    .ud-view-tab {
        padding: 10px 12px 12px;
        font-size: 12.5px;
        gap: 6px;
    }
    .ud-view-tab-icon { font-size: 14px; }
    .ud-view-tab-count {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
        padding: 0 5px;
    }
}

.ud-view-tab-paiement_recu { --tab-color: #8e44ad; }

/* ═══════════════════════════════════════════════════════════ */
    /* 💳 PORTAIL DÉBITEUR — CSS (minimal, hérite du reg-page)      */
    /* ═══════════════════════════════════════════════════════════ */

    /* 1. Neutralise la barre WP */
    html, body.unidet-payer-body { margin-top: 0 !important; padding-top: 0 !important; }
    body.unidet-payer-body #wpadminbar { display: none !important; }
    body.unidet-payer-body { background: #fafaf7 !important; }
    body.unidet-payer-body.admin-bar { top: 0 !important; }

    /* ═══════════════════════════════════════════════════════════ */
    /* 2. PARTIE GAUCHE — hérite du style reg-page de l'inscription */
    /*    Aucun override : laisse le thème gérer l'apparence        */
    /* ═══════════════════════════════════════════════════════════ */

    /* Juste une petite sécurité : si le contenu dépasse, scroll */
    body.unidet-payer-body .unidet-reg-left {
        overflow: hidden !important;
    }
    body.unidet-payer-body .unidet-reg-left-inner {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: 100vh;
        height: auto;
        padding: inherit; /* garde le padding du thème */
    }

    /* Si l'écran est vraiment petit, on réduit légèrement les marges */
    @media (max-height: 700px) {
        body.unidet-payer-body .unidet-reg-left-inner {
            padding-top: 24px !important;
            padding-bottom: 24px !important;
        }
        body.unidet-payer-body .unidet-reg-h1 {
            font-size: 24px !important;
        }
    }

    /* ═══════════════════════════════════════════════════════════ */
    /* 3. STEPPER HORIZONTAL (partie droite)                        */
    /* ═══════════════════════════════════════════════════════════ */
    body.unidet-payer-body .upayer-stepper-compact {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        margin: 0 0 24px !important;
        padding: 14px 0 !important;
        border-bottom: 1px solid #eef2f6;
        flex-wrap: nowrap !important;
    }
    body.unidet-payer-body .upayer-sc-step {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        opacity: 0.4;
        transition: opacity 0.25s;
        white-space: nowrap !important;
    }
    body.unidet-payer-body .upayer-sc-step.is-active { opacity: 1 !important; }
    body.unidet-payer-body .upayer-sc-step.is-done   { opacity: 0.85 !important; }
    body.unidet-payer-body .upayer-sc-num {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 26px !important;
        height: 26px !important;
        border-radius: 50% !important;
        background: #e2e8f0 !important;
        color: #475569 !important;
        font-size: 11.5px !important;
        font-weight: 800 !important;
        flex-shrink: 0 !important;
        transition: all 0.25s;
    }
    body.unidet-payer-body .upayer-sc-step.is-active .upayer-sc-num {
        background: #0a0e17 !important;
        color: #d4a373 !important;
        transform: scale(1.12);
    }
    body.unidet-payer-body .upayer-sc-step.is-done .upayer-sc-num {
        background: #27ae60 !important;
        color: #fff !important;
        font-size: 0 !important;
    }
    body.unidet-payer-body .upayer-sc-step.is-done .upayer-sc-num::before {
        content: '✓';
        font-size: 13px !important;
        font-weight: 800 !important;
    }
    body.unidet-payer-body .upayer-sc-label {
        display: inline-block !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.6px !important;
        color: #64748b !important;
    }
    body.unidet-payer-body .upayer-sc-line {
        display: block !important;
        width: 40px !important;
        height: 2px !important;
        background: #e2e8f0 !important;
        border-radius: 1px !important;
        flex-shrink: 0 !important;
    }

    /* ═══════════════════════════════════════════════════════════ */
    /* 4. INPUT RÉFÉRENCE                                            */
    /* ═══════════════════════════════════════════════════════════ */
    body.unidet-payer-body #upayer-reference {
        font-family: 'Courier New', 'SF Mono', Consolas, monospace !important;
        letter-spacing: 3px !important;
        text-transform: uppercase !important;
        font-weight: 800 !important;
        font-size: 17px !important;
        text-align: center !important;
        background: #f8fafc !important;
        border: 2px dashed #e5e9f0 !important;
        transition: all 0.2s !important;
        padding: 16px 18px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        color: #0a0e17 !important;
        border-radius: 12px !important;
    }
    body.unidet-payer-body #upayer-reference::placeholder {
        color: #cbd5e1 !important;
        letter-spacing: 3px !important;
        font-weight: 700 !important;
    }
    body.unidet-payer-body #upayer-reference:focus {
        background: #fff !important;
        border: 2px solid #0a0e17 !important;
        border-style: solid !important;
        box-shadow: 0 0 0 4px rgba(10,14,23,0.06) !important;
        outline: none !important;
    }
    body.unidet-payer-body #upayer-reference.is-valid {
        border-color: #10b981 !important;
        border-style: solid !important;
        background: #ecfdf5 !important;
    }
    body.unidet-payer-body #upayer-reference.is-invalid {
        border-color: #ef4444 !important;
        border-style: solid !important;
        background: #fef2f2 !important;
    }

    /* Hint format */
    body.unidet-payer-body .upayer-format-hint {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        margin-top: 10px !important;
        font-size: 11.5px !important;
        color: #94a3b8 !important;
        font-weight: 600 !important;
    }
    body.unidet-payer-body .upayer-format-hint code {
        background: #f1f5f9 !important;
        padding: 3px 10px !important;
        border-radius: 5px !important;
        color: #475569 !important;
        font-weight: 800 !important;
        letter-spacing: 1.5px !important;
        font-family: 'Courier New', monospace !important;
        transition: all 0.2s !important;
    }

    /* ═══════════════════════════════════════════════════════════ */
    /* 5. BOUTON RETOUR — pas de hover rouge                        */
    /* ═══════════════════════════════════════════════════════════ */
    body.unidet-payer-body .upayer-back-link,
    body.unidet-payer-body a.upayer-back-link {
        display: block !important;
        width: 100% !important;
        background: transparent !important;
        background-color: transparent !important;
        border: none !important;
        color: #64748b !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        text-decoration: none !important;
        padding: 14px 0 6px !important;
        margin: 0 auto !important;
        transition: color 0.15s !important;
        font-family: inherit !important;
        text-align: center !important;
        box-shadow: none !important;
        outline: none !important;
    }
    body.unidet-payer-body .upayer-back-link:hover,
    body.unidet-payer-body .upayer-back-link:focus,
    body.unidet-payer-body .upayer-back-link:active,
    body.unidet-payer-body .upayer-back-link:focus-visible,
    body.unidet-payer-body a.upayer-back-link:hover,
    body.unidet-payer-body a.upayer-back-link:focus,
    body.unidet-payer-body a.upayer-back-link:active {
        background: transparent !important;
        background-color: transparent !important;
        color: #0a0e17 !important;
        text-decoration: none !important;
        box-shadow: none !important;
        outline: none !important;
        transform: none !important;
    }

    /* ═══════════════════════════════════════════════════════════ */
    /* 6. ERREUR INLINE                                              */
    /* ═══════════════════════════════════════════════════════════ */
    body.unidet-payer-body .upayer-inline-error {
        display: none;
        align-items: flex-start !important;
        gap: 8px !important;
        background: #fef2f2 !important;
        border-left: 4px solid #ef4444 !important;
        padding: 12px 16px !important;
        border-radius: 0 10px 10px 0 !important;
        color: #7f1d1d !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin: 14px 0 !important;
    }
    body.unidet-payer-body .upayer-inline-error-icon {
        font-size: 15px !important;
        flex-shrink: 0 !important;
    }

    /* ═══════════════════════════════════════════════════════════ */
    /* 7. Responsive mobile                                          */
    /* ═══════════════════════════════════════════════════════════ */
    @media (max-width: 768px) {
        body.unidet-payer-body .upayer-sc-label { display: none !important; }
        body.unidet-payer-body .upayer-sc-line { width: 24px !important; }
    }

}

/* ═══════════════════════════════════════════════════════════ */
/* 🎯 TABS ADMIN — Grille de pilules (Notion-like)            */
/* ═══════════════════════════════════════════════════════════ */
#ud-view-tabs {
    display: grid !important;
    grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    overflow: visible !important;
    white-space: normal !important;
    width: 100% !important;
}

/* Conteneur externe */
.ud-view-tabs-wrap {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
    overflow: visible !important;
}

#ud-view-tabs .ud-view-tab {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    padding: 10px 11px !important;
    background: #ffffff !important;
    border: 1.5px solid #e8ecf1 !important;
    border-radius: 11px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    text-align: left !important;
    transition: all 0.15s ease !important;
    outline: none !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
    min-width: 0 !important;
    overflow: hidden !important;
    position: relative !important;
    margin: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

#ud-view-tabs .ud-view-tab:hover {
    border-color: #0a0e17 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(10, 14, 23, 0.08) !important;
    background: #ffffff !important;
}

/* Icône */
#ud-view-tabs .ud-view-tab-icon {
    font-size: 15px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
}

/* Label */
#ud-view-tabs .ud-view-tab-label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    letter-spacing: -0.1px !important;
}

/* Compteur */
#ud-view-tabs .ud-view-tab-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 7px !important;
    border-radius: 100px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    flex-shrink: 0 !important;
    font-variant-numeric: tabular-nums !important;
    line-height: 1 !important;
}

/* Petit point "à traiter" */
#ud-view-tabs .ud-view-tab-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #ef4444 !important;
    flex-shrink: 0 !important;
    display: inline-block !important;
    margin-left: -2px !important;
    animation: udcDotPulse 1.6s ease-in-out infinite !important;
}
@keyframes udcDotPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.4; }
}

/* ═══ État actif ═══ */
#ud-view-tabs .ud-view-tab.active {
    background: #0a0e17 !important;
    border-color: #0a0e17 !important;
    box-shadow: 0 4px 14px rgba(10, 14, 23, 0.22) !important;
    transform: none !important;
}
#ud-view-tabs .ud-view-tab.active .ud-view-tab-label {
    color: #ffffff !important;
}
#ud-view-tabs .ud-view-tab.active .ud-view-tab-count {
    background: #d4a373 !important;
    color: #0a0e17 !important;
}
#ud-view-tabs .ud-view-tab.active .ud-view-tab-icon {
    filter: brightness(1.15) !important;
}

/* ═══ État vide ═══ */
#ud-view-tabs .ud-view-tab.is-empty:not(.active) {
    opacity: 0.5 !important;
}

/* ═══ Responsive ═══ */
@media (max-width: 1400px) {
    #ud-view-tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 700px) {
    #ud-view-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }
    #ud-view-tabs .ud-view-tab {
        padding: 9px 10px !important;
    }
    #ud-view-tabs .ud-view-tab-label {
        font-size: 11.5px !important;
    }
}


.ud-table-clients .ud-col-avatar { width: 50px; }
.ud-client-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0a0e17, #1a1f2e);
    color: #d4a373;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.5px;
}
.ud-badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px; height: 24px;
    padding: 0 10px;
    border-radius: 100px;
    background: #f1f5f9;
    color: #0a0e17;
    font-size: 12px;
    font-weight: 800;
}
.ud-action-btn-danger:hover { background: #fee2e2 !important; color: #dc2626 !important; }


/* ═══════════════════════════════════════════════════════════
   TABLE DOSSIERS — ADMIN UNIDET
   ═══════════════════════════════════════════════════════════ */

.ud-table-dossiers {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 13px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: #fff !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(15,23,42,0.05) !important;
    border: 1px solid #e8ecf1 !important;
}

/* ── HEAD ── */
.ud-table-dossiers thead {
    background: #f8fafc !important;
}
.ud-table-dossiers thead th {
    padding: 14px 16px !important;
    text-align: left !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #64748b !important;
    border-bottom: 1px solid #e8ecf1 !important;
    white-space: nowrap !important;
    background: #f8fafc !important;
}
.ud-table-dossiers thead th.ud-col-num     { width: 48px !important;  text-align: center !important; }
.ud-table-dossiers thead th.ud-col-ref     { width: 190px !important; }
.ud-table-dossiers thead th.ud-col-debiteur{ width: 22% !important; }
.ud-table-dossiers thead th.ud-col-client  { width: 20% !important; }
.ud-table-dossiers thead th.ud-col-montant { width: 120px !important; text-align: right !important; }
.ud-table-dossiers thead th.ud-col-statut  { width: 130px !important; }
.ud-table-dossiers thead th.ud-col-gest    { width: 170px !important; }
.ud-table-dossiers thead th.ud-col-actions { width: 110px !important; text-align: right !important; }

/* ── ROWS ── */
.ud-table-dossiers tbody tr.ud-admin-row {
    transition: background 0.15s ease !important;
    border-bottom: 1px solid #f0f4f8 !important;
}
.ud-table-dossiers tbody tr.ud-admin-row:last-child {
    border-bottom: none !important;
}
.ud-table-dossiers tbody tr.ud-admin-row:hover {
    background: #fafbfc !important;
}

.ud-table-dossiers tbody td {
    padding: 14px 16px !important;
    vertical-align: middle !important;
    color: #0a0e17 !important;
    border-bottom: 1px solid #f0f4f8 !important;
}
.ud-table-dossiers tbody tr:last-child td {
    border-bottom: none !important;
}

/* ── COL # ── */
.ud-table-dossiers .ud-row-num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums !important;
}

/* ── COL RÉFÉRENCE ── */
.ud-ref-cell {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.ud-ref {
    font-family: 'Courier New', monospace !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #0a0e17 !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.ud-ref-date {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
}
.ud-ref-date svg {
    width: 11px !important;
    height: 11px !important;
    stroke: #cbd5e1 !important;
}

/* ── CELLULES PARTIE (Débiteur / Client) ── */
.ud-party-cell {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
}
.ud-party-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0 !important;
}
.ud-party-avatar.debiteur {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
    color: #92400e !important;
}
.ud-party-avatar.client {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    color: #1e40af !important;
}
.ud-party-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    min-width: 0 !important;
    flex: 1 !important;
}
.ud-party-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
}
.ud-party-mail {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
}

/* ── COL MONTANT ── */
.ud-table-dossiers .ud-col-montant {
    text-align: right !important;
}
.ud-table-dossiers .ud-montant {
    font-family: 'Courier New', monospace !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    color: #0a0e17 !important;
    font-variant-numeric: tabular-nums !important;
    letter-spacing: -0.2px !important;
}

/* ── BADGES STATUT ── */
.ud-table-dossiers .ud-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    border-radius: 100px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    letter-spacing: 0.1px !important;
    line-height: 1.2 !important;
}
.ud-table-dossiers .ud-badge-actif          { background: #ecfdf5 !important; color: #047857 !important; }
.ud-table-dossiers .ud-badge-en_cours       { background: #eff6ff !important; color: #1d4ed8 !important; }
.ud-table-dossiers .ud-badge-en_attente     { background: #fff7ed !important; color: #c2410c !important; }
.ud-table-dossiers .ud-badge-paiement_recu  { background: #f5f3ff !important; color: #6d28d9 !important; }
.ud-table-dossiers .ud-badge-paye           { background: #ecfdf5 !important; color: #047857 !important; }
.ud-table-dossiers .ud-badge-impaye         { background: #fef2f2 !important; color: #b91c1c !important; }
.ud-table-dossiers .ud-badge-refuse         { background: #f1f5f9 !important; color: #475569 !important; }
.ud-table-dossiers .ud-badge-default        { background: #f1f5f9 !important; color: #475569 !important; }

/* ── COL GESTIONNAIRE ── */
.ud-gest-cell {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}
.ud-gest-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 50% !important;
    background: #0a0e17 !important;
    color: #d4a373 !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    flex-shrink: 0 !important;
}
.ud-gest-avatar.is-admin {
    background: linear-gradient(135deg, #d4a373 0%, #b8895c 100%) !important;
    color: #fff !important;
}
.ud-gest-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
    min-width: 0 !important;
}
.ud-gest-name {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.3 !important;
}
.ud-gest-role {
    font-size: 10.5px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}
.ud-gest-unassigned {
    display: inline-block !important;
    font-size: 12px !important;
    color: #cbd5e1 !important;
    font-style: italic !important;
    font-weight: 600 !important;
}

/* ── BOUTON ACTION ── */
.ud-table-dossiers .ud-btn-edit {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 12px !important;
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #0a0e17 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    outline: none !important;
    text-decoration: none !important;
    line-height: 1 !important;
}
.ud-table-dossiers .ud-btn-edit:hover {
    background: #0a0e17 !important;
    border-color: #0a0e17 !important;
    color: #d4a373 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 10px rgba(10,14,23,0.15) !important;
}
.ud-table-dossiers .ud-btn-edit:active {
    transform: translateY(0) !important;
}
.ud-table-dossiers .ud-btn-edit svg {
    width: 13px !important;
    height: 13px !important;
    stroke: currentColor !important;
    flex-shrink: 0 !important;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
    .ud-table-dossiers thead th.ud-col-client,
    .ud-table-dossiers td.ud-col-client { display: none !important; }
}
@media (max-width: 900px) {
    .ud-table-dossiers thead th.ud-col-gest,
    .ud-table-dossiers td.ud-col-gest { display: none !important; }
    .ud-table-dossiers thead th.ud-col-ref { width: auto !important; }
}
@media (max-width: 680px) {
    .ud-table-dossiers thead th.ud-col-num,
    .ud-table-dossiers td.ud-col-num { display: none !important; }
    .ud-table-dossiers thead th,
    .ud-table-dossiers tbody td { padding: 12px 10px !important; }
    .ud-table-dossiers .ud-party-mail { display: none !important; }
    .ud-table-dossiers .ud-btn-edit span { display: none !important; }
    .ud-table-dossiers .ud-btn-edit { padding: 8px 10px !important; }
}

/* ═══════════════════════════════════════════════════════════
   🎯 COLONNE ACTIONS STICKY — reste visible au scroll
   ═══════════════════════════════════════════════════════════ */

/* Wrapper qui autorise le scroll horizontal */
.ud-table-wrap {
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
    position: relative !important;
    border-radius: 14px !important;
}

/* Largeur minimale pour forcer le scroll quand nécessaire */
.ud-table-dossiers {
    min-width: 1100px !important;
}

/* ── HEADER sticky ── */
.ud-table-dossiers thead th.ud-col-actions {
    position: sticky !important;
    right: 0 !important;
    z-index: 3 !important;
    background: #f8fafc !important;
    box-shadow: -8px 0 12px -8px rgba(10,14,23,0.12) !important;
    border-left: 1px solid #e8ecf1 !important;
}

/* ── CELLULE sticky ── */
.ud-table-dossiers tbody td.ud-col-actions {
    position: sticky !important;
    right: 0 !important;
    z-index: 2 !important;
    background: #fff !important;
    box-shadow: -8px 0 12px -8px rgba(10,14,23,0.12) !important;
    border-left: 1px solid #f0f4f8 !important;
}

/* Conserve le hover sur la ligne collée */
.ud-table-dossiers tbody tr.ud-admin-row:hover td.ud-col-actions {
    background: #fafbfc !important;
}

/* Ajuste le padding pour que le bouton respire */
.ud-table-dossiers thead th.ud-col-actions,
.ud-table-dossiers tbody td.ud-col-actions {
    padding-left: 18px !important;
    padding-right: 20px !important;
}

/* ── Indicateur visuel de scroll (optionnel) ── */
.ud-table-dossiers {
    position: relative !important;
}
.ud-table-dossiers::after {
    content: '' !important;
    display: block !important;
    height: 1px !important;
}



.ud-table-dossiers tbody tr.ud-admin-row {
    cursor: pointer !important;
}

/* Désactive le curseur sur les liens/boutons internes */
.ud-table-dossiers tbody tr.ud-admin-row a,
.ud-table-dossiers tbody tr.ud-admin-row button {
    cursor: pointer !important;
}

/* ═══════════════════════════════════════════════════════════
   📋 TABLE DOSSIERS CLIENT — Layout compact sans scroll
   ═══════════════════════════════════════════════════════════ */

/* Empêche le scroll horizontal global */
.ud-table-wrap {
    overflow-x: hidden !important;
    width: 100% !important;
}

.ud-table-dossiers-client {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

.ud-table-dossiers-client th,
.ud-table-dossiers-client td {
    padding: 10px 8px !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
}

.ud-table-dossiers-client th {
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    color: #64748b !important;
    font-weight: 800 !important;
    padding: 12px 8px !important;
}

/* ═══ LARGEURS DE COLONNES (total = 100%) ═══ */
.ud-table-dossiers-client .ud-col-num      { width: 3%  !important; text-align: center !important; }
.ud-table-dossiers-client .ud-col-ref      { width: 17% !important; }
.ud-table-dossiers-client .ud-col-debiteur { width: 22% !important; }
.ud-table-dossiers-client .ud-col-montant  { width: 12% !important; text-align: right !important; padding-right: 14px !important; }
.ud-table-dossiers-client .ud-col-statut   { width: 13% !important; }
.ud-table-dossiers-client .ud-col-gest     { width: 16% !important; }
.ud-table-dossiers-client .ud-col-date     { width: 11% !important; }
.ud-table-dossiers-client .ud-col-actions  { width: 6%  !important; text-align: right !important; padding-right: 12px !important; }

/* ═══ TRONCATURE UNIFORME ═══ */
.ud-table-dossiers-client .ud-ref,
.ud-table-dossiers-client .ud-party-name,
.ud-table-dossiers-client .ud-party-mail,
.ud-table-dossiers-client .ud-gest-name,
.ud-table-dossiers-client .ud-cell-primary,
.ud-table-dossiers-client .ud-cell-secondary {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    display: block !important;
}

/* Référence en monospace compact */
.ud-table-dossiers-client .ud-ref {
    font-family: 'Courier New', monospace !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    color: #0a0e17 !important;
    letter-spacing: 0.2px !important;
}

/* ═══ CELLULE DÉBITEUR ═══ */
.ud-table-dossiers-client .ud-party-cell {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.ud-table-dossiers-client .ud-party-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    flex-shrink: 0 !important;
}

.ud-table-dossiers-client .ud-party-info {
    flex: 1 !important;
    min-width: 0 !important;
}

.ud-table-dossiers-client .ud-party-name {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    line-height: 1.3 !important;
    margin-bottom: 1px !important;
}

.ud-table-dossiers-client .ud-party-mail {
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
}

/* ═══ CELLULE MONTANT ═══ */
.ud-table-dossiers-client .ud-montant {
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
}

/* ═══ CELLULE STATUT ═══ */
.ud-table-dossiers-client .ud-badge {
    display: inline-block !important;
    padding: 4px 10px !important;
    border-radius: 100px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ═══ CELLULE GESTIONNAIRE ═══ */
.ud-table-dossiers-client .ud-gest-cell {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.ud-table-dossiers-client .ud-gest-avatar {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    background: #e0e7ff !important;
    color: #3730a3 !important;
    flex-shrink: 0 !important;
}

.ud-table-dossiers-client .ud-gest-avatar.is-admin {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.ud-table-dossiers-client .ud-gest-info {
    min-width: 0 !important;
    flex: 1 !important;
}

.ud-table-dossiers-client .ud-gest-name {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    line-height: 1.3 !important;
    margin-bottom: 1px !important;
}

.ud-table-dossiers-client .ud-gest-role {
    font-size: 10.5px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}

.ud-table-dossiers-client .ud-gest-unassigned {
    font-size: 11.5px !important;
    color: #cbd5e1 !important;
    font-style: italic !important;
    white-space: nowrap !important;
}

/* ═══ CELLULE DATE ═══ */
.ud-table-dossiers-client .ud-date-cell {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.ud-table-dossiers-client .ud-date-main {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
}

.ud-table-dossiers-client .ud-date-sub {
    font-size: 10.5px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* ═══ ACTIONS ═══ */
.ud-table-dossiers-client .ud-col-actions .ud-action-group {
    display: inline-flex !important;
    gap: 4px !important;
    justify-content: flex-end !important;
}

.ud-table-dossiers-client .ud-action-btn {
    width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1.5px solid #e2e8f0 !important;
    background: #fff !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
}

.ud-table-dossiers-client .ud-action-btn:hover {
    background: #0a0e17 !important;
    border-color: #0a0e17 !important;
    color: #d4a373 !important;
}

.ud-table-dossiers-client .ud-action-btn-thread {
    background: linear-gradient(135deg, #d4a373 0%, #c09260 100%) !important;
    border-color: transparent !important;
    color: #fff !important;
}

/* ═══ RESPONSIVE : MODE CARTE POUR MOBILE ═══ */
@media (max-width: 900px) {
    .ud-table-dossiers-client thead {
        display: none !important;
    }
    .ud-table-dossiers-client,
    .ud-table-dossiers-client tbody,
    .ud-table-dossiers-client tr,
    .ud-table-dossiers-client td {
        display: block !important;
        width: 100% !important;
    }
    .ud-table-dossiers-client tr {
        background: #fff !important;
        border: 1px solid #eef2f6 !important;
        border-radius: 12px !important;
        padding: 14px !important;
        margin-bottom: 10px !important;
        position: relative !important;
    }
    .ud-table-dossiers-client td {
        padding: 6px 0 !important;
        border: none !important;
        text-align: left !important;
    }
    .ud-table-dossiers-client .ud-col-num {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: auto !important;
        background: #f1f5f9 !important;
        color: #475569 !important;
        padding: 3px 8px !important;
        border-radius: 100px !important;
        font-size: 10.5px !important;
        font-weight: 800 !important;
    }
    .ud-table-dossiers-client .ud-col-actions {
        text-align: left !important;
        padding-top: 10px !important;
        border-top: 1px solid #eef2f6 !important;
        margin-top: 10px !important;
    }
    .ud-table-dossiers-client .ud-col-actions .ud-action-group {
        justify-content: flex-start !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   📋 TABLE MINI DASHBOARD — Layout compact sans scroll
   ═══════════════════════════════════════════════════════════ */

.ud-mini-table {
    overflow-x: hidden !important;
    width: 100% !important;
    border-radius: 12px !important;
    border: 1px solid #eef2f6 !important;
    background: #fff !important;
}

.ud-mini-table table {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}

.ud-mini-table thead th {
    padding: 11px 10px !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    color: #64748b !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #eef2f6 !important;
    text-align: left !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.ud-mini-table tbody td {
    padding: 12px 10px !important;
    font-size: 13px !important;
    color: #0a0e17 !important;
    border-bottom: 1px solid #f0f4f8 !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.ud-mini-table tbody tr:last-child td {
    border-bottom: none !important;
}

.ud-mini-table tbody tr:hover {
    background: #f8fafc !important;
}

/* ═══ LARGEURS DE COLONNES (total = 100%) ═══ */
.ud-mini-table thead th:nth-child(1) { width: 3%  !important; }  /* # */
.ud-mini-table thead th:nth-child(2) { width: 22% !important; }  /* Débiteur */
.ud-mini-table thead th:nth-child(3) { width: 13% !important; text-align: right !important; } /* Montant */
.ud-mini-table thead th:nth-child(4) { width: 14% !important; }  /* Statut */
.ud-mini-table thead th:nth-child(5) { width: 12% !important; }  /* Date dépôt */
.ud-mini-table thead th:nth-child(6) { width: 16% !important; }  /* Dernière MAJ */
.ud-mini-table thead th:nth-child(7) { width: 20% !important; text-align: right !important; } /* Actions */

/* ═══ CELLULES SPÉCIFIQUES ═══ */
.ud-mini-table .ud-col-num {
    text-align: center !important;
}

.ud-mini-table .ud-row-num {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 6px !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    font-family: 'Courier New', monospace !important;
}

.ud-mini-table .ud-col-montant {
    text-align: right !important;
    padding-right: 16px !important;
}

.ud-mini-table .ud-montant {
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
}

.ud-mini-table .ud-col-date {
    font-size: 12.5px !important;
    color: #64748b !important;
    font-weight: 600 !important;
}

.ud-mini-table .ud-badge {
    display: inline-block !important;
    padding: 4px 10px !important;
    border-radius: 100px !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    vertical-align: middle !important;
}

/* ═══ ACTIONS ═══ */
.ud-mini-table .ud-col-actions {
    text-align: right !important;
    padding-right: 14px !important;
}

.ud-mini-table .ud-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 6px 12px !important;
    background: #fff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    color: #0a0e17 !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

.ud-mini-table .ud-action-btn:hover {
    background: #0a0e17 !important;
    border-color: #0a0e17 !important;
    color: #d4a373 !important;
    transform: translateY(-1px) !important;
}

/* ═══ TITRE DE COLONNE AVEC EMOJI ═══ */
.ud-mini-table .ud-mini-empty-row td {
    padding: 0 !important;
    border: none !important;
}

/* ═══ RESPONSIVE : CARTES SUR MOBILE ═══ */
@media (max-width: 900px) {
    .ud-mini-table {
        border: none !important;
        background: transparent !important;
    }
    .ud-mini-table thead {
        display: none !important;
    }
    .ud-mini-table,
    .ud-mini-table tbody,
    .ud-mini-table tr,
    .ud-mini-table td {
        display: block !important;
        width: 100% !important;
    }
    .ud-mini-table tbody tr {
        background: #fff !important;
        border: 1px solid #eef2f6 !important;
        border-radius: 12px !important;
        padding: 14px !important;
        margin-bottom: 10px !important;
        position: relative !important;
        box-shadow: 0 1px 3px rgba(10,14,23,0.04) !important;
    }
    .ud-mini-table tbody td {
        padding: 6px 0 !important;
        border: none !important;
        text-align: left !important;
        white-space: normal !important;
    }
    .ud-mini-table tbody td::before {
        content: attr(data-label) " : " !important;
        font-size: 10.5px !important;
        font-weight: 800 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        display: inline-block !important;
        margin-right: 8px !important;
    }
    .ud-mini-table .ud-col-num {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        width: auto !important;
        padding: 0 !important;
    }
    .ud-mini-table .ud-col-num::before {
        display: none !important;
    }
    .ud-mini-table .ud-col-montant {
        text-align: left !important;
        padding-right: 0 !important;
    }
    .ud-mini-table .ud-col-actions {
        text-align: left !important;
        padding: 10px 0 0 !important;
        border-top: 1px solid #eef2f6 !important;
        margin-top: 10px !important;
    }
    .ud-mini-table .ud-col-actions::before {
        display: none !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   ✨ HOVER — Lignes de tableaux de dossiers
   ═══════════════════════════════════════════════════════════ */

/* Force un fond neutre pour toutes les lignes au repos */
.ud-table-dossiers-client tbody tr,
.ud-table-dossiers-client tbody tr:nth-child(even),
.ud-table-dossiers-client tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
    transition: background-color 0.15s ease, box-shadow 0.15s ease !important;
}

/* Hover : léger doré très subtil (couleur Unidet) */
.ud-table-dossiers-client tbody tr:hover {
    background-color: #fef9f0 !important;
    box-shadow: inset 3px 0 0 0 #d4a373 !important;
}

/* Ligne survolée → renforce légèrement la référence */
.ud-table-dossiers-client tbody tr:hover .ud-ref {
    color: #a0824d !important;
}

/* Ligne survolée → le bouton Voir devient un peu plus visible */
.ud-table-dossiers-client tbody tr:hover .ud-action-btn:not(.ud-action-btn-thread) {
    border-color: #d4a373 !important;
    color: #a0824d !important;
}

/* Neutralise les hovers parasites hérités du thème */
.ud-table-dossiers-client tbody tr a:hover,
.ud-table-dossiers-client tbody tr button:hover {
    text-decoration: none !important;
}

/* Supprime le hover par défaut du thème sur les tableaux */
.ud-table-dossiers-client tr:hover td {
    background: transparent !important;
}

/* ═══ Même chose pour la version responsive (cartes mobiles) ═══ */
@media (max-width: 900px) {
    .ud-table-dossiers-client tbody tr {
        background-color: #ffffff !important;
        box-shadow: 0 1px 3px rgba(10,14,23,0.04) !important;
    }
    .ud-table-dossiers-client tbody tr:hover {
        background-color: #fffdf9 !important;
        box-shadow: 0 4px 12px rgba(212,163,115,0.15) !important;
        transform: translateY(-1px) !important;
    }
}











/* ═══════════════════════════════════════════════════════════════════
   🎯 DASHBOARD UNIDET — Compact élégant
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   1. SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.ud-sidebar {
    width: 220px !important;
    min-width: 220px !important;
}
.ud-sidebar-head  { padding: 18px 16px 14px !important; }
.ud-brand-logo img { width: 44px !important; height: 44px !important; }
.ud-nav { padding: 14px 10px !important; }
.ud-nav-group { margin-top: 16px !important; }
.ud-nav-group-title { font-size: 9.5px !important; padding: 0 8px 6px !important; }
.ud-nav-item {
    padding: 9px 12px !important;
    font-size: 13px !important;
    border-radius: 9px !important;
    gap: 10px !important;
}
.ud-nav-icon { font-size: 16px !important; width: 20px !important; }
.ud-nav-badge { font-size: 10.5px !important; height: 20px !important; min-width: 20px !important; }
.ud-sidebar-foot { padding: 14px 12px !important; }
.ud-logout-btn { padding: 9px 12px !important; font-size: 12.5px !important; }

/* ═══════════════════════════════════════════════════════════
   2. TOPBAR
   ═══════════════════════════════════════════════════════════ */
.ud-topbar { padding: 16px 28px !important; min-height: 64px !important; }
.ud-topbar-title h1 { font-size: 20px !important; margin: 0 !important; line-height: 1.2 !important; }
.ud-topbar-title p  { font-size: 12.5px !important; margin: 2px 0 0 !important; }
.ud-bell { width: 38px !important; height: 38px !important; font-size: 17px !important; }
.ud-bell-badge { font-size: 10px !important; min-width: 17px !important; height: 17px !important; }

/* ═══════════════════════════════════════════════════════════
   3. BODY
   ═══════════════════════════════════════════════════════════ */
.ud-body { padding: 22px 28px !important; }

/* ═══════════════════════════════════════════════════════════
   4. KPI CARDS — Version compacte, valeurs jamais tronquées
   ═══════════════════════════════════════════════════════════ */
.ud-home-kpis {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 20px !important;
}

.ud-home-kpi {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    min-width: 0 !important;
    min-height: 90px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.ud-home-kpi-icon {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    font-size: 20px !important;
    border-radius: 11px !important;
    flex-shrink: 0 !important;
}

.ud-home-kpi-body {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.ud-home-kpi-label {
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: 0.4px !important;
    text-transform: uppercase !important;
    margin-bottom: 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #94a3b8 !important;
}

.ud-home-kpi-value {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.5px !important;
    margin-bottom: 3px !important;
    color: #0a0e17 !important;
    /* ⭐ Autorise 2 lignes si vraiment trop long, mais évite l'ellipsis moche */
    white-space: normal !important;
    overflow: hidden !important;
    word-break: break-word !important;
    font-variant-numeric: tabular-nums !important;
}

.ud-home-kpi-sub {
    font-size: 11px !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Sur grand écran, on peut agrandir un peu */
@media (min-width: 1400px) {
    .ud-home-kpi-value { font-size: 22px !important; }
    .ud-home-kpi { padding: 18px 20px !important; min-height: 96px !important; }
}

/* Sur écran moyen, on réduit */
@media (max-width: 1200px) {
    .ud-home-kpi-value { font-size: 18px !important; }
    .ud-home-kpi { padding: 14px 14px !important; gap: 10px !important; }
    .ud-home-kpi-icon { width: 38px !important; height: 38px !important; min-width: 38px !important; font-size: 17px !important; }
}

/* ═══════════════════════════════════════════════════════════
   5. HERO CTA (bandeau noir "Transmettre une créance")
   ═══════════════════════════════════════════════════════════ */
.ud-home-hero-cta {
    padding: 18px 24px !important;
    border-radius: 14px !important;
    margin-bottom: 20px !important;
    gap: 18px !important;
}
.ud-home-hero-cta-icon { width: 50px !important; height: 50px !important; font-size: 24px !important; border-radius: 12px !important; }
.ud-home-hero-cta-text h3 { font-size: 16px !important; margin: 0 0 3px !important; }
.ud-home-hero-cta-text p  { font-size: 13px !important; margin: 0 !important; line-height: 1.4 !important; }
.ud-home-hero-cta-btn {
    padding: 11px 20px !important;
    font-size: 13.5px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
}

/* ═══════════════════════════════════════════════════════════
   6. SECTIONS
   ═══════════════════════════════════════════════════════════ */
.ud-home-section { padding: 18px 22px !important; border-radius: 14px !important; margin-bottom: 18px !important; }
.ud-home-section-head { margin-bottom: 16px !important; }
.ud-home-section-title { font-size: 16px !important; gap: 8px !important; }
.ud-home-section-link { font-size: 12.5px !important; padding: 6px 10px !important; }

/* ═══════════════════════════════════════════════════════════
   7. TABLEAU DOSSIERS
   ═══════════════════════════════════════════════════════════ */
.ud-table-dossiers-client th {
    padding: 12px 10px !important;
    font-size: 10.5px !important;
    letter-spacing: 0.3px !important;
}
.ud-table-dossiers-client td {
    padding: 12px 10px !important;
    font-size: 13px !important;
}
.ud-table-dossiers-client .ud-ref {
    font-size: 12px !important;
    padding: 4px 9px !important;
}
.ud-table-dossiers-client .ud-party-avatar {
    width: 34px !important; height: 34px !important; min-width: 34px !important;
    font-size: 12px !important;
}
.ud-table-dossiers-client .ud-party-name { font-size: 13px !important; }
.ud-table-dossiers-client .ud-party-mail { font-size: 11px !important; }
.ud-table-dossiers-client .ud-montant   { font-size: 13.5px !important; }
.ud-table-dossiers-client .ud-badge     { font-size: 11px !important; padding: 4px 10px !important; }
.ud-table-dossiers-client .ud-gest-avatar { width: 28px !important; height: 28px !important; min-width: 28px !important; font-size: 10px !important; }
.ud-table-dossiers-client .ud-gest-name { font-size: 12.5px !important; }
.ud-table-dossiers-client .ud-gest-role { font-size: 10px !important; }
.ud-table-dossiers-client .ud-gest-unassigned { font-size: 11px !important; padding: 3px 8px !important; }
.ud-table-dossiers-client .ud-date-main { font-size: 12.5px !important; }
.ud-table-dossiers-client .ud-date-sub  { font-size: 10.5px !important; }
.ud-table-dossiers-client .ud-col-actions .ud-action-btn {
    width: 32px !important; height: 32px !important;
    min-width: 32px !important; max-width: 32px !important;
    font-size: 13px !important;
}

/* ═══════════════════════════════════════════════════════════
   8. BLOCS (dossiers, stats, notifications, etc.)
   ═══════════════════════════════════════════════════════════ */
.ud-block { padding: 22px 26px !important; border-radius: 14px !important; }
.ud-block-head { margin-bottom: 18px !important; }
.ud-block-title { font-size: 18px !important; margin: 0 0 4px !important; }
.ud-block-sub { font-size: 13px !important; margin: 0 !important; }

/* ═══════════════════════════════════════════════════════════
   9. BOUTONS
   ═══════════════════════════════════════════════════════════ */
.ud-btn-primary,
.ud-btn-secondary {
    padding: 9px 16px !important;
    font-size: 12.5px !important;
    border-radius: 9px !important;
}
.ud-section-actions { gap: 10px !important; }

/* ═══════════════════════════════════════════════════════════
   10. FOOTER
   ═══════════════════════════════════════════════════════════ */
.ud-footer { padding: 14px 28px !important; font-size: 12px !important; }

/* ═══════════════════════════════════════════════════════════
   👤 AVATAR — Nettoyage radical
   ═══════════════════════════════════════════════════════════ */

/* Le conteneur : cercle net */
.ud-sidebar-foot .ud-avatar,
.ud-user-card .ud-avatar {
    position: relative !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #0a0e17 !important;
    border: 2px solid rgba(212, 163, 115, 0.4) !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}

/* ⭐ Si le conteneur a plusieurs enfants, on masque tout sauf le premier */
.ud-sidebar-foot .ud-avatar > *:not(:first-child),
.ud-user-card .ud-avatar > *:not(:first-child) {
    display: none !important;
}

/* Image : remplit proprement */
.ud-sidebar-foot .ud-avatar img,
.ud-user-card .ud-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 50% !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Initiales : texte net */
.ud-avatar-initials {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #d4a373 !important;
    background: transparent !important;
    background-image: none !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
    box-shadow: none !important;
    border: none !important;
}

/* Cache l'icône "broken image" si l'URL est cassée */
.ud-avatar img[src=""],
.ud-avatar img:not([src]),
.ud-avatar img[src*="data:image/svg"] {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   📊 KPI CARDS — Version compacte garantie sans troncature
   ═══════════════════════════════════════════════════════════ */

.ud-home-kpis {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
}

body.ud-dash-body .ud-home-kpi {
    padding: 2px 10px !important;
    gap: 16px !important;
    border-radius: 14px !important;
    border-left-width: 3px !important;
    min-height: 96px !important;
    display: flex !important;
    align-items: center !important;
}

.ud-home-section-link:hover {
  color: black;
  background-color: transparent;
}

/* ⭐ Icône réduite (libère 15% de la largeur) */
.ud-home-kpi-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    font-size: 15px !important;
    border-radius: 9px !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ud-home-kpi-body {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 1px !important;
}

.ud-home-kpi-label {
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    text-transform: uppercase !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}

/* ⭐ LA VALEUR — plus petite, sans ellipse */
.ud-home-kpi-value {
    font-size: clamp(13px, 1.25vw, 17px) !important;   /* ← Baisse encore */
    font-weight: 800 !important;
    line-height: 1.1 !important;
    letter-spacing: -0.4px !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
    overflow: visible !important;
    font-variant-numeric: tabular-nums !important;
}

.ud-home-kpi-sub {
    font-size: 10px !important;
    color: #94a3b8 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1.2 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   📋 TABLE DOSSIERS — Version optimale (aucune troncature)
   ═══════════════════════════════════════════════════════════════════ */

.ud-table-wrap {
    overflow-x: hidden !important;
    width: 100% !important;
}

.ud-table-dossiers-client {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
}

/* ═══ Cellules de base ═══ */
.ud-table-dossiers-client th,
.ud-table-dossiers-client td {
    padding: 11px 10px !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    font-size: 12.5px !important;
    box-sizing: border-box !important;
    line-height: 1.3 !important;
}

.ud-table-dossiers-client th {
    font-size: 10.5px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    color: #64748b !important;
    font-weight: 800 !important;
    padding: 13px 10px !important;
    white-space: nowrap !important;
}

/* ═══ Largeurs par classe (miroir du colgroup) ═══ */
.ud-table-dossiers-client .ud-col-ref      { width: 19% !important; }
.ud-table-dossiers-client .ud-col-debiteur { width: 23% !important; }
.ud-table-dossiers-client .ud-col-montant  { width: 11% !important; text-align: right !important; padding-right: 14px !important; }
.ud-table-dossiers-client .ud-col-statut   { width: 12% !important; overflow: visible !important; }
.ud-table-dossiers-client .ud-col-gest     { width: 13% !important; }
.ud-table-dossiers-client .ud-col-date     { width: 12% !important; }
.ud-table-dossiers-client .ud-col-actions  { width: 10% !important; text-align: right !important; padding-right: 12px !important; overflow: visible !important; }

/* ═══ Référence : police plus petite, sans ellipse ═══ */
.ud-table-dossiers-client .ud-ref {
    display: inline-block !important;
    font-family: 'Courier New', monospace !important;
    font-size: 11.5px !important;          /* ⭐ plus petit */
    font-weight: 800 !important;
    color: #0a0e17 !important;
    letter-spacing: -0.2px !important;
    background: #f8fafc !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* ═══ Débiteur ═══ */
.ud-table-dossiers-client .ud-party-cell {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}

.ud-table-dossiers-client .ud-party-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    flex-shrink: 0 !important;
}

.ud-table-dossiers-client .ud-party-info {
    flex: 1 !important;
    min-width: 0 !important;
    overflow: hidden !important;
}

.ud-table-dossiers-client .ud-party-name {
    font-size: 12.5px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.ud-table-dossiers-client .ud-party-mail {
    font-size: 10.5px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

/* ═══ Montant ═══ */
.ud-table-dossiers-client .ud-montant {
    font-family: 'Courier New', monospace !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
}

/* ═══ Statut : badge entier, jamais tronqué ═══ */
.ud-table-dossiers-client .ud-badge {
    display: inline-flex !important;
    align-items: center !important;
    padding: 4px 10px !important;
    border-radius: 100px !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    white-space: nowrap !important;         /* ⭐ Forcé */
    overflow: visible !important;           /* ⭐ Autorise débordement */
    text-overflow: clip !important;
    max-width: none !important;             /* ⭐ Plus de contrainte */
}

/* ═══ Gestionnaire ═══ */
.ud-table-dossiers-client .ud-gest-cell {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
}

.ud-table-dossiers-client .ud-gest-avatar {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    background: #e0e7ff !important;
    color: #3730a3 !important;
    flex-shrink: 0 !important;
}

.ud-table-dossiers-client .ud-gest-avatar.is-admin {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.ud-table-dossiers-client .ud-gest-info {
    min-width: 0 !important;
    flex: 1 !important;
    overflow: hidden !important;
}

.ud-table-dossiers-client .ud-gest-name {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.ud-table-dossiers-client .ud-gest-role {
    font-size: 9.5px !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}

.ud-table-dossiers-client .ud-gest-unassigned {
    display: inline-block !important;
    padding: 3px 8px !important;
    background: #f8fafc !important;
    border: 1px dashed #e2e8f0 !important;
    border-radius: 6px !important;
    font-size: 10.5px !important;
    color: #94a3b8 !important;
    font-style: italic !important;
    white-space: nowrap !important;
}

/* ═══ Date ═══ */
.ud-table-dossiers-client .ud-date-cell {
    display: flex !important;
    flex-direction: column !important;
    gap: 1px !important;
}

.ud-table-dossiers-client .ud-date-main {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    white-space: nowrap !important;
}

.ud-table-dossiers-client .ud-date-sub {
    font-size: 10px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

/* ═══ Actions : boutons jamais coupés ═══ */
.ud-table-dossiers-client .ud-col-actions .ud-action-group {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    justify-content: flex-end !important;
    flex-wrap: nowrap !important;
}

.ud-table-dossiers-client .ud-col-actions .ud-action-btn {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    color: #475569 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
}

.ud-table-dossiers-client .ud-col-actions .ud-action-btn:hover {
    background: #0a0e17 !important;
    border-color: #0a0e17 !important;
    color: #d4a373 !important;
    transform: translateY(-1px) !important;
}

.ud-table-dossiers-client .ud-col-actions .ud-action-btn-thread {
    background: linear-gradient(135deg, #d4a373 0%, #c09260 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
}

.ud-table-dossiers-client .ud-col-actions .ud-action-btn-thread:hover {
    background: linear-gradient(135deg, #b8895c 0%, #a07544 100%) !important;
    color: #ffffff !important;
}

/* ═══ Hover ligne ═══ */
.ud-table-dossiers-client tbody tr {
    background-color: #ffffff !important;
    transition: background-color 0.15s ease !important;
}

.ud-table-dossiers-client tbody tr:hover {
    background-color: #fef9f0 !important;
    box-shadow: inset 3px 0 0 0 #d4a373 !important;
}

.ud-table-dossiers-client tr:hover td { background: transparent !important; }

/* ═══ Responsive ═══ */
@media (max-width: 1024px) {
    .ud-table-dossiers-client .ud-col-gest,
    .ud-table-dossiers-client thead th.ud-col-gest { display: none !important; }

    .ud-table-dossiers-client .ud-col-ref      { width: 22% !important; }
    .ud-table-dossiers-client .ud-col-debiteur { width: 26% !important; }
    .ud-table-dossiers-client .ud-col-montant  { width: 13% !important; }
    .ud-table-dossiers-client .ud-col-statut   { width: 14% !important; }
    .ud-table-dossiers-client .ud-col-date     { width: 15% !important; }
    .ud-table-dossiers-client .ud-col-actions  { width: 10% !important; }
}

/* ═══════════════════════════════════════════════════════════
   ⚙️ ACTIONS — Boutons empilés verticalement
   ═══════════════════════════════════════════════════════════ */

.ud-table-dossiers-client .ud-col-actions {
    width: 6% !important;                   /* ⭐ Réduit de 10% → 6% */
    padding: 8px 10px !important;
    text-align: center !important;          /* Centre les boutons */
    vertical-align: middle !important;
}

.ud-table-dossiers-client .ud-col-actions .ud-action-group {
    display: flex !important;
    flex-direction: column !important;      /* ⭐ Empilement vertical */
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
}

.ud-table-dossiers-client .ud-col-actions .ud-action-btn {
    width: 28px !important;                 /* ⭐ Réduit de 30 → 28px */
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    flex-shrink: 0 !important;
}

/* ═══════════════════════════════════════════════════════════
   📐 REDISTRIBUTION — Donner l'espace gagné à Dossier
   ═══════════════════════════════════════════════════════════ */

.ud-table-dossiers-client .ud-col-ref      { width: 23% !important; }   /* ⭐ 19% → 23% */
.ud-table-dossiers-client .ud-col-debiteur { width: 23% !important; }
.ud-table-dossiers-client .ud-col-montant  { width: 11% !important; }
.ud-table-dossiers-client .ud-col-statut   { width: 12% !important; }
.ud-table-dossiers-client .ud-col-gest     { width: 13% !important; }
.ud-table-dossiers-client .ud-col-date     { width: 12% !important; }
/* .ud-col-actions                          { width: 6% !important; }   ← déjà défini */


.swal2-popup.upp-popup {
    border-radius: 20px !important;
    padding: 28px 32px 24px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    box-shadow: 0 24px 60px rgba(10,14,23,0.28) !important;
    max-height: 92vh !important;
    overflow: hidden !important;
}
.swal2-popup.upp-popup .swal2-html-container {
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    max-height: none !important;
}

/* 📱 Tablette */
@media (max-width: 768px) {
    .swal2-popup.upp-popup {
        padding: 22px 24px 20px !important;
        border-radius: 16px !important;
    }
}

/* 📱 Mobile */
@media (max-width: 480px) {
    .swal2-popup.upp-popup {
        padding: 20px 18px 18px !important;
        border-radius: 14px !important;
        width: calc(100% - 24px) !important;
        margin: 0 12px !important;
    }
}

.upp-delete {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    width: 100% !important;
    padding: 8px 12px !important;
    margin: 12px 0 0 !important;
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    cursor: pointer !important;
    transition: color 0.15s !important;
    text-decoration: none !important;
    text-transform: none !important;
    line-height: 1.3 !important;
    box-shadow: none !important;
}
.upp-delete:hover {
    color: #dc2626 !important;
    background: transparent !important;
}
.upp-delete svg { flex-shrink: 0 !important; stroke: currentColor !important; }


.unidet-reg-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 12px 24px !important;
    height: 48px !important;
    min-height: 48px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

/* Version large (pleine largeur dans le formulaire d'inscription) */
.unidet-reg-form .unidet-reg-submit,
.unidet-reg-submit.is-block {
    width: 100% !important;
}



<style id="unidet-phone-custom-ui-css-FINAL">
/* ═══════════════════════════════════════════════════════════
   📞 PHONE CUSTOM UI — VERSION FINALE BLINDÉE
   Tous les enfants du bouton sont en position absolue.
   Aucun flex, aucun auto, rien ne peut être cassé.
   ═══════════════════════════════════════════════════════════ */

/* Masquer ITI d'origine */
html body .unidet-phone-wrapper.ud-phone-customized .iti__flag-container {
    display: none !important;
}

/* ─────────────────────────────────────────────
   BOUTON : conteneur position:relative, largeur fixe
   ───────────────────────────────────────────── */
html body .unidet-phone-wrapper.ud-phone-customized .ud-phone-flag-btn {
    position: absolute !important;
    left: 1.5px !important;
    top: 1.5px !important;
    bottom: 1.5px !important;
    width: 118px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
    border: none !important;
    border-radius: 8.5px 0 0 8.5px !important;
    cursor: pointer !important;
    font-family: inherit !important;
    outline: none !important;
    z-index: 6 !important;
    box-sizing: border-box !important;
    transition: background 0.15s ease !important;
    overflow: visible !important;
}

html body .unidet-phone-wrapper.ud-phone-customized .ud-phone-flag-btn:hover {
    background: #f8fafc !important;
}

/* ═══════════════════════════════════════════════════════════
   ✅ COCHE VERTE — Champ téléphone (inscription)
   ═══════════════════════════════════════════════════════════ */
.unidet-phone-wrapper .unidet-phone-success-icon {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: none;   /* JS bascule à 'block' quand valide */
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    pointer-events: none !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

/* Décale le texte de l'input pour laisser la place à la coche */
.unidet-phone-wrapper .iti input[type="tel"] {
    padding-right: 42px !important;
}


.unidet-phone-wrapper {
    position: relative !important;   /* ← déjà présent normalement */
}




/* ─────────────────────────────────────────────
   SÉPARATEUR en ::after — collé au bord droit
   ───────────────────────────────────────────── */
html body .unidet-phone-wrapper.ud-phone-customized .ud-phone-flag-btn::after {
    content: '' !important;
    position: absolute !important;
    top: 10px !important;
    bottom: 10px !important;
    right: 0 !important;
    width: 1.5px !important;
    background: #e2e8f0 !important;
    border-radius: 1px !important;
    pointer-events: none !important;
}

/* ─────────────────────────────────────────────
   DRAPEAU — position absolue depuis la gauche
   ───────────────────────────────────────────── */
html body .unidet-phone-wrapper.ud-phone-customized .ud-phone-flag {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 20px !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* ─────────────────────────────────────────────
   INDICATIF — position absolue juste après le drapeau
   ───────────────────────────────────────────── */
html body .unidet-phone-wrapper.ud-phone-customized .ud-phone-dial {
    position: absolute !important;
    left: 44px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #0a0e17 !important;
    line-height: 1 !important;
    letter-spacing: 0.3px !important;
    font-variant-numeric: tabular-nums !important;
    white-space: nowrap !important;
}

/* ─────────────────────────────────────────────
   FLÈCHE — position absolue depuis la droite
   18px à gauche du séparateur
   ───────────────────────────────────────────── */
html body .unidet-phone-wrapper.ud-phone-customized .ud-phone-arrow {
    position: absolute !important;
    right: 15px !important;                 /* ⬅ 22px = espace voulu avant séparateur */
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 5px solid transparent !important;
    border-right: 5px solid transparent !important;
    border-top: 6px solid #64748b !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none !important;
    display: block !important;
}

html body .unidet-phone-wrapper.ud-phone-customized.is-open .ud-phone-arrow,
html body .unidet-phone-wrapper.ud-phone-customized .ud-phone-flag-btn[aria-expanded="true"] .ud-phone-arrow {
    transform: translateY(-50%) rotate(180deg) !important;
}

/* ─────────────────────────────────────────────
   INPUT — padding-left ajusté
   ───────────────────────────────────────────── */
html body .unidet-phone-wrapper.ud-phone-customized .iti input[type="tel"],
html body .unidet-phone-wrapper.ud-phone-customized input.unidet-tel-input {
    padding: 0 16px 0 40px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    direction: ltr !important;
    unicode-bidi: normal !important;
    text-indent: 0 !important;
}

/* Placeholder gauche (bonus, mais l'injection JS fait le vrai taf) */
html body .unidet-phone-wrapper.ud-phone-customized .iti input[type="tel"]::placeholder,
html body .unidet-phone-wrapper.ud-phone-customized .iti input[type="tel"]::-webkit-input-placeholder,
html body .unidet-phone-wrapper.ud-phone-customized .iti input[type="tel"]::-moz-placeholder {
    text-align: left !important;
    text-indent: 0 !important;
    padding: 0 !important;
    direction: ltr !important;
    opacity: 1 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #94a3b8 !important;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 480px) {
    html body .unidet-phone-wrapper.ud-phone-customized .ud-phone-flag-btn {
        width: 110px !important;
    }
    html body .unidet-phone-wrapper.ud-phone-customized .ud-phone-flag {
        left: 12px !important;
        font-size: 18px !important;
    }
    html body .unidet-phone-wrapper.ud-phone-customized .ud-phone-dial {
        left: 38px !important;
        font-size: 12.5px !important;
    }
    html body .unidet-phone-wrapper.ud-phone-customized .ud-phone-arrow {
        right: 18px !important;
    }
    html body .unidet-phone-wrapper.ud-phone-customized .iti input[type="tel"] {
        padding-left: 42px !important;
    }
}
</style>

/* ═══════════════════════════════════════════════════════════
   🎯 PAGE CONNEXION — Alignement maquette
   À ajouter À LA FIN de style.css — aucune règle écrasée
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. Icônes SVG dans la liste des features (panneau gauche) ───
   ⚠️ Ces icônes n'avaient AUCUN style → elles ne s'affichaient pas. */
body.unidet-auth-body .unidet-reg-feat .unidet-reg-check-svg {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    background: linear-gradient(135deg, #d4a373 0%, #b8895c 100%);
    color: #0a0e17;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(212, 163, 115, 0.35);
    line-height: 1;
    padding: 0;
    margin: 0;
}

body.unidet-auth-body .unidet-reg-feat .unidet-reg-check-svg svg {
    width: 16px;
    height: 16px;
    display: block;
    stroke: #0a0e17;
    stroke-width: 2.5;
    fill: none;
}

/* ─── 2. Titre "Bon retour sur UNIDET" (UNIDET en doré) ─── */
body.unidet-auth-body .unidet-reg-h1 .unidet-reg-accent {
    color: #d4a373;
    font-weight: 600;
}

/* ─── 3. Toggle mot de passe avec SVG (icône œil) ─── */
body.unidet-auth-body .unidet-toggle-pwd {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.55;
    z-index: 5;
    transition: all 0.15s ease;
    color: #64748b;
    line-height: 1;
}
body.unidet-auth-body .unidet-toggle-pwd:hover {
    opacity: 1;
    background: rgba(212, 163, 115, 0.1);
    color: #0a0e17;
}
body.unidet-auth-body .unidet-toggle-pwd svg {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

/* ─── 4. Warning Caps Lock ─── */
body.unidet-auth-body .ud-capslock-warning {
    display: block;
    margin-top: 6px;
    padding: 6px 10px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 0 6px 6px 0;
    font-size: 11.5px;
    font-weight: 600;
    color: #78350f;
    line-height: 1.4;
    animation: udCapsIn 0.2s ease;
}
@keyframes udCapsIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── 5. Spinner de chargement du bouton login ─── */
body.unidet-auth-body .ud-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: udSpinLogin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
    flex-shrink: 0;
}
@keyframes udSpinLogin {
    to { transform: rotate(360deg); }
}

/* ─── 6. Bouton login en mode chargement (état 11 de la maquette) ─── */
body.unidet-auth-body #unidet-login-btn.is-loading {
    background: #cbd5e1 !important;
    background-image: none !important;
    cursor: wait !important;
    box-shadow: none !important;
    opacity: 0.85 !important;
    color: #fff !important;
}
body.unidet-auth-body #unidet-login-btn.is-loading:hover {
    transform: none !important;
}

/* ─── 7. Bandeau "Email non vérifié" (état 9 de la maquette) ─── */
body.unidet-auth-body .unidet-unverified-banner {
    padding: 16px 18px !important;
    display: block !important;
    border-radius: 12px !important;
    margin-bottom: 24px !important;
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
    border-left: 4px solid #f59e0b !important;
    color: #78350f !important;
    animation: unidetShake 0.4s ease;
}

body.unidet-auth-body .unidet-unverified-head {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
}

body.unidet-auth-body .unidet-unverified-head .unidet-reg-message-icon {
    font-size: 24px !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    margin-top: 2px !important;
}

body.unidet-auth-body .unidet-unverified-text {
    flex: 1 !important;
    min-width: 0 !important;
}

body.unidet-auth-body .unidet-unverified-text strong {
    display: block !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #78350f !important;
    margin-bottom: 4px !important;
    line-height: 1.4 !important;
}

body.unidet-auth-body .unidet-unverified-text p {
    margin: 0 !important;
    font-size: 12.5px !important;
    color: #92400e !important;
    line-height: 1.5 !important;
}

body.unidet-auth-body .unidet-unverified-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px 18px !important;
    background: #fff !important;
    border: 1.5px solid #f59e0b !important;
    border-radius: 9px !important;
    color: #78350f !important;
    font-family: inherit !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

body.unidet-auth-body .unidet-unverified-btn:hover:not(:disabled) {
    background: #f59e0b !important;
    color: #fff !important;
    border-color: #f59e0b !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3) !important;
}

body.unidet-auth-body .unidet-unverified-btn:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* ─── 8. Row "Se souvenir" + "Mot de passe oublié" ─── */
body.unidet-auth-body .unidet-login-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 8px 0 20px !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

body.unidet-auth-body .unidet-login-remember {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    color: #475569 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

body.unidet-auth-body .unidet-login-remember input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    accent-color: #d4a373 !important;
    cursor: pointer !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* ─── 9. Lien "Mot de passe oublié ?" (retire la bordure pointillée) ─── */
body.unidet-auth-body .unidet-login-row .unidet-reg-topbar-link {
    border-bottom: none !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #a0824d !important;
    padding: 0 !important;
    transition: color 0.15s ease !important;
}
body.unidet-auth-body .unidet-login-row .unidet-reg-topbar-link:hover {
    color: #d4a373 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

/* ─── 10. Responsive : icônes features ─── */
@media (max-width: 900px) {
    body.unidet-auth-body .unidet-reg-feat .unidet-reg-check-svg {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
    }
    body.unidet-auth-body .unidet-reg-feat .unidet-reg-check-svg svg {
        width: 14px !important;
        height: 14px !important;
    }
}

@media (max-width: 560px) {
    body.unidet-auth-body .unidet-reg-feat .unidet-reg-check-svg {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
    }
    body.unidet-auth-body .unidet-reg-feat .unidet-reg-check-svg svg {
        width: 12px !important;
        height: 12px !important;
    }
    body.unidet-auth-body .unidet-login-row {
        font-size: 12px !important;
        gap: 8px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   🎯 ICÔNES FEATURES — Cercles dorés + coche foncée
   Alignement EXACT sur la maquette
   ═══════════════════════════════════════════════════════════ */

/* Conteneur cercle */
body.unidet-auth-body .unidet-reg-features .unidet-reg-feat .unidet-reg-check-svg,
body.unidet-auth-body .unidet-reg-feature .unidet-reg-check-svg,
body.unidet-auth-body .unidet-reg-check-svg {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;

    /* ⭐ Fond doré chaud, plein (pas de dégradé, comme la capture) */
    background: #c9a475 !important;
    background-image: none !important;

    border: none !important;
    border-radius: 50% !important;

    /* ⭐ Couleur de la coche */
    color: #1a1208 !important;

    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
    overflow: visible !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
}

/* Le SVG (coche) */
body.unidet-auth-body .unidet-reg-check-svg svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    flex-shrink: 0 !important;
    stroke: #1a1208 !important;
    stroke-width: 3 !important;
    fill: none !important;
    color: #1a1208 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Chemin de la coche */
body.unidet-auth-body .unidet-reg-check-svg svg path,
body.unidet-auth-body .unidet-reg-check-svg svg polyline {
    stroke: #1a1208 !important;
    stroke-width: 3 !important;
    fill: none !important;
}

/* ─── Ancien système `.unidet-reg-check` : NEUTRALISÉ ─── */
/* (au cas où une ancienne règle traîne) */
body.unidet-auth-body .unidet-reg-feat > .unidet-reg-check {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    background: #c9a475 !important;
    background-image: none !important;
    color: #1a1208 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 900 !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}

/* ─── Espacement feature ─── */
body.unidet-auth-body .unidet-reg-feat {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    font-size: 14.5px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.4 !important;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    body.unidet-auth-body .unidet-reg-check-svg {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
    }
    body.unidet-auth-body .unidet-reg-check-svg svg {
        width: 15px !important;
        height: 15px !important;
    }
    body.unidet-auth-body .unidet-reg-feat {
        gap: 12px !important;
        font-size: 13.5px !important;
    }
}

@media (max-width: 560px) {
    body.unidet-auth-body .unidet-reg-check-svg {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        max-width: 24px !important;
    }
    body.unidet-auth-body .unidet-reg-check-svg svg {
        width: 13px !important;
        height: 13px !important;
    }
    body.unidet-auth-body .unidet-reg-feat {
        gap: 10px !important;
        font-size: 12.5px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   🎯 CHAMP EMAIL — Icône enveloppe à gauche
   Cible : #login_identifier (unique à la page /login)
   ═══════════════════════════════════════════════════════════ */

body.unidet-auth-body #login_identifier {
    /* ⭐ Espace à gauche pour l'icône */
    padding-left: 46px !important;

    /* ⭐ Icône enveloppe (SVG inline, gris ardoise) */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 5L2 7'/%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;
    background-position: 16px center !important;
    background-size: 18px 18px !important;
    background-color: #fff !important;

    transition: border-color 0.15s, box-shadow 0.15s, background-image 0.15s !important;
}

/* Icône plus foncée au focus (comme la capture) */
body.unidet-auth-body #login_identifier:focus {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 5L2 7'/%3E%3C/svg%3E") !important;
}

/* ═══════════════════════════════════════════════════════════
   🎯 CHAMP MOT DE PASSE — Icône cadenas à gauche
   Cible : #login_password
   ═══════════════════════════════════════════════════════════ */

body.unidet-auth-body #login_password {
    /* ⭐ Espace à gauche pour l'icône + droite pour l'œil */
    padding-left: 46px !important;
    padding-right: 58px !important;

    /* ⭐ Icône cadenas (SVG inline, gris ardoise) */
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") !important;

    background-repeat: no-repeat !important;
    background-position: 16px center !important;
    background-size: 18px 18px !important;
    background-color: #fff !important;

    transition: border-color 0.15s, box-shadow 0.15s, background-image 0.15s !important;
}

/* Cadenas doré au focus */
body.unidet-auth-body #login_password:focus {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4a373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") !important;
}

/* ═══════════════════════════════════════════════════════════
   📱 Responsive mobile — icônes légèrement plus petites
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 560px) {
    body.unidet-auth-body #login_identifier,
    body.unidet-auth-body #login_password {
        padding-left: 42px !important;
        background-position: 14px center !important;
        background-size: 16px 16px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   🎁 BONUS — Même traitement pour la page d'INSCRIPTION
   (décommentez si vous voulez la cohérence visuelle)
   ═══════════════════════════════════════════════════════════ */

body.unidet-auth-body #user_email {
    padding-left: 46px !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-10 5L2 7'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 16px center !important;
    background-size: 18px 18px !important;
    background-color: #fff !important;
}

body.unidet-auth-body #password,
body.unidet-auth-body #password_confirm {
    padding-left: 46px !important;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: 16px center !important;
    background-size: 18px 18px !important;
    background-color: #fff !important;
}

/* ═══════════════════════════════════════════════════════════
   🎯 BOUTON LOGIN — État "Connexion en cours..."
   ═══════════════════════════════════════════════════════════ */

/* État de chargement : gris clair + spinner + curseur wait */
body.unidet-auth-body #unidet-login-btn.is-loading {
    background: #cbd5e1 !important;
    background-image: none !important;
    color: #ffffff !important;
    cursor: wait !important;
    pointer-events: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
}

body.unidet-auth-body #unidet-login-btn.is-loading:hover {
    transform: none !important;
    box-shadow: none !important;
}

/* Spinner blanc dans le bouton */
body.unidet-auth-body #unidet-login-btn.is-loading .ud-spinner {
    display: inline-block !important;
    width: 16px !important;
    height: 16px !important;
    min-width: 16px !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    animation: udLoginSpin 0.7s linear infinite !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    vertical-align: middle !important;
    background: transparent !important;
}

@keyframes udLoginSpin {
    to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   🎯 BANDEAUX ERREUR LOGIN — Conformes à la maquette
   Cas 9 (non vérifié) + Cas 10 (identifiants incorrects)
   ═══════════════════════════════════════════════════════════ */

/* ─── Base commune : bandeau rouge pâle centré ─── */
body.unidet-auth-body .unidet-login-error-banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 18px 22px;
    margin: 0 0 24px;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    border-radius: 14px;
    color: #991b1b;
    animation: unidetShake 0.4s ease;
    box-sizing: border-box;
}

/* ─── Ligne du haut : icône ⚠ + textes ─── */
body.unidet-auth-body .unidet-login-error-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    text-align: left;
    margin-bottom: 0;
}

/* Icône triangle ⚠ */
body.unidet-auth-body .unidet-login-error-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    margin-top: 1px;
}
body.unidet-auth-body .unidet-login-error-icon svg {
    width: 32px;
    height: 32px;
    display: block;
    stroke: currentColor;
    fill: none;
}

/* Texte */
body.unidet-auth-body .unidet-login-error-text {
    flex: 1;
    min-width: 0;
    padding-top: 1px;
}
body.unidet-auth-body .unidet-login-error-title {
    display: block;
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 800;
    color: #991b1b;
    line-height: 1.35;
    letter-spacing: -0.1px;
}
body.unidet-auth-body .unidet-login-error-sub {
    display: block;
    margin: 0;
    font-size: 12.5px;
    font-weight: 500;
    color: #b91c1c;
    line-height: 1.5;
}

/* ─── Bouton "Renvoyer l'email de vérification" ─── */
body.unidet-auth-body .unidet-login-error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px auto 0;
    padding: 10px 22px;
    background: #ffffff;
    border: 1.5px solid #fca5a5;
    border-radius: 9px;
    color: #991b1b;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    box-sizing: border-box;
    white-space: nowrap;
    min-width: 220px;
}
body.unidet-auth-body .unidet-login-error-btn:hover:not(:disabled) {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
body.unidet-auth-body .unidet-login-error-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Petit spinner dans le bouton "Renvoyer" */
body.unidet-auth-body .unidet-login-error-btn .ud-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(153, 27, 27, 0.25);
    border-top-color: #991b1b;
    border-radius: 50%;
    animation: udLoginSpin 0.7s linear infinite;
    margin: 0;
}

/* ─── Responsive ─── */
@media (max-width: 560px) {
    body.unidet-auth-body .unidet-login-error-banner {
        padding: 14px 16px;
        border-radius: 12px;
    }
    body.unidet-auth-body .unidet-login-error-icon {
        width: 34px;
        height: 34px;
    }
    body.unidet-auth-body .unidet-login-error-icon svg {
        width: 26px;
        height: 26px;
    }
    body.unidet-auth-body .unidet-login-error-title {
        font-size: 13px;
    }
    body.unidet-auth-body .unidet-login-error-sub {
        font-size: 11.5px;
    }
    body.unidet-auth-body .unidet-login-error-btn {
        width: 100%;
        min-width: 0;
        font-size: 12px;
        padding: 10px 16px;
    }
}


/* ═══════════════════════════════════════════════════════════
   🎯 DASHBOARD — KPI Cards : icônes SVG propres
   Compatible client + admin, ne casse rien si emojis restants
   ═══════════════════════════════════════════════════════════ */

/* Le conteneur d'icône accepte emoji ET SVG */
.ud-home-kpi-icon,
.ud-admin-stat-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

/* SVG inline : dimensionne et colore proprement */
.ud-home-kpi-icon svg,
.ud-admin-stat-icon svg {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    flex-shrink: 0 !important;
}

/* Couleurs de fond + tracé — par type de KPI client */
.ud-home-kpi.total   .ud-home-kpi-icon { background: #f1f5f9 !important; color: #475569 !important; }
.ud-home-kpi.recupe  .ud-home-kpi-icon { background: #ecfdf5 !important; color: #059669 !important; }
.ud-home-kpi.cours   .ud-home-kpi-icon { background: #eff6ff !important; color: #1d4ed8 !important; }
.ud-home-kpi.cloture .ud-home-kpi-icon { background: #fef3c7 !important; color: #a07544 !important; }

/* Couleurs admin (alignées) */
.ud-admin-stat.total   .ud-admin-stat-icon { background: #f1f5f9 !important; color: #475569 !important; }
.ud-admin-stat.actif   .ud-admin-stat-icon { background: #ecfdf5 !important; color: #059669 !important; }
.ud-admin-stat.cours   .ud-admin-stat-icon { background: #eff6ff !important; color: #1d4ed8 !important; }
.ud-admin-stat.paye    .ud-admin-stat-icon { background: #f0fdf4 !important; color: #16a34a !important; }
.ud-admin-stat.impaye  .ud-admin-stat-icon { background: #fef2f2 !important; color: #dc2626 !important; }
.ud-admin-stat.attente .ud-admin-stat-icon { background: #fff7ed !important; color: #ea580c !important; }
.ud-admin-stat.refuse  .ud-admin-stat-icon { background: #f8fafc !important; color: #64748b !important; }

/* ═══════════════════════════════════════════════════════════
   🎯 FOOTER — Signature "UNIDET" en capitales dorées
   ═══════════════════════════════════════════════════════════ */
.ud-footer strong {
    color: #a0824d !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
}


/* ═══════════════════════════════════════════════════════════
   🎯 SIDEBAR — Icônes SVG (client + admin)
   ═══════════════════════════════════════════════════════════ */

.ud-nav-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    min-width: 22px !important;
    height: 22px !important;
    flex-shrink: 0 !important;
    font-size: 0 !important;   /* ⭐ Cache les éventuels emojis restants */
    line-height: 1 !important;
    color: inherit !important;
}

.ud-nav-icon svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    flex-shrink: 0 !important;
    transition: stroke 0.15s ease !important;
}

/* État au repos */
.ud-nav-item .ud-nav-icon svg { opacity: 0.75 !important; }

/* Hover : l'icône devient plus visible */
.ud-nav-item:hover .ud-nav-icon svg { opacity: 1 !important; }

/* Actif : icône dorée */
.ud-nav-item.active .ud-nav-icon svg { opacity: 1 !important; }

/* ═══ État replié (desktop collapse) — centrage parfait ═══ */
.ud-layout.ud-collapsed .ud-nav-item .ud-nav-icon {
    width: 100% !important;
    justify-content: center !important;
}

/* ═══ Sidebar footer : icône logout en SVG si utilisée ═══ */
.ud-logout-btn > span:first-child {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0 !important;
}
.ud-logout-btn > span:first-child svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}




