@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Palette B2B Slate & Technological Blue */
  --bg-dark: #0f172a;
  --bg-card: #1e293b;
  --bg-card-hover: #243248;
  --bg-card-subtle: #172337;
  
  --border-subtle: #334155;
  --border-focus: #38bdf8;
  --border-active: #2563eb;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  --primary-glow: rgba(56, 189, 248, 0.15);

  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --purple: #a855f7;
  --purple-bg: rgba(168, 85, 247, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.5);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.theme-briefme {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  background: radial-gradient(circle at 50% 0%, #1e293b 0%, #0f172a 70%);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Containers */
.container {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.brief-main-container {
  flex: 1;
  padding-bottom: 3rem;
}

/* ===================================================
   NAVIGATION BAR
   =================================================== */
.navbar {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-icon {
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.brand-text span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-b2b {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: #1e293b;
  color: #38bdf8;
  border: 1px solid #334155;
}

.reassurance-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(30, 41, 59, 0.7);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #334155;
}

.status-shield {
  font-size: 0.85rem;
}

.nav-link-saas {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link-saas:hover {
  color: var(--accent-cyan);
}

/* ===================================================
   HERO & REASSURANCE SECTION
   =================================================== */
.hero-section {
  text-align: center;
  margin: 2.5rem 0 2rem 0;
}

.hero-badge-wrap {
  margin-bottom: 0.85rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  background: rgba(37, 99, 235, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.hero-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.75rem auto;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: var(--text-main);
}

.security-guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.security-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  text-align: left;
}

.sec-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.security-item strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.security-item small {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.15rem;
}

/* ===================================================
   CARDS & CONTAINERS
   =================================================== */
.brief-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.card-section-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.card-section-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Alert Box */
.alert-box {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  animation: fadeIn 0.2s ease;
}

.alert-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
}

.alert-success {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: #6ee7b7;
}

/* ===================================================
   1. ZONE DE DRAG & DROP
   =================================================== */
.drop-zone {
  border: 2px dashed #475569;
  border-radius: var(--radius-lg);
  padding: 2.75rem 1.5rem 1.5rem 1.5rem;
  text-align: center;
  background: rgba(15, 23, 42, 0.4);
  transition: all 0.2s ease;
  cursor: pointer;
}

.drop-zone:hover {
  border-color: #38bdf8;
  background: rgba(30, 41, 59, 0.5);
}

.drop-zone.drag-active {
  border-color: var(--accent-cyan);
  background: rgba(37, 99, 235, 0.12);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
  transform: scale(1.008);
}

.drop-icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.drop-icon {
  stroke: #38bdf8;
}

.drop-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.drop-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.drop-desc strong {
  color: #38bdf8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #334155;
  color: #ffffff;
  border: 1px solid #475569;
}

.btn-secondary:hover {
  background: #475569;
}

.btn-outline {
  background: transparent;
  color: #38bdf8;
  border: 1px solid #38bdf8;
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
}

.btn-sm {
  font-size: 0.82rem;
  padding: 0.4rem 0.85rem;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
}

.btn-block {
  width: 100%;
}

.drop-footer {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
}

.btn-demo-link {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease;
}

.btn-demo-link:hover {
  color: #7dd3fc;
}

/* ===================================================
   2. ÉTAT DE CHARGEMENT
   =================================================== */
.loading-card {
  text-align: center;
  padding: 3rem 1.5rem;
}

.loading-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 1.25rem auto;
  border: 3.5px solid rgba(56, 189, 248, 0.2);
  border-top-color: #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.loading-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.progress-bar-wrap {
  max-width: 320px;
  height: 6px;
  background: #334155;
  border-radius: 9999px;
  margin: 0 auto;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  width: 70%;
  animation: pulseWidth 1.5s ease-in-out infinite;
}

/* ===================================================
   3. RESTITUTION VISUELLE DES RÉSULTATS
   =================================================== */
.results-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.25rem;
}

.results-top-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
}

.badge-success-sm {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--success-bg);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
}

/* Métriques Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.metric-filename {
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.metric-accent {
  color: #38bdf8;
}

.metric-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Sélecteur d'onglets */
.sheets-card {
  padding: 1rem 1.25rem;
}

.sheets-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.sheets-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
}

.sheets-header small {
  color: var(--text-muted);
}

