/* =====================================================
   CDP - COMPONENTES COMPARTILHADOS DE ACESSIBILIDADE
   ===================================================== */

/* Paineis e indicadores */

body.alto-contraste .a11y-painel,
body.alto-contraste .a11y-indicador,
body.alto-contraste .a11y-mensagem {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
    box-shadow: none !important;
}

/* Titulos e textos */

body.alto-contraste .a11y-titulo,
body.alto-contraste .a11y-texto,
body.alto-contraste .a11y-indicador > div {
    color: #fff !important;
}

/* Links */

body.alto-contraste .a11y-link {
    color: #ff0 !important;
}

/* Icones */

body.alto-contraste .a11y-icone {
    background: #000 !important;
    color: #ff0 !important;
    border: 1px solid #ff0 !important;
    box-shadow: none !important;
}

body.alto-contraste .a11y-icone svg {
    stroke: #ff0 !important;
}

/* Botoes */

body.alto-contraste .a11y-botao {
    background: #000 !important;
    color: #ff0 !important;
    border: 1px solid #ff0 !important;
    box-shadow: none !important;
}

body.alto-contraste .a11y-botao:not(:disabled):hover {
    background: #ff0 !important;
    color: #000 !important;
}

/* Formularios */

body.alto-contraste .a11y-formulario label {
    color: #fff !important;
}

body.alto-contraste .a11y-formulario textarea,
body.alto-contraste .a11y-formulario select,
body.alto-contraste .a11y-formulario input:not(
    [type="hidden"]
):not([type="checkbox"]):not([type="radio"]) {
    background: #111 !important;
    color: #fff !important;
    border-color: #ff0 !important;
}

body.alto-contraste .a11y-formulario input::placeholder,
body.alto-contraste .a11y-formulario textarea::placeholder {
    color: #fff !important;
    opacity: 1 !important;
}

body.alto-contraste .a11y-formulario input[type="radio"],
body.alto-contraste .a11y-formulario input[type="checkbox"] {
    accent-color: #ff0;
}

/* Tabelas */

@media screen {
    body.alto-contraste table.a11y-tabela,
    body.alto-contraste table.a11y-tabela tbody tr,
    body.alto-contraste table.a11y-tabela td {
        background: #000 !important;
        color: #fff !important;
        border-color: #fff !important;
    }

    body.alto-contraste table.a11y-tabela th {
        background: #222 !important;
        color: #fff !important;
        border-color: #fff !important;
    }

    body.alto-contraste table.a11y-tabela tbody tr:hover td {
        background: #222 !important;
    }
}

/* Foco por teclado */

body.alto-contraste .a11y-painel:focus-visible,
body.alto-contraste .a11y-link:focus-visible,
body.alto-contraste .a11y-botao:focus-visible,
body.alto-contraste .a11y-formulario input:focus-visible,
body.alto-contraste .a11y-formulario select:focus-visible,
body.alto-contraste .a11y-formulario textarea:focus-visible {
    outline: 3px solid #ff0 !important;
    outline-offset: 4px !important;
}

/* FIM DOS COMPONENTES COMPARTILHADOS */


/* ALTO CONTRASTE - TRANSPARENCIA */

