/* =============================================================/* ── TAG FILTER DROPDOWN ── */
.tag-filter-container {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-right: 12px;
}

.tag-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 20px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.tag-filter-btn:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.tag-filter-btn.menu-open {
    border-color: #2b5797;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(43, 87, 151, 0.1);
}

.tag-filter-icon {
    display: flex;
    align-items: center;
    color: #2b5797; /* Premium InMobility Blue */
}

.tag-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2b5797;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    margin-left: 2px;
}

.tag-filter-count:empty,
.tag-filter-count[data-count="0"] {
    display: none;
}

.tag-filter-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 260px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    z-index: 99999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: tw-fade-in 0.2s ease-out;
}

@keyframes tw-fade-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tag-filter-menu.active {
    display: flex;
}

.tag-filter-search {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag-filter-search i {
    color: #94a3b8;
    font-size: 14px;
}

.tag-filter-search input {
    border: none;
    outline: none;
    font-size: 13px;
    width: 100%;
    color: #1e293b;
    background: transparent;
}

.tag-filter-options {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px 0;
}

.tag-filter-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.tag-filter-item:hover {
    background: #f8fafc;
}

.tag-filter-checkbox {
    width: 18px;
    height: 18px;
    border: 1.5px solid #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #fff;
}

.tag-filter-checkbox i {
    font-size: 10px;
    color: transparent;
    transition: color 0.2s;
}

.tag-filter-item.selected .tag-filter-checkbox {
    background: #2b5797;
    border-color: #2b5797;
}

.tag-filter-item.selected .tag-filter-checkbox i {
    color: #fff;
}

.tag-filter-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tag-filter-text {
    font-size: 13px;
    color: #475569;
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tag-filter-item.selected .tag-filter-text {
    color: #1e293b;
    font-weight: 600;
}

.tag-filter-footer {
    padding: 10px 12px;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.tag-filter-clear,
.tag-filter-apply {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}

.tag-filter-clear {
    background: transparent;
    color: #64748b;
}

.tag-filter-clear:hover {
    background: #f1f5f9;
    color: #475569;
}

.tag-filter-apply {
    background: #2b5797;
    color: #fff;
    box-shadow: 0 1px 2px rgba(43, 87, 151, 0.2);
}

.tag-filter-no-results {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-style: italic;
}

/* ─────────────────────────────────────────────────────────────
   Dropdown Global (Common for List Filters)
   Standardise Lead, Account & Contact lists
   ───────────────────────────────────────────────────────────── */

.cd-tab-filter-wrapper.v2-filters-flex-row {
    position: relative !important;
    z-index: 50 !important;
    overflow: visible !important;
}

.v2-header-tag-filter {
    padding: 8px 8px 8px 12px;
    position: relative;
    z-index: 100;
    overflow: visible !important;
}

.v2-filters-flex-row {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    overflow: visible !important;
}

.v2-tag-filter-separator {
    width: 1px;
    height: 32px;
    background: #cbd5e1;
    margin: 0 16px;
    align-self: center;
}

.v2-tag-filter-trigger {
    padding: 6px 15px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.v2-tag-filter-trigger:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
    color: #1e293b;
}

.v2-tag-filter-trigger.active {
    background: #f8fafc;
    border-color: #2b5797;
    color: #2b5797;
    box-shadow: 0 0 0 3px rgba(43, 87, 151, 0.05);
}

.v2-tag-filter-trigger-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2b5797;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 2px;
}
.v2-tag-filter-menu {
    position: absolute;
    left: 12px;
    top: calc(100% + 5px);
    width: 240px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    z-index: 99999;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}

.v2-tag-search-wrapper {
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
    padding: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.v2-tag-search-input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px 8px 30px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #475569;
    background: #f8fafc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 10px center;
    transition: all 0.2s;
}

.v2-tag-search-input:focus {
    outline: none;
    border-color: #2b5797;
    background-color: white;
    box-shadow: 0 0 0 2px rgba(43, 87, 151, 0.1);
}

.v2-tag-filter-group-header {
    padding: 12px 15px 4px 15px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: white;
}

.v2-tag-filter-item {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.1s;
}

.v2-tag-filter-item:last-child {
    border-bottom: none;
}

.v2-tag-filter-item:hover {
    background: #f8fafc;
}

.v2-tag-filter-item.active {
    background: #f8fafc;
    font-weight: 600;
}

.v2-tag-filter-dot {
    min-width: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 2px;
}

.v2-tag-filter-icon {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    line-height: 1 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 14px;
    min-width: 14px;
    height: 14px;
    font-size: 13px;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.v2-tag-filter-check {
    margin-left: auto;
    color: #2b5797;
    display: none;
}

.v2-tag-filter-item.active .v2-tag-filter-check {
    display: block;
}

.v2-tag-chevron {
    min-width: 12px;
}

.v2-tag-filter-dot--all {
    border: 1px solid #cbd5e1;
    background: transparent;
}

.v2-tag-filter-check--visible {
    display: block;
}
/* =============================================================
   tag-widget.css — Styles du système de tags global InMobility
   V2 — Full-color pills, uppercase, oval remove button
   ============================================================= */

/* ── Zone principale ── */
.tw-zone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 4px 0 2px 0;
    min-height: 24px;
    position: relative;
}

/* ── Section dans la fiche (fond blanc arrondi) ── */
.tag-widget-section {
    padding: 4px 12px 3px 12px;
    border-bottom: 1px solid #e8edf3;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 6px;
}
.tag-widget-section:empty {
    display: none !important;
}


/* ── Pills des tags ── */
.tw-pill {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    padding-left: 10px;
    padding-right: 10px;
    border-radius: 999px;
    box-sizing: border-box;
    vertical-align: middle;
    gap: 6px;
    white-space: nowrap;
    max-width: none;
    user-select: none;
    cursor: default;
    transition: filter 0.15s ease;
    margin: 0 6px 4px 0;
}

.tw-pill.has-remove,
.tw-pill:has(.tw-pill-remove) {
    padding-right: 5px;
}

.tw-pill:hover {
    filter: brightness(0.95);
}

.tw-pill.tw-pill-removing {
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

/* Libellé du tag */
.tw-pill-label {
    display: inline-flex;
    align-items: center;
    height: 100%;
    font-size: 12px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    max-width: none;
}

/* Bouton de suppression — Petit cercle à droite */
.tw-pill-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    line-height: 1;
    font-size: 11px;
    cursor: pointer;
    background: transparent;
    color: inherit;
    opacity: 0.7;
    transition: opacity 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}

/* Thème Sombre (Texte blanc) */
.tw-pill-dark .tw-pill-remove {
    background: rgba(255, 255, 255, 0.20);
}
.tw-pill-dark .tw-pill-remove:hover {
    background: rgba(255, 255, 255, 0.40);
    opacity: 1;
}

/* Thème Clair (Texte noir) */
.tw-pill-light .tw-pill-remove {
    background: rgba(0, 0, 0, 0.10);
}
.tw-pill-light .tw-pill-remove:hover {
    background: rgba(0, 0, 0, 0.20);
    opacity: 1;
}

/* ── Zone input d'ajout ── */
.tw-input-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tw-input {
    height: 19px;
    border: 1.2px dashed #cbd5e1;
    border-radius: 10px;
    padding: 0 8px;
    font-size: 11px;
    color: #475569;
    background: rgba(248, 250, 252, 0.5);
    width: 90px;
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, background 0.2s ease;
    outline: none;
    box-sizing: border-box;
}

.tw-input::placeholder {
    color: #94a3b8;
    font-style: italic;
    opacity: 0.7;
}

.tw-input:focus {
    width: 140px;
    border-style: solid;
    border-color: #2b5797;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(43, 87, 151, 0.1);
}

/* ── Dropdown d'autocomplétion ── */
.tw-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    width: 280px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.06);
    z-index: 99999;
    overflow: hidden;
    animation: twFadeIn 0.12s ease;
}

