<style>
@charset "UTF-8";

:root {
    --gov-primary: #000000;
    --gov-secondary: #000000;
    --gov-light: #dbeafe;
    --gov-dark: #1e40af;
    --gov-success: #059669;
    --gov-warning: #d97706;
    --gov-danger: #dc2626;
    --font-size-base: 16px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.bg-dark {
    --bs-bg-opacity: 1;
    background-color: #000000 !important;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #000000;
    --bs-btn-border-color: #000000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #0b5ed7;
    --bs-btn-hover-border-color: #0a58ca;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #0a58ca;
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #000000;
    --bs-btn-disabled-border-color: #000000;
}

.btn-outline-primary {
    --bs-btn-color: #000000;
    --bs-btn-border-color: #000000;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #000000;
    --bs-btn-hover-border-color: #000000;
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #000000;
    --bs-btn-active-border-color: #000000;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #000000;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: #000000;
    --bs-gradient: none;
}

.text-primary {
    --bs-text-opacity: 1;
    color: #000000 !important;
}

/* CSS corrigido para o painel de acessibilidade */

/* Sistema de acessibilidade */
.accessibility-toolbar {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 1050;
    background: #fff;
    border: 2px solid #0d6efd; /* Substitua pela sua $corPrincipal */
    border-radius: 15px 0 0 15px;
    box-shadow: -3px 0 15px rgba(0,0,0,0.2);
    padding: 10px 5px;
    transition: transform 0.3s ease;
}

.accessibility-toolbar.minimized {
    transform: translateY(-50%) translateX(90%);
}

.accessibility-toggle {
    background: #0d6efd; /* Substitua pela sua $corPrincipal */
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    position: absolute;
    left: -57px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.accessibility-toggle:hover {
    background: #0b5ed7; /* Versão mais escura da sua $corPrincipal */
    transform: translateY(-50%) scale(1.1);
}

/* CONTROLES DE ACESSIBILIDADE - LÓGICA SIMPLIFICADA */
.accessibility-controls {
    /* Sempre inicia oculto */
    display: none;
    min-width: 200px;
    padding: 15px;
}

/* Quando o toolbar NÃO está minimizado E os controles NÃO estão hidden, mostrar */
.accessibility-toolbar:not(.minimized) .accessibility-controls:not(.hidden) {
    display: block !important;
}

/* Botão de acessibilidade sempre visível */
.accessibility-toggle {
    display: block !important;
}

/* Classes de tamanho de fonte */
.font-size-small {
    --font-size-base: 14px;
}

.font-size-normal {
    --font-size-base: 16px;
}

.font-size-large {
    --font-size-base: 18px;
}

.font-size-extra-large {
    --font-size-base: 20px;
}

/* Alto contraste */
.high-contrast {
    filter: contrast(200%) brightness(120%);
}

.high-contrast .card {
    border: 2px solid #000 !important;
}

.high-contrast .btn {
    border: 2px solid #000 !important;
}

/* Modo escuro */
.dark-mode {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
}

.dark-mode .card {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
    border: 1px solid #444 !important;
}

.dark-mode .card-header {
    background: #333 !important;
    color: #ffffff !important;
}

.dark-mode .form-control,
.dark-mode .form-select {
    background-color: #444 !important;
    color: #ffffff !important;
    border-color: #666 !important;
}

.dark-mode .btn-primary {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

.dark-mode .text-muted {
    color: #ccc !important;
}

.dark-mode .docs-header {
    background-color: #2d2d2d !important;
}

.dark-mode .breadcrumb {
    background-color: #333 !important;
}

/* Sublinhado em links */
.underline-links a {
    text-decoration: underline !important;
}

/* Cursor maior */
.large-cursor {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M2 2 L10 10 L6 14 L2 2" fill="black"/></svg>'), auto !important;
}

.large-cursor * {
    cursor: inherit !important;
}

/* Estilos para os botões de acessibilidade */
.accessibility-btn {
    display: block;
    width: 100%;
    margin-bottom: 5px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    text-align: left;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.accessibility-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.accessibility-btn.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Custom Gov.br Header */
.docs-header {
    background: #ffffff;
    color: white;
    box-shadow: 0 6px 12px rgba(0,0,0,0.10)!important;
    position: fixed;
    width: 100%;
    z-index:2;
}

.gov-logo {
    background: white;
    color: #000000;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.gov-logo:hover {
    transform: translateY(-2px);
    color: #000000;
}

.site-title {
    font-size: 1rem;
    font-weight: 300;
    margin: 0;
}

.gov-nav .nav-link {
    background: #f5f5f5;
    padding: 7px 17px!important;
    color: #000000 !important;
    border-radius: 100px;
    margin-left: 10px;
}

.gov-nav .nav-link:hover {
    background: #f5f5f5;
    color: #000000 !important;
    transform: translateY(-1px);
}

.btn-gov-login {
    background: #000000 !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: white !important;
    border-radius: 25px;
    font-weight: 500;
    padding: 0.6rem 1.2rem;
}

.btn-gov-login:hover {
    background: white !important;
    color: #000000 !important;
}

/* Breadcrumb customizado */
.breadcrumb {
    background: #efefef;
    margin-bottom: 0;
    z-index:1;
}

.alinha-bread {
    padding:106px 0px 15px 0px;
    width: 100%;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: #6b7280;
}

.breadcrumb-item a {
    color: var(--gov-secondary);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6b7280;
}

.form-control:focus, .form-select:focus {
    border-color: var(--gov-secondary);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.15);
}

.card {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border-radius: 12px;
}

.card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0 !important;
}

.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: #000000;
    font-weight: 700;
}

.page-header p {
    color: #64748b;
    margin-bottom: 0;
}

.logo {
    width: 200px;
}

.barrinhatopo {
    background: #000000;
    color: #333;
    width: 100%;
    border-top: 5px solid #000000;
    top: 0;
}

.alinha-container {
    padding: 0px 15px;
}

.navbar {
    display: flex;
    justify-content: space-between;
}

.navbar-toggler {
    padding: var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);
    font-size: var(--bs-navbar-toggler-font-size);
    line-height: 1;
    color: rgb(0 0 0);
    background-color: #54545417;
    border: var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);
    border-radius: var(--bs-navbar-toggler-border-radius);
    transition: var(--bs-navbar-toggler-transition);
}

