:root {
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111827;
  --border: rgba(148, 163, 184, 0.28);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --danger: #dc2626;
  --ok: #22c55e;
  --warning: #f59e0b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.18), transparent 34rem),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

.osiris-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.osiris-sidebar {
  border-right: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.94);
  padding: 18px;
}

.osiris-brand {
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 4px;
}

.osiris-brand-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  margin-bottom: 18px;
}

.osiris-role-badge {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  color: #bfdbfe;
  font-size: 13px;
}

.osiris-menu-group {
  margin: 18px 0;
}

.osiris-menu-title {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
}

.osiris-menu-link {
  display: block;
  padding: 10px 11px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 5px;
  border: 1px solid transparent;
}

.osiris-menu-link:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: var(--border);
}

.osiris-menu-link.active {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.45);
}

.osiris-main {
  min-width: 0;
  padding: 26px;
}

.osiris-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.osiris-page-title {
  margin: 0 0 6px;
  font-size: 28px;
  line-height: 1.15;
}

.osiris-page-subtitle {
  color: var(--muted);
  line-height: 1.45;
}

.card {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.22);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.col-4 {
  grid-column: span 4;
}

.col-5 {
  grid-column: span 5;
}

.col-6 {
  grid-column: span 6;
}

.col-7 {
  grid-column: span 7;
}

.col-12 {
  grid-column: span 12;
}

button,
.button {
  border: 1px solid rgba(148, 163, 184, 0.38);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(30, 41, 59, 0.95);
  color: #f8fafc;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

button:hover,
.button:hover {
  background: rgba(51, 65, 85, 0.95);
}

.primary {
  background: var(--accent);
  border-color: var(--accent);
}

.primary:hover {
  background: var(--accent-hover);
}

.muted {
  color: var(--muted);
}

.status {
  margin-top: 12px;
  color: #bfdbfe;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 430px;
}

.field {
  margin-bottom: 14px;
}

label {
  display: block;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(2, 6, 23, 0.65);
  color: #f8fafc;
  border-radius: 12px;
  padding: 11px 12px;
  outline: none;
  font: inherit;
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .osiris-layout {
    grid-template-columns: 1fr;
  }

  .osiris-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .col-4,
  .col-5,
  .col-6,
  .col-7 {
    grid-column: span 12;
  }
}

/* OSIRIS 36.4D-3E-9-R6 — Espacement Mes rendez-vous */
#osirisUnifiedAppointmentsCalendar,
#osirisAssignedOfficeAppointmentsBlock {
  margin-top: 22px;
}

.osiris-agenda-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.osiris-agenda-item {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.72);
  color: inherit;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
}

.osiris-agenda-item:hover {
  border-color: rgba(96, 165, 250, 0.72);
  background: rgba(30, 41, 59, 0.86);
}

.osiris-agenda-date {
  font-weight: 900;
  color: #bfdbfe;
  margin-top: 18px;
  margin-bottom: 8px;
}

.osiris-agenda-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  font-size: 12px;
  margin-left: 8px;
  color: #bfdbfe;
}

/* OSIRIS 36.4D-3E-9-R7 — Calendrier rendez-vous hebdo + mensuel */
#osirisCalendarSuiteR7 {
  margin-top: 22px;
  margin-bottom: 22px;
}

.osiris-calendar-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}

.osiris-week-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.osiris-week-day {
  min-height: 150px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 10px;
  background: rgba(15, 23, 42, 0.62);
}

.osiris-week-day-today {
  border-color: rgba(96, 165, 250, 0.85);
  background: rgba(30, 41, 59, 0.86);
}

.osiris-calendar-day-title {
  font-weight: 900;
  color: #bfdbfe;
  margin-bottom: 8px;
}

.osiris-calendar-day-subtitle {
  font-size: 12px;
  color: rgba(226, 232, 240, 0.72);
  margin-bottom: 8px;
}

.osiris-month-calendar {
  margin-top: 22px;
}

.osiris-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.osiris-month-header {
  font-weight: 900;
  text-align: center;
  color: #bfdbfe;
  padding: 8px 4px;
}

.osiris-month-cell {
  min-height: 118px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 14px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.58);
  overflow: hidden;
}

.osiris-month-cell-muted {
  opacity: 0.38;
}

.osiris-month-cell-today {
  border-color: rgba(96, 165, 250, 0.85);
  background: rgba(30, 41, 59, 0.82);
}

.osiris-month-day-number {
  font-weight: 900;
  color: #e5e7eb;
  margin-bottom: 6px;
}

.osiris-cal-event {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(96, 165, 250, 0.28);
  background: rgba(2, 6, 23, 0.50);
  color: inherit;
  border-radius: 10px;
  padding: 6px 8px;
  margin: 5px 0;
  font-size: 12px;
  cursor: pointer;
}

.osiris-cal-event:hover {
  border-color: rgba(96, 165, 250, 0.90);
  background: rgba(30, 41, 59, 0.92);
}

.osiris-cal-event-time {
  font-weight: 900;
  color: #bfdbfe;
}

.osiris-cal-event-tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  font-size: 10px;
  color: #bfdbfe;
}

.osiris-calendar-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(2, 6, 23, 0.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.osiris-calendar-modal-card {
  width: min(720px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: #0f172a;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

@media (max-width: 980px) {
  .osiris-week-calendar,
  .osiris-month-grid {
    grid-template-columns: 1fr;
  }

  .osiris-month-header {
    display: none;
  }
}

/* OSIRIS 36.4D-3E-9-R9 — Pleine largeur calendrier Mes rendez-vous */
#osirisCalendarSuiteWrapperR7,
#osirisCalendarSuiteR7 {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
}

#osirisCalendarSuiteR7 .osiris-week-calendar,
#osirisCalendarSuiteR7 .osiris-month-grid {
  width: 100%;
}

/* OSIRIS 36.4D-3E-9-R11 — Formulaire rendez-vous repliable */
#osirisAddAppointmentToolbar {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 18px;
}

#osirisPersonalAppointmentFormCard {
  grid-column: 1 / -1;
 : 18px;
}

#osirisPersonalAppointmentFormCard {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 12px;
}

/* OSIRIS 36.4D-3F — Panel technicien */
.tech-badge {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.tech-ok {
  background: rgba(22, 163, 74, 0.16);
  color: #86efac;
}

.tech-warn {
  background: rgba(234, 179, 8, 0.16);
  color: #fde68a;
}

.tech-bad {
  background: rgba(220, 38, 38, 0.18);
  color: #fecaca;
}

.tech-neutral {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

.tech-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tech-metric {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.35);
}

.tech-table {
  width: 100%;
  border-collapse: collapse;
}

.tech-table th,
.tech-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  padding: 9px;
  text-align: left;
  vertical-align: top;
}

.tech-table th {
  color: #bfdbfe;
  width: 220px;
}

@media (max-width: 900px) {
  .tech-metrics {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS 36.4D-3F-R1 — Lisibilité panel technicien */
.tech-found-block {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  background: rgba(2, 6, 23, 0.28);
}

.tech-table pre,
.card pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

/* OSIRIS 36.4D-3H-R1 — Affichage complet des sorties IA */
.osiris-ai-output {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
  overflow-x: auto;
  line-height: 1.55;
  font-size: 13px;
}

/* OSIRIS 36.4D-3L-R1 — Résultat Risk / ESG complet */
.risk-written-output {
  width: 100%;
  min-height: 620px;
  max-height: none;
  resize: vertical;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.55;
  font-size: 13px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.45);
  color: inherit;
}

/* OSIRIS — Aperçus satellites / imagerie */
.osiris-satellite-preview {
  max-width: 100%;
  max-height: 360px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.45);
  object-fit: contain;
}

/* OSIRIS — Visualiseur zoom satellite / bâtiment */
.osiris-satellite-preview {
  cursor: zoom-in;
}

.osiris-satellite-viewer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(4px);
}

.osiris-satellite-viewer.open {
  display: flex;
  flex-direction: column;
}

.osiris-satellite-viewer-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.osiris-satellite-viewer-toolbar button,
.osiris-satellite-viewer-toolbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.95);
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
}

.osiris-satellite-viewer-stage {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.osiris-satellite-viewer-stage img {
  max-width: 92vw;
  max-height: 86vh;
  transform-origin: center center;
  transition: transform 0.08s linear;
  user-select: none;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.65);
}

.osiris-satellite-viewer-stage img.dragging {
  cursor: grabbing;
}

/* OSIRIS — Images protégées chargées avec authentification */
.osiris-image-loading {
  min-height: 220px;
  opacity: 0.65;
}

.osiris-image-error {
  min-height: 80px;
  border: 1px solid rgba(248, 113, 113, 0.55);
}

/* OSIRIS — Images générées depuis base64 */
.osiris-satellite-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-top: 10px;
}

.osiris-satellite-generated-card {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.35);
}

/* OSIRIS 36.4D-3O — Direction / dossiers officiels */
.card-header-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.check-line {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 12px 0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

/* OSIRIS 36.4D-3O — Mise en page Direction Erick */
.direction-panel {
  width: 100%;
  max-width: none;
}

.direction-panel .card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.direction-panel .tech-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
  width: 100%;
}

.direction-panel .tech-metric {
  min-width: 0;
  word-break: normal;
  overflow-wrap: anywhere;
}

.direction-panel .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
  width: 100%;
}

.direction-panel input,
.direction-panel select,
.direction-panel textarea {
  width: 100%;
  box-sizing: border-box;
}

.direction-panel textarea {
  min-height: 130px;
}

@media (max-width: 1100px) {
  .direction-panel .tech-metrics,
  .direction-panel .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS 36.4D-3O-R2 — Direction Erick pleine largeur */
main .direction-panel,
.osiris-main .direction-panel,
.page-section.direction-panel {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin-right: auto;
}

.direction-panel .card {
  width: 100% !important;
  max-width: 100% !important;
}

.direction-panel .tech-metrics {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(170px, 1fr)) !important;
  gap: 14px !important;
}

.direction-panel .grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(280px, 1fr)) !important;
  gap: 18px !important;
}

.direction-panel .check-line {
  grid-column: 1 / -1;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: fit-content;
  margin: 10px 0 14px 0 !important;
}

.direction-panel .check-line input {
  width: auto !important;
  min-width: 16px;
}

.direction-panel .check-line span,
.direction-panel .check-line {
  white-space: normal;
}

.direction-panel textarea {
  width: 100% !important;
  min-height: 140px;
}

.direction-panel .table-wrap {
  width: 100%;
  overflow-x: auto;
}

@media (max-width: 1100px) {
  main .direction-panel,
  .osiris-main .direction-panel,
  .page-section.direction-panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  .direction-panel .tech-metrics,
  .direction-panel .grid-2 {
    grid-template-columns: 1fr !important;
  }
}

/* OSIRIS 36.4D-3P — Sonia superviseure de dossiers */
.sonia-cases-panel {
  width: min(100%, 1320px);
  max-width: 1320px;
}

.sonia-supervision-summary {
  margin-bottom: 22px;
}

.sonia-cases-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.sonia-case-card {
  padding: 22px;
}

.sonia-case-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.sonia-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 16px;
}

.sonia-case-card input,
.sonia-case-card select,
.sonia-case-card textarea {
  width: 100%;
  box-sizing: border-box;
}

.sonia-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.sonia-case-history {
  margin-top: 16px;
}

.history-line {
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

@media (max-width: 900px) {
  .sonia-case-head,
  .sonia-case-grid {
    display: block;
  }

  .sonia-case-actions {
    flex-direction: column;
  }
}

/* OSIRIS 36.4D-3P — Tableau de direction / aperçu opérationnel */
.direction-overview-card {
  margin-bottom: 24px;
}

.direction-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.direction-kpi-card {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.42);
}

.direction-kpi-value {
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 8px;
}

.direction-kpi-label {
  font-weight: 800;
}

.direction-kpi-hint {
  margin-top: 5px;
  font-size: 12px;
  color: rgba(191, 219, 254, 0.75);
}

.direction-recent-cases {
  margin-top: 22px;
}

@media (max-width: 1100px) {
  .direction-kpi-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 720px) {
  .direction-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS — Tableau direction pleine largeur */
body:has(.direction-panel) #moduleContent,
body:has(.direction-panel) main,
body:has(.direction-panel) .osiris-main,
body:has(.direction-panel) .content,
body:has(.direction-panel) .main-content {
  width: 100% !important;
  max-width: none !important;
}

.page-section.direction-panel,
.direction-panel {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.direction-panel .card,
.direction-panel .direction-overview-card,
.direction-panel .direction-create-card,
.direction-panel .direction-list-card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

.direction-kpi-grid {
  grid-template-columns: repeat(5, minmax(160px, 1fr)) !important;
  width: 100% !important;
}

.direction-recent-cases,
.direction-recent-cases .table-wrap,
.direction-list-card,
.direction-list-card .table-wrap {
  width: 100% !important;
}

@media (max-width: 1500px) {
  .direction-kpi-grid {
    grid-template-columns: repeat(4, minmax(160px, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .direction-kpi-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .direction-kpi-grid {
    grid-template-columns: 1fr !important;
  }
}

/* OSIRIS — Direction exécutive : aperçu + dossiers à surveiller */
.page-section.direction-panel,
.direction-panel {
  width: 100% !important;
  max-width: none !important;
}

#moduleContent .direction-panel {
  width: 100% !important;
  max-width: none !important;
}

.direction-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(680px, 1.35fr) minmax(380px, 0.75fr);
  gap: 24px;
  align-items: start;
  width: 100%;
  margin-bottom: 24px;
}

.direction-dashboard-grid .card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box;
}

.direction-my-cases-card {
  min-height: 100%;
}

.direction-watch-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.direction-watch-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.38);
}

.direction-overview-card .direction-kpi-grid {
  grid-template-columns: repeat(3, minmax(160px, 1fr)) !important;
}

@media (max-width: 1300px) {
  .direction-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1500px) {
  .direction-dashboard-grid {
    grid-template-columns: minmax(760px, 1.4fr) minmax(460px, 0.8fr);
  }
}

/* OSIRIS 36.4D-3P-R1 — Dossiers à valider direction */
.direction-validation-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.direction-validation-card textarea {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
}

/* OSIRIS — Dossiers à valider direction : pleine largeur et lisible */
.direction-approval-panel {
  width: 100% !important;
  max-width: none !important;
}

.direction-approval-panel .page-header {
  width: 100% !important;
  max-width: none !important;
  margin-bottom: 24px;
}

.direction-approval-panel #directionApprovalList {
  width: 100% !important;
  max-width: none !important;
}

.direction-validation-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 24px !important;
  width: 100% !important;
  max-width: none !important;
}

.direction-validation-card {
  width: 100% !important;
  max-width: none !important;
  padding: 26px !important;
  box-sizing: border-box !important;
}

.direction-validation-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.direction-validation-header h2 {
  margin: 0 0 8px 0;
}

.direction-validation-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.direction-validation-meta > div {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.38);
}

.direction-validation-meta span {
  display: block;
  font-size: 12px;
  color: rgba(191, 219, 254, 0.75);
  margin-bottom: 5px;
}

.direction-validation-meta strong {
  display: block;
  font-size: 15px;
}

.direction-validation-notes textarea {
  width: 100% !important;
  min-height: 130px;
  box-sizing: border-box;
}

.direction-validation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.direction-validation-history {
  margin-top: 18px;
}

.direction-validation-empty {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 1100px) {
  .direction-validation-meta {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 720px) {
  .direction-validation-header {
    display: block;
  }

  .direction-validation-meta {
    grid-template-columns: 1fr;
  }

  .direction-validation-actions {
    flex-direction: column;
  }
}

/* OSIRIS 36.4D-3P-R2 — Rapport visible dans Dossiers à valider */
.direction-report-box {
  margin: 22px 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: rgba(15, 23, 42, 0.45);
}

.direction-report-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.direction-report-text {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-family: inherit;
  line-height: 1.55;
}

.direction-report-missing {
  border-color: rgba(251, 191, 36, 0.45);
}

/* OSIRIS 36.4D-3P-R3 — Import brouillon rapport vers dossier officiel */
.sonia-draft-import-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
}

.sonia-draft-import-row select {
  width: 100%;
}

.direction-report-box {
  margin: 22px 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background: rgba(15, 23, 42, 0.45);
}

.direction-report-box h3 {
  margin-top: 0;
  margin-bottom: 12px;
}

.direction-report-text {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-family: inherit;
  line-height: 1.55;
}

.direction-report-missing {
  border-color: rgba(251, 191, 36, 0.45);
}

@media (max-width: 800px) {
  .sonia-draft-import-row {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS 36.4D-3R — Approbation officielle */
.direction-validation-actions .primary {
  font-weight: 900;
}

/* OSIRIS 36.4D-3S-R2 — Publications portail automatiques */
.portal-auto-metadata {
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 14px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.portal-auto-metadata pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 360px;
  overflow: auto;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.58);
}

/* OSIRIS 36.4D-3T — Publications portail professionnelles */
.portal-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.portal-page-header,
.portal-section-header,
.portal-package-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.portal-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.portal-overview-card,
.portal-section,
.portal-publication-card,
.portal-empty-state {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.38);
  padding: 18px;
}

.portal-overview-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.portal-overview-card strong {
  font-size: 0.92rem;
}

.portal-overview-card span {
  color: rgba(226, 232, 240, 0.76);
}

.portal-package-list {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.portal-publication-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-auto-card {
  border-color: rgba(96, 165, 250, 0.32);
}

.portal-manual-card {
  border-color: rgba(148, 163, 184, 0.22);
}

.portal-badge,
.portal-status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.portal-badge.auto {
  background: rgba(37, 99, 235, 0.18);
  color: #bfdbfe;
}

.portal-badge.manual {
  background: rgba(100, 116, 139, 0.18);
  color: #cbd5e1;
}

.portal-status-pill {
  background: rgba(22, 163, 74, 0.14);
  color: #bbf7d0;
  white-space: nowrap;
}

.portal-package-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}

.portal-package-meta-grid div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.26);
}

.portal-package-meta-grid strong {
  font-size: 0.78rem;
  color: rgba(191, 219, 254, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.portal-package-meta-grid span {
  overflow-wrap: anywhere;
}

.portal-package-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-details {
  margin-top: 6px;
}

.portal-auto-metadata {
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 14px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.portal-auto-metadata pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 360px;
  overflow: auto;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.58);
}

.portal-manual-fallback summary {
  cursor: pointer;
  font-weight: 900;
}

.portal-manual-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.portal-manual-disabled {
  opacity: 0.85;
}

@media (max-width: 1100px) {
  .portal-overview-grid,
  .portal-package-meta-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .portal-page-header,
  .portal-section-header,
  .portal-package-header {
    flex-direction: column;
  }

  .portal-overview-grid,
  .portal-package-meta-grid {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS 36.4D-3T-R1 — Bouton suppression package portail */
.portal-package-actions .danger,
button.danger {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(127, 29, 29, 0.26);
  color: #fecaca;
}

.portal-package-actions .danger:hover,
button.danger:hover {
  background: rgba(153, 27, 27, 0.36);
}

/* OSIRIS 36.4D-3Q-R1 — Panel Aviseur légal */
.legal-panel-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.legal-panel-header,
.legal-case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.legal-flow-box,
.legal-case-card,
.legal-empty-state {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.38);
  padding: 18px;
}

.legal-flow-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-flow-box span {
  color: rgba(226, 232, 240, 0.76);
}

.legal-cases-list {
  display: grid;
  gap: 18px;
}

.legal-status-pill {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
  font-weight: 900;
  white-space: nowrap;
}

.legal-meta-grid,
.legal-review-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.legal-review-grid {
  grid-template-columns: 1fr 1fr;
}

.legal-meta-grid div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.26);
}

.legal-meta-grid strong {
  font-size: 0.78rem;
  color: rgba(191, 219, 254, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.legal-meta-grid span {
  overflow-wrap: anywhere;
}

.legal-report-box {
  margin: 16px 0;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(147, 197, 253, 0.24);
  background: rgba(2, 6, 23, 0.28);
}

.legal-report-box h4 {
  margin-top: 0;
}

.legal-report-box pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 520px;
  overflow: auto;
  padding: 14px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.16);
  line-height: 1.55;
}

.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

@media (max-width: 1000px) {
  .legal-meta-grid,
  .legal-review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .legal-panel-header,
  .legal-case-header {
    flex-direction: column;
  }

  .legal-meta-grid,
  .legal-review-grid {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS 36.4D-3Q-R2 — Outils légaux / forensiques avancés */
.legal-forensics-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: rgba(2, 6, 23, 0.25);
}

.legal-forensics-actions,
.legal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-custody-form,
.legal-sha-verify,
.legal-forensics-output {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.34);
}

.legal-forensics-output pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.62);
}

.legal-forensics-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}

.legal-forensics-table th,
.legal-forensics-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.legal-forensics-table th {
  color: rgba(191, 219, 254, 0.92);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.legal-timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.legal-timeline-item {
  border-left: 3px solid rgba(96, 165, 250, 0.55);
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.32);
}

.legal-timeline-item strong,
.legal-timeline-item span,
.legal-timeline-item small {
  display: block;
}

.legal-timeline-item small {
  color: rgba(226, 232, 240, 0.62);
}

.success {
  color: #86efac;
  font-weight: 800;
}

.danger-text {
  color: #fecaca;
  font-weight: 800;
}

/* OSIRIS 36.4D-3Q-R2A — Vues spécialisées Aviseur légal */
.legal-view-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
  font-weight: 900;
  border: 1px solid rgba(147, 197, 253, 0.22);
}

/* OSIRIS 36.4D-3Q-R2B — Filtrage par vue Aviseur légal */
.legal-focus-hint {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  background: rgba(37, 99, 235, 0.10);
  color: rgba(219, 234, 254, 0.92);
  font-weight: 700;
}

.legal-forensics-focus-header {
  margin-bottom: 14px;
}

.legal-forensics-focus-header strong {
  display: block;
  margin-bottom: 6px;
}

.legal-case-focus-custody .legal-meta-grid,
.legal-case-focus-timeline .legal-meta-grid,
.legal-case-focus-seals .legal-meta-grid,
.legal-case-focus-sha .legal-meta-grid,
.legal-case-focus-audit .legal-meta-grid {
  margin-bottom: 12px;
}

.legal-case-focus-reports .legal-report-box,
.legal-case-focus-review .legal-report-box {
  border-color: rgba(168, 85, 247, 0.28);
}

.legal-case-focus-custody .legal-forensics-panel {
  border-color: rgba(45, 212, 191, 0.35);
}

.legal-case-focus-seals .legal-forensics-panel,
.legal-case-focus-sha .legal-forensics-panel {
  border-color: rgba(34, 197, 94, 0.34);
}

.legal-case-focus-timeline .legal-forensics-panel,
.legal-case-focus-audit .legal-forensics-panel {
  border-color: rgba(251, 191, 36, 0.30);
}

/* OSIRIS 36.4D-3Q-R2C — Tableau légal professionnel */
.legal-dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 14px;
}

.legal-dashboard-kpi {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.legal-dashboard-kpi span {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.86rem;
}

.legal-dashboard-kpi strong {
  font-size: 2rem;
  line-height: 1;
  color: #e5e7eb;
}

.legal-dashboard-kpi.success-kpi {
  border-color: rgba(34, 197, 94, 0.35);
}

.legal-dashboard-kpi.warning-kpi {
  border-color: rgba(251, 191, 36, 0.35);
}

.legal-dashboard-kpi.danger-kpi {
  border-color: rgba(248, 113, 113, 0.38);
}

.legal-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.legal-dashboard-breakdown,
.legal-dashboard-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.38);
  padding: 16px;
}

.legal-dashboard-breakdown h3,
.legal-dashboard-panel h3 {
  margin-top: 0;
}

.legal-dashboard-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.legal-dashboard-breakdown-row:last-child {
  border-bottom: 0;
}

.legal-dashboard-case-list {
  display: grid;
  gap: 10px;
}

.legal-dashboard-case-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.28);
}