.tw-autocomplete.tw-autocomplete--align-right {
    left: auto;
    right: 0;
}

@keyframes twFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tw-autocomplete ul.tw-autocomplete-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    max-height: 210px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    flex: 1 1 auto;
    min-height: 0;
}

.tw-autocomplete ul.tw-autocomplete-list:empty {
    display: none !important;
    padding: 0 !important;
}

.tw-autocomplete ul.tw-autocomplete-list > li.tw-ac-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: #334155;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.1s ease, color 0.1s ease;
}

.tw-autocomplete ul.tw-autocomplete-list > li.tw-ac-item:last-child {
    border-bottom: none;
}

.tw-autocomplete ul.tw-autocomplete-list > li.tw-ac-item:hover {
    background: #f1f5f9;
    color: #2b5797;
}

.tw-ac-item > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
    word-break: break-word;
}

/* Point coloré dans l'autocomplete */
.tw-ac-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 3px;
}

/* Option "Créer un tag" (pied fixe sous la liste scrollable) */
.tw-autocomplete-create {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    padding: 0;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.tw-create-action {
    padding: 8px 12px;
    font-size: 12px;
    color: #2b5797;
    font-weight: 600;
    cursor: pointer;
    word-break: break-word;
    transition: background 0.1s ease;
}

.tw-create-action:hover {
    background: #e8f0fb;
}

.tw-create-preview {
    font-style: italic;
}

/* ── Sélecteur de couleurs (Création) ── */
.tw-color-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px 10px 12px;
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
    justify-content: flex-start;
    align-items: center;
}