.sheets-tabs-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sheet-tab-btn {
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.sheet-tab-btn:hover {
  border-color: #64748b;
  color: var(--text-main);
}

.sheet-tab-btn.active {
  background: var(--primary);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

/* Grille de schéma de colonnes */
.columns-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.85rem;
}

.col-schema-card {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease;
}

.col-schema-card:hover {
  border-color: #475569;
}

.col-schema-card.is-sensitive {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.col-schema-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.col-name-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
}

.col-index-pill {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  background: #0f172a;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

.col-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  flex-shrink: 0;
}

.type-number {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.type-date,
.badge-date {
  background: var(--purple-bg);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.type-duration,
.badge-duration {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.type-text,
.badge-text {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.badge-sensitive-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fbbf24;
  background: var(--warning-bg);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
}

.col-sample-preview {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(51, 65, 85, 0.4);
}

/* Toggle mode vue brute */
.switch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
}

.switch-label input {
  display: none;
}

.switch-slider {
  width: 36px;
  height: 20px;
  background: #334155;
  border-radius: 9999px;
  position: relative;
  transition: background 0.2s ease;
}

.switch-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.switch-label input:checked + .switch-slider {
  background: var(--primary);
}

.switch-label input:checked + .switch-slider::after {
  transform: translateX(16px);
}

.switch-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Data Preview Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.data-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.data-preview-table th {
  background: #0f172a;
  color: #38bdf8;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-bottom: 1.5px solid var(--border-subtle);
  white-space: nowrap;
}

.data-preview-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  color: #e2e8f0;
  white-space: nowrap;
}

.data-preview-table tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.25);
}

.data-preview-table tbody tr:hover {
  background: rgba(37, 99, 235, 0.08);
}

.cell-pseudonymized {
  background: rgba(245, 158, 11, 0.1) !important;
  color: #fde047 !important;
  font-weight: 700;
}

/* Payload Card / JSON Viewer */
.json-viewer-wrap {
  background: #090e17;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 1rem;
  max-height: 280px;
  overflow-y: auto;
  margin: 0.75rem 0 1.25rem 0;
}

.json-code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.82rem;
  color: #7dd3fc;
  line-height: 1.5;
}

.next-step-bar {
  text-align: center;
  padding-top: 0.75rem;
}

.btn-next {
  box-shadow: 0 4px 25px rgba(37, 99, 235, 0.45);
}

/* ===================================================
   FOOTER
   =================================================== */
.app-footer {
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  background: #0a0f1d;
  padding: 2.5rem 0 2rem 0;
  margin-top: auto;
}

.footer-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0.75rem 0;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #38bdf8;
}

.footer-badge-sec {
  font-size: 0.82rem;
  color: #38bdf8;
  font-weight: 600;
}

/* Animations */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulseWidth {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(50%); }
  100% { transform: translateX(200%); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   STEPPER PROGRESS BAR
   =================================================== */
.stepper-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 700;
  background: #172337;
  border: 1px solid #334155;
  color: var(--text-dim);
  transition: all 0.2s ease;
}

.step-item.step-done {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.step-item.step-active {
  background: rgba(37, 99, 235, 0.2);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
}

.step-item.step-done .step-num {
  background: #10b981;
  color: #ffffff;
}

.step-item.step-active .step-num {
  background: #38bdf8;
  color: #0f172a;
}

.step-divider {
  width: 24px;
  height: 2px;
  background: #334155;
}

.step-divider.active {
  background: #38bdf8;
}

/* ===================================================
   INTERFACE DE CADRAGE GUIDÉ (STEP 2)
   =================================================== */
.framing-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

.framing-card-main {
  padding: 1.75rem 2rem;
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 10px 35px -5px rgba(15, 23, 42, 0.8), 0 0 20px rgba(37, 99, 235, 0.1);
}

.framing-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  padding-bottom: 1.5rem;
}

.framing-domain-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.badge-domain {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(56, 189, 248, 0.25) 100%);
  border: 1.5px solid #38bdf8;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.badge-ai-source {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #c084fc;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
}

.framing-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.framing-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Framing Configuration Form Grid */
.framing-config-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .framing-config-grid {
    grid-template-columns: 1fr;
  }
}

.framing-field-card {
  background: #152033;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.framing-field-card:hover {
  border-color: #475569;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.4);
}

