/* Avaliação Blue R86 — fila operacional do RH e impressão com visão geral primeiro. */

body.r360-blue-ux .r360-blue-rh-review-tab {
  position: relative;
}

body.r360-blue-ux .r360-blue-rh-review-tab.has-pending:not(.active) {
  color: #b54708;
  border-color: #fed7aa;
  background: #fff7ed;
}

body.r360-blue-ux .r360-blue-rh-review-tab.active,
body.r360-blue-ux .r360-blue-rh-review-tab.is-active {
  color: #fff !important;
  border-color: #5b4df6 !important;
  background: linear-gradient(135deg, #5b4df6, #155eef) !important;
  box-shadow: 0 10px 24px rgba(21, 94, 239, .2);
}

body.r360-blue-ux .r360-blue-rh-review-icon {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(21, 94, 239, .1);
  font-size: 12px;
  font-weight: 900;
}

body.r360-blue-ux .r360-blue-rh-review-tab.active .r360-blue-rh-review-icon {
  background: rgba(255, 255, 255, .18);
}

body.r360-blue-ux .r360-blue-rh-review-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #fff;
  background: #dc2626;
  font-size: 11px;
  font-weight: 900;
}

body.r360-blue-ux .r360-blue-rh-review-tab.active .r360-blue-rh-review-count {
  color: #155eef;
  background: #fff;
}

body.r360-blue-ux .r360-blue-rh-review-panel {
  min-width: 0;
  margin-top: 12px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid #d8e4f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(30, 64, 175, .08);
}

body.r360-blue-ux .r360-blue-rh-review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e6edf7;
}

body.r360-blue-ux .r360-blue-rh-review-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #5b4df6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

body.r360-blue-ux .r360-blue-rh-review-head h2 {
  margin: 0;
  color: #14213d;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.18;
}

body.r360-blue-ux .r360-blue-rh-review-head p {
  max-width: 780px;
  margin: 7px 0 0;
  color: #60708c;
  font-size: 13px;
  line-height: 1.55;
}

body.r360-blue-ux .r360-blue-rh-review-refresh {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #cbd8eb;
  border-radius: 10px;
  color: #17233c;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
}

body.r360-blue-ux .r360-blue-rh-review-refresh:hover {
  border-color: #155eef;
  color: #155eef;
  background: #f5f8ff;
}

body.r360-blue-ux .r360-blue-rh-review-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

body.r360-blue-ux .r360-blue-rh-review-metrics article {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid #dce6f5;
  border-radius: 13px;
  background: linear-gradient(145deg, #fbfdff, #f5f8ff);
}

body.r360-blue-ux .r360-blue-rh-review-metrics span,
body.r360-blue-ux .r360-blue-rh-review-metrics small {
  display: block;
  color: #65758f;
  font-size: 11px;
}

body.r360-blue-ux .r360-blue-rh-review-metrics strong {
  display: block;
  margin: 4px 0;
  overflow-wrap: anywhere;
  color: #14213d;
  font-size: 20px;
  line-height: 1.15;
}

body.r360-blue-ux .r360-blue-rh-review-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

body.r360-blue-ux .r360-blue-rh-review-search {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #cbd8eb;
  border-radius: 11px;
  background: #fff;
}

body.r360-blue-ux .r360-blue-rh-review-search:focus-within {
  border-color: #155eef;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, .1);
}

body.r360-blue-ux .r360-blue-rh-review-search span {
  margin-right: 8px;
  color: #71809a;
  font-size: 20px;
}

body.r360-blue-ux .r360-blue-rh-review-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #14213d;
  background: transparent;
  font: inherit;
  font-size: 14px;
}

body.r360-blue-ux .r360-blue-rh-review-order {
  flex: 0 0 auto;
  color: #6b7890;
  font-size: 11px;
  font-weight: 750;
}

body.r360-blue-ux .r360-blue-rh-review-list {
  display: grid;
  gap: 10px;
}

body.r360-blue-ux .r360-blue-rh-review-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(170px, auto);
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce6f5;
  border-radius: 14px;
  background: #fbfdff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.r360-blue-ux .r360-blue-rh-review-card:hover {
  transform: translateY(-1px);
  border-color: #aebff0;
  box-shadow: 0 10px 24px rgba(30, 64, 175, .08);
}

body.r360-blue-ux .r360-blue-rh-review-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #5b4df6, #155eef);
  font-size: 14px;
  font-weight: 900;
}

body.r360-blue-ux .r360-blue-rh-review-person {
  min-width: 0;
}

