/* ============================================================
   FlowLab Premium System
   Couche additive : ne modifie pas les endpoints, IDs ou actions.
   ============================================================ */

:root {
  --fl-premium-bg: #050b16;
  --fl-premium-bg-2: #07111f;
  --fl-premium-surface: rgba(15, 23, 42, .82);
  --fl-premium-surface-soft: rgba(15, 23, 42, .56);
  --fl-premium-border: rgba(148, 163, 184, .18);
  --fl-premium-border-strong: rgba(86, 224, 194, .30);
  --fl-premium-text: #f8fafc;
  --fl-premium-text-2: #cbd5e1;
  --fl-premium-muted: #94a3b8;
  --fl-premium-teal: #56e0c2;
  --fl-premium-green: #34d399;
  --fl-premium-yellow: #fbbf24;
  --fl-premium-red: #fb7185;
  --fl-premium-blue: #60a5fa;
  --fl-premium-radius-sm: 10px;
  --fl-premium-radius-md: 16px;
  --fl-premium-radius-lg: 22px;
  --fl-premium-radius-xl: 28px;
  --fl-premium-shadow: 0 24px 72px rgba(0, 0, 0, .30);
  --fl-premium-shadow-strong: 0 34px 100px rgba(0, 0, 0, .42);
}

.btn {
  letter-spacing: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fl-premium-teal), #7dd3fc);
  border-color: rgba(255, 255, 255, .16);
  color: #02111a;
}

.panel,
.card,
.kpi,
.kpi-card,
.module-card,
.action-card {
  border-color: var(--fl-premium-border);
}

.empty-state-pro {
  background:
    radial-gradient(circle at 0 0, rgba(86, 224, 194, .07), transparent 34%),
    rgba(15, 23, 42, .46);
}

body.fl-page-portal {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 8%, rgba(86, 224, 194, .16), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(96, 165, 250, .15), transparent 32%),
    linear-gradient(145deg, var(--fl-premium-bg), var(--fl-premium-bg-2) 56%, #08111d);
}

body.fl-page-portal::before {
  opacity: .16;
}

.portal-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.portal-brand .mark {
  flex: 0 0 auto;
}

.portal-brand h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
}

.portal-brand p {
  margin: 5px 0 0;
  color: var(--fl-premium-muted);
  font-size: 12px;
  font-weight: 800;
}

.portal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.portal-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--fl-premium-border);
  background: rgba(255, 255, 255, .045);
  color: var(--fl-premium-text-2);
  text-decoration: none;
  font-size: 12px;
  font-weight: 850;
}

.portal-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  gap: 26px;
  padding: 8px 0 34px;
}

.portal-hero-premium {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  min-width: 0;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--fl-premium-border);
  border-radius: var(--fl-premium-radius-xl);
  background:
    radial-gradient(circle at 10% 0%, rgba(86, 224, 194, .13), transparent 34%),
    linear-gradient(180deg, rgba(15, 23, 42, .78), rgba(2, 6, 23, .36));
  box-shadow: var(--fl-premium-shadow);
}

.portal-kicker,
.kicker {
  color: var(--fl-premium-teal);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 950;
}

.hero-copy h2,
.hero-copy h1 {
  margin: 0;
  max-width: 830px;
  color: var(--fl-premium-text);
  font-size: clamp(38px, 5.8vw, 64px);
  line-height: .98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--fl-premium-text-2);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 26px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions .btn,
.hero-actions .portal-link {
  min-height: 44px;
  padding-inline: 16px;
}

.proof-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.proof-pill {
  min-width: 0;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(2, 6, 23, .30);
}

.proof-pill strong {
  display: block;
  color: var(--fl-premium-text);
  font-size: 13px;
}

.proof-pill span {
  display: block;
  margin-top: 4px;
  color: var(--fl-premium-muted);
  font-size: 12px;
  line-height: 1.4;
}

