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

html,
body,
button,
input,
select,
textarea {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
}

.page,
.content-inner {
  background: #ffffff;
}

.content-inner .page-header,
.content-inner .card,
.content-inner .card-header {
  border: 0;
  box-shadow: none;
}

.content-inner .card {
  background: #ffffff;
}

.content-inner .card-header {
  border-bottom: 0;
  background: #ffffff;
}

.content-inner .shadow,
.content-inner .shadow-sm,
.content-inner .shadow-lg,
.content-inner .has-shadow {
  box-shadow: none !important;
}

.form-control,
.custom-select,
input.input-material {
  height: 40px;
  min-height: 40px;
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
}

input.form-control,
select.form-control,
.custom-select,
input.input-material {
  padding-top: 8px;
  padding-bottom: 8px;
}

textarea.form-control,
select.form-control[multiple],
select.form-control[size] {
  height: auto;
  min-height: 40px;
  border-radius: 8px;
}

select.form-control:not([multiple]):not([size]),
.custom-select {
  padding-right: 32px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2346566b' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.75' d='m1 1.25 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px 8px;
  appearance: none;
}

select.form-control::-ms-expand,
.custom-select::-ms-expand {
  display: none;
}

.form-control-sm,
.form-control-lg {
  height: 40px;
  min-height: 40px;
  border-radius: 8px;
}

.dashboard-hospital-select {
  width: calc(100% - 16px);
}

.content-inner input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.content-inner select:not([multiple]):not([size]),
.content-inner .custom-select {
  height: 40px;
  min-height: 40px;
  border-radius: 8px;
}

.content-inner textarea {
  min-height: 40px;
  border-radius: 8px;
}

.questionnaire-tabs .nav-link {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #5f6b65;
}

.questionnaire-tabs .nav-link:hover,
.questionnaire-tabs .nav-link:focus {
  border-color: transparent;
  border-bottom-color: #9bd4ac;
  background: transparent;
  color: #248d48;
}

.questionnaire-tabs .nav-link.active,
.questionnaire-tabs .nav-item.show .nav-link {
  border-color: transparent;
  border-bottom-color: #248d48;
  background: transparent;
  color: #248d48;
  font-weight: 600;
}

.qualiparto-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  border-radius: 999px;
}

.qualiparto-brand-logo {
  display: block;
  width: auto;
  height: 32px;
}

