/* ==========================================================================
   SELACV – Gestion de site : fiche ticket, reprise exacte de la fiche d’Audiovisuel
   (css/audiovisuel.css « .event-dialog / .ev-* » et css/tickets.css « .tk-badge », V0.6).
   Seules différences : couleurs du thème lavande (variables), fond des blocs.
   ========================================================================== */
:root { --cathedrale-soft: #fffdf1; --citadelle-soft: #fff7f7; --saint-charles-soft: #f5f9ff; --saint-leu-soft: #f4fcf7; --teinturerie-soft: #faf5ff; }
:root[data-theme="dark"] { --cathedrale-soft: #2c2716; --citadelle-soft: #2f1f22; --saint-charles-soft: #1d2634; --saint-leu-soft: #1c2a23; --teinturerie-soft: #2a2138; }
.event-dialog {
  --campus: var(--accent);
  --campus-ink: #fff;
  --campus-soft: #f2f7ff;
  width: min(1200px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 34px 90px #06153d66;
  overflow: hidden;
}
.event-dialog.campus-cathedrale { --campus: var(--cathedrale); --campus-ink: #3a2e00; --campus-soft: var(--cathedrale-soft); }
.event-dialog.campus-citadelle { --campus: var(--citadelle); --campus-soft: var(--citadelle-soft); }
.event-dialog.campus-saint-charles { --campus: var(--saint-charles); --campus-soft: var(--saint-charles-soft); }
.event-dialog.campus-saint-leu { --campus: var(--saint-leu); --campus-soft: var(--saint-leu-soft); }
.event-dialog.campus-teinturerie { --campus: var(--teinturerie); --campus-soft: var(--teinturerie-soft); }
.event-dialog[open] { display: flex; flex-direction: column; }
.event-dialog::backdrop { background: #06153d99; backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  .event-dialog[open] { animation: evOpen .22s ease-out; }
  @keyframes evOpen { from { opacity: 0; transform: translateY(10px) scale(.985); } }
}

/* En-tête : talon de date + titre */
.ev-hero { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; background: var(--campus-soft); border-bottom: 1px solid var(--line); }
.ev-stub {
  display: flex; flex-direction: column; justify-content: center; min-width: 150px; padding: 20px 26px;
  background: var(--campus); color: var(--campus-ink); text-align: center;
}
.ev-stub-weekday { font-size: 13px; font-weight: 700; }
.ev-stub-weekday::first-letter { text-transform: uppercase; }
.ev-stub-day { font-size: 54px; font-weight: 900; line-height: 1; letter-spacing: -.03em; margin: 4px 0; white-space: nowrap; }
.ev-stub-month { font-size: 14px; font-weight: 700; }
.ev-hero-text { align-self: center; padding: 22px 28px; min-width: 0; }
.ev-kind { margin: 0 0 6px; color: var(--muted); font-size: 14px; font-weight: 700; }
.ev-hero-text h3 { margin: 0; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.ev-cancelled { display: inline-block; margin-top: 10px; padding: 4px 11px; border-radius: 999px; background: #b91c1c; color: #fff; font-size: 12px; font-weight: 800; }
.event-dialog.is-cancelled .ev-hero-text h3 { text-decoration: line-through; text-decoration-thickness: 2px; color: #5b6b86; }
.ev-close {
  align-self: start; margin: 16px 16px 0 0; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  background: #fff; color: var(--ink); font-size: 16px; cursor: pointer;
}
.ev-close:hover { background: #eef4ff; }
.ev-close:focus-visible, .ev-contact-btn:focus-visible, .ev-ticket:focus-visible { outline: 3px solid #24d6d0; outline-offset: 2px; }

/* Corps */
.event-dialog-body { padding: 22px 28px 26px; overflow: auto; }
.ev-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 22px; }
.ev-fact { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; }
.ev-fact + .ev-fact { border-left: 1px solid var(--line); }
.ev-fact-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.ev-fact strong { font-size: 18px; line-height: 1.25; overflow-wrap: anywhere; }
.ev-fact-sub { color: var(--muted); font-size: 13px; }
.ev-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 26px; align-items: start; }
.ev-main, .ev-side { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.ev-block h4 { margin: 0 0 10px; color: var(--ink); font-size: 15px; font-weight: 800; }
.ev-side .ev-block { padding-top: 18px; border-top: 1px solid var(--line); }

/* Matériel : l’information principale pour l’équipe audiovisuelle */
.ev-needs { padding: 18px 20px; border-radius: 14px; background: #f1f7ff; border: 1px solid #d3e4ff; }
.ev-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ev-chips li { padding: 8px 14px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.ev-empty { margin: 0; color: var(--muted); font-size: 14px; }
.ev-other { margin: 14px 0 0; font-size: 14px; line-height: 1.45; }
.ev-other span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.ev-extras { margin: 12px 0 0; color: #0b5d63; font-size: 13px; font-weight: 700; }
.ev-note { margin: 0; padding-left: 14px; border-left: 3px solid var(--campus); font-size: 15px; line-height: 1.6; max-width: 70ch; }
.ev-dl { display: grid; grid-template-columns: max-content 1fr; gap: 7px 22px; margin: 0; font-size: 14px; }
.ev-dl dt { color: var(--muted); }
.ev-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Contacts */
.ev-person { padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.ev-person-head { display: flex; gap: 12px; align-items: center; }
.ev-person-head strong { display: block; font-size: 16px; }
.ev-person-head div span { display: block; color: var(--muted); font-size: 13px; }
.ev-avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--campus); color: var(--campus-ink); font-weight: 900; font-size: 15px; }
.ev-person-lines { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.ev-person-lines a { color: var(--accent); font-weight: 700; }
.ev-person-actions { display: flex; gap: 8px; margin-top: 12px; }
.ev-contact-btn { flex: 1; padding: 9px 12px; border: 1px solid #bcd3fb; border-radius: 10px; background: #fff; color: var(--accent); font-size: 14px; font-weight: 800; text-align: center; text-decoration: none; }
.ev-contact-btn:hover { background: #eaf3ff; }

/* Tickets et validations */
.ev-ticket-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 0; font-size: 14px; }
.ev-ticket { padding: 5px 12px; border-radius: 8px; background: #0b1b3a; color: #fff; font-weight: 800; text-decoration: none; }
.ev-ticket:hover { background: var(--accent); }
.ev-ticket-none { color: var(--muted); font-style: italic; }
.ev-checks { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.ev-checks li { display: flex; align-items: center; gap: 10px; }
.ev-checks li > span:first-child { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-weight: 900; font-size: 12px; }
.ev-checks .is-ok > span:first-child { background: #d8f5e5; color: #13703f; }
.ev-checks .is-no { color: var(--muted); }
.ev-checks .is-no > span:first-child { background: #eef2f8; color: #8a99b3; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ev-trace { margin: 0; color: var(--muted); font-size: 12px; }

/* Pied : actions ticket */
.event-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; padding: 14px 28px; border-top: 1px solid var(--line); background: #f8fbff; }
.event-dialog-status { flex: 1 1 320px; margin: 0; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .ev-grid { grid-template-columns: 1fr; }
  .ev-facts { grid-template-columns: 1fr; }
  .ev-fact + .ev-fact { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .event-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; border-radius: 0; }
  .ev-hero { grid-template-columns: 1fr auto; }
  .ev-stub { grid-column: 1 / -1; grid-row: 2; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 10px; min-width: 0; padding: 10px 18px; text-align: left; }
  .ev-stub-day { font-size: 28px; margin: 0; }
  .ev-hero-text { padding: 18px; }
  .event-dialog-body { padding: 16px 18px 20px; }
  .event-dialog-actions { padding: 12px 18px; }
  .event-dialog-actions .btn { flex: 1 1 100%; }
}
/* Pastilles d’état et de priorité */
.tk-badge { display: inline-flex; align-items: center; padding: 3px 9px; border: 1px solid #cfe0ff; border-radius: 999px; background: #f4f8ff; color: #315a96; font-size: 12px; font-weight: 800; white-space: nowrap; }
.tk-badge.is-info { border-color: #b8d3ff; background: #eaf3ff; color: #0d4fca; }
.tk-badge.is-ok { border-color: #bfe6cc; background: #eefaf2; color: #13703f; }
.tk-badge.is-warn { border-color: #f4d79c; background: #fff6e5; color: #8a5200; }
.tk-badge.is-muted { border-color: #d7dde8; background: #f3f5f9; color: #5b6b86; }
.tk-badge.is-danger { border-color: #f3b4b4; background: #fff0f0; color: #b91c1c; }
.tk-badge.is-orange { border-color: #fdcc9b; background: #fff3e8; color: #b45309; }
.tk-badge.is-amber { border-color: #f6e08f; background: #fffbea; color: #8a6400; }
.tk-badge.is-blue { border-color: #c7d7fb; background: #eef4ff; color: #1d4ed8; }
.tk-badge.is-green { border-color: #bfe6cc; background: #f0fbf4; color: #15803d; }

/* Fiche ticket : reprend la fiche d’événement (css/audiovisuel.css, .event-dialog / .ev-*) */
.ticket-dialog .tk-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ticket-dialog .ev-stub-day.tk-stub-number { font-size: 38px; letter-spacing: -.02em; }
.ticket-dialog .event-dialog-actions a.btn { text-decoration: none; }
.tk-links { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tk-link { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; border: 1px solid #d3e4ff; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.tk-link:hover { background: #f2f8ff; }
.tk-link span { color: var(--muted); font-size: 13px; }

/* Couleurs du thème Gestion de site (clair et sombre) */
.event-dialog { --campus: var(--accent); --campus-soft: var(--soft); background: var(--surface); }
.event-dialog.campus-cathedrale { --campus-ink: #3a2e00; }
.event-dialog::backdrop { background: #1b142699; }
.ev-close, .tk-link { background: var(--surface); color: var(--ink); }
.ev-close:hover, .tk-link:hover { background: var(--soft); }
.ev-needs { background: var(--surface-alt); border-color: var(--line); }
.event-dialog-actions { background: var(--surface-alt); }
.ev-avatar { color: #fff; }
.tk-link { border-color: var(--line); }
.ev-plan { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-left: 3px solid var(--lane-maintenance); border-radius: 10px; }
.ev-plan span { color: var(--muted); font-size: 13px; }
:root[data-theme="dark"] .tk-badge { border-color: var(--line); background: var(--surface-alt); color: var(--ink); }
:root[data-theme="dark"] .tk-badge.is-ok, :root[data-theme="dark"] .tk-badge.is-green { background: #1f3a2c; color: #8fe0b2; }
:root[data-theme="dark"] .tk-badge.is-warn, :root[data-theme="dark"] .tk-badge.is-amber, :root[data-theme="dark"] .tk-badge.is-orange { background: #3d3020; color: #f0cd8c; }
:root[data-theme="dark"] .tk-badge.is-danger { background: #4a2523; color: #ffaaa3; }
:root[data-theme="dark"] .tk-badge.is-info, :root[data-theme="dark"] .tk-badge.is-blue { background: #1d3550; color: #9cc6f0; }
:root[data-theme="dark"] .ev-checks .is-ok > span:first-child { background: #1f3a2c; color: #8fe0b2; }
:root[data-theme="dark"] .ev-checks .is-no > span:first-child { background: var(--surface-alt); }
.ev-close:focus-visible, .ev-contact-btn:focus-visible, .ev-ticket:focus-visible, .tk-link:focus-visible { outline-color: var(--accent-2); }

/* V1.5.0 — date d'intervention prévue, bien visible */
.tk-due { display: inline-grid; padding: 5px 12px; border-radius: 10px; background: #e5f3ea; color: #1f6141; font-size: 14px; font-weight: 800; line-height: 1.2; }
.tk-due small { font-size: 11px; font-weight: 700; opacity: .8; }
.tk-due.is-late { background: #fff0f0; color: #b91c1c; }
:root[data-theme="dark"] .tk-due { background: #1d3a2b; color: #9fe0bb; }
:root[data-theme="dark"] .tk-due.is-late { background: #4a2523; color: #ffaaa3; }

/* V1.6.0 — bouton Relancer */
.ticket-dialog .tk-remind { border-color: #68518d; color: #68518d; text-decoration: none; }
.ticket-dialog .tk-remind:hover { background: #f1ecf8; }
.ticket-dialog .tk-remind[hidden] { display: none; }
:root[data-theme="dark"] .ticket-dialog .tk-remind { border-color: #b6a3e0; color: #d9cdf3; }
:root[data-theme="dark"] .ticket-dialog .tk-remind:hover { background: #2e2640; }

/* V1.9.0 — Relance groupée */
.tk-group-dialog .event-dialog-body { display: grid; gap: 10px; }
.tk-group-who { margin: 0; }
.tk-group-who small { color: var(--muted, #6b7280); }
.tk-group-notes { margin: 0; padding: 8px 12px; border-radius: 10px; background: #fff6e5; color: #8a5a00; font-size: 13px; }
.tk-group-label { font-size: 12px; font-weight: 800; color: var(--label, #555); }
.tk-group-dialog textarea { width: 100%; min-height: 300px; padding: 10px 12px; border: 1px solid var(--field-border, #d4d4d8); border-radius: 10px; background: var(--surface, #fff); color: var(--ink, #111); font: 13px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; resize: vertical; }
.tk-group-dialog a.btn[hidden] { display: none; }
:root[data-theme="dark"] .tk-group-notes { background: #3a2c12; color: #f2cf8a; }
.tk-remind-all { margin-left: 8px; padding: 5px 11px; border-color: #68518d; color: #68518d; font-size: 12.5px; }
:root[data-theme="dark"] .tk-remind-all { border-color: #b6a3e0; color: #d9cdf3; }

/* V1.9.1 — aperçu de l'e-mail mis en page */
.tk-group-preview { width: 100%; height: 440px; border: 1px solid var(--line, #e4e4e7); border-radius: 10px; background: #f4f1f8; }
.tk-group-dialog .btn[hidden] { display: none; }
@media (max-width: 700px) { .tk-group-preview { height: 360px; } }

/* V2.0.1 — fiches Maintenance, Visite d'entreprise, Main courante (js/app/fiche-planning.js) */
.plan-dialog .ev-side { display: grid; gap: 12px; align-content: start; }
.plan-dialog .ev-person.is-absent { border-color: #f3b4b4; background: #fff6f5; }
.plan-dialog .ev-person-flag { margin: 8px 0 0; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.plan-dialog .ev-person-flag.is-absent { color: #b91c1c; }
.plan-dialog .ev-person-actions button.ev-contact-btn { cursor: pointer; font: inherit; }
.plan-dialog .ev-plan-ticket { margin: 8px 0 0; }
.plan-dialog .ev-plan-ticket small { color: var(--muted); }
:root[data-theme="dark"] .plan-dialog .ev-person.is-absent { border-color: #6b3330; background: #2e1d1c; }
:root[data-theme="dark"] .plan-dialog .ev-person-flag.is-absent { color: #ffaaa3; }

/* V2.0.3 — fiche des créneaux fixes */
.plan-dialog .rt-campus h4 { display: flex; align-items: center; gap: 8px; }
.plan-dialog .rt-campus h4 small { color: var(--muted, #6b7280); font-size: 12px; font-weight: 700; }
.plan-dialog .rt-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ev-campus, #68518d); }
.plan-dialog .rt-campus.campus-cathedrale { --ev-campus: #d4a90b; } .plan-dialog .rt-campus.campus-citadelle { --ev-campus: #d64545; } .plan-dialog .rt-campus.campus-saint-charles { --ev-campus: #3576c9; } .plan-dialog .rt-campus.campus-saint-leu { --ev-campus: #2f9a5c; } .plan-dialog .rt-campus.campus-teinturerie { --ev-campus: #7b4fd6; }
.plan-dialog .rt-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan-dialog .rt-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(90px, .6fr) minmax(0, 1.6fr); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line, #e4e4e7); border-left: 4px solid var(--ev-campus, #68518d); border-radius: 10px; background: var(--surface, #fff); }
.plan-dialog .rt-type { color: var(--heading, #1f1830); font-weight: 800; }
.plan-dialog .rt-site { color: var(--muted, #6b7280); font-size: 12.5px; }
.plan-dialog .rt-agents { display: flex; flex-wrap: wrap; gap: 6px; }
.plan-dialog .rt-agent { padding: 3px 10px; border-radius: 999px; background: #ebe6f4; color: #3d3052; font-size: 12px; font-weight: 700; }
.plan-dialog .rt-agent.is-here { background: #e3f3ea; color: #1f6141; }
.plan-dialog .rt-agent.is-away { background: #e3eefb; color: #1d4f91; }
.plan-dialog .rt-agent.is-absent { background: #fdeaea; color: #b42318; text-decoration: line-through; text-decoration-thickness: 1px; }
.plan-dialog .rt-agent small { font-weight: 600; text-decoration: none; }
:root[data-theme="dark"] .plan-dialog .rt-agent { background: #2e2640; color: #e2d9f3; }
:root[data-theme="dark"] .plan-dialog .rt-agent.is-here { background: #1d3a2b; color: #9fe0bb; }
:root[data-theme="dark"] .plan-dialog .rt-agent.is-away { background: #1c2f4a; color: #a9c8f0; }
:root[data-theme="dark"] .plan-dialog .rt-agent.is-absent { background: #4a2523; color: #ffaaa3; }
@media (max-width: 700px) { .plan-dialog .rt-row { grid-template-columns: 1fr; gap: 6px; } }

/* V2.1.0 — horaires de l'agent dans les fiches */
.plan-dialog .ev-person-hours { margin: 8px 0 0; padding: 6px 10px; border-radius: 8px; background: #f1ecf8; color: #3d3052; font-size: 12.5px; font-weight: 700; line-height: 1.4; }
.plan-dialog .ev-person-hours.is-warn { background: #fff1e5; color: #9a4a00; }
.plan-dialog .ev-person-hours.is-none { background: transparent; padding: 0; color: var(--muted, #6b7280); font-weight: 600; }
:root[data-theme="dark"] .plan-dialog .ev-person-hours { background: #2e2640; color: #e2d9f3; }
:root[data-theme="dark"] .plan-dialog .ev-person-hours.is-warn { background: #3a2612; color: #f6c38e; }

/* ==========================================================================
   V2.2.0 — Saisie d'une visite d'entreprise pour Sécurité (js/app/saisie-visite.js)
   Même fenêtre que les fiches ; formulaire aux champs de « + Nouvelle intervention » de Sécurité.
   ========================================================================== */
.saisie-head-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.saisie-dialog { width: min(980px, calc(100vw - 32px)); }
.sv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.sv-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sv-field.wide, .sv-options.wide { grid-column: 1 / -1; }
.sv-field label { color: var(--muted); font-size: 13px; font-weight: 700; }
.sv-field input, .sv-field select, .sv-field textarea { width: 100%; min-height: 40px; padding: 8px 11px; border: 1px solid var(--field-border); border-radius: 9px; background: var(--surface); color: var(--ink); }
.sv-field textarea { min-height: 96px; resize: vertical; }
.sv-field input:focus-visible, .sv-field select:focus-visible, .sv-field textarea:focus-visible, .sv-check input:focus-visible { outline: 3px solid var(--accent-2, #24d6d0); outline-offset: 1px; }
.sv-field .is-invalid { border-color: var(--alert); box-shadow: 0 0 0 3px color-mix(in srgb, var(--alert) 18%, transparent); }
.sv-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sv-check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--campus-soft); cursor: pointer; }
.sv-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #68518d; }
.sv-check span { display: flex; flex-direction: column; gap: 3px; }
.sv-check small { color: var(--muted); font-size: 12.5px; }
.sv-check:has(input:checked) { border-color: #68518d; box-shadow: inset 0 0 0 1px #68518d; }
.sv-form .ev-trace { margin-top: 16px; }
.saisie-message { flex: 1 1 auto; margin: 0; font-weight: 700; }
.btn.danger { border-color: #e7b1ae; color: var(--alert); }
.btn.danger:hover { background: color-mix(in srgb, var(--alert) 10%, var(--surface)); }
.btn:disabled { opacity: .55; cursor: progress; }
.sv-state-label { margin: 0 0 4px; font-size: 17px; font-weight: 800; }
.sv-state.sv-pending .sv-state-label, .sv-state.sv-claimed .sv-state-label { color: var(--warn); }
.sv-state.sv-done .sv-state-label { color: var(--ok); }
.sv-state.sv-error .sv-state-label { color: var(--alert); }
/* Planning du mois : la saisie en attente, en pointillé, jusqu'à ce que Sécurité la publie. */
.calendar-item.saisie-cal { border-style: dashed; border-left-style: solid; background: repeating-linear-gradient(135deg, var(--surface) 0 8px, var(--soft) 8px 16px); }
.calendar-item.saisie-cal .agenda-meta { color: var(--warn); font-weight: 800; }
.calendar-item.saisie-cal.sv-done .agenda-meta { color: var(--ok); }
.calendar-item.saisie-cal.sv-error .agenda-meta { color: var(--alert); }
/* Panneau « Saisies envoyées à Sécurité » */
.saisie-panel { margin-top: 16px; }
.saisie-panel .panel-head { align-items: baseline; flex-wrap: wrap; }
.saisie-panel .panel-head p { margin: 0; }
.sv-list { display: flex; flex-direction: column; gap: 6px; }
.sv-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; }
.sv-row:hover, .sv-row:focus-visible { background: var(--soft); outline: 2px solid var(--accent-2, #24d6d0); outline-offset: 1px; }
.sv-when { display: flex; flex-direction: column; color: var(--muted); font-size: 12px; }
.sv-when b { color: var(--ink); font-size: 14px; }
.sv-main { display: flex; flex-direction: column; min-width: 0; }
.sv-main b, .sv-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-main small { color: var(--muted); }
@media (max-width: 760px) {
  .sv-grid, .sv-options { grid-template-columns: 1fr; }
  .sv-row { grid-template-columns: 54px minmax(0, 1fr); }
  .sv-end { grid-column: 1 / -1; }
  .saisie-head-actions, .saisie-head-actions .btn { width: 100%; justify-content: center; }
}

/* V2.3.0 — Événement de main courante saisi dans Gestion de site (js/app/saisie-main-courante.js) */
.sv-sub { margin: 4px 0 8px; color: var(--muted); font-size: 13px; }
.sv-ticket-control { display: flex; gap: 8px; align-items: stretch; }
.sv-ticket-control input { flex: 1 1 auto; min-width: 0; }
.sv-ticket-control .btn { flex: 0 0 auto; white-space: nowrap; }
.btn.is-disabled { opacity: .5; pointer-events: auto; cursor: not-allowed; }
@media (max-width: 760px) { .sv-ticket-control { flex-wrap: wrap; } .sv-ticket-control input { flex-basis: 100%; } }
.sv-field.span-2 { grid-column: span 2; }
@media (max-width: 760px) { .sv-field.span-2 { grid-column: auto; } }
