@import "_tokens-BMBpIkt.css";

/* =========================================================================
   EDIMEX 360 — Feuille de style « 2026 »
   Bootstrap 5 personnalisé : surfaces douces, dégradés, glassmorphism,
   ombres multi-couches, micro-interactions. Piloté par les design tokens.
   ========================================================================= */

/* ===== Base ===== */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--edimex-bg);
    background-image:
        radial-gradient(1100px 700px at 100% -10%, rgba(var(--edimex-primary-rgb), 0.10), transparent 60%),
        radial-gradient(900px 600px at -10% 0%, rgba(var(--edimex-accent-rgb), 0.08), transparent 55%);
    background-attachment: fixed;
    color: var(--edimex-text);
    letter-spacing: -0.01em;
}

a {
    text-decoration: none;
    color: var(--edimex-primary);
    transition: color var(--dur-fast) var(--ease);
}
a:hover { color: var(--edimex-primary-700); }

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    letter-spacing: -0.025em;
    font-weight: 700;
}

::selection { background: rgba(var(--edimex-primary-rgb), 0.22); }

/* Scrollbars discrètes */
* { scrollbar-width: thin; scrollbar-color: var(--edimex-border-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--edimex-border-strong); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }

/* ===== Layout : sidebar + contenu ===== */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
    width: 264px;
    flex: 0 0 264px;
    background: var(--gradient-sidebar);
    color: var(--edimex-sidebar-text);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding-bottom: var(--space-6);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    transition: transform var(--dur) var(--ease);
}

.app-sidebar .brand {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.03em;
    color: #fff;
    padding: var(--space-6) var(--space-4) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}
.app-sidebar .brand .bi {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gradient-brand);
    border-radius: 12px;
    box-shadow: var(--shadow-primary);
    font-size: 1.1rem; color: #fff;
}

.app-sidebar .nav-link {
    color: var(--edimex-sidebar-text);
    border-radius: 12px;
    margin: 3px var(--space-3);
    padding: 0.62rem 0.8rem;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.92rem;
    font-weight: 500;
    position: relative;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
    min-height: 44px;
}
.app-sidebar .nav-link .bi { font-size: 1.05rem; opacity: 0.85; width: 1.3rem; text-align: center; }
.app-sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    transform: translateX(2px);
}
.app-sidebar .nav-link.active {
    background: rgba(var(--edimex-primary-rgb), 0.18);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(var(--edimex-primary-rgb), 0.35);
}
.app-sidebar .nav-link.active::before {
    content: "";
    position: absolute;
    left: -3px; top: 50%; transform: translateY(-50%);
    width: 4px; height: 60%;
    border-radius: 999px;
    background: var(--gradient-brand);
}
.app-sidebar .nav-link.active .bi { opacity: 1; color: #fff; }

.app-sidebar .nav-section {
    text-transform: uppercase;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #5c6a82;
    padding: var(--space-4) var(--space-4) var(--space-1);
}

.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.app-topbar {
    background: var(--edimex-surface-glass);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--edimex-border);
    padding: var(--space-3) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: sticky;
    top: 0;
    z-index: 30;
}
.app-topbar .breadcrumb { --bs-breadcrumb-divider-color: var(--edimex-text-muted); margin: 0; font-size: 0.9rem; }
.app-topbar .breadcrumb a { color: var(--edimex-text-muted); }
.app-topbar .breadcrumb a:hover { color: var(--edimex-primary); }
.app-topbar .breadcrumb-item.active { color: var(--edimex-text); font-weight: 600; }

.app-content { padding: var(--space-6) var(--space-8); flex: 1 1 auto; max-width: 1440px; width: 100%; }
.app-content > .d-flex h1 { font-size: 1.6rem; }

