/* SELACV Sécurité V8.13.0 — Tickets plus lisibles (cartes, personnes, priorités, états).
   Préfixe fort : tickets.css, lisibilite.css et theme-sombre.css utilisent beaucoup de !important. */
#ticketsView { --tkv-card: #fff; --tkv-ink: #2f1d22; --tkv-soft: #7a6166; --tkv-line: #efe2e5; }
[data-theme="dark"] #ticketsView { --tkv-card: #241a1d; --tkv-ink: #f5e9ec; --tkv-soft: #c9adb4; --tkv-line: #3d2a2f; }

html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-content .tickets-list-v681 { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)) !important; gap: 14px !important; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView article.ticket-v681.tkv-card { display: block !important; position: relative; padding: 16px 18px 14px !important; min-height: 0 !important; border: 0 !important; border-radius: 18px !important; background: var(--tkv-card) !important; color: var(--tkv-ink) !important; box-shadow: inset 0 0 0 1px var(--tkv-line), 0 2px 6px rgba(47, 29, 34, .05) !important; transition: transform .15s ease, box-shadow .15s ease; cursor: pointer; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView article.ticket-v681.tkv-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, #9f1239 30%, var(--tkv-line)), 0 12px 26px rgba(159, 18, 57, .12) !important; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView article.ticket-v681.tkv-card:focus-visible { outline: 3px solid #9f1239; outline-offset: 2px; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView article.ticket-v681.tkv-card::before, html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView article.ticket-v681.tkv-card::after { display: none !important; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView article.ticket-v681.tkv-card > :not(.tkv) { display: none !important; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView article.ticket-v681.tkv-card.tkv-urgent { box-shadow: inset 0 0 0 2px #dc2626, 0 6px 16px rgba(220, 38, 38, .14) !important; }

html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-no { padding: 3px 10px; border-radius: 999px; background: #2f1d22; color: #fff; font-size: .78rem; font-weight: 800; font-variant-numeric: tabular-nums; }
html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-no { background: #f5e9ec; color: #2f1d22; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio { padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-urgent { background: #dc2626; color: #fff; } html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-tres-haute { background: #fee2e2; color: #b91c1c; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-haute { background: #ffedd5; color: #c2410c; } html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-moyenne { background: #fef3c7; color: #a16207; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-basse { background: #e0ecff; color: #1d4ed8; } html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-tres-basse, html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-autre { background: #eef0f3; color: #4b5563; }
html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-tres-haute { background: #4c1414; color: #fecaca; } html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-haute { background: #4a2408; color: #fed7aa; } html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-moyenne { background: #3f3008; color: #fde68a; } html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-basse { background: #172554; color: #bfdbfe; } html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-tres-basse, html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-prio-autre { background: #2f2a2c; color: #e5dfe1; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-age { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--tkv-soft); }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-age.is-old { color: #b45309; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-title { margin: 0 0 3px !important; font-size: 1.08rem !important; font-weight: 800 !important; line-height: 1.3 !important; color: var(--tkv-ink) !important; overflow-wrap: anywhere; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-sub { margin: 0 0 12px !important; font-size: .8rem !important; font-weight: 600; color: var(--tkv-soft) !important; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-who { display: flex; align-items: center; gap: 12px; padding: 10px 12px; margin: 10px 0 12px; border-radius: 14px; background: color-mix(in srgb, #9f1239 5%, var(--tkv-card)); }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-avatar { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; font-size: 1rem; font-weight: 850; color: #fff; background: hsl(var(--h, 340) 55% 42%); letter-spacing: .02em; line-height: 1; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-avatar.is-group { background: color-mix(in srgb, #9f1239 14%, var(--tkv-card)); font-size: 1.3rem; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-who > span:not(.tkv-avatar) { display: flex; flex-direction: column; min-width: 0; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-who small { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--tkv-soft); }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-who b { font-size: 1.05rem; font-weight: 800; color: var(--tkv-ink); line-height: 1.25; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-who em { font-style: normal; font-size: .78rem; color: var(--tkv-soft); }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state { padding: 5px 11px; border-radius: 999px; font-size: .8rem; font-weight: 800; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-pec { background: #fef3c7; color: #a16207; } html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-cours { background: #e0ecff; color: #1d4ed8; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-externe { background: #ede9fe; color: #6d28d9; } html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-attente { background: #ffedd5; color: #c2410c; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-retour { background: #eef0f3; color: #374151; } html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-fini { background: #dcfce7; color: #15803d; } html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-autre { background: #f3eef0; color: #5b4a50; }
html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-pec { background: #3f3008; color: #fde68a; } html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-cours { background: #172554; color: #bfdbfe; } html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-externe { background: #2e1065; color: #ddd6fe; } html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-attente { background: #4a2408; color: #fed7aa; } html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-retour, html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-autre { background: #2f2a2c; color: #e5dfe1; } html[data-theme="dark"]:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-state-fini { background: #14532d; color: #dcfce7; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-open { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; background: #9f1239; color: #fff !important; font-size: .82rem; font-weight: 800; text-decoration: none !important; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tkv-open:hover { background: #be123c; }

/* Regroupements par site et par catégorie */
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tickets-site-head-v681.tkv-site-head { min-height: 0 !important; padding: 14px 18px !important; display: flex !important; align-items: center !important; gap: 12px; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tickets-site-head-v681.tkv-site-head h3 { font-size: 1.4rem !important; font-weight: 850 !important; margin: 0 !important; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tickets-site-head-v681.tkv-site-head span { min-width: 34px; height: 34px; display: grid; place-items: center; padding: 0 10px; border-radius: 999px; font-size: .95rem !important; font-weight: 850 !important; }
html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView .tickets-category-v681 > h4.tkv-cat-head { font-size: 1.05rem !important; font-weight: 800 !important; margin: 18px 0 10px !important; }
@media (prefers-reduced-motion: reduce) { html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView article.ticket-v681.tkv-card { transition: none; } html:not(#_t1):not(#_t2):not(#_t3):not(#_t4) #ticketsView article.ticket-v681.tkv-card:hover { transform: none; } }
