/* Header branding refinements for readability on green backgrounds */

.qualiparto-brand {
  margin-right: 12px;
}

.qualiparto-brand .qualiparto-brand-text {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #16573a;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  letter-spacing: 0.2px;
}

.qualiparto-brand .qualiparto-brand-text strong {
  color: #0f3f2a;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1040;
}

.header-left {
  min-width: 240px;
}

.header-center {
  flex: 1;
}

.header-right {
  margin-left: auto;
}

nav.side-navbar > span.heading:first-of-type {
  display: block;
  margin-top: 12px;
}

.user-menu {
  position: relative;
}

.user-menu-trigger {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  min-height: 42px;
  min-width: 170px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.user-menu-trigger:hover {
  background: rgba(255, 255, 255, 0.2);
}

.user-menu-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #1c5037;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-menu-name {
  font-weight: 600;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-chevron {
  font-size: 0.8rem;
  opacity: 0.85;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #ffffff;
  border: 1px solid #dbe7e0;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  padding: 6px;
  color: #1f3328;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.user-menu-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.user-menu-item {
  width: 100%;
  border: 0;
  background: #ffffff;
  display: block;
  text-align: left;
  color: #1f3328 !important;
  text-decoration: none !important;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.93rem;
  font-weight: 500;
}

.user-menu-item:hover {
  background: #eaf7ef;
  color: #184c34 !important;
}

.user-menu-item-danger {
  color: #8f2f2f !important;
}

.user-menu-item-danger:hover {
  background: #fdeeee;
  color: #7c2424 !important;
}

.main-footer.qualiparto-footer {
  position: static !important;
  bottom: auto !important;
  padding: 10px 0;
  border-top: 1px solid #b9c4bf;
}

.qualiparto-footer-copy {
  color: #1d1f1e;
  margin: 0;
}

.qualiparto-footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 32px;
  white-space: nowrap;
  overflow-x: auto;
  padding: 4px 0;
}

