:root {
  --ecert-primary: #007bff;
  --ecert-dark: #343a40;
  --ecert-success: #28a745;
  --ecert-danger: #dc3545;
  --ecert-warning: #ffc107;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f8f9fa;
}

.manual-topbar {
  background: var(--ecert-dark);
  color: #fff;
  padding: 0.75rem 0;
}

.manual-topbar a { color: #adb5bd; }
.manual-topbar a:hover { color: #fff; text-decoration: none; }
.manual-topbar .active { color: #fff; font-weight: 600; }

html.manual-embed .manual-topbar {
  display: none;
}

.manual-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.manual-wrap h1 {
  font-size: 1.85rem;
  margin-bottom: 0.25rem;
  color: var(--ecert-dark);
}

.manual-wrap .subtitle {
  color: #6c757d;
  margin-bottom: 2rem;
}

.manual-wrap h2 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--ecert-primary);
  color: var(--ecert-dark);
}

.manual-wrap h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  color: #495057;
}

.manual-wrap h4 {
  font-size: 1rem;
  margin-top: 1rem;
  color: #6c757d;
}

.toc {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc ol { margin-bottom: 0; padding-left: 1.25rem; }
.toc a { color: var(--ecert-primary); }

.card-section {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.screenshot {
  max-width: 100%;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin: 1rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.screenshot-caption {
  font-size: 0.875rem;
  color: #6c757d;
  font-style: italic;
  margin-top: -0.5rem;
  margin-bottom: 1.25rem;
}

table.error-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0;
}

table.error-table th,
table.error-table td {
  border: 1px solid #dee2e6;
  padding: 0.5rem 0.75rem;
  vertical-align: top;
}

table.error-table th {
  background: #e9ecef;
  text-align: left;
}

.badge-ok { background: #d4edda; color: #155724; padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.8rem; }
.badge-no { background: #f8d7da; color: #721c24; padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.8rem; }
.badge-warn { background: #fff3cd; color: #856404; padding: 0.15rem 0.5rem; border-radius: 3px; font-size: 0.8rem; }

.flow-box {
  background: #e7f1ff;
  border-left: 4px solid var(--ecert-primary);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-radius: 0 4px 4px 0;
}

.flow-box ol { margin-bottom: 0; }

.tip {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.contact-box {
  background: var(--ecert-dark);
  color: #fff;
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 2rem;
}

.contact-box a { color: #9ec5fe; }

.pdf-bar {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.pdf-bar .btn-pdf {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: var(--ecert-primary);
  color: #fff !important;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.pdf-bar .btn-pdf:hover {
  background: #0069d9;
  text-decoration: none;
}

.pdf-bar .btn-html {
  color: var(--ecert-primary);
  font-size: 0.875rem;
}

.nav-pills-manual .nav-link {
  color: var(--ecert-dark);
  border: 1px solid #dee2e6;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.nav-pills-manual .nav-link.active {
  background: var(--ecert-primary);
  border-color: var(--ecert-primary);
}

@media print {
  .manual-topbar, .no-print, .pdf-bar { display: none !important; }
  .manual-wrap { max-width: 100%; }
  .screenshot { max-height: 280px; }
  section { page-break-inside: avoid; }
  h2 { page-break-after: avoid; }
}