/* Skip link melhorado */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000000;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 2000;
    font-weight: bold;
}

.skip-link:focus {
    top: 6px;
    color: white;
}

/* Indicador de foco melhorado */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid #FFD700 !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 5px rgba(255, 215, 0, 0.3) !important;
}

/* Responsividade */
@media (max-width: 991px) {
    .docs-header .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .docs-header .btn-gov-login {
        margin-top: 0.5rem;
    }

    .gov-nav .nav-link {
        margin-bottom: 5px;
    }

    .alinha-bread {
        width: 103%;
    }

    .accessibility-toolbar {
        right: -10px;
        transform: translateY(-50%) scale(0.9);
    }
    
    .accessibility-controls {
        min-width: 160px;
    }
    
    .accessibility-btn {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Customização do Select2 */
.select2-container--bootstrap .select2-selection--single {
    height: calc(2.25rem + 2px) !important;
    padding: 0.375rem 0.75rem;
    border: 1px solid #ced4da;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__rendered {
    padding-left: 0;
    padding-right: 20px;
    height: auto;
    margin-top: -1px;
}

.select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
    right: 6px;
    width: 20px;
}

.select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #000000 !important;
}

/* Animações reduzidas para usuários que preferem */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Estilos para o visualizador de PDF */
.pdf-viewer-container {
    position: relative;
    background: #f8f9fa;
}

.pdf-viewer-container iframe {
    display: block;
    margin: 0 auto;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.pdf-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: white;
}

.pdf-fullscreen iframe {
    width: 100%;
    height: 100%;
}

.documento-conteudo {
    line-height: 1.8;
    font-size: 1.1rem;
}

.documento-conteudo h1, .documento-conteudo h2, .documento-conteudo h3 {
    color: #000000;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.documento-conteudo p {
    margin-bottom: 1rem;
    text-align: justify;
}

.info-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mobile-pdf-alert {
    border-radius: 0;
    border-left: 4px solid #0dcaf0;
}

/* Responsividade */
@media (max-width: 768px) {
    .pdf-viewer-container iframe {
        height: 500px;
        min-height: 400px;
    }
    
    /* Ocultar iframe no mobile inicialmente */
    .mobile-device .pdf-viewer-container iframe {
        display: none;
    }
    
    /* Mostrar alerta no mobile */
    .mobile-device .mobile-pdf-alert {
        display: block !important;
    }
}
/* Classe para forçar exibição do iframe */
.show-pdf-inline #pdfIframe {
    display: block !important;
}

.show-pdf-inline .mobile-pdf-alert {
    display: none !important;
}

/* Modo impressão */
@media print {
    .card-header, .card-footer, .btn, .modal, nav, .col-lg-4 {
        display: none !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
    
    .col-lg-8 {
        width: 100% !important;
    }
    
    .pdf-viewer-container iframe {
        display: none;
    }
    
    .pdf-viewer-container::after {
        content: "Para imprimir o PDF, abra-o em uma nova aba usando o botão 'Nova Aba'";
        display: block;
        text-align: center;
        padding: 2rem;
        background: #f8f9fa;
        border: 2px dashed #ccc;
    }
}

/* Estilos adicionais para o footer */
.gov-logo-footer {
    font-size: 1.1rem;
    color: #000000 !important;
}

footer a:hover {
    color: #60a5fa !important;
    transition: color 0.3s ease;
}

footer .text-primary {
    color: #60a5fa !important;
}

.texto-topo {
    color:#000000;
    font-size: 22px;
}

@media (max-width: 768px) {
    .texto-topo {
        display:none;
    }
}
</style>