@charset "UTF-8";
/* ========================================================================== */
/* Zone Compliancy Report (screen + print)                                    */
/* Namespace: body.frame--report__zone_compliancy                             */
/* Fixes: equal-height cards + light print (inverted canvases)                */
/* ========================================================================== */
body.frame--report__zone_compliancy {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: #0a0b0d;
  color: #e4e4e7;
  padding: 20px;
  line-height: 1.4;
  font-size: 13px;
  /* Title surface */
  /* Card */
  /* =========================== New three-panel zone grid =========================== */
  /* risk table + controls table should share the radar height */
  /* Base scrollable container (overridden above for split height) */
  /* radar panel stretches */
  /* Section headings */
  /* Tables */
  /* Controls table cosmetics */
  /* Legend pills */
  /* Metrics (global + zone) */
  /* Metric pills styled like legend pills */
  /* Right side of zone-header */
  /* Zone coverage stats (below header, full width, left aligned) */
  /* Responsive collapse */
}
body.frame--report__zone_compliancy * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body.frame--report__zone_compliancy .container {
  margin: 0 auto;
  max-width: 340mm;
}
body.frame--report__zone_compliancy header {
  margin: 0 auto;
  max-width: 340mm;
}
body.frame--report__zone_compliancy .global-row {
  margin: 10px 0 18px;
}
body.frame--report__zone_compliancy .chart-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-items: stretch;
}
body.frame--report__zone_compliancy .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__zone_compliancy .header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.frame--report__zone_compliancy .header h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.frame--report__zone_compliancy .header .sub {
  color: #8b8b93;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.frame--report__zone_compliancy .card, body.frame--report__zone_compliancy .zone-card {
  background: #111113;
  border: 1px solid rgb(66, 66, 66);
  border-radius: 12px;
  overflow: hidden;
  width: 100%; /* ensure full width */
}
body.frame--report__zone_compliancy .zone-card {
  margin: 16px 0;
  display: block;
}
body.frame--report__zone_compliancy .zone-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__zone_compliancy .zone-title {
  font-size: 16px;
  font-weight: 800;
  color: #f4f4f5;
  letter-spacing: -0.01em;
}
body.frame--report__zone_compliancy .zone-meta {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 6px 18px;
  align-items: baseline;
}
body.frame--report__zone_compliancy .zone-meta .label {
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
body.frame--report__zone_compliancy .zone-meta .value {
  font-size: 12px;
  color: #e5e7eb;
  margin-left: 8px;
}
body.frame--report__zone_compliancy .zone-badges {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
body.frame--report__zone_compliancy .badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  border: 1px solid transparent;
}
body.frame--report__zone_compliancy .badge-zone {
  background: rgba(59, 130, 246, 0.15);
  color: #93bbfc;
  border-color: rgba(59, 130, 246, 0.25);
}
body.frame--report__zone_compliancy .badge-slt {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.25);
}
body.frame--report__zone_compliancy .badge-count {
  background: rgba(168, 85, 247, 0.12);
  color: #e9d5ff;
  border-color: rgba(168, 85, 247, 0.25);
}
body.frame--report__zone_compliancy .zone-body {
  background: #141416;
  padding: 14px 18px;
}
body.frame--report__zone_compliancy .zone-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "risk     radar" "controls radar";
  gap: 16px;
  align-items: stretch;
}
body.frame--report__zone_compliancy .risk-panel {
  grid-area: risk;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.frame--report__zone_compliancy .controls-panel {
  grid-area: controls;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.frame--report__zone_compliancy .radar-panel {
  grid-area: radar;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.frame--report__zone_compliancy .risk-panel .scrollable-table-container,
body.frame--report__zone_compliancy .controls-panel .scrollable-table-container {
  flex: 1 1 auto;
  min-height: 0; /* allow both to split height evenly */
}
body.frame--report__zone_compliancy .scrollable-table-container {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 240px;
}
body.frame--report__zone_compliancy .chart-box {
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
body.frame--report__zone_compliancy .radar-box canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
}
body.frame--report__zone_compliancy .chart-title {
  font-size: 12px;
  color: #a1a1aa;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 4px 0 6px;
}
body.frame--report__zone_compliancy table {
  width: 100%;
  border-collapse: collapse;
}
body.frame--report__zone_compliancy 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__zone_compliancy tbody th, body.frame--report__zone_compliancy tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}
body.frame--report__zone_compliancy tbody tr:last-child td {
  border-bottom: none;
}
body.frame--report__zone_compliancy tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.01);
}
body.frame--report__zone_compliancy tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}
body.frame--report__zone_compliancy .risk-table .id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  color: #cbd5e1;
}
body.frame--report__zone_compliancy .risk-table .right {
  text-align: right;
}
body.frame--report__zone_compliancy .risk-table .center {
  text-align: center;
}
body.frame--report__zone_compliancy .risk-table .nowrap {
  white-space: nowrap;
}
body.frame--report__zone_compliancy .controls-table .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
body.frame--report__zone_compliancy .controls-table .bold {
  font-weight: 700;
}
body.frame--report__zone_compliancy .controls-table ul {
  margin: 0;
  padding-left: 18px;
}
body.frame--report__zone_compliancy .controls-table li {
  margin: 2px 0;
}
body.frame--report__zone_compliancy .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.frame--report__zone_compliancy .legend .pill {
  user-select: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e5e7eb;
  background: #111113;
  transition: opacity 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
body.frame--report__zone_compliancy .legend .pill[data-active=false] {
  opacity: 0.48;
  border-color: rgba(255, 255, 255, 0.1);
}
body.frame--report__zone_compliancy .legend .pill.slt-1 {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
}
body.frame--report__zone_compliancy .legend .pill.slt-2 {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.25);
}
body.frame--report__zone_compliancy .legend .pill.slt-3 {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.25);
}
body.frame--report__zone_compliancy .legend .pill.slt-4 {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}
body.frame--report__zone_compliancy .legend .pill.current {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.28);
}
body.frame--report__zone_compliancy .chart-card {
  background: #111113;
  border: 1px solid rgb(66, 66, 66);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.frame--report__zone_compliancy .metric-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.frame--report__zone_compliancy .metric-row {
  font-size: 12px;
  color: #e5e7eb;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
body.frame--report__zone_compliancy .metric-row .muted {
  color: #9ca3af;
  font-weight: 600;
  margin-left: 4px;
}
body.frame--report__zone_compliancy .metric-row.slt-splits {
  gap: 6px;
  flex-wrap: wrap;
}
body.frame--report__zone_compliancy .metric-pill {
  user-select: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e5e7eb;
  background: #111113;
  white-space: nowrap;
}
body.frame--report__zone_compliancy .metric-pill.slt-1 {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.25);
}
body.frame--report__zone_compliancy .metric-pill.slt-2 {
  background: rgba(234, 179, 8, 0.08);
  border-color: rgba(234, 179, 8, 0.25);
}
body.frame--report__zone_compliancy .metric-pill.slt-3 {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.25);
}
body.frame--report__zone_compliancy .metric-pill.slt-4 {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
}
body.frame--report__zone_compliancy .zone-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
body.frame--report__zone_compliancy .zone-coverage-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  max-width: none;
}
body.frame--report__zone_compliancy .zone-coverage-stats--full {
  margin: 4px 0 10px;
}
body.frame--report__zone_compliancy .zone-coverage-stats .metric-row {
  justify-content: flex-start;
}
body.frame--report__zone_compliancy .zones-no-risk {
  margin: 16px 0 6px;
}
body.frame--report__zone_compliancy .zones-no-risk__note {
  color: #9ca3af;
  font-size: 12px;
  margin: 4px 0 10px;
}
body.frame--report__zone_compliancy .zones-no-risk__pilllist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.frame--report__zone_compliancy .zones-no-risk__pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e5e7eb;
  background: #111113;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  body.frame--report__zone_compliancy .zone-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas: "risk" "radar" "controls";
  }
  body.frame--report__zone_compliancy .chart-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ========================================================================== */