.secure-access-panel {
  min-width: 0;
  border: 1px solid var(--fl-premium-border-strong);
  border-radius: var(--fl-premium-radius-xl);
  background:
    radial-gradient(circle at 100% 0%, rgba(86, 224, 194, .12), transparent 34%),
    rgba(15, 23, 42, .84);
  box-shadow: var(--fl-premium-shadow-strong);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.secure-access-panel .panel-top {
  padding: 22px;
}

.secure-access-panel .views {
  padding: 0 22px 22px;
}

.secure-access-panel .login-card,
.secure-access-panel .change-password-card {
  width: 100%;
  margin: 0;
  background: rgba(2, 6, 23, .32);
}

.portal-section {
  border: 1px solid var(--fl-premium-border);
  border-radius: var(--fl-premium-radius-xl);
  background: rgba(15, 23, 42, .58);
  box-shadow: var(--fl-premium-shadow);
  padding: clamp(20px, 3vw, 30px);
}

.portal-section-head {
  max-width: 760px;
  margin-bottom: 18px;
}

.portal-section-head h2 {
  margin: 0;
  color: var(--fl-premium-text);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.08;
  letter-spacing: 0;
}

.portal-section-head p {
  margin: 10px 0 0;
  color: var(--fl-premium-text-2);
  font-size: 14px;
  line-height: 1.55;
}

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

.portal-card {
  min-width: 0;
  min-height: 150px;
  padding: 17px;
  border: 1px solid var(--fl-premium-border);
  border-radius: var(--fl-premium-radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(2, 6, 23, .28);
}

.portal-card strong {
  display: block;
  color: var(--fl-premium-text);
  font-size: 15px;
  line-height: 1.22;
}

.portal-card span,
.portal-card p {
  display: block;
  margin: 8px 0 0;
  color: var(--fl-premium-muted);
  font-size: 13px;
  line-height: 1.48;
}

.portal-card .badge {
  margin-bottom: 12px;
}

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

.module-showcase {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.module-showcase .portal-card {
  min-height: 176px;
}

.technical-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.target-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.impact-band p {
  margin: 0;
  color: var(--fl-premium-text-2);
  line-height: 1.55;
}

.portal-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 30px;
  color: var(--fl-premium-muted);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1080px) {
  .portal-hero-premium {
    grid-template-columns: 1fr;
  }

  .secure-access-panel {
    max-width: 680px;
  }

  .module-showcase,
  .technical-grid,
  .target-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .portal-header,
  .portal-main,
  .portal-footer {
    width: min(100% - 28px, 1180px);
  }

  .portal-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-header-actions {
    justify-content: flex-start;
  }

  .hero-copy {
    padding: 24px;
  }

  .proof-strip,
  .portal-grid,
  .problem-grid,
  .module-showcase,
  .technical-grid,
  .target-grid,
  .impact-band {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .hero-actions .portal-link,
  .portal-header-actions .btn,
  .portal-header-actions .portal-link {
    width: 100%;
  }

  .secure-access-panel .panel-top,
  .secure-access-panel .views {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ============================================================
   Admin premium layer
   Scope strict : amélioration visuelle sans modifier la logique.
   ============================================================ */

body.fl-admin-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(86, 224, 194, .09), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(96, 165, 250, .08), transparent 30%),
    #050b16;
}

body.fl-admin-page .topbar {
  border: 1px solid rgba(148, 163, 184, .14);
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .74)),
    rgba(15, 23, 42, .84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

body.fl-admin-page .top-title h1 {
  color: var(--fl-premium-text);
  letter-spacing: 0;
}

body.fl-admin-page .top-title p,
body.fl-admin-page .section-head p,
body.fl-admin-page .panel-title span,
body.fl-admin-page .table-toolbar-title span {
  color: var(--fl-premium-text-2);
}

body.fl-admin-page .sidebar {
  background:
    radial-gradient(circle at 18% 0%, rgba(86, 224, 194, .08), transparent 28%),
    rgba(2, 6, 23, .88);
}

body.fl-admin-page .nav-btn {
  border: 1px solid rgba(148, 163, 184, .10);
}

body.fl-admin-page .nav-btn.active,
body.fl-admin-page .nav-btn:hover,
body.fl-admin-page .nav-btn:focus-visible {
  border-color: rgba(86, 224, 194, .28);
  background:
    linear-gradient(135deg, rgba(86, 224, 194, .13), rgba(96, 165, 250, .08)),
    rgba(15, 23, 42, .58);
}

body.fl-admin-page .section-head {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 0 0, rgba(86, 224, 194, .08), transparent 34%),
    rgba(15, 23, 42, .50);
}

body.fl-admin-page .section-head h2 {
  color: var(--fl-premium-text);
  letter-spacing: 0;
}

body.fl-admin-page .filter-shell,
body.fl-admin-page .panel,
body.fl-admin-page .kpi-card {
  border-color: rgba(148, 163, 184, .15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)),
    rgba(15, 23, 42, .62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}

body.fl-admin-page .kpi-card {
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

body.fl-admin-page .kpi-card[data-action]:hover,
body.fl-admin-page .kpi-card[data-action]:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(86, 224, 194, .30);
  background:
    linear-gradient(180deg, rgba(86, 224, 194, .055), rgba(255, 255, 255, .018)),
    rgba(15, 23, 42, .70);
}

body.fl-admin-page .kpi-label {
  color: #dbeafe;
  font-weight: 900;
}

body.fl-admin-page .kpi-note {
  color: var(--fl-premium-muted);
}

body.fl-admin-page .kpi-chip {
  border: 1px solid rgba(86, 224, 194, .24);
  background: rgba(86, 224, 194, .10);
  color: var(--fl-premium-teal);
}

body.fl-admin-page .panel-head {
  border-bottom-color: rgba(148, 163, 184, .12);
}

body.fl-admin-page .panel-title strong,
body.fl-admin-page .table-toolbar-title strong {
  color: var(--fl-premium-text);
}

body.fl-admin-page .table-tools,
body.fl-admin-page .filters-bar {
  border-radius: 18px;
  background: rgba(2, 6, 23, .22);
}

body.fl-admin-page .empty-state-pro {
  border: 1px solid rgba(148, 163, 184, .15);
  color: var(--fl-premium-text-2);
}

body.fl-admin-page .empty-state-pro strong {
  color: var(--fl-premium-text);
}

body.fl-admin-page .endpoint-note {
  border-color: rgba(148, 163, 184, .14);
  background: rgba(2, 6, 23, .28);
  color: var(--fl-premium-text-2);
}

body.fl-admin-page .subtab,
body.fl-admin-page .view-toggle-btn {
  letter-spacing: 0;
}

body.fl-admin-page .table-wrap {
  border-radius: 18px;
}

body.fl-admin-page th {
  color: #dbeafe;
}

@media (max-width: 920px) {
  body.fl-admin-page .section-head {
    padding: 14px;
  }

  body.fl-admin-page .table-tools,
  body.fl-admin-page .filters-bar {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  body.fl-admin-page .section-head {
    border-radius: 16px;
  }

  body.fl-admin-page .kpi-card {
    min-height: 104px;
  }
}

/* Admin aesthetic pass : densité opérationnelle, rendu plus premium. */

body.fl-admin-page .main {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .20), transparent 260px),
    transparent;
}

body.fl-admin-page .content-grid {
  gap: 18px;
}

body.fl-admin-page .topbar {
  padding: 18px 22px;
  border-radius: 24px;
}

body.fl-admin-page .topbar::before {
  content: "";
  width: 6px;
  align-self: stretch;
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--fl-premium-teal), var(--fl-premium-blue));
  grid-row: 1 / span 2;
}

