/* GeriCalcs 2.0 - Painel de Hepatites */

.gc-hep-wrap {
  position: relative;
  padding-bottom: 46px;
  border-radius: 20px;
  background:
    radial-gradient(900px 320px at 8% 0%, rgba(94, 214, 163, 0.14), transparent 66%),
    radial-gradient(860px 360px at 90% 12%, rgba(63, 191, 142, 0.1), transparent 64%);
}

.gc-hep-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
}

.gc-hep-subtitle {
  margin-top: 6px;
  font-size: 13px;
}

.gc-hep-topbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.gc-hep-progress {
  height: 8px;
  border: 1px solid var(--gc-line);
  border-radius: 999px;
  overflow: hidden;
  background: #f8fbfa;
}

.gc-hep-progress > span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, var(--gc-mint), var(--gc-mint-2));
  transition: width 0.2s ease;
}

.gc-hep-tabs {
  margin-bottom: 12px;
}

.gc-hep-tab,
.gc-hep-mode {
  font-family: var(--gc-font-title);
}

.gc-hep-panel {
  display: none;
}

.gc-hep-panel.is-active {
  display: grid;
}

.gc-hep-wrap.is-rapido .gc-hep-complete-only {
  display: none !important;
}

.gc-hep-acc {
  margin-top: 10px;
  border: 1px solid var(--gc-line);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
}

.gc-hep-acc summary {
  cursor: pointer;
  font-family: var(--gc-font-title);
  color: var(--gc-dark);
  font-size: 13px;
}

.gc-hep-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 8px;
}

.gc-hep-field {
  display: grid;
  gap: 6px;
}

.gc-hep-field label {
  font-size: 12px;
  color: var(--gc-muted);
  line-height: 1.25;
}

.gc-hep-field select,
.gc-hep-field input {
  width: 100%;
  border: 1px solid var(--gc-line);
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  color: var(--gc-dark);
  background: #fff;
}

.gc-hep-quick {
  margin-bottom: 12px;
  border: 1px solid var(--gc-line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.gc-hep-quick-label {
  display: block;
  margin: 0;
  font-family: var(--gc-font-title);
  font-size: 13px;
  color: var(--gc-dark);
}

.gc-hep-quick-help {
  margin: 5px 0 8px;
  font-size: 12px;
}

.gc-hep-quick-row {
  display: grid;
  gap: 8px;
}

#gc-hep-quick-input {
  width: 100%;
  min-height: 86px;
  border: 1px solid var(--gc-line);
  border-radius: 12px;
  padding: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--gc-dark);
  background: #fff;
  resize: vertical;
}

.gc-hep-quick-feedback {
  min-height: 18px;
  margin: 8px 0 0;
  line-height: 1.35;
}

.gc-hep-field select:focus-visible,
.gc-hep-field input:focus-visible,
#gc-hep-quick-input:focus-visible,
.gc-hep-tab:focus-visible,
.gc-hep-mode:focus-visible,
.gc-btn:focus-visible {
  outline: 2px solid var(--gc-mint-2);
  outline-offset: 2px;
}

.gc-hep-disclaimer {
  margin-top: 12px;
}

.gc-hep-save-feedback {
  min-height: 18px;
  margin: 8px 0 0;
}

.gc-hep-status-banner {
  margin-top: 0;
}

.gc-hep-output-card {
  margin-top: 12px;
  border: 1px solid var(--gc-line);
  border-radius: 14px;
  background: rgba(246, 250, 248, 0.78);
  padding: 10px;
}

.gc-hep-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--gc-dark);
}

.gc-hep-list li + li {
  margin-top: 6px;
}

.gc-hep-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--gc-line);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
}

.gc-hep-badge.verde {
  background: rgba(47, 191, 113, 0.12);
  color: #09522e;
  border-color: rgba(47, 191, 113, 0.25);
}

.gc-hep-badge.amarelo {
  background: rgba(255, 176, 32, 0.12);
  color: #7a4f00;
  border-color: rgba(255, 176, 32, 0.35);
}

.gc-hep-badge.vermelho {
  background: rgba(255, 77, 77, 0.12);
  color: #7a1212;
  border-color: rgba(255, 77, 77, 0.35);
}

.gc-hep-report {
  margin: 8px 0 0;
  padding: 12px;
  border: 1px dashed var(--gc-line);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
  line-height: 1.45;
  color: var(--gc-dark);
  white-space: pre-wrap;
  max-height: 320px;
  overflow: auto;
}

.gc-hep-refs {
  margin-top: 12px;
  border-top: 1px dashed var(--gc-line);
  padding-top: 10px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #667387;
}

.gc-hep-print-footer {
  display: none;
}

@media (min-width: 620px) {
  .gc-hep-row {
    grid-template-columns: 1fr 1fr;
  }

  .gc-hep-quick-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .gc-hep-quick-row .gc-btn {
    white-space: nowrap;
  }
}

@media (max-width: 980px) {
  .gc-hep-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .gc-hep-no-print,
  .gc-hep-disclaimer,
  .gc-hep-tabs {
    display: none !important;
  }

  .gc-hep-wrap {
    background: #fff !important;
    padding-bottom: 50px;
  }

  .gc-hep-panel {
    display: none !important;
  }

  .gc-card {
    box-shadow: none !important;
  }

  .gc-hep-print-footer {
    position: fixed;
    bottom: 8px;
    left: 0;
    right: 0;
    display: grid;
    justify-items: center;
    gap: 4px;
    font-size: 11px;
    color: #546073;
  }

  .gc-hep-print-footer img {
    width: 80px;
    height: auto;
  }
}
