body {
        font: 12px Verdana, Arial, Helvetica, sans-serif;
        color: #666666;
}

h1 {
        font-weight: bold;
        font-size: 24px;
        margin-top: 0px;
        margin-bottom: 20px;
}

h2 {
        font-weight: bold;
        font-size: 20px;
        margin-top: 0px;
        margin-bottom: 0px;
}

h3 {
        font-weight: bold;
        font-size: 16px;
        margin-top: 0px;
        margin-bottom: 0px;
}

h4 {
        font-weight: bold;
        font-size: 12px;
        margin-top: 0px;
        margin-bottom: 0px;
}

h5 {
        font-weight: normal;
        font-size: 10px;
        margin-top: 0px;
        margin-bottom: 0px;
        margin-left: 0px;
        margin-right: 0px;
}

h6 {
        font-weight: bold;
        margin-top: 0px;
        margin-bottom: 6px;
        margin-left: 0px;
        margin-right: 0px;
        font-size: 10px;
}

p {
        text-align: justify;
}

a {
        font-weight: bold;
        color: #666666;
        text-decoration: none;
}

a:hover {
        color: #99CC00;
}

img {
        border-top-style: none;
        border-bottom-style: none;
        border-left-style: none;
        border-right-style: none;
}

select,
input {
        font: 12px Verdana, Arial, Helvetica, sans-serif;
}

/* Classes */

.textfield {
        font-size: 11px;
        color: #333333;
        background: #F7F7F7;
        border: 1px solid #CCCCCC;
        padding-left: 1px;
}

.textbox {
        font-size: 11px;
        color: #333333;
        background: #F7F7F7;
        border: 1px solid #CCCCCC;
        padding-left: 1px;
}

.err {
        color: #cc0000;
        font-weight: bold;
        background: url(shared/images/error.png) no-repeat left center;
        padding-left: 24px;
        height: 20px;
        display: inline-block;
}

.error {
        color: #cc0000;
        font-weight: bold;
}

.ok {
        color: #009966;
        font-weight: bold;
        background: url(shared/images/ok.png) no-repeat;
        padding-left: 20px;
}

.leftmenu {
        margin: 10px;
        color: #99CC00;
}

a.leftmenu {
        color: #666666;
}

a.leftmenu:hover {
        color: #99CC00;
}

.box {
        display: inline-block;
        max-width: 100%;
        padding: 12px 16px;
        border: 1px solid #ccc;
        border-radius: 8px;
        background: #fafbfc;
}

th {
        padding: 5px;
        font-weight: bold;
        text-align: center;
        font-size: 10px;
        color: #666666;

}

td {
        text-align: center;
        padding: 2px;
}


.table1 th {
        text-align: right;
        color: #666666;
}

.table1 td {
        text-align: left;
        color: #666666;
}


#leftmenu {
        width: 20%;
        float: left;
}

#leftmenu2 {
        width: 20%;
        float: left;
}

#center {
        margin-top: 50px;
        margin-left: 20%;
        margin-right: 20%;
}

#main {
        width: 75%;
        float: right;
}

#left {
        float: left;
}

#right {
        float: right;
}


.small {
        font-weight: normal;
        font-size: 10px;
        margin-top: 0px;
        margin-bottom: 0px;
        margin-left: 0px;
        margin-right: 0px;
}

.btn {
    display: inline-block;
    padding: 4px 10px;
    background: #337ab7;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    font-weight: bold;
    font-size: 13px;
    border: none;           /* remove borda do input */
    cursor: pointer;        /* faz o input parecer botão */
    font-family: inherit;   /* iguala a fonte */
    line-height: normal;    /* evita variações de altura */
}

.btn:hover {
        color: #fff;
}

/* CSS geral */
table.tabela {
        width: 100%;
        max-width:1000px;
        border-collapse: collapse;
        /* mantém bordas "coladas" como no original */
        border-spacing: 0;
        background: #fafafa;
        font-family: inherit;
        /* evita diferenças de fonte inesperadas */
}

/* Cabeçalho: aplicar direto aos th (mais específico que ao tr) */
table.tabela thead th {
        background-color: #e0e0e0;
        padding: 10px 8px;
        /* aumentei o padding vertical para reproduzir o espaçamento */
        border: 1px solid #eee;
        text-align: center;
        vertical-align: middle;
}

/* Corpo */
table.tabela tbody td {
        padding: 12px 8px;
        /* padding vertical maior para aumentar espaçamento entre linhas */
        border: 1px solid #eee;
        vertical-align: middle;
        /* alinha conteúdo verticalmente como no original */
}