@media screen {

    /* Filtros por ano */

    body.alto-contraste .a11y-transparencia .filtro-ano span {
        color: #fff !important;
    }

    body.alto-contraste .a11y-transparencia .filtro-ano a {
        background: #000 !important;
        color: #ff0 !important;
        border-color: #ff0 !important;
    }

    body.alto-contraste .a11y-transparencia .filtro-ano a.ativo,
    body.alto-contraste .a11y-transparencia .filtro-ano a:hover {
        background: #ff0 !important;
        color: #000 !important;
    }

    /* Controles DataTables */

    body.alto-contraste .a11y-transparencia .dataTables_wrapper,
    body.alto-contraste .a11y-transparencia .dt-container,
    body.alto-contraste .a11y-transparencia .dataTables_wrapper label,
    body.alto-contraste .a11y-transparencia .dt-container label,
    body.alto-contraste .a11y-transparencia .dataTables_info,
    body.alto-contraste .a11y-transparencia .dt-info {
        color: #fff !important;
    }

    body.alto-contraste .a11y-transparencia input::placeholder {
        color: #fff !important;
        opacity: 1 !important;
    }

    /* Paginacao DataTables */

    body.alto-contraste .a11y-transparencia .paginate_button,
    body.alto-contraste .a11y-transparencia .dt-paging-button {
        background: #000 !important;
        color: #ff0 !important;
        border: 1px solid #ff0 !important;
        box-shadow: none !important;
    }

    body.alto-contraste .a11y-transparencia .paginate_button.current,
    body.alto-contraste .a11y-transparencia .dt-paging-button.current,
    body.alto-contraste .a11y-transparencia .paginate_button:not(.disabled):hover,
    body.alto-contraste .a11y-transparencia .dt-paging-button:not(.disabled):hover {
        background: #ff0 !important;
        color: #000 !important;
    }

    body.alto-contraste .a11y-transparencia .paginate_button.disabled,
    body.alto-contraste .a11y-transparencia .dt-paging-button.disabled,
    body.alto-contraste .a11y-transparencia .dt-paging-button:disabled {
        background: #111 !important;
        color: #ccc !important;
        border-color: #777 !important;
    }

    /* Situacao dos contratos */

    body.alto-contraste .a11y-transparencia .badge {
        background: #111 !important;
        color: #fff !important;
        border: 1px solid #fff !important;
    }

    /* Foco por teclado */

    body.alto-contraste .a11y-transparencia a:focus-visible,
    body.alto-contraste .a11y-transparencia button:focus-visible,
    body.alto-contraste .a11y-transparencia input:focus-visible,
    body.alto-contraste .a11y-transparencia select:focus-visible {
        outline: 3px solid #ff0 !important;
        outline-offset: 2px !important;
    }

}

/* FIM DO ALTO CONTRASTE - TRANSPARENCIA */


/* ALTO CONTRASTE - LICITACOES E EDITAIS */

@media screen {

    /* Titulos e informacoes */

    body.alto-contraste .a11y-licitacoes,
    body.alto-contraste .a11y-edital {
        background: #000 !important;
        color: #fff !important;
    }

    body.alto-contraste .a11y-licitacoes
        :is(p, strong, label, h2, h3),
    body.alto-contraste .a11y-edital
        :is(p, strong, label, h2, h3, h4, dt, dd) {
        color: #fff !important;
    }

    body.alto-contraste .a11y-licitacoes
        :is(.edital-meta, .edital-datas, .edital-objeto),
    body.alto-contraste .a11y-licitacoes .edital-datas span {
        color: #fff !important;
    }

    /* Modos de visualizacao e paginacao */

    body.alto-contraste .a11y-licitacoes .view-btn,
    body.alto-contraste .a11y-licitacoes .paginacao a,
    body.alto-contraste .a11y-edital .docs-navegacao button,
    body.alto-contraste .a11y-edital .btn {
        background: #000 !important;
        color: #ff0 !important;
        border-color: #ff0 !important;
    }

    body.alto-contraste .a11y-licitacoes .view-btn.ativo,
    body.alto-contraste .a11y-licitacoes .view-btn:hover,
    body.alto-contraste .a11y-licitacoes .paginacao .atual,
    body.alto-contraste .a11y-licitacoes .paginacao a:hover,
    body.alto-contraste .a11y-edital .btn:hover,
    body.alto-contraste .a11y-edital
        .docs-navegacao button:not(:disabled):hover {
        background: #ff0 !important;
        color: #000 !important;
        border-color: #ff0 !important;
    }

    body.alto-contraste .a11y-licitacoes
        .paginacao .desabilitado,
    body.alto-contraste .a11y-edital
        .docs-navegacao button:disabled {
        background: #111 !important;
        color: #ccc !important;
        border-color: #777 !important;
    }

    /* Etiquetas de situacao */

    body.alto-contraste .a11y-licitacoes .badge {
        background: #111 !important;
        color: #fff !important;
        border: 1px solid #fff !important;
    }

    /* Documentos do edital */

    body.alto-contraste .a11y-edital .docs-licitacao,
    body.alto-contraste .a11y-edital .docs-controles,
    body.alto-contraste .a11y-edital .docs-rodape {
        background: #000 !important;
        color: #fff !important;
        border-color: #fff !important;
    }

    body.alto-contraste .a11y-edital .docs-total {
        background: #111 !important;
        color: #fff !important;
        border: 1px solid #fff !important;
    }

    body.alto-contraste .a11y-edital .docs-tabela a,
    body.alto-contraste .a11y-licitacoes .a11y-tabela a {
        color: #ff0 !important;
    }

    /* Campos e foco */

    body.alto-contraste .a11y-licitacoes input::placeholder,
    body.alto-contraste .a11y-edital input::placeholder {
        color: #fff !important;
        opacity: 1 !important;
    }

    body.alto-contraste .a11y-licitacoes
        :is(a, button, input, select):focus-visible,
    body.alto-contraste .a11y-edital
        :is(a, button, input, select):focus-visible {
        outline: 3px solid #ff0 !important;
        outline-offset: 2px !important;
    }

}