body.r360-blue-ux .r360-blue-rh-review-person-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.r360-blue-ux .r360-blue-rh-review-person-head > strong {
  color: #14213d;
  font-size: 14px;
}

body.r360-blue-ux .r360-blue-rh-review-person > span,
body.r360-blue-ux .r360-blue-rh-review-person > small {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
  color: #67758d;
  font-size: 11px;
}

body.r360-blue-ux .r360-blue-rh-review-status {
  display: inline-flex !important;
  align-items: center;
  width: fit-content;
  margin: 0 !important;
  padding: 4px 8px;
  border-radius: 999px;
  color: #9a3412 !important;
  background: #ffedd5;
  font-size: 10px !important;
  font-weight: 850;
}

body.r360-blue-ux .r360-blue-rh-review-progress {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 430px;
  margin-top: 9px;
}

body.r360-blue-ux .r360-blue-rh-review-progress > span {
  flex: 1 1 auto;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5ebf4;
}

body.r360-blue-ux .r360-blue-rh-review-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b4df6, #155eef);
}

body.r360-blue-ux .r360-blue-rh-review-progress strong {
  flex: 0 0 auto;
  color: #40506b;
  font-size: 10px;
}

body.r360-blue-ux .r360-blue-rh-review-action {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

body.r360-blue-ux .r360-blue-rh-review-action small {
  color: #79869c;
  font-size: 10px;
}

body.r360-blue-ux .r360-blue-rh-review-action button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #155eef;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #5b4df6, #155eef);
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(21, 94, 239, .18);
}

body.r360-blue-ux .r360-blue-rh-review-action button:hover {
  filter: brightness(.96);
}

body.r360-blue-ux .r360-blue-rh-review-state {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 24px;
  border: 1px dashed #cbd8eb;
  border-radius: 14px;
  color: #68778f;
  text-align: center;
  background: #fbfdff;
}

body.r360-blue-ux .r360-blue-rh-review-state strong,
body.r360-blue-ux .r360-blue-rh-review-state span {
  display: block;
}

body.r360-blue-ux .r360-blue-rh-review-state.success {
  border-color: #a7e3c1;
  color: #166534;
  background: #f0fdf4;
}

body.r360-blue-ux .r360-blue-rh-review-state.error {
  border-color: #fecaca;
  color: #991b1b;
  background: #fff7f7;
}

@media (max-width: 760px) {
  body.r360-blue-ux .r360-blue-rh-review-panel {
    padding: 14px;
    border-radius: 15px;
  }

  body.r360-blue-ux .r360-blue-rh-review-head {
    align-items: stretch;
    flex-direction: column;
  }

  body.r360-blue-ux .r360-blue-rh-review-refresh {
    width: 100%;
  }

  body.r360-blue-ux .r360-blue-rh-review-metrics {
    grid-template-columns: 1fr;
  }

  body.r360-blue-ux .r360-blue-rh-review-tools {
    align-items: stretch;
    flex-direction: column;
  }

  body.r360-blue-ux .r360-blue-rh-review-order {
    padding-left: 2px;
  }

  body.r360-blue-ux .r360-blue-rh-review-card {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    padding: 12px;
  }

  body.r360-blue-ux .r360-blue-rh-review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  body.r360-blue-ux .r360-blue-rh-review-person-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body.r360-blue-ux .r360-blue-rh-review-action {
    grid-column: 1 / -1;
    align-items: stretch;
  }

  body.r360-blue-ux .r360-blue-rh-review-action button {
    width: 100%;
    min-height: 44px;
  }
}

@media print {
  body.printing-blue-document .blue-print-results {
    grid-template-columns: minmax(0, 1.45fr) minmax(205px, .72fr) !important;
    grid-template-rows: auto auto auto !important;
    align-items: start !important;
  }

  body.printing-blue-document .blue-print-score-visual {
    display: contents !important;
  }

  body.printing-blue-document .blue-print-radar-card {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
    display: block !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 11px 12px !important;
  }

  body.printing-blue-document .blue-print-radar {
    width: 100% !important;
    height: 275px !important;
    max-height: 275px !important;
    margin: 4px auto 0 !important;
  }

  body.printing-blue-document .blue-print-final-average {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  body.printing-blue-document .blue-print-theme-chart {
    grid-column: 2 !important;
    grid-row: 2 !important;
    align-self: stretch !important;
  }

  body.printing-blue-document .blue-print-results > div:first-child {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    margin-top: 3px !important;
  }

  body.printing-blue-document .blue-print-results > div:first-child article {
    padding: 5px 0 !important;
  }

  body.printing-blue-document .blue-print-results > div:first-child article p {
    max-width: none !important;
  }
}
