/* ── Variables partagées SCG ─────────────────────────────────────────────── */
:root {
    --scg-text:    #444444;
    --scg-muted:   #919191;
    --scg-border:  #e8e8e8;
    --scg-bg-soft: #f7f7f7;
    --scg-accent:  #00599d;
    --scg-green:   #16A34A;
    --scg-red:     #DC2626;
    --scg-orange:  #D97706;
    --scg-radius:  4px;
}

/* ── Loader partagé ──────────────────────────────────────────────────────── */
.lds-facebook {
    display: inline-block;
    position: relative;
    width: 64px;
    height: 64px;
}
.lds-facebook div {
    display: inline-block;
    position: absolute;
    left: 6px;
    width: 13px;
    background: #000000;
    animation: lds-facebook 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}
.lds-facebook div:nth-child(1) { left: 6px;  animation-delay: -0.24s; }
.lds-facebook div:nth-child(2) { left: 26px; animation-delay: -0.12s; }
.lds-facebook div:nth-child(3) { left: 45px; animation-delay: 0; }

@keyframes lds-facebook {
    0%       { top: 6px;  height: 51px; }
    50%, 100% { top: 19px; height: 26px; }
}

/* ── Tableau CRM ─────────────────────────────────────────────────────────── */
td { vertical-align: middle; }
th { vertical-align: middle; }

.tbl_naw tr.entete td {
    background: var(--scg-bg-soft);
    border-color: var(--scg-border);
    color: var(--scg-muted);
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0;
    padding: 9px 10px;
}

.tbl_naw td {
    font-size: 12px;
    padding: 9px 10px;
    vertical-align: middle;
    border-color: var(--scg-border);
    color: var(--scg-text);
}

.tbl_naw tr:hover td {
    background: var(--scg-bg-soft);
}

.tbl_naw a {
    color: var(--scg-accent);
    text-decoration: none;
}

.tbl_naw a:hover {
    text-decoration: underline;
}

/* ── Info bulle (partagée docs + CRM) ───────────────────────────────────── */
.scg-ai-card {
    background: #fff;
    border: 1px solid var(--scg-border);
    border-radius: var(--scg-radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
}
.scg-ai-card-icon {
    flex-shrink: 0;
    width: 20px; height: 20px;
    color: var(--scg-accent);
    margin-top: 1px;
}
.scg-ai-card-body {
    flex: 1; min-width: 0;
    font-size: 13px;
    color: var(--scg-text);
    line-height: 1.6;
}

/* ── Onglets partagés (docs + CRM) ───────────────────────────────────────── */
.scg-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--scg-border);
    margin-bottom: 20px;
}
.scg-tab {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 400;
    color: var(--scg-muted);
    cursor: pointer;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-family: inherit;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
}
.scg-tab:hover { color: var(--scg-text); }
.scg-tab.active {
    color: var(--scg-accent);
    border-bottom-color: var(--scg-accent);
}
.scg-tab-count {
    font-weight: 400;
    color: var(--scg-muted);
    font-size: 12px;
}

/* ── Onglets Enfold (Tableau de bord / ADD / Infos) — aligner sur .scg-tab ── */
.js_active .tab {
    font-size: 12px !important;
    font-weight: 400 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}
.js_active .active_tab {
    font-weight: 400 !important;
}

/* ── PING URGENT : icône fichier animée ──────────────────────────────────── */
.scg-urgent-icon {
    animation: scg-ping-pulse 1.2s ease-in-out infinite;
}

@keyframes scg-ping-pulse {
    0%, 100% { opacity: 1;   }
    50%       { opacity: 0.35; }
}