body.fl-admin-page .top-title {
  display: grid;
  gap: 5px;
}

body.fl-admin-page .top-title h1 {
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.04;
}

body.fl-admin-page .top-title p {
  max-width: 720px;
  font-size: 13px;
  line-height: 1.45;
}

body.fl-admin-page .topbar-user .pill {
  border: 1px solid rgba(148, 163, 184, .15);
  background: rgba(2, 6, 23, .30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

body.fl-admin-page .sidebar {
  border-right-color: rgba(148, 163, 184, .14);
  box-shadow: 18px 0 46px rgba(0, 0, 0, .18);
}

body.fl-admin-page .brand {
  padding: 2px;
}

body.fl-admin-page .brand strong {
  color: var(--fl-premium-text);
  letter-spacing: 0;
}

body.fl-admin-page .brand small,
body.fl-admin-page .nav-section-label {
  color: rgba(203, 213, 225, .78);
}

body.fl-admin-page .nav-btn {
  min-height: 52px;
  border-radius: 17px;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

body.fl-admin-page .nav-btn:hover,
body.fl-admin-page .nav-btn:focus-visible {
  transform: translateX(2px);
}

body.fl-admin-page .nav-text strong {
  color: rgba(248, 250, 252, .94);
}

body.fl-admin-page .nav-text span {
  color: rgba(203, 213, 225, .64);
}

body.fl-admin-page .filter-shell {
  padding: 14px;
  border-radius: 22px;
}

body.fl-admin-page .filter-toggle {
  min-height: 38px;
  border-radius: 999px;
}

body.fl-admin-page .filters-bar {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .10);
}

body.fl-admin-page .field label {
  color: rgba(203, 213, 225, .82);
  font-size: 11px;
  font-weight: 850;
}

body.fl-admin-page input,
body.fl-admin-page select,
body.fl-admin-page textarea {
  border-color: rgba(148, 163, 184, .16);
  background: rgba(2, 6, 23, .34);
}

body.fl-admin-page input:focus,
body.fl-admin-page select:focus,
body.fl-admin-page textarea:focus {
  border-color: rgba(86, 224, 194, .42);
  box-shadow: 0 0 0 3px rgba(86, 224, 194, .10);
}

body.fl-admin-page .section-head {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

body.fl-admin-page .section-head h2 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.08;
}

body.fl-admin-page .section-head p {
  max-width: 760px;
  font-size: 13px;
  line-height: 1.5;
}

body.fl-admin-page .cards {
  gap: 14px;
}

body.fl-admin-page .kpi-card {
  min-height: 126px;
  border-radius: 22px;
  padding: 17px;
  overflow: hidden;
  position: relative;
}

body.fl-admin-page .kpi-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(86, 224, 194, .08);
  pointer-events: none;
}

body.fl-admin-page .kpi-top {
  position: relative;
  z-index: 1;
  align-items: flex-start;
  gap: 10px;
}

body.fl-admin-page .kpi-value {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--fl-premium-text);
  letter-spacing: 0;
}

body.fl-admin-page .kpi-note {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  line-height: 1.35;
}

