:root {
    --bg-main: #F6F8FB;
    --azul: #313B50;
    --texto: #374151;
    --texto-sec: #6B7280;
    --linha: #E5E7EB;
    --branco: #FFFFFF;
}

/* BASE */
body {
    background: var(--bg-main);
    font-family: 'Inter', 'Segoe UI', sans-serif;
    color: var(--texto);
    margin: 0;
}

a {
    color: #000;
    text-decoration: none;
}

/* TOPO */
.top-bar {
    background: var(--branco);
    padding: 16px 0;
}

.logo-fake {
    width: 36px;
    height: 36px;
    border-radius: 6px;
}

.logo-fake img {
    width: 36px;
}

.logo-area span {
    font-weight: 600;
    color: var(--azul);
}

.menu-top a {
    text-decoration: none;
    color: var(--texto-sec);
    font-size: 14px;
}

.menu-top a:hover {
    color: var(--azul);
}

.divider {
    height: 1px;
    background: var(--linha);
}

.orgao-bar {
    background: var(--bg-main);
    padding: 22px 0;
}

.orgao-titulo {
    font-size: 22px;
    font-weight: 600;
    color: var(--azul);
    display: flex;
    align-items: center;
    gap: 10px;
}

.flag-fake {
    width: 26px;
    margin-top: -5px;
}

.flag-fake img {
    width: 33px;
}

.breadcrumb-custom {
    font-size: 13px;
    color: var(--texto-sec);
    padding: 0;
    margin: 0;
    float: left;
    width: 100%;
    margin-left: 5%;
}

.breadcrumb-custom a {
    color: var(--texto-sec);
}

.breadcrumb-custom a:hover{
    text-decoration: underline;  color: var(--azul);
}
/* PESQUISA */
.pesquisa-geral {
    padding: 80px 0;
    text-align: center;
}

.pesquisa-geral h2 {
    color: var(--azul);
    margin-bottom: 40px;
}

.search-box {
    display: flex;
    background: var(--branco);
    border: 1px solid var(--linha);
    border-radius: 6px;
    overflow: hidden;
}

.search-box input {
    flex: 1;
    padding: 18px;
    border: none;
    outline: none;
}

.search-box button {
    background: var(--azul);
    color: #fff;
    border: none;
    padding: 0 32px;
}

.categorias {
    padding: 60px 0;
}

