/* ===== Cores da identidade UNATI ===== */
:root {
    --unati-verde: #2e8b4f;
    --unati-verde-escuro: #226b3c;
    --unati-verde-claro: #eaf6ee;
    --unati-cinza-texto: #495057;
    --unati-borda: #dee2e6;
}

/* Centralização e largura máxima da página */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* Estilização das Abas (Tabs) */
.tabs {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.tabs label {
    flex-grow: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1rem;
    cursor: pointer;

    background-color: #f8f9fa;
    color: var(--unati-cinza-texto);
    font-weight: 600;

    border: 1px solid var(--unati-borda);
    border-top: 3px solid transparent; /* espessura fixa desde o início */
    margin-bottom: -1px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.tabs label:hover {
    background-color: var(--unati-verde-claro);
    color: var(--unati-verde-escuro);
}

.tabs .tab {
    flex-grow: 1;
    width: 100%;
    display: none;
    color: #000;
    background-color: #fff;
    border: 1px solid var(--unati-borda);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.tabs [type=radio] {
    display: none;
}

.tabs [type=radio]:checked + label {
    background-color: #fff;
    color: var(--unati-verde);
    font-weight: 700;
    border-top-color: var(--unati-verde); /* só troca a cor, não a espessura */
    border-bottom: 1px solid #fff;
}

.tabs [type=radio]:checked + label + .tab {
    display: block;
}

/* Cards mais discretos */
.card-custom {
    border: none;
    box-shadow: none;
    border-radius: 0 0 8px 8px;
}

/*!* Botão primário no padrão do site *!*/
/*.btn-primary {*/
/*    background-color: var(--unati-verde) !important;*/
/*    border-color: var(--unati-verde) !important;*/
/*}*/

/*.btn-primary:hover {*/
/*    background-color: var(--unati-verde-escuro) !important;*/
/*    border-color: var(--unati-verde-escuro) !important;*/
/*}*/

/* Ajustes para telas maiores (Desktop) */
@media (min-width: 768px) {
    .tabs label {
        order: 1;
        width: auto;
        border-top-left-radius: 6px;
        border-top-right-radius: 6px;
        margin-right: 0;
        border-bottom: 1px solid var(--unati-borda);
    }

    .tabs .tab {
        order: 9;
    }
}

@media (min-width: 768px) {
    .tabs label:first-of-type {
        border-top-left-radius: 8px;
    }

    .tabs label:last-of-type {
        border-top-right-radius: 8px;
    }
}

/* Rolagem horizontal na tabela para celulares */
.grid-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}