body {
  background: #f9f9fb;
  color: #1c1c1c;
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: .2px;
  color: #fff;
}

.category-title {
  margin: 1rem 0 .5rem;
  color: #4b4b4b;
}

.list-group-item {
  font-size: 0.95rem;
  background: #ffffff;
  color: #1f2430;
  border: 1px solid #e6e8ef;
}

.card-img-top {
  object-fit: cover;
  height: 220px;
}

.nu-hero {
  background: linear-gradient(135deg, #8A05BE 0%, #B600E9 60%, #6A00A1 100%);
  border: 0;
  border-radius: 16px;
}

.card {
  border-radius: 16px;
  border: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  background: #ffffff;
  color: #1c1c1c;
}

.card-nu {
  background: #ffffff;
}

.badge {
  border-radius: 12px;
  padding: .5rem .6rem;
}

.badge.bg-warning {
  color: #1a1a1a;
}

.badge.bg-success,
.badge.bg-secondary {
  color: #ffffff;
}

.text-muted {
  color: #6c757d !important;
}

.progress {
  background-color: #c9c9c9;
  border-radius: 999px;
}

.progress-bar {
  border-radius: 999px;
}

.bg-nu {
  background-color: #8A05BE !important;
}

.btn-light {
  color: #190422;
  background: #ffffff;
  border-color: #ffffff;
}

.btn-primary {
  background-color: #8A05BE;
  border-color: #8A05BE;
  color: #ffffff;
}

.btn-primary:hover {
  background-color: #6A00A1;
  border-color: #6A00A1;
}

.btn-outline-secondary {
  color: #495057;
  border-color: #ced4da;
}

.btn-outline-secondary:hover {
  color: #212529;
  border-color: #adb5bd;
  background: #f1f3f5;
}

.accordion-button {
  font-weight: 600;
  background: #ffffff;
  color: #1c1c1c;
}

.accordion-item {
  border: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.accordion-button:not(.collapsed) {
  background-color: #f3f3f3;
  color: #190422;
}

.form-check-input {
  accent-color: #8A05BE;
}

a {
  color: #4a4f58;
}

a {
  color: #4a4f58;
}

.radials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

.radial {
  --p: 0;
  --radial-color: #8A05BE;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--radial-color) var(--p), #eeeeee 0);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease;
}

.radial::before {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffffff;
}

.radial span {
  position: relative;
  z-index: 1;
  font-weight: 600;
  color: #190422;
}

.radial.sm {
  width: 56px;
  height: 56px;
}

.radial.sm::before {
  width: 42px;
  height: 42px;
}

.radial-label {
  font-size: .8rem;
  color: #495057;
  text-align: center;
  margin-top: 4px;
}

.badge-sim {
  background: #198754;
  color: #fff;
}

.badge-nao {
  background: #dc3545;
  color: #fff;
}

.badge-pendente {
  background: #6c757d;
  color: #fff;
}

.note-box {
  background: #f8f9fa;
  border: 1px solid #e6e8ef;
  border-radius: 8px;
  padding: .5rem .75rem;
  margin-top: .25rem;
  color: #343a40;
}

.status-chip {
  display: inline-block;
  min-width: 48px;
  text-align: center;
  padding: .25rem .5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: .8rem;
}

@media print {
  @page {
    size: 210mm auto;
    margin: 0;
  }

  html, body {
    width: 210mm;
    height: auto !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 10mm !important; /* Internal padding for content */
  }

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

  body {
    background: #ffffff;
  }

  .radials {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .radials > div {
    break-inside: avoid;
    page-break-inside: avoid;
    margin-bottom: 16px;
  }

  .card, .card-nu {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 0 !important;
    box-shadow: none !important;
  }

  #ai-container {
    break-inside: avoid;
    page-break-inside: avoid;
    border: 1px solid #dee2e6 !important;
  }
}

.fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.print-simplify .card.card-nu {
  background: transparent;
  box-shadow: none;
}

.print-simplify .card.card-nu .card-header {
  background: transparent;
  border: 0;
  padding: 0;
  margin-bottom: 8px;
  font-size: 22px;
}

.print-simplify .list-group-item>.d-flex {
  gap: 8px;
  align-items: center;
}

.print-simplify .list-group-item>.d-flex .badge {
  order: -1;
}

.print-simplify .list-group-item .note-box {
  margin-left: 56px;
}

#print-root {
  width: 210mm;
  max-width: 100%;
  margin: 0 auto;
}

.ai-text-only {
  white-space: pre-wrap;
}
#health-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar-gauge {
  width: 100%;
  max-width: 420px;
  height: 12px;
  background: #eeeeee;
  border-radius: 999px;
  overflow: hidden;
}
.bar-gauge-fill {
  width: 0%;
  height: 100%;
  background: #8A05BE;
  border-radius: 999px;
  transition: width 200ms ease, background-color 200ms ease;
}
.bar-gauge-label {
  min-width: 44px;
  text-align: right;
  font-weight: 600;
}