body.fl-admin-page .panel {
  border-radius: 22px;
  overflow: hidden;
}

body.fl-admin-page .panel-head {
  padding: 18px 18px 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .030), transparent),
    rgba(2, 6, 23, .18);
}

body.fl-admin-page .panel-body {
  padding: 18px;
}

body.fl-admin-page .panel-title {
  display: grid;
  gap: 4px;
}

body.fl-admin-page .panel-title strong,
body.fl-admin-page .table-toolbar-title strong {
  font-size: 15px;
  line-height: 1.2;
}

body.fl-admin-page .panel-title span,
body.fl-admin-page .table-toolbar-title span {
  font-size: 12px;
  line-height: 1.4;
}

body.fl-admin-page .table-tools {
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, .10);
}

body.fl-admin-page .table-wrap {
  border: 1px solid rgba(148, 163, 184, .13);
  background: rgba(2, 6, 23, .25);
}

body.fl-admin-page table {
  border-collapse: separate;
  border-spacing: 0;
}

body.fl-admin-page th {
  background: rgba(15, 23, 42, .92);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

body.fl-admin-page td {
  border-top-color: rgba(148, 163, 184, .09);
}

body.fl-admin-page tbody tr:hover td {
  background: rgba(86, 224, 194, .035);
}

body.fl-admin-page .empty-state-pro {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 10%, rgba(86, 224, 194, .10), transparent 30%),
    rgba(2, 6, 23, .25);
}

body.fl-admin-page .empty-state-pro span {
  color: var(--fl-premium-muted);
  line-height: 1.45;
}

body.fl-admin-page .subtabs {
  padding: 5px;
  border: 1px solid rgba(148, 163, 184, .10);
  border-radius: 999px;
  background: rgba(2, 6, 23, .22);
}

body.fl-admin-page .subtab {
  border-radius: 999px;
}

body.fl-admin-page .drawer,
body.fl-admin-page .modal {
  border-color: rgba(148, 163, 184, .16);
  box-shadow: var(--fl-premium-shadow-strong);
}

@media (max-width: 1100px) {
  body.fl-admin-page .topbar::before {
    display: none;
  }

  body.fl-admin-page .topbar {
    padding: 16px;
  }
}

@media (max-width: 920px) {
  body.fl-admin-page .content-grid {
    gap: 14px;
  }

  body.fl-admin-page .filter-shell,
  body.fl-admin-page .section-head,
  body.fl-admin-page .panel {
    border-radius: 18px;
  }

  body.fl-admin-page .panel-head,
  body.fl-admin-page .panel-body {
    padding: 14px;
  }

  body.fl-admin-page .subtabs {
    border-radius: 18px;
    overflow-x: auto;
  }

  body.fl-admin-page .subtab {
    flex: 0 0 auto;
  }
}

/* ============================================================
   Superviseur premium layer
   Centre de commandement sanitaire, sans modifier la logique.
   ============================================================ */

body.fl-superviseur-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(86, 224, 194, .10), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(96, 165, 250, .10), transparent 32%),
    #050b16;
}

body.fl-superviseur-page .main {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .22), transparent 280px),
    transparent;
}

body.fl-superviseur-page .topbar {
  padding: 18px 22px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .92), rgba(2, 6, 23, .74)),
    rgba(15, 23, 42, .84);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .22);
}

body.fl-superviseur-page .topbar::before {
  content: "";
  width: 6px;
  align-self: stretch;
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--fl-premium-teal), var(--fl-premium-blue));
}

body.fl-superviseur-page .top-title {
  display: grid;
  gap: 5px;
}

body.fl-superviseur-page .top-title h1 {
  color: var(--fl-premium-text);
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.04;
  letter-spacing: 0;
}

body.fl-superviseur-page .top-title p {
  max-width: 780px;
  color: var(--fl-premium-text-2);
  font-size: 13px;
  line-height: 1.45;
}

body.fl-superviseur-page .topbar-user .pill,
body.fl-superviseur-page .live-pill {
  border: 1px solid rgba(148, 163, 184, .15);
  background: rgba(2, 6, 23, .30);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

body.fl-superviseur-page .sidebar {
  border-right-color: rgba(148, 163, 184, .14);
  background:
    radial-gradient(circle at 18% 0%, rgba(86, 224, 194, .08), transparent 28%),
    rgba(2, 6, 23, .90);
  box-shadow: 18px 0 46px rgba(0, 0, 0, .18);
}

body.fl-superviseur-page .brand {
  padding: 2px;
}

body.fl-superviseur-page .brand strong {
  color: var(--fl-premium-text);
  letter-spacing: 0;
}

body.fl-superviseur-page .brand small {
  color: rgba(203, 213, 225, .78);
}

body.fl-superviseur-page .nav-btn {
  width: 100%;
  height: auto;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, .10);
  border-radius: 16px;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

body.fl-superviseur-page .nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
}

