:root{--bg: #f7f8fa;--surface: #ffffff;--surface-2: #fbfbfc;--border: #ececf1;--border-strong: #e0e2e8;--ink: #14161c;--text: #3a3f4b;--muted: #868b96;--muted-2: #a9adb7;--bch-bleu: #1c2f6d;--bch-bleu-clair: #2a4494;--bch-bleu-pale: #eceff7;--bch-gris: #c0c3c6;--bch-gris-pale: #f3f4f5;--accent: var(--bch-bleu);--accent-text: #ffffff;--accent-hover: #142252;--focus: rgba(28, 47, 109, .18);--motif-toits: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='26' viewBox='0 0 44 26'%3E%3Cpath d='M-4 26 L11 8 L26 26 M18 26 L33 8 L48 26' fill='none' stroke='%231c2f6d' stroke-width='1.1' stroke-linejoin='round' opacity='.18'/%3E%3C/svg%3E");--amber-bg: #fdf6ec;--amber-fg: #b26a02;--blue-bg: #eef3fb;--blue-fg: #2f6ad9;--green-bg: #eafaf1;--green-fg: #12805c;--gray-bg: #f2f3f5;--gray-fg: #6b7280;--red-bg: #fdeceb;--red-fg: #c4382f;--sidebar-width: 250px;--radius: 12px;--radius-sm: 9px;--shadow-sm: 0 1px 2px rgba(20, 22, 28, .04);--shadow: 0 4px 16px rgba(20, 22, 28, .06)}:root[data-theme=dark]{--bg: #0f1115;--surface: #1a1d24;--surface-2: #23262f;--border: #2b2e38;--border-strong: #383c48;--ink: #f2f3f5;--text: #c6cad2;--muted: #8b8f9b;--muted-2: #6b6f7a;--bch-bleu: #7d97e8;--bch-bleu-clair: #9ab0f0;--bch-bleu-pale: #1a2340;--bch-gris: #9aa0ac;--bch-gris-pale: #262932;--accent: var(--bch-bleu);--accent-text: #0b1020;--accent-hover: #9ab0f0;--focus: rgba(125, 151, 232, .28);--motif-toits: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='26' viewBox='0 0 44 26'%3E%3Cpath d='M-4 26 L11 8 L26 26 M18 26 L33 8 L48 26' fill='none' stroke='%237d97e8' stroke-width='1.1' stroke-linejoin='round' opacity='.22'/%3E%3C/svg%3E");--amber-bg: #3a2f18;--amber-fg: #e0a530;--blue-bg: #1c2a3d;--blue-fg: #5b9bf0;--green-bg: #16332a;--green-fg: #2fb87a;--gray-bg: #262932;--gray-fg: #9aa0ac;--red-bg: #3a1f1d;--red-fg: #e0685f;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow: 0 4px 16px rgba(0, 0, 0, .4)}[data-bs-theme=dark]{--bs-body-bg: var(--bg);--bs-body-color: var(--text);--bs-border-color: var(--border);--bs-secondary-bg: var(--surface-2);--bs-tertiary-bg: var(--surface-2)}html[data-theme=dark] .table{--bs-table-bg: var(--surface);--bs-table-color: var(--text);--bs-table-border-color: var(--border);--bs-table-striped-bg: rgba(255, 255, 255, .03);--bs-table-hover-bg: var(--surface-2);--bs-table-active-bg: var(--surface-2)}*{box-sizing:border-box}body,.card,.sidebar,.dashboard-header,.btn,.form-control,.form-select,.dropdown-menu,.badge,.table,.stat-card,.stat-icon{transition:background-color .2s ease,color .2s ease,border-color .2s ease}body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;line-height:1.55;font-size:15px}h1,h2,h3,h4,h5,h6{font-family:Inter,sans-serif;color:var(--ink);letter-spacing:-.015em;font-weight:600}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:8px;border:2px solid var(--bg)}::-webkit-scrollbar-thumb:hover{background:var(--muted-2)}.sidebar{background:var(--surface);color:var(--text);border-right:1px solid var(--border)!important;box-shadow:none;position:fixed;top:0;left:0;width:var(--sidebar-width);height:100vh;display:flex;flex-direction:column;overflow-y:auto;z-index:1030}.main-content{flex:1 1 auto;min-width:0;margin-left:var(--sidebar-width);min-height:100vh}.sidebar .brand-name{color:var(--ink)!important}.sidebar .brand-chip{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:9px;display:inline-flex}.sidebar .brand-block{position:relative;border-bottom:1px solid var(--border);padding-bottom:1rem;overflow:hidden}.sidebar .brand-block:before{content:"";position:absolute;left:0;right:0;bottom:0;height:20px;background-image:var(--motif-toits);background-position:center bottom;opacity:.28;pointer-events:none;-webkit-mask-image:linear-gradient(to top,#000 0%,transparent 100%);mask-image:linear-gradient(to top,#000 0%,transparent 100%)}.sidebar .brand-block>*{position:relative}.bch-logo{height:104px;width:auto;border-radius:8px;display:block;margin:0 auto;box-shadow:var(--shadow-sm)}.sidebar .brand-name{letter-spacing:.06em}.sidebar .brand-sub{color:var(--muted);font-size:.74rem;letter-spacing:.02em}.dashboard-header{border-bottom:2px solid var(--bch-bleu)!important}.sidebar .nav-link.active{box-shadow:inset 2px 0 0 var(--bch-bleu)}.sidebar .nav-link.active i{color:var(--bch-bleu)!important}.bch-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.25rem .6rem;border-radius:999px;background:var(--bch-bleu-pale);color:var(--bch-bleu);border:1px solid color-mix(in srgb,var(--bch-bleu) 22%,transparent);font-size:.74rem;font-weight:600}.sidebar .nav-link{color:var(--text);border-radius:9px;margin:2px 12px;padding:10px 12px;font-weight:500;font-size:.92rem;display:flex;align-items:center;gap:6px;position:relative;transition:background .15s ease,color .15s ease;border:none}.sidebar .nav-link i{color:var(--muted);width:18px;transition:color .15s ease}.sidebar .nav-link:hover{color:var(--ink);background:var(--surface-2)}.sidebar .nav-link:hover i{color:var(--text)}.sidebar .nav-link.active{color:var(--ink);background:var(--surface-2);font-weight:600}.sidebar .nav-link.active i{color:var(--ink)}.sidebar .nav-link.active:before{content:"";position:absolute;left:-12px;top:8px;bottom:8px;width:3px;border-radius:0 3px 3px 0;background:var(--ink)}.sidebar .sidebar-foot{background:transparent;border:1px solid var(--border);border-radius:10px;color:var(--muted)}.sidebar .sidebar-foot strong{color:var(--text)}.theme-toggle{display:flex;align-items:center;gap:8px;width:100%;border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:9px;padding:9px 12px;font-weight:500;font-size:.88rem;transition:background .15s ease,color .15s ease,border-color .15s ease}.theme-toggle:hover{background:var(--surface-2);color:var(--ink);border-color:var(--border-strong)}.theme-toggle i{width:16px;color:var(--muted)}.theme-toggle:hover i{color:var(--text)}.dashboard-header{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:.8rem 1.2rem}.dashboard-header h2{font-size:1.25rem;font-weight:600;margin:0}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:none;transition:border-color .2s ease}.card:hover{border-color:var(--border-strong)}.card-header{background:transparent;border-bottom:1px solid var(--border);padding:.9rem 1.2rem;font-weight:600;color:var(--ink)}.card-body{color:var(--text)}.card-title{color:var(--ink);font-weight:600}.shadow-sm{box-shadow:none!important}.border-0{border:1px solid var(--border)!important}.stat-card:hover{transform:none}.stat-icon{width:42px;height:42px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-size:1.05rem;color:var(--ink);background:var(--surface-2);border:1px solid var(--border)}.stat-icon.bg-primary,.stat-icon.bg-success,.stat-icon.bg-warning,.stat-icon.bg-info{background:var(--surface-2)!important;color:var(--ink)!important}.btn{border-radius:9px;font-weight:500;font-size:.9rem;padding:.55rem 1.05rem;transition:all .15s ease;border:1px solid transparent;line-height:1.35}.btn-sm{padding:.45rem .85rem;font-size:.83rem;border-radius:8px}.btn-group-sm>.btn{padding:.42rem .85rem;font-size:.82rem}.btn-gradient,.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn-gradient:hover,.btn-primary:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--accent-text);transform:none;box-shadow:none}.btn-outline-primary{border:1px solid var(--border-strong);color:var(--ink);background:var(--surface)}.btn-outline-primary:hover{background:var(--surface-2);color:var(--ink);border-color:var(--muted-2)}.btn-success{background:var(--green-fg);border-color:var(--green-fg);color:#fff}.btn-success:hover{filter:brightness(.95);color:#fff}.btn-warning{background:var(--amber-fg);border-color:var(--amber-fg);color:#fff}.btn-outline-secondary{border:1px solid var(--border-strong);color:var(--muted);background:var(--surface)}.btn-outline-secondary:hover{background:var(--surface-2);color:var(--ink)}.btn-glass{background:var(--surface);border:1px solid var(--border);color:var(--text);font-weight:500}.btn-glass:hover{background:var(--surface-2);color:var(--ink)}.btn-dark{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn-dark:hover{background:var(--accent-hover);border-color:var(--accent-hover);color:var(--accent-text)}.btn-outline-dark{border:1px solid var(--border-strong);color:var(--text);background:var(--surface)}.btn-outline-dark:hover{background:var(--surface-2);color:var(--ink);border-color:var(--muted-2)}.border{border-color:var(--border)!important}.table-light,.table-light>*{--bs-table-bg: var(--surface-2);--bs-table-color: var(--muted)}.table-dark,.table-dark>*{--bs-table-bg: var(--surface-2);--bs-table-color: var(--ink)}.btn-outline-warning{border:1px solid var(--border-strong);color:var(--muted);background:var(--surface)}.btn-outline-warning:hover{background:var(--surface-2);color:var(--ink)}.btn-outline-success{border:1px solid var(--border-strong);color:var(--muted);background:var(--surface)}.btn-outline-success:hover{background:var(--surface-2);color:var(--ink)}.btn-group .btn.btn-primary,.btn-group .btn.btn-warning,.btn-group .btn.btn-success{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.text-gradient{background:none;-webkit-text-fill-color:currentColor;color:var(--ink);font-weight:700;letter-spacing:-.02em}.text-muted{color:var(--muted)!important}.table{color:var(--text);margin:0}.table thead th{background:var(--surface-2);color:var(--muted);font-weight:600;font-size:.74rem;text-transform:uppercase;letter-spacing:.05em;border:none;border-bottom:1px solid var(--border);padding:.7rem 1rem}.table tbody td{color:var(--text);border:none;border-bottom:1px solid var(--border);padding:.8rem 1rem;vertical-align:middle}.table tbody tr:last-child td{border-bottom:none}.table-hover tbody tr{transition:background .12s ease}.table-hover tbody tr:hover{background:var(--surface-2)}.table-active,.table-active>td{background:var(--surface-2)!important}.badge{font-weight:600;padding:.5em .85em;border-radius:999px;font-size:.76rem;line-height:1.3;letter-spacing:.015em;display:inline-flex;align-items:center;white-space:nowrap}.badge.bg-warning{background:var(--amber-bg)!important;color:var(--amber-fg)!important}.badge.bg-primary{background:var(--blue-bg)!important;color:var(--blue-fg)!important}.badge.bg-success{background:var(--green-bg)!important;color:var(--green-fg)!important}.badge.bg-secondary{background:var(--gray-bg)!important;color:var(--gray-fg)!important}.badge.bg-light{background:var(--surface-2)!important;color:var(--text)!important;border:1px solid var(--border)}.form-control,.form-select{background:var(--surface);border:1px solid var(--border-strong);border-radius:9px;color:var(--ink);padding:.55rem .75rem;font-size:.92rem;transition:border-color .15s ease,box-shadow .15s ease}.form-control::placeholder{color:var(--muted-2)}.form-control:focus,.form-select:focus{background:var(--surface);border-color:var(--muted);box-shadow:0 0 0 3px var(--focus);color:var(--ink);outline:none}.form-label{font-weight:500;color:var(--text);margin-bottom:.35rem;font-size:.88rem}.dropdown-menu{background:var(--surface);border:1px solid var(--border);border-radius:11px;box-shadow:var(--shadow);padding:6px}.dropdown-item{color:var(--text);border-radius:8px;padding:8px 11px;font-weight:500;font-size:.9rem}.dropdown-item:hover{background:var(--surface-2);color:var(--ink)}.dropdown-header{color:var(--muted)}.dropdown-divider{border-color:var(--border)}.alert{border-radius:10px;border:1px solid var(--border);font-size:.9rem}.alert-danger{background:#fdf1f0;border-color:#f3d6d3;color:var(--red-fg)}.alert-success{background:var(--green-bg);border-color:#cdeede;color:var(--green-fg)}.spinner-modern{width:16px;height:16px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;display:inline-block;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes fadeInUp{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.fade-in-up{animation:fadeInUp .35s ease-out}@media (prefers-reduced-motion: reduce){*{animation:none!important;transition:none!important}}@media (max-width: 768px){.sidebar{position:fixed;top:0;left:-100%;width:258px;z-index:1000;transition:left .25s ease}.sidebar.show{left:0}.main-content{margin-left:0!important}}html[data-theme=dark][data-theme=dark][data-theme=dark] .card,html[data-theme=dark][data-theme=dark][data-theme=dark] .card-body,html[data-theme=dark][data-theme=dark][data-theme=dark] .stat-card,html[data-theme=dark][data-theme=dark][data-theme=dark] .channel-card,html[data-theme=dark][data-theme=dark][data-theme=dark] .channel-card.active{background:var(--surface)!important;border-color:var(--border)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .card-header{background:var(--surface-2)!important;border-color:var(--border)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .card-header .card-title,html[data-theme=dark][data-theme=dark][data-theme=dark] .card-body .text-primary,html[data-theme=dark][data-theme=dark][data-theme=dark] .stat-card h4,html[data-theme=dark][data-theme=dark][data-theme=dark] .usage-text h3,html[data-theme=dark][data-theme=dark][data-theme=dark] .stat-icon{color:var(--ink)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .card-body h6,html[data-theme=dark][data-theme=dark][data-theme=dark] .card-body p,html[data-theme=dark][data-theme=dark][data-theme=dark] .card-body label,html[data-theme=dark][data-theme=dark][data-theme=dark] .usage-details p,html[data-theme=dark][data-theme=dark][data-theme=dark] .channel-card h6,html[data-theme=dark][data-theme=dark][data-theme=dark] .text-muted{color:var(--text)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .card-body .text-muted,html[data-theme=dark][data-theme=dark][data-theme=dark] .stat-card p,html[data-theme=dark][data-theme=dark][data-theme=dark] .usage-details small{color:var(--muted)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .stat-card small{color:var(--muted-2)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .stat-icon{border-color:var(--border)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .stat-icon.bg-primary,html[data-theme=dark][data-theme=dark][data-theme=dark] .stat-icon.bg-success,html[data-theme=dark][data-theme=dark][data-theme=dark] .stat-icon.bg-warning,html[data-theme=dark][data-theme=dark][data-theme=dark] .stat-icon.bg-info{background:var(--surface-2)!important;color:var(--ink)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .channel-card.inactive{background:var(--surface-2)!important;border-color:var(--border)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .channel-card.active h6{color:var(--green-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .usage-circle:before{background:var(--surface)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .usage-circle{background:conic-gradient(from 0deg,var(--ink) 0deg,var(--ink) calc(var(--percentage) * 3.6deg),var(--border-strong) calc(var(--percentage) * 3.6deg),var(--border-strong) 360deg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .turn{border-left-color:var(--ink)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .turn-assistant{border-left-color:var(--border)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .turn-role{color:var(--ink)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .turn-assistant .turn-role,html[data-theme=dark][data-theme=dark][data-theme=dark] .turn-assistant .turn-text,html[data-theme=dark][data-theme=dark][data-theme=dark] .convo-empty{color:var(--muted)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .turn-text{color:var(--text)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .turn-flag{background:var(--amber-bg)!important;color:var(--amber-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .handler-bot{background:var(--blue-bg)!important;color:var(--blue-fg)!important;border-color:var(--border)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .handler-agent,html[data-theme=dark][data-theme=dark][data-theme=dark] .prio-normale{background:var(--gray-bg)!important;color:var(--gray-fg)!important;border-color:var(--border)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .bot-note{background:var(--surface-2)!important;border-color:var(--border)!important;color:var(--text)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .prio-urgente{background:var(--red-bg)!important;color:var(--red-fg)!important;border-color:var(--red-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .prio-basse{color:var(--muted)!important;border-color:var(--border)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .card-urgent{box-shadow:0 0 0 1px var(--red-fg),0 .125rem .25rem #0000004d!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .kpi-num,html[data-theme=dark][data-theme=dark][data-theme=dark] .chart-title,html[data-theme=dark][data-theme=dark][data-theme=dark] .lg-val,html[data-theme=dark][data-theme=dark][data-theme=dark] .cat-val,html[data-theme=dark][data-theme=dark][data-theme=dark] .rec-title{color:var(--ink)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .kpi-num .pct,html[data-theme=dark][data-theme=dark][data-theme=dark] .kpi-label,html[data-theme=dark][data-theme=dark][data-theme=dark] .kpi-hint,html[data-theme=dark][data-theme=dark][data-theme=dark] .bars-axis,html[data-theme=dark][data-theme=dark][data-theme=dark] .lg-label,html[data-theme=dark][data-theme=dark][data-theme=dark] .cat-label,html[data-theme=dark][data-theme=dark][data-theme=dark] .rec-sub,html[data-theme=dark][data-theme=dark][data-theme=dark] .insight .ic{color:var(--muted)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .kpi-hint.good{color:var(--green-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .kpi-hint.warn{color:var(--amber-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .kpi-hint.bad,html[data-theme=dark][data-theme=dark][data-theme=dark] .cat-val .unsat{color:var(--red-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .bar,html[data-theme=dark][data-theme=dark][data-theme=dark] .cat-fill{background:var(--text)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .cat-track{background:var(--surface-2)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .rec-ic{background:var(--ink)!important;color:var(--bg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .insight{background:var(--surface)!important;border-color:var(--border)!important;color:var(--text)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .insight .ic{background:var(--surface-2)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .insight.danger{border-left-color:var(--red-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .insight.danger .ic{background:var(--red-bg)!important;color:var(--red-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .insight.warn{border-left-color:var(--amber-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .insight.warn .ic{background:var(--amber-bg)!important;color:var(--amber-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .insight.good{border-left-color:var(--green-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .insight.good .ic{background:var(--green-bg)!important;color:var(--green-fg)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .insight.info{border-left-color:var(--border-strong)!important}html[data-theme=dark][data-theme=dark][data-theme=dark] .insight.info .ic{background:var(--blue-bg)!important;color:var(--blue-fg)!important}
