.adminContainer{
  width: calc(100% - 200px);
}

/*
 * Firefox: popup nativo do <select> fica estreito/cortado dentro de
 * ancestrais com overflow:auto (adminContainer, admCfgContainer).
 * Chrome não tem esse comportamento. Regras abaixo só no Firefox.
 */
@-moz-document url-prefix() {
  .avaContainer {
    overflow-y: auto;
    max-height: calc(100vh - 120px);
    align-items: flex-start;
  }

  .avaContainer > .adminContainer:not(.compValPage):not(.secDash):not(.admCfgContainer):not(.admAcadAprovPage):not(.pmMain):not(.admHub):not(.dpMain):not(.estMain),
  .adminContainer.admCfgContainer:not(.admAcadAprovPage) {
    overflow: visible !important;
    height: auto;
    min-height: calc(100vh - 120px);
  }

  .avaContainer > .adminContainer.compValPage,
  .avaContainer > .adminContainer.secDash,
  .avaContainer > .adminContainer.admAcadAprovPage,
  .avaContainer > .adminContainer.admHub,
  .avaContainer > .adminContainer.dpMain,
  .avaContainer > .adminContainer.estMain {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: calc(100vh - 120px) !important;
    max-height: calc(100vh - 120px) !important;
    min-height: 0 !important;
  }

  .avaContainer:has(> .adminContainer.admAcadAprovPage),
  .avaContainer:has(> .adminContainer.admHub),
  .avaContainer:has(> .adminContainer.dpMain),
  .avaContainer:has(> .adminContainer.estMain) {
    overflow: hidden;
    max-height: calc(100vh - 120px);
  }

  body.registration-layout .avaContainer {
    max-height: none !important;
    overflow-y: auto !important;
    align-items: stretch;
  }

  .plPage .form-floating,
  .admCfgPage .form-floating,
  .adminContainer .form-floating {
    display: block;
    width: 100%;
  }

  .plPage .form-floating > .form-select,
  .admCfgPage .form-floating > .form-select,
  .adminContainer .form-floating > .form-select {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #212529;
    text-shadow: none;
  }

  .plPage .form-floating > .form-select option,
  .admCfgPage .form-floating > .form-select option,
  .adminContainer .form-floating > .form-select option {
    white-space: normal;
  }
}
.mcNavColumn{
  position: relative;
  height: calc(100vh - 120px);
  background: #1b5b33;
  width: 200px;
}
.mcFormContainer{
  position: relative;
  width: 100%;
  max-width: 700px;
  background: white;
  padding: 10px;
  border: solid 1px #ddd;
  border-radius: 5px;
  margin: 20px auto;
  height: auto;
}
.mcContainer{
  position: relative;
  flex: 1;
  height: calc(100vh - 120px);
}
.mcRecipient{
  position: relative;
  display: flex;
  flex-direction: row;
  background: #ddd;
  font-size: 0.6em;
  color: #333;
  border-radius: 10px;
  padding: 2px;
  gap: 2px;
}
.mcRecipient span:nth-of-type(2){
  font-weight: bold;
  cursor: pointer;
}
.idNavBtnHighlight{
  background: #E0B000;
  color: black;
}
.mcRecipients{
  position: relative;
  width: 100%;
  padding: 10px;
  border: solid 1px #ddd;
  border-radius: 5px;
  background: #fdfdfd;
  margin-bottom: 10px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}
.adminFlexContainer{
  display: flex;
}
.adminGraphs{
  background: white;
}
.adminTransactionsTable{
  width: 100%;
}
.adminTransactionsTable td{
  font-size: 0.8em
}

.financialInfoBlock{
  position: relative;
  border: solid 1px #ddd;
  box-shadow: 5px 5px 5px #0003;
  background: white;
  width: 250px;
}
.financialInfoBlockHeader{
  position: relative;
  width: 100%;
  height: 10px;
}
.financialInfoBlockIcon{
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
}
.financialInfoBlockAmount{
  position: relative;
  width: 100%;
  display: flex;
  text-align: center;
  font-weight: bold;
  font-size: 1.4em;
  padding: 20px;
}
.financialInfoBlockTitle{
  position: relative;
  width: 100%;
  text-align: center;
  font-weight: bold;
}
.financialInfoBlockList{
  position: relative;
  width: 100%;
}

.financialTransactionsTable{
  position: relative;
  border: solid 1px #ddd;
  box-shadow: 5px 5px 5px #0003;
  background: white;
  width: 100%;
}
.div-table a{
  color: black;
}
.div-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  overflow: hidden;
  font-family: system-ui, sans-serif;
  background: white;
}
.div-thead {
  display: table-header-group;
  background-color: #f8f9fa;
  font-weight: 600;
}
.div-tbody {
  display: table-row-group;
}
.div-tr {
  display: table-row;
}
.div-tr div {
  display: table-cell;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
  vertical-align: middle;
}

.div-thead .div-tr div {
  background-color: #f8f9fa;
}

.div-tbody .div-tr:nth-child(odd) {
  background-color: #f8f9fa; /* listras */
}

.div-tbody .div-tr:hover {
  background-color: #f1f3f5; /* hover opcional */
}

.navInfoBlock{
  position: relative;
  width: 100%;
  padding: 5px;
  font-size: 0.9em;
}

/* Hub administrativo (/administrativo) e painel da diretoria */
.avaContainer:has(> .adminContainer.admHub),
.avaContainer:has(> .adminContainer.dpMain),
.avaContainer:has(> .adminContainer.estMain) {
  height: calc(100vh - 120px);
  max-height: calc(100vh - 120px);
  overflow: hidden;
  align-items: stretch;
}