/* FIM DO ALTO CONTRASTE - LICITACOES E EDITAIS */


/* ALTO CONTRASTE - PORTOS INDIVIDUAIS */

@media screen {

    body.alto-contraste .a11y-porto {
        background: #000 !important;
        color: #fff !important;
    }

    body.alto-contraste .a11y-porto
        :is(h2, h3, h4, p, strong, dt, dd) {
        color: #fff !important;
    }

    body.alto-contraste .a11y-porto .a11y-painel {
        background: #000 !important;
        color: #fff !important;
        border-color: #fff !important;
        box-shadow: none !important;
    }

    body.alto-contraste .a11y-porto .a11y-painel
        :is(div, span, p, strong) {
        color: #fff !important;
        border-color: #fff !important;
    }

    body.alto-contraste .a11y-porto a {
        color: #ff0 !important;
    }

    body.alto-contraste .a11y-porto a.btn {
        background: #000 !important;
        color: #ff0 !important;
        border: 2px solid #ff0 !important;
    }

    body.alto-contraste .a11y-porto a.btn:hover {
        background: #ff0 !important;
        color: #000 !important;
    }

    body.alto-contraste .a11y-porto a:focus-visible {
        outline: 3px solid #ff0 !important;
        outline-offset: 3px !important;
    }

    body.alto-contraste .a11y-porto .rich-text table,
    body.alto-contraste .a11y-porto .rich-text td {
        background: #000 !important;
        color: #fff !important;
        border-color: #fff !important;
    }

    body.alto-contraste .a11y-porto .rich-text th {
        background: #222 !important;
        color: #fff !important;
        border-color: #fff !important;
    }

}

/* FIM DO ALTO CONTRASTE - PORTOS INDIVIDUAIS */


/* ALTO CONTRASTE - FORMULARIOS PUBLICOS */

@media screen {

    body.alto-contraste .a11y-formulario-publico {
        background: #000 !important;
        color: #fff !important;
    }

    /* Paineis com estilos definidos no template */

    body.alto-contraste .a11y-formulario-publico
        div[style*="background:"] {
        background: #000 !important;
        color: #fff !important;
        border-color: #fff !important;
        box-shadow: none !important;
    }

    /* Titulos, rotulos e textos informativos */

    body.alto-contraste .a11y-formulario-publico
        :is(h2, h3, h4, p, label, strong, span, li, div) {
        color: #fff !important;
    }

    /* Links */

    body.alto-contraste .a11y-formulario-publico a {
        color: #ff0 !important;
        text-decoration: underline !important;
    }

    /* Botoes */

    body.alto-contraste .a11y-formulario-publico button,
    body.alto-contraste .a11y-formulario-publico
        a[style*="background:"] {
        background: #000 !important;
        color: #ff0 !important;
        border: 1px solid #ff0 !important;
        box-shadow: none !important;
    }

    body.alto-contraste .a11y-formulario-publico
        button:not(:disabled):hover,
    body.alto-contraste .a11y-formulario-publico
        a[style*="background:"]:hover {
        background: #ff0 !important;
        color: #000 !important;
    }

    body.alto-contraste .a11y-formulario-publico
        button:disabled {
        background: #111 !important;
        color: #ccc !important;
        border-color: #777 !important;
    }

    /* Campos de formulario */

    body.alto-contraste .a11y-formulario-publico
        :is(input, textarea, select) {
        color-scheme: dark;
    }

    body.alto-contraste .a11y-formulario-publico
        select option {
        background: #111 !important;
        color: #fff !important;
    }

    /* Navegacao por teclado */

    body.alto-contraste .a11y-formulario-publico
        :is(a, button, input, textarea, select):focus-visible {
        outline: 3px solid #ff0 !important;
        outline-offset: 3px !important;
    }

}