.tw-color-dot {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.1);
    transition: transform 0.15s ease;
}

.tw-color-dot:hover {
    transform: scale(1.15);
}

.tw-color-dot.active {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #cbd5e1;
}

/* ── Version compacte pour activités ── */
.tag-widget-compact .tw-zone {
    padding: 3px 0 2px 0;
    gap: 4px;
    min-height: 26px;
}

.tag-widget-compact .tw-pill {
    height: 18px;
    font-size: 10px;
    padding: 0 0 0 8px; /* Pas de padding droit */
    border-radius: 9px;
}

.tag-widget-compact .tw-pill-remove {
    height: 18px;
    padding: 0 6px 0 4px;
    border-radius: 0 9px 9px 0;
}

.tag-widget-compact .tw-input {
    height: 18px;
    font-size: 10.5px;
    width: 90px;
    border-radius: 9px;
}

.tag-widget-compact .tw-input:focus {
    width: 130px;
}

/* ── Responsive mobile ── */
@media (max-width: 640px) {
    .tw-zone {
        gap: 5px;
    }

    .tw-input-wrap {
        width: 100%;
    }

    .tw-input {
        width: 100%;
        box-sizing: border-box;
    }

    .tw-input:focus {
        width: 100%;
    }

    .tw-autocomplete {
        min-width: 100%;
        width: 100%;
        left: 0;
        right: 0;
    }

    .tw-pill-label {
        max-width: none;
    }
}

/* ── Utilitaires hide ── */
.tw-autocomplete.hide {
    display: none !important;
}

.tw-autocomplete-create.hide {
    display: none !important;
}

/* ══════════════════════════════════════════════════
   TAG ICONS IN LISTS (Compact & Discrete)
   ══════════════════════════════════════════════════ */
.list-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.list-company {
    display: inline-block;
    word-break: break-word;
}

.list-item-tags {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
    flex-wrap: nowrap;
}

.list-tag-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1;
    border: 1px solid transparent;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease;
    cursor: default;
    box-sizing: border-box;
}

.list-tag-icon-badge:hover {
    transform: scale(1.18);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    z-index: 2;
}

.list-tag-icon-badge i {
    font-size: 11px;
    line-height: 1;
}

.list-tag-icon-badge .list-tag-dot-inner {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: block;
}

.list-tag-more-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    cursor: default;
    line-height: 1;
    transition: transform 0.15s ease;
}

.list-tag-more-badge:hover {
    transform: scale(1.1);
    background: #e2e8f0;
}

@media (max-width: 640px) {
    .list-tag-icon-badge {
        width: 19px;
        height: 19px;
        min-width: 19px;
        min-height: 19px;
        font-size: 10px;
    }
    .list-tag-icon-badge i {
        font-size: 10px;
    }
    .list-item-tags {
        gap: 3px;
        margin-left: 4px;
    }
}

/* ══════════════════════════════════════════════════
   DASHBOARD — STATISTIQUES PAR ÉTIQUETTE
   ══════════════════════════════════════════════════ */
.v2-tag-stats-table-block {
    flex: 2 1 420px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.v2-tag-stats-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 8px 0;
}

.v2-tag-stats-groups.hide {
    display: none;
}

.v2-tag-stats-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 26px;
    padding: 0 10px;
    border-radius: 13px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.v2-tag-stats-chip:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: translateY(-1px);
}

.v2-tag-stats-chip.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #ffffff;
}