/* ===== Cartes / surfaces ===== */
.card {
    background: var(--edimex-surface);
    border: 1px solid var(--edimex-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { border-color: var(--edimex-border-strong); }
.card.card-hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card-header { background: transparent; border-bottom: 1px solid var(--edimex-border); font-weight: 600; padding: var(--space-4) var(--space-6); }
.card-body { padding: var(--space-6); }
.card-footer { background: transparent; border-top: 1px solid var(--edimex-border); }

.list-group-item { background: transparent; border-color: var(--edimex-border); padding: 0.8rem var(--space-6); }

/* KPI */
.kpi-card { overflow: hidden; position: relative; }
.kpi-card::after {
    content: ""; position: absolute; right: -30px; top: -30px;
    width: 120px; height: 120px; border-radius: 50%;
    background: var(--gradient-brand-soft); opacity: 0.7;
}
.kpi-card .kpi-value { font-size: 2.1rem; font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.kpi-card .kpi-label { color: var(--edimex-text-muted); font-size: 0.82rem; font-weight: 500; }
.kpi-card .kpi-icon {
    width: 52px; height: 52px;
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    background: var(--gradient-brand);
    color: #fff;
    box-shadow: var(--shadow-primary);
    position: relative; z-index: 1;
}

/* ===== Tableaux ===== */
.table { --bs-table-bg: transparent; --bs-table-color: var(--edimex-text); margin-bottom: 0; }
.table > thead th {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: var(--edimex-text-muted);
    border-bottom: 1px solid var(--edimex-border);
    padding: 0.85rem var(--space-4);
    white-space: nowrap;
}
.table > tbody > tr { transition: background var(--dur-fast) var(--ease); }
.table > tbody > tr > td { padding: 0.85rem var(--space-4); border-color: var(--edimex-border); vertical-align: middle; }
.table-hover > tbody > tr:hover { background: var(--edimex-surface-2); }
.table tfoot th { border-color: var(--edimex-border); padding: 0.7rem var(--space-4); }

/* ===== Badges « pastel » ===== */
.badge {
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 0.4em 0.7em;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
}
.badge.text-bg-primary   { background: rgba(var(--edimex-primary-rgb), 0.14) !important; color: var(--edimex-primary-700) !important; }
.badge.text-bg-success   { background: rgba(var(--edimex-success-rgb), 0.15) !important; color: #047857 !important; }
.badge.text-bg-danger    { background: rgba(var(--edimex-danger-rgb), 0.15) !important; color: #b91c1c !important; }
.badge.text-bg-warning   { background: rgba(var(--edimex-warning-rgb), 0.18) !important; color: #b45309 !important; }
.badge.text-bg-info      { background: rgba(var(--edimex-info-rgb), 0.15) !important; color: #0369a1 !important; }
.badge.text-bg-secondary { background: rgba(100, 116, 139, 0.15) !important; color: #475569 !important; }
.badge.text-bg-dark      { background: rgba(15, 23, 42, 0.12) !important; color: #1e293b !important; }
[data-theme="dark"] .badge.text-bg-success { color: #6ee7b7 !important; }
[data-theme="dark"] .badge.text-bg-danger { color: #fca5a5 !important; }
[data-theme="dark"] .badge.text-bg-warning { color: #fcd34d !important; }
[data-theme="dark"] .badge.text-bg-info { color: #7dd3fc !important; }
[data-theme="dark"] .badge.text-bg-primary { color: #c7d2fe !important; }
[data-theme="dark"] .badge.text-bg-secondary { color: #cbd5e1 !important; }

/* ===== Boutons ===== */
.btn {
    border-radius: 12px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 0.5rem 1rem;
    transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease), filter var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
    min-height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-lg { border-radius: 14px; min-height: 50px; }
.btn-sm { min-height: 34px; border-radius: 10px; padding: 0.3rem 0.6rem; }

.btn-primary {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-border-color: transparent;
    background: var(--gradient-brand);
    border: none;
    color: #fff;
    box-shadow: var(--shadow-primary);
}
.btn-primary:hover { color: #fff; filter: brightness(1.06); box-shadow: var(--shadow-primary), 0 6px 16px -6px rgba(var(--edimex-primary-rgb), 0.5); transform: translateY(-1px); }
.btn-primary:active, .btn-primary:focus-visible { color: #fff; }

.btn-light {
    --bs-btn-bg: var(--edimex-surface);
    --bs-btn-border-color: var(--edimex-border);
    --bs-btn-color: var(--edimex-text);
    --bs-btn-hover-bg: var(--edimex-surface-2);
    --bs-btn-hover-border-color: var(--edimex-border-strong);
    --bs-btn-hover-color: var(--edimex-text);
    box-shadow: var(--shadow-xs);
}
.btn-outline-primary {
    --bs-btn-color: var(--edimex-primary);
    --bs-btn-border-color: rgba(var(--edimex-primary-rgb), 0.4);
    --bs-btn-hover-bg: rgba(var(--edimex-primary-rgb), 0.08);
    --bs-btn-hover-border-color: var(--edimex-primary);
    --bs-btn-hover-color: var(--edimex-primary-700);
}
.btn .spinner-border { width: 1rem; height: 1rem; border-width: 0.15em; }

/* ===== Formulaires ===== */
.form-control, .form-select {
    border-radius: 12px;
    border-color: var(--edimex-border-strong);
    background-color: var(--edimex-surface);
    color: var(--edimex-text);
    padding: 0.6rem 0.85rem;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.form-control-lg, .form-select-lg { border-radius: 14px; }
.form-control:focus, .form-select:focus {
    border-color: var(--edimex-primary);
    box-shadow: var(--ring);
    background-color: var(--edimex-surface);
    color: var(--edimex-text);
}
.form-control::placeholder { color: var(--edimex-text-muted); opacity: 0.7; }
.form-label { font-weight: 600; font-size: 0.85rem; color: var(--edimex-text); margin-bottom: 0.35rem; }
.form-text { color: var(--edimex-text-muted); }
.input-group-text { background: var(--edimex-surface-2); border-color: var(--edimex-border-strong); border-radius: 12px; color: var(--edimex-text-muted); }
.form-check-input:checked { background-color: var(--edimex-primary); border-color: var(--edimex-primary); }
.form-check-input:focus { box-shadow: var(--ring); border-color: var(--edimex-primary); }

/* ===== Modale / slide-over animations ===== */
.modal.fade .modal-dialog { transform: translateY(16px) scale(0.97); transition: transform var(--dur) var(--ease-spring), opacity var(--dur) var(--ease); }
.modal.show .modal-dialog { transform: none; }
.modal-content {
    border: 1px solid var(--edimex-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    background: var(--edimex-surface);
    overflow: hidden;
}
.modal-header { border-bottom: 1px solid var(--edimex-border); padding: var(--space-4) var(--space-6); }
.modal-header .modal-title { font-weight: 700; letter-spacing: -0.02em; }
.modal-body { padding: var(--space-6); }
.modal-footer { border-top: 1px solid var(--edimex-border); padding: var(--space-4) var(--space-6); }
.modal-backdrop.show { opacity: 0.45; backdrop-filter: blur(2px); }

.offcanvas { background: var(--edimex-surface); color: var(--edimex-text); border-left: 1px solid var(--edimex-border); box-shadow: var(--shadow-lg); }
.offcanvas-header { border-bottom: 1px solid var(--edimex-border); }

/* ===== Toasts ===== */
.toast-container { z-index: 1100; }
.toast { border: none; border-radius: 14px; box-shadow: var(--shadow-lg); }

/* ===== Animations d'entrée ===== */
@keyframes edimex-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.animate-in { animation: edimex-fade-in var(--dur-slow) var(--ease) both; }
.app-content .card { animation: edimex-fade-in var(--dur-slow) var(--ease) both; }
.app-content .row > [class^="col"]:nth-child(2) .card { animation-delay: 40ms; }
.app-content .row > [class^="col"]:nth-child(3) .card { animation-delay: 80ms; }
.app-content .row > [class^="col"]:nth-child(4) .card { animation-delay: 120ms; }

/* Skeleton loaders */
.skeleton { position: relative; overflow: hidden; background: var(--edimex-surface-2); border-radius: var(--radius-sm); min-height: 1rem; }
.skeleton::after {
    content: ""; position: absolute; inset: 0; transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(var(--edimex-primary-rgb), 0.10), transparent);
    animation: edimex-shimmer 1.4s infinite;
}
@keyframes edimex-shimmer { 100% { transform: translateX(100%); } }

/* Pipeline CRM */
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(230px, 1fr)); gap: var(--space-4); overflow-x: auto; padding-bottom: var(--space-2); }
.pipeline-column { background: var(--edimex-surface-2); border: 1px solid var(--edimex-border); border-radius: var(--radius-lg); padding: var(--space-3); min-height: 140px; transition: outline-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.pipeline-column.drag-over { outline: 2px dashed var(--edimex-primary); outline-offset: -4px; background: rgba(var(--edimex-primary-rgb), 0.05); }
.pipeline-card { background: var(--edimex-surface); border: 1px solid var(--edimex-border); border-radius: var(--radius); padding: var(--space-3); margin-bottom: var(--space-2); box-shadow: var(--shadow-xs); cursor: grab; transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.pipeline-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pipeline-card.dragging { opacity: 0.5; transform: rotate(1.5deg); }

/* États vides */
.empty-state { text-align: center; padding: var(--space-8); color: var(--edimex-text-muted); }
.empty-state .bi { font-size: 2.6rem; opacity: 0.35; display: inline-block; margin-bottom: var(--space-2); }

/* Signature canvas */
.signature-pad { border: 2px dashed var(--edimex-border-strong); border-radius: var(--radius); background: #fff; touch-action: none; width: 100%; max-width: 480px; height: 200px; }

/* Dropdown */
.dropdown-menu { border: 1px solid var(--edimex-border); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--edimex-surface); padding: 0.4rem; }
.dropdown-item { border-radius: 10px; padding: 0.5rem 0.75rem; color: var(--edimex-text); }
.dropdown-item:hover { background: var(--edimex-surface-2); color: var(--edimex-text); }

/* Pagination */
.page-link { color: var(--edimex-text); border-radius: 10px !important; margin: 0 2px; border-color: var(--edimex-border); }
.page-item.active .page-link { background: var(--gradient-brand); border-color: transparent; }
.page-link:hover { background: var(--edimex-surface-2); }

/* Alerts */
.alert { border-radius: var(--radius); border: 1px solid transparent; }
.alert-danger { background: rgba(var(--edimex-danger-rgb), 0.10); border-color: rgba(var(--edimex-danger-rgb), 0.25); color: #b91c1c; }
.alert-success { background: rgba(var(--edimex-success-rgb), 0.10); border-color: rgba(var(--edimex-success-rgb), 0.25); color: #047857; }
.alert-warning { background: rgba(var(--edimex-warning-rgb), 0.12); border-color: rgba(var(--edimex-warning-rgb), 0.3); color: #b45309; }
[data-theme="dark"] .alert-danger { color: #fca5a5; }
[data-theme="dark"] .alert-success { color: #6ee7b7; }
[data-theme="dark"] .alert-warning { color: #fcd34d; }

dl dt { color: var(--edimex-text-muted); font-weight: 600; font-size: 0.85rem; }
hr { border-color: var(--edimex-border); opacity: 1; }

/* ===== Fiche détail « 2026 » : hero de synthèse + grille d'infos ===== */
.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--edimex-border);
    border-radius: var(--radius-lg);
    background: var(--edimex-surface);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    align-items: center;
    justify-content: space-between;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-brand-soft);
    opacity: 0.55;
    pointer-events: none;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero .hero-eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.7rem; font-weight: 700; color: var(--edimex-text-muted); }
.page-hero .hero-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hero-meta { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-top: var(--space-4); }
.hero-meta .label { color: var(--edimex-text-muted); font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.hero-meta .value { font-weight: 600; margin-top: 1px; }

/* Tuiles de montant */
.stat-row { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.stat-tile {
    background: var(--edimex-surface);
    border: 1px solid var(--edimex-border);
    border-radius: var(--radius);
    padding: var(--space-3) var(--space-4);
    min-width: 148px;
    box-shadow: var(--shadow-xs);
}
.stat-tile .stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--edimex-text-muted); font-weight: 700; }
.stat-tile .stat-value { font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.stat-tile.is-accent { border-color: rgba(var(--edimex-primary-rgb), 0.3); background: var(--gradient-brand-soft); }
.stat-tile.is-success .stat-value { color: var(--edimex-success); }
.stat-tile.is-danger .stat-value { color: var(--edimex-danger); }

/* Grille d'infos (remplace les <dl> serrés) */
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); }
.detail-grid .full { grid-column: 1 / -1; }
.detail-item .detail-label { font-size: 0.74rem; color: var(--edimex-text-muted); font-weight: 600; margin-bottom: 2px; }
.detail-item .detail-value { font-weight: 600; }

/* Sous-titre de section discret */
.section-title { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.7rem; font-weight: 700; color: var(--edimex-text-muted); margin-bottom: var(--space-4); }

/* Liste de canaux (conformité : statuts par canal) */
.channel-list { display: flex; flex-direction: column; gap: var(--space-4); }
.channel { display: flex; align-items: flex-start; gap: var(--space-3); }
.channel .channel-ico {
    width: 38px; height: 38px; flex: 0 0 auto;
    border-radius: 11px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--edimex-surface-2);
    color: var(--edimex-text-muted);
    font-size: 1.05rem;
}
.channel.is-done .channel-ico { background: var(--gradient-brand); color: #fff; box-shadow: var(--shadow-primary); }
.channel .channel-body { min-width: 0; flex: 1 1 auto; }
.channel .channel-name { font-weight: 600; font-size: 0.92rem; }
.channel .channel-detail { font-size: 0.78rem; color: var(--edimex-text-muted); word-break: break-all; }
.channel .channel-detail code { font-size: 0.74rem; }

@media (max-width: 575.98px) {
    .detail-grid { grid-template-columns: 1fr; }
    .page-hero .stat-row { width: 100%; }
}
code { color: var(--edimex-primary-700); background: rgba(var(--edimex-primary-rgb), 0.08); padding: 0.1rem 0.35rem; border-radius: 6px; }

/* ===== Responsive : sidebar repliable ===== */
@media (max-width: 991.98px) {
    .app-sidebar { position: fixed; z-index: 1045; transform: translateX(-100%); box-shadow: var(--shadow-lg); }
    .app-sidebar.open { transform: translateX(0); }
    .sidebar-backdrop { position: fixed; inset: 0; background: rgba(7, 11, 20, 0.55); backdrop-filter: blur(2px); z-index: 1040; }
    .app-content { padding: var(--space-4); }
}
@media (min-width: 992px) { .sidebar-toggle { display: none; } }

/* ===== Accessibilité : prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* ===== Login ===== */
.login-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: var(--space-4);
    background:
        radial-gradient(900px 600px at 15% 15%, rgba(var(--edimex-primary-rgb), 0.30), transparent 55%),
        radial-gradient(800px 600px at 85% 80%, rgba(var(--edimex-accent-rgb), 0.28), transparent 55%),
        linear-gradient(135deg, #0b1220 0%, #131c34 100%);
}
.login-card {
    width: 100%;
    max-width: 430px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-xl);
    background: var(--edimex-surface-glass);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow-lg);
}

/* ===== Tom Select (listes déroulantes 2026) ===== */
.ts-wrapper { font-family: var(--font-sans); }
.ts-control {
    border-radius: 12px !important;
    border-color: var(--edimex-border-strong) !important;
    background: var(--edimex-surface) !important;
    color: var(--edimex-text) !important;
    min-height: 44px;
    padding: 0.4rem 0.7rem !important;
    box-shadow: none !important;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.ts-wrapper.focus .ts-control { border-color: var(--edimex-primary) !important; box-shadow: var(--ring) !important; }
.ts-control input, .ts-control .item { color: var(--edimex-text) !important; }
.ts-dropdown {
    border-radius: 14px;
    border: 1px solid var(--edimex-border);
    background: var(--edimex-surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    margin-top: 6px;
    color: var(--edimex-text);
}
.ts-dropdown .option { border-radius: 10px; margin: 2px 6px; padding: 0.5rem 0.6rem; }
.ts-dropdown .option.active { background: rgba(var(--edimex-primary-rgb), 0.14); color: var(--edimex-primary-700); }
.ts-wrapper.multi .ts-control > .item {
    background: var(--gradient-brand-soft);
    color: var(--edimex-primary-700);
    border: 1px solid rgba(var(--edimex-primary-rgb), 0.25);
    border-radius: var(--radius-pill);
    padding: 0.1rem 0.55rem;
}
[data-theme="dark"] .ts-dropdown .option.active { color: #c7d2fe; }