.legal-dashboard-case-row div:first-child {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.legal-dashboard-case-row span {
  color: rgba(226, 232, 240, 0.70);
}

.legal-dashboard-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe !important;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 1200px) {
  .legal-dashboard-kpi-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .legal-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .legal-dashboard-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .legal-dashboard-case-row {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .legal-dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS 36.4D-3W-R1 — Audit complet / Configuration */
.admin-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-kpi {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-kpi span {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.86rem;
}

.admin-kpi strong {
  font-size: 1.75rem;
  line-height: 1;
  color: #e5e7eb;
  overflow-wrap: anywhere;
}

.admin-kpi.success-kpi {
  border-color: rgba(34, 197, 94, 0.35);
}

.admin-kpi.danger-kpi {
  border-color: rgba(248, 113, 113, 0.38);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.38);
  padding: 16px;
}

.admin-wide-panel {
  grid-column: 1 / -1;
}

.admin-panel h3 {
  margin-top: 0;
}

.admin-breakdown-row,
.config-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.admin-breakdown-row:last-child,
.config-row:last-child {
  border-bottom: 0;
}

.admin-audit-table-wrap {
  overflow: auto;
}

.admin-audit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-audit-table th,
.admin-audit-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.admin-audit-table th {
  color: rgba(191, 219, 254, 0.92);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.admin-audit-table td span {
  display: block;
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.82rem;
  margin-top: 4px;
}

.config-status-ok {
  color: #86efac;
}

.config-status-warn {
  color: #fde68a;
}

.config-status-info {
  color: #bfdbfe;
}

.config-module-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}

.config-module-card {
  border-radius: 14px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.32);
  border: 1px solid rgba(148, 163, 184, 0.14);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.config-module-card span {
  color: #86efac;
  font-weight: 800;
}

@media (max-width: 1200px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(3, minmax(160px, 1fr));
  }

  .admin-grid,
  .config-module-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .admin-page-header {
    flex-direction: column;
  }

  .admin-kpi-grid,
  .admin-grid,
  .config-module-grid {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS — correction débordement Actions audit */
.admin-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.admin-breakdown-row {
  align-items: flex-start;
}

.admin-breakdown-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.admin-breakdown-row strong {
  flex-shrink: 0;
  margin-left: 12px;
}

.admin-kpi strong {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.admin-kpi span {
  line-height: 1.35;
}

/* OSIRIS — Dossier assigné ouvrable analyste */
.analyst-assigned-list {
  display: grid;
  gap: 16px;
}

.analyst-assigned-case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.analyst-case-status-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
  font-weight: 900;
  white-space: nowrap;
}

.analyst-assigned-case-actions,
.analyst-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.analyst-case-details {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.analyst-case-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

.analyst-case-detail-grid div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.26);
}

.analyst-case-detail-grid strong {
  font-size: 0.78rem;
  color: rgba(191, 219, 254, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.analyst-case-detail-grid span {
  overflow-wrap: anywhere;
}

.analyst-case-workflow,
.analyst-case-section {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.34);
}

.analyst-case-workflow h4,
.analyst-case-section h4 {
  margin-top: 0;
}

.analyst-case-section pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.62);
}

@media (max-width: 900px) {
  .analyst-case-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .analyst-assigned-case-header {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .analyst-case-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS — Page professionnelle Mes dossiers d’analyse */
.analyst-dossiers-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analyst-dossiers-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.38);
  padding: 18px;
}

.analyst-dossiers-header h1 {
  margin-top: 0;
}

.analyst-dossiers-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.analyst-dossiers-kpi {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analyst-dossiers-kpi span {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.86rem;
}

.analyst-dossiers-kpi strong {
  font-size: 2rem;
  line-height: 1;
}

.analyst-dossiers-list {
  display: grid;
  gap: 16px;
}

.analyst-dossier-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.38);
  padding: 18px;
}

.analyst-dossier-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.analyst-dossier-card-header h3 {
  margin-top: 0;
}

.analyst-dossier-card-status {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
  font-weight: 900;
  white-space: nowrap;
}

.analyst-dossier-summary-grid,
.analyst-dossier-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.analyst-dossier-detail-grid {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.analyst-dossier-summary-grid div,
.analyst-dossier-detail-grid div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.26);
}

.analyst-dossier-summary-grid strong,
.analyst-dossier-detail-grid strong {
  font-size: 0.78rem;
  color: rgba(191, 219, 254, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.analyst-dossier-summary-grid span,
.analyst-dossier-detail-grid span {
  overflow-wrap: anywhere;
}

.analyst-dossier-card-actions,
.analyst-dossier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.analyst-dossier-details {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.analyst-dossier-workflow,
.analyst-dossier-section {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.34);
}

.analyst-dossier-workflow h4,
.analyst-dossier-section h4 {
  margin-top: 0;
}

.analyst-dossier-section pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 360px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.62);
}

@media (max-width: 1100px) {
  .analyst-dossiers-kpi-grid,
  .analyst-dossier-summary-grid,
  .analyst-dossier-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .analyst-dossiers-header,
  .analyst-dossier-card-header {
    flex-direction: column;
  }

  .analyst-dossiers-kpi-grid,
  .analyst-dossier-summary-grid,
  .analyst-dossier-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS — Preuves analyste par dossiers assignés */
.analyst-evidence-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.analyst-evidence-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.38);
  padding: 18px;
}

.analyst-evidence-header h1 {
  margin-top: 0;
}

.analyst-evidence-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.analyst-evidence-kpi {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analyst-evidence-kpi span {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.86rem;
}

.analyst-evidence-kpi strong {
  font-size: 1.75rem;
  line-height: 1;
}

.analyst-evidence-cases-list {
  display: grid;
  gap: 18px;
}

.analyst-evidence-case-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.38);
  padding: 18px;
}

.analyst-evidence-case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.analyst-evidence-case-header h3 {
  margin-top: 0;
}

.analyst-evidence-count {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
  font-weight: 900;
  white-space: nowrap;
}

.analyst-evidence-form,
.analyst-evidence-list {
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.22);
}

.analyst-evidence-form h4,
.analyst-evidence-list h4 {
  margin-top: 0;
}

.analyst-evidence-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border-radius: 12px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.46);
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin-top: 10px;
}

.analyst-evidence-item div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.analyst-evidence-item span,
.analyst-evidence-item p {
  color: rgba(226, 232, 240, 0.72);
}

.analyst-evidence-item a {
  color: #93c5fd;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .analyst-evidence-kpi-grid {
    grid-template-columns: 1fr;
  }

  .analyst-evidence-header,
  .analyst-evidence-case-header,
  .analyst-evidence-item {
    flex-direction: column;
  }
}

/* OSIRIS — Fichiers joints aux preuves analystes */
.analyst-evidence-file-box {
  margin-top: 8px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  background: rgba(37, 99, 235, 0.10);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.analyst-evidence-file-box strong {
  color: #bfdbfe;
}

.analyst-evidence-file-box small {
  color: rgba(226, 232, 240, 0.65);
  overflow-wrap: anywhere;
}

.analyst-evidence-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .analyst-evidence-item-actions {
    justify-content: flex-start;
  }
}

/* OSIRIS — Tableau supervision professionnel */
.supervision-dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.supervision-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.44));
  padding: 22px;
}

.supervision-hero-card h1 {
  margin: 0 0 8px;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(147, 197, 253, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 900;
}

.supervision-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 14px;
}

.supervision-kpi-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.supervision-kpi-card span {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.86rem;
}

.supervision-kpi-card strong {
  font-size: 2rem;
  line-height: 1;
}

.supervision-kpi-card small {
  color: rgba(147, 197, 253, 0.72);
}

.supervision-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
}

.supervision-panel-card,
.supervision-workflow-column {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.38);
  padding: 18px;
}

.supervision-panel-card h2,
.supervision-workflow-column h3 {
  margin-top: 0;
}

.supervision-priority-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border-radius: 14px;
  padding: 14px;
  background: rgba(2, 6, 23, 0.28);
  border: 1px solid rgba(148, 163, 184, 0.14);
  margin-top: 10px;
}

.supervision-priority-item h3 {
  margin: 0 0 6px;
}

.supervision-priority-item span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
  font-weight: 900;
  white-space: nowrap;
}

.supervision-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.supervision-action-grid a {
  display: block;
  text-decoration: none;
  color: #dbeafe;
  border: 1px solid rgba(147, 197, 253, 0.20);
  background: rgba(37, 99, 235, 0.10);
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
}

.supervision-action-grid a:hover {
  border-color: rgba(147, 197, 253, 0.45);
}

.supervision-workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .supervision-kpi-grid,
  .supervision-workflow-grid,
  .supervision-command-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .supervision-hero-card,
  .supervision-priority-item {
    flex-direction: column;
  }

  .supervision-kpi-grid,
  .supervision-workflow-grid,
  .supervision-command-grid,
  .supervision-action-grid {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS — Agrandissement tableau supervision */
.supervision-dashboard-page {
  width: 100%;
  max-width: none;
}

.supervision-hero-card {
  padding: 26px;
  min-height: 120px;
}

.supervision-kpi-grid {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  gap: 18px;
}

.supervision-kpi-card {
  min-height: 120px;
  padding: 20px;
}

.supervision-kpi-card strong {
  font-size: 2.35rem;
}

.supervision-command-grid {
  grid-template-columns: minmax(520px, 1.35fr) minmax(420px, 0.85fr);
  gap: 20px;
}

.supervision-panel-card,
.supervision-workflow-column {
  padding: 22px;
  min-height: 260px;
}

.supervision-workflow-grid {
  grid-template-columns: repeat(3, minmax(340px, 1fr));
  gap: 20px;
}

.supervision-priority-item {
  padding: 18px;
  min-height: 120px;
}

.supervision-priority-item h3 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.supervision-priority-item span {
  max-width: 220px;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  line-height: 1.25;
}

.supervision-action-grid {
  grid-template-columns: repeat(2, minmax(170px, 1fr));
  gap: 12px;
}

.supervision-action-grid a {
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 16px;
  line-height: 1.25;
}

@media (max-width: 1300px) {
  .supervision-command-grid,
  .supervision-workflow-grid {
    grid-template-columns: 1fr;
  }

  .supervision-panel-card,
  .supervision-workflow-column {
    min-height: unset;
  }
}

@media (max-width: 1000px) {
  .supervision-kpi-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 650px) {
  .supervision-kpi-grid,
  .supervision-action-grid {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS — Rapports judiciaires aviseur légal */
.judicial-reports-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.judicial-hero-card,
.judicial-form-card,
.judicial-list-section,
.judicial-case-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.38);
  padding: 20px;
}

.judicial-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.74), rgba(30, 41, 59, 0.48));
}

.judicial-hero-card h1,
.judicial-form-card h2,
.judicial-list-section h2 {
  margin-top: 0;
}

.judicial-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.judicial-kpi {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.42);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.judicial-kpi span {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.86rem;
}

.judicial-kpi strong {
  font-size: 2rem;
  line-height: 1;
}

.judicial-case-list {
  display: grid;
  gap: 16px;
}

.judicial-case-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}

.judicial-case-header h3 {
  margin-top: 0;
}

.judicial-case-header > span {
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
  font-weight: 900;
  white-space: nowrap;
}

.judicial-case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.judicial-case-meta div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-radius: 12px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.26);
}

.judicial-case-meta strong {
  font-size: 0.78rem;
  color: rgba(191, 219, 254, 0.88);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.judicial-report-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.judicial-report-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border-radius: 12px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.24);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.judicial-report-item div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.judicial-report-item span,
.judicial-report-item small {
  color: rgba(226, 232, 240, 0.72);
}

.judicial-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 900px) {
  .judicial-hero-card,
  .judicial-case-header,
  .judicial-report-item {
    flex-direction: column;
  }

  .judicial-kpi-grid,
  .judicial-case-meta {
    grid-template-columns: 1fr;
  }
}

/* OSIRIS — Supervision dossiers professionnels */
.sonia-cases-panel {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sonia-cases-panel > h1,
.sonia-cases-panel h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 8px;
}

.sonia-cases-panel > p,
.sonia-cases-panel .muted {
  max-width: 980px;
}

.sonia-cases-panel .card {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.sonia-supervision-summary {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(420px, 1.4fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.44));
  padding: 20px;
}

.sonia-supervision-summary h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.sonia-empty-card {
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed rgba(148, 163, 184, 0.32);
  background: rgba(15, 23, 42, 0.38);
}

.sonia-cases-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

.sonia-case-card {
  width: 100%;
  max-width: none;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.46);
}

.sonia-case-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.sonia-case-head h2,
.sonia-case-head h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.sonia-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.sonia-case-grid label,
.sonia-case-card label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: rgba(226, 232, 240, 0.82);
  font-weight: 700;
}

.sonia-case-card input,
.sonia-case-card select,
.sonia-case-card textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(2, 6, 23, 0.42);
  color: #e5e7eb;
  padding: 10px 12px;
  box-sizing: border-box;
}

.sonia-draft-import-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.sonia-case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.sonia-case-history {
  margin-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 12px;
}

@media (max-width: 980px) {
  .sonia-supervision-summary,
  .sonia-case-grid,
  .sonia-draft-import-row {
    grid-template-columns: 1fr;
  }

  .sonia-case-head {
    flex-direction: column;
  }
}

/* OSIRIS — Supervision assignation complexe */
.sonia-case-card small.muted {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(191, 219, 254, 0.72);
}

.sonia-case-actions a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}


/* ==========================================================
   OSIRIS COMMUNICATIONS V1
   ========================================================== */

.osiris-chat-module {
  width: 100%;
  min-width: 0;
}

.osiris-chat-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.osiris-chat-heading h1 {
  margin-top: 0;
  margin-bottom: 8px;
}

.osiris-chat-total {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.55);
  font-weight: 800;
  white-space: nowrap;
}

.osiris-chat-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 650px;
  max-height: calc(100vh - 220px);
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.35);
}

.osiris-chat-sidebar {
  padding: 16px 12px;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.46);
  overflow-y: auto;
}

.osiris-chat-sidebar-title {
  padding: 4px 9px 12px;
  color: rgba(148, 163, 184, 0.8);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.osiris-chat-channel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  padding: 11px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.osiris-chat-channel:hover {
  background: rgba(148, 163, 184, 0.08);
}

.osiris-chat-channel.active {
  border-color: rgba(96, 165, 250, 0.28);
  background: rgba(37, 99, 235, 0.12);
}

.osiris-chat-channel-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 750;
}

.osiris-chat-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #60a5fa;
}

.osiris-chat-unread {
  min-width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #2563eb;
  color: white;
  font-size: 0.72rem;
  font-weight: 900;
}

.osiris-chat-conversation {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.osiris-chat-conversation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.osiris-chat-conversation-head small {
  color: rgba(148, 163, 184, 0.8);
}

.osiris-chat-conversation-head h2 {
  margin: 3px 0 0;
  font-size: 1.1rem;
}

.osiris-chat-live {
  color: rgba(134, 239, 172, 0.9);
  font-size: 0.78rem;
  font-weight: 750;
}

.osiris-chat-messages {
  min-height: 350px;
  overflow-y: auto;
  padding: 20px;
}

.osiris-chat-message {
  max-width: 78%;
  margin: 0 auto 15px 0;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.17);
  border-radius: 15px;
  background: rgba(15, 23, 42, 0.58);
}

.osiris-chat-message.mine {
  margin-left: auto;
  margin-right: 0;
  background: rgba(30, 64, 175, 0.2);
  border-color: rgba(96, 165, 250, 0.24);
}

.osiris-chat-message-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 7px;
}

.osiris-chat-message-head strong {
  font-size: 0.85rem;
}

.osiris-chat-message-head time {
  color: rgba(148, 163, 184, 0.76);
  font-size: 0.72rem;
  white-space: nowrap;
}

.osiris-chat-message-body {
  line-height: 1.48;
  overflow-wrap: anywhere;
}

.osiris-chat-files {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.osiris-chat-attachment {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.35);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.osiris-chat-attachment:hover {
  border-color: rgba(96, 165, 250, 0.38);
}

.osiris-chat-file-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.osiris-chat-file-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.osiris-chat-file-info small {
  color: rgba(148, 163, 184, 0.78);
}

.osiris-chat-file-action {
  color: rgba(147, 197, 253, 0.95);
  font-size: 0.76rem;
  font-weight: 800;
}

.osiris-chat-empty {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(148, 163, 184, 0.82);
  text-align: center;
}

.osiris-chat-composer {
  padding: 14px 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.42);
}

.osiris-chat-composer textarea {
  width: 100%;
  resize: vertical;
  min-height: 76px;
  max-height: 180px;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 11px;
  background: rgba(2, 6, 23, 0.46);
  color: inherit;
  font: inherit;
}

.osiris-chat-composer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
}

.osiris-chat-file-select {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

#osirisChatSelectedFile {
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.osiris-chat-status {
  min-height: 20px;
  margin-top: 8px;
  font-size: 0.8rem;
}

.osiris-chat-status[data-type="error"] {
  color: #fca5a5;
}

.osiris-chat-status[data-type="success"] {
  color: #86efac;
}

@media (max-width: 900px) {
  .osiris-chat-shell {
    grid-template-columns: 1fr;
    max-height: none;
  }

  .osiris-chat-sidebar {
    border-right: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  }

  #osirisChatChannels {
    display: flex;
    gap: 7px;
    overflow-x: auto;
  }

  .osiris-chat-channel {
    width: auto;
    min-width: 150px;
    margin-bottom: 0;
  }

  .osiris-chat-message {
    max-width: 92%;
  }
}

@media (max-width: 620px) {
  .osiris-chat-heading,
  .osiris-chat-composer-bottom,
  .osiris-chat-file-select {
    align-items: stretch;
    flex-direction: column;
  }

  .osiris-chat-total {
    align-self: flex-start;
  }

  #osirisChatSelectedFile {
    max-width: 100%;
  }
}


/* ==========================================================
   OSIRIS COMMUNICATIONS V1
   Correctif hauteur / composeur toujours visible
   ========================================================== */

.osiris-chat-shell {
  height: calc(100vh - 235px);
  min-height: 520px;
  max-height: none;
}

.osiris-chat-conversation {
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.osiris-chat-messages {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.osiris-chat-composer {
  min-height: 0;
  overflow: visible;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.osiris-chat-composer textarea {
  min-height: 68px;
  max-height: 120px;
}

.osiris-chat-composer-bottom {
  min-height: 40px;
}

@media (max-height: 750px) {
  .osiris-chat-shell {
    height: calc(100vh - 175px);
    min-height: 460px;
  }

  .osiris-chat-messages {
    min-height: 0;
  }

  .osiris-chat-composer textarea {
    min-height: 58px;
    max-height: 90px;
  }
}


/* ==========================================================
   OSIRIS COMMUNICATIONS V1.1
   Badge global + notifications internes
   ========================================================== */

.osiris-communications-menu-link {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.osiris-global-chat-badge {
  min-width: 21px;
  height: 21px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  margin-left: auto;

  border-radius: 999px;

  background: #2563eb;
  color: #ffffff;

  font-size: 0.70rem;
  font-weight: 900;
  line-height: 1;

  box-shadow:
    0 0 0 1px rgba(147, 197, 253, 0.18),
    0 4px 12px rgba(37, 99, 235, 0.28);
}

.osiris-global-chat-badge[hidden] {
  display: none !important;
}


/* ==========================================================
   Notifications Communications
   ========================================================== */

.osiris-communications-toast-host {
  position: fixed;
  top: 20px;
  right: 22px;

  z-index: 10000;

  width: min(390px, calc(100vw - 32px));

  display: flex;
  flex-direction: column;
  gap: 10px;

  pointer-events: none;
}

.osiris-communications-toast {
  width: 100%;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;

  padding: 13px 14px;

  border:
    1px solid rgba(96, 165, 250, 0.32);

  border-radius: 14px;

  background:
    rgba(8, 18, 38, 0.97);

  color: #e5e7eb;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.36);

  text-align: left;
  cursor: pointer;

  pointer-events: auto;

  opacity: 0;
  transform: translateY(-8px);

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.osiris-communications-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.osiris-communications-toast:hover {
  border-color:
    rgba(96, 165, 250, 0.62);
}

.osiris-toast-chat-icon {
  width: 36px;
  height: 36px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 10px;

  background:
    rgba(37, 99, 235, 0.18);

  font-size: 1.05rem;
}

.osiris-toast-chat-content {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;
}

.osiris-toast-chat-content strong {
  color: #f8fafc;
  font-size: 0.88rem;
}

.osiris-toast-chat-content span {
  overflow: hidden;

  color:
    rgba(191, 219, 254, 0.82);

  font-size: 0.78rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.osiris-toast-chat-open {
  color: #93c5fd;

  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 650px) {
  .osiris-communications-toast-host {
    top: 12px;
    right: 12px;
    left: 12px;

    width: auto;
  }
}


/* ==========================================================
   OSIRIS COMMUNICATIONS V1.1B
   Mise en évidence des @mentions
   ========================================================== */

.osiris-chat-mention {
  display: inline-block;
  padding: 1px 5px;
  margin: 0 1px;
  border-radius: 6px;

  font-weight: 800;
  line-height: 1.35;

  vertical-align: baseline;
}

/* Mention d'une personne : @Erick, @Sonia */
.osiris-chat-mention-person {
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.20);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

/* Mention d'un groupe : @OSINT, @Risk, etc. */
.osiris-chat-mention-group {
  color: #ddd6fe;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.28);
}


/* ==========================================================
   OSIRIS COMMUNICATIONS V1.1C
   Notifications prioritaires pour @mentions
   ========================================================== */

.osiris-communications-toast-priority {
  border-color: rgba(250, 204, 21, 0.55);

  background:
    linear-gradient(
      135deg,
      rgba(45, 35, 8, 0.98),
      rgba(8, 18, 38, 0.98)
    );

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.40),
    0 0 0 1px rgba(250, 204, 21, 0.10);
}

.osiris-communications-toast-priority:hover {
  border-color: rgba(250, 204, 21, 0.85);
}

.osiris-communications-toast-priority
.osiris-toast-chat-icon {
  background: rgba(250, 204, 21, 0.14);
}

.osiris-communications-toast-priority
.osiris-toast-chat-content strong {
  color: #fef3c7;
}

.osiris-communications-toast-priority
.osiris-toast-chat-content span {
  color: #fde68a;
}

.osiris-communications-toast-priority
.osiris-toast-chat-open {
  color: #facc15;
}


/* ==========================================================
   OSIRIS COMMUNICATIONS V1.1D
   Autocomplétion des @mentions
   ========================================================== */

.osiris-chat-composer {
  position: relative;
}

.osiris-chat-mention-menu {
  position: absolute;

  left: 12px;
  right: 12px;

  bottom: 100%;

  margin-bottom: 8px;

  max-height: 270px;
  overflow-y: auto;

  padding: 6px;

  border:
    1px solid rgba(96, 165, 250, 0.30);

  border-radius: 12px;

  background:
    rgba(8, 18, 38, 0.98);

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.38);

  z-index: 50;
}

.osiris-chat-mention-menu[hidden] {
  display: none !important;
}

.osiris-chat-mention-option {
  width: 100%;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;

  padding: 9px 10px;

  border: 1px solid transparent;
  border-radius: 9px;

  background: transparent;
  color: #e5e7eb;

  text-align: left;
  cursor: pointer;
}

.osiris-chat-mention-option:hover,
.osiris-chat-mention-option.active {
  background:
    rgba(37, 99, 235, 0.16);

  border-color:
    rgba(96, 165, 250, 0.28);
}

.osiris-chat-mention-option-symbol {
  width: 30px;
  height: 30px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 8px;

  font-weight: 900;
}

.osiris-chat-mention-option-person {
  color: #bfdbfe;
  background:
    rgba(37, 99, 235, 0.20);
}

.osiris-chat-mention-option-group {
  color: #ddd6fe;
  background:
    rgba(124, 58, 237, 0.20);
}

.osiris-chat-mention-option-content {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 2px;
}

.osiris-chat-mention-option-content strong {
  color: #f8fafc;
  font-size: 0.86rem;
}

.osiris-chat-mention-option-content small {
  color:
    rgba(191, 219, 254, 0.72);

  font-size: 0.72rem;
}

@media (max-width: 650px) {
  .osiris-chat-mention-menu {
    left: 6px;
    right: 6px;

    max-height: 220px;
  }
}


/* ==========================================================
   Communications V1.2D — preuve depuis pièce jointe
   ========================================================== */

.osiris-chat-attachment-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 8px;
}

.osiris-chat-attachment-row
.osiris-chat-attachment {
  margin: 0;
}

.osiris-chat-evidence-transfer {
  align-self: stretch;
  white-space: nowrap;
}

.osiris-chat-evidence-status {
  min-width: 180px;
  padding: 8px 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  opacity: 0.85;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.osiris-chat-evidence-status strong {
  font-size: 0.84rem;
}

.osiris-chat-evidence-status small {
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .osiris-chat-attachment-row {
    grid-template-columns: 1fr;
  }

  .osiris-chat-evidence-transfer {
    width: 100%;
  }

  .osiris-chat-evidence-status {
    min-width: 0;
  }
}



/* ==========================================================
   Communications V1.2E — message preuve
   ========================================================== */

.osiris-chat-message-evidence {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}

.osiris-chat-message.mine
.osiris-chat-message-evidence {
  justify-content: flex-end;
}

.osiris-chat-message-evidence-transfer {
  font-size: 0.78rem;
  white-space: nowrap;
}

.osiris-chat-message-evidence-status {
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid currentColor;
  border-radius: 8px;

  display: flex;
  flex-direction: column;
  gap: 3px;

  font-size: 0.78rem;
}

.osiris-chat-message-evidence-status strong {
  font-size: 0.8rem;
}

.osiris-chat-message-evidence-status small {
  font-size: 0.72rem;
  overflow-wrap: anywhere;
}

.osiris-chat-message-evidence-status.is-verified {
  opacity: 0.88;
}

.osiris-chat-message-evidence-status.is-source-changed {
  border-style: dashed;
}

.osiris-chat-message-evidence-status.is-integrity-warning {
  border-width: 2px;
}

@media (max-width: 800px) {
  .osiris-chat-message-evidence-transfer {
    width: 100%;
    white-space: normal;
  }
}



/* ==========================================================
   Communications V1.2F — édition messages
   ========================================================== */

.osiris-chat-message-edited-label {
  opacity: 0.72;
  font-style: italic;
}

.osiris-chat-message-revision-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.osiris-chat-message.mine
.osiris-chat-message-revision-actions {
  justify-content: flex-end;
}

.osiris-chat-message-action {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 2px 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  text-decoration: underline;
  opacity: 0.78;
}

.osiris-chat-message-action:hover {
  opacity: 1;
}

.osiris-chat-message-editor-host:empty {
  display: none;
}

.osiris-chat-message-editor {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.osiris-chat-message-editor textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  box-sizing: border-box;
}

.osiris-chat-message-editor-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.osiris-chat-message-history-host {
  margin-top: 9px;
}

.osiris-chat-message-history {
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 10px;
  opacity: 0.92;
}

.osiris-chat-message-history.is-error {
  border-width: 2px;
}

.osiris-chat-message-history-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.osiris-chat-message-history-title span {
  font-size: 0.74rem;
  opacity: 0.75;
}

.osiris-chat-history-version {
  padding: 9px 0;
  border-top: 1px solid currentColor;
}

.osiris-chat-history-version:first-of-type {
  border-top: 0;
}

.osiris-chat-history-version.is-original {
  padding-top: 4px;
}

.osiris-chat-history-version-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 0.78rem;
}

.osiris-chat-history-version-head span {
  opacity: 0.72;
  text-align: right;
}

.osiris-chat-history-content {
  font-size: 0.84rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.osiris-chat-history-hashes {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.68rem;
  opacity: 0.7;
}

@media (max-width: 800px) {
  .osiris-chat-history-version-head {
    flex-direction: column;
    gap: 3px;
  }

  .osiris-chat-history-version-head span {
    text-align: left;
  }

  .osiris-chat-message-editor-actions {
    flex-wrap: wrap;
  }
}


/* ==========================================================
   Audit V2.1
   ========================================================== */

.admin-audit-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
  margin: 18px 0;
}

.admin-audit-controls label {
  display: grid;
  gap: 5px;
  font-size: 0.78rem;
}

.admin-audit-controls select,
.admin-audit-controls input[type="search"] {
  min-height: 38px;
}

.admin-audit-search {
  flex: 1 1 280px;
}

.admin-audit-search input {
  width: 100%;
}

.admin-audit-checkbox {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  min-height: 38px;
}

.admin-audit-summary-grid {
  align-items: start;
}

.admin-audit-summary-grid > * {
  align-self: start;
}

.admin-audit-show-actions {
  margin-top: 8px;
}

.admin-audit-result-count {
  margin: 16px 0 8px;
  font-size: 0.8rem;
  opacity: 0.8;
}

.admin-audit-table {
  table-layout: auto;
}

.admin-audit-table th:first-child,
.admin-audit-table td:first-child {
  min-width: 150px;
  white-space: nowrap;
}

.admin-audit-table th:nth-child(2),
.admin-audit-table td:nth-child(2) {
  min-width: 190px;
}

.admin-audit-table th:nth-child(3),
.admin-audit-table td:nth-child(3) {
  min-width: 110px;
}

.admin-audit-table td {
  vertical-align: top;
}

.admin-audit-table td span {
  display: block;
  margin-top: 3px;
}

@media (max-width: 900px) {
  .admin-audit-controls {
    display: grid;
  }

  .admin-audit-table-wrap {
    overflow-x: auto;
  }
}


/* ==========================================================
   Audit V2.1 — finition barre de filtres
   ========================================================== */

.admin-audit-checkbox {
  flex: 0 0 255px;
  min-width: 255px;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  gap: 9px !important;
}

.admin-audit-checkbox input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0;
}

.admin-audit-checkbox span {
  white-space: nowrap;
  line-height: 1.25;
}

.admin-audit-controls > label:not(.admin-audit-search):not(.admin-audit-checkbox) {
  flex: 0 0 auto;
}

.admin-audit-controls select {
  min-width: 120px;
}

/* === OFFICE DASHBOARD V2 START === */

.office-dashboard-v2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.office-dashboard-v2 * {
  box-sizing: border-box;
}

.office-dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(15, 34, 64, 0.78)
    );
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.14);
}