nav.navbar .menu-btn {
  display: inline-flex;
  width: 40px;
  height: 40px;
  margin-right: 20px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

nav.navbar .menu-btn:hover,
nav.navbar .menu-btn:focus {
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

nav.navbar .menu-btn .fa {
  display: block;
  font-size: 22px;
  line-height: 1;
}

/* Button hierarchy */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 16px;
  border-width: 1px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn-sm {
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8125rem;
}

.btn-lg {
  min-height: 48px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 1rem;
}

.btn-primary,
.btn-success {
  border-color: #2eaa58;
  background: #2eaa58;
  color: #fff;
}

.btn-primary:hover,
.btn-success:hover {
  border-color: #248d48;
  background: #248d48;
  color: #fff;
}

.btn-primary:focus,
.btn-primary.focus,
.btn-success:focus,
.btn-success.focus {
  border-color: #248d48;
  background: #2eaa58;
  color: #fff;
  box-shadow: 0 0 0 3px rgba(46, 170, 88, 0.24);
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active,
.btn-success:not(:disabled):not(.disabled):active,
.btn-success:not(:disabled):not(.disabled).active {
  border-color: #1f7b3e;
  background: #1f7b3e;
  color: #fff;
}

.btn-secondary,
.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-success {
  border-color: #2eaa58;
  background: transparent;
  color: #248d48;
}

.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-outline-secondary:hover,
.btn-outline-success:hover {
  border-color: #248d48;
  background: #edf8f1;
  color: #1f7b3e;
}

.btn-secondary:focus,
.btn-secondary.focus,
.btn-outline-primary:focus,
.btn-outline-primary.focus,
.btn-outline-secondary:focus,
.btn-outline-secondary.focus,
.btn-outline-success:focus,
.btn-outline-success.focus {
  border-color: #248d48;
  background: transparent;
  color: #1f7b3e;
  box-shadow: 0 0 0 3px rgba(46, 170, 88, 0.2);
}

.btn-secondary:not(:disabled):not(.disabled):active,
.btn-secondary:not(:disabled):not(.disabled).active,
.btn-outline-primary:not(:disabled):not(.disabled):active,
.btn-outline-primary:not(:disabled):not(.disabled).active,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.btn-outline-success:not(:disabled):not(.disabled):active,
.btn-outline-success:not(:disabled):not(.disabled).active {
  border-color: #248d48;
  background: #dff1e5;
  color: #1f7b3e;
}

.btn-tertiary,
.btn-link {
  min-height: 40px;
  padding-right: 8px;
  padding-left: 8px;
  border-color: transparent;
  background: transparent;
  color: #248d48;
  box-shadow: none;
}

.btn-tertiary:hover,
.btn-link:hover {
  border-color: transparent;
  background: #edf8f1;
  color: #1f7b3e;
  text-decoration: none;
}

.btn-tertiary:focus,
.btn-link:focus,
.btn-tertiary.focus,
.btn-link.focus {
  border-color: transparent;
  background: #edf8f1;
  color: #1f7b3e;
  box-shadow: 0 0 0 3px rgba(46, 170, 88, 0.2);
  text-decoration: none;
}

.btn.disabled,
.btn:disabled {
  border-color: #cbd4ce;
  background: #e7ece9;
  color: #8b9690;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.72;
}

.btn-tertiary.disabled,
.btn-tertiary:disabled,
.btn-link.disabled,
.btn-link:disabled {
  border-color: transparent;
  background: transparent;
  color: #9aa49e;
}

/* Form actions */

.form-action-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.form-action-row .btn {
  margin: 0;
  white-space: nowrap;
}

form > .form-group:last-child:has(> .btn:only-child),
form > .form-group:last-child:has(> input[type="submit"].btn:only-child),
form > .form-group:last-child:has(> button.btn:only-child) {
  display: flex;
  justify-content: flex-end;
}

.card-body:has(> .form-row) > .btn-primary:last-child,
.card-body:has(> .form-row) > .btn-success:last-child {
  display: flex;
  width: max-content;
  margin-left: auto;
}

@media (max-width: 575.98px) {
  .form-action-row {
    align-items: stretch;
    flex-direction: column;
  }

  .form-action-row .btn,
  .card-body:has(> .form-row) > .btn-primary:last-child,
  .card-body:has(> .form-row) > .btn-success:last-child {
    width: 100%;
  }
}

/* Report chart periodicity selector */

.report-periodicity {
  max-width: 520px;
}

.report-periodicity .btn-group {
  width: 100%;
}

.report-periodicity .btn-group > .btn {
  flex: 1 1 0;
  min-width: 0;
}

/* Permission page actions */

.permissions-action-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  margin-top: 20px;
}

.permissions-action-bar .btn {
  min-width: 132px;
  margin: 0;
  white-space: nowrap;
}

.permissions-action-bar .btn-tertiary {
  min-width: auto;
}

@media (max-width: 767.98px) {
  .permissions-action-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .permissions-action-bar .btn {
    width: 100%;
  }
}

/* Compact actions used inside data tables */

.table-actions-cell {
  width: 1%;
  white-space: nowrap;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.table-action-button {
  display: inline-flex;
  width: 36px;
  height: 36px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #278b49;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.table-action-button:hover {
  border-color: #cbe8d3;
  background: #edf8f1;
  color: #1f713b;
  text-decoration: none;
}

.table-action-button:focus {
  border-color: #52b96f;
  color: #1f713b;
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 170, 88, 0.2);
}

.table-action-button.dropdown-toggle::after {
  display: none;
}

.table-action-button[data-tooltip] {
  position: relative;
}

.table-action-button[data-tooltip]::before,
.table-action-button[data-tooltip]::after {
  position: absolute;
  left: 50%;
  z-index: 1080;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}

.table-action-button[data-tooltip]::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 220px;
  padding: 6px 9px;
  border-radius: 5px;
  background: #25352b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  box-shadow: 0 4px 12px rgba(20, 43, 28, 0.2);
}

.table-action-button[data-tooltip]::after {
  content: '';
  bottom: calc(100% + 3px);
  border: 5px solid transparent;
  border-top-color: #25352b;
}

.table-action-button[data-tooltip]:hover::before,
.table-action-button[data-tooltip]:hover::after,
.table-action-button[data-tooltip]:focus-visible::before,
.table-action-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.table-action-button.dropdown-toggle[data-tooltip]::after {
  display: block;
}

.table-action-button.dropdown-toggle[data-tooltip][aria-expanded="true"]::before,
.table-action-button.dropdown-toggle[data-tooltip][aria-expanded="true"]::after {
  display: none;
}

.table-action-danger {
  color: #278b49;
}

.table-action-danger:hover,
.table-action-danger:focus {
  border-color: #f0c9c9;
  background: #fff1f1;
  color: #b83d3d;
}

.table-actions .dropdown-menu {
  min-width: 220px;
  padding: 6px;
  border-color: #e0e6e2;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(28, 61, 39, 0.14);
}

.table-actions .dropdown-item {
  display: flex;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #3f4854;
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.table-actions .dropdown-item i {
  width: 18px;
  color: #278b49;
  text-align: center;
}

.table-actions .dropdown-item:hover,
.table-actions .dropdown-item:focus {
  background: #edf8f1;
  color: #1f713b;
  outline: none;
}

.table-actions .dropdown-item:disabled,
.table-actions .dropdown-item.disabled {
  background: transparent;
  color: #9aa49e;
  cursor: not-allowed;
  opacity: 0.7;
}

.table-actions .dropdown-item:disabled i,
.table-actions .dropdown-item.disabled i {
  color: #9aa49e;
}

/* Status badges */

.status-badge {
  display: inline-flex;
  min-height: 28px;
  padding: 5px 10px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.status-badge i {
  font-size: 0.875rem;
}

.status-badge-in-progress {
  background: #eaf1ff;
  color: #4d7fe8;
}

.status-badge-completed {
  background: #e5f6eb;
  color: #269653;
}

.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 {
  padding: 18px 0;
  color: #3f4854;
}

nav.side-navbar .sidebar-section {
  padding: 0 12px 18px;
}

nav.side-navbar .sidebar-section + .sidebar-section {
  padding-top: 20px;
  border-top: 1px solid #e3e7eb;
}

nav.side-navbar span.heading {
  display: block;
  margin: 0 12px 10px;
  color: #8b94a3;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

nav.side-navbar ul {
  padding: 0;
  margin: 0;
}

nav.side-navbar ul li + li {
  margin-top: 3px;
}

nav.side-navbar ul li a {
  display: flex;
  min-height: 44px;
  padding: 10px 12px;
  align-items: center;
  gap: 12px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 6px 6px 0;
  color: #3f4854;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
}

nav.side-navbar ul li a i {
  width: 22px;
  margin: 0;
  flex: 0 0 22px;
  color: #46566b;
  font-size: 1.1rem;
  text-align: center;
}

nav.side-navbar ul li a:hover {
  border-left-color: #32ad58;
  background: #f1f8f3;
  color: #218d43;
}

nav.side-navbar ul li a:hover i {
  color: #218d43;
}

nav.side-navbar ul li a.active,
nav.side-navbar ul li a.active:hover {
  border-left-color: #32ad58;
  background: #edf7f0;
  color: #239848;
  font-weight: 600;
}

nav.side-navbar ul li a.active i {
  color: #239848;
}

nav.side-navbar.shrinked {
  padding-top: 12px;
}

nav.side-navbar.shrinked .sidebar-section {
  padding-right: 8px;
  padding-left: 8px;
}

nav.side-navbar.shrinked span.heading,
nav.side-navbar.shrinked ul li a span {
  display: none;
}

nav.side-navbar.shrinked ul li a,
nav.side-navbar.shrinked ul li a.active {
  min-height: 48px;
  padding: 12px 2px;
  justify-content: center;
  border: 0;
  border-radius: 8px;
}

nav.side-navbar.shrinked ul li a i {
  width: auto;
  margin: 0;
  flex-basis: auto;
  color: inherit;
  font-size: 1.1rem;
}

.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: #eef5ff;
  border: 1px solid #b8d4f4;
  border-left: 5px solid #3b82c4;
  border-radius: 8px;
  color: #24435f;
  padding: 14px 16px;
}

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

.about-summary {
  text-align: left;
  border: 1px solid #b8d4f4;
  border-left: 5px solid #3b82c4;
  border-radius: 8px;
  padding: 14px 16px;
  background: #eef5ff;
  color: #24435f;
}

.about-summary h4 {
  color: #1f5f99;
  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-color: #3b82c4;
}

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

.howto-summary {
  border: 1px solid #b8d4f4;
  border-left: 5px solid #3b82c4;
  border-radius: 8px;
  background: #eef5ff;
  color: #24435f;
  padding: 14px 16px;
  margin-bottom: 12px;
}

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

.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: "Roboto", "Segoe UI", Arial, sans-serif;
  --login-text-font: "Roboto", "Segoe UI", 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('../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;
  }
}

.login-refined-page {
  --login-background: #fbfdfb;
  --login-foreground: #173229;
  --login-primary: #18a45d;
  --login-primary-dark: #117945;
  --login-primary-foreground: #ffffff;
  --login-muted: #f0f7f3;
  --login-muted-foreground: #64756d;
  --login-border: #dde8df;
  --login-card: #ffffff;
  --login-shadow: 0 24px 70px rgba(23, 50, 41, 0.16);
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(24, 164, 93, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(24, 164, 93, 0.14), var(--login-background) 46%, rgba(24, 164, 93, 0.06));
  color: var(--login-foreground);
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
}

.login-refined-page::before {
  display: none;
}

.login-background-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image: radial-gradient(circle at 1px 1px, var(--login-foreground) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

.login-refined-page .login-main-section {
  position: relative;
  z-index: 1;
  display: flex !important;
  min-height: 100vh;
  width: 100%;
  align-items: center !important;
  justify-content: center;
  padding: 32px;
}

.login-refined-page .login-refined-holder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100%, 1024px);
  min-height: 660px;
  overflow: hidden;
  border: 1px solid var(--login-border);
  border-radius: 28px;
  background: var(--login-card);
  box-shadow: var(--login-shadow);
}

.login-refined-page .login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  background: var(--login-primary);
  color: var(--login-primary-foreground);
  padding: 48px;
}

