/* ========================================================================== */
/* ROSI Report (screen + print)                                               */
/* Namespace: body.frame--report__rosi                                        */
/* Inherits the visual language of Zone Compliancy (dark cards, pills, etc.)  */
/* ========================================================================== */
body.frame--report__rosi {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: #0a0b0d;
  color: #e4e4e7;
  padding: 20px;
  line-height: 1.4;
  font-size: 13px;
  /* ROSI coloring */
  /* Responsive */
}
body.frame--report__rosi * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.frame--report__rosi .container {
  margin: 0 auto;
  max-width: 340mm;
}
body.frame--report__rosi header {
  margin: 0 auto;
  max-width: 340mm;
}
body.frame--report__rosi .title-surface {
  margin: 8px auto 16px auto;
  padding: 18px 20px;
  background: radial-gradient(1000px 520px at 15% -20%, rgba(96, 165, 250, 0.08), transparent), radial-gradient(920px 520px at 95% 120%, rgba(192, 132, 252, 0.08), transparent), #0b0d11;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) inset, 0 8px 30px rgba(0, 0, 0, 0.25);
}
body.frame--report__rosi .header h1 {
  color: #8b8b93;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.frame--report__rosi .controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
body.frame--report__rosi .control-card {
  background: #111113;
  border: 1px solid rgb(66, 66, 66);
  border-radius: 12px;
  overflow: hidden;
}
body.frame--report__rosi .control-header {
  background: #1a1a1d;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}
body.frame--report__rosi .control-title {
  font-size: 16px;
  font-weight: 800;
  color: #f4f4f5;
  letter-spacing: -0.01em;
}
body.frame--report__rosi .control-header .left .stats {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 6px 18px;
  align-items: baseline;
}
body.frame--report__rosi .stat .label {
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-right: 6px;
}
body.frame--report__rosi .stat .value {
  font-size: 12px;
  color: #e5e7eb;
}
body.frame--report__rosi .right .badge {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}
body.frame--report__rosi .badge-green {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
  color: #86efac;
}
body.frame--report__rosi .badge-red {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
body.frame--report__rosi .badge-neutral {
  background: rgba(148, 163, 184, 0.1);
  border-color: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
}
body.frame--report__rosi .control-body {
  background: #141416;
  padding: 14px 18px;
}
body.frame--report__rosi .chart-title {
  font-size: 12px;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 4px 0 6px;
}
body.frame--report__rosi .scrollable-table-container {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: auto;
  min-height: 160px;
}
body.frame--report__rosi table {
  width: 100%;
  border-collapse: collapse;
}
body.frame--report__rosi thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #1e1e23;
  color: #a1a1aa;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
body.frame--report__rosi tbody th, body.frame--report__rosi tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: middle;
}
body.frame--report__rosi tbody tr:last-child td {
  border-bottom: none;
}
body.frame--report__rosi tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.01);
}
body.frame--report__rosi tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
body.frame--report__rosi .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
body.frame--report__rosi .nowrap {
  white-space: nowrap;
}
body.frame--report__rosi .center {
  text-align: center;
}
body.frame--report__rosi .right {
  text-align: right;
}
body.frame--report__rosi .text-empty {
  color: #9ca3af;
}
body.frame--report__rosi .rosi-pos {
  color: #86efac;
  font-weight: 700;
}
body.frame--report__rosi .rosi-neg {
  color: #fca5a5;
  font-weight: 700;
}
body.frame--report__rosi .rosi-neutral {
  color: #cbd5e1;
}
@media (max-width: 1100px) {
  body.frame--report__rosi .control-header .left .stats {
    grid-template-columns: repeat(2, max-content);
  }
}

/* ========================================================================== */
/* Print (light mode, low ink)                                                */
/* ========================================================================== */
@media print {
  body {
    background: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body.frame--report__rosi {
    background: white !important;
    color: #111827 !important;
  }
  body.frame--report__rosi .title-surface,
  body.frame--report__rosi .control-card,
  body.frame--report__rosi .control-header,
  body.frame--report__rosi .control-body,
  body.frame--report__rosi .scrollable-table-container {
    background: white !important;
    border-color: #e5e7eb !important;
    box-shadow: none !important;
  }
  body.frame--report__rosi .control-title, body.frame--report__rosi .stat .value {
    color: black !important;
  }
  body.frame--report__rosi .title-main {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  body.frame--report__rosi .title-sub {
    color: #6b7280 !important;
  }
  body.frame--report__rosi thead th {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-bottom: 2px solid #e5e7eb !important;
    font-weight: 800 !important;
  }
  body.frame--report__rosi tbody td, body.frame--report__rosi tbody th {
    color: #111827 !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: white !important;
  }
  body.frame--report__rosi .rosi-pos {
    color: #16a34a !important;
  }
  body.frame--report__rosi .rosi-neg {
    color: #dc2626 !important;
  }
  body.frame--report__rosi .rosi-neutral {
    color: #111827 !important;
  }
}