body.fl-superviseur-page .nav-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

body.fl-superviseur-page .nav-text strong {
  color: rgba(248, 250, 252, .94);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 850;
}

body.fl-superviseur-page .nav-text span {
  color: rgba(203, 213, 225, .64);
  font-size: 11px;
  line-height: 1.25;
}

body.fl-superviseur-page .nav-btn.active,
body.fl-superviseur-page .nav-btn:hover,
body.fl-superviseur-page .nav-btn:focus-visible {
  border-color: rgba(86, 224, 194, .30);
  background:
    linear-gradient(135deg, rgba(86, 224, 194, .13), rgba(96, 165, 250, .08)),
    rgba(15, 23, 42, .60);
}

body.fl-superviseur-page .nav-btn:hover,
body.fl-superviseur-page .nav-btn:focus-visible {
  transform: translateX(1px);
}

body.fl-superviseur-page .superviseur-filters {
  margin: 14px 0 18px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .030), rgba(255, 255, 255, .012)),
    rgba(15, 23, 42, .58);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .16);
}

body.fl-superviseur-page .superviseur-filter-shell {
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

body.fl-superviseur-page .superviseur-filter-toggle {
  width: max-content;
  min-height: 38px;
  border-radius: 999px;
}

body.fl-superviseur-page .superviseur-filters.filters-collapsed {
  display: none;
}

body.fl-superviseur-page .superviseur-filters label,
body.fl-superviseur-page .mini-label {
  color: rgba(203, 213, 225, .82);
  font-weight: 850;
}

body.fl-superviseur-page input,
body.fl-superviseur-page select,
body.fl-superviseur-page textarea,
body.fl-superviseur-page .select,
body.fl-superviseur-page .input {
  border-color: rgba(148, 163, 184, .16);
  background: rgba(2, 6, 23, .34);
}

body.fl-superviseur-page input:focus,
body.fl-superviseur-page select:focus,
body.fl-superviseur-page textarea:focus,
body.fl-superviseur-page .select:focus,
body.fl-superviseur-page .input:focus {
  border-color: rgba(86, 224, 194, .42);
  box-shadow: 0 0 0 3px rgba(86, 224, 194, .10);
}

body.fl-superviseur-page .decision-main-card,
body.fl-superviseur-page .decision-panel,
body.fl-superviseur-page .decision-queue-list-card,
body.fl-superviseur-page .decision-focus-card,
body.fl-superviseur-page .globe-header-card,
body.fl-superviseur-page .globe-visual-card,
body.fl-superviseur-page .globe-side-panel,
body.fl-superviseur-page .reuse-header-card,
body.fl-superviseur-page .reuse-flow-card,
body.fl-superviseur-page .reuse-table-card,
body.fl-superviseur-page .reuse-insight-card,
body.fl-superviseur-page .radar-header-card,
body.fl-superviseur-page .radar-map-card,
body.fl-superviseur-page .radar-signals-card,
body.fl-superviseur-page .planner-header-card,
body.fl-superviseur-page .planner-list-card,
body.fl-superviseur-page .planner-detail-card,
body.fl-superviseur-page .resources-header-card,
body.fl-superviseur-page .resources-table-card,
body.fl-superviseur-page .resources-insight-card,
body.fl-superviseur-page .calendar-header-card,
body.fl-superviseur-page .calendar-table-card,
body.fl-superviseur-page .calendar-insight-card,
body.fl-superviseur-page .urgent-header-card,
body.fl-superviseur-page .urgent-table-card,
body.fl-superviseur-page .urgent-focus-card,
body.fl-superviseur-page .zones-header-card,
body.fl-superviseur-page .zones-table-card,
body.fl-superviseur-page .zone-detail-card,
body.fl-superviseur-page .reports-header-card,
body.fl-superviseur-page .reports-table-card,
body.fl-superviseur-page .reports-insight-card,
body.fl-superviseur-page .command-kpi-card {
  border-color: rgba(148, 163, 184, .15);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015)),
    rgba(15, 23, 42, .64);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}

body.fl-superviseur-page .decision-main-card,
body.fl-superviseur-page .globe-header-card,
body.fl-superviseur-page .reuse-header-card,
body.fl-superviseur-page .radar-header-card,
body.fl-superviseur-page .planner-header-card,
body.fl-superviseur-page .resources-header-card,
body.fl-superviseur-page .calendar-header-card,
body.fl-superviseur-page .urgent-header-card,
body.fl-superviseur-page .zones-header-card,
body.fl-superviseur-page .reports-header-card {
  overflow: hidden;
  position: relative;
}

body.fl-superviseur-page .decision-main-card::before,
body.fl-superviseur-page .globe-header-card::before,
body.fl-superviseur-page .reuse-header-card::before,
body.fl-superviseur-page .radar-header-card::before,
body.fl-superviseur-page .planner-header-card::before,
body.fl-superviseur-page .resources-header-card::before,
body.fl-superviseur-page .calendar-header-card::before,
body.fl-superviseur-page .urgent-header-card::before,
body.fl-superviseur-page .zones-header-card::before,
body.fl-superviseur-page .reports-header-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--fl-premium-teal), rgba(96, 165, 250, .80), transparent);
  pointer-events: none;
}