.adminContainer.admHub,
.adminContainer.dpMain,
.adminContainer.estMain {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 14px;
  height: calc(100vh - 120px);
  max-height: calc(100vh - 120px);
  overflow-x: hidden !important;
  overflow-y: auto !important;
  width: calc(100% - 200px) !important;
  padding: 14px 18px 20px;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
  color: #1a2e24;
}

.adminContainer.admHub > *,
.adminContainer.dpMain > *,
.adminContainer.estMain > * {
  width: 100%;
  max-width: 1320px;
  box-sizing: border-box;
}

.adminContainer.dpMain {
  background: #f4f7f5;
  gap: 12px;
}

.adminContainer.estMain {
  background: #f4f7f5;
  gap: 12px;
}

/* —— Header —— */
.admHubTop {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 16px;
  background: linear-gradient(120deg, #f7fbf8 0%, #fff 48%, #f2f7f4 100%);
  border: 1px solid #d8e6de;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(27, 91, 51, 0.05);
}

.admHubEyebrow {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.03em;
  color: #6b7c72;
}

.admHubTitle {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 700;
  color: #1b5b33;
  line-height: 1.25;
}

.admHubSubtitle {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: #5c6d64;
  line-height: 1.35;
}

.admHubKpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admHubKpi {
  min-width: 72px;
  padding: 8px 12px;
  text-align: center;
  background: #fff;
  border: 1px solid #dce8e1;
  border-radius: 8px;
}

.admHubKpiValue {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: #1b5b33;
  line-height: 1.1;
}

.admHubKpiLabel {
  display: block;
  margin-top: 2px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a8a82;
}

.admHubKpi--warn {
  border-color: #f0c674;
  background: #fffbeb;
}

.admHubKpi--warn .admHubKpiValue {
  color: #9a6700;
}

.admHubKpi--alert {
  border-color: #f5b5b5;
  background: #fff5f5;
}

.admHubKpi--alert .admHubKpiValue {
  color: #b42318;
}

/* —— Attention strip —— */
.admHubAttention {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #f0dcc2;
  border-left: 3px solid #e09b2d;
  border-radius: 8px;
}

.admHubAttentionHead {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9a6700;
}

.admHubAttentionList {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admHubAttentionChip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 0.76rem;
  text-decoration: none;
  color: #1a2e24;
  background: #fffaf3;
  border: 1px solid #f0dcc2;
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s;
}

.admHubAttentionChip:hover {
  background: #fff3e0;
  border-color: #e09b2d;
  color: #1a2e24;
}

.admHubAttentionChipTitle {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admHubAttentionChipBadge {
  padding: 1px 7px;
  border-radius: 999px;
  background: #fdecea;
  color: #8b1e1e;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}

/* —— Sections —— */
.admHubSection {
  margin-bottom: 4px;
}

.admHubSectionHead {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e8efeb;
}

.admHubSectionIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: #e8f0eb;
  color: #1b5b33;
  font-size: 0.82rem;
}

.admHubSectionTitle {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: #1b5b33;
}

.admHubSectionCount {
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef4f0;
  color: #5c6d64;
  font-size: 0.68rem;
  font-weight: 700;
}

.admHubGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 8px;
}

/* —— Cards —— */
a.admHubCard,
.admHubCard--static {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid #e2ebe6;
  border-radius: 8px;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
}

a.admHubCard:hover {
  border-color: #1b5b33;
  box-shadow: 0 3px 10px rgba(27, 91, 51, 0.1);
  transform: translateY(-1px);
}

.admHubCard--static {
  opacity: 0.88;
  cursor: default;
}

.admHubCardInner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  min-height: 68px;
}

.admHubCardIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(145deg, #e8f0eb 0%, #f4f9f6 100%);
  color: #1b5b33;
  font-size: 1rem;
  flex-shrink: 0;
}

.admHubCardBody {
  min-width: 0;
}

.admHubCardHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
}

.admHubCardTitle {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #1b5b33;
  line-height: 1.25;
}

.admHubCardAlert {
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 999px;
  background: #fdecea;
  color: #8b1e1e;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.admHubCardMetrics {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.admHubMetric {
  font-size: 0.68rem;
  color: #6b7c72;
  white-space: nowrap;
}

.admHubMetric strong {
  color: #1b5b33;
  font-weight: 700;
}

.admHubCardHint {
  margin: 0;
  font-size: 0.7rem;
  color: #7a8a82;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admHubCardArrow {
  color: #a8b8af;
  font-size: 0.85rem;
  transition: color 0.15s, transform 0.15s;
}

a.admHubCard:hover .admHubCardArrow {
  color: #1b5b33;
  transform: translate(1px, -1px);
}

.admHubCardMuted {
  color: #c5d0ca;
  font-size: 0.85rem;
}

.admHubEmpty {
  padding: 28px 20px;
  text-align: center;
  color: #5c6d64;
  background: #fff;
  border: 1px dashed #d8e6de;
  border-radius: 10px;
}

.admHubEmpty i {
  display: block;
  margin-bottom: 8px;
  font-size: 1.6rem;
  color: #a8b8af;
}

@media (max-width: 720px) {
  .adminContainer.admHub {
    padding: 10px 12px 16px;
  }

  .admHubTop {
    padding: 12px;
  }

  .admHubKpis {
    width: 100%;
    justify-content: stretch;
  }

  .admHubKpi {
    flex: 1 1 0;
    min-width: 0;
  }

  .admHubGrid {
    grid-template-columns: 1fr;
  }
}

