/* ============================================
   Shortcode [administracao_gestao]
   (Administração e Gestão + Docentes/Cargos)
   ============================================ */
   .ag-adm-gestao {
    width: 100%;
    margin: 18px 0;
}

.ag-adm-gestao .ag-section {
    margin-top: 26px;
    margin-bottom: 100px !important;
    padding: 24px 24px;
    background-color: transparent !important;
    position: relative;
    z-index: 0;
}

/* Fundo "full-bleed" usando pseudo-elemento (mais robusto que width/margens) */
.ag-adm-gestao .ag-section::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background-color: transparent;
    z-index: -1;
}

.ag-adm-gestao .ag-section:nth-child(even)::before {
    background-color: #0f7f870a !important;
}

.ag-adm-gestao .ag-section:nth-child(odd)::before {
    background-color: transparent !important;
}

.ag-adm-gestao .ag-header-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 50px;
}

.ag-adm-gestao .ag-title {
    margin: 0 !important;
    font-size: 60px !important;
    color: #0f7f86 !important;
    line-height: 1.2em !important;
    font-weight: 300 !important;
}

.ag-adm-gestao .ag-subtitle {
    margin: 0 !important;
    font-size: var(--stk--preset--font-size--medium, 20px) !important;
    color: #0b4a4f !important;
    font-weight: inherit;
    text-align: left;
}

.ag-adm-gestao .ag-header-description {
    margin: 0 !important;
    font-size: var(--stk--preset--font-size--medium, 20px) !important;
    color: #0b4a4f !important;
    font-weight: inherit;
    text-align: left;
    line-height: 1.4;
    max-width: 40%;
}

.ag-adm-gestao .ag-description {
    margin: 10px 0 16px 0;
}

/* Garante quebra limpa após título/subtítulo (tabela/descritivo em baixo) */
.ag-adm-gestao .ag-description,
.ag-adm-gestao .ag-table {
    clear: both;
}

.ag-adm-gestao .ag-description p {
    margin: 0 0 12px 0;
}

.ag-adm-gestao .ag-table {
    margin-top: 12px;
    border-top: 0 !important;
    border: none !important;
    border-collapse: collapse !important;
    width: 100% !important;
    table-layout: fixed !important;
}

.ag-adm-gestao .ag-table th,
.ag-adm-gestao .ag-table td {
    font-size: var(--stk--preset--font-size--medium, 20px) !important;
    color: #0b4a4f !important;
    border: none !important; /* remove bordas laterais e superior do tema pai */
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    padding-left: 0 !important;
}

.ag-adm-gestao .ag-table thead th {
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid #0f7f87de !important; /* só linha por baixo do cabeçalho */
    background: transparent !important;
    color: #0b4a4f !important;
    font-weight: 700;
}

.ag-adm-gestao .ag-table tbody td {
    padding: 10px 0 !important;
    border-bottom: 1px solid #0f7f87de !important; /* só linha por baixo de cada row */
    vertical-align: top;
}

/* Força o mesmo início da coluna "Docentes" em todas as tabelas */
.ag-adm-gestao .ag-table th:nth-child(1),
.ag-adm-gestao .ag-table td:nth-child(1) {
    width: 45% !important;
}

.ag-adm-gestao .ag-table th:nth-child(2),
.ag-adm-gestao .ag-table td:nth-child(2) {
    width: 55% !important;
}

/* Mobile: transforma a tabela numa lista vertical */
@media (max-width: 640px) {
    .ag-adm-gestao .ag-section {
        padding: 18px 14px;
        margin-bottom: 60px !important;
        /* Evita overflow lateral no mobile */
    }

    .ag-adm-gestao .ag-section::before {
        width: 100%;
        left: 0;
        transform: none;
    }

    .ag-adm-gestao .ag-header-row {
        display: block;
    }

    .ag-adm-gestao .ag-title {
        font-size: 38px !important;
    }

    .ag-adm-gestao .ag-subtitle {
        margin: 6px 0 0 0 !important;
    }

    .ag-adm-gestao .ag-header-description {
        margin: 6px 0 0 0 !important;
        max-width: none;
    }

    .ag-adm-gestao .ag-table thead {
        display: none;
    }

    .ag-adm-gestao .ag-table,
    .ag-adm-gestao .ag-table tbody,
    .ag-adm-gestao .ag-table tr,
    .ag-adm-gestao .ag-table td {
        display: block;
        width: 100%;
    }

    .ag-adm-gestao .ag-table tr {
        padding: 12px 0;
    }

    .ag-adm-gestao .ag-table tbody td {
        padding: 6px 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.08) !important; /* mantém linha só por baixo */
    }

    /* rótulos simples via nth-child */
    .ag-adm-gestao .ag-table tbody td:nth-child(1)::before {
        content: "Docentes: ";
        font-weight: 900;
    }

    .ag-adm-gestao .ag-table tbody td:nth-child(2)::before {
        content: "Cargo: ";
        font-weight: 900;
    }
}