.framing-field-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  cursor: pointer;
}

.field-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.field-label-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.field-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.field-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-select.framing-select {
  width: 100%;
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: var(--radius-sm);
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 16px;
  padding-right: 2.5rem;
}

.form-select.framing-select:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.filter-field-card {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .filter-field-card {
    grid-column: span 1;
  }
}

.filter-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.switch-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.switch-checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #64748b;
  border-radius: 5px;
  background: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.switch-checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
  background: #2563eb;
  border-color: #38bdf8;
}

.switch-checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.checkbox-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.filter-options-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  flex-wrap: wrap;
}

.select-inline {
  flex: 1;
  min-width: 260px;
}

.form-input-number {
  width: 100px;
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.75rem 0.85rem;
  outline: none;
}

.form-input-number:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

/* Actions Bar */
.framing-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(51, 65, 85, 0.6);
  flex-wrap: wrap;
}

.btn-glow {
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4), 0 0 15px rgba(56, 189, 248, 0.25);
}

.btn-glow:hover {
  box-shadow: 0 6px 25px rgba(37, 99, 235, 0.6), 0 0 20px rgba(56, 189, 248, 0.4);
}

/* AI Loading Indicator */
.framing-loading-card {
  padding: 3.5rem 2rem;
  text-align: center;
}