/* Print (light mode, low ink) — Fixes                                        */
/* ========================================================================== */
@media print {
  body {
    background: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #BS_main {
    padding: 18mm 12mm;
    box-sizing: border-box;
    background: white !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
  body.frame--report__zone_compliancy {
    background: white !important;
    color: #111827 !important;
    /* Surfaces go white; borders lighten (include global .chart-card) */
    /* Header gradient -> print-friendly gradient text */
    /* Badges to light */
    /* Table light theme */
    /* Legend & metric pills to light */
    /* Canvas radars: invert dark palette -> light-friendly without code changes */
    /* Keep blocks together */
    /* Print layout: Controls go below the radar */
  }
  body.frame--report__zone_compliancy .zone-title, body.frame--report__zone_compliancy .chart-title, body.frame--report__zone_compliancy .value, body.frame--report__zone_compliancy .metric-row {
    color: #111827 !important;
  }
  body.frame--report__zone_compliancy .title-surface,
  body.frame--report__zone_compliancy .zone-card,
  body.frame--report__zone_compliancy .zone-header,
  body.frame--report__zone_compliancy .zone-body,
  body.frame--report__zone_compliancy .scrollable-table-container,
  body.frame--report__zone_compliancy .chart-box,
  body.frame--report__zone_compliancy .chart-card {
    background: white !important;
    border-color: #e5e7eb !important;
    box-shadow: none !important;
  }
  body.frame--report__zone_compliancy .metric-row .muted {
    color: #52555a;
    font-weight: 600;
    margin-left: 4px;
  }
  body.frame--report__zone_compliancy .header h1 {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  body.frame--report__zone_compliancy .header .sub {
    color: #6b7280 !important;
  }
  body.frame--report__zone_compliancy .badge-zone {
    background: rgba(59, 130, 246, 0.08) !important;
    color: #2563eb !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
  }
  body.frame--report__zone_compliancy .badge-slt {
    background: rgba(239, 68, 68, 0.08) !important;
    color: #dc2626 !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
  }
  body.frame--report__zone_compliancy .badge-count {
    background: rgba(168, 85, 247, 0.08) !important;
    color: #7e22ce !important;
    border-color: rgba(168, 85, 247, 0.25) !important;
  }
  body.frame--report__zone_compliancy thead th {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-bottom: 2px solid #e5e7eb !important;
    font-weight: 800 !important;
  }
  body.frame--report__zone_compliancy tbody td, body.frame--report__zone_compliancy tbody th {
    color: #111827 !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: white !important;
  }
  body.frame--report__zone_compliancy .legend .pill,
  body.frame--report__zone_compliancy .metric-pill {
    color: #111827 !important;
  }
  body.frame--report__zone_compliancy .legend .pill[data-active=false] {
    opacity: 0.2 !important;
  }
  body.frame--report__zone_compliancy .radar-box canvas {
    filter: invert(1) hue-rotate(180deg) contrast(0.9) saturate(0.9) brightness(1.05);
  }
  body.frame--report__zone_compliancy .zone-card, body.frame--report__zone_compliancy .chart-box, body.frame--report__zone_compliancy .chart-card, body.frame--report__zone_compliancy table {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  body.frame--report__zone_compliancy .zone-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas: "risk" "radar" "controls";
  }
  body.frame--report__zone_compliancy .zones-no-risk__note {
    color: #52555a !important;
  }
  body.frame--report__zone_compliancy .zones-no-risk__pill {
    color: #111827 !important;
    background: white !important;
    border-color: #e5e7eb !important;
  }
}