.v2-tag-stats-chip i {
    font-size: 11px;
}

.v2-tag-stats-chip-count {
    font-weight: 700;
    opacity: 0.85;
}

.v2-tag-stats-chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.6;
}

.v2-tag-stats-search {
    width: 100%;
    box-sizing: border-box;
    height: 34px;
    margin: 4px 0 8px 0;
    padding: 0 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 13px;
    color: #1e293b;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.v2-tag-stats-search:focus {
    outline: none;
    background: #ffffff;
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
}

.v2-tag-stats-table-wrapper {
    flex: 1 1 auto;
    max-height: 340px;
    overflow-y: auto;
    border-radius: 8px;
    -webkit-overflow-scrolling: touch;
}

.v2-tag-stats-table {
    border-collapse: collapse;
    table-layout: fixed;
}

.v2-tag-stats-row {
    cursor: pointer;
    transition: background 0.12s ease;
}

.v2-tag-stats-row:hover {
    background: #f1f5f9;
}

.v2-tag-stats-row td {
    padding: 7px 6px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.v2-tag-stats-cell-icon {
    width: 34px;
    text-align: center;
}

.v2-tag-stats-cell-name {
    overflow: hidden;
}

.v2-tag-stats-name {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-tag-stats-bar {
    display: block;
    height: 4px;
    margin-top: 4px;
    border-radius: 2px;
    background: #f1f5f9;
    overflow: hidden;
}

.v2-tag-stats-bar-fill {
    display: block;
    height: 100%;
    border-radius: 2px;
    opacity: 0.85;
}

.v2-tag-stats-cell-count {
    width: 56px;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.v2-tag-stats-cell-pct {
    width: 58px;
    text-align: right;
    font-size: 12px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.v2-tag-stats-empty td {
    padding: 24px 8px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

@media (max-width: 640px) {
    .v2-tag-stats-table-block {
        flex-basis: 100%;
    }
    .v2-tag-stats-table-wrapper {
        max-height: 300px;
    }
    .v2-tag-stats-cell-pct {
        width: 46px;
    }
}

/* ═══════════════════════════════════════════════════════════
   TAG WIDGET COMPONENT (Fiches: Account, Contact, Lead, etc.)
   ═══════════════════════════════════════════════════════════ */
.tag-widget-section {
    padding: 4px 12px 3px 12px !important;
    position: relative !important;
    z-index: 40 !important;
    overflow: visible !important;
}

.tw-zone {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px !important;
    padding: 4px 0 2px 0 !important;
    min-height: 28px !important;
}

.tw-pills {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.tag {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    border-radius: 999px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    gap: 6px !important;
    white-space: nowrap !important;
    max-width: none !important;
    user-select: none !important;
    cursor: default !important;
    margin: 0 6px 4px 0 !important;
}

.tag.has-remove,
.tag:has(.tag-remove) {
    padding-right: 5px !important;
}

.tag-label {
    display: inline-flex !important;
    align-items: center !important;
    height: 100% !important;
    font-size: 12px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    max-width: none !important;
    pointer-events: none !important;
}

.tw-tag-icon {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 11px !important;
    margin-right: 4px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
}

.tw-ac-icon {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 12px !important;
    margin: 2px 0 0 0 !important;
    width: 14px !important;
    text-align: center !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.tag-remove {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    font-size: 11px !important;
    cursor: pointer !important;
    background: transparent !important;
    color: inherit !important;
    opacity: 0.7 !important;
    transition: opacity 0.15s ease, background 0.15s ease !important;
    flex-shrink: 0 !important;
}

.tag-remove:hover { opacity: 1 !important; }
.tag-dark .tag-remove { background: rgba(255,255,255,0.20) !important; }
.tag-dark .tag-remove:hover { background: rgba(255,255,255,0.40) !important; }
.tag-light .tag-remove { background: rgba(0,0,0,0.10) !important; }
.tag-light .tag-remove:hover { background: rgba(0,0,0,0.20) !important; }
.tag-removing { opacity: 0.35 !important; pointer-events: none !important; transition: opacity 0.2s ease !important; }

.tw-input {
    height: 24px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
    padding: 0 10px !important;
    width: 90px !important;
    box-sizing: border-box !important;
    margin: 0 0 4px 0 !important;
    vertical-align: middle !important;
}


