/* EstágiosPro — abas de seção alinhadas ao padrão visual AprendizPro. */
.section-tabs {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
  gap: 8px !important;
  margin: 0 !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 18px !important;
  padding: 8px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgb(15 23 42 / .04) !important;
}

.section-tab {
  min-width: 0;
  min-height: 64px;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-content: center;
  gap: 4px !important;
  border: 1px solid transparent !important;
  border-radius: 13px !important;
  padding: 11px 14px !important;
  color: #53627b !important;
  text-align: left;
  background: transparent !important;
  box-shadow: none !important;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.section-tab b {
  overflow: hidden;
  color: #182135 !important;
  font-size: 11px !important;
  font-weight: 620 !important;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.section-tab small {
  grid-column: 1 !important;
  overflow: hidden;
  color: #71819c !important;
  font-size: 9px !important;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.section-tab:hover {
  border-color: #d4dcff !important;
  color: #2f4cff !important;
  background: #f8f9ff !important;
}

.section-tab:focus-visible {
  border-color: #aab7ff !important;
  outline: 3px solid rgb(47 76 255 / .12) !important;
  outline-offset: 1px;
}

.section-tab--active,
.section-tab[aria-selected="true"] {
  border-color: #aebaff !important;
  color: #2f4cff !important;
  background: #f1f3ff !important;
  box-shadow: inset 0 0 0 1px rgb(47 76 255 / .05) !important;
}

.section-tab--active b,
.section-tab[aria-selected="true"] b {
  color: #263fd4 !important;
}

.section-tab--active small,
.section-tab[aria-selected="true"] small {
  color: #596b91 !important;
}

.section-tabs--numbered .section-tab {
  grid-template-columns: auto minmax(0, 1fr) !important;
}

.section-tabs--numbered .section-tab > span {
  width: 30px;
  height: 30px;
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  border-radius: 10px;
  color: #5d6d88;
  background: #f1f4f9;
  font-size: 10px;
  font-weight: 700;
}

.section-tabs--numbered .section-tab--active > span,
.section-tabs--numbered .section-tab[aria-selected="true"] > span {
  color: #fff;
  background: #2f4cff;
}

@media (max-width: 900px) {
  .section-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  .section-tabs {
    grid-template-columns: 1fr !important;
  }
}