.qualiparto-footer-logos .external {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.footer-logo-qualisaude {
  height: 42px;
}

.footer-logo-imd {
  height: 38px;
}

.footer-logo-ufrn {
  height: 42px;
}

@media (max-width: 767px) {
  .user-menu-trigger {
    min-width: 145px;
  }

  .user-menu-name {
    max-width: 98px;
  }

  .qualiparto-footer-copy {
    text-align: center;
    margin-bottom: 8px;
  }

  .qualiparto-footer-logos {
    justify-content: flex-start;
    gap: 24px;
  }

  .footer-logo-qualisaude {
    height: 36px;
  }

  .footer-logo-imd {
    height: 32px;
  }

  .footer-logo-ufrn {
    height: 36px;
  }
}

.about-container {
  width: 100%;
  max-width: 1080px;
}

.about-info {
  background-color: #fff !important;
  color: #111 !important;
  padding: 18px;
}

.info-highlight {
  text-align: left;
  background: #eefaf1;
  border: 1px solid #9ddfb0;
  border-left: 5px solid #2dbb63;
  border-radius: 8px;
  color: #1f3b2b;
  padding: 14px 16px;
}

.info-highlight strong,
.info-highlight b {
  color: #1b6f3c;
}

.about-summary {
  text-align: left;
  border: 1px solid #9ddfb0;
  border-left: 5px solid #2dbb63;
  border-radius: 8px;
  padding: 14px 16px;
  background: #eefaf1;
  color: #1f3b2b;
}

.about-summary h4 {
  color: #1b6f3c;
  margin-bottom: 10px;
}

.about-summary-actions {
  margin-top: 10px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.about-index {
  border: 1px solid #dce4df;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 12px;
  text-align: left;
  background: #fff;
}

.about-index h5 {
  margin: 0 0 8px 0;
}

.about-index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-index-links button {
  border: 1px solid #d4ddd7;
  border-radius: 18px;
  background: #f4f7f5;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

.about-tabs {
  gap: 8px;
  margin-bottom: 12px;
}

.about-tabs .nav-link {
  border-radius: 20px;
  border: 1px solid #ccd8d1;
  background: #f6faf8;
  color: #245f43;
}

.about-tabs .nav-link.active {
  background: #2d9b65;
  border-color: #2d9b65;
  color: #fff;
}

.about-tab-content {
  text-align: left;
}

.about-accordion-item {
  border: 1px solid #d9e1dc;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.about-accordion-header {
  width: 100%;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: #f7faf8;
  color: #1f4e37;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.about-accordion-body {
  padding: 12px 14px;
  background: #fff;
}

.about-stepper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.about-stepper-item {
  min-width: 120px;
  border: 1px solid #dbe5df;
  border-radius: 10px;
  padding: 8px;
  background: #f8fbfa;
  text-align: center;
}

.about-stepper-item span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #33b35a;
  color: #fff;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-stepper-item small {
  display: block;
  color: #234334;
}

.ux-hint-card {
  border-left: 5px solid #2dbb63;
}

.howto-card .card-header {
  background: #fff;
}

.howto-summary {
  border: 1px solid #9ddfb0;
  border-left: 5px solid #2dbb63;
  border-radius: 8px;
  background: #eefaf1;
  color: #1f3b2b;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.howto-summary h5 {
  margin-bottom: 8px;
  color: #1b6f3c;
}

.howto-summary ul {
  margin-bottom: 0;
}

.howto-accordion-item {
  border: 1px solid #d9e1dc;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
}

.howto-accordion-header {
  width: 100%;
  border: 0;
  background: #f7faf8;
  color: #1f4e37;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}

.howto-accordion-body {
  padding: 12px 14px;
  background: #fff;
}

.results-empty-state-wrapper {
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.results-empty-state-card {
  width: 100%;
  max-width: 760px;
  border-radius: 14px;
  border: 1px solid #dbe7e0;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  text-align: center;
  padding: 28px 24px;
}

.results-empty-state-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eefaf1;
  color: #2dbb63;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin-bottom: 16px;
}

.results-empty-state-title {
  color: #1c5037;
  font-weight: 700;
  margin-bottom: 10px;
}

.results-empty-state-text {
  color: #2c4137;
  font-size: 1.05rem;
  margin: 0 auto 18px;
  max-width: 620px;
}

.results-empty-state-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .results-empty-state-wrapper {
    min-height: 44vh;
    padding: 10px;
  }

  .results-empty-state-card {
    padding: 20px 14px;
  }

  .results-empty-state-actions {
    flex-direction: column;
  }

.results-empty-state-actions .btn {
    width: 100%;
    max-width: 320px;
  }
}

.dashboard-results-header {
  margin-bottom: 10px;
}

.dashboard-results-header h2 {
  color: #1d4f37;
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.dashboard-results-header p {
  color: #3a5a4a;
  margin-bottom: 4px;
}

.dashboard-help-link {
  color: #2a6f4a;
  font-size: 0.92rem;
  text-decoration: underline;
}

.dashboard-help-link:hover {
  color: #1d5637;
}

.onboarding-activation-card {
  background: #ffffff;
  border: 1px solid #d5e5dc;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.onboarding-activation-title {
  color: #1c5037;
  margin-bottom: 4px;
}

.onboarding-activation-subtitle {
  color: #4e6a5c;
  margin-bottom: 12px;
}

.onboarding-activation-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.onboarding-activation-step {
  border: 1px solid #d6e6dd;
  border-radius: 10px;
  background: #f8fbf9;
  color: #355446;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.onboarding-activation-step-icon {
  font-weight: 700;
  min-width: 16px;
}

.onboarding-activation-step-label {
  font-weight: 600;
}

.onboarding-activation-step.is-completed {
  background: #ecf9ef;
  border-color: #9ddfb0;
  color: #1f6f3c;
}

.onboarding-activation-step.is-current {
  background: #eefaf1;
  border-color: #2dbb63;
  box-shadow: 0 0 0 2px rgba(45, 187, 99, 0.12);
  color: #1a6a3a;
}

.onboarding-activation-step.is-future {
  color: #7a8e83;
}

.onboarding-activation-action {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #dfebe4;
}

.onboarding-activation-kicker {
  color: #1f7a45;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 0.74rem;
}

.onboarding-activation-action-title {
  color: #1d4f37;
  margin: 6px 0 4px;
}

.onboarding-activation-action-description {
  color: #345246;
  margin-bottom: 10px;
}

.onboarding-activation-action-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.onboarding-activation-secondary-link {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  color: #2a6f4a;
  font-size: 0.92rem;
  text-decoration: underline;
}

.onboarding-activation-secondary-link:hover {
  color: #1d5637;
}

@media (max-width: 767px) {
  .onboarding-activation-action-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .onboarding-activation-action-controls .btn {
    width: 100%;
  }

  .onboarding-activation-secondary-link {
    text-align: center;
  }
}

.help-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.help-modal-dialog {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  border: 1px solid #d6e5dc;
}

.help-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e3ece7;
}

.help-modal-header h4 {
  color: #1c5037;
}

.help-modal-body {
  padding: 14px;
  color: #314d40;
}

.help-modal-body ol {
  margin: 0;
  padding-left: 20px;
}

.help-modal-footer {
  padding: 12px 14px;
  border-top: 1px solid #e3ece7;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.howto-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.howto-breadcrumb {
  color: #5d7268;
  font-size: 0.9rem;
}

.page-top-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 10px;
}

.page-back-link {
  border: 0;
  background: transparent;
  color: #2a6f4a;
  font-size: 0.94rem;
  font-weight: 600;
  padding: 2px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border-radius: 4px;
}

.page-back-link:hover {
  color: #1d5637;
  text-decoration: underline;
}

.page-back-link:focus {
  outline: 2px solid #2a6f4a;
  outline-offset: 2px;
}

.page-breadcrumb {
  color: #5d7268;
  font-size: 0.84rem;
}

@media (max-width: 767px) {
  .help-modal-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .help-modal-footer .btn {
    width: 100%;
  }

  .howto-top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-breadcrumb {
    font-size: 0.8rem;
  }
}

.login-refined-page {
  --login-display-font: "SF Pro Display", "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --login-text-font: "SF Pro Text", "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --login-tracking-tight: -0.015em;
  background:
    linear-gradient(120deg, rgba(16, 66, 44, 0.86), rgba(39, 123, 82, 0.78)),
    url('/theme/img/blurBg.jpg') center/cover no-repeat fixed;
}

.login-main-section {
  min-height: calc(100vh - 90px);
  align-items: flex-start !important;
  padding-top: 16px;
  padding-bottom: 8px;
}

.login-refined-holder {
  width: 100%;
  max-width: 1080px;
  overflow: hidden;
}

.login-brand-panel {
  background: linear-gradient(160deg, #1f6e44 0%, #2f9a62 100%);
}

.login-brand-panel .info {
  align-items: center !important;
  justify-content: center;
  min-height: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

.login-brand-panel .content {
  font-family: var(--login-text-font);
  max-width: 446px;
  margin: 0 auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.login-page .form-holder .info h1.login-brand-heading {
  margin: 0 0 10px 0;
  font-size: inherit;
  line-height: 1;
}

.login-brand-logo {
  width: 100%;
  max-width: 470px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
}

.login-page .form-holder .info h2.login-brand-title {
  font-family: var(--login-display-font);
  color: #ffffff;
  font-size: 1.24rem;
  line-height: 1.27;
  font-weight: 500;
  letter-spacing: var(--login-tracking-tight);
  margin: 0 auto 10px auto;
  max-width: 30ch;
  text-align: center;
  text-wrap: balance;
  opacity: 0.95;
}

.login-page .form-holder .info h2.login-brand-title.qualiparto-description {
  font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  color: #ffffff;
  text-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);
}

.login-brand-list {
  font-family: var(--login-text-font);
  color: #f4fff7;
  margin: 0 0 6px 0;
  padding-left: 18px;
  line-height: 1.42;
  font-size: 0.94rem;
  font-weight: 450;
  letter-spacing: -0.004em;
  opacity: 0.92;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.login-brand-list li {
  margin-bottom: 4px;
}

.login-brand-list li:last-child {
  margin-bottom: 0;
}

.login-brand-footnote {
  font-family: var(--login-text-font);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 1px rgba(10, 40, 26, 0.3);
  background: rgba(9, 42, 27, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 0;
}

.login-page .form-holder .info p.login-brand-footnote {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  opacity: 1;
}

.login-form-panel .form {
  min-height: auto;
  align-items: flex-start !important;
  padding-top: 18px;
  padding-bottom: 14px;
}

.login-form-content {
  width: 100%;
  max-width: 420px;
}

.login-form-title {
  font-family: var(--login-display-font);
  color: #1d4f37;
  font-size: 1.6rem;
  margin-bottom: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
}

.login-password-wrapper {
  position: relative;
}

.login-show-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #2a6f4a;
  font-size: 0.88rem;
  text-decoration: none !important;
}

.login-forgot-link {
  border: 0;
  background: transparent;
  color: #2a6f4a;
  font-size: 0.9rem;
  margin-top: 8px;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.login-remember-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.login-remember-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.login-remember-group label {
  margin: 0;
  color: #41574c;
  font-size: 0.92rem;
  cursor: pointer;
}

.login-signup-cta {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #d6e6dd;
  border-radius: 10px;
  background: #f6fbf8;
  text-align: center;
}

.login-signup-cta p {
  margin-bottom: 8px;
  color: #365447;
  font-size: 0.95rem;
}

.login-institutional-footer {
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #e0ebe5;
  color: #6c7f75;
  font-size: 0.8rem;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

.login-institutional-footer a {
  color: #44675a;
  text-decoration: none;
}

.login-institutional-footer a:hover {
  text-decoration: underline;
}

.login-partners-wrap {
  margin-top: 2px;
  padding-bottom: 12px;
}

.login-partners-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d8e6de;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
  padding: 14px 18px;
}

.login-partners-card h3 {
  text-align: center;
  color: #1d4f37;
  font-size: 1.08rem;
  margin-bottom: 10px;
}

.login-partners-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
}

.login-partner-item {
  min-height: 70px;
  border: 1px solid #e3ece7;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.login-partner-logo {
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

.partner-ufrn {
  max-height: 38px;
}

.partner-imd {
  max-height: 34px;
}

.partner-qualisaude {
  max-height: 34px;
}

.partner-mejc {
  max-height: 50px;
}

.partner-huab {
  max-height: 46px;
}

.login-partner-text {
  font-weight: 700;
  color: #1d4f37;
  letter-spacing: 0.4px;
}

@media (max-width: 767px) {
  .login-page .form-holder .info h2.login-brand-title {
    font-size: 1.12rem;
    line-height: 1.3;
    max-width: 28ch;
  }

  .login-form-panel .form {
    min-height: auto;
    padding: 14px 0;
  }

  .login-form-content {
    max-width: 100%;
  }

  .login-main-section {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 6px;
  }

  .login-brand-logo {
    width: 100%;
    max-width: 360px;
  }

  .login-partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login-partners-wrap {
    margin-top: 0;
    padding-bottom: 10px;
  }

  .partner-mejc {
    max-height: 42px;
  }

  .partner-huab {
    max-height: 40px;
  }
}