.ai-pulse-indicator {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.ai-sparkles {
  position: absolute;
  font-size: 1.4rem;
  animation: pulse 1.5s infinite;
}

.progress-ai-fill {
  background: linear-gradient(90deg, #2563eb, #a855f7, #38bdf8);
}

/* ===================================================
   SUMMARY CONFIRMATION VIEW
   =================================================== */
.summary-confirmed-card {
  padding: 2rem;
  animation: fadeIn 0.3s ease-out;
}

.summary-confirmed-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.success-icon-badge {
  font-size: 2rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.summary-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}

.summary-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.selected-answers-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.recap-item {
  background: #152033;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.recap-q {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.recap-a {
  font-size: 0.98rem;
  font-weight: 700;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.summary-actions-bar {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ===================================================
   STEP 3 : COMPTE-RENDU EXÉCUTIF (REPORT DASHBOARD)
   =================================================== */
.report-dashboard-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.3s ease-out;
}

.report-sheet-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.print-only {
  display: none !important;
}

/* Web Top Actions Bar */
.report-top-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  flex-wrap: wrap;
}

.report-status-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.report-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-print {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.35);
}

.btn-print:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

/* Hero Header */
.report-hero-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-header-top-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.badge-report-type {
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid #38bdf8;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.badge-rgpd-shield {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.report-main-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.report-meta-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.meta-sep {
  color: #475569;
}

/* Report 4 KPIs Grid */
.report-kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.report-kpi-card {
  background: #152033;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.report-kpi-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.report-kpi-card:hover {
  transform: translateY(-2px);
  border-color: #475569;
}

.kpi-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.kpi-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.kpi-pill.pill-green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.kpi-pill.pill-orange {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.kpi-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.kpi-val {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}

.kpi-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

.kpi-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Executive Insights Card */
.report-insights-card {
  background: linear-gradient(145deg, #172337 0%, #111b2b 100%);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.85rem;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.6);
}

.insights-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.insights-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.insights-icon {
  font-size: 1.65rem;
}

.insights-heading {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.insights-sub {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.executive-summary-box {
  background: #0f172a;
  border-left: 4px solid #38bdf8;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.15rem 1.4rem;
  margin-bottom: 1.5rem;
}

.executive-summary-text {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.65;
  font-weight: 500;
}

.insights-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.insight-col-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.insights-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-left: 1.25rem;
  font-size: 0.88rem;
  color: var(--text-main);
  line-height: 1.5;
}

.findings-list li {
  color: #cbd5e1;
}

.actions-list {
  padding-left: 1.4rem;
}

.actions-list li {
  color: #e2e8f0;
  font-weight: 500;
}

/* ===================================================
   PAGES DU RAPPORT A4 (WEB & PRINT)
   =================================================== */
.report-sheet-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.report-a4-page {
  background: #111c2e;
  border: 1px solid #334155;
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.5);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Page Break Decorator (Web mode) */
.page-break {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0.5rem 0;
  border-top: 2px dashed #334155;
}

.page-break::after {
  content: '📄 Page 2 — Focus Opérationnel & Arbitrage';
  position: absolute;
  top: -12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 9999px;
  padding: 0.2rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
}

.badge-confidential-chip {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

/* Single Full-Width Compact Chart Card */
.report-chart-single-card {
  background: #152033;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
}

.chart-card-header {
  margin-bottom: 0.85rem;
}

.chart-card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
}

.chart-card-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.chart-canvas-container.compact-canvas {
  position: relative;
  width: 100%;
  height: 220px;
}

/* Page 2 Intro Header */
.page-2-intro-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  padding-bottom: 0.85rem;
}

.page-2-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.page-2-subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Top 5 & Flop 5 Mini Tables Grid */
.top-flop-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 860px) {
  .top-flop-tables-grid {
    grid-template-columns: 1fr;
  }
}

.mini-table-card {
  background: #152033;
  border: 1px solid #334155;
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
}

.mini-table-card.top-card {
  border-top: 3px solid #10b981;
}

.mini-table-card.flop-card {
  border-top: 3px solid #f59e0b;
}

.mini-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.mini-table-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
}

.mini-table-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.badge-top-pill {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.badge-flop-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

/* Report Mini Table */
.report-data-table.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.report-data-table.mini-table th {
  background: #1e293b;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #334155;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.report-data-table.mini-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  color: #f1f5f9;
}

.report-data-table.mini-table tr:hover {
  background: rgba(30, 41, 59, 0.5);
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  background: #0f172a;
  border: 1px solid #334155;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-main);
}

.rank-badge.top-rank {
  background: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fbbf24;
}

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
}

.status-tag.status-good {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-tag.status-medium {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-tag.status-bad {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsiveness */
@media (max-width: 920px) {
  .report-kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .insights-columns-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .security-guarantees-grid {
    grid-template-columns: 1fr;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 580px) {
  .hero-title {
    font-size: 1.75rem;
  }
  .metrics-grid,
  .report-kpis-grid {
    grid-template-columns: 1fr;
  }
  .report-a4-page {
    padding: 1.25rem;
  }
}

/* ===================================================
   FEUILLE DE STYLE D'IMPRESSION A4 STRICTE (2 PAGES) (@media print)
   =================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 10mm 10mm 10mm;
  }

  /* 1. Masquer TOUS les éléments d'interface web superflus */
  .web-only,
  header.navbar,
  footer.app-footer,
  .hero-section,
  .stepper-bar,
  #section-upload,
  #section-loading,
  #section-results,
  #section-framing-loading,
  #section-framing,
  #section-report-loading,
  #brief-alert,
  .btn,
  .drop-zone {
    display: none !important;
  }

  /* 2. Afficher les éléments spécifiques print */
  .print-only {
    display: block !important;
  }

  /* 3. Forcer un fond blanc pur et texte sombre haute lisibilité */
  html, body, body.theme-briefme {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 9pt !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .container,
  .brief-main-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .report-dashboard-section {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .report-sheet-container {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    gap: 0 !important;
  }

  /* 4. VERROUILLAGE STRICT DES 2 PAGES A4 */
  .report-a4-page.print-page-1,
  .report-a4-page.print-page-2 {
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 275mm !important;
    max-height: 275mm !important;
    min-height: 270mm !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  /* Saut de page net entre Page 1 et Page 2 */
  .page-break {
    display: block !important;
    page-break-after: always !important;
    break-after: page !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
  }

  .page-break::after {
    display: none !important;
  }

  /* Print Header Banner */
  .print-header-banner {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0f172a;
    padding-bottom: 4px;
    margin-bottom: 8px;
  }

  .print-brand .brand-text {
    font-size: 14pt;
    font-weight: 800;
    color: #0f172a;
  }

  .print-badge {
    font-size: 7.5pt;
    color: #475569;
    font-weight: 600;
    margin-left: 6px;
    border-left: 1px solid #cbd5e1;
    padding-left: 6px;
  }

  .print-doc-meta {
    font-size: 7.5pt;
    color: #64748b;
  }

  /* Hero header */
  .report-main-title {
    font-size: 15pt !important;
    color: #0f172a !important;
    font-weight: 800 !important;
    margin: 2px 0 !important;
    line-height: 1.2 !important;
  }

  .badge-report-type {
    background: #e2e8f0 !important;
    border: 1px solid #94a3b8 !important;
    color: #0f172a !important;
    font-size: 7pt !important;
    padding: 0.15rem 0.5rem !important;
  }

  .badge-confidential-chip {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #991b1b !important;
    font-size: 7pt !important;
    padding: 0.15rem 0.5rem !important;
  }

  .report-meta-row {
    font-size: 7.5pt !important;
    color: #64748b !important;
  }

  /* KPIs Cards in Print */
  .report-kpis-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px !important;
    margin-bottom: 2px !important;
  }

  .report-kpi-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    padding: 6px 8px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .report-kpi-card::before {
    display: none !important;
  }

  .kpi-label {
    font-size: 6.5pt !important;
    color: #475569 !important;
  }

  .kpi-val {
    font-size: 13pt !important;
    color: #1e3a8a !important;
  }

  .kpi-unit {
    font-size: 7.5pt !important;
    color: #64748b !important;
  }

  .kpi-subtext {
    font-size: 6pt !important;
    color: #94a3b8 !important;
  }

  /* Insights Box in Print */
  .report-insights-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    padding: 8px 12px !important;
    box-shadow: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .insights-heading {
    font-size: 9.5pt !important;
    color: #0f172a !important;
  }

  .insights-sub {
    font-size: 6.5pt !important;
    color: #64748b !important;
  }

  .executive-summary-box {
    background: #ffffff !important;
    border-left: 3px solid #2563eb !important;
    border-top: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 6px 10px !important;
    margin-bottom: 6px !important;
  }

  .executive-summary-text {
    font-size: 7.5pt !important;
    color: #0f172a !important;
    line-height: 1.35 !important;
  }

  .insights-columns-grid {
    gap: 10px !important;
  }

  .insight-col-title {
    font-size: 8pt !important;
    color: #0f172a !important;
    margin-bottom: 4px !important;
  }

  .insights-list {
    font-size: 7.2pt !important;
    gap: 3px !important;
    color: #1e293b !important;
  }

  .insights-list li {
    color: #1e293b !important;
  }

  /* Compact Charts in Print */
  .report-chart-single-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    padding: 6px 8px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .chart-card-title {
    font-size: 8pt !important;
    color: #0f172a !important;
  }

  .chart-card-sub {
    font-size: 6.5pt !important;
  }

  .chart-canvas-container.compact-canvas {
    height: 155px !important;
    max-height: 155px !important;
  }

  /* Page 2 Intro Header */
  .page-2-intro-header {
    border-bottom: 1.5px solid #0f172a !important;
    padding-bottom: 4px !important;
    margin-bottom: 6px !important;
  }

  .page-2-title {
    font-size: 12pt !important;
    color: #0f172a !important;
  }

  .page-2-subtitle {
    font-size: 7.5pt !important;
    color: #64748b !important;
  }

  /* Page 2 Mini Tables Grid in Print */
  .top-flop-tables-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  .mini-table-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    padding: 6px 8px !important;
  }

  .mini-table-card.top-card {
    border-top: 2.5px solid #10b981 !important;
  }

  .mini-table-card.flop-card {
    border-top: 2.5px solid #f59e0b !important;
  }

  .mini-table-title {
    font-size: 8pt !important;
    color: #0f172a !important;
  }

  .mini-table-sub {
    font-size: 6.5pt !important;
  }

  .badge-top-pill {
    background: #ecfdf5 !important;
    color: #065f46 !important;
    border: 1px solid #a7f3d0 !important;
    font-size: 6.5pt !important;
  }

  .badge-flop-pill {
    background: #fffbeb !important;
    color: #92400e !important;
    border: 1px solid #fde68a !important;
    font-size: 6.5pt !important;
  }

  .report-data-table.mini-table {
    font-size: 7pt !important;
  }

  .report-data-table.mini-table th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
    padding: 3px 5px !important;
  }

  .report-data-table.mini-table td {
    padding: 3px 5px !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
  }

  .rank-badge {
    width: 16px !important;
    height: 16px !important;
    font-size: 6pt !important;
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
  }

  .status-tag {
    font-size: 6pt !important;
    padding: 1px 3px !important;
  }

  /* Print Footers */
  .print-page-footer {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #cbd5e1;
    padding-top: 4px;
    font-size: 6.5pt;
    color: #64748b;
    margin-top: auto;
  }
}