.card-portal {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
    height: 100%; /* altura igual */
    min-height: 220px; /* PADRÃO VISUAL */
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.card-portal i {
    font-size: 36px;
    color: #313B50;
    margin-bottom: 14px;
}

.card-portal h5 {
    font-size: 15px;
    font-weight: 600;
    color: #313B50;
    margin-bottom: 8px;
}

.card-portal p {
    font-size: 13px;
    color: #6B7280;
    margin: 0;
    line-height: 1.4;
}

.card-portal:hover {
    transform: translateY(-6px);
}


/* RELATÓRIO */
.relatorio {
    padding: 60px 0;
}

.relatorio h3 {
    margin-bottom: 30px;
    color: var(--azul);
}

.table-custom {
    width: 100%;
    background: var(--branco);
    border-radius: 8px;
    overflow: hidden;
}

.table-custom thead {
    background: var(--azul);
    color: #fff;
}

.table-custom th,
.table-custom td {
    padding: 14px;
    font-size: 14px;
}

.table-custom tbody tr:nth-child(even) {
    background: #EDF1F7;
}

/* ESIC */
.esic {
    background: var(--azul);
    color: #fff;
    padding: 50px 0;
}

.esic button {
    background: #fff;
    color: var(--azul);
    border: none;
    padding: 14px 32px;
    font-weight: 600;
}

/* FOOTER */
.footer {
    background: #1F2937;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
}

.content {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 28px 22px;
    width: 90%; /* altura igual */
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    margin: auto;
}

.texto h1{
    font-weight: bold; font-size: 40px;
}

.ntcia {
    width: 100%;
    float: left;
    margin-bottom: 20px;
}
.listimg{
    width: 100px; background: #f2f2f2; padding: 5px;  border-radius: 10px; margin: auto;
}

.listimg img{
    width: 100%;border-radius: 10px;
}
.ntcia a h1 {
    color:  #1F2937;
    width: 100%;
    line-height: 25px;
    margin-bottom: 20px;
    font-size: 40px;
    font-weight: 900;
}

.ntcia:hover h1 {
    color: var(--azul);
}


.ntcia small {
    padding: 4px 8px; margin: 3px 0px;
    color: #000;
    font-family: sans-serif; border-radius: 5px;
}

.ntcia p {
    color: #666;
    width: 100%;
    display: block;

}


.card-portal  h5{
    font-weight: bold; font-size: 25px;
}

@media (min-width: 33em) {
    .content {
        width: 100%; /* altura igual */
    }
    .breadcrumb-custom {
        margin-left: 0%;
    }

}

.pagina-interna {
    padding-bottom: 60px; margin: 10px 0 0 0;
}

/* FILTROS */
.box-filtro {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.box-filtro h4 {
    margin-bottom: 20px;
    color: #313B50;
    font-weight: 600;
}

.box-filtro label {
    font-size: 13px;
    color: #6B7280;
}

/* BOTÃO BUSCAR */
.btn-buscar {
    background: #313B50;
    color: #fff;
    border: none;
    padding: 12px;
}

.btn-buscar:hover {
    background: #252D3E;
}

/* EXPORTAÇÃO */
.box-export {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.box-export span {
    font-size: 14px;
    color: #6B7280;
}

.btn-export {
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 6px;
}

.btn-export.excel { color: #15803D; }
.btn-export.csv   { color: #0F766E; }
.btn-export.pdf   { color: #B91C1C; }
.btn-export.json  { color: #1D4ED8; }

/* BOTÃO DETALHAR */
.btn-detalhar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #313B50;
    color: #fff;
    text-decoration: none;
}

.btn-detalhar:hover {
    background: #252D3E;
}

/* ================================
TABELA – SERVIDORES PÚBLICOS
================================ */

/* Container */
.table-responsive {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.05);
}

/* Tabela base */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    color: #374151;
}

/* Cabeçalho */
.table-custom thead th {
    background: #313B50;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 13px;
    padding: 14px 12px;
    text-align: left;
    white-space: nowrap;
}

/* Bordas arredondadas no header */
.table-custom thead th:first-child {
    border-top-left-radius: 10px;
}
.table-custom thead th:last-child {
    border-top-right-radius: 10px;
}

/* Corpo */
.table-custom tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #E5E7EB;
    vertical-align: middle;
}

/* Zebra */
.table-custom tbody tr:nth-child(even) {
    background: #F6F8FB;
}

/* Hover */
.table-custom tbody tr:hover {
    background: #EDF1F7;
}

/* Alinhamento financeiro */
.table-custom td:nth-child(7),
.table-custom td:nth-child(8),
.table-custom td:nth-child(9) {
    text-align: right;
    font-weight: 500;
    white-space: nowrap;
}

/* Matrícula */
.table-custom td:first-child {
    font-weight: 600;
    color: #313B50;
}

/* Nome */
.table-custom td:nth-child(2) {
    font-weight: 500;
}

/* Vínculo (badge visual) */
.table-custom td:nth-child(4)::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #313B50;
    border-radius: 50%;
    margin-right: 6px;
}

/* Competência */
.table-custom td:nth-child(10) {
    white-space: nowrap;
}

/* Botão Detalhar */
.btn-detalhar {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #313B50;
    color: #FFFFFF;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-detalhar:hover {
    background: #252D3E;
    transform: scale(1.05);
}

/* Ícone */
.btn-detalhar i {
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 991px) {
    .table-custom {
        font-size: 13px;
    }

    .table-custom thead th {
        font-size: 12px;
        padding: 12px 10px;
    }

    .table-custom tbody td {
        padding: 12px 10px;
    }
}

/* MODAL SERVIDOR */
.modal-servidor {
    border-radius: 14px;
    overflow: hidden;
}

.modal-header {
    background: #F6F8FB;
    border-bottom: 1px solid #E5E7EB;
}

.modal-title {
    font-weight: 600;
    color: #313B50;
}

.info-box {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 14px;
    font-size: 14px;
}

.info-box span {
    display: block;
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 4px;
}

.section-title {
    font-weight: 600;
    color: #313B50;
    margin-bottom: 10px;
}

.table-modal {
    width: 100%;
    border-collapse: collapse;
    background: #FFFFFF;
}

.table-modal thead {
    background: #F0F3F7;
}

.table-modal th,
.table-modal td {
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid #E5E7EB;
}

.table-modal .total-row {
    background: #F6F8FB;
    font-weight: 600;
}

.total-box {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    padding: 16px;
    font-size: 15px;
}

.total-box span {
    display: block;
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 6px;
}

.total-box.destaque {
    background: #313B50;
    color: #FFFFFF;
}

.total-box.destaque span {
    color: #E5E7EB;
}
