/* Consulta VTE v1.0.4.3 — UX Colaborador + RH */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* COLABORADOR: opções mais visíveis */
.option-grid {
  gap: 14px !important;
}

.option-card {
  position: relative;
  min-height: 104px;
  padding: 18px 18px 18px 72px !important;
  border: 2px solid #bdd0e2 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%) !important;
  box-shadow: 0 10px 24px rgba(9, 31, 66, .07) !important;
  color: #06295d !important;
}

.option-card::before {
  position: absolute;
  left: 18px;
  top: 50%;
  width: 40px;
  height: 40px;
  transform: translateY(-50%);
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e7f2fa;
  color: #0e448f;
  font-size: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(14, 68, 143, .08);
}

.option-card[data-service="creditos"]::before {
  content: "💳";
}

.option-card[data-service="segunda_via"]::before {
  content: "🪪";
}

.option-card strong {
  font-size: 1.08rem !important;
  color: #06295d !important;
}

.option-card span {
  color: #526b88 !important;
  font-weight: 600;
}

.option-card:hover {
  transform: translateY(-2px);
  border-color: #6da9ce !important;
  box-shadow: 0 16px 30px rgba(9, 31, 66, .11) !important;
}

.option-card.active {
  border-color: transparent !important;
  background: linear-gradient(135deg, #06295d 0%, #0e448f 58%, #0c9c9a 100%) !important;
  box-shadow: 0 18px 34px rgba(6, 41, 93, .24) !important;
}

.option-card.active::before {
  background: rgba(255, 255, 255, .18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.option-card.active strong,
.option-card.active span {
  color: #fff !important;
}

/* COLABORADOR: o resultado assume a área visível após consultar */
body.result-mode .layout-grid {
  display: none !important;
}

body.result-mode .result-card {
  margin-top: 0 !important;
  min-height: calc(100dvh - 118px);
  align-content: start;
  padding: clamp(22px, 3vw, 38px) !important;
  border-radius: 26px !important;
  box-shadow: 0 24px 60px rgba(9, 31, 66, .12) !important;
}

body.result-mode #emptyState {
  display: none !important;
}

body.result-mode #resultWrap {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: grid !important;
  gap: 20px;
}

body.result-mode .result-head {
  padding-bottom: 18px;
  border-bottom: 1px solid #d8e4ef;
}

body.result-mode .credit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.result-mode .actions-row {
  margin-top: 4px !important;
}

/* RH: cabeçalho compacto e sem colunas laterais */
.rh-dashboard-shell {
  width: min(calc(100% - 24px), 1320px) !important;
}

.rh-dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 24px 26px;
  border: 1px solid #d8e4ef;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(9, 31, 66, .08);
}

.rh-dashboard-header h1 {
  margin: 10px 0 8px;
  color: #06295d;
  font-size: clamp(1.9rem, 3vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -.05em;
}

.rh-dashboard-header p {
  max-width: 760px;
  margin: 0;
  color: #5f738f;
  line-height: 1.6;
}

.rh-company-data {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.rh-cards-panel {
  width: 100%;
  min-width: 0;
}

.rh-toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 16px;
  align-items: center;
}

.rh-inline-summary {
  margin: 0;
}

/* RH: resultados em cards, sem tabela larga e sem rolagem horizontal */
.rh-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
}

.rh-result-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid #d8e4ef;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f9fcfe 100%);
  box-shadow: 0 12px 28px rgba(9, 31, 66, .07);
}

.rh-result-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e4edf4;
}

.rh-result-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rh-result-index {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #06295d, #0c9c9a);
  color: #fff;
  font-weight: 900;
}

.rh-result-card-title h3 {
  margin: 0;
  color: #06295d;
  font-size: 1.05rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.rh-result-card-title p {
  margin: 4px 0 0;
  color: #6b7f96;
  font-size: .9rem;
}

.rh-card-main-data,
.rh-card-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.rh-card-main-data {
  padding-top: 14px;
}

.rh-card-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e4edf4;
}

.rh-card-details h4 {
  margin: 0 0 10px;
  color: #06295d;
  font-size: .92rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rh-info-field {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e1eaf2;
  border-radius: 14px;
  background: #fff;
}

.rh-info-field span {
  display: block;
  margin-bottom: 5px;
  color: #6b7f96;
  font-size: .76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.rh-info-field strong {
  display: block;
  color: #173057;
  font-size: .94rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

@media (max-width: 1040px) {
  .rh-dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .rh-company-data {
    justify-content: flex-start;
  }

  .rh-toolbar-row {
    grid-template-columns: 1fr;
  }

  .rh-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.result-mode .result-card {
    min-height: calc(100dvh - 150px);
  }

  body.result-mode .credit-grid,
  .rh-card-main-data,
  .rh-card-detail-grid {
    grid-template-columns: 1fr;
  }

  .option-card {
    min-height: 94px;
    padding-left: 66px !important;
  }

  .rh-dashboard-header,
  .rh-cards-panel {
    padding: 18px !important;
  }

  .rh-result-card-head {
    flex-direction: column;
  }
}