body.fl-superviseur-page .section-heading h2,
body.fl-superviseur-page .globe-header-card h2,
body.fl-superviseur-page .reuse-header-card h2,
body.fl-superviseur-page .radar-header-card h2,
body.fl-superviseur-page .planner-header-card h2,
body.fl-superviseur-page .resources-header-card h2,
body.fl-superviseur-page .calendar-header-card h2,
body.fl-superviseur-page .urgent-header-card h2,
body.fl-superviseur-page .zones-header-card h2,
body.fl-superviseur-page .reports-header-card h2,
body.fl-superviseur-page .decision-queue-header h2 {
  color: var(--fl-premium-text);
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.08;
  letter-spacing: 0;
}

body.fl-superviseur-page .section-subtitle,
body.fl-superviseur-page .recommendation-box p,
body.fl-superviseur-page .planner-detail-box p,
body.fl-superviseur-page .resources-capacity-box p,
body.fl-superviseur-page .calendar-next-box p,
body.fl-superviseur-page .reports-primary-box p,
body.fl-superviseur-page .zone-detail-subtitle {
  color: var(--fl-premium-text-2);
  line-height: 1.5;
}

body.fl-superviseur-page .section-kicker {
  color: var(--fl-premium-teal);
  letter-spacing: .12em;
}

body.fl-superviseur-page .command-kpi-grid,
body.fl-superviseur-page .globe-summary-grid,
body.fl-superviseur-page .reuse-summary-grid,
body.fl-superviseur-page .radar-summary-grid,
body.fl-superviseur-page .planner-summary-grid,
body.fl-superviseur-page .resources-summary-grid,
body.fl-superviseur-page .calendar-summary-grid,
body.fl-superviseur-page .urgent-summary-grid,
body.fl-superviseur-page .zones-summary-grid,
body.fl-superviseur-page .reports-summary-grid {
  gap: 14px;
}

body.fl-superviseur-page .command-kpi-card {
  min-height: 126px;
  border-radius: 22px;
  padding: 17px;
  position: relative;
  overflow: hidden;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

body.fl-superviseur-page .command-kpi-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 14px auto;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(86, 224, 194, .08);
  pointer-events: none;
}

body.fl-superviseur-page .command-kpi-card:hover,
body.fl-superviseur-page .command-kpi-card:focus-within {
  transform: translateY(-2px);
  border-color: rgba(86, 224, 194, .30);
  background:
    linear-gradient(180deg, rgba(86, 224, 194, .055), rgba(255, 255, 255, .018)),
    rgba(15, 23, 42, .70);
}

body.fl-superviseur-page .command-kpi-card strong,
body.fl-superviseur-page .risk-gauge span,
body.fl-superviseur-page .decision-focus-score span,
body.fl-superviseur-page .planner-detail-score span,
body.fl-superviseur-page .zone-detail-score span,
body.fl-superviseur-page .urgent-focus-priority span {
  color: var(--fl-premium-text);
  letter-spacing: 0;
}