table.stats {
        border-collapse: collapse;
        margin-bottom: 1em;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

table.stats,
table.stats td {
        border: 1px solid #ddd;
        padding: 0.7em 1em;
        text-align: center;
}

table.stats th {
        background: #2980b9;
        color: #fff;
        font-weight: bold;
        text-align: center;
}

table.stats tr:nth-child(even) {
        background: #f4f8fb;
}

table.stats tr:hover {
        background: #d6eaf8;
}

table.stats td:first-child {
        text-align: left;
}


.banner {
        position: relative;
        width: 100%;
        /* ocupa toda a largura */
        max-height: 500px;
        /* altura máxima (pode mudar) */
        aspect-ratio: 16 / 9;
        /* mantém proporção (como vídeo widescreen) */
        overflow: hidden;
}

.banner img {
        position: absolute;
        /* <-- ESSENCIAL para sobrepor */
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        animation: slide 12s infinite;
}

.banner img:nth-child(1) {
        animation-delay: 0s;
}

.banner img:nth-child(2) {
        animation-delay: 4s;
}

.banner img:nth-child(3) {
        animation-delay: 8s;
}

.slideshow {
        position: relative;
        width: 400px;
        /* largura fixa igual ao slide */
        height: 150px;
        /* altura fixa igual ao slide */
        max-width: 100%;
        /* permite responsividade sem ultrapassar 400px */
        margin: auto;
        overflow: hidden;
}

.slides {
        display: flex;
        width: 1200px;
        /* 400px * número de slides (3) */
        height: 150px;
        animation: slide 12s infinite;
}

.slides a {
        flex: 0 0 400px;
        /* cada slide ocupa 400px */
        height: 150px;
}

.slides img {
        width: 400px;
        height: 150px;
        object-fit: cover;
        display: block;
        max-width: 100%;
        max-height: 100%;
}

@keyframes slide {
        0% {
                transform: translateX(0);
        }

        25% {
                transform: translateX(0);
        }

        35% {
                transform: translateX(-400px);
        }

        60% {
                transform: translateX(-400px);
        }

        70% {
                transform: translateX(-800px);
        }

        95% {
                transform: translateX(-800px);
        }

        100% {
                transform: translateX(0);
        }
}

.intro {
        background: rgba(129, 146, 194, 0.25);
        border: 1px solid #eee;
        padding: 12px 16px;
        border-radius: 6px;
        margin-bottom: 16px;
}

.epigrafe {
        display: block;
        width: 100%;
        max-width: 50%;
        box-sizing: border-box;
        color: #555555;
        font-size: 11px;
        line-height: 1.4;
        text-align: right;
        border-right: 4px solid #ccc;
        padding: 8px 12px;
        margin: 16px 0 16px auto;
        /* alinha a caixa à direita */
        background: #fafafa;
        border-radius: 4px;
}

.epigrafe p,
.epigrafe span {
        text-align: right;
        margin: 0;
}

.form-card {
        background: #fff;
        border: 1px solid #e6e6e6;
        padding: 18px;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
        max-width: 820px;
        margin: 12px 0;
        font-family: Segoe UI, Roboto, Arial, sans-serif
}

.cert-form .row {
        display: flex;
        gap: 12px;
        margin-bottom: 10px;
        flex-wrap: wrap
}

.cert-form label {
        flex: 1;
        min-width: 200px;
        display: flex;
        flex-direction: column;
        font-size: 14px;
        color: #333
}

.cert-form input[type=text],
.cert-form input[type=number],
.cert-form input[type=date],
.cert-form select,
.cert-form textarea {
        padding: 8px;
        border: 1px solid #ccd0d5;
        border-radius: 6px;
        background: #fbfdff
}

.cert-form textarea {
        min-height: 90px;
        resize: vertical
}

.cert-form .small {
        flex: 0 0 140px
}

.cert-form .actions {
        text-align: right;
        margin-top: 8px
}

.cert-form button {
        background: #0078d7;
        color: #fff;
        border: 0;
        padding: 10px 16px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: 600
}

.cert-form button:hover {
        background: #005ea6
}

@media(max-width:560px) {
        .cert-form .row {
                flex-direction: column
        }

        .cert-form .small {
                flex: auto
        }
}

/* Configurações para dispositivos menores */


@media (max-width: 900px) {

        /* Itens que não serão exibidos (opção de tabela e menu lateral) */
        .view-switch {
                display: none !important;
        }

        .left-menu {
                display: none !important;
        }

        /* Itens que serão redimensionados */
        #center,
        #main {
                width: 100% !important;
                float: none !important;
                margin: 0 auto !important;
        }

        #bar {
                margin-top: 10px !important;
                margin-left: 0% !important;
                margin-right: 0% !important;
        }

        /* Exibe os posts em apenas uma coluna */
        .post-card {
                flex: 1 1 100% !important;
                max-width: 100% !important;
                margin-bottom: 0 !important;
        }
}


@media (max-width: 600px) {

        /* Não exibe o formulário de busca */
        .search-form {
                display: none;
        }

        .view-option a {
                padding: 4px 7px !important;
                font-size: 13px !important;
        }

        .view-option {
                padding: 4px 4px !important;
        }

        /* Reduz as fontes */
        #header h4,
        #header h4 a {
                font-size: 14px !important;
        }

        th {
                font-size: 10px !important;
        }

        td {
                font-size: 10px !important;
        }

        input {
                max-width: 250px !important;
        }

        textarea {
                max-width: 250px !important;
        }

        .painel-flex {
                flex-direction: column !important;
                align-items: stretch !important;
                gap: 16px !important;
        }
}

@media (max-width: 500px) {

        /* Reduz as fontes */
        #header h4,
        #header h4 a {
                font-size: 10px !important;
        }

}