.login-refined-page .login-brand-panel::after {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  content: "";
  filter: blur(22px);
}

.login-refined-page .login-back-link {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.login-refined-page .login-back-link:hover {
  color: #ffffff;
}

.login-refined-page .login-brand-logo-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  text-align: center;
}

.login-refined-page .login-brand-logo {
  display: block;
  width: auto;
  max-width: 300px;
  height: 64px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.login-refined-page .login-brand-copy {
  position: relative;
  z-index: 1;
}

.login-refined-page .login-brand-title {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.55;
}

.login-refined-page .login-brand-list {
  display: grid;
  gap: 9px;
  max-width: none;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.5;
  list-style: none;
}

.login-refined-page .login-brand-list li {
  position: relative;
  margin: 0;
  padding-left: 18px;
}

.login-refined-page .login-brand-list li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  content: "";
}

.login-refined-page .login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--login-card);
  padding: 48px;
}

.login-refined-page .login-form-panel .form {
  display: block !important;
  width: 100%;
  min-height: 0;
  padding: 0;
}

.login-refined-page .login-form-content {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
}

.login-refined-page .login-form-title {
  margin: 0;
  color: var(--login-foreground);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.login-refined-page .login-form-subtitle {
  margin: 6px 0 30px;
  color: var(--login-muted-foreground);
  font-size: 14px;
  line-height: 1.55;
}

.login-refined-page .form-group {
  margin-bottom: 20px;
}

.login-refined-page .form-group label {
  display: block;
  margin-bottom: 6px;
  color: var(--login-foreground);
  font-size: 14px;
  font-weight: 600;
}

.login-refined-page .form-control,
.login-refined-page .input-material {
  width: 100%;
  height: 40px;
  min-height: 40px;
  border: 1px solid var(--login-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--login-foreground);
  font-size: 14px;
  padding: 8px 12px;
}

.login-refined-page .form-control::placeholder,
.login-refined-page .input-material::placeholder {
  color: rgba(100, 117, 109, 0.62);
}

.login-refined-page .form-control:focus,
.login-refined-page .input-material:focus {
  border-color: var(--login-primary) !important;
  outline: 0;
}

.login-refined-page .login-password-wrapper .form-control {
  padding-right: 84px;
}

.login-refined-page .login-show-password {
  right: 12px;
  color: var(--login-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 0;
  text-decoration: none !important;
}

.login-refined-page .login-show-password:hover,
.login-refined-page .login-forgot-link:hover {
  color: var(--login-primary-dark);
  text-decoration: underline !important;
}

.login-refined-page .login-forgot-link {
  color: var(--login-primary);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

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

.login-refined-page .login-remember-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--login-primary);
}

.login-refined-page .login-remember-group label {
  color: var(--login-foreground);
  font-size: 14px;
}

.login-refined-page .login-form-content .btn-success,
.login-refined-page .login-form-content #login {
  width: 100%;
  min-height: 44px;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--login-primary) !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none !important;
}

