:root {
  --bg-primary: #070d18;
  --bg-surface: #0e1726;
  --bg-surface-elevated: #142033;
  --border: rgba(255, 255, 255, 0.1);
  --border-focus: #00e5ff;
  --text-primary: #f0f4f8;
  --text-secondary: #8fa3bf;
  --text-muted: #536b88;
  --accent-cyan: #00e5ff;
  --accent-blue: #2979ff;
  --accent-green: #00e676;
  --accent-amber: #ffab00;
  --accent-red: #ff3d71;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  padding: 24px;
}

.report-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--accent-cyan);
  padding-bottom: 20px;
}

.report-title h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.report-title p {
  color: var(--text-secondary);
  font-size: 13px;
  margin-top: 4px;
}

.action-buttons {
  display: flex;
  gap: 12px;
}

.btn-print {
  background: var(--accent-cyan);
  color: #04080f;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-print:hover {
  background: #2979ff;
  color: #fff;
}

/* Executive Scorecard */
.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.score-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.score-box .label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.score-box .val {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-top: 4px;
}

.score-box .subtext {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Highlights Section */
.section-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-card h2 {
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  color: var(--accent-cyan);
}

.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.highlights-list li {
  font-size: 13px;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.highlights-list li::before {
  content: "■";
  color: var(--accent-cyan);
  position: absolute;
  left: 0;
  top: 0;
}

/* Table */
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.report-table th {
  text-align: left;
  padding: 10px;
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.report-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.audit-seal-box {
  background: #04080f;
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 8px;
  padding: 16px;
  font-family: monospace;
  font-size: 11px;
  color: var(--text-secondary);
}

/* PRINT MEDIA STYLESHEET (PDF & IMPRESSÃO) */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm 12mm 15mm;
  }

  body {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
  }

  .report-container {
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .report-header {
    border-bottom: 2px solid #000 !important;
  }

  .report-title h1 {
    color: #000 !important;
    font-size: 18pt !important;
  }

  .report-title p {
    color: #555 !important;
    font-size: 9pt !important;
  }

  .action-buttons, .back-link {
    display: none !important;
  }

  .score-box {
    background: #f8f9fa !important;
    border: 1px solid #ddd !important;
  }

  .score-box .label {
    color: #555 !important;
  }

  .score-box .val {
    color: #000 !important;
  }

  .section-card h2 {
    color: #000 !important;
    border-bottom: 1px solid #ccc !important;
  }

  .highlights-list li {
    color: #222 !important;
  }

  .highlights-list li::before {
    color: #000 !important;
  }

  .report-table th {
    background: #eee !important;
    color: #000 !important;
    border-bottom: 1px solid #000 !important;
  }

  .report-table td {
    color: #111 !important;
    border-bottom: 1px solid #ddd !important;
  }

  .audit-seal-box {
    background: #f8f9fa !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
  }
}
