:root {
    --ops-azul: #004976;
    --ops-verde: #007d5a;
    --ops-claro: #f8f9fa;
    --ops-menta: #cde6df;
    --ops-font: 'Open Sans', sans-serif;
}

html,
body {
    height: 100%;
}

body {
    font-family: var(--ops-font);
    background-color: var(--ops-claro);
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header .navbar {
    border-bottom: 4px solid var(--ops-verde);
}

header .nav-link {
    font-weight: 600;
    color: var(--ops-azul) !important;
    transition: color 0.3s;
}

header .nav-link:hover {
    color: var(--ops-verde) !important;
}

.footer-ops {
    background-color: var(--ops-verde);
    color: white;
    padding: 20px 0;
    margin-top: auto;
}

.partner-logo {
    height: 70px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease;
    filter: grayscale(100%);
    opacity: 0.8;
}

.partner-logo:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    opacity: 1;
}

.logo-opensense {
    height: 45px;
}



.modo-zoom-suave {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw !important;
    max-height: 90vh !important;
    height: auto !important;
    aspect-ratio: 1.5 !important;
    z-index: 9998 !important;
    background-color: white !important;
    padding: 20px !important;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7) !important;
    border-radius: 8px !important;
}

.btn-fechar-zoom {
    position: fixed;
    top: 3vh;
    right: 3vw;
    z-index: 1100;
    background: #343a40;
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bk-root {
    width: 100% !important;
    height: 100% !important;
}

.text-ops-azul {
    color: var(--ops-azul) !important;
}

.card-header-ops {
    background-color: var(--ops-verde) !important;
    color: white;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.card-header-azul,
.card-metadados-header {
    background-color: var(--ops-azul) !important;
    color: white;
    padding: 15px 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
    position: relative;
}

.table-modern thead th {
    position: sticky;
    top: 0;
    background: var(--ops-claro);
    color: #6c757d;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 2px solid #e9ecef;
    z-index: 2;
    padding: 12px 16px;
}

.table-modern td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
    vertical-align: middle;
    font-size: 0.9rem;
}

.badge-ano {
    background-color: var(--ops-claro);
    color: var(--ops-azul);
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 73, 118, 0.1);
}

.meta-titulo-secao {
    color: var(--ops-azul);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.meta-texto {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: justify;
}

.valor-metadado {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #555;
    font-size: 0.95rem;
    font-weight: normal;
    margin-top: 5px;
    display: inline;
}

.col-limpa {
    background: transparent !important;
    border: none !important;
}

@media (max-width: 768px) {
    .partner-logo {
        height: auto;
        width: 40%;
        max-width: 140px;
        object-fit: contain;
    }

    .logo-opensense {
        max-width: 160px;
    }

    .footer-oficial .d-flex {
        gap: 1.5rem !important;
        justify-content: center !important;
        flex-wrap: wrap;
    }
}