.office-dashboard-hero h2 {
  margin: 4px 0 5px;
  font-size: 1.45rem;
}

.office-dashboard-hero p {
  margin: 0;
  color: rgba(203, 213, 225, 0.78);
}

.office-dashboard-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(125, 211, 252, 0.75);
}

.office-dashboard-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.office-dashboard-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(203, 213, 225, 0.78);
  font-size: 0.76rem;
  white-space: nowrap;
}

.office-dashboard-live-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 999px;
  background: #22c55e;
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.10);
}

.office-dashboard-refresh {
  min-height: 36px;
}

.office-dashboard-kpis {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.office-dashboard-kpi {
  min-height: 124px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 18px;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.74);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.12);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.office-dashboard-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.32);
  background: rgba(18, 31, 54, 0.92);
}

.office-dashboard-kpi-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 1.35rem;
  font-weight: 900;
}

.kpi-clients .office-dashboard-kpi-icon {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
}

.kpi-intakes .office-dashboard-kpi-icon {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.13);
}

.kpi-appointments .office-dashboard-kpi-icon {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.14);
}

.kpi-tasks .office-dashboard-kpi-icon {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.14);
}

.office-dashboard-kpi > div:last-child {
  min-width: 0;
}

.office-dashboard-kpi span {
  display: block;
  color: rgba(203, 213, 225, 0.74);
  font-size: 0.76rem;
  font-weight: 700;
}

.office-dashboard-kpi strong {
  display: block;
  margin: 3px 0;
  font-size: 1.85rem;
  line-height: 1.1;
  color: #f8fafc;
}

.office-dashboard-kpi small {
  display: block;
  color: rgba(148, 163, 184, 0.68);
  font-size: 0.69rem;
  line-height: 1.35;
}

.office-dashboard-panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.10);
}

.office-dashboard-actions-panel {
  padding: 18px;
}

.office-dashboard-panel-title {
  min-height: 44px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px 12px;
}

.office-dashboard-actions-panel
.office-dashboard-panel-title {
  padding: 0 0 14px;
}

.office-dashboard-panel-title h3 {
  margin: 3px 0 0;
  font-size: 1rem;
}

.office-dashboard-panel-title > a {
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
}

.office-dashboard-panel-title > a:hover {
  text-decoration: underline;
}

.office-dashboard-actions {
  display: grid;
  grid-template-columns:
    repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.office-dashboard-action {
  min-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px;
  border-radius: 11px;
  border: 1px solid rgba(96, 165, 250, 0.14);
  background: rgba(2, 6, 23, 0.30);
  color: inherit;
  text-decoration: none;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}

.office-dashboard-action:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(96, 165, 250, 0.32);
}

.office-dashboard-action > span {
  margin-bottom: 3px;
  color: #7dd3fc;
  font-size: 1.15rem;
  font-weight: 900;
}

.office-dashboard-action strong {
  font-size: 0.77rem;
}

.office-dashboard-action small {
  color: rgba(148, 163, 184, 0.68);
  font-size: 0.65rem;
}

.office-dashboard-content-grid {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.office-dashboard-list {
  padding: 0 18px 8px;
}

.office-dashboard-row {
  min-height: 65px;
  display: grid;
  grid-template-columns:
    38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 10px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
}

.office-dashboard-row:first-child {
  border-top: 0;
}

.office-dashboard-row-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-weight: 900;
  background: rgba(59, 130, 246, 0.11);
  color: #93c5fd;
}

.office-dashboard-row-icon.is-intake {
  background: rgba(6, 182, 212, 0.10);
  color: #67e8f9;
}

.office-dashboard-row-icon.is-task {
  background: rgba(249, 115, 22, 0.10);
  color: #fdba74;
}

.office-dashboard-row-icon.is-chat {
  background: rgba(139, 92, 246, 0.11);
  color: #c4b5fd;
}

.office-dashboard-row-main {
  min-width: 0;
}

.office-dashboard-row-main strong {
  display: block;
  overflow: hidden;
  color: #e5edf7;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-dashboard-row-main span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.office-dashboard-row-link {
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.office-dashboard-row-link:hover {
  text-decoration: underline;
}

.office-dashboard-badge {
  max-width: 100px;
  overflow: hidden;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.10);
  color: #bfdbfe;
  font-size: 0.61rem;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.office-dashboard-badge.priority-critique {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.office-dashboard-badge.priority-haute,
.office-dashboard-badge.priority-high {
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
}

.office-dashboard-badge.priority-basse,
.office-dashboard-badge.priority-low {
  background: rgba(34, 197, 94, 0.11);
  color: #86efac;
}

.office-dashboard-loading,
.office-dashboard-empty {
  padding: 18px 0 20px;
  color: rgba(148, 163, 184, 0.66);
  font-size: 0.72rem;
}

.office-dashboard-status {
  min-height: 20px;
  padding: 0 4px 4px;
  color: rgba(148, 163, 184, 0.70);
  font-size: 0.69rem;
}

.office-dashboard-status[data-state="success"] {
  color: rgba(134, 239, 172, 0.78);
}

.office-dashboard-status[data-state="warning"] {
  color: rgba(253, 186, 116, 0.86);
}


@media (max-width: 1200px) {
  .office-dashboard-kpis {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .office-dashboard-actions {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }
}


@media (max-width: 850px) {
  .office-dashboard-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .office-dashboard-content-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 640px) {
  .office-dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .office-dashboard-actions {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .office-dashboard-hero-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .office-dashboard-row {
    grid-template-columns:
      34px minmax(0, 1fr);
  }

  .office-dashboard-row-link,
  .office-dashboard-badge {
    grid-column: 2;
    justify-self: start;
  }
}

/* === OFFICE DASHBOARD V2 END === */

/* === OFFICE DASHBOARD V2.1 START === */

.office-dashboard-hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.office-dashboard-today {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
}

.office-dashboard-kpi {
  position: relative;
  overflow: hidden;
}

.office-dashboard-kpi::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 100px;
  height: 100px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.045);
  pointer-events: none;
}

.office-dashboard-kpi strong {
  margin: 5px 0 4px;
  font-size: 2.15rem;
  letter-spacing: -0.03em;
}

.office-dashboard-kpi-icon svg,
.office-dashboard-row-icon svg,
.office-dashboard-action > span svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.office-dashboard-kpi-icon svg {
  width: 24px;
  height: 24px;
}

.office-dashboard-action > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
}

.office-dashboard-action > span svg {
  width: 18px;
  height: 18px;
}

.office-dashboard-content-grid
> .office-dashboard-panel {
  min-height: 270px;
}

.office-dashboard-row-clickable {
  margin: 0 -7px;
  padding-left: 7px;
  padding-right: 7px;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background 120ms ease,
    transform 120ms ease;
}

.office-dashboard-row-clickable:hover {
  background: rgba(59, 130, 246, 0.055);
}

.office-dashboard-row-clickable:active {
  transform: scale(0.997);
}

.office-dashboard-row-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.office-dashboard-row-time {
  color: rgba(148, 163, 184, 0.63);
  font-size: 0.64rem;
  font-variant-numeric: tabular-nums;
}

.office-dashboard-row-link::after {
  content: " ›";
  display: inline;
}

.office-dashboard-footer {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 4px 2px;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.office-dashboard-status {
  padding: 0;
}

.office-dashboard-footer-brand {
  color: rgba(148, 163, 184, 0.48);
  font-size: 0.67rem;
  white-space: nowrap;
}

.office-dashboard-panel {
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.office-dashboard-panel:hover {
  border-color: rgba(96, 165, 250, 0.20);
}

.office-dashboard-actions-panel:hover {
  box-shadow:
    0 15px 32px rgba(0, 0, 0, 0.12);
}


@media (max-width: 850px) {

  .office-dashboard-hero-meta {
    align-items: flex-start;
  }

  .office-dashboard-content-grid
  > .office-dashboard-panel {
    min-height: 0;
  }

  .office-dashboard-footer {
    align-items: flex-start;
    flex-direction: column;
  }

}


@media (max-width: 640px) {

  .office-dashboard-row-side {
    grid-column: 2;
    justify-self: start;
  }

}

/* === OFFICE DASHBOARD V2.1 END === */

/* === OFFICE DASHBOARD V2.2 START === */

/* ==========================================================
   Tableau bureau V2.2
   Version compacte desktop
   ========================================================== */

.office-dashboard-v2 {
  gap: 14px;
}


/* ----------------------------------------------------------
   Entête plus compact
   ---------------------------------------------------------- */

.office-dashboard-hero {
  min-height: 82px;
  padding: 15px 18px;
}

.office-dashboard-hero h2 {
  margin: 3px 0 4px;
  font-size: 1.32rem;
}

.office-dashboard-hero p {
  font-size: 0.78rem;
}


/* ----------------------------------------------------------
   KPI
   ---------------------------------------------------------- */

.office-dashboard-kpis {
  gap: 11px;
}

.office-dashboard-kpi {
  min-height: 102px;
  padding: 14px 15px;
  gap: 12px;
}

.office-dashboard-kpi-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
}

.office-dashboard-kpi-icon svg {
  width: 21px;
  height: 21px;
}

.office-dashboard-kpi strong {
  margin: 3px 0;
  font-size: 1.82rem;
}

.office-dashboard-kpi span {
  font-size: 0.72rem;
}

.office-dashboard-kpi small {
  font-size: 0.64rem;
}


/* ----------------------------------------------------------
   Actions rapides
   ---------------------------------------------------------- */

.office-dashboard-actions-panel {
  padding: 13px 15px 15px;
}

.office-dashboard-actions-panel
.office-dashboard-panel-title {
  padding-bottom: 10px;
}

.office-dashboard-action {
  min-height: 76px;
  padding: 9px 10px;
}

.office-dashboard-action > span {
  width: 23px;
  height: 23px;
  margin-bottom: 2px;
}

.office-dashboard-action > span svg {
  width: 16px;
  height: 16px;
}

.office-dashboard-action strong {
  font-size: 0.72rem;
}

.office-dashboard-action small {
  font-size: 0.60rem;
}


/* ----------------------------------------------------------
   Panneaux opérationnels
   4 colonnes sur grand écran
   ---------------------------------------------------------- */

.office-dashboard-content-grid {
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.office-dashboard-content-grid
> .office-dashboard-panel {
  min-height: 252px;
}

.office-dashboard-panel-title {
  min-height: 48px;
  padding: 13px 14px 9px;
}

.office-dashboard-panel-title h3 {
  font-size: 0.86rem;
}

.office-dashboard-panel-title > a {
  font-size: 0.65rem;
}

.office-dashboard-eyebrow {
  font-size: 0.60rem;
}


/* ----------------------------------------------------------
   Contenu des panneaux
   ---------------------------------------------------------- */

.office-dashboard-list {
  padding: 0 13px 7px;
}

.office-dashboard-row {
  min-height: 50px;
  grid-template-columns:
    31px minmax(0, 1fr) auto;
  gap: 8px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.office-dashboard-row-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}

.office-dashboard-row-icon svg {
  width: 16px;
  height: 16px;
}

.office-dashboard-row-main strong {
  font-size: 0.70rem;
}

.office-dashboard-row-main span {
  margin-top: 2px;
  font-size: 0.61rem;
}

.office-dashboard-row-link {
  font-size: 0.61rem;
}

.office-dashboard-row-time {
  font-size: 0.58rem;
}

.office-dashboard-badge {
  max-width: 76px;
  padding: 3px 6px;
  font-size: 0.56rem;
}

.office-dashboard-loading,
.office-dashboard-empty {
  padding: 14px 0;
  font-size: 0.66rem;
}


/* ----------------------------------------------------------
   Pied du tableau
   ---------------------------------------------------------- */

.office-dashboard-footer {
  min-height: 30px;
  padding-top: 6px;
}

.office-dashboard-status,
.office-dashboard-footer-brand {
  font-size: 0.63rem;
}


/* ==========================================================
   Responsive
   ========================================================== */

/*
  Écran intermédiaire :
  retour à 2 colonnes.
*/
@media (max-width: 1350px) {

  .office-dashboard-content-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .office-dashboard-content-grid
  > .office-dashboard-panel {
    min-height: 225px;
  }

}


/*
  Tablette.
*/
@media (max-width: 900px) {

  .office-dashboard-actions {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

}


/*
  Mobile.
*/
@media (max-width: 850px) {

  .office-dashboard-content-grid {
    grid-template-columns: 1fr;
  }

  .office-dashboard-content-grid
  > .office-dashboard-panel {
    min-height: 0;
  }

}


/* === OFFICE DASHBOARD V2.2 END === */

/* === SUPERVISION DASHBOARD V2 START === */

.supervision-dashboard-v2 {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.supervision-dashboard-v2 * {
  box-sizing: border-box;
}


/* HERO */

.supervision-v2-hero {
  min-height: 94px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 17px 20px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(19, 38, 70, 0.78)
    );
}

.supervision-v2-hero h1 {
  margin: 4px 0 5px;
  font-size: 1.45rem;
}

.supervision-v2-hero .muted {
  margin: 0;
  max-width: 760px;
  font-size: 0.78rem;
}

.supervision-v2-eyebrow {
  margin: 0;
  color: #7dd3fc;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.supervision-v2-hero-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.supervision-v2-date {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
}

.supervision-v2-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.68rem;
}

.supervision-v2-sync > span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.10);
}


/* KPI PRINCIPAUX */

.supervision-v2-primary-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.supervision-v2-kpi {
  min-height: 106px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.74);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.supervision-v2-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(18, 31, 54, 0.92);
}

.supervision-v2-kpi::after {
  content: "";
  position: absolute;
  width: 105px;
  height: 105px;
  right: -32px;
  bottom: -46px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.045);
}

.supervision-v2-kpi-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.13);
}

.supervision-v2-kpi.tone-cyan
.supervision-v2-kpi-icon {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
}

.supervision-v2-kpi.tone-orange
.supervision-v2-kpi-icon {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.13);
}

.supervision-v2-kpi.tone-violet
.supervision-v2-kpi-icon {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.13);
}

.supervision-v2-kpi-icon svg,
.supervision-v2-mini-kpi svg,
.supervision-v2-actions svg,
.supervision-v2-chat-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.supervision-v2-kpi span {
  display: block;
  color: rgba(203, 213, 225, 0.75);
  font-size: 0.72rem;
  font-weight: 800;
}

.supervision-v2-kpi strong {
  display: block;
  margin: 3px 0;
  color: #f8fafc;
  font-size: 1.9rem;
  line-height: 1.05;
}

.supervision-v2-kpi small {
  color: rgba(148, 163, 184, 0.70);
  font-size: 0.63rem;
}


/* KPI SECONDAIRES */

.supervision-v2-secondary-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.supervision-v2-mini-kpi {
  min-height: 66px;
  display: grid;
  grid-template-columns:
    32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.58);
}

.supervision-v2-mini-kpi > div {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #7dd3fc;
}

.supervision-v2-mini-kpi small {
  display: block;
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.61rem;
}

.supervision-v2-mini-kpi strong {
  display: block;
  margin-top: 1px;
  font-size: 1.1rem;
}

.supervision-v2-mini-kpi em {
  color: rgba(148, 163, 184, 0.60);
  font-size: 0.58rem;
  font-style: normal;
  text-align: right;
}


/* ACTIONS */

.supervision-v2-actions-panel,
.supervision-v2-priority-strip,
.supervision-v2-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.70);
}

.supervision-v2-actions-panel {
  padding: 14px 15px 15px;
}

.supervision-v2-actions-panel > header,
.supervision-v2-priority-strip > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
}

.supervision-v2-actions-panel header span,
.supervision-v2-priority-strip header span,
.supervision-v2-panel-head > div > span {
  display: block;
  color: #7dd3fc;
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.supervision-v2-actions-panel h2,
.supervision-v2-priority-strip h2,
.supervision-v2-panel h2 {
  margin: 3px 0 0;
  font-size: 0.86rem;
}

.supervision-v2-actions {
  display: grid;
  grid-template-columns:
    repeat(7, minmax(0, 1fr));
  gap: 9px;
}

.supervision-v2-actions > a {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(96, 165, 250, 0.13);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.28);
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.supervision-v2-actions > a:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(96, 165, 250, 0.30);
}

.supervision-v2-actions > a > span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  color: #7dd3fc;
}

.supervision-v2-actions strong {
  font-size: 0.68rem;
}

.supervision-v2-actions small {
  color: rgba(148, 163, 184, 0.67);
  font-size: 0.57rem;
}


/* PRIORITÉS */

.supervision-v2-priority-strip {
  padding: 13px 15px 10px;
}

.supervision-v2-priority-strip > header > a,
.supervision-v2-panel-head > a {
  color: #7dd3fc;
  font-size: 0.62rem;
  font-weight: 800;
  text-decoration: none;
}

.supervision-v2-priority-list {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 8px;
}


/* WORKFLOW */

.supervision-v2-workflow-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.supervision-v2-panel {
  min-height: 248px;
  overflow: hidden;
}

.supervision-v2-panel-head {
  min-height: 51px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  padding: 13px 14px 9px;
}

.supervision-v2-panel-list {
  padding: 0 13px 8px;
}

.supervision-v2-row {
  min-height: 52px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 5px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 7px;
}

.supervision-v2-row:first-child {
  border-top: 0;
}

.supervision-v2-row:hover {
  background: rgba(59, 130, 246, 0.055);
}

.supervision-v2-row-main {
  min-width: 0;
}

.supervision-v2-row-main strong {
  display: block;
  overflow: hidden;
  color: #e5edf7;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supervision-v2-row-main span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(148, 163, 184, 0.70);
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supervision-v2-status {
  max-width: 90px;
  padding: 4px 7px;
  overflow: hidden;
  color: #bfdbfe;
  font-size: 0.56rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.11);
}

.supervision-v2-chat-row {
  grid-template-columns:
    30px minmax(0, 1fr) auto;
}

.supervision-v2-chat-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #c4b5fd;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.12);
}

.supervision-v2-chat-icon svg {
  width: 16px;
  height: 16px;
}

.supervision-v2-time {
  color: rgba(148, 163, 184, 0.60);
  font-size: 0.56rem;
  font-variant-numeric: tabular-nums;
}

.supervision-v2-empty {
  padding: 16px 4px;
  color: rgba(148, 163, 184, 0.68);
  font-size: 0.64rem;
}

.supervision-v2-empty-inline {
  grid-column: 1 / -1;
}


/* FOOTER */