/* FIM DO ALTO CONTRASTE - FORMULARIOS PUBLICOS */


/* ALTO CONTRASTE - AREA DO EMPREGADO */

@media screen {

    body.alto-contraste .a11y-empregado {
        background: #000 !important;
        color: #fff !important;
    }

    body.alto-contraste .a11y-empregado
        :is(h2, h3, h4, p, strong, span) {
        color: #fff !important;
    }

    body.alto-contraste .a11y-sistema-interno {
        background: #000 !important;
        border-color: #fff !important;
        box-shadow: none !important;
    }

    body.alto-contraste .a11y-sistema-interno:hover {
        background: #222 !important;
        border-color: #ff0 !important;
    }

    body.alto-contraste .a11y-sistema-interno .a11y-link {
        color: #ff0 !important;
    }

    body.alto-contraste .a11y-sistema-interno .a11y-texto {
        color: #fff !important;
    }

    /* Modal de comunicados internos */

    body.alto-contraste #modal-comunicados > div,
    body.alto-contraste #modal-comunicados
        div[style*="background:"] {
        background: #000 !important;
        color: #fff !important;
        border-color: #fff !important;
        box-shadow: none !important;
    }

    body.alto-contraste #modal-comunicados > div {
        border: 2px solid #fff !important;
    }

    body.alto-contraste #modal-comunicados
        :is(h2, h3, p, strong, span, label, div) {
        color: #fff !important;
    }

    body.alto-contraste #modal-comunicados button {
        background: #000 !important;
        color: #ff0 !important;
        border: 1px solid #ff0 !important;
    }

    body.alto-contraste #modal-comunicados button:hover {
        background: #ff0 !important;
        color: #000 !important;
    }

    body.alto-contraste #modal-comunicados
        input[type="checkbox"] {
        accent-color: #ff0;
        color-scheme: dark;
    }

    body.alto-contraste .a11y-empregado a:focus-visible,
    body.alto-contraste #modal-comunicados
        :is(a, button, input):focus-visible {
        outline: 3px solid #ff0 !important;
        outline-offset: 3px !important;
    }

}

/* FIM DO ALTO CONTRASTE - AREA DO EMPREGADO */


/* ALTO CONTRASTE - WIDGET */

@media screen {

    body.alto-contraste #acessibilidade-widget {
        background: #000 !important;
        color: #fff !important;
        border-color: #ff0 !important;
        box-shadow: none !important;
    }

    body.alto-contraste #acessibilidade-widget
        :is(strong, span, label) {
        color: #fff !important;
    }

    body.alto-contraste #acessibilidade-widget button,
    body.alto-contraste #btn-acessibilidade-flutuante {
        background: #000 !important;
        color: #ff0 !important;
        border: 1px solid #ff0 !important;
        box-shadow: none !important;
    }

    body.alto-contraste #acessibilidade-widget
        button:not([aria-pressed]):hover {
        background: #ff0 !important;
        color: #000 !important;
    }

    /* Indicadores ligados e desligados */

    body.alto-contraste #acessibilidade-widget
        button[aria-pressed="false"] {
        background: #111 !important;
        border-color: #fff !important;
    }

    body.alto-contraste #acessibilidade-widget
        button[aria-pressed="true"] {
        background: #ff0 !important;
        border-color: #ff0 !important;
    }

    body.alto-contraste #acessibilidade-widget
        button[aria-pressed="false"] > span {
        background: #fff !important;
    }

    body.alto-contraste #acessibilidade-widget
        button[aria-pressed="true"] > span {
        background: #000 !important;
    }

    body.alto-contraste #btn-acessibilidade-flutuante svg {
        fill: #ff0 !important;
    }

    body.alto-contraste #acessibilidade-widget
        button:focus-visible,
    body.alto-contraste
        #btn-acessibilidade-flutuante:focus-visible {
        outline: 3px solid #ff0 !important;
        outline-offset: 4px !important;
    }

}