body.fl-superviseur-page .decision-status-row > div,
body.fl-superviseur-page .recommendation-box,
body.fl-superviseur-page .decision-focus-box,
body.fl-superviseur-page .planner-detail-box,
body.fl-superviseur-page .resources-capacity-box,
body.fl-superviseur-page .calendar-next-box,
body.fl-superviseur-page .reports-primary-box,
body.fl-superviseur-page .zone-detail-recommendation,
body.fl-superviseur-page .urgent-focus-box,
body.fl-superviseur-page .reuse-main-source-box {
  border-color: rgba(148, 163, 184, .13);
  background: rgba(2, 6, 23, .28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

body.fl-superviseur-page .panel-title-row {
  gap: 14px;
}

body.fl-superviseur-page .panel-title-row h3 {
  color: var(--fl-premium-text);
  font-size: 16px;
  line-height: 1.18;
}

body.fl-superviseur-page .decision-item,
body.fl-superviseur-page .planner-item,
body.fl-superviseur-page .globe-hotspot-item,
body.fl-superviseur-page .reuse-tab,
body.fl-superviseur-page .resources-tab,
body.fl-superviseur-page .calendar-tab,
body.fl-superviseur-page .urgent-tab,
body.fl-superviseur-page .view-toggle-btn {
  border-color: rgba(148, 163, 184, .14);
  background: rgba(2, 6, 23, .25);
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

body.fl-superviseur-page .decision-item:hover,
body.fl-superviseur-page .planner-item:hover,
body.fl-superviseur-page .globe-hotspot-item:hover,
body.fl-superviseur-page .decision-item.active,
body.fl-superviseur-page .planner-item.active,
body.fl-superviseur-page .reuse-tab.active,
body.fl-superviseur-page .resources-tab.active,
body.fl-superviseur-page .calendar-tab.active,
body.fl-superviseur-page .urgent-tab.active,
body.fl-superviseur-page .view-toggle-btn.active {
  border-color: rgba(86, 224, 194, .30);
  background:
    linear-gradient(135deg, rgba(86, 224, 194, .10), rgba(96, 165, 250, .055)),
    rgba(15, 23, 42, .64);
}

body.fl-superviseur-page .decision-item:hover,
body.fl-superviseur-page .planner-item:hover,
body.fl-superviseur-page .globe-hotspot-item:hover {
  transform: translateY(-1px);
}

body.fl-superviseur-page .table-wrap {
  border: 1px solid rgba(148, 163, 184, .13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 16% 0%, rgba(86, 224, 194, .07), transparent 32%),
    rgba(2, 6, 23, .25);
}

body.fl-superviseur-page th {
  color: #dbeafe;
  background: rgba(15, 23, 42, .92);
}

body.fl-superviseur-page tbody tr:hover td {
  background: rgba(86, 224, 194, .035);
}

body.fl-superviseur-page .empty-state-pro {
  min-height: 96px;
  display: grid;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, .15);
  border-radius: 18px;
  background:
    radial-gradient(circle at 14% 10%, rgba(86, 224, 194, .10), transparent 30%),
    rgba(2, 6, 23, .25);
  color: var(--fl-premium-text-2);
}

body.fl-superviseur-page .empty-state-pro strong {
  color: var(--fl-premium-text);
}

body.fl-superviseur-page .empty-state-pro span {
  color: var(--fl-premium-muted);
  line-height: 1.45;
}

body.fl-superviseur-page .globe-canvas-shell,
body.fl-superviseur-page .radar-orbit {
  border-color: rgba(148, 163, 184, .15);
  background:
    radial-gradient(circle at 50% 45%, rgba(86, 224, 194, .10), transparent 36%),
    rgba(2, 6, 23, .28);
}

body.fl-superviseur-page .drawer {
  border-color: rgba(148, 163, 184, .16);
  box-shadow: var(--fl-premium-shadow-strong);
}

@media (max-width: 1100px) {
  body.fl-superviseur-page .topbar::before {
    display: none;
  }

  body.fl-superviseur-page .topbar {
    padding: 16px;
  }
}

@media (max-width: 920px) {
  body.fl-superviseur-page .superviseur-filter-shell {
    margin: 0 0 12px;
  }

  body.fl-superviseur-page .superviseur-filter-toggle {
    width: 100%;
    justify-content: center;
  }

  body.fl-superviseur-page .superviseur-filters {
    border-radius: 18px;
    margin: 0 0 12px;
  }

  body.fl-superviseur-page .decision-main-card,
  body.fl-superviseur-page .decision-panel,
  body.fl-superviseur-page .decision-queue-list-card,
  body.fl-superviseur-page .decision-focus-card,
  body.fl-superviseur-page .globe-header-card,
  body.fl-superviseur-page .globe-visual-card,
  body.fl-superviseur-page .globe-side-panel,
  body.fl-superviseur-page .reuse-header-card,
  body.fl-superviseur-page .reuse-flow-card,
  body.fl-superviseur-page .reuse-table-card,
  body.fl-superviseur-page .reuse-insight-card,
  body.fl-superviseur-page .radar-header-card,
  body.fl-superviseur-page .radar-map-card,
  body.fl-superviseur-page .radar-signals-card,
  body.fl-superviseur-page .planner-header-card,
  body.fl-superviseur-page .planner-list-card,
  body.fl-superviseur-page .planner-detail-card,
  body.fl-superviseur-page .resources-header-card,
  body.fl-superviseur-page .resources-table-card,
  body.fl-superviseur-page .resources-insight-card,
  body.fl-superviseur-page .calendar-header-card,
  body.fl-superviseur-page .calendar-table-card,
  body.fl-superviseur-page .calendar-insight-card,
  body.fl-superviseur-page .urgent-header-card,
  body.fl-superviseur-page .urgent-table-card,
  body.fl-superviseur-page .urgent-focus-card,
  body.fl-superviseur-page .zones-header-card,
  body.fl-superviseur-page .zones-table-card,
  body.fl-superviseur-page .zone-detail-card,
  body.fl-superviseur-page .reports-header-card,
  body.fl-superviseur-page .reports-table-card,
  body.fl-superviseur-page .reports-insight-card {
    border-radius: 18px;
  }

  body.fl-superviseur-page .command-kpi-card {
    min-height: 108px;
  }

  body.fl-superviseur-page .panel-title-row {
    align-items: flex-start;
  }
}

/* Superviseur typography tune : alignement avec portail et admin. */

body.fl-superviseur-page .top-title h1 {
  font-size: clamp(23px, 2vw, 30px);
}

body.fl-superviseur-page .section-heading h2,
body.fl-superviseur-page .globe-header-card h2,
body.fl-superviseur-page .reuse-header-card h2,
body.fl-superviseur-page .radar-header-card h2,
body.fl-superviseur-page .planner-header-card h2,
body.fl-superviseur-page .resources-header-card h2,
body.fl-superviseur-page .calendar-header-card h2,
body.fl-superviseur-page .urgent-header-card h2,
body.fl-superviseur-page .zones-header-card h2,
body.fl-superviseur-page .reports-header-card h2,
body.fl-superviseur-page .decision-queue-header h2 {
  font-size: clamp(20px, 1.7vw, 27px);
}

body.fl-superviseur-page .panel-title-row h3 {
  font-size: 15px;
  line-height: 1.22;
}

body.fl-superviseur-page .section-subtitle,
body.fl-superviseur-page .top-title p,
body.fl-superviseur-page .recommendation-box p,
body.fl-superviseur-page .planner-detail-box p,
body.fl-superviseur-page .resources-capacity-box p,
body.fl-superviseur-page .calendar-next-box p,
body.fl-superviseur-page .reports-primary-box p,
body.fl-superviseur-page .zone-detail-subtitle {
  font-size: 13px;
}

body.fl-superviseur-page .section-kicker,
body.fl-superviseur-page .mini-label {
  font-size: 10px;
}

body.fl-superviseur-page .command-kpi-card strong {
  font-size: clamp(22px, 2.2vw, 30px);
}

body.fl-superviseur-page .command-kpi-card small {
  font-size: 11px;
  line-height: 1.3;
}

body.fl-superviseur-page .risk-gauge {
  width: 104px;
  height: 104px;
}

body.fl-superviseur-page .risk-gauge span,
body.fl-superviseur-page .decision-focus-score span,
body.fl-superviseur-page .planner-detail-score span,
body.fl-superviseur-page .zone-detail-score span,
body.fl-superviseur-page .urgent-focus-priority span {
  font-size: clamp(22px, 2.2vw, 30px);
}

body.fl-superviseur-page .risk-gauge small,
body.fl-superviseur-page .decision-focus-score small,
body.fl-superviseur-page .planner-detail-score small,
body.fl-superviseur-page .zone-detail-score small,
body.fl-superviseur-page .urgent-focus-priority small {
  font-size: 10px;
}

body.fl-superviseur-page .decision-status-row strong,
body.fl-superviseur-page .decision-focus-grid strong,
body.fl-superviseur-page .planner-detail-grid strong,
body.fl-superviseur-page .zone-detail-grid strong,
body.fl-superviseur-page .urgent-focus-grid strong,
body.fl-superviseur-page .reports-summary-grid strong,
body.fl-superviseur-page .calendar-summary-grid strong,
body.fl-superviseur-page .resources-summary-grid strong,
body.fl-superviseur-page .planner-summary-grid strong,
body.fl-superviseur-page .radar-summary-grid strong,
body.fl-superviseur-page .reuse-summary-grid strong,
body.fl-superviseur-page .globe-summary-grid strong,
body.fl-superviseur-page .zones-summary-grid strong,
body.fl-superviseur-page .urgent-summary-grid strong {
  font-size: 14px;
}

body.fl-superviseur-page .decision-focus-open-btn,
body.fl-superviseur-page .planner-open-btn,
body.fl-superviseur-page .urgent-open-btn,
body.fl-superviseur-page .zone-detail-btn,
body.fl-superviseur-page .calendar-open-btn,
body.fl-superviseur-page .report-export-btn {
  font-size: 12px;
  line-height: 1.2;
}

body.fl-superviseur-page th,
body.fl-superviseur-page td {
  font-size: 12px;
}

body.fl-superviseur-page .empty-state-pro strong {
  font-size: 13px;
}

body.fl-superviseur-page .empty-state-pro span {
  font-size: 12px;
}

@media (max-width: 920px) {
  body.fl-superviseur-page .top-title h1 {
    font-size: 18px;
  }

  body.fl-superviseur-page .section-heading h2,
  body.fl-superviseur-page .globe-header-card h2,
  body.fl-superviseur-page .reuse-header-card h2,
  body.fl-superviseur-page .radar-header-card h2,
  body.fl-superviseur-page .planner-header-card h2,
  body.fl-superviseur-page .resources-header-card h2,
  body.fl-superviseur-page .calendar-header-card h2,
  body.fl-superviseur-page .urgent-header-card h2,
  body.fl-superviseur-page .zones-header-card h2,
  body.fl-superviseur-page .reports-header-card h2,
  body.fl-superviseur-page .decision-queue-header h2 {
    font-size: 19px;
  }

  body.fl-superviseur-page .risk-gauge {
    width: 92px;
    height: 92px;
  }
}