.supervision-v2-footer {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 4px 2px;
  color: rgba(148, 163, 184, 0.52);
  font-size: 0.61rem;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.supervision-v2-footer-ok {
  color: rgba(134, 239, 172, 0.78);
}

.supervision-v2-loading {
  padding: 20px;
  color: rgba(148, 163, 184, 0.70);
}


/* RESPONSIVE */

@media (max-width: 1400px) {
  .supervision-v2-actions {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .supervision-v2-workflow-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .supervision-v2-primary-grid,
  .supervision-v2-secondary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .supervision-v2-priority-list {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .supervision-v2-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .supervision-v2-hero-side {
    justify-items: start;
  }

  .supervision-v2-primary-grid,
  .supervision-v2-secondary-grid,
  .supervision-v2-actions,
  .supervision-v2-priority-list,
  .supervision-v2-workflow-grid {
    grid-template-columns: 1fr;
  }

  .supervision-v2-panel {
    min-height: 0;
  }

  .supervision-v2-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* === SUPERVISION DASHBOARD V2 END === */

/* === SUPERVISION DASHBOARD V2 WIDTH FIX START === */

/*
 * Le contenu principal Osiris Watch utilise une grille.
 * Le dashboard supervision doit occuper toutes les colonnes.
 */

.supervision-dashboard-v2 {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  justify-self: stretch;
  align-self: start;
}

.supervision-v2-hero,
.supervision-v2-primary-grid,
.supervision-v2-secondary-grid,
.supervision-v2-actions-panel,
.supervision-v2-priority-strip,
.supervision-v2-workflow-grid,
.supervision-v2-footer {
  width: 100%;
  max-width: none;
  min-width: 0;
}

/* Empêche les cartes internes d'élargir ou comprimer la grille. */

.supervision-v2-primary-grid > *,
.supervision-v2-secondary-grid > *,
.supervision-v2-workflow-grid > *,
.supervision-v2-actions > * {
  min-width: 0;
}

/* === SUPERVISION DASHBOARD V2 WIDTH FIX END === */

/* === DIRECTION DASHBOARD V2 START === */

#directionOverview {
  width: 100%;
  max-width: none;
  grid-column: 1 / -1;
}

.direction-dashboard-v2 {
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.direction-dashboard-v2 * {
  box-sizing: border-box;
}


/* HERO */

.direction-v2-hero {
  min-height: 94px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 17px 20px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(20, 40, 74, 0.80)
    );
}

.direction-v2-hero h1 {
  margin: 4px 0 5px;
  font-size: 1.45rem;
}

.direction-v2-hero .muted {
  margin: 0;
  font-size: 0.78rem;
}

.direction-v2-eyebrow,
.direction-v2-section-eyebrow {
  margin: 0;
  color: #7dd3fc;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.direction-v2-hero-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.direction-v2-date {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
}

.direction-v2-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.68rem;
}

.direction-v2-sync > span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.10);
}


/* KPI PRINCIPAUX */

.direction-v2-primary-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.direction-v2-kpi {
  min-height: 105px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.74);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.direction-v2-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.34);
  background: rgba(18, 31, 54, 0.92);
}

.direction-v2-kpi::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -46px;
  width: 105px;
  height: 105px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.045);
}

.direction-v2-kpi-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.13);
}

.direction-v2-kpi.tone-violet
.direction-v2-kpi-icon {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.13);
}

.direction-v2-kpi.tone-orange
.direction-v2-kpi-icon {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.13);
}

.direction-v2-kpi.tone-cyan
.direction-v2-kpi-icon {
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
}

.direction-v2-kpi-icon svg,
.direction-v2-mini-kpi svg,
.direction-v2-actions svg,
.direction-v2-chat-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.direction-v2-kpi span {
  display: block;
  color: rgba(203, 213, 225, 0.75);
  font-size: 0.72rem;
  font-weight: 800;
}

.direction-v2-kpi strong {
  display: block;
  margin: 3px 0;
  color: #f8fafc;
  font-size: 1.9rem;
  line-height: 1.05;
}

.direction-v2-kpi small {
  color: rgba(148, 163, 184, 0.70);
  font-size: 0.63rem;
}


/* KPI SECONDAIRES */

.direction-v2-secondary-grid {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.direction-v2-mini-kpi {
  min-height: 65px;
  display: grid;
  grid-template-columns:
    31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.58);
}

.direction-v2-mini-kpi > div {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #7dd3fc;
}

.direction-v2-mini-kpi small {
  display: block;
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.59rem;
}

.direction-v2-mini-kpi strong {
  display: block;
  margin-top: 1px;
  font-size: 1.08rem;
}

.direction-v2-mini-kpi em {
  color: rgba(148, 163, 184, 0.58);
  font-size: 0.55rem;
  font-style: normal;
  text-align: right;
}


/* ACTIONS */

.direction-v2-actions-panel {
  padding: 14px 15px 15px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.70);
}

.direction-v2-actions-panel > header {
  padding-bottom: 10px;
}

.direction-v2-actions-panel header span,
.direction-v2-panel-head > div > span {
  display: block;
  color: #7dd3fc;
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.direction-v2-actions-panel h2,
.direction-v2-panel h2 {
  margin: 3px 0 0;
  font-size: 0.86rem;
}

.direction-v2-actions {
  display: grid;
  grid-template-columns:
    repeat(7, minmax(0, 1fr));
  gap: 9px;
}

.direction-v2-actions > a {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(96, 165, 250, 0.13);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.28);
  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.direction-v2-actions > a:hover {
  transform: translateY(-1px);
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(96, 165, 250, 0.30);
}

.direction-v2-actions > a > span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  color: #7dd3fc;
}

.direction-v2-actions strong {
  font-size: 0.68rem;
}

.direction-v2-actions small {
  color: rgba(148, 163, 184, 0.67);
  font-size: 0.57rem;
}


/* PANNEAUX */

.direction-v2-content-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.direction-v2-panel {
  min-height: 245px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.70);
}

.direction-v2-panel-head {
  min-height: 51px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px 9px;
}

.direction-v2-panel-head > a {
  color: #7dd3fc;
  font-size: 0.61rem;
  font-weight: 800;
  text-decoration: none;
}

.direction-v2-panel-list {
  padding: 0 13px 8px;
}

.direction-v2-row {
  min-height: 52px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 5px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 7px;
}

.direction-v2-row:first-child {
  border-top: 0;
}

.direction-v2-row:hover {
  background: rgba(59, 130, 246, 0.055);
}

.direction-v2-row-main {
  min-width: 0;
}

.direction-v2-row-main strong {
  display: block;
  overflow: hidden;
  color: #e5edf7;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direction-v2-row-main span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(148, 163, 184, 0.70);
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direction-v2-status {
  max-width: 92px;
  overflow: hidden;
  padding: 4px 7px;
  color: #bfdbfe;
  font-size: 0.55rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.11);
}

.direction-v2-chat-row {
  grid-template-columns:
    30px minmax(0, 1fr) auto;
}

.direction-v2-chat-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #c4b5fd;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.12);
}

.direction-v2-chat-icon svg {
  width: 16px;
  height: 16px;
}

.direction-v2-time {
  color: rgba(148, 163, 184, 0.60);
  font-size: 0.56rem;
  font-variant-numeric: tabular-nums;
}

.direction-v2-empty {
  padding: 16px 4px;
  color: rgba(148, 163, 184, 0.68);
  font-size: 0.64rem;
}


/* BAS DE PAGE : CRÉATION + REGISTRE */

.direction-v2-create-card,
.direction-v2-official-list {
  width: 100% !important;
  max-width: none !important;
  margin-top: 14px;
  border-radius: 14px;
}

.direction-v2-create-card {
  border-color: rgba(96, 165, 250, 0.18);
}

.direction-v2-create-card h2,
.direction-v2-official-list h2 {
  margin-top: 4px;
}

.direction-v2-create-card .grid-2 {
  margin-top: 16px;
}

.direction-v2-section-eyebrow {
  margin-bottom: 2px;
}


/* FOOTER */

.direction-v2-footer {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 4px 2px;
  color: rgba(148, 163, 184, 0.55);
  font-size: 0.61rem;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.direction-v2-footer > span:first-child {
  color: rgba(134, 239, 172, 0.78);
}


/* RESPONSIVE */

@media (max-width: 1450px) {

  .direction-v2-actions {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .direction-v2-content-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 1150px) {

  .direction-v2-primary-grid,
  .direction-v2-secondary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 760px) {

  .direction-v2-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .direction-v2-hero-side {
    justify-items: start;
  }

  .direction-v2-primary-grid,
  .direction-v2-secondary-grid,
  .direction-v2-actions,
  .direction-v2-content-grid {
    grid-template-columns: 1fr;
  }

  .direction-v2-panel {
    min-height: 0;
  }

  .direction-v2-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* === DIRECTION DASHBOARD V2 END === */

/* === DIRECTION DASHBOARD V2 WIDTH FIX START === */

/*
 * Le contenu principal Osiris Watch fonctionne
 * avec une grille.
 *
 * Le dashboard Direction doit occuper
 * toute la largeur disponible.
 */

#directionOverview {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch !important;
}


.direction-dashboard-v2 {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch !important;
  align-self: start;
}


/*
 * Tous les grands blocs internes doivent
 * également pouvoir utiliser 100 %.
 */

.direction-v2-hero,
.direction-v2-primary-grid,
.direction-v2-secondary-grid,
.direction-v2-actions-panel,
.direction-v2-content-grid,
.direction-v2-footer {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}


/*
 * Empêche une carte ou son contenu texte
 * de forcer une largeur minimale.
 */

.direction-v2-primary-grid > *,
.direction-v2-secondary-grid > *,
.direction-v2-actions > *,
.direction-v2-content-grid > * {
  min-width: 0 !important;
}


/*
 * Desktop large :
 * 4 KPI principaux.
 */

.direction-v2-primary-grid {
  grid-template-columns:
    repeat(4, minmax(0, 1fr)) !important;
}


/*
 * Les cinq indicateurs secondaires
 * tiennent sur une seule ligne.
 */

.direction-v2-secondary-grid {
  grid-template-columns:
    repeat(5, minmax(0, 1fr)) !important;
}


/*
 * Actions rapides :
 * 7 accès sur une seule rangée
 * lorsque l'écran le permet.
 */

.direction-v2-actions {
  grid-template-columns:
    repeat(7, minmax(0, 1fr)) !important;
}


/*
 * Les quatre panneaux exécutifs
 * prennent une rangée complète.
 */

.direction-v2-content-grid {
  grid-template-columns:
    repeat(4, minmax(0, 1fr)) !important;
}


/* Responsive */

@media (max-width: 1450px) {

  .direction-v2-actions {
    grid-template-columns:
      repeat(4, minmax(0, 1fr)) !important;
  }

  .direction-v2-content-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }

}


@media (max-width: 1150px) {

  .direction-v2-primary-grid,
  .direction-v2-secondary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr)) !important;
  }

}


@media (max-width: 760px) {

  .direction-v2-primary-grid,
  .direction-v2-secondary-grid,
  .direction-v2-actions,
  .direction-v2-content-grid {
    grid-template-columns:
      1fr !important;
  }

}

/* === DIRECTION DASHBOARD V2 WIDTH FIX END === */

/* === DIRECTION PANEL FULL GRID FIX START === */

/*
 * IMPORTANT :
 * direction-panel est lui-même un enfant de la
 * grille principale de #moduleContent.
 *
 * width:100% seul ne suffit donc pas :
 * il faut explicitement lui faire occuper
 * toutes les colonnes de cette grille.
 */

#moduleContent > .page-section.direction-panel,
#moduleContent > .direction-panel,
main > .page-section.direction-panel,
.osiris-main > .page-section.direction-panel {
  grid-column: 1 / -1 !important;
  grid-row: auto !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  justify-self: stretch !important;
  align-self: start !important;

  margin-left: 0 !important;
  margin-right: 0 !important;
}


/*
 * La section Direction elle-même.
 */

.page-section.direction-panel {
  grid-column: 1 / -1 !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  box-sizing: border-box !important;
}


/*
 * Tous les enfants principaux héritent
 * maintenant réellement de la largeur complète.
 */

.direction-panel > #directionOverview,
.direction-panel > .card,
.direction-panel > .direction-v2-create-card,
.direction-panel > .direction-v2-official-list {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  grid-column: 1 / -1 !important;
}


/*
 * Dashboard exécutif.
 */

#directionOverview,
.direction-dashboard-v2 {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}


/*
 * Formulaire création :
 * les deux colonnes peuvent maintenant
 * exploiter la vraie largeur disponible.
 */

.direction-v2-create-card .grid-2 {
  width: 100% !important;
  grid-template-columns:
    repeat(2, minmax(0, 1fr)) !important;
}


/*
 * Registre dossiers.
 */

.direction-v2-official-list,
.direction-v2-official-list .table-wrap {
  width: 100% !important;
  max-width: none !important;
}


/* Responsive */

@media (max-width: 760px) {

  .direction-v2-create-card .grid-2 {
    grid-template-columns:
      1fr !important;
  }

}

/* === DIRECTION PANEL FULL GRID FIX END === */

/* === LEGAL DASHBOARD V2 START === */


/* PLEINE LARGEUR DÈS LE DÉPART */

#moduleContent > .legal-panel-page,
main > .legal-panel-page,
.legal-panel-page {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch !important;
}

.legal-cases-list,
.legal-dashboard-v2 {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
}

.legal-dashboard-v2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
}


/* HERO */

.legal-v2-hero {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 20px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(31, 30, 72, 0.80)
    );
}

.legal-v2-hero h1 {
  margin: 4px 0 5px;
  font-size: 1.45rem;
}

.legal-v2-hero .muted {
  margin: 0;
  font-size: 0.78rem;
}

.legal-v2-eyebrow {
  margin: 0;
  color: #c4b5fd;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.legal-v2-hero-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.legal-v2-date {
  color: rgba(226, 232, 240, 0.92);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
}

.legal-v2-sync {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.68rem;
}

.legal-v2-sync > span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow:
    0 0 0 4px rgba(34, 197, 94, 0.10);
}


/* KPI PRINCIPAUX */

.legal-v2-primary-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.legal-v2-kpi {
  min-height: 105px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.74);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.legal-v2-kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 181, 253, 0.34);
  background: rgba(25, 31, 55, 0.92);
}

.legal-v2-kpi::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -46px;
  width: 105px;
  height: 105px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.045);
}

.legal-v2-kpi-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.13);
}

.legal-v2-kpi.tone-violet
.legal-v2-kpi-icon {
  color: #c4b5fd;
  background: rgba(139, 92, 246, 0.13);
}

.legal-v2-kpi.tone-orange
.legal-v2-kpi-icon {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.13);
}

.legal-v2-kpi.tone-red
.legal-v2-kpi-icon {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.13);
}

.legal-v2-kpi-icon svg,
.legal-v2-mini-kpi svg,
.legal-v2-actions svg,
.legal-v2-chat-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-v2-kpi span {
  display: block;
  color: rgba(203, 213, 225, 0.75);
  font-size: 0.72rem;
  font-weight: 800;
}

.legal-v2-kpi strong {
  display: block;
  margin: 3px 0;
  color: #f8fafc;
  font-size: 1.9rem;
  line-height: 1.05;
}

.legal-v2-kpi small {
  color: rgba(148, 163, 184, 0.70);
  font-size: 0.63rem;
}


/* KPI SECONDAIRES */

.legal-v2-secondary-grid {
  display: grid;
  grid-template-columns:
    repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.legal-v2-mini-kpi {
  min-height: 65px;
  display: grid;
  grid-template-columns:
    31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.58);
}

.legal-v2-mini-kpi > div {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #c4b5fd;
}

.legal-v2-mini-kpi small {
  display: block;
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.59rem;
}

.legal-v2-mini-kpi strong {
  display: block;
  margin-top: 1px;
  font-size: 1.08rem;
}

.legal-v2-mini-kpi em {
  color: rgba(148, 163, 184, 0.58);
  font-size: 0.55rem;
  font-style: normal;
  text-align: right;
}


/* ACTIONS */

.legal-v2-actions-panel,
.legal-v2-breakdown-strip,
.legal-v2-panel {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 13px;
  background: rgba(15, 23, 42, 0.70);
}

.legal-v2-actions-panel {
  padding: 14px 15px 15px;
}

.legal-v2-actions-panel > header,
.legal-v2-breakdown-strip > header {
  padding-bottom: 10px;
}

.legal-v2-actions-panel header span,
.legal-v2-breakdown-strip header span,
.legal-v2-panel-head > div > span {
  display: block;
  color: #c4b5fd;
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.legal-v2-actions-panel h2,
.legal-v2-breakdown-strip h2,
.legal-v2-panel h2 {
  margin: 3px 0 0;
  font-size: 0.86rem;
}

.legal-v2-actions {
  display: grid;
  grid-template-columns:
    repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.legal-v2-actions > a {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 9px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.28);
}

.legal-v2-actions > a:hover {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(196, 181, 253, 0.30);
}

.legal-v2-actions > a > span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  color: #c4b5fd;
}

.legal-v2-actions strong {
  font-size: 0.66rem;
}

.legal-v2-actions small {
  color: rgba(148, 163, 184, 0.67);
  font-size: 0.55rem;
}


/* BREAKDOWN */

.legal-v2-breakdown-strip {
  padding: 13px 15px 14px;
}

.legal-v2-breakdown-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.legal-v2-breakdown {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.24);
}

.legal-v2-breakdown h3 {
  margin: 0 0 7px;
  font-size: 0.70rem;
}

.legal-v2-breakdown-row,
.legal-v2-forensic-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  color: rgba(148, 163, 184, 0.72);
  font-size: 0.60rem;
  border-top: 1px solid rgba(148, 163, 184, 0.07);
}

.legal-v2-breakdown-row:first-of-type,
.legal-v2-forensic-row:first-child {
  border-top: 0;
}

.legal-v2-breakdown-row strong,
.legal-v2-forensic-row strong {
  color: #e5edf7;
}


/* PANNEAUX */

.legal-v2-content-grid {
  display: grid;
  grid-template-columns:
    repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.legal-v2-panel {
  min-height: 245px;
  overflow: hidden;
}

.legal-v2-panel-head {
  min-height: 51px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px 9px;
}

.legal-v2-panel-head > a {
  color: #c4b5fd;
  font-size: 0.61rem;
  font-weight: 800;
  text-decoration: none;
}

.legal-v2-panel-list,
.legal-v2-forensic-list {
  padding: 0 13px 8px;
}

.legal-v2-row {
  min-height: 52px;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 5px;
  color: inherit;
  text-decoration: none;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
  border-radius: 7px;
}

.legal-v2-row:first-child {
  border-top: 0;
}

.legal-v2-row:hover {
  background: rgba(139, 92, 246, 0.055);
}

.legal-v2-row-main {
  min-width: 0;
}

.legal-v2-row-main strong {
  display: block;
  overflow: hidden;
  color: #e5edf7;
  font-size: 0.69rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-v2-row-main span {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: rgba(148, 163, 184, 0.70);
  font-size: 0.59rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legal-v2-status {
  max-width: 100px;
  overflow: hidden;
  padding: 4px 7px;
  color: #ddd6fe;
  font-size: 0.55rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
}

.legal-v2-chat-row {
  grid-template-columns:
    30px minmax(0, 1fr) auto;
}

.legal-v2-chat-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  color: #c4b5fd;
  border-radius: 8px;
  background: rgba(139, 92, 246, 0.12);
}

.legal-v2-chat-icon svg {
  width: 16px;
  height: 16px;
}

.legal-v2-time {
  color: rgba(148, 163, 184, 0.60);
  font-size: 0.56rem;
}

.legal-v2-empty {
  padding: 15px 4px;
  color: rgba(148, 163, 184, 0.68);
  font-size: 0.63rem;
}


/* FOOTER */

.legal-v2-footer {
  min-height: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 7px 4px 2px;
  color: rgba(148, 163, 184, 0.55);
  font-size: 0.61rem;
  border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.legal-v2-footer > span:first-child {
  color: rgba(134, 239, 172, 0.78);
}

.legal-v2-global-status {
  margin: 6px 2px 0;
  font-size: 0.64rem;
}


/* RESPONSIVE */

@media (max-width: 1450px) {

  .legal-v2-actions {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .legal-v2-content-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 1150px) {

  .legal-v2-primary-grid,
  .legal-v2-secondary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 800px) {

  .legal-v2-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-v2-hero-side {
    justify-items: start;
  }

  .legal-v2-breakdown-grid,
  .legal-v2-content-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 650px) {

  .legal-v2-primary-grid,
  .legal-v2-secondary-grid,
  .legal-v2-actions {
    grid-template-columns: 1fr;
  }

  .legal-v2-panel {
    min-height: 0;
  }

  .legal-v2-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* === LEGAL DASHBOARD V2 END === */

/* === OSINT DASHBOARD V2 START === */


/* PLEINE LARGEUR */

#moduleContent > .osint-dashboard-v2,
.osint-dashboard-v2 {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  justify-self: stretch !important;

  display: flex;
  flex-direction: column;
  gap: 14px;
}

.osint-dashboard-v2 * {
  box-sizing: border-box;
}


/* HERO */

.osint-v2-hero {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 17px 20px;

  border:
    1px solid
    rgba(34, 211, 238, 0.18);

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.96),
      rgba(9, 43, 59, 0.82)
    );
}

.osint-v2-hero h1 {
  margin: 4px 0 5px;
  font-size: 1.45rem;
}

.osint-v2-hero .muted {
  margin: 0;
  font-size: 0.78rem;
}

.osint-v2-eyebrow {
  margin: 0;
  color: #67e8f9;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.osint-v2-hero-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.osint-v2-date {
  color:
    rgba(226, 232, 240, 0.92);

  font-size: 0.72rem;
  font-weight: 800;
  text-transform: capitalize;
}

.osint-v2-sync {
  display: flex;
  align-items: center;
  gap: 6px;

  color:
    rgba(148, 163, 184, 0.78);

  font-size: 0.68rem;
}

.osint-v2-sync > span {
  width: 7px;
  height: 7px;
  border-radius: 999px;

  background: #22c55e;

  box-shadow:
    0 0 0 4px
    rgba(34, 197, 94, 0.10);
}


/* KPI PRINCIPAUX */

.osint-v2-primary-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 11px;
}

.osint-v2-kpi {
  min-height: 105px;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: flex-start;

  gap: 12px;
  padding: 15px;

  color: inherit;
  text-decoration: none;

  border:
    1px solid
    rgba(148, 163, 184, 0.15);

  border-radius: 13px;

  background:
    rgba(15, 23, 42, 0.74);

  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.osint-v2-kpi:hover {
  transform: translateY(-2px);

  border-color:
    rgba(103, 232, 249, 0.34);

  background:
    rgba(16, 37, 53, 0.94);
}

.osint-v2-kpi::after {
  content: "";

  position: absolute;
  right: -32px;
  bottom: -46px;

  width: 105px;
  height: 105px;

  border-radius: 999px;

  background:
    rgba(6, 182, 212, 0.045);
}

.osint-v2-kpi-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  color: #93c5fd;
  background:
    rgba(59, 130, 246, 0.13);
}

.osint-v2-kpi.tone-violet
.osint-v2-kpi-icon {
  color: #c4b5fd;
  background:
    rgba(139, 92, 246, 0.13);
}

.osint-v2-kpi.tone-cyan
.osint-v2-kpi-icon {
  color: #67e8f9;
  background:
    rgba(6, 182, 212, 0.13);
}

.osint-v2-kpi.tone-green
.osint-v2-kpi-icon {
  color: #86efac;
  background:
    rgba(34, 197, 94, 0.12);
}


/* SVG */

.osint-v2-kpi-icon svg,
.osint-v2-mini-kpi svg,
.osint-v2-actions svg,
.osint-v2-chat-icon svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* KPI TEXTES */

.osint-v2-kpi span {
  display: block;

  color:
    rgba(203, 213, 225, 0.75);

  font-size: 0.72rem;
  font-weight: 800;
}

.osint-v2-kpi strong {
  display: block;

  margin: 3px 0;

  color: #f8fafc;

  font-size: 1.9rem;
  line-height: 1.05;
}

.osint-v2-kpi small {
  color:
    rgba(148, 163, 184, 0.70);

  font-size: 0.63rem;
}


/* KPI SECONDAIRES */

.osint-v2-secondary-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 10px;
}

.osint-v2-mini-kpi {
  min-height: 65px;

  display: grid;

  grid-template-columns:
    31px minmax(0, 1fr) auto;

  align-items: center;

  gap: 8px;
  padding: 10px 11px;

  color: inherit;
  text-decoration: none;

  border:
    1px solid
    rgba(148, 163, 184, 0.12);

  border-radius: 11px;

  background:
    rgba(15, 23, 42, 0.58);
}

.osint-v2-mini-kpi > div {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  color: #67e8f9;
}

.osint-v2-mini-kpi small {
  display: block;

  color:
    rgba(148, 163, 184, 0.72);

  font-size: 0.59rem;
}

.osint-v2-mini-kpi strong {
  display: block;
  margin-top: 1px;
  font-size: 1.08rem;
}

.osint-v2-mini-kpi em {
  color:
    rgba(148, 163, 184, 0.58);

  font-size: 0.55rem;
  font-style: normal;
  text-align: right;
}


/* ACTIONS */

.osint-v2-actions-panel,
.osint-v2-panel,
.osint-v2-policy {
  border:
    1px solid
    rgba(148, 163, 184, 0.14);

  border-radius: 13px;

  background:
    rgba(15, 23, 42, 0.70);
}

.osint-v2-actions-panel {
  padding: 14px 15px 15px;
}

.osint-v2-actions-panel > header {
  padding-bottom: 10px;
}

.osint-v2-actions-panel header span,
.osint-v2-panel-head > div > span,
.osint-v2-policy > div > span {
  display: block;

  color: #67e8f9;

  font-size: 0.59rem;
  font-weight: 900;

  letter-spacing: 0.11em;
}

.osint-v2-actions-panel h2,
.osint-v2-panel h2 {
  margin: 3px 0 0;
  font-size: 0.86rem;
}

.osint-v2-actions {
  display: grid;

  grid-template-columns:
    repeat(8, minmax(0, 1fr));

  gap: 8px;
}

.osint-v2-actions > a {
  min-height: 76px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 2px;
  padding: 9px;

  color: inherit;
  text-decoration: none;

  border:
    1px solid
    rgba(6, 182, 212, 0.14);

  border-radius: 10px;

  background:
    rgba(2, 6, 23, 0.28);

  transition:
    transform 120ms ease,
    background 120ms ease,
    border-color 120ms ease;
}

.osint-v2-actions > a:hover {
  transform:
    translateY(-1px);

  background:
    rgba(30, 41, 59, 0.72);

  border-color:
    rgba(103, 232, 249, 0.30);
}

.osint-v2-actions > a > span {
  width: 23px;
  height: 23px;

  display: grid;
  place-items: center;

  margin-bottom: 2px;

  color: #67e8f9;
}

.osint-v2-actions strong {
  font-size: 0.66rem;
}

.osint-v2-actions small {
  color:
    rgba(148, 163, 184, 0.67);

  font-size: 0.55rem;
}


/* PANNEAUX */

.osint-v2-content-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 11px;
}

