/* SELACV Sécurité V8.9.0 — Tableau de bord plus visible (compteurs, PC, cartes). */
#dashboardView .tdbv-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 18px; }
#dashboardView .tdbv-tile { --t: #6b7280; --tb: #f3f4f6; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; padding: 14px 16px; border: 0; border-radius: 18px; background: var(--tb); color: var(--tdb-ink, #2f1d22); cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 22%, transparent); transition: transform .15s ease, box-shadow .15s ease; font: inherit; }
#dashboardView .tdbv-tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t) 40%, transparent), 0 10px 22px color-mix(in srgb, var(--t) 22%, transparent); }
#dashboardView .tdbv-tile:focus-visible { outline: 3px solid var(--t); outline-offset: 2px; }
#dashboardView .tdbv-tile-ico { grid-row: 1 / 3; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 24px; background: color-mix(in srgb, var(--t) 16%, #fff); }
#dashboardView .tdbv-tile b { font-size: 2rem; font-weight: 850; line-height: 1; color: var(--t); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
#dashboardView .tdbv-tile span:last-child { font-size: .8rem; font-weight: 700; line-height: 1.2; color: var(--tdb-muted, #6b5a5f); }
#dashboardView .tdbv-ok { --t: #15803d; --tb: #ecfdf3; }
#dashboardView .tdbv-warn { --t: #b45309; --tb: #fff8e6; }
#dashboardView .tdbv-alert { --t: #b91c1c; --tb: #fff1f1; }
#dashboardView .tdbv-info { --t: #1d4ed8; --tb: #eef4ff; }
#dashboardView .tdbv-calm, #dashboardView .tdbv-neutral { --t: #7a6166; --tb: #f8f4f5; }
[data-theme="dark"] #dashboardView .tdbv-ok { --t: #86efac; --tb: #12301f; }
[data-theme="dark"] #dashboardView .tdbv-warn { --t: #fcd38a; --tb: #33250b; }
[data-theme="dark"] #dashboardView .tdbv-alert { --t: #fca5a5; --tb: #3a1414; }
[data-theme="dark"] #dashboardView .tdbv-info { --t: #a5c3ff; --tb: #13213f; }
[data-theme="dark"] #dashboardView .tdbv-calm, [data-theme="dark"] #dashboardView .tdbv-neutral { --t: #c9b3ba; --tb: #2a171d; }
[data-theme="dark"] #dashboardView .tdbv-tile-ico { background: color-mix(in srgb, var(--t) 18%, #1d1316); }

/* PC : vert en poste, rouge (point qui clignote) sans agent */
#dashboardView .tdb-pc.tdbv-pc-on { border: 2px solid #16a34a !important; background: color-mix(in srgb, #16a34a 6%, var(--tdb-card, #fff)); }
#dashboardView .tdb-pc.tdbv-pc-off { border: 2px solid #dc2626 !important; background: color-mix(in srgb, #dc2626 6%, var(--tdb-card, #fff)); }
#dashboardView .tdb-pc .tdb-pc-agent { font-size: 1.25rem; }
#dashboardView .tdbv-dot { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 50%; background: #16a34a; vertical-align: 1px; }
#dashboardView .tdbv-pc-off .tdbv-dot { background: #dc2626; animation: tdbv-pulse 1.6s ease-out infinite; }
@keyframes tdbv-pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .55); } 70% { box-shadow: 0 0 0 9px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
#dashboardView .tdb-pc .tdb-pc-state::before { display: none !important; } /* remplacé par le point */

/* Cartes : icône et bande de couleur */
#dashboardView .tdbv-card { --k: #9f1239; border-top: 4px solid var(--k) !important; border-radius: 18px !important; }
#dashboardView .tdbv-rondes { --k: #7c3aed; } #dashboardView .tdbv-sites { --k: #0891b2; } #dashboardView .tdbv-tickets { --k: #dc2626; }
#dashboardView .tdbv-mc { --k: #b45309; } #dashboardView .tdbv-evac { --k: #e11d48; }
#dashboardView .tdbv-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 10px; border-radius: 11px; font-size: 18px; vertical-align: middle; background: color-mix(in srgb, var(--k, #9f1239) 14%, transparent); }
#dashboardView .tdb-sub-head .tdbv-ico { --k: #64748b; }
#dashboardView .tdb-card-head h3 { display: flex; align-items: center; font-size: 1.15rem; }
#dashboardView .tdb-card-head h3 .tdb-count { margin-left: 8px; }
#dashboardView .tdbv-type { align-self: center; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; font-size: 19px; background: color-mix(in srgb, var(--c, #9f1239) 16%, transparent); }
#dashboardView .tdb-row[data-tdb-visit] { grid-template-columns: auto auto 1fr auto !important; gap: 12px; }
#dashboardView .tdbv-flash { animation: tdbv-flash 1.2s ease-out 1; }
@keyframes tdbv-flash { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--k, #9f1239) 45%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* Citation plus discrète */
#dashboardView .daily-quote { padding: 8px 14px !important; min-height: 0 !important; }
#dashboardView .daily-quote .daily-quote-text { font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { #dashboardView .tdbv-pc-off .tdbv-dot, #dashboardView .tdbv-flash { animation: none; } #dashboardView .tdbv-tile:hover { transform: none; } }
/* tableau-de-bord-v860.css masque tout ce qui n'est pas #tdbHead, #tdbRoot ou la citation : on laisse passer la bande. */
#dashboardView.tdb-on > #tdbvBand:not(#_v1):not(#_v2):not(#_v3) { display: grid !important; }