/* FIM DO ALTO CONTRASTE - WIDGET */


/* ALTO CONTRASTE - CONTADOR DE RESULTADOS */

@media screen {

    body.alto-contraste .a11y-contador-resultados,
    body.alto-contraste .a11y-contador-resultados strong {
        color: #fff !important;
    }

    body.alto-contraste .a11y-contador-resultados a {
        color: #ff0 !important;
    }

}

/* IMPRESSAO INSTITUCIONAL */

@media print {

    html,
    body,
    body.alto-contraste {
        background: #fff !important;
        color: #000 !important;
    }

    body *,
    body.alto-contraste * {
        color: #000 !important;
        background-color: transparent !important;
        background-image: none !important;
        border-color: #777 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    /* Componentes exclusivos da navegacao em tela */

    .topo-utilitario,
    .header-principal,
    .rodape,
    .skip-nav,
    .nav-mobile-links,
    #acessibilidade-widget,
    #btn-acessibilidade-flutuante,
    [vw],
    [vw-access-button],
    [vw-plugin-wrapper],
    .exportar-btns,
    .exportacao-licitacoes,
    .view-toggle,
    .filtros-bar,
    .filtro-ano,
    .paginacao,
    .dataTables_length,
    .dataTables_filter,
    .dataTables_paginate,
    .dt-length,
    .dt-search,
    .dt-paging,
    .docs-controles,
    .docs-navegacao {
        display: none !important;
    }

    /* Conteudo principal */

    main,
    #conteudo-principal,
    .conteudo-principal,
    .container {
        width: auto !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    body .a11y-painel,
    body .docs-tabela-rolagem {
        overflow: visible !important;
        max-height: none !important;
    }

    /* Tabelas */

    body table {
        width: 100% !important;
        border-collapse: collapse !important;
        font-size: 9pt !important;
    }

    body table th,
    body table td {
        border: 1px solid #777 !important;
        padding: 5px !important;
        color: #000 !important;
        overflow-wrap: anywhere;
    }

    body table thead {
        display: table-header-group;
    }

    body table tr {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    /* Evitar quebras desnecessarias */

    h1, h2, h3 {
        break-after: avoid;
        page-break-after: avoid;
    }

    .a11y-indicador,
    .a11y-mensagem {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    body a {
        color: #000 !important;
        text-decoration: underline !important;
    }

    img {
        max-width: 100% !important;
    }

}

/* FIM DA IMPRESSAO INSTITUCIONAL */


/* POSICIONAMENTO DOS RECURSOS DE ACESSIBILIDADE */

@media screen {

    #btn-acessibilidade-flutuante {
        left: 20px !important;
        right: auto !important;
    }

    #acessibilidade-widget {
        left: 20px !important;
        right: auto !important;
        box-sizing: border-box;
        max-width: calc(100vw - 40px);
        max-height: calc(100dvh - 100px);
        overflow-y: auto;
    }

}

@media screen and (max-width: 600px) {

    #btn-acessibilidade-flutuante {
        left: 12px !important;
    }

    #acessibilidade-widget {
        left: 12px !important;
        max-width: calc(100vw - 24px);
    }

}

/* FIM DO POSICIONAMENTO DOS RECURSOS DE ACESSIBILIDADE */


/* AJUSTES DE IMPRESSAO E MENU MOBILE */

@media screen {

    body.alto-contraste #btn-menu-mobile .hamburguer-linha {
        background: #ff0 !important;
    }

    body.alto-contraste #btn-menu-mobile:focus-visible {
        outline: 3px solid #ff0 !important;
        outline-offset: 4px !important;
    }

}