.osint-v2-panel {
  min-height: 245px;
  overflow: hidden;
}

.osint-v2-panel-head {
  min-height: 51px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 8px;
  padding: 13px 14px 9px;
}

.osint-v2-panel-head > a {
  color: #67e8f9;

  font-size: 0.61rem;
  font-weight: 800;

  text-decoration: none;
}

.osint-v2-panel-list {
  padding: 0 13px 8px;
}

.osint-v2-row {
  min-height: 52px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr) auto;

  align-items: center;

  gap: 8px;
  padding: 8px 5px;

  color: inherit;
  text-decoration: none;

  border-top:
    1px solid
    rgba(148, 163, 184, 0.09);

  border-radius: 7px;
}

.osint-v2-row:first-child {
  border-top: 0;
}

.osint-v2-row:hover {
  background:
    rgba(6, 182, 212, 0.055);
}

.osint-v2-row-main {
  min-width: 0;
}

.osint-v2-row-main strong {
  display: block;

  overflow: hidden;

  color: #e5edf7;

  font-size: 0.69rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.osint-v2-row-main span {
  display: block;

  margin-top: 3px;

  overflow: hidden;

  color:
    rgba(148, 163, 184, 0.70);

  font-size: 0.59rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.osint-v2-badge {
  max-width: 95px;

  overflow: hidden;

  padding: 4px 7px;

  color: #cffafe;

  font-size: 0.55rem;
  font-weight: 800;

  text-overflow: ellipsis;
  white-space: nowrap;

  border-radius: 999px;

  background:
    rgba(6, 182, 212, 0.11);
}

.osint-v2-badge.is-transmitted {
  color: #bfdbfe;

  background:
    rgba(59, 130, 246, 0.11);
}


/* COMMUNICATIONS */

.osint-v2-chat-row {
  grid-template-columns:
    30px minmax(0, 1fr) auto;
}

.osint-v2-chat-icon {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  color: #c4b5fd;

  border-radius: 8px;

  background:
    rgba(139, 92, 246, 0.12);
}

.osint-v2-chat-icon svg {
  width: 16px;
  height: 16px;
}

.osint-v2-time {
  color:
    rgba(148, 163, 184, 0.60);

  font-size: 0.56rem;

  font-variant-numeric:
    tabular-nums;
}

.osint-v2-empty,
.osint-v2-loading {
  padding: 15px 4px;

  color:
    rgba(148, 163, 184, 0.68);

  font-size: 0.63rem;
}


/* RÈGLE DE PUBLICATION */

.osint-v2-policy {
  padding: 12px 15px;
}

.osint-v2-policy strong {
  display: block;

  margin-top: 3px;

  color: #e5edf7;

  font-size: 0.75rem;
}

.osint-v2-policy p {
  margin:
    4px 0 0;

  max-width: 900px;

  color:
    rgba(148, 163, 184, 0.72);

  font-size: 0.64rem;
  line-height: 1.5;
}


/* FOOTER */

.osint-v2-footer {
  min-height: 31px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding:
    7px 4px 2px;

  color:
    rgba(148, 163, 184, 0.55);

  font-size: 0.61rem;

  border-top:
    1px solid
    rgba(148, 163, 184, 0.10);
}

.osint-v2-footer
> span:first-child {
  color:
    rgba(134, 239, 172, 0.78);
}


/* RESPONSIVE */

@media (max-width: 1450px) {

  .osint-v2-actions {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .osint-v2-content-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 1150px) {

  .osint-v2-primary-grid,
  .osint-v2-secondary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 760px) {

  .osint-v2-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .osint-v2-hero-side {
    justify-items: start;
  }

  .osint-v2-primary-grid,
  .osint-v2-secondary-grid,
  .osint-v2-actions,
  .osint-v2-content-grid {
    grid-template-columns:
      1fr;
  }

  .osint-v2-panel {
    min-height: 0;
  }

  .osint-v2-footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

/* === OSINT DASHBOARD V2 END === */

/* === RISK DASHBOARD V2 START === */


/* PLEINE LARGEUR */

#moduleContent > .risk-dashboard-v2,
.risk-dashboard-v2 {
  grid-column: 1 / -1 !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  justify-self: stretch !important;

  display: flex;
  flex-direction: column;

  gap: 14px;
}

.risk-dashboard-v2 * {
  box-sizing: border-box;
}


/* HERO */

.risk-v2-hero {
  min-height: 94px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
  padding: 17px 20px;

  border:
    1px solid
    rgba(251, 146, 60, 0.18);

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.97),
      rgba(55, 31, 27, 0.78)
    );
}

.risk-v2-hero h1 {
  margin: 4px 0 5px;
  font-size: 1.45rem;
}

.risk-v2-hero .muted {
  margin: 0;
  font-size: 0.78rem;
}

.risk-v2-eyebrow {
  margin: 0;

  color: #fdba74;

  font-size: 0.62rem;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.risk-v2-hero-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.risk-v2-date {
  color:
    rgba(226, 232, 240, 0.92);

  font-size: 0.72rem;
  font-weight: 800;

  text-transform: capitalize;
}

.risk-v2-sync {
  display: flex;
  align-items: center;

  gap: 6px;

  color:
    rgba(148, 163, 184, 0.78);

  font-size: 0.68rem;
}

.risk-v2-sync > span {
  width: 7px;
  height: 7px;

  border-radius: 999px;

  background: #22c55e;

  box-shadow:
    0 0 0 4px
    rgba(34, 197, 94, 0.10);
}


/* KPI PRINCIPAUX */

.risk-v2-primary-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 11px;
}

.risk-v2-kpi {
  min-height: 105px;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: flex-start;

  gap: 12px;
  padding: 15px;

  color: inherit;
  text-decoration: none;

  border:
    1px solid
    rgba(148, 163, 184, 0.15);

  border-radius: 13px;

  background:
    rgba(15, 23, 42, 0.74);

  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.risk-v2-kpi:hover {
  transform: translateY(-2px);

  border-color:
    rgba(251, 146, 60, 0.34);

  background:
    rgba(45, 30, 34, 0.92);
}

.risk-v2-kpi::after {
  content: "";

  position: absolute;
  right: -32px;
  bottom: -46px;

  width: 105px;
  height: 105px;

  border-radius: 999px;

  background:
    rgba(249, 115, 22, 0.045);
}

.risk-v2-kpi-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  color: #93c5fd;

  background:
    rgba(59, 130, 246, 0.13);
}

.risk-v2-kpi.tone-violet
.risk-v2-kpi-icon {
  color: #c4b5fd;

  background:
    rgba(139, 92, 246, 0.13);
}

.risk-v2-kpi.tone-cyan
.risk-v2-kpi-icon {
  color: #67e8f9;

  background:
    rgba(6, 182, 212, 0.13);
}

.risk-v2-kpi.tone-green
.risk-v2-kpi-icon {
  color: #86efac;

  background:
    rgba(34, 197, 94, 0.12);
}


/* SVG */

.risk-v2-kpi-icon svg,
.risk-v2-mini-kpi svg,
.risk-v2-actions svg,
.risk-v2-axes svg,
.risk-v2-chat-icon svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* KPI TEXT */

.risk-v2-kpi span {
  display: block;

  color:
    rgba(203, 213, 225, 0.75);

  font-size: 0.72rem;
  font-weight: 800;
}

.risk-v2-kpi strong {
  display: block;

  margin: 3px 0;

  color: #f8fafc;

  font-size: 1.9rem;
  line-height: 1.05;
}

.risk-v2-kpi small {
  color:
    rgba(148, 163, 184, 0.70);

  font-size: 0.63rem;
}


/* KPI SECONDAIRES */

.risk-v2-secondary-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 10px;
}

.risk-v2-mini-kpi {
  min-height: 65px;

  display: grid;

  grid-template-columns:
    31px minmax(0, 1fr) auto;

  align-items: center;

  gap: 8px;
  padding: 10px 11px;

  color: inherit;
  text-decoration: none;

  border:
    1px solid
    rgba(148, 163, 184, 0.12);

  border-radius: 11px;

  background:
    rgba(15, 23, 42, 0.58);
}

.risk-v2-mini-kpi > div {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  color: #fdba74;
}

.risk-v2-mini-kpi small {
  display: block;

  color:
    rgba(148, 163, 184, 0.72);

  font-size: 0.59rem;
}

.risk-v2-mini-kpi strong {
  display: block;

  margin-top: 1px;

  font-size: 1.08rem;
}

.risk-v2-mini-kpi em {
  color:
    rgba(148, 163, 184, 0.58);

  font-size: 0.55rem;
  font-style: normal;

  text-align: right;
}


/* COMMUN */

.risk-v2-actions-panel,
.risk-v2-axes-panel,
.risk-v2-panel,
.risk-v2-policy {
  border:
    1px solid
    rgba(148, 163, 184, 0.14);

  border-radius: 13px;

  background:
    rgba(15, 23, 42, 0.70);
}


/* AXES RISK */

.risk-v2-axes-panel {
  padding: 14px 15px 15px;
}

.risk-v2-axes-panel > header,
.risk-v2-actions-panel > header {
  padding-bottom: 10px;
}

.risk-v2-axes-panel header span,
.risk-v2-actions-panel header span,
.risk-v2-panel-head > div > span,
.risk-v2-policy > div > span {
  display: block;

  color: #fdba74;

  font-size: 0.59rem;
  font-weight: 900;

  letter-spacing: 0.11em;
}

.risk-v2-axes-panel h2,
.risk-v2-actions-panel h2,
.risk-v2-panel h2 {
  margin: 3px 0 0;

  font-size: 0.86rem;
}

.risk-v2-axes {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 9px;
}

.risk-v2-axes > a {
  min-height: 84px;

  display: grid;

  grid-template-columns:
    34px minmax(0, 1fr);

  grid-template-rows:
    auto auto;

  align-items: center;

  column-gap: 10px;

  padding: 11px;

  color: inherit;
  text-decoration: none;

  border:
    1px solid
    rgba(249, 115, 22, 0.14);

  border-radius: 10px;

  background:
    rgba(2, 6, 23, 0.28);
}

.risk-v2-axes > a > span {
  grid-row: 1 / 3;

  width: 32px;
  height: 32px;

  display: grid;
  place-items: center;

  color: #fdba74;

  border-radius: 9px;

  background:
    rgba(249, 115, 22, 0.10);
}

.risk-v2-axes strong {
  font-size: 0.69rem;
}

.risk-v2-axes small {
  color:
    rgba(148, 163, 184, 0.67);

  font-size: 0.57rem;
}


/* ACTIONS */

.risk-v2-actions-panel {
  padding: 14px 15px 15px;
}

.risk-v2-actions {
  display: grid;

  grid-template-columns:
    repeat(8, minmax(0, 1fr));

  gap: 8px;
}

.risk-v2-actions > a {
  min-height: 76px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 2px;
  padding: 9px;

  color: inherit;
  text-decoration: none;

  border:
    1px solid
    rgba(249, 115, 22, 0.12);

  border-radius: 10px;

  background:
    rgba(2, 6, 23, 0.28);
}

.risk-v2-actions > a:hover,
.risk-v2-axes > a:hover {
  background:
    rgba(45, 35, 38, 0.74);

  border-color:
    rgba(251, 146, 60, 0.30);
}

.risk-v2-actions > a > span {
  width: 23px;
  height: 23px;

  display: grid;
  place-items: center;

  margin-bottom: 2px;

  color: #fdba74;
}

.risk-v2-actions strong {
  font-size: 0.66rem;
}

.risk-v2-actions small {
  color:
    rgba(148, 163, 184, 0.67);

  font-size: 0.55rem;
}


/* PANNEAUX */

.risk-v2-content-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 11px;
}

.risk-v2-panel {
  min-height: 245px;

  overflow: hidden;
}

.risk-v2-panel-head {
  min-height: 51px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 8px;
  padding: 13px 14px 9px;
}

.risk-v2-panel-head > a {
  color: #fdba74;

  font-size: 0.61rem;
  font-weight: 800;

  text-decoration: none;
}

.risk-v2-panel-list {
  padding: 0 13px 8px;
}

.risk-v2-row {
  min-height: 52px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr) auto;

  align-items: center;

  gap: 8px;
  padding: 8px 5px;

  color: inherit;
  text-decoration: none;

  border-top:
    1px solid
    rgba(148, 163, 184, 0.09);

  border-radius: 7px;
}

.risk-v2-row:first-child {
  border-top: 0;
}

.risk-v2-row:hover {
  background:
    rgba(249, 115, 22, 0.05);
}

.risk-v2-row-main {
  min-width: 0;
}