.login-refined-page .login-form-content .btn-success:hover,
.login-refined-page .login-form-content #login:hover {
  background: var(--login-primary-dark) !important;
}

.login-refined-page .login-signup-cta {
  margin-top: 24px;
  border: 1px solid rgba(24, 164, 93, 0.2);
  border-radius: 14px;
  background: rgba(24, 164, 93, 0.05);
  padding: 16px;
  text-align: center;
}

.login-refined-page .login-signup-cta p {
  margin: 0 0 10px;
  color: var(--login-foreground);
  font-size: 14px;
}

.login-refined-page .btn-outline-success {
  border-color: var(--login-primary) !important;
  border-radius: 8px !important;
  color: var(--login-primary) !important;
  font-size: 14px;
  font-weight: 650;
  padding: 7px 22px;
}

.login-refined-page .btn-outline-success:hover {
  background: var(--login-primary) !important;
  color: #ffffff !important;
}

.login-refined-page .login-institutional-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 0;
  border-top: 0;
  color: var(--login-muted-foreground);
  font-size: 12px;
}

.login-refined-page .login-institutional-footer a {
  color: var(--login-muted-foreground);
  text-decoration: none;
}

.login-refined-page .login-institutional-footer a:hover {
  color: var(--login-primary);
}

@media (max-width: 860px) {
  .login-refined-page .login-main-section {
    padding: 18px;
  }

  .login-refined-page .login-refined-holder {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .login-refined-page .login-brand-panel {
    min-height: 320px;
    padding: 32px;
    gap: 34px;
  }

  .login-refined-page .login-form-panel {
    padding: 34px 26px;
  }
}

@media (max-width: 520px) {
  .login-refined-page .login-main-section {
    padding: 0;
  }

  .login-refined-page .login-refined-holder {
    min-height: 100vh;
    border-width: 0;
    border-radius: 0;
  }

  .login-refined-page .login-brand-panel {
    min-height: 280px;
    padding: 26px 22px;
  }

  .login-refined-page .login-brand-logo {
    max-width: 240px;
    height: 52px;
  }
}