@media print {

    html body.alto-contraste.alto-contraste.alto-contraste,
    html body.alto-contraste.alto-contraste.alto-contraste *,
    html body.alto-contraste.alto-contraste.alto-contraste *::before,
    html body.alto-contraste.alto-contraste.alto-contraste *::after {
        color: #000 !important;
        -webkit-text-fill-color: #000 !important;
        background-color: transparent !important;
        border-color: #777 !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }

    html body.alto-contraste {
        background: #fff !important;
    }

    html body [vw],
    html body [vw-access-button],
    html body [vw-plugin-wrapper],
    html body #acessibilidade-widget,
    html body #btn-acessibilidade-flutuante,
    html body #cookie-banner,
    html body #btn-menu-mobile,
    html body #nav-mobile {
        display: none !important;
        visibility: hidden !important;
    }

}

/* FIM DOS AJUSTES DE IMPRESSAO E MENU MOBILE */


/* IMPRESSAO - WAGTAIL USERBAR */

@media print {

    wagtail-userbar,
    #wagtail-userbar,
    #wagtail-userbar-trigger,
    .w-userbar,
    .w-userbar-trigger {
        display: none !important;
        visibility: hidden !important;
    }

}

/* FIM DA IMPRESSAO - WAGTAIL USERBAR */


/* INTEGRACAO RESPONSIVA VLIBRAS */

@media screen and (max-width: 768px) {

    body.vlibras-aberto #btn-acessibilidade-flutuante {
        display: none !important;
    }

}

@media print {

    html body #vlibras-access-wrapper {
        display: none !important;
        visibility: hidden !important;
    }

}

/* FIM DA INTEGRACAO RESPONSIVA VLIBRAS */


/* ALTO CONTRASTE - LOGIN */

@media screen {

    body.alto-contraste .a11y-login-fundo {
        background: #000 !important;
    }

    body.alto-contraste .a11y-login-card {
        background: #000 !important;
        border: 2px solid #fff !important;
        box-shadow: none !important;
    }

    body.alto-contraste .a11y-login-card
        :is(div, p, label, span) {
        color: #fff !important;
    }

    body.alto-contraste .a11y-login-card
        div[style*="height:1px"],
    body.alto-contraste .a11y-login-card
        div[style*="height:3px"] {
        background: #fff !important;
    }

    body.alto-contraste .a11y-login-card button {
        background: #000 !important;
        color: #ff0 !important;
        border: 1px solid #ff0 !important;
        box-shadow: none !important;
    }

    body.alto-contraste .a11y-login-card
        button:not(:disabled):hover {
        background: #ff0 !important;
        color: #000 !important;
    }

    body.alto-contraste .a11y-login-card a {
        color: #ff0 !important;
        text-decoration: underline !important;
    }

    body.alto-contraste .a11y-login-card
        input:not([type="hidden"]) {
        background: #111 !important;
        color: #fff !important;
        border-color: #ff0 !important;
        color-scheme: dark;
        caret-color: #fff;
    }

    /* Preenchimento automatico do navegador */

    body.alto-contraste .a11y-login-card
        input:-webkit-autofill {
        -webkit-text-fill-color: #fff !important;
        -webkit-box-shadow: 0 0 0 1000px #111 inset !important;
        caret-color: #fff !important;
    }

    body.alto-contraste .a11y-login-card
        input::placeholder {
        color: #fff !important;
        opacity: 1 !important;
    }

    /* Foco no modo normal */

    .a11y-login :is(input, button, a):focus-visible {
        outline: 3px solid var(--cdp-azul) !important;
        outline-offset: 3px !important;
    }

    /* Foco no alto contraste */

    body.alto-contraste .a11y-login
        :is(input, button, a):focus-visible {
        outline: 3px solid #ff0 !important;
        outline-offset: 3px !important;
    }

}

/* FIM DO ALTO CONTRASTE - LOGIN */


/* IMPRESSAO - ICONES E CONTROLES DA HOME */

@media print {

    html body .banner-ctrl,
    html body .banner-dots {
        display: none !important;
    }

    html body section.sistemas-rapidos .sistema-icone svg,
    html body.alto-contraste section.sistemas-rapidos .sistema-icone svg {
        stroke: #000 !important;
        fill: none !important;
    }

    html body .a11y-icone svg,
    html body.alto-contraste .a11y-icone svg {
        stroke: #000 !important;
    }

}

/* FIM DA IMPRESSAO - ICONES E CONTROLES DA HOME */