.risk-v2-row-main strong {
  display: block;

  overflow: hidden;

  color: #e5edf7;

  font-size: 0.69rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-v2-row-main span {
  display: block;

  margin-top: 3px;

  overflow: hidden;

  color:
    rgba(148, 163, 184, 0.70);

  font-size: 0.59rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.risk-v2-badge {
  max-width: 96px;

  overflow: hidden;

  padding: 4px 7px;

  color: #fed7aa;

  font-size: 0.55rem;
  font-weight: 800;

  text-overflow: ellipsis;
  white-space: nowrap;

  border-radius: 999px;

  background:
    rgba(249, 115, 22, 0.11);
}

.risk-v2-badge.is-transmitted {
  color: #bfdbfe;

  background:
    rgba(59, 130, 246, 0.11);
}


/* COMMUNICATIONS */

.risk-v2-chat-row {
  grid-template-columns:
    30px minmax(0, 1fr) auto;
}

.risk-v2-chat-icon {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  color: #c4b5fd;

  border-radius: 8px;

  background:
    rgba(139, 92, 246, 0.12);
}

.risk-v2-chat-icon svg {
  width: 16px;
  height: 16px;
}

.risk-v2-time {
  color:
    rgba(148, 163, 184, 0.60);

  font-size: 0.56rem;

  font-variant-numeric:
    tabular-nums;
}

.risk-v2-empty,
.risk-v2-loading {
  padding: 15px 4px;

  color:
    rgba(148, 163, 184, 0.68);

  font-size: 0.63rem;
}


/* POLICY */

.risk-v2-policy {
  padding: 12px 15px;
}

.risk-v2-policy strong {
  display: block;

  margin-top: 3px;

  color: #e5edf7;

  font-size: 0.75rem;
}

.risk-v2-policy p {
  max-width: 950px;

  margin: 4px 0 0;

  color:
    rgba(148, 163, 184, 0.72);

  font-size: 0.64rem;
  line-height: 1.5;
}


/* FOOTER */

.risk-v2-footer {
  min-height: 31px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 7px 4px 2px;

  color:
    rgba(148, 163, 184, 0.55);

  font-size: 0.61rem;

  border-top:
    1px solid
    rgba(148, 163, 184, 0.10);
}

.risk-v2-footer
> span:first-child {
  color:
    rgba(134, 239, 172, 0.78);
}


/* RESPONSIVE */

@media (max-width: 1450px) {

  .risk-v2-actions {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .risk-v2-content-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 1150px) {

  .risk-v2-primary-grid,
  .risk-v2-secondary-grid,
  .risk-v2-axes {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 760px) {

  .risk-v2-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .risk-v2-hero-side {
    justify-items: start;
  }

  .risk-v2-primary-grid,
  .risk-v2-secondary-grid,
  .risk-v2-axes,
  .risk-v2-actions,
  .risk-v2-content-grid {
    grid-template-columns:
      1fr;
  }

  .risk-v2-panel {
    min-height: 0;
  }

  .risk-v2-footer {
    align-items: flex-start;
    flex-direction: column;
  }

}

/* === RISK DASHBOARD V2 END === */

/* === TECHNICAL DASHBOARD V2 START === */

#moduleContent > .technical-dashboard-v2,
.technical-dashboard-v2 {
  grid-column: 1 / -1 !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  justify-self: stretch !important;

  display: flex;
  flex-direction: column;

  gap: 14px;
}

.technical-dashboard-v2 * {
  box-sizing: border-box;
}


/* HERO */

.technical-v2-hero {
  min-height: 94px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;
  padding: 17px 20px;

  border:
    1px solid
    rgba(96, 165, 250, 0.18);

  border-radius: 14px;

  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.97),
      rgba(18, 40, 67, 0.84)
    );
}

.technical-v2-hero h1 {
  margin: 4px 0 5px;
  font-size: 1.45rem;
}

.technical-v2-hero .muted {
  margin: 0;
  font-size: 0.78rem;
}

.technical-v2-eyebrow {
  margin: 0;

  color: #60a5fa;

  font-size: 0.62rem;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.technical-v2-hero-side {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.technical-v2-date {
  color:
    rgba(226, 232, 240, 0.92);

  font-size: 0.72rem;
  font-weight: 800;

  text-transform: capitalize;
}

.technical-v2-sync {
  display: flex;
  align-items: center;

  gap: 6px;

  color:
    rgba(148, 163, 184, 0.78);

  font-size: 0.68rem;
}

.technical-v2-sync > span {
  width: 7px;
  height: 7px;

  border-radius: 999px;

  background: #22c55e;

  box-shadow:
    0 0 0 4px
    rgba(34, 197, 94, 0.10);
}


/* KPI PRINCIPAUX */

.technical-v2-primary-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 11px;
}

.technical-v2-kpi {
  min-height: 105px;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: flex-start;

  gap: 12px;
  padding: 15px;

  color: inherit;
  text-decoration: none;

  border:
    1px solid
    rgba(148, 163, 184, 0.15);

  border-radius: 13px;

  background:
    rgba(15, 23, 42, 0.74);
}

.technical-v2-kpi:hover {
  transform: translateY(-2px);

  border-color:
    rgba(96, 165, 250, 0.34);

  background:
    rgba(20, 35, 58, 0.92);
}

.technical-v2-kpi::after {
  content: "";

  position: absolute;
  right: -32px;
  bottom: -46px;

  width: 105px;
  height: 105px;

  border-radius: 999px;

  background:
    rgba(59, 130, 246, 0.045);
}

.technical-v2-kpi-icon {
  width: 39px;
  height: 39px;
  flex: 0 0 39px;

  display: grid;
  place-items: center;

  border-radius: 11px;

  color: #93c5fd;

  background:
    rgba(59, 130, 246, 0.13);
}

.technical-v2-kpi.tone-ok
.technical-v2-kpi-icon {
  color: #86efac;

  background:
    rgba(34, 197, 94, 0.12);
}

.technical-v2-kpi.tone-warn
.technical-v2-kpi-icon {
  color: #fbbf24;

  background:
    rgba(245, 158, 11, 0.13);
}

.technical-v2-kpi.tone-bad
.technical-v2-kpi-icon {
  color: #fca5a5;

  background:
    rgba(239, 68, 68, 0.13);
}

.technical-v2-kpi-icon svg,
.technical-v2-mini-kpi svg,
.technical-v2-actions svg,
.technical-v2-chat-icon svg {
  width: 20px;
  height: 20px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.technical-v2-kpi span {
  display: block;

  color:
    rgba(203, 213, 225, 0.75);

  font-size: 0.72rem;
  font-weight: 800;
}

.technical-v2-kpi strong {
  display: block;

  margin: 3px 0;

  color: #f8fafc;

  font-size: 1.65rem;
  line-height: 1.05;
}

.technical-v2-kpi small {
  color:
    rgba(148, 163, 184, 0.70);

  font-size: 0.63rem;
}


/* KPI SECONDAIRES */

.technical-v2-secondary-grid {
  display: grid;

  grid-template-columns:
    repeat(6, minmax(0, 1fr));

  gap: 10px;
}

.technical-v2-mini-kpi {
  min-height: 65px;

  display: grid;

  grid-template-columns:
    31px minmax(0, 1fr);

  align-items: center;

  gap: 8px;
  padding: 10px 11px;

  color: inherit;
  text-decoration: none;

  border:
    1px solid
    rgba(148, 163, 184, 0.12);

  border-radius: 11px;

  background:
    rgba(15, 23, 42, 0.58);
}

.technical-v2-mini-kpi > div {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  color: #60a5fa;
}

.technical-v2-mini-kpi small {
  display: block;

  color:
    rgba(148, 163, 184, 0.72);

  font-size: 0.58rem;
}

.technical-v2-mini-kpi strong {
  display: block;

  margin-top: 1px;

  overflow: hidden;

  font-size: 0.92rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-v2-mini-kpi em {
  display: none;
}


/* ACTIONS + PANELS */

.technical-v2-actions-panel,
.technical-v2-panel {
  border:
    1px solid
    rgba(148, 163, 184, 0.14);

  border-radius: 13px;

  background:
    rgba(15, 23, 42, 0.70);
}

.technical-v2-actions-panel {
  padding: 14px 15px 15px;
}

.technical-v2-actions-panel > header {
  padding-bottom: 10px;
}

.technical-v2-actions-panel header span,
.technical-v2-panel-head > div > span {
  display: block;

  color: #60a5fa;

  font-size: 0.59rem;
  font-weight: 900;

  letter-spacing: 0.11em;
}

.technical-v2-actions-panel h2,
.technical-v2-panel h2 {
  margin: 3px 0 0;

  font-size: 0.86rem;
}

.technical-v2-actions {
  display: grid;

  grid-template-columns:
    repeat(8, minmax(0, 1fr));

  gap: 8px;
}

.technical-v2-actions > a {
  min-height: 76px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  gap: 2px;
  padding: 9px;

  color: inherit;
  text-decoration: none;

  border:
    1px solid
    rgba(59, 130, 246, 0.13);

  border-radius: 10px;

  background:
    rgba(2, 6, 23, 0.28);
}

.technical-v2-actions > a:hover {
  background:
    rgba(30, 41, 59, 0.72);

  border-color:
    rgba(96, 165, 250, 0.30);
}

.technical-v2-actions > a > span {
  width: 23px;
  height: 23px;

  display: grid;
  place-items: center;

  margin-bottom: 2px;

  color: #60a5fa;
}

.technical-v2-actions strong {
  font-size: 0.66rem;
}

.technical-v2-actions small {
  color:
    rgba(148, 163, 184, 0.67);

  font-size: 0.55rem;
}


/* 4 PANNEAUX */

.technical-v2-content-grid {
  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 11px;
}

.technical-v2-panel {
  min-height: 245px;

  overflow: hidden;
}

.technical-v2-panel-head {
  min-height: 51px;

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 8px;
  padding: 13px 14px 9px;
}

.technical-v2-panel-head > a {
  color: #60a5fa;

  font-size: 0.61rem;
  font-weight: 800;

  text-decoration: none;
}

.technical-v2-panel-list,
.technical-v2-backup-list {
  padding: 0 13px 8px;
}

.technical-v2-row {
  min-height: 52px;

  display: grid;

  grid-template-columns:
    minmax(0, 1fr) auto;

  align-items: center;

  gap: 8px;
  padding: 8px 5px;

  color: inherit;
  text-decoration: none;

  border-top:
    1px solid
    rgba(148, 163, 184, 0.09);

  border-radius: 7px;
}

.technical-v2-row:first-child {
  border-top: 0;
}

.technical-v2-row:hover {
  background:
    rgba(59, 130, 246, 0.055);
}

.technical-v2-row-main {
  min-width: 0;
}

.technical-v2-row-main strong {
  display: block;

  overflow: hidden;

  color: #e5edf7;

  font-size: 0.69rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-v2-row-main span {
  display: block;

  margin-top: 3px;

  overflow: hidden;

  color:
    rgba(148, 163, 184, 0.70);

  font-size: 0.59rem;

  text-overflow: ellipsis;
  white-space: nowrap;
}

.technical-v2-badge {
  max-width: 88px;

  padding: 4px 7px;

  font-size: 0.54rem;
  font-weight: 800;

  border-radius: 999px;
}

.technical-v2-badge.tech-ok {
  color: #86efac;

  background:
    rgba(34, 197, 94, 0.11);
}

.technical-v2-badge.tech-warn {
  color: #fde68a;

  background:
    rgba(245, 158, 11, 0.11);
}

.technical-v2-badge.tech-bad {
  color: #fca5a5;

  background:
    rgba(239, 68, 68, 0.11);
}

.technical-v2-badge.tech-neutral {
  color: #cbd5e1;

  background:
    rgba(148, 163, 184, 0.10);
}


/* BACKUPS */

.technical-v2-backup-row {
  display: flex;
  justify-content: space-between;

  gap: 10px;
  padding: 7px 4px;

  color:
    rgba(148, 163, 184, 0.72);

  font-size: 0.59rem;

  border-top:
    1px solid
    rgba(148, 163, 184, 0.08);
}

.technical-v2-backup-row:first-child {
  border-top: 0;
}

.technical-v2-backup-row strong {
  max-width: 58%;

  overflow: hidden;

  color: #e5edf7;

  text-align: right;

  text-overflow: ellipsis;
  white-space: nowrap;
}


/* COMMUNICATIONS */

.technical-v2-chat-row {
  grid-template-columns:
    30px minmax(0, 1fr) auto;
}

.technical-v2-chat-icon {
  width: 29px;
  height: 29px;

  display: grid;
  place-items: center;

  color: #c4b5fd;

  border-radius: 8px;

  background:
    rgba(139, 92, 246, 0.12);
}

.technical-v2-chat-icon svg {
  width: 16px;
  height: 16px;
}

.technical-v2-time {
  color:
    rgba(148, 163, 184, 0.60);

  font-size: 0.56rem;

  font-variant-numeric:
    tabular-nums;
}

.technical-v2-empty,
.technical-v2-loading {
  padding: 15px 4px;

  color:
    rgba(148, 163, 184, 0.68);

  font-size: 0.63rem;
}


/* ERROR */

.technical-v2-error {
  padding: 20px;

  border:
    1px solid
    rgba(239, 68, 68, 0.20);

  border-radius: 13px;

  background:
    rgba(15, 23, 42, 0.75);
}


/* FOOTER */

.technical-v2-footer {
  min-height: 31px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 7px 4px 2px;

  color:
    rgba(148, 163, 184, 0.55);

  font-size: 0.61rem;

  border-top:
    1px solid
    rgba(148, 163, 184, 0.10);
}

.technical-v2-footer
> span:first-child {
  color:
    rgba(134, 239, 172, 0.78);
}


/* RESPONSIVE */

@media (max-width: 1450px) {

  .technical-v2-secondary-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .technical-v2-actions {
    grid-template-columns:
      repeat(4, minmax(0, 1fr));
  }

  .technical-v2-content-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 1100px) {

  .technical-v2-primary-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 760px) {

  .technical-v2-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .technical-v2-hero-side {
    justify-items: start;
  }

  .technical-v2-primary-grid,
  .technical-v2-secondary-grid,
  .technical-v2-actions,
  .technical-v2-content-grid {
    grid-template-columns:
      1fr;
  }

  .technical-v2-panel {
    min-height: 0;
  }

  .technical-v2-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* === TECHNICAL DASHBOARD V2 END === */



/* ==========================================================
   Communications V1.4-D2 — chronologie dossier
   ========================================================== */

.sonia-case-communications-history {
  margin-top: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.28);
}

.sonia-case-communications-history > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 13px 15px;

  cursor: pointer;
  user-select: none;

  font-weight: 800;
}

.sonia-case-communications-history > summary:hover {
  background: rgba(59, 130, 246, 0.06);
}

.sonia-case-comms-count {
  font-size: 0.76rem;
  font-weight: 700;
  opacity: 0.72;
}

.sonia-case-comms-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 12px 15px;

  border-top:
    1px solid rgba(148, 163, 184, 0.12);

  border-bottom:
    1px solid rgba(148, 163, 184, 0.12);
}

.sonia-case-comms-toolbar p {
  margin: 0;
}

.sonia-case-comms-history-body {
  padding: 15px;
}

.sonia-case-comms-timeline {
  position: relative;

  display: grid;
  gap: 14px;

  padding-left: 16px;
}

.sonia-case-comms-timeline::before {
  content: "";

  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 5px;

  width: 1px;

  background:
    rgba(96, 165, 250, 0.30);
}

.sonia-case-comms-entry {
  position: relative;
}

.sonia-case-comms-marker {
  position: absolute;

  left: -16px;
  top: 17px;

  width: 9px;
  height: 9px;

  border-radius: 999px;

  background: #60a5fa;

  box-shadow:
    0 0 0 4px
    rgba(59, 130, 246, 0.13);
}

.sonia-case-comms-card {
  padding: 13px 14px;

  border:
    1px solid rgba(148, 163, 184, 0.16);

  border-radius: 10px;

  background:
    rgba(15, 23, 42, 0.34);
}

.sonia-case-comms-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;

  margin-bottom: 8px;
}

.sonia-case-comms-head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}

.sonia-case-comms-author {
  font-size: 0.94rem;
}

.sonia-case-comms-date {
  font-size: 0.76rem;
  opacity: 0.68;
}

.sonia-case-comms-retained {
  display: inline-flex;
  align-items: center;

  padding: 3px 8px;

  border:
    1px solid rgba(74, 222, 128, 0.25);

  border-radius: 999px;

  color: #86efac;

  background:
    rgba(34, 197, 94, 0.09);

  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.sonia-case-comms-context {
  margin-bottom: 10px;

  font-size: 0.75rem;
  opacity: 0.72;
}

.sonia-case-comms-recipients {
  margin-bottom: 10px;
}

.sonia-case-comms-label {
  display: block;

  margin-bottom: 6px;

  font-size: 0.7rem;
  font-weight: 800;

  text-transform: uppercase;
  letter-spacing: 0.04em;

  opacity: 0.62;
}

.sonia-case-comms-recipient-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sonia-case-comms-recipient {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 4px 8px;

  border:
    1px solid rgba(96, 165, 250, 0.18);

  border-radius: 999px;

  background:
    rgba(37, 99, 235, 0.09);

  font-size: 0.72rem;
}

.sonia-case-comms-recipient small {
  opacity: 0.64;
}

.sonia-case-comms-no-recipient {
  font-size: 0.76rem;
  opacity: 0.66;
}

.sonia-case-comms-content {
  padding-top: 10px;

  border-top:
    1px solid rgba(148, 163, 184, 0.11);

  white-space: pre-wrap;
  overflow-wrap: anywhere;

  font-size: 0.88rem;
  line-height: 1.5;
}

.sonia-case-comms-edited {
  margin-top: 8px;

  font-size: 0.7rem;
  font-style: italic;
  opacity: 0.60;
}

.sonia-case-comms-empty {
  padding: 10px 2px;
}

.sonia-case-comms-empty p {
  margin-bottom: 0;
}

.sonia-case-comms-error {
  padding: 10px 12px;

  border:
    1px solid rgba(248, 113, 113, 0.28);

  border-radius: 8px;

  color: #fecaca;

  background:
    rgba(127, 29, 29, 0.12);
}

@media (max-width: 720px) {
  .sonia-case-comms-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sonia-case-comms-toolbar .btn {
    width: 100%;
  }

  .sonia-case-comms-head {
    flex-direction: column;
  }
}


/* OSIRIS COURRIELS — EMAIL-F2B */

.osiris-email-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  gap: 14px;
}

.osiris-email-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 4px 2px 12px;
}

.osiris-email-toolbar h1 {
  margin: 0;
}

.osiris-email-account {
  margin-top: 4px;
  opacity: 0.72;
  font-size: 0.9rem;
}

.osiris-email-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.osiris-email-status {
  font-size: 0.85rem;
  opacity: 0.7;
}

.osiris-email-refresh {
  cursor: pointer;
  border: 1px solid var(--border, #d0d7de);
  border-radius: 8px;
  padding: 8px 12px;
  background: var(--surface, #fff);
  color: inherit;
}

.osiris-email-layout {
  display: grid;
  grid-template-columns:
    minmax(180px, 220px)
    minmax(300px, 430px)
    minmax(380px, 1fr);
  min-height: 650px;
  border: 1px solid var(--border, #d0d7de);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface, #fff);
}

.osiris-email-folders {
  padding: 12px;
  border-right: 1px solid var(--border, #d0d7de);
}

.osiris-email-folder {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.osiris-email-folder:hover,
.osiris-email-folder.is-active {
  background: rgba(127, 127, 127, 0.12);
}

.osiris-email-total {
  font-size: 0.8rem;
  opacity: 0.65;
}

.osiris-email-unread-badge {
  display: inline-flex;
  min-width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 6px;
  margin-right: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  background: currentColor;
  color: var(--surface, #fff);
}

.osiris-email-list {
  overflow-y: auto;
  border-right: 1px solid var(--border, #d0d7de);
}

.osiris-email-item {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--border, #d0d7de);
  padding: 13px 14px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.osiris-email-item:hover,
.osiris-email-item.is-selected {
  background: rgba(127, 127, 127, 0.09);
}

.osiris-email-item.is-unread {
  font-weight: 600;
}

.osiris-email-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.osiris-email-counterpart {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.osiris-email-date {
  flex: none;
  opacity: 0.68;
  font-size: 0.78rem;
}

.osiris-email-subject {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.osiris-email-preview {
  margin-top: 4px;
  opacity: 0.68;
  font-size: 0.84rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.osiris-email-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: currentColor;
}

.osiris-email-paperclip {
  margin-left: 5px;
}

.osiris-email-detail {
  overflow-y: auto;
  padding: 22px;
}

.osiris-email-detail-empty,
.osiris-email-empty {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0.65;
}

.osiris-email-detail-icon {
  margin-right: 8px;
  font-size: 1.35rem;
}

.osiris-email-message-header h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.osiris-email-message-meta {
  display: grid;
  gap: 5px;
  font-size: 0.9rem;
}

.osiris-email-security-note {
  margin: 18px 0 14px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(127, 127, 127, 0.10);
  font-size: 0.82rem;
}

.osiris-email-body-text {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.osiris-email-html-notice {
  margin-top: 22px;
  border-top: 1px solid var(--border, #d0d7de);
  padding-top: 12px;
  opacity: 0.65;
  font-size: 0.8rem;
}

@media (max-width: 1100px) {

  .osiris-email-layout {
    grid-template-columns:
      180px
      minmax(280px, 1fr);
  }

  .osiris-email-detail {
    grid-column: 1 / -1;
    min-height: 350px;
    border-top: 1px solid var(--border, #d0d7de);
  }
}

@media (max-width: 760px) {

  .osiris-email-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .osiris-email-layout {
    display: block;
  }

  .osiris-email-folders {
    display: flex;
    gap: 6px;
    border-right: 0;
    border-bottom: 1px solid var(--border, #d0d7de);
  }

  .osiris-email-list {
    max-height: 440px;
    border-right: 0;
  }

  .osiris-email-detail {
    min-height: 300px;
  }
}



/* =========================================================
   OSIRIS COURRIELS — EMAIL-F2E DARK THEME
   ========================================================= */

.osiris-email-shell {
  color: var(--text);
}

.osiris-email-refresh {
  background: var(--panel-soft);
  color: var(--text);
  border-color: var(--border);
}

.osiris-email-refresh:hover {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.45);
}

.osiris-email-layout {
  background: var(--panel);
  color: var(--text);
  border-color: var(--border);
}

.osiris-email-folders {
  background: var(--panel-soft);
  color: var(--text);
  border-color: var(--border);
}

.osiris-email-list {
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  border-color: var(--border);
}

.osiris-email-detail {
  background: var(--panel);
  color: var(--text);
}

.osiris-email-folder {
  color: var(--text);
}

.osiris-email-folder:hover,
.osiris-email-folder.is-active {
  background: rgba(37, 99, 235, 0.18);
}

.osiris-email-item {
  color: var(--text);
  border-color: var(--border);
}

.osiris-email-item:hover {
  background: rgba(30, 41, 59, 0.95);
}

.osiris-email-item.is-selected {
  background: rgba(37, 99, 235, 0.16);
}

.osiris-email-item.is-unread {
  background: rgba(37, 99, 235, 0.08);
}

.osiris-email-preview,
.osiris-email-date,
.osiris-email-account,
.osiris-email-status {
  color: var(--muted);
}

.osiris-email-unread-badge {
  background: var(--accent);
  color: #ffffff;
}

.osiris-email-security-note {
  background: rgba(37, 99, 235, 0.10);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #bfdbfe;
}

.osiris-email-html-notice {
  color: var(--muted);
  border-color: var(--border);
}

.osiris-email-detail-empty,
.osiris-email-empty {
  color: var(--muted);
}



/* =========================================================
   OSIRIS COURRIELS — EMAIL-F2F FULL WIDTH
   ========================================================= */

.osiris-email-shell {
  width: 100%;
  max-width: none;
  align-self: stretch;
}

.osiris-email-layout {
  width: 100%;
  max-width: none;
  align-self: stretch;
  grid-template-columns:
    220px
    320px
    minmax(0, 1fr);
}

.osiris-email-list,
.osiris-email-detail {
  min-width: 0;
}

.osiris-email-detail {
  width: 100%;
}



/* =========================================================
   OSIRIS COURRIELS — EMAIL-F2G FULL GRID
   ========================================================= */

/*
 * moduleContent est une grille 12 colonnes.
 * Courriels doit occuper toute la rangée.
 */
#moduleContent > .osiris-email-shell {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  min-width: 0;
}


/*
 * La grille interne Courriels peut maintenant
 * utiliser réellement toute la largeur disponible.
 */
#moduleContent > .osiris-email-shell .osiris-email-layout {
  width: 100%;
  max-width: none;

  grid-template-columns:
    190px
    minmax(330px, 390px)
    minmax(0, 1fr);
}


/*
 * Évite qu'un contenu long force une colonne
 * à agrandir ou compresser les autres.
 */
#moduleContent > .osiris-email-shell .osiris-email-folders,
#moduleContent > .osiris-email-shell .osiris-email-list,
#moduleContent > .osiris-email-shell .osiris-email-detail {
  min-width: 0;
}


/*
 * Le panneau de lecture utilise tout l'espace restant.
 */
#moduleContent > .osiris-email-shell .osiris-email-detail {
  width: auto;
  max-width: none;
}



/* =========================================================
   OSIRIS COURRIELS — EMAIL-G1 COMPOSER
   ========================================================= */

.osiris-email-new-message {
  border: 1px solid rgba(37, 99, 235, 0.65);
  border-radius: 9px;
  padding: 9px 14px;
  cursor: pointer;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.osiris-email-new-message:hover {
  background: var(--accent-hover);
}


.osiris-email-compose {
  width: 100%;
  max-width: none;
}

.osiris-email-compose-header {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.osiris-email-compose-header h2 {
  margin: 0 0 6px;
}

.osiris-email-compose-from {
  color: var(--muted);
  font-size: 0.9rem;
}


.osiris-email-compose-form {
  display: grid;
  gap: 15px;
}


.osiris-email-field {
  display: grid;
  gap: 6px;
}

.osiris-email-field > span {
  font-size: 0.86rem;
  font-weight: 700;
  color: #cbd5e1;
}

.osiris-email-field small {
  color: var(--muted);
  font-size: 0.76rem;
}


.osiris-email-field input,
.osiris-email-field textarea {
  width: 100%;
  box-sizing: border-box;

  border: 1px solid var(--border);
  border-radius: 9px;

  padding: 10px 12px;

  background: rgba(2, 6, 23, 0.58);
  color: var(--text);

  font: inherit;

  outline: none;
}


.osiris-email-field input:focus,
.osiris-email-field textarea:focus {
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.13);
}


.osiris-email-field textarea {
  resize: vertical;
  min-height: 300px;
  line-height: 1.5;
}


.osiris-email-compose-secondary {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1fr);
  gap: 12px;
}


.osiris-email-compose-notice {
  padding: 10px 12px;

  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 9px;

  background: rgba(37, 99, 235, 0.09);
  color: #bfdbfe;

  font-size: 0.82rem;
  line-height: 1.45;
}


.osiris-email-compose-error {
  padding: 10px 12px;

  border: 1px solid rgba(220, 38, 38, 0.45);
  border-radius: 9px;

  background: rgba(220, 38, 38, 0.10);
  color: #fecaca;

  font-size: 0.85rem;
}


.osiris-email-compose-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  padding-top: 4px;
}


.osiris-email-button {
  border-radius: 9px;
  padding: 10px 18px;

  cursor: pointer;
  font: inherit;
  font-weight: 700;
}


.osiris-email-button.primary {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.osiris-email-button.primary:hover {
  background: var(--accent-hover);
}


.osiris-email-button.secondary {
  border: 1px solid var(--border);
  background: var(--panel-soft);
  color: var(--text);
}


.osiris-email-button:disabled {
  cursor: wait;
  opacity: 0.55;
}


.osiris-email-send-success {
  display: flex;
  min-height: 360px;

  flex-direction: column;
  align-items: center;
  justify-content: center;

  text-align: center;
}


.osiris-email-send-success-icon {
  display: flex;

  width: 52px;
  height: 52px;

  align-items: center;
  justify-content: center;

  margin-bottom: 14px;

  border-radius: 50%;

  background: rgba(34, 197, 94, 0.15);
  color: #86efac;

  font-size: 1.8rem;
  font-weight: 900;
}


@media (max-width: 760px) {

  .osiris-email-compose-secondary {
    grid-template-columns: 1fr;
  }

  .osiris-email-toolbar-actions {
    flex-wrap: wrap;
  }
}



/* =========================================================
   OSIRIS COURRIELS — EMAIL-G2B REPLY UI
   ========================================================= */

.osiris-email-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;

  margin:
    18px
    0
    14px;
}


.osiris-email-message-actions
.osiris-email-button {
  padding:
    8px
    13px;
}


.osiris-email-reply-context {
  display: grid;
  gap: 7px;

  padding:
    12px
    14px;

  border:
    1px solid
    var(--border);

  border-radius:
    9px;

  background:
    var(--panel-soft);

  color:
    var(--muted);

  font-size:
    0.87rem;

  overflow-wrap:
    anywhere;
}


.osiris-email-reply-context strong {
  color:
    var(--text);
}



/* =========================================================
   OSIRIS EMAIL-H1D — PIÈCES JOINTES
   ========================================================= */

.osiris-email-attachments {
  margin:
    18px
    0;

  padding:
    14px;

  border:
    1px solid
    rgba(148, 163, 184, 0.22);

  border-radius:
    10px;

  background:
    rgba(15, 23, 42, 0.18);
}


.osiris-email-attachments-title {
  margin-bottom:
    10px;

  font-weight:
    700;
}


.osiris-email-attachments-list {
  display:
    grid;

  gap:
    9px;
}


.osiris-email-attachment-item {
  display:
    grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  gap:
    8px
    14px;

  align-items:
    center;

  padding:
    11px
    12px;

  border:
    1px solid
    rgba(148, 163, 184, 0.16);

  border-radius:
    9px;
}


.osiris-email-attachment-main {
  min-width:
    0;
}


.osiris-email-attachment-name {
  overflow:
    hidden;

  text-overflow:
    ellipsis;

  white-space:
    nowrap;

  font-weight:
    650;
}


.osiris-email-attachment-meta {
  margin-top:
    4px;

  font-size:
    0.82rem;

  opacity:
    0.72;
}


.osiris-email-attachment-actions {
  display:
    flex;

  align-items:
    center;
}


.osiris-email-attachment-download {
  white-space:
    nowrap;
}


.osiris-email-attachment-download:disabled {
  cursor:
    wait;

  opacity:
    0.65;
}


.osiris-email-attachment-status {
  grid-column:
    1 / -1;

  min-height:
    1em;

  font-size:
    0.8rem;

  opacity:
    0.78;
}


.osiris-email-attachment-unavailable,
.osiris-email-attachment-disabled,
.osiris-email-attachment-notice,
.osiris-email-attachment-loading {
  font-size:
    0.84rem;

  opacity:
    0.72;
}


.osiris-email-attachment-unavailable {
  margin-top:
    5px;
}


.osiris-email-attachment-error {
  font-size:
    0.84rem;
}


@media (max-width: 760px) {

  .osiris-email-attachment-item {
    grid-template-columns:
      1fr;
  }


  .osiris-email-attachment-actions {
    justify-content:
      flex-start;
  }


  .osiris-email-attachment-download {
    width:
      100%;
  }
}



/* =========================================================
   OSIRIS EMAIL-H2D — PJ SORTANTES / BROUILLONS
   ========================================================= */

.osiris-email-outbound-attachments {
  display: grid;
  gap: 12px;

  padding: 14px;

  border:
    1px solid
    rgba(148, 163, 184, 0.22);

  border-radius: 10px;

  background:
    rgba(15, 23, 42, 0.15);
}


.osiris-email-outbound-attachments-header {
  display: flex;

  align-items: center;

  justify-content:
    space-between;

  gap: 12px;

  flex-wrap: wrap;
}


.osiris-email-outbound-attachments-help {
  margin-top: 4px;

  font-size: 0.82rem;

  opacity: 0.7;
}


.osiris-email-outbound-file-label {
  position: relative;

  overflow: hidden;

  cursor: pointer;
}


.osiris-email-outbound-file-input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;

  pointer-events: none;
}


.osiris-email-outbound-file-label:has(
  .osiris-email-outbound-file-input:disabled
) {
  cursor: wait;

  opacity: 0.6;
}


.osiris-email-outbound-attachment-list {
  display: grid;

  gap: 8px;
}


.osiris-email-outbound-attachment-item {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    auto;

  align-items: center;

  gap: 12px;

  padding:
    10px
    12px;

  border:
    1px solid
    rgba(148, 163, 184, 0.16);

  border-radius: 9px;
}


.osiris-email-outbound-attachment-main {
  min-width: 0;
}


.osiris-email-outbound-attachment-name {
  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  font-weight: 650;
}


.osiris-email-outbound-attachment-meta {
  margin-top: 3px;

  font-size: 0.82rem;

  opacity: 0.72;
}


.osiris-email-outbound-attachment-remove {
  white-space: nowrap;
}


.osiris-email-outbound-attachment-empty,
.osiris-email-outbound-attachment-loading {
  font-size: 0.84rem;

  opacity: 0.7;
}


.osiris-email-outbound-attachment-error,
.osiris-email-outbound-send-guard {
  padding:
    10px
    12px;

  border-radius: 9px;

  font-size: 0.84rem;
}


.osiris-email-outbound-attachment-error {
  border:
    1px solid
    rgba(220, 38, 38, 0.40);
}


.osiris-email-outbound-send-guard {
  border:
    1px solid
    rgba(245, 158, 11, 0.36);

  opacity: 0.86;
}


@media (max-width: 760px) {

  .osiris-email-outbound-attachment-item {
    grid-template-columns: 1fr;
  }


  .osiris-email-outbound-attachment-remove {
    width: 100%;
  }
}



/* ==========================================================
   OSIRIS EMAIL-I3-A-R1 — CASE LINK UI
   ========================================================== */

.osiris-email-case-link-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.48);
}

.osiris-email-case-link-modal {
  width: min(680px, 100%);
  max-height: min(780px, calc(100vh - 48px));
  overflow: auto;
  border: 1px solid var(--border-color, #d6dbe2);
  border-radius: 14px;
  padding: 20px;
  background: var(--panel-bg, #fff);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.24);
}

.osiris-email-case-link-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.osiris-email-case-link-header h3 {
  margin: 0 0 5px;
}

.osiris-email-case-link-header p {
  margin: 0;
  opacity: 0.72;
}

.osiris-email-case-link-warning {
  margin-bottom: 20px;
  padding: 12px 14px;
  border: 1px solid currentColor;
  border-radius: 10px;
  line-height: 1.45;
}

.osiris-email-case-link-existing-section h4 {
  margin-bottom: 9px;
}

.osiris-email-case-link-existing-list {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.osiris-email-case-link-existing {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--border-color, #d6dbe2);
  border-radius: 9px;
}

.osiris-email-case-link-existing small {
  opacity: 0.72;
}

.osiris-email-case-link-status {
  font-size: 0.84rem;
  opacity: 0.78;
}

.osiris-email-case-link-empty {
  margin-bottom: 18px;
  opacity: 0.72;
}

.osiris-email-case-link-modal form {
  display: grid;
  gap: 9px;
}

.osiris-email-case-link-modal select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--border-color, #cfd5dd);
  border-radius: 8px;
  background: inherit;
  color: inherit;
}

.osiris-email-case-link-error {
  padding: 9px 11px;
  border: 1px solid currentColor;
  border-radius: 8px;
}

.osiris-email-case-link-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

@media (max-width: 640px) {

  .osiris-email-case-link-overlay {
    padding: 10px;
  }

  .osiris-email-case-link-modal {
    padding: 15px;
    max-height: calc(100vh - 20px);
  }

  .osiris-email-case-link-header {
    flex-direction: column;
  }
}

/* END OSIRIS EMAIL-I3-A-R1 — CASE LINK UI */


/* ==========================================================
   OSIRIS EMAIL-I3-A-R3 MODAL CONTRAST FIX
   ========================================================== */

.osiris-email-case-link-modal {
  background: #ffffff;
  color: #1f2937;
}

.osiris-email-case-link-modal h3,
.osiris-email-case-link-modal h4,
.osiris-email-case-link-modal label,
.osiris-email-case-link-modal strong {
  color: #111827;
}

.osiris-email-case-link-modal p,
.osiris-email-case-link-existing small,
.osiris-email-case-link-status,
.osiris-email-case-link-empty {
  color: #4b5563;
  opacity: 1;
}

.osiris-email-case-link-warning {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.osiris-email-case-link-existing {
  background: #f8fafc;
  border-color: #d1d5db;
}

.osiris-email-case-link-modal select {
  background: #ffffff;
  color: #111827;
  border-color: #cbd5e1;
}

.osiris-email-case-link-modal select:disabled {
  background: #f3f4f6;
  color: #6b7280;
}

.osiris-email-case-link-error {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}

/* END OSIRIS EMAIL-I3-A-R3 MODAL CONTRAST FIX */


/* ==========================================================
   OSIRIS EMAIL-I4-C2-A CASE-SIDE LINKED EMAILS CSS
   ========================================================== */

.osiris-case-linked-emails {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-soft);
  overflow: hidden;
}

.osiris-case-linked-emails > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 15px;
  cursor: pointer;
  font-weight: 700;
}

.osiris-case-email-count {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.osiris-case-email-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 0 15px 13px;
}

.osiris-case-email-toolbar p {
  margin: 0;
  max-width: 780px;
}

.osiris-case-email-host {
  padding: 0 15px 15px;
}

.osiris-case-email-list {
  display: grid;
  gap: 14px;
}

.osiris-case-email-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  padding: 15px;
}

.osiris-case-email-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.osiris-case-email-header h4 {
  margin: 6px 0 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.osiris-case-email-header time {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

.osiris-case-email-direction {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(96, 165, 250, 0.3);
  font-size: 0.76rem;
  font-weight: 700;
}

.osiris-case-email-meta {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.osiris-case-email-meta > div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
}

.osiris-case-email-meta span {
  overflow-wrap: anywhere;
}

.osiris-case-email-body {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.22);
}

.osiris-case-email-body pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
  line-height: 1.5;
}

.osiris-case-email-attachments {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.osiris-case-email-file-list {
  display: grid;
  gap: 7px;
}

.osiris-case-email-download {
  width: 100%;
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    auto;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.osiris-case-email-download > span:first-child {
  overflow-wrap: anywhere;
}

.osiris-case-email-download small {
  color: var(--muted);
}

.osiris-case-email-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

.osiris-case-email-documentary {
  font-weight: 700;
}

.osiris-case-email-empty,
.osiris-case-email-error {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.osiris-case-email-error {
  color: #fca5a5;
}

@media (max-width: 720px) {
  .osiris-case-email-toolbar,
  .osiris-case-email-header {
    flex-direction: column;
  }

  .osiris-case-email-header time {
    white-space: normal;
  }

  .osiris-case-email-download {
    grid-template-columns: 1fr;
  }

  .osiris-case-email-meta > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* END OSIRIS EMAIL-I4-C2-A CASE-SIDE LINKED EMAILS CSS */



/* OSIRIS EMAIL-I4-C2-F4-R2 DIRECTION FULL WIDTH CSS BEGIN */

.direction-linked-email-row > td {
  padding-top: 0.65rem;
  padding-bottom: 1rem;
}

.direction-linked-email-panel {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.direction-linked-email-panel > summary {
  width: 100%;
  box-sizing: border-box;
}

.direction-linked-email-panel
.osiris-case-email-toolbar {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.direction-linked-email-panel
.osiris-case-email-host {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  gap: 0.85rem;
}

.direction-linked-email-panel
.osiris-case-email-item {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
}

.direction-linked-email-panel
.osiris-case-email-body {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

/* OSIRIS EMAIL-I4-C2-F4-R2 DIRECTION FULL WIDTH CSS END */

/* ==========================================================
   OSIRIS OFFICE ACTION CENTER V1
   ========================================================== */

.office-dashboard-action-center-panel {
  border-color: rgba(56, 189, 248, 0.22);
  background:
    linear-gradient(
      135deg,
      rgba(14, 116, 144, 0.10),
      rgba(15, 23, 42, 0.78) 48%
    );
}

.office-dashboard-action-center-panel
.office-dashboard-panel-title {
  align-items: center;
}

.office-dashboard-action-center-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(148, 163, 184, 0.76);
  font-size: 0.68rem;
}

.office-dashboard-action-center-meta strong {
  min-width: 28px;
  min-height: 28px;
  display: grid;
  place-items: center;
  padding: 3px 8px;
  border: 1px solid rgba(56, 189, 248, 0.24);
  border-radius: 999px;
  background: rgba(14, 116, 144, 0.16);
  color: #bae6fd;
  font-size: 0.82rem;
}

.office-dashboard-action-center-list {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 14px 14px;
}

.office-dashboard-action-center-list
.office-dashboard-empty,
.office-dashboard-action-center-list
.office-dashboard-loading {
  grid-column: 1 / -1;
  padding: 18px 4px;
}

.office-dashboard-action-center-item {
  min-width: 0;
  min-height: 62px;
  display: grid;
  grid-template-columns:
    36px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border: 1px solid rgba(148, 163, 184, 0.10);
  border-radius: 11px;
  background: rgba(2, 6, 23, 0.25);
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.office-dashboard-action-center-item:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.26);
  background: rgba(15, 23, 42, 0.74);
}

.office-dashboard-action-center-item
.office-dashboard-row-icon {
  width: 34px;
  height: 34px;
}

.office-dashboard-row-icon.is-action-overdue {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.13);
}

.office-dashboard-badge.state-overdue {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

.office-dashboard-badge.priority-critical {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.office-dashboard-badge.priority-urgent {
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
}

.office-dashboard-badge.state-today {
  background: rgba(139, 92, 246, 0.14);
  color: #ddd6fe;
}

@media (max-width: 900px) {
  .office-dashboard-action-center-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .office-dashboard-action-center-panel
  .office-dashboard-panel-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .office-dashboard-action-center-item {
    grid-template-columns:
      34px minmax(0, 1fr);
  }

  .office-dashboard-action-center-item
  .office-dashboard-badge,
  .office-dashboard-action-center-item
  .office-dashboard-row-link {
    grid-column: 2;
    justify-self: start;
  }
}
/* ==========================================================
   OSIRIS CLIENT FOLLOWUPS UI V1
   ========================================================== */

.client-followups-shell {
  display: grid;
  gap: 14px;
}

.client-followups-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(14, 116, 144, 0.12),
      rgba(15, 23, 42, 0.80) 48%
    );
}

.client-followups-hero h2,
.client-followup-section-title h3,
.client-followup-card h3 {
  margin: 3px 0 0;
}

.client-followups-hero p {
  margin: 6px 0 0;
  color: rgba(203, 213, 225, 0.72);
}

.client-followups-eyebrow {
  color: #38bdf8;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.client-followup-create,
.client-followup-list-panel {
  margin: 0;
}

.client-followup-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.client-followup-section-title small,
.client-followup-count {
  color: rgba(148, 163, 184, 0.76);
  font-size: 0.72rem;
}

.client-followup-count strong {
  color: #bae6fd;
  font-size: 0.92rem;
}

.client-followup-readonly-notice {
  padding: 12px 15px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 11px;
  background: rgba(14, 116, 144, 0.08);
  color: #bae6fd;
  font-size: 0.78rem;
}

.client-followup-filters {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(140px, 0.7fr))
    minmax(190px, 1.4fr);
  gap: 9px;
  margin-bottom: 14px;
}

.client-followup-filters select,
.client-followup-filters input {
  width: 100%;
}

.client-followup-list {
  display: grid;
  gap: 10px;
}

.client-followup-card {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.28);
}

.client-followup-card.is-overdue {
  border-color: rgba(239, 68, 68, 0.28);
  background:
    linear-gradient(
      135deg,
      rgba(127, 29, 29, 0.10),
      rgba(2, 6, 23, 0.30) 42%
    );
}

.client-followup-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.client-followup-card h3 {
  font-size: 0.98rem;
}

.client-followup-client {
  color: #7dd3fc;
  font-size: 0.7rem;
  font-weight: 800;
}

.client-followup-badges,
.client-followup-actions,
.client-followup-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.client-followup-badge {
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.11);
  color: #bfdbfe;
  font-size: 0.63rem;
  font-weight: 800;
  white-space: nowrap;
}

.client-followup-badge.state-overdue,
.client-followup-badge.priority-critical {
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
}

.client-followup-badge.priority-high {
  background: rgba(249, 115, 22, 0.13);
  color: #fdba74;
}

.client-followup-badge.priority-low,
.client-followup-badge.status-completed {
  background: rgba(34, 197, 94, 0.11);
  color: #86efac;
}

.client-followup-badge.status-cancelled {
  background: rgba(100, 116, 139, 0.15);
  color: #cbd5e1;
}

.client-followup-badge.type-attention {
  background: rgba(236, 72, 153, 0.12);
  color: #f9a8d4;
}

.client-followup-meta {
  margin-top: 9px;
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.7rem;
}

.client-followup-meta span + span::before {
  content: "·";
  margin-right: 7px;
  color: rgba(148, 163, 184, 0.42);
}

.client-followup-details,
.client-followup-result {
  margin: 10px 0 0;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.77rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.client-followup-result {
  padding: 9px 11px;
  border-left: 2px solid rgba(34, 197, 94, 0.48);
  background: rgba(34, 197, 94, 0.05);
}

.client-followup-actions {
  margin-top: 12px;
}

.client-followup-actions button {
  min-height: 34px;
  padding: 6px 10px;
}

.client-followup-cancel {
  color: #fca5a5;
}

.client-followup-edit {
  margin-top: 13px;
  padding: 13px;
  border: 1px solid rgba(96, 165, 250, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.66);
}

.client-followup-edit[hidden] {
  display: none;
}

.client-followup-empty {
  padding: 28px 10px;
  text-align: center;
  color: rgba(148, 163, 184, 0.70);
}

.office-dashboard-row-icon.is-followup {
  color: #f9a8d4;
  background: rgba(236, 72, 153, 0.12);
}

.office-dashboard-badge.state-followup-due {
  background: rgba(236, 72, 153, 0.12);
  color: #f9a8d4;
}

@media (min-width: 1401px) {
  .office-dashboard-actions {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .client-followup-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-followup-card-header {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .client-followups-hero,
  .client-followup-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-followup-filters {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   OSIRIS CLIENT FOLLOWUPS UX V2
   ========================================================== */

.client-followup-filter-field {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.client-followup-filter-field > span {
  color: rgba(203, 213, 225, 0.82);
  font-size: 0.68rem;
  font-weight: 700;
}

.client-followup-create .field input,
.client-followup-create .field select,
.client-followup-create .field textarea,
.client-followup-edit .field input,
.client-followup-edit .field select,
.client-followup-edit .field textarea,
.client-followup-filter-field input,
.client-followup-filter-field select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* ==========================================================
   OSIRIS CLIENT 360 UI V1
   ========================================================== */

.client-360-host[hidden],
.client-360-inline-form[hidden] {
  display: none;
}

.client-360-host {
  scroll-margin-top: 18px;
}

.client-360-shell {
  display: grid;
  gap: 14px;
}

.client-360-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(14, 116, 144, 0.15),
      rgba(15, 23, 42, 0.82) 48%
    );
}

.client-360-hero h2,
.client-360-section h3 {
  margin: 3px 0 0;
}

.client-360-hero p {
  margin: 6px 0 0;
  color: rgba(203, 213, 225, 0.74);
}

.client-360-eyebrow {
  color: #38bdf8;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.client-360-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.client-360-readonly,
.client-360-warning {
  padding: 12px 15px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 11px;
  background: rgba(14, 116, 144, 0.08);
  color: #bae6fd;
  font-size: 0.78rem;
}

.client-360-warning {
  border-color: rgba(249, 115, 22, 0.25);
  background: rgba(249, 115, 22, 0.07);
  color: #fed7aa;
}

.client-360-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.client-360-kpis > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  padding: 13px 15px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.72);
}

.client-360-kpis strong {
  color: #7dd3fc;
  font-size: 1.25rem;
}

.client-360-kpis span {
  color: rgba(203, 213, 225, 0.74);
  font-size: 0.73rem;
}

.client-360-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.client-360-section {
  min-width: 0;
  margin: 0;
}

.client-360-identity {
  grid-column: 1 / -1;
}

.client-360-section-head,
.client-360-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.client-360-section-head {
  margin-bottom: 13px;
}

.client-360-list {
  display: grid;
  gap: 9px;
}

.client-360-item {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 11px;
  background: rgba(2, 6, 23, 0.28);
}

.client-360-item strong,
.client-360-item small {
  display: block;
}

.client-360-item small,
.client-360-item p {
  color: rgba(203, 213, 225, 0.74);
}

.client-360-item p {
  margin: 9px 0 0;
  font-size: 0.77rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.client-360-item .client-360-result {
  padding-left: 9px;
  border-left: 2px solid rgba(34, 197, 94, 0.45);
}

.client-360-item > button {
  margin-top: 10px;
}

.client-360-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #bfdbfe;
  font-size: 0.64rem;
  font-weight: 800;
  white-space: nowrap;
}

.client-360-badge.status-completed {
  background: rgba(34, 197, 94, 0.11);
  color: #86efac;
}

.client-360-badge.status-cancelled {
  background: rgba(100, 116, 139, 0.16);
  color: #cbd5e1;
}

.client-360-definition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.client-360-definition-grid > div {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 9px;
  background: rgba(2, 6, 23, 0.25);
}

.client-360-definition-grid dt,
.client-360-compact-grid b {
  display: block;
  margin-bottom: 3px;
  color: rgba(148, 163, 184, 0.75);
  font-size: 0.65rem;
  font-weight: 700;
}

.client-360-definition-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.client-360-definition-full {
  grid-column: 1 / -1;
}

.client-360-pre {
  white-space: pre-wrap;
}

.client-360-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  font-size: 0.74rem;
}

.client-360-compact-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.client-360-inline-form,
.client-360-linker {
  margin: 12px 0;
  padding: 13px;
  border: 1px solid rgba(96, 165, 250, 0.17);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
}

.client-360-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.client-360-form-grid-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.client-360-form-grid label,
.client-360-linker > label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.7rem;
  font-weight: 700;
}

.client-360-form-grid input,
.client-360-form-grid select,
.client-360-form-grid textarea,
.client-360-linker select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.client-360-form-full {
  grid-column: 1 / -1;
}

.client-360-linker > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 7px;
}

.client-360-linker small {
  display: block;
  margin-top: 6px;
  color: rgba(148, 163, 184, 0.72);
}

.client-360-timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.client-360-timeline li {
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) minmax(120px, 0.8fr) minmax(0, 1.4fr);
  gap: 9px;
  padding-left: 12px;
  border-left: 2px solid rgba(56, 189, 248, 0.28);
  font-size: 0.73rem;
}

.client-360-timeline time,
.client-360-timeline span {
  color: rgba(148, 163, 184, 0.78);
}

.client-360-empty,
.client-360-loading {
  color: rgba(148, 163, 184, 0.75);
}

.client-360-empty {
  padding: 17px 7px;
  text-align: center;
}

@media (max-width: 1100px) {
  .client-360-definition-grid,
  .client-360-form-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .client-360-kpis,
  .client-360-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .client-360-section,
  .client-360-identity {
    grid-column: 1 / -1;
  }

  .client-360-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .client-360-hero,
  .client-360-section-head,
  .client-360-item-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .client-360-kpis,
  .client-360-definition-grid,
  .client-360-form-grid,
  .client-360-form-grid-wide,
  .client-360-compact-grid,
  .client-360-timeline li {
    grid-template-columns: 1fr;
  }

  .client-360-linker > div {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   OSIRIS OFFICE DECISION QUEUE V1
   ========================================================= */

.office-decisions-shell {
  display: grid;
  gap: 14px;
}

.office-decisions-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 20px;
  border: 1px solid rgba(38, 191, 255, 0.3);
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(13, 32, 58, 0.98),
    rgba(9, 22, 42, 0.98)
  );
}

.office-decisions-hero h2,
.office-decision-section-title h3,
.office-decision-card h3 {
  margin: 4px 0 0;
}

.office-decisions-hero p {
  margin: 8px 0 0;
  color: var(--muted, #8ea7c9);
}

.office-decisions-eyebrow {
  color: #2bc4ff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.office-decision-create,
.office-decision-list-panel {
  padding: 20px;
}

.office-decision-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.office-decision-section-title small,
.office-decision-section-title > span {
  color: var(--muted, #8ea7c9);
}

.office-decision-create textarea,
.office-decision-edit textarea,
.office-decision-direction-box textarea {
  min-height: 92px;
  resize: vertical;
}

.office-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.office-decision-actions .danger-outline {
  border-color: rgba(255, 102, 115, 0.55);
  color: #ff8994;
}

.office-decision-actions .success-action {
  border-color: rgba(48, 211, 142, 0.55);
  background: rgba(48, 211, 142, 0.14);
  color: #6ce8ae;
}

.office-decision-readonly-notice {
  padding: 12px 15px;
  border: 1px solid rgba(38, 191, 255, 0.28);
  border-radius: 12px;
  background: rgba(38, 191, 255, 0.06);
  color: #9edfff;
}

.office-decision-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(220px, 1.4fr);
  gap: 10px;
  margin-bottom: 14px;
}

.office-decision-filters label {
  display: grid;
  gap: 6px;
}

.office-decision-filters label > span {
  color: var(--muted, #8ea7c9);
  font-size: 0.76rem;
  font-weight: 700;
}

.office-decisions-list {
  display: grid;
  gap: 12px;
}

.office-decision-card {
  padding: 16px;
  border: 1px solid rgba(120, 151, 191, 0.22);
  border-radius: 13px;
  background: rgba(5, 17, 35, 0.52);
}

.office-decision-card.is-overdue {
  border-color: rgba(255, 92, 92, 0.55);
}

.office-decision-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.office-decision-client {
  color: #48cbff;
  font-size: 0.76rem;
  font-weight: 800;
}

.office-decision-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.office-decision-badges span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(98, 132, 178, 0.17);
  color: #c9d8ec;
  font-size: 0.68rem;
  font-weight: 800;
}

.office-decision-badges .priority-critical,
.office-decision-badges .state-overdue,
.office-decision-badges .status-rejected {
  background: rgba(236, 73, 87, 0.18);
  color: #ff9aa3;
}

.office-decision-badges .priority-high,
.office-decision-badges .status-returned {
  background: rgba(255, 157, 66, 0.17);
  color: #ffc07a;
}

.office-decision-badges .status-submitted {
  background: rgba(38, 191, 255, 0.17);
  color: #82dcff;
}

.office-decision-badges .status-approved {
  background: rgba(48, 211, 142, 0.16);
  color: #72eab2;
}

.office-decision-badges .status-closed,
.office-decision-badges .status-cancelled {
  color: #9eacc0;
}

.office-decision-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 9px;
  color: var(--muted, #8ea7c9);
  font-size: 0.78rem;
}

.office-decision-copy {
  margin-top: 13px;
  padding: 11px 12px;
  border-left: 3px solid rgba(38, 191, 255, 0.45);
  border-radius: 8px;
  background: rgba(12, 29, 53, 0.56);
}

.office-decision-copy.recommendation {
  border-left-color: rgba(114, 234, 178, 0.55);
}

.office-decision-copy.decision-note {
  border-left-color: rgba(255, 192, 122, 0.65);
}

.office-decision-copy p {
  margin: 5px 0 0;
  white-space: pre-wrap;
}

.office-decision-relation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--muted, #8ea7c9);
  font-size: 0.78rem;
}

.office-decision-relation a {
  color: #65d3ff;
  font-weight: 700;
}

.office-decision-direction-box,
.office-decision-edit {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(120, 151, 191, 0.25);
  border-radius: 11px;
  background: rgba(11, 27, 49, 0.78);
}

.office-decision-direction-box label {
  display: block;
  margin-bottom: 7px;
  font-weight: 700;
}

.office-decision-empty {
  padding: 28px 14px;
  text-align: center;
  color: var(--muted, #8ea7c9);
}

@media (max-width: 1200px) {
  .office-decision-filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .office-decision-filters .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .office-decisions-hero,
  .office-decision-card-header,
  .office-decision-section-title {
    align-items: stretch;
    flex-direction: column;
  }

  .office-decision-filters {
    grid-template-columns: 1fr;
  }

  .office-decision-filters .search-field {
    grid-column: auto;
  }

  .office-decision-badges {
    justify-content: flex-start;
  }
}

/* =========================================================
   OSIRIS OFFICE DECISIONS UX V1
   Correct the missing col-2 and col-8 spans locally.
   ========================================================= */

.office-decision-create .field.col-2 {
  grid-column: span 2;
  min-width: 0;
}

.office-decision-edit .field.col-8 {
  grid-column: span 8;
  min-width: 0;
}

@media (max-width: 900px) {
  .office-decision-create .field.col-2,
  .office-decision-edit .field.col-8 {
    grid-column: span 12;
  }
}

/* =========================================================
   OSIRIS DIRECTION DECISION ACTION CENTER V1
   ========================================================= */

.direction-decision-action-center {
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.30);
  border-radius: 13px;
  background: rgba(8, 25, 47, 0.84);
}

.direction-decision-action-head {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 15px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.direction-decision-action-head > div:first-child > span {
  display: block;
  color: #38bdf8;
  font-size: 0.60rem;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.direction-decision-action-head h2 {
  margin: 3px 0 0;
  font-size: 0.92rem;
}

.direction-decision-action-summary {
  display: flex;
  align-items: center;
  gap: 14px;
}

.direction-decision-action-summary strong {
  color: #cfeeff;
  font-size: 0.68rem;
}

.direction-decision-action-summary a,
.direction-decision-action-open {
  color: #7dd3fc;
  font-size: 0.64rem;
  font-weight: 800;
  text-decoration: none;
}

.direction-decision-action-list {
  display: grid;
  gap: 8px;
  padding: 10px 12px 12px;
}

.direction-decision-action-row {
  min-height: 62px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(96, 165, 250, 0.15);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.32);
  transition: border-color 120ms ease, background 120ms ease;
}

.direction-decision-action-row:hover {
  border-color: rgba(125, 211, 252, 0.38);
  background: rgba(21, 39, 67, 0.70);
}

.direction-decision-action-row.is-overdue {
  border-color: rgba(248, 113, 113, 0.42);
}

.direction-decision-action-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #7dd3fc;
  border-radius: 9px;
  background: rgba(14, 165, 233, 0.12);
}

.direction-decision-action-row.is-overdue .direction-decision-action-icon {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.12);
}

.direction-decision-action-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.direction-decision-action-main {
  min-width: 0;
}

.direction-decision-action-main strong,
.direction-decision-action-main small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direction-decision-action-main strong {
  color: #f1f5f9;
  font-size: 0.75rem;
}

.direction-decision-action-main small {
  margin-top: 4px;
  color: rgba(148, 163, 184, 0.78);
  font-size: 0.62rem;
}

.direction-decision-action-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.direction-decision-action-badges em {
  padding: 4px 7px;
  color: #cbd5e1;
  font-size: 0.56rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  border-radius: 999px;
  background: rgba(100, 116, 139, 0.18);
}

.direction-decision-action-badges .priority-high {
  color: #fdba74;
  background: rgba(249, 115, 22, 0.15);
}

.direction-decision-action-badges .priority-critical,
.direction-decision-action-badges .is-overdue {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
}

.direction-decision-action-badges .priority-low {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.13);
}

.direction-decision-action-empty {
  padding: 18px 12px;
  color: rgba(148, 163, 184, 0.76);
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 900px) {
  .direction-decision-action-row {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .direction-decision-action-open {
    grid-column: 2;
  }
}

@media (max-width: 600px) {
  .direction-decision-action-head,
  .direction-decision-action-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .direction-decision-action-head,
  .direction-decision-action-summary {
    gap: 7px;
  }

  .direction-decision-action-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .direction-decision-action-badges,
  .direction-decision-action-open {
    grid-column: 2;
    justify-content: flex-start;
  }
}



/* =========================================================
   OSIRIS EMAIL-DIRECTION-ADMIN V1.0.2
   ========================================================= */
.osiris-email-direction-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-width: 0;
}
.osiris-email-direction-shell,
.osiris-email-direction-shell * {
  box-sizing: border-box;
}
.osiris-email-direction-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 24px 26px;
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(15, 23, 42, .96), rgba(30, 41, 59, .78));
}
.osiris-email-direction-hero { display: grid; gap: 8px; min-width: 0; }
.osiris-email-direction-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.osiris-email-direction-header h1 { margin: 0; font-size: 2rem; line-height: 1.1; }
.osiris-email-direction-header p { max-width: 920px; margin: 0; color: var(--muted); line-height: 1.6; }
.osiris-email-direction-eyebrow { color: #93c5fd; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.osiris-email-direction-status { min-height: 20px; padding: 0 4px; color: #86efac; font-size: .88rem; font-weight: 700; }
.osiris-email-direction-status.is-error, .osiris-email-direction-account-result.is-error { color: #fca5a5; }
.osiris-email-direction-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; }
.osiris-email-direction-kpis article { display: grid; gap: 6px; min-height: 112px; padding: 20px; border: 1px solid rgba(148,163,184,.16); border-radius: 16px; background: rgba(15,23,42,.62); }
.osiris-email-direction-kpis strong { font-size: 2rem; line-height: 1; }
.osiris-email-direction-kpis span { color: var(--muted); font-size: .82rem; }
.osiris-email-direction-workspace {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  width: 100%;
  align-items: start;
}
.osiris-email-direction-panel { width: 100%; padding: 22px; border: 1px solid rgba(148,163,184,.16); border-radius: 18px; background: rgba(15,23,42,.52); }
.osiris-email-direction-panel-head { margin-bottom: 16px; }
.osiris-email-direction-panel-head h2 { margin: 0 0 6px; font-size: 1.08rem; }
.osiris-email-direction-panel-head p { margin: 0; color: var(--muted); font-size: .81rem; line-height: 1.6; }
.osiris-email-direction-account-list { display: grid; gap: 12px; }
.osiris-email-direction-account-card {
  display: grid;
  gap: 12px;
  width: 100%;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(148,163,184,.16);
  border-radius: 16px;
  background: rgba(2,6,23,.42);
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.osiris-email-direction-account-card:hover {
  transform: translateY(-1px);
  border-color: rgba(96,165,250,.42);
  box-shadow: 0 12px 30px rgba(2, 6, 23, .18);
}
.osiris-email-direction-account-card.is-selected {
  border-color: rgba(96,165,250,.55);
  background: rgba(30, 41, 59, .78);
  box-shadow: 0 0 0 1px rgba(59,130,246,.2) inset;
}
.osiris-email-direction-account-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.osiris-email-direction-account-card-head > div { display: grid; gap: 4px; min-width: 0; }
.osiris-email-direction-account-card-head strong { font-size: .97rem; }
.osiris-email-direction-account-card-head span { color: var(--muted); font-size: .76rem; word-break: break-word; }
.osiris-email-direction-account-card-meta { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .72rem; }
.osiris-email-direction-account-card-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.osiris-email-direction-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.osiris-email-direction-detail-label { color: #93c5fd; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.osiris-email-direction-detail-head h2 { margin: 4px 0 4px; font-size: 1.45rem; }
.osiris-email-direction-detail-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.osiris-email-direction-detail-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.osiris-email-direction-badge { padding: 6px 9px; border-radius: 999px; background: rgba(100,116,139,.18); color: #cbd5e1 !important; font-size: .66rem !important; font-weight: 800; }
.osiris-email-direction-badge.is-ok { background: rgba(34,197,94,.13); color: #86efac !important; }
.osiris-email-direction-badge.is-warn { background: rgba(245,158,11,.14); color: #fcd34d !important; }
.osiris-email-direction-badge.is-danger { background: rgba(239,68,68,.14); color: #fca5a5 !important; }
.osiris-email-direction-account-form { display: grid; gap: 16px; }
.osiris-email-direction-owner { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; background: rgba(59,130,246,.08); }
.osiris-email-direction-owner span, .osiris-email-direction-owner small { color: var(--muted); font-size: .7rem; }
.osiris-email-direction-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.osiris-email-direction-grid label,
.osiris-email-direction-settings-form > label:not(.osiris-email-direction-toggle),
.osiris-email-direction-settings-grid > label { display: grid; gap: 7px; }
.osiris-email-direction-grid label > span,
.osiris-email-direction-settings-form label > span,
.osiris-email-direction-settings-grid label > span { color: #cbd5e1; font-size: .72rem; font-weight: 700; }
.osiris-email-direction-grid .span-2 { grid-column: span 2; }
.osiris-email-direction-grid .span-3 { grid-column: span 3; }
.osiris-email-direction-grid input,
.osiris-email-direction-grid select,
.osiris-email-direction-grid textarea,
.osiris-email-direction-settings-form textarea { width: 100%; padding: 11px 12px; color: var(--text); border: 1px solid rgba(148,163,184,.23); border-radius: 10px; background: rgba(15,23,42,.72); font: inherit; }
.osiris-email-direction-grid textarea,
.osiris-email-direction-settings-form textarea { resize: vertical; line-height: 1.5; }
.osiris-email-direction-account-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 6px; }
.osiris-email-direction-account-foot > div:first-child { display: grid; gap: 5px; }
.osiris-email-direction-account-foot small { color: var(--muted); font-size: .72rem; }
.osiris-email-direction-toggle { display: inline-flex !important; align-items: center; gap: 8px !important; color: #e2e8f0; font-size: .78rem; font-weight: 700; }
.osiris-email-direction-toggle input { width: auto !important; }
.osiris-email-direction-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.osiris-email-direction-account-result { min-height: 18px; color: #86efac; font-size: .74rem; font-weight: 600; }
.osiris-email-direction-settings-form { display: grid; gap: 14px; }
.osiris-email-direction-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.osiris-email-button.primary { border-color: rgba(59,130,246,.45); background: rgba(37,99,235,.82); color: white; }
@media (max-width: 1200px) {
  .osiris-email-direction-workspace { grid-template-columns: 1fr; }
  .osiris-email-direction-panel--accounts { order: 1; }
  .osiris-email-direction-panel--detail { order: 2; }
}
@media (max-width: 980px) {
  .osiris-email-direction-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .osiris-email-direction-grid,
  .osiris-email-direction-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .osiris-email-direction-grid .span-3 { grid-column: span 2; }
}
@media (max-width: 760px) {
  .osiris-email-direction-header,
  .osiris-email-direction-detail-head,
  .osiris-email-direction-account-foot { align-items: stretch; flex-direction: column; }
  .osiris-email-direction-header-actions,
  .osiris-email-direction-detail-badges,
  .osiris-email-direction-actions { justify-content: flex-start; }
  .osiris-email-direction-kpis,
  .osiris-email-direction-grid,
  .osiris-email-direction-settings-grid { grid-template-columns: 1fr; }
  .osiris-email-direction-grid .span-2,
  .osiris-email-direction-grid .span-3 { grid-column: span 1; }
  .osiris-email-direction-account-card-head { flex-direction: column; }
}


/* =========================================================
   OSIRIS EMAIL-DIRECTION-ADMIN UI V1.0.3
   FIX: occupation complète de la grille #moduleContent
   ========================================================= */
#moduleContent > .osiris-email-direction-shell {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  min-width: 0;
  align-self: stretch;
}

#moduleContent > .osiris-email-direction-shell > * {
  min-width: 0;
}

#moduleContent > .osiris-email-direction-shell .osiris-email-direction-workspace,
#moduleContent > .osiris-email-direction-shell .osiris-email-direction-panel,
#moduleContent > .osiris-email-direction-shell .osiris-email-direction-header,
#moduleContent > .osiris-email-direction-shell .osiris-email-direction-kpis {
  width: 100%;
  max-width: none;
  min-width: 0;
}

/* =========================================================
   OSIRIS EMAIL GLOBAL NOTIFIER v1.0.0
   ========================================================= */

.osiris-email-global-toast {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 100000;

  display: flex;
  align-items: center;
  gap: 12px;

  min-width: 300px;
  max-width: 420px;

  padding: 14px 16px;

  background: rgba(17, 25, 39, 0.97);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;

  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.35);

  color: #f8fafc;

  cursor: pointer;

  opacity: 0;
  transform: translateY(-10px);

  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.osiris-email-global-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.osiris-email-global-toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  flex: 0 0 42px;

  border-radius: 10px;

  background: rgba(59, 130, 246, 0.18);

  font-size: 22px;
}

.osiris-email-global-toast-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.osiris-email-global-toast-content strong {
  font-size: 14px;
  font-weight: 700;
}

.osiris-email-global-toast-content span {
  font-size: 12px;
  opacity: 0.78;
}

@media (max-width: 700px) {
  .osiris-email-global-toast {
    top: 12px;
    left: 12px;
    right: 12px;

    min-width: 0;
    max-width: none;
  }
}

/* OSIRIS_WRITER_SCOPED_IN_WATCH_20261026_START */
/* Osiris Writer v0.3.0: scoped Letter-paper editor. No remote assets. */
.osiris-writer { --ow-border:#cbd5e1; --ow-muted:#526477; --ow-text:#172536; --ow-blue:#17395e; font-family:Arial,Helvetica,sans-serif; color:var(--ow-text); }
.osiris-writer * { box-sizing:border-box; }
.osiris-writer .ow-heading,.osiris-writer .ow-actions,.osiris-writer .ow-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:7px; }
.osiris-writer .ow-heading { justify-content:space-between; margin:0 0 10px; }
.osiris-writer .ow-headline h2 { font-size:1.3rem; font-weight:700; margin:0; color:var(--ow-blue); }
.osiris-writer .ow-headline p { font-size:.84rem; color:var(--ow-muted); margin:3px 0 0; }
.osiris-writer .ow-btn { border:1px solid var(--ow-border); border-radius:5px; background:#fff; color:#142337; padding:7px 9px; cursor:pointer; font:inherit; font-size:.86rem; }
.osiris-writer .ow-btn:hover { background:#edf3fa; }
.osiris-writer .ow-btn:disabled { background:#eef2f6; cursor:not-allowed; }
.osiris-writer .ow-btn:focus-visible,.osiris-writer .ow-select:focus-visible,.osiris-writer .ow-title:focus-visible { outline:2px solid #2563eb; outline-offset:2px; }
.osiris-writer .ow-notice { min-height:22px; color:#075985; font-size:.85rem; margin:9px 0; }
.osiris-writer .ow-error {color:#b91c1c;}
.osiris-writer .ow-layout {display:grid;grid-template-columns:210px minmax(0,1fr);gap:14px;}
.osiris-writer .ow-library {padding:12px;border:1px solid var(--ow-border);border-radius:8px;background:#f7f9fc;align-self:start;min-height:230px;}
.osiris-writer .ow-library h3 {font-size:.91rem;margin:0 0 12px;}
.osiris-writer .ow-doc-list {display:flex;flex-direction:column;gap:5px;padding-top:9px;}
.osiris-writer .ow-document-link {display:flex;flex-direction:column;align-items:flex-start;text-align:left;width:100%;overflow-wrap:anywhere;}
.osiris-writer .ow-document-link small,.osiris-writer .ow-small {font-size:.76rem;color:var(--ow-muted);}
.osiris-writer .ow-selected {outline:2px solid #0284c7;}
.osiris-writer .ow-main {min-width:0;}
.osiris-writer .ow-title {display:block;width:100%;padding:12px;font-size:1.08rem;margin:0 0 9px;background:#fff;color:var(--ow-text);border:1px solid var(--ow-border);border-radius:6px;}
.osiris-writer .ow-toolbar {position:relative;border:1px solid var(--ow-border);padding:8px;background:#ecf1f7;border-radius:6px 6px 0 0;align-items:end;}
.osiris-writer .ow-setting {display:flex;flex-direction:column;gap:3px;font-size:.69rem;color:#425166;font-weight:600;}
.osiris-writer .ow-select {max-width:160px;min-width:110px;padding:6px 8px;border:1px solid var(--ow-border);border-radius:5px;background:#fff;color:#152134;font:inherit;font-size:.84rem;}
.osiris-writer .ow-setting-small .ow-select {min-width:85px;}
.osiris-writer .ow-separator {align-self:center;border-left:1px solid #b8c6d8;height:29px;margin:0 3px;}
.osiris-writer .ow-ruler {height:25px;background:#f8fafc;border:1px solid var(--ow-border);border-top:0;display:flex;justify-content:space-around;align-items:center;font-size:.67rem;color:#52647a;}
.osiris-writer .ow-workspace {background:#e4e9f0;border:1px solid var(--ow-border);border-top:0;overflow:auto;min-height:500px;padding:22px 14px 34px;}
.osiris-writer .ow-paper {width:8.5in;min-height:11in;margin:0 auto;padding:.63in 1in .56in;box-sizing:border-box;background:#fff;box-shadow:0 2px 12px #1b2e461f;border:1px solid #d6dde6;display:flex;flex-direction:column;color:#161d29;}
.osiris-writer .ow-page-header,.osiris-writer .ow-page-footer {font-size:10pt;min-height:.32in;color:#4a5568;outline:none;overflow-wrap:anywhere;white-space:pre-wrap;}
.osiris-writer .ow-page-header {border-bottom:1px dotted #cdd5dd;margin-bottom:.24in;padding:0 0 5px;}
.osiris-writer .ow-page-footer {border-top:1px dotted #cdd5dd;margin-top:.24in;padding:5px 0 0;}
.osiris-writer .ow-page-header:empty:before,.osiris-writer .ow-page-footer:empty:before {content:attr(data-placeholder);color:#a6afbd;}
.osiris-writer .ow-editor {flex:1;min-height:8.1in;outline:none;line-height:1.5;overflow-wrap:anywhere;white-space:normal;max-width:100%;}
.osiris-writer .ow-editor:empty:before {content:attr(data-placeholder);color:#94a3b8;}
.osiris-writer .ow-editor[contenteditable="false"],.osiris-writer .ow-page-header[contenteditable="false"],.osiris-writer .ow-page-footer[contenteditable="false"] {background:#f8fafc;color:#3f4f60;}
.osiris-writer .ow-editor p {margin:0 0 .65em;}
.osiris-writer .ow-editor h1 {font-size:1.6em;margin:.5em 0 .65em;}
.osiris-writer .ow-editor h2 {font-size:1.28em;margin:.5em 0 .6em;}
.osiris-writer .ow-editor table,.osiris-writer .ow-preview-body table {border-collapse:collapse;max-width:100%;}
.osiris-writer .ow-editor td,.osiris-writer .ow-editor th,.osiris-writer .ow-preview-body td {border:1px solid #9ca3af;padding:7px;}
.osiris-writer .ow-editor [data-ow-align="left"] {text-align:left;}
.osiris-writer .ow-editor [data-ow-align="center"] {text-align:center;}
.osiris-writer .ow-editor [data-ow-align="right"] {text-align:right;}
.osiris-writer .ow-editor [data-ow-align="justify"] {text-align:justify;}
/* The alignment marker also applies to headings and list items. */
.osiris-writer .ow-editor [data-ow-break="before"] {border-top:2px dashed #9aaec5;padding-top:7px;}
.osiris-writer .ow-meta {font-size:.78rem;color:var(--ow-muted);margin:10px 0 5px;}
.osiris-writer .ow-history {border-top:1px solid var(--ow-border);padding-top:10px;display:flex;flex-direction:column;gap:5px;}
.osiris-writer .ow-history-preview {padding:16px;border:1px solid var(--ow-border);max-height:360px;overflow:auto;}
@media (max-width:1000px) { .osiris-writer .ow-layout {grid-template-columns:1fr;} .osiris-writer .ow-library {min-height:0;} }
@media print {
  .osiris-writer .ow-heading,.osiris-writer .ow-actions,.osiris-writer .ow-library,.osiris-writer .ow-toolbar,.osiris-writer .ow-ruler,.osiris-writer .ow-notice,.osiris-writer .ow-title,.osiris-writer .ow-meta,.osiris-writer .ow-history,.osiris-writer .ow-small {display:none !important;}
  .osiris-writer .ow-layout {display:block;}
  .osiris-writer .ow-workspace {border:0;padding:0;overflow:visible;background:white;}
  .osiris-writer .ow-paper {border:0;box-shadow:none;margin:0;zoom:100% !important;}
  .osiris-writer .ow-editor [data-ow-break="before"] {break-before:page;}
}

/* Writer v0.3 — logo local et bibliothèque de modèles autonomes. */
.osiris-writer .ow-page-headrow {display:flex; align-items:center; gap:11px; border-bottom:1px dotted #cdd5dd; margin-bottom:.24in; min-height:.42in; padding-bottom:5px;}
.osiris-writer .ow-page-headrow .ow-page-header {flex:1; margin:0; padding:0; border:0; min-width:0;}
.osiris-writer .ow-logo-preview {object-fit:contain; max-width:.75in; max-height:.68in; width:auto; height:auto; flex-shrink:0;}
.osiris-writer .ow-logo-preview[hidden] {display:none !important;}
.osiris-writer .ow-template-select {min-width:165px; max-width:200px;}
.osiris-writer .ow-editor ul,.osiris-writer .ow-editor ol {padding-left:1.5em; margin:.35em 0 .6em;}
.osiris-writer .ow-editor li {margin:0 0 .18em;}
.osiris-writer .ow-editor table th {background:#f2f5f8; font-weight:700;}

/* Intégration Writer dans le conteneur réel de Watch : sans effet sur les autres modules. */
#moduleContent > .osiris-writer {
  display:block;
  width:100%;
  max-width:none;
  min-width:0;
  grid-column:1/-1;
  color:#172536;
}
#moduleContent > .osiris-writer .ow-heading,
#moduleContent > .osiris-writer .ow-actions,
#moduleContent > .osiris-writer .ow-toolbar {display:flex; flex-wrap:wrap; align-items:center;}
#moduleContent > .osiris-writer .ow-layout {display:grid; grid-template-columns:210px minmax(0,1fr);}
#moduleContent > .osiris-writer .ow-main {min-width:0;}
#moduleContent > .osiris-writer .ow-paper {background:#fff; color:#161d29;}
@media (max-width:1000px) {
  #moduleContent > .osiris-writer .ow-layout {grid-template-columns:minmax(0,1fr);}
}
/* OSIRIS_WRITER_SCOPED_IN_WATCH_20261026_END */

/* OSIRIS_WRITER_TOOLS_070_BEGIN — styles limités à Osiris Writer */
.osiris-writer .ow-find-panel,
.osiris-writer .ow-table-panel {
  display:flex; flex-wrap:wrap; gap:8px; align-items:flex-end;
  margin:0; padding:10px 12px; border:1px solid #cbd5e1;
  background:#f4f7fb; color:#182b42; font-size:13px;
}
.osiris-writer .ow-find-panel[hidden],
.osiris-writer .ow-table-panel[hidden] {display:none !important;}
.osiris-writer .ow-tools-setting {min-width:95px;}
.osiris-writer .ow-tools-setting .ow-select {min-width:100px; max-width:180px;}
.osiris-writer .ow-find-input {min-width:170px;max-width:230px;flex:1 1 150px;
  padding:8px 9px;border:1px solid #aebed0;border-radius:5px;background:white;
  color:#182b42;font-size:14px;}
.osiris-writer .ow-check-label {display:inline-flex;align-items:center;gap:5px;
  font-size:12px;color:#182b42;white-space:nowrap;}
.osiris-writer .ow-find-count {font-size:12px;color:#334155;min-width:65px;}
.osiris-writer .ow-editor .ow-doc-table {width:100%;table-layout:fixed;border-collapse:collapse;}
.osiris-writer .ow-editor .ow-doc-table td,
.osiris-writer .ow-editor .ow-doc-table th {border:1px solid #94a3b8;min-width:18px;
  padding:5px;overflow-wrap:anywhere;vertical-align:top;}
.osiris-writer .ow-editor .ow-doc-table th {background:#e8eef5;font-weight:700;}
.osiris-writer .ow-editor .ow-doc-table td:focus,
.osiris-writer .ow-editor .ow-doc-table th:focus {outline:2px solid #2563eb;}
@media (max-width:650px) {
  .osiris-writer .ow-find-input {max-width:none;min-width:100px;}
  .osiris-writer .ow-find-panel,.osiris-writer .ow-table-panel {align-items:stretch;}
}
/* OSIRIS_WRITER_TOOLS_070_END */

/* OSIRIS_WRITER_BRANDING_080 — papier en-tête officiel, limité au document IOV. */
.osiris-writer .ow-paper.ow-iov-letterhead .ow-page-headrow {
  border-bottom:2px solid #b08a47;
}
.osiris-writer .ow-paper.ow-iov-letterhead .ow-page-header {
  color:#183659;font-weight:700;letter-spacing:.01em;
}
.osiris-writer .ow-paper.ow-iov-letterhead .ow-page-footer {
  border-top:1px solid #b08a47;color:#475569;font-size:8.5pt;line-height:1.3;
}

/* OSIRIS_WRITER_BRANDING_080_R4 — devise sous le nom (nouveaux documents officiels seulement). */
.osiris-writer .ow-paper.ow-iov-letterhead.ow-iov-r4 .ow-page-header::after {
  content: "Vigilance – Rigueur – Intégrité";
  display: block;
  margin-top: 2px;
  font-size: 8pt;
  font-weight: 500;
  color: #a17b38;
  letter-spacing: 0;
  line-height: 1.25;
  pointer-events: none;
}
