/* =========================================
   PORTAL DAMC
   Identidade visual
   Preto • Dourado • Branco
========================================= */


/* CONFIGURAÇÕES GERAIS */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background: #f4f5f7;

    color: #1f2933;
}


/* =========================================
   CABEÇALHO
========================================= */

.topo {

    background:
        linear-gradient(
            135deg,
            #050505,
            #111111,
            #1a1a1a
        );

    border-bottom: 3px solid #b88732;

    box-shadow:
        0 3px 15px rgba(0, 0, 0, 0.25);
}


.topo-conteudo {

    max-width: 1600px;

    margin: auto;

    min-height: 105px;

    padding: 15px 35px;

    display: flex;

    align-items: center;

    gap: 30px;
}


/* LOGO */

.logo {

    width: 220px;

    height: 75px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.logo img {

    width: 100%;

    height: 100%;

    object-fit: contain;
}


/* TÍTULO */

.titulo-portal {

    border-left: 1px solid #72551f;

    padding-left: 30px;
}


.titulo-portal h1 {

    margin: 0;

    color: #ffffff;

    font-size: 29px;

    font-weight: 600;

    letter-spacing: 0.5px;
}


.titulo-portal p {

    margin: 6px 0 0;

    color: #c8a762;

    font-size: 15px;
}


/* =========================================
   CONTEÚDO PRINCIPAL
========================================= */

main {

    max-width: 1600px;

    margin: auto;

    padding: 32px;
}


/* =========================================
   CARDS DO DASHBOARD
========================================= */

.resumo {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

    margin-bottom: 25px;
}


.card {

    position: relative;

    overflow: hidden;

    background: #ffffff;

    min-height: 145px;

    padding: 24px 26px;

    border-radius: 10px;

    border: 1px solid #e6e8eb;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.card::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 4px;

    height: 100%;

    background: #b88732;
}


.card:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 7px 18px rgba(0, 0, 0, 0.10);
}


.card span {

    display: block;

    color: #626b76;

    font-size: 15px;

    font-weight: 500;
}


.card strong {

    display: block;

    margin: 7px 0;

    color: #171717;

    font-size: 34px;

    font-weight: 650;
}


.card small {

    color: #8b949e;

    font-size: 13px;
}


/* CARD PNCP */

.card.destaque {

    background:
        linear-gradient(
            135deg,
            #111111,
            #1d1d1d
        );

    border-color: #2c2c2c;
}


.card.destaque span {

    color: #d3b36c;
}


.card.destaque strong {

    color: #ffffff;
}


.card.destaque small {

    color: #aaa;
}


/* =========================================
   PAINÉIS
========================================= */

.painel {

    background: #ffffff;

    margin-bottom: 25px;

    padding: 28px;

    border-radius: 10px;

    border: 1px solid #e6e8eb;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.05);
}


/* CABEÇALHO DOS PAINÉIS */

.titulo {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
}


.titulo h2 {

    margin: 0;

    color: #1a1a1a;

    font-size: 24px;

    font-weight: 650;
}


.titulo p {

    margin: 5px 0 0;

    color: #77808b;

    font-size: 14px;
}


/* =========================================
   BOTÕES
========================================= */

button {

    border: none;

    outline: none;

    background:
        linear-gradient(
            135deg,
            #c89b45,
            #a97926
        );

    color: #ffffff;

    padding: 11px 18px;

    border-radius: 6px;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.12);

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}


button:hover {

    background:
        linear-gradient(
            135deg,
            #d3aa5c,
            #b88732
        );

    transform:
        translateY(-1px);

    box-shadow:
        0 4px 9px rgba(0, 0, 0, 0.16);
}


button:active {

    transform:
        translateY(0);
}


/* BOTÃO RENOVAR */

.acao {

    background: #292929;

    color: #ffffff;

    border: 1px solid #3b3b3b;

    box-shadow: none;
}


.acao:hover {

    background: #b88732;
}


/* =========================================
   TABELA
========================================= */

.tabela-container {

    width: 100%;

    overflow-x: auto;
}


table {

    width: 100%;

    border-collapse: collapse;
}


thead {

    background: #fafafa;
}


th {

    padding: 14px;

    text-align: left;

    color: #555f69;

    font-size: 13px;

    font-weight: 650;

    border-top: 1px solid #e7e9ec;

    border-bottom: 1px solid #dfe2e6;
}


td {

    padding: 17px 14px;

    color: #30363d;

    font-size: 14px;

    border-bottom: 1px solid #eceef0;
}


tbody tr {

    transition:
        background 0.15s ease;
}


tbody tr:hover {

    background: #fbfaf7;
}


/* =========================================
   STATUS
========================================= */

.status {

    display: inline-block;

    padding: 5px 11px;

    border-radius: 20px;

    font-size: 12px;

    font-weight: 650;
}


.status.ok {

    background: #dcfce7;

    color: #166534;
}


.status.alerta {

    background: #fef3c7;

    color: #92400e;
}


/* FUTURO STATUS VENCIDO */

.status.vencido {

    background: #fee2e2;

    color: #991b1b;
}


/* =========================================
   ÁREA SEM LICITAÇÕES
========================================= */

.area-vazia {

    min-height: 155px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;

    border: 1px dashed #d8dadd;

    border-radius: 8px;

    background: #fafafa;
}


.icone-vazio {

    width: 52px;

    height: 52px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 10px;

    border-radius: 50%;

    background: #171717;

    color: #c89b45;

    font-size: 11px;

    font-weight: bold;
}


.area-vazia h3 {

    margin: 3px 0;

    color: #424850;

    font-size: 15px;
}


.area-vazia p {

    margin: 4px 0;

    color: #9299a2;

    font-size: 13px;
}


/* =========================================
   PNCP / CAPTAÇÃO
========================================= */

.captacao {

    border-top:
        3px solid #b88732;
}


.pncp {

    background: #171717;

    color: #d2aa58;

    padding: 7px 13px;

    border-radius: 5px;

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1px;
}


.filtros {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr auto;

    gap: 16px;

    align-items: end;
}


.campo label {

    display: block;

    margin-bottom: 7px;

    color: #4d5660;

    font-size: 13px;

    font-weight: 600;
}


input {

    width: 100%;

    height: 42px;

    padding: 0 12px;

    border: 1px solid #cfd4da;

    border-radius: 6px;

    background: #ffffff;

    color: #252a30;

    font-size: 14px;

    outline: none;

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease;
}


input:focus {

    border-color: #b88732;

    box-shadow:
        0 0 0 3px
        rgba(184, 135, 50, 0.12);
}


.buscar {

    height: 42px;

    white-space: nowrap;
}


/* RESULTADO DA PESQUISA */

.resultado-pesquisa {

    margin-top: 20px;

    padding: 17px;

    border-radius: 7px;

    background: #f8f8f8;

    border-left: 3px solid #b88732;
}


.resultado-pesquisa span {

    color: #333333;

    font-size: 13px;

    font-weight: bold;
}


.resultado-pesquisa p {

    margin: 5px 0 0;

    color: #7c858f;

    font-size: 13px;
}


/* =========================================
   RODAPÉ
========================================= */

footer {

    min-height: 70px;

    padding: 20px 35px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    background: #0b0b0b;

    border-top: 2px solid #b88732;

    color: #9d9d9d;

    font-size: 12px;
}


footer strong {

    color: #c69a48;
}


footer span {

    margin: 0 5px;

    color: #72551f;
}


/* =========================================
   RESPONSIVIDADE
========================================= */

@media (max-width: 1000px) {

    .resumo {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .filtros {

        grid-template-columns:
            1fr 1fr;
    }


    .palavra {

        grid-column:
            span 2;
    }

}


@media (max-width: 650px) {

    .topo-conteudo {

        flex-direction: column;

        align-items: flex-start;

        gap: 10px;
    }


    .titulo-portal {

        border-left: none;

        padding-left: 0;
    }


    main {

        padding: 15px;
    }


    .resumo {

        grid-template-columns: 1fr;
    }


    .titulo {

        align-items: flex-start;

        flex-direction: column;
    }


    .filtros {

        grid-template-columns: 1fr;
    }


    .palavra {

        grid-column: auto;
    }


    footer {

        flex-direction: column;

        gap: 8px;
    }

}
/* =========================================
   MENSAGENS DO SISTEMA
========================================= */

.mensagens {
    margin-bottom: 20px;
}

.flash {
    padding: 13px 16px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid transparent;
}

.flash.sucesso {
    background: #ecfdf3;
    border-color: #bbf7d0;
    color: #166534;
}

.flash.erro {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}


/* =========================================
   AÇÕES DA TABELA
========================================= */

.acoes {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.form-excluir {
    margin: 0;
}

.acao.perigo {
    background: #ffffff;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.acao.perigo:hover {
    background: #fee2e2;
    color: #7f1d1d;
}

.tabela-vazia {
    padding: 30px 14px;
    text-align: center;
    color: #8b949e;
}


/* =========================================
   MODAL DE CERTIDÕES
========================================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(2px);
}

.modal-backdrop.aberto {
    display: flex;
}

.modal {
    width: min(720px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;

    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #dfe2e6;

    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.28);
}

.modal-cabecalho {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;

    padding: 24px 26px;

    background:
        linear-gradient(
            135deg,
            #111111,
            #1c1c1c
        );

    border-bottom: 3px solid #b88732;
}

.modal-cabecalho h2 {
    margin: 0;
    color: #ffffff;
    font-size: 22px;
}

.modal-cabecalho p {
    margin: 6px 0 0;
    color: #c6c6c6;
    font-size: 13px;
}

.fechar-modal {
    min-width: 38px;
    height: 38px;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
    border: 1px solid #3a3a3a;
    box-shadow: none;

    color: #ffffff;
    font-size: 25px;
    line-height: 1;
}

.fechar-modal:hover {
    background: #2c2c2c;
    transform: none;
}

.modal-form {
    padding: 26px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.campo-full {
    grid-column: 1 / -1;
}

textarea {
    width: 100%;
    min-height: 105px;
    resize: vertical;

    padding: 11px 12px;

    border: 1px solid #cfd4da;
    border-radius: 6px;

    background: #ffffff;
    color: #252a30;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease;
}

textarea:focus {
    border-color: #b88732;

    box-shadow:
        0 0 0 3px
        rgba(184, 135, 50, 0.12);
}

.modal-acoes {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 24px;
    padding-top: 20px;

    border-top: 1px solid #eceef0;
}

.btn-secundario {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
    box-shadow: none;
}

.btn-secundario:hover {
    background: #e5e7eb;
    color: #111827;
}


/* =========================================
   RESPONSIVIDADE EXTRA
========================================= */

@media (max-width: 650px) {

    .form-grid {
        grid-template-columns: 1fr;
    }

    .campo-full {
        grid-column: auto;
    }

    .modal-form {
        padding: 20px;
    }

    .modal-cabecalho {
        padding: 20px;
    }

    .modal-acoes {
        flex-direction: column-reverse;
    }

    .modal-acoes button {
        width: 100%;
    }
}

/* =========================================
   LINK DE RENOVAÇÃO DAS CERTIDÕES
========================================= */

.renovar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 11px 18px;

    border: 1px solid #b88732;
    border-radius: 6px;

    background:
        linear-gradient(
            135deg,
            #c89b45,
            #a97926
        );

    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.12);

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

.renovar-link:hover {
    background:
        linear-gradient(
            135deg,
            #d3aa5c,
            #b88732
        );

    color: #ffffff;
    text-decoration: none;

    transform:
        translateY(-1px);

    box-shadow:
        0 4px 9px rgba(0, 0, 0, 0.16);
}

.renovar-link:visited {
    color: #ffffff;
}

.renovar-link.indisponivel {
    background: #eef0f2;
    color: #8b949e;
    border-color: #d7dbe0;

    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.ajuda-campo {
    display: block;
    margin-top: 6px;

    color: #8b949e;
    font-size: 12px;
}

/* =========================================
   V3 - LICITAÇÕES
========================================= */

select {
    width: 100%;
    height: 42px;

    padding: 0 12px;

    border: 1px solid #cfd4da;
    border-radius: 6px;

    background: #ffffff;
    color: #252a30;

    font-family: inherit;
    font-size: 14px;

    outline: none;

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease;
}

select:focus {
    border-color: #b88732;

    box-shadow:
        0 0 0 3px
        rgba(184, 135, 50, 0.12);
}

.modal-grande {
    width: min(920px, 100%);
}

.form-grid-licitacao {
    grid-template-columns: 1fr 1fr;
}

.tabela-licitacoes {
    min-width: 1480px;
}

.coluna-objeto {
    min-width: 300px;
    max-width: 420px;
}

.info-secundaria {
    display: block;

    margin-top: 5px;

    color: #8b949e;
    font-size: 12px;
    line-height: 1.4;
}

.responsavel-chip {
    display: inline-flex;
    align-items: center;

    min-height: 29px;
    padding: 5px 10px;

    border-radius: 20px;

    background: #f3f0e8;
    border: 1px solid #e4d4ad;

    color: #72551f;

    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-licitacao {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-licitacao.analise {
    background: #f3f4f6;
    color: #374151;
}

.status-licitacao.participar {
    background: #fef3c7;
    color: #92400e;
}

.status-licitacao.proposta {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-licitacao.disputa {
    background: #ede9fe;
    color: #6d28d9;
}

.status-licitacao.aguardando {
    background: #e0f2fe;
    color: #0369a1;
}

.status-licitacao.ganha {
    background: #dcfce7;
    color: #166534;
}

.status-licitacao.perdida {
    background: #fee2e2;
    color: #991b1b;
}

.status-licitacao.cancelada {
    background: #e5e7eb;
    color: #4b5563;
}


/* Garante o acabamento dourado dos links de ação
   no release v3. */

a.renovar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 11px 18px;

    border: 1px solid #b88732;
    border-radius: 6px;

    background:
        linear-gradient(
            135deg,
            #c89b45,
            #a97926
        );

    color: #ffffff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;

    box-shadow:
        0 2px 5px rgba(0, 0, 0, 0.12);

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}

a.renovar-link:hover {
    background:
        linear-gradient(
            135deg,
            #d3aa5c,
            #b88732
        );

    color: #ffffff !important;
    text-decoration: none !important;

    transform:
        translateY(-1px);

    box-shadow:
        0 4px 9px rgba(0, 0, 0, 0.16);
}

a.renovar-link:visited,
a.renovar-link:active,
a.renovar-link:focus {
    color: #ffffff !important;
    text-decoration: none !important;
}

span.renovar-link.indisponivel {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 11px 18px;

    border: 1px solid #d7dbe0;
    border-radius: 6px;

    background: #eef0f2;
    color: #8b949e;

    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;

    cursor: not-allowed;
}


@media (max-width: 650px) {

    .form-grid-licitacao {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   V3.1 - VALIDAÇÃO DE FORMULÁRIOS
========================================= */

.campo-invalido {
    border-color: #dc2626 !important;

    box-shadow:
        0 0 0 3px
        rgba(220, 38, 38, 0.10) !important;
}

/* =========================================
   V4 - FLUXO DE LICITAÇÕES E PNCP
========================================= */

.painel-potenciais {
    border-top: 3px solid #d5a23f;
}

.area-vazia-potencial {
    background: #fffdf8;
}

.tabela-compacta {
    table-layout: fixed;
}

.tabela-compacta th:nth-child(1),
.tabela-compacta td:nth-child(1) {
    width: 16%;
}

.tabela-compacta th:nth-child(2),
.tabela-compacta td:nth-child(2) {
    width: 26%;
}

.tabela-compacta th:nth-child(3),
.tabela-compacta td:nth-child(3) {
    width: 14%;
}

.tabela-compacta th:nth-child(4),
.tabela-compacta td:nth-child(4) {
    width: 12%;
}

.tabela-compacta th:nth-child(5),
.tabela-compacta td:nth-child(5) {
    width: 10%;
}

.tabela-compacta th:nth-child(6),
.tabela-compacta td:nth-child(6) {
    width: 22%;
}

.tabela-compacta td {
    vertical-align: top;
    overflow-wrap: anywhere;
}

.tabela-compacta .coluna-objeto {
    min-width: 0;
    max-width: none;
}

.destaque-valor {
    color: #72551f;
    font-weight: 700;
}

.acoes-compactas {
    gap: 6px;
}

.acoes-compactas .acao,
.acoes-compactas .renovar-link {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 12px;
}

.acao.participar {
    background: #166534;
    border-color: #166534;
}

.acao.participar:hover {
    background: #15803d;
}

.status-potencial {
    display: inline-flex;
    align-items: center;

    padding: 5px 10px;
    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-potencial.a-avaliar {
    background: #fef3c7;
    color: #92400e;
}

.status-potencial.em-avaliacao {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-potencial.interessante {
    background: #dcfce7;
    color: #166534;
}


/* CAPTAÇÃO */

.filtros-v4 {
    grid-template-columns: 2fr 1.25fr 1fr 1fr auto;
}

.lista-oportunidades {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
    margin-top: 20px;
}

.oportunidade-card {
    padding: 20px;

    border: 1px solid #e3e5e8;
    border-radius: 9px;

    background: #ffffff;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.oportunidade-topo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 18px;
}

.oportunidade-modalidade {
    display: inline-block;

    margin-bottom: 8px;
    padding: 4px 8px;

    border-radius: 20px;

    background: #f3f0e8;
    color: #72551f;

    font-size: 11px;
    font-weight: 700;
}

.oportunidade-card h3 {
    margin: 0;

    color: #222222;

    font-size: 15px;
    line-height: 1.45;
}

.oportunidade-valor {
    color: #171717;

    font-size: 17px;
    white-space: nowrap;
}

.oportunidade-dados {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 18px;
    padding-top: 15px;

    border-top: 1px solid #eceef0;
}

.oportunidade-dados div {
    min-width: 0;
}

.oportunidade-dados small {
    display: block;

    margin-bottom: 3px;

    color: #9299a2;

    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.oportunidade-dados span {
    display: block;

    color: #4b535d;

    font-size: 12px;
    line-height: 1.4;

    overflow-wrap: anywhere;
}

.oportunidade-acoes {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    margin-top: 17px;
}

.oportunidade-acoes form {
    margin: 0;
}

.acao-link-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 39px;
    padding: 9px 13px;

    border: 1px solid #d1d5db;
    border-radius: 6px;

    background: #ffffff;
    color: #374151 !important;

    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.acao-link-secundario:hover {
    border-color: #b88732;
    color: #72551f !important;
}

.btn-potencial {
    min-height: 39px;
    padding: 9px 13px;

    font-size: 12px;
}

.salva-chip {
    display: inline-flex;
    align-items: center;

    min-height: 39px;
    padding: 9px 13px;

    border-radius: 6px;

    background: #dcfce7;
    color: #166534;

    font-size: 12px;
    font-weight: 700;
}

.resumo-pncp {
    background: #fffdf7;
}

.erro-pncp {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.erro-pncp span,
.erro-pncp p {
    color: #991b1b;
}

.area-vazia-pncp {
    margin-top: 20px;
}


/* Evita a barra horizontal em desktops normais. */
@media (min-width: 1101px) {

    .tabela-sem-scroll-desktop {
        overflow-x: visible;
    }

    .tabela-sem-scroll-desktop table {
        min-width: 0;
        width: 100%;
    }

}


/* TABLETS */

@media (max-width: 1250px) {

    .filtros-v4 {
        grid-template-columns: 1fr 1fr;
    }

    .filtros-v4 .palavra {
        grid-column: span 2;
    }

    .filtros-v4 .buscar {
        width: 100%;
    }

    .lista-oportunidades {
        grid-template-columns: 1fr;
    }

    .tabela-compacta {
        min-width: 1100px;
        table-layout: auto;
    }

    .tabela-sem-scroll-desktop {
        overflow-x: auto;
    }

}


/* MOBILE */

@media (max-width: 650px) {

    .filtros-v4 {
        grid-template-columns: 1fr;
    }

    .filtros-v4 .palavra {
        grid-column: auto;
    }

    .oportunidade-topo {
        flex-direction: column;
    }

    .oportunidade-dados {
        grid-template-columns: 1fr;
    }

    .oportunidade-acoes {
        align-items: stretch;
        flex-direction: column;
    }

    .oportunidade-acoes form,
    .oportunidade-acoes button,
    .oportunidade-acoes a,
    .oportunidade-acoes .salva-chip {
        width: 100%;
    }

}


/* =========================================
   V4.1 - STATUS DA API PNCP
========================================= */

.aviso-pncp {
    border-left-color: #d5a23f;
    background: #fffbeb;
}

.aviso-pncp span {
    color: #92400e;
}

.aviso-pncp p {
    color: #78350f;
}

/* =========================================
   V5 - FORNECEDORES E PROPOSTAS
========================================= */

.painel-fornecedores {
    border-top: 3px solid #b88732;
}

.tabela-fornecedores {
    width: 100%;
    table-layout: fixed;
}

.tabela-fornecedores th:nth-child(1),
.tabela-fornecedores td:nth-child(1) {
    width: 21%;
}

.tabela-fornecedores th:nth-child(2),
.tabela-fornecedores td:nth-child(2) {
    width: 12%;
}

.tabela-fornecedores th:nth-child(3),
.tabela-fornecedores td:nth-child(3) {
    width: 11%;
}

.tabela-fornecedores th:nth-child(4),
.tabela-fornecedores td:nth-child(4) {
    width: 16%;
}

.tabela-fornecedores th:nth-child(5),
.tabela-fornecedores td:nth-child(5) {
    width: 9%;
}

.tabela-fornecedores th:nth-child(6),
.tabela-fornecedores td:nth-child(6) {
    width: 7%;
}

.tabela-fornecedores th:nth-child(7),
.tabela-fornecedores td:nth-child(7) {
    width: 8%;
}

.tabela-fornecedores th:nth-child(8),
.tabela-fornecedores td:nth-child(8) {
    width: 16%;
}

.tabela-fornecedores td {
    vertical-align: top;
    overflow-wrap: anywhere;
}

.transporte-chip,
.status-fornecedor {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;
    border-radius: 20px;

    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.transporte-chip.sim {
    background: #dcfce7;
    color: #166534;
}

.transporte-chip.nao {
    background: #f3f4f6;
    color: #4b5563;
}

.status-fornecedor.ativo {
    background: #dcfce7;
    color: #166534;
}

.status-fornecedor.inativo {
    background: #e5e7eb;
    color: #4b5563;
}


/* CADASTRO FORNECEDOR */

.modal-extra-grande {
    width: min(1080px, 100%);
}

.subtitulo-form {
    margin: 6px 0 15px;
    padding-bottom: 8px;

    border-bottom: 1px solid #eceef0;

    color: #72551f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.subtitulo-form:not(:first-of-type) {
    margin-top: 28px;
}

.form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.campo-span-2 {
    grid-column: span 2;
}


/* RESUMO NA LICITAÇÃO */

.fornecedor-licitacao-resumo {
    margin-top: 10px;
    padding: 8px 10px;

    border-left: 3px solid #b88732;
    border-radius: 5px;

    background: #fbfaf7;
}

.fornecedor-licitacao-resumo small {
    display: block;
    margin-bottom: 2px;

    color: #8b949e;
    font-size: 10px;
    text-transform: uppercase;
}

.fornecedor-licitacao-resumo strong {
    display: inline;
    margin-right: 7px;

    color: #30363d;
    font-size: 12px;
}

.fornecedor-licitacao-resumo a {
    margin-right: 7px;

    color: #8b6421;
    font-size: 12px;
    font-weight: 700;
}

.margem-mini {
    display: inline-flex;
    align-items: center;

    padding: 2px 6px;
    border-radius: 12px;

    font-size: 10px;
    font-weight: 800;
}

.positiva {
    color: #166534 !important;
}

.baixa {
    color: #92400e !important;
}

.negativa {
    color: #991b1b !important;
}

.margem-mini.positiva {
    background: #dcfce7;
}

.margem-mini.baixa {
    background: #fef3c7;
}

.margem-mini.negativa {
    background: #fee2e2;
}

.acao-fornecedores {
    background: #4b5563;
    border-color: #4b5563;
}

.acao-fornecedores:hover {
    background: #374151;
}


/* MODAL PROPOSTAS */

.resumo-financeiro-licitacao {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;

    margin-bottom: 20px;
    padding: 14px 16px;

    border-radius: 8px;
    border: 1px solid #eadbb9;

    background: #fffdf7;
}

.resumo-financeiro-licitacao small {
    display: block;

    color: #8b949e;
    font-size: 11px;
    text-transform: uppercase;
}

.resumo-financeiro-licitacao strong {
    display: block;
    margin-top: 3px;

    color: #171717;
    font-size: 20px;
}

.resumo-financeiro-licitacao p {
    margin: 0;

    color: #7c6b4a;
    font-size: 12px;
    line-height: 1.5;
}

.lista-propostas {
    display: grid;
    gap: 12px;
}

.proposta-card {
    padding: 16px;

    border: 1px solid #e1e4e8;
    border-radius: 9px;

    background: #ffffff;
}

.proposta-card.selecionada {
    border-color: #c89b45;

    box-shadow:
        0 0 0 2px
        rgba(200, 155, 69, 0.10);
}

.proposta-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.proposta-topo > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.proposta-topo strong {
    color: #222222;
}

.selecionado-chip {
    display: inline-flex;

    padding: 4px 8px;

    border-radius: 20px;

    background: #f3f0e8;
    color: #72551f;

    font-size: 10px;
    font-weight: 800;
}

.proposta-valor {
    color: #171717 !important;
    font-size: 18px;
    white-space: nowrap;
}

.proposta-metricas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;

    margin-top: 14px;
}

.proposta-metricas div {
    padding: 9px 10px;

    border-radius: 6px;
    background: #f8f9fa;
}

.proposta-metricas small {
    display: block;

    margin-bottom: 3px;

    color: #8b949e;
    font-size: 10px;
    text-transform: uppercase;
}

.proposta-metricas strong {
    color: #30363d;
    font-size: 13px;
}

.proposta-detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;

    margin-top: 12px;

    color: #626b76;
    font-size: 12px;
}

.proposta-acoes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 14px;
    padding-top: 12px;

    border-top: 1px solid #eceef0;
}

.proposta-acoes form {
    margin: 0;
}

.proposta-acoes .acao,
.proposta-acoes .renovar-link {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 12px;
}

.area-vazia-menor {
    min-height: 100px;
}

.divisor-form {
    height: 1px;
    margin: 24px 0;

    background: #e7e9ec;
}

.titulo-form-interno {
    margin: 0 0 16px;

    color: #2d333a;
    font-size: 17px;
}

.preview-margem {
    min-height: 42px;

    display: flex;
    align-items: center;

    padding: 9px 11px;

    border: 1px solid #e2e5e9;
    border-radius: 6px;

    background: #f8f9fa;

    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.preview-margem strong {
    margin-left: 4px;
}

.acoes-form-proposta {
    margin-top: 17px;
}

.aviso-sem-fornecedor {
    padding: 15px;

    border-radius: 7px;

    background: #fef3c7;
    color: #92400e;

    font-size: 13px;
}

.aviso-sem-fornecedor a {
    color: #72551f;
    font-weight: 800;
}


/* TABLET */

@media (max-width: 1250px) {

    .tabela-fornecedores {
        min-width: 1180px;
        table-layout: auto;
    }

}


/* MOBILE */

@media (max-width: 750px) {

    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .campo-span-2 {
        grid-column: auto;
    }

    .resumo-financeiro-licitacao {
        grid-template-columns: 1fr;
    }

    .proposta-metricas {
        grid-template-columns: 1fr 1fr;
    }

    .proposta-topo {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 480px) {

    .proposta-metricas {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   V6 - NAVEGAÇÃO E PÁGINA DE FORNECEDORES
========================================= */

.menu-principal {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 5px;

    padding-left: 25px;
}

.menu-principal a {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 39px;
    padding: 9px 12px;

    border-radius: 6px;

    color: #c8c8c8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.18s ease,
        background 0.18s ease;
}

.menu-principal a:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.menu-principal a.ativo {
    background: rgba(184, 135, 50, 0.14);
    color: #d6ad5b;
}

.menu-principal a.ativo::after {
    content: "";

    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 4px;

    height: 2px;

    border-radius: 2px;

    background: #b88732;
}


/* CABEÇALHO DA PÁGINA */

.cabecalho-pagina {
    margin-bottom: 22px;
    padding: 25px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    border-radius: 10px;
    border: 1px solid #e6e8eb;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #fbfaf7
        );

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.05);
}

.cabecalho-pagina h2 {
    margin: 5px 0 4px;

    color: #171717;
    font-size: 27px;
}

.cabecalho-pagina p {
    margin: 0;

    color: #77808b;
    font-size: 14px;
}

.breadcrumb {
    color: #a97926;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.atalho-novo-fornecedor {
    white-space: nowrap;
}


/* CARDS DA ÁREA DE FORNECEDORES */

.resumo-fornecedores .card {
    min-height: 125px;
}

.resumo-fornecedores .card strong {
    font-size: 30px;
}


/* FERRAMENTAS DA TABELA */

.toolbar-fornecedores {
    margin-bottom: 18px;

    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.busca-fornecedor {
    width: min(520px, 100%);
}

.resultado-busca-fornecedor {
    min-width: 155px;

    padding: 10px 13px;

    border-radius: 7px;
    border: 1px solid #e4e6e9;

    background: #fafafa;

    color: #77808b;
    font-size: 12px;
    text-align: right;
}

.resultado-busca-fornecedor strong {
    margin-right: 3px;

    color: #1f2933;
    font-size: 17px;
}


/* A tabela de fornecedores é uma tela própria.
   Em desktop, aproveita melhor a largura disponível. */

@media (min-width: 1251px) {

    .painel-fornecedores .tabela-container {
        overflow-x: visible;
    }

    .painel-fornecedores .tabela-fornecedores {
        min-width: 0;
        width: 100%;
    }

}


/* RESPONSIVIDADE DA NAVEGAÇÃO */

@media (max-width: 1250px) {

    .topo-conteudo {
        flex-wrap: wrap;
    }

    .menu-principal {
        width: 100%;

        margin-left: 0;
        padding-left: 0;

        justify-content: flex-start;

        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 9px;
    }

}


@media (max-width: 650px) {

    .menu-principal {
        overflow-x: auto;

        flex-wrap: nowrap;

        padding-bottom: 3px;
    }

    .menu-principal a {
        flex: 0 0 auto;
    }

    .cabecalho-pagina {
        align-items: flex-start;
        flex-direction: column;
    }

    .atalho-novo-fornecedor {
        width: 100%;
    }

    .toolbar-fornecedores {
        align-items: stretch;
        flex-direction: column;
    }

    .resultado-busca-fornecedor {
        width: 100%;
        text-align: left;
    }

}

/* =========================================
   V7 - DASHBOARD EXECUTIVO / CERTIDÕES
========================================= */

/* VISÃO DIÁRIA */

.visao-diaria {
    margin-bottom: 28px;
}

.visao-diaria-cabecalho {
    margin-bottom: 12px;
}

.visao-diaria-cabecalho h2 {
    margin: 0;

    color: #171717;
    font-size: 20px;
}

.visao-diaria-cabecalho p {
    margin: 4px 0 0;

    color: #818894;
    font-size: 12px;
}

.mini-blocos-dashboard {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;

    gap: 14px;
}

.mini-bloco {
    min-width: 0;
    min-height: 175px;

    display: flex;
    flex-direction: column;

    padding: 17px 18px;

    border: 1px solid #e3e6e9;
    border-radius: 9px;

    background: #ffffff;

    color: inherit;
    text-decoration: none;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.045);

    transition:
        transform 0.16s ease,
        box-shadow 0.16s ease,
        border-color 0.16s ease;
}

.mini-bloco:hover {
    border-color: #d4b36b;

    transform: translateY(-1px);

    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.07);
}

.mini-bloco-certidoes {
    border-top: 3px solid #b88732;
}

.mini-bloco-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.mini-bloco-etiqueta {
    color: #a97926;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

.mini-bloco h3 {
    margin: 3px 0 0;

    color: #222222;
    font-size: 17px;
}

.mini-total {
    color: #171717;
    font-size: 29px;
    line-height: 1;
}

.mini-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 8px;

    margin-top: 14px;
}

.mini-status {
    padding: 8px 9px;

    border-radius: 6px;
}

.mini-status strong {
    display: block;

    font-size: 17px;
}

.mini-status span {
    display: block;

    margin-top: 1px;

    font-size: 10px;
    font-weight: 700;
}

.mini-status.ok {
    background: #ecfdf3;
    color: #166534;
}

.mini-status.alerta {
    background: #fff8df;
    color: #92400e;
}

.mini-status.vencido {
    background: #fef2f2;
    color: #991b1b;
}

.mini-bloco-conteudo-principal {
    margin-top: 18px;
}

.mini-bloco-conteudo-principal strong {
    display: block;

    color: #30363d;
    font-size: 14px;
}

.mini-bloco-conteudo-principal span {
    display: block;

    margin-top: 4px;

    color: #7d8590;
    font-size: 12px;
    line-height: 1.45;
}

.mini-bloco-rodape {
    margin-top: auto;
    padding-top: 11px;

    border-top: 1px solid #edf0f2;
}

.mini-bloco-rodape > span,
.mini-bloco-rodape > small {
    display: block;

    color: #8b949e;
    font-size: 10px;
}

.mini-bloco-rodape > strong {
    display: block;

    margin-top: 2px;

    color: #444c55;
    font-size: 12px;
}

.mini-bloco-vazio {
    margin: auto 0;

    color: #9098a2;
    font-size: 12px;
}


/* PÁGINA DE CERTIDÕES */

.resumo-certidoes .card {
    min-height: 125px;
}

.card-vencidas {
    background:
        linear-gradient(
            135deg,
            #1c1717,
            #231717
        ) !important;
}

.card-vencidas > span {
    color: #ffb4b4 !important;
}

.alerta-proximo-vencimento {
    margin: -4px 0 22px;
    padding: 14px 18px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-radius: 8px;
    border: 1px solid #eadbb9;
    border-left: 4px solid #b88732;

    background: #fffdf8;
}

.alerta-proximo-vencimento > div:first-child span {
    display: block;

    color: #a97926;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.alerta-proximo-vencimento > div:first-child strong {
    display: block;

    margin-top: 2px;

    color: #252a30;
    font-size: 15px;
}

.alerta-proximo-vencimento > div:first-child small {
    display: block;

    margin-top: 2px;

    color: #838b95;
    font-size: 11px;
}

.alerta-vencimento-data {
    text-align: right;
}

.alerta-vencimento-data strong {
    display: block;

    color: #252a30;
    font-size: 16px;
}

.alerta-vencimento-data span {
    display: block;

    margin-top: 2px;

    color: #92400e;
    font-size: 11px;
    font-weight: 700;
}

.toolbar-certidoes {
    margin-bottom: 18px;

    display: grid;
    grid-template-columns: minmax(280px, 1.7fr) minmax(180px, 0.7fr) auto;

    align-items: end;
    gap: 14px;
}

.resultado-busca-certidao {
    min-width: 165px;

    padding: 10px 13px;

    border-radius: 7px;
    border: 1px solid #e4e6e9;

    background: #fafafa;

    color: #77808b;
    font-size: 12px;
    text-align: right;
}

.resultado-busca-certidao strong {
    margin-right: 3px;

    color: #1f2933;
    font-size: 17px;
}


@media (max-width: 1050px) {

    .mini-blocos-dashboard {
        grid-template-columns: 1fr 1fr;
    }

    .mini-bloco-certidoes {
        grid-column: span 2;
    }

}


@media (max-width: 700px) {

    .mini-blocos-dashboard {
        grid-template-columns: 1fr;
    }

    .mini-bloco-certidoes {
        grid-column: auto;
    }

    .toolbar-certidoes {
        grid-template-columns: 1fr;
    }

    .resultado-busca-certidao {
        text-align: left;
    }

    .alerta-proximo-vencimento {
        align-items: flex-start;
        flex-direction: column;
    }

    .alerta-vencimento-data {
        text-align: left;
    }

}

/* =========================================
   V8 - AGENDA / TAREFAS / CHECKLIST
========================================= */

/* MINI CALENDÁRIO DO DASHBOARD */

.mini-bloco-calendario {
    cursor: default;
}

.badge-atrasadas {
    display: inline-flex;
    align-items: center;

    padding: 4px 7px;

    border-radius: 20px;

    background: #fee2e2;
    color: #991b1b;

    font-size: 10px;
    font-weight: 800;
}

.mini-calendario {
    margin-top: 10px;
}

.mini-calendario-cabecalho,
.mini-calendario-semana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);

    gap: 3px;
}

.mini-calendario-cabecalho span {
    padding: 2px 0 4px;

    color: #9aa1aa;

    font-size: 9px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.mini-dia {
    position: relative;

    min-height: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 5px;

    color: #4b535d;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}

a.mini-dia:hover {
    background: #f3f0e8;
    color: #72551f;
}

.mini-dia.fora-mes {
    color: #d2d5d9;
}

.mini-dia.hoje {
    background: #171717;
    color: #ffffff;
}

.mini-dia.tem-evento:not(.hoje) {
    background: #faf8f3;
}

.mini-dia-marcadores {
    position: absolute;
    left: 50%;
    bottom: 2px;

    display: flex;
    gap: 2px;

    transform: translateX(-50%);
}

.mini-dia-marcadores i {
    width: 3px;
    height: 3px;

    display: block;

    border-radius: 50%;
}

.mini-dia-marcadores .tarefa {
    background: #2563eb;
}

.mini-dia-marcadores .licitacao {
    background: #b88732;
}

.mini-dia-marcadores .certidao {
    background: #dc2626;
}

.mini-dia-marcadores .proposta {
    background: #7c3aed;
}

.mini-dia-marcadores .concluido {
    background: #16a34a;
}

.mini-calendario-resumo {
    margin-top: auto;
    padding-top: 9px;

    display: grid;
    grid-template-columns: 1fr 1fr auto;

    align-items: end;
    gap: 8px;

    border-top: 1px solid #edf0f2;
}

.mini-calendario-resumo div strong {
    display: block;

    color: #30363d;
    font-size: 14px;
}

.mini-calendario-resumo div span {
    display: block;

    color: #8b949e;
    font-size: 9px;
}

.mini-calendario-resumo > a {
    color: #8b6421;

    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}


/* AGENDA */

.resumo-agenda .card {
    min-height: 125px;
}

.card-alerta-forte {
    border-left-color: #dc2626 !important;
}

.card-alerta-forte strong {
    color: #b91c1c;
}

.agenda-painel {
    border-top: 3px solid #b88732;
}

.agenda-barra {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 18px;
}

.agenda-navegacao {
    display: flex;
    align-items: center;
    gap: 13px;
}

.agenda-navegacao > div span {
    color: #a97926;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.agenda-navegacao h2 {
    margin: 2px 0 0;

    color: #20252b;
    font-size: 22px;
}

.agenda-nav {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #d9dde1;
    border-radius: 7px;

    background: #ffffff;
    color: #30363d;

    font-size: 24px;
    text-decoration: none;
}

.agenda-nav:hover {
    border-color: #b88732;
    color: #8b6421;
}

.agenda-filtros {
    display: flex;
    align-items: flex-end;
    gap: 9px;
}

.agenda-filtros .campo {
    min-width: 170px;
}

.agenda-filtros button {
    min-height: 42px;
}

.agenda-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;

    gap: 18px;
}

.calendario-grande {
    min-width: 0;
}

.calendario-cabecalho {
    display: grid;
    grid-template-columns: repeat(7, 1fr);

    border: 1px solid #e3e6e9;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;

    overflow: hidden;
}

.calendario-cabecalho div {
    padding: 10px;

    background: #f7f8f9;

    color: #69717c;
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendario-corpo {
    display: grid;
    grid-template-columns: repeat(7, 1fr);

    border-left: 1px solid #e3e6e9;
    border-top: 1px solid #e3e6e9;
}

.calendario-dia {
    min-height: 116px;

    padding: 8px;

    display: block;

    border-right: 1px solid #e3e6e9;
    border-bottom: 1px solid #e3e6e9;

    background: #ffffff;

    color: inherit;
    text-decoration: none;

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}

a.calendario-dia:hover {
    background: #fffdf8;

    box-shadow:
        inset 0 0 0 1px
        rgba(184, 135, 50, 0.30);
}

.calendario-dia.fora-mes {
    background: #fafbfc;
    color: #c0c5cc;
}

.calendario-dia.hoje {
    background: #fffdf8;
}

.calendario-dia.selecionado {
    box-shadow:
        inset 0 0 0 2px
        #b88732;
}

.calendario-dia-numero {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.calendario-dia-numero > span {
    width: 27px;
    height: 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #414852;

    font-size: 12px;
    font-weight: 800;
}

.calendario-dia.hoje
.calendario-dia-numero > span {
    background: #171717;
    color: #ffffff;
}

.calendario-dia-numero small {
    min-width: 20px;

    padding: 2px 5px;

    border-radius: 10px;

    background: #f3f0e8;
    color: #72551f;

    font-size: 9px;
    font-weight: 800;
    text-align: center;
}

.calendario-eventos-resumo {
    margin-top: 6px;

    display: grid;
    gap: 4px;
}

.evento-mini {
    min-width: 0;

    padding: 4px 5px;

    display: flex;
    gap: 4px;

    border-radius: 4px;

    font-size: 9px;
    line-height: 1.2;
}

.evento-mini b {
    flex: 0 0 auto;
}

.evento-mini span {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.evento-mini.tarefa {
    background: #eff6ff;
    color: #1d4ed8;
}

.evento-mini.licitacao {
    background: #fff8df;
    color: #8b6421;
}

.evento-mini.certidao {
    background: #fef2f2;
    color: #b91c1c;
}

.evento-mini.proposta {
    background: #f5f3ff;
    color: #6d28d9;
}

.evento-mini.concluido {
    background: #ecfdf3;
    color: #166534;
}

.mais-eventos {
    color: #7d8590;

    font-size: 9px;
    font-weight: 700;
}

.agenda-legenda {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 10px;
}

.agenda-legenda span {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    color: #77808b;

    font-size: 10px;
}

.agenda-legenda i {
    width: 8px;
    height: 8px;

    display: inline-block;

    border-radius: 50%;
}

.agenda-legenda .tarefa {
    background: #2563eb;
}

.agenda-legenda .licitacao {
    background: #b88732;
}

.agenda-legenda .certidao {
    background: #dc2626;
}

.agenda-legenda .proposta {
    background: #7c3aed;
}

.agenda-legenda .concluido {
    background: #16a34a;
}


/* DETALHE DO DIA */

.agenda-dia-detalhe {
    min-height: 450px;

    padding: 16px;

    border: 1px solid #e3e6e9;
    border-radius: 8px;

    background: #fbfbfb;
}

.agenda-dia-titulo {
    padding-bottom: 12px;

    border-bottom: 1px solid #e4e7ea;
}

.agenda-dia-titulo > span {
    color: #a97926;

    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.agenda-dia-titulo h3 {
    margin: 3px 0 11px;

    color: #20252b;
    font-size: 19px;
}

.btn-nova-tarefa-dia {
    width: 100%;
    min-height: 36px;

    padding: 8px 10px;

    font-size: 12px;
}

.eventos-dia-lista {
    display: grid;
    gap: 9px;

    margin-top: 13px;
}

.evento-dia-card {
    padding: 11px 12px;

    border-left: 3px solid #2563eb;
    border-radius: 6px;

    background: #ffffff;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.05);
}

.evento-dia-card.licitacao {
    border-left-color: #b88732;
}

.evento-dia-card.certidao {
    border-left-color: #dc2626;
}

.evento-dia-card.proposta {
    border-left-color: #7c3aed;
}

.evento-dia-card.concluido {
    border-left-color: #16a34a;
    opacity: 0.72;
}

.evento-dia-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.evento-tipo {
    color: #8b949e;

    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.evento-dia-cabecalho strong {
    color: #30363d;
    font-size: 11px;
}

.evento-dia-card h4 {
    margin: 5px 0 2px;

    color: #30363d;
    font-size: 13px;
}

.evento-dia-card p,
.evento-dia-card small {
    margin: 0;

    color: #7d8590;

    font-size: 10px;
    line-height: 1.4;
}

.evento-tarefa-acoes {
    display: flex;
    gap: 6px;

    margin-top: 9px;
}

.evento-tarefa-acoes form {
    margin: 0;
}

.btn-concluir-tarefa,
.evento-tarefa-acoes .btn-editar-tarefa {
    min-height: 31px;

    padding: 6px 9px;

    border-radius: 5px;

    font-size: 10px;
}

.btn-concluir-tarefa {
    border: 1px solid #b8dfc4;

    background: #ecfdf3;
    color: #166534;
}

.evento-tarefa-acoes .btn-editar-tarefa {
    border: 1px solid #d6d9dd;

    background: #ffffff;
    color: #414852;
}

.agenda-dia-vazio {
    margin-top: 25px;

    padding: 20px;

    border: 1px dashed #d7dbe0;
    border-radius: 7px;

    color: #8b949e;
    text-align: center;
}

.agenda-dia-vazio strong {
    display: block;

    color: #5e6670;
}

.agenda-dia-vazio p {
    margin: 5px 0 0;

    font-size: 11px;
}


/* TAREFAS ABERTAS */

.lista-tarefas-abertas {
    display: grid;
    gap: 8px;
}

.tarefa-aberta-card {
    padding: 11px 13px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;

    align-items: center;
    gap: 12px;

    border: 1px solid #e5e7ea;
    border-radius: 7px;

    background: #ffffff;
}

.tarefa-aberta-card form {
    margin: 0;
}

.check-toggle {
    width: 27px;
    height: 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 2px solid #c8cdd3;
    border-radius: 50%;

    background: #ffffff;
    color: #ffffff;

    font-size: 13px;
    font-weight: 900;
}

.check-toggle:hover {
    border-color: #16a34a;
    background: #ecfdf3;
    color: #166534;
}

.tarefa-aberta-conteudo {
    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.tarefa-aberta-conteudo strong {
    display: block;

    color: #30363d;
    font-size: 13px;
}

.tarefa-aberta-conteudo small {
    display: block;

    margin-top: 2px;

    color: #8b949e;
    font-size: 10px;
}

.tarefa-aberta-meta {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #6b7280;
    font-size: 10px;
}

.prioridade-tarefa {
    display: inline-flex;
    align-items: center;

    padding: 3px 7px;

    border-radius: 20px;

    font-size: 9px;
    font-weight: 800;
}

.prioridade-tarefa.baixa {
    background: #f3f4f6;
    color: #4b5563;
}

.prioridade-tarefa.normal {
    background: #eff6ff;
    color: #1d4ed8;
}

.prioridade-tarefa.alta {
    background: #fff8df;
    color: #92400e;
}

.prioridade-tarefa.urgente {
    background: #fee2e2;
    color: #991b1b;
}


/* CHECKLIST NA LICITAÇÃO */

.acao-checklist {
    background: #2563eb;
    border-color: #2563eb;
}

.acao-checklist:hover {
    background: #1d4ed8;
}

.checklist-resumo-modal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 12px;

    padding: 12px 14px;

    border: 1px solid #e3e6e9;
    border-radius: 7px;

    background: #fafafa;
}

.checklist-resumo-modal > div:not(.checklist-progresso) {
    min-width: 75px;
}

.checklist-resumo-modal strong {
    display: block;

    color: #30363d;
    font-size: 17px;
}

.checklist-resumo-modal span {
    color: #8b949e;
    font-size: 9px;
    text-transform: uppercase;
}

.checklist-progresso {
    min-width: 180px;
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 8px;
}

.checklist-progresso > div {
    flex: 1;
    height: 7px;

    overflow: hidden;

    border-radius: 20px;

    background: #e5e7eb;
}

.checklist-progresso > div span {
    height: 100%;

    display: block;

    border-radius: inherit;

    background: #16a34a;
}

.checklist-progresso small {
    min-width: 32px;

    color: #166534;
    font-size: 10px;
    font-weight: 800;
}

.lista-checklist {
    display: grid;
    gap: 7px;

    margin-top: 14px;
}

.item-checklist {
    padding: 10px 11px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;

    align-items: center;
    gap: 10px;

    border: 1px solid #e5e7ea;
    border-radius: 6px;

    background: #ffffff;
}

.item-checklist > form {
    margin: 0;
}

.item-checklist.concluido {
    background: #f7fbf8;
    opacity: 0.76;
}

.item-checklist.concluido .check-toggle {
    border-color: #16a34a;
    background: #16a34a;
}

.item-checklist.concluido .check-conteudo > strong {
    text-decoration: line-through;
}

.check-conteudo > strong {
    color: #30363d;
    font-size: 12px;
}

.check-conteudo > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 4px;

    color: #7d8590;
    font-size: 10px;
}

.btn-excluir-check {
    width: 26px;
    height: 26px;

    border: 0;
    border-radius: 50%;

    background: transparent;
    color: #b91c1c;

    font-size: 17px;
}

.btn-excluir-check:hover {
    background: #fee2e2;
}

.form-grid-checklist {
    grid-template-columns:
        minmax(220px, 2fr)
        minmax(160px, 1fr)
        145px
        115px
        130px;
}

.form-checklist-adicionar .modal-acoes {
    padding-bottom: 0;
}


/* RESPONSIVO */

@media (max-width: 1200px) {

    .agenda-barra {
        align-items: stretch;
        flex-direction: column;
    }

    .agenda-filtros {
        width: 100%;
    }

    .agenda-layout {
        grid-template-columns: 1fr;
    }

    .agenda-dia-detalhe {
        min-height: 0;
    }

    .form-grid-checklist {
        grid-template-columns: 1fr 1fr;
    }

    .campo-check-titulo {
        grid-column: span 2;
    }

}


@media (max-width: 800px) {

    .calendario-dia {
        min-height: 85px;
        padding: 5px;
    }

    .evento-mini {
        display: none;
    }

    .calendario-dia-numero small {
        display: inline-flex;
    }

    .agenda-filtros {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .agenda-filtros button {
        grid-column: span 2;
    }

    .tarefa-aberta-conteudo {
        align-items: flex-start;
        flex-direction: column;
    }

    .tarefa-aberta-meta {
        flex-wrap: wrap;
    }

}


@media (max-width: 650px) {

    .agenda-filtros {
        grid-template-columns: 1fr;
    }

    .agenda-filtros button {
        grid-column: auto;
    }

    .calendario-cabecalho div {
        padding: 7px 2px;
        font-size: 9px;
    }

    .calendario-dia {
        min-height: 58px;
    }

    .calendario-dia-numero > span {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }

    .calendario-dia-numero small {
        display: none;
    }

    .tarefa-aberta-card {
        grid-template-columns: auto 1fr;
    }

    .tarefa-aberta-card > .acao {
        grid-column: 2;
        width: fit-content;
    }

    .form-grid-checklist {
        grid-template-columns: 1fr;
    }

    .campo-check-titulo {
        grid-column: auto;
    }

    .mini-calendario-resumo {
        grid-template-columns: 1fr 1fr;
    }

    .mini-calendario-resumo > a {
        grid-column: span 2;
    }

}

/* =========================================
   V9 - MOTOR DE CAPTAÇÃO DAMC
========================================= */

.captacao-resumo {
    border-top: 3px solid #b88732;
}

.btn-abrir-captacao {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 10px 15px;

    border-radius: 6px;

    background: #bd872d;
    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
    text-decoration: none;

    box-shadow:
        0 3px 8px rgba(0, 0, 0, 0.12);
}

.captacao-resumo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 12px;
}

.captacao-resumo-grid > div {
    padding: 14px 15px;

    border: 1px solid #e5e7ea;
    border-radius: 7px;

    background: #fafafa;
}

.captacao-resumo-grid small {
    display: block;

    color: #8b949e;

    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.captacao-resumo-grid strong {
    display: block;

    margin-top: 3px;

    color: #242a31;
    font-size: 22px;
}

.captacao-resumo-grid span {
    display: block;

    margin-top: 2px;

    color: #7d8590;
    font-size: 10px;
}

.captacao-sync-mini.erro {
    border-color: #fecaca;
    background: #fff7f7;
}

.captacao-sync-mini.erro strong {
    font-size: 14px;
}

.captacao-sync-mini.ok {
    border-color: #bbf7d0;
    background: #f6fff8;
}

.captacao-sync-mini.parcial {
    border-color: #fde68a;
    background: #fffdf3;
}


/* PÁGINA CAPTAÇÃO */

.cabecalho-captacao {
    border-top: 3px solid #b88732;
}

.acoes-captacao-topo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.acoes-captacao-topo form {
    margin: 0;
}

.btn-sync-pncp,
.btn-indexar-itens {
    white-space: nowrap;
}

.btn-indexar-itens:disabled {
    cursor: not-allowed;
    opacity: 0.48;
}

.resumo-captacao .card-link {
    color: inherit;
    text-decoration: none;

    transition:
        transform 0.15s ease,
        border-color 0.15s ease;
}

.resumo-captacao .card-link:hover,
.resumo-captacao .card-link.selecionado {
    border-left-color: #7c5a20;

    transform: translateY(-1px);
}

.resumo-captacao .card-link.selecionado {
    box-shadow:
        0 0 0 2px
        rgba(184, 135, 50, 0.12);
}

.painel-status-captacao {
    padding: 17px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-top: 3px solid #d8dce0;
}

.status-sync-captacao {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.status-sync-icone {
    width: 11px;
    height: 11px;

    flex: 0 0 auto;

    margin-top: 5px;

    border-radius: 50%;

    background: #9ca3af;
}

.status-sync-icone.ok {
    background: #16a34a;
}

.status-sync-icone.parcial {
    background: #d97706;
}

.status-sync-icone.erro {
    background: #dc2626;
}

.status-sync-icone.sincronizando {
    background: #2563eb;
}

.status-sync-captacao span {
    display: block;

    color: #8b949e;

    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.status-sync-captacao strong {
    display: block;

    margin-top: 2px;

    color: #30363d;
    font-size: 14px;
}

.status-sync-captacao small {
    display: block;

    margin-top: 2px;

    color: #7d8590;
    font-size: 10px;
}

.status-sync-captacao p {
    max-width: 680px;

    margin: 5px 0 0;

    color: #69717c;

    font-size: 10px;
    line-height: 1.4;
}

.indexacao-itens-status {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.indexacao-itens-status > div {
    min-width: 115px;

    padding: 8px 10px;

    border-radius: 6px;
    border: 1px solid #e5e7ea;

    background: #fafafa;
}

.indexacao-itens-status span {
    display: block;

    color: #8b949e;

    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.indexacao-itens-status strong {
    display: block;

    margin-top: 2px;

    color: #30363d;
    font-size: 17px;
}

.painel-pesquisa-captacao {
    border-top: 3px solid #b88732;
}

.filtros-captacao-local {
    display: grid;
    grid-template-columns:
        minmax(250px, 2fr)
        minmax(125px, 0.8fr)
        minmax(175px, 1fr)
        85px
        minmax(115px, 0.8fr)
        minmax(115px, 0.8fr)
        auto;

    align-items: end;
    gap: 10px;

    margin-bottom: 17px;
}

.filtros-captacao-local .buscar {
    min-height: 42px;
    white-space: nowrap;
}

.abas-captacao {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    padding: 8px;

    border-radius: 7px;

    background: #f6f7f8;
}

.abas-captacao a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 7px 10px;

    border-radius: 5px;

    color: #5c6570;

    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}

.abas-captacao a:hover,
.abas-captacao a.ativo {
    background: #ffffff;
    color: #72551f;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.07);
}

.abas-captacao a span {
    min-width: 19px;

    padding: 2px 5px;

    border-radius: 12px;

    background: #eceef0;

    color: #5d6671;

    font-size: 9px;
    text-align: center;
}

.captacao-resultado-info {
    margin: 13px 0;

    color: #7d8590;
    font-size: 11px;
}

.captacao-resultado-info strong {
    color: #30363d;
}

.lista-oportunidades-local {
    display: grid;
    gap: 11px;
}

.oportunidade-local-card {
    padding: 17px;

    border: 1px solid #e3e6e9;
    border-radius: 8px;

    background: #ffffff;
}

.oportunidade-local-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 18px;
}

.oportunidade-etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.oportunidade-modalidade,
.oportunidade-uf,
.itens-indexados-chip,
.itens-pendentes-chip {
    display: inline-flex;
    align-items: center;

    padding: 3px 7px;

    border-radius: 15px;

    font-size: 9px;
    font-weight: 800;
}

.oportunidade-modalidade {
    background: #f3f0e8;
    color: #72551f;
}

.oportunidade-uf {
    background: #eff6ff;
    color: #1d4ed8;
}

.itens-indexados-chip {
    background: #ecfdf3;
    color: #166534;
}

.itens-pendentes-chip {
    background: #f3f4f6;
    color: #6b7280;
}

.oportunidade-local-card h3 {
    max-width: 1050px;

    margin: 8px 0 0;

    color: #252b32;

    font-size: 15px;
    line-height: 1.4;
}

.oportunidade-complemento {
    max-width: 1050px;

    margin: 5px 0 0;

    color: #727b86;

    font-size: 10px;
    line-height: 1.45;
}

.oportunidade-valor-prazo {
    min-width: 140px;

    text-align: right;
}

.oportunidade-valor-prazo strong {
    display: block;

    color: #252b32;
    font-size: 17px;
}

.oportunidade-valor-prazo span {
    display: block;

    margin-top: 4px;

    color: #69717c;

    font-size: 10px;
    font-weight: 700;
}

.oportunidade-valor-prazo .prazo-urgente {
    color: #b91c1c;
}

.oportunidade-local-dados {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr 0.8fr;

    gap: 9px;

    margin-top: 14px;
}

.oportunidade-local-dados > div {
    padding: 8px 9px;

    border-radius: 5px;

    background: #f8f9fa;
}

.oportunidade-local-dados small {
    display: block;

    color: #949ba4;

    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.oportunidade-local-dados span {
    display: block;

    margin-top: 2px;

    color: #4c555f;

    font-size: 10px;
}

.itens-encontrados {
    margin-top: 13px;
    padding: 10px 12px;

    border-left: 3px solid #2563eb;
    border-radius: 5px;

    background: #f8fbff;
}

.itens-encontrados > span {
    display: block;

    margin-bottom: 7px;

    color: #1d4ed8;

    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.itens-encontrados > div {
    padding: 6px 0;

    border-top: 1px solid #e7eef8;
}

.itens-encontrados > div:first-of-type {
    border-top: 0;
}

.itens-encontrados strong {
    color: #3d4650;
    font-size: 10px;
}

.itens-encontrados p {
    margin: 2px 0;

    color: #626c77;

    font-size: 10px;
    line-height: 1.4;
}

.itens-encontrados small {
    color: #89919b;
    font-size: 9px;
}

.motivo-descarte {
    margin-top: 12px;
    padding: 8px 10px;

    border-radius: 5px;

    background: #fff7f7;
    color: #9f3030;

    font-size: 10px;
}

.oportunidade-local-acoes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 13px;
    padding-top: 11px;

    border-top: 1px solid #eceef0;
}

.oportunidade-local-acoes form {
    margin: 0;
}

.btn-descartar-oportunidade {
    min-height: 36px;

    padding: 8px 11px;

    border: 1px solid #efb1b1;
    border-radius: 5px;

    background: #ffffff;
    color: #a91d1d;

    font-size: 11px;
    font-weight: 700;
}

.btn-descartar-oportunidade:hover {
    background: #fff5f5;
}

.participando-chip {
    display: inline-flex;
    align-items: center;

    padding: 7px 10px;

    border-radius: 5px;

    background: #eaf2ff;
    color: #1d4ed8;

    font-size: 10px;
    font-weight: 800;
}

.btn-perigo-solido {
    background: #b91c1c !important;
    color: #ffffff !important;
}

.area-vazia-captacao {
    margin-top: 12px;
}


/* RESPONSIVIDADE V9 */

@media (max-width: 1250px) {

    .filtros-captacao-local {
        grid-template-columns: 2fr 1fr 1fr 90px 1fr 1fr;
    }

    .filtros-captacao-local .buscar {
        grid-column: span 6;
    }

    .oportunidade-local-dados {
        grid-template-columns: 1fr 1fr;
    }

}


@media (max-width: 900px) {

    .captacao-resumo-grid {
        grid-template-columns: 1fr 1fr;
    }

    .painel-status-captacao {
        align-items: flex-start;
        flex-direction: column;
    }

    .indexacao-itens-status {
        width: 100%;
    }

    .indexacao-itens-status > div {
        flex: 1;
    }

    .filtros-captacao-local {
        grid-template-columns: 1fr 1fr;
    }

    .filtros-captacao-local .buscar {
        grid-column: span 2;
    }

}


@media (max-width: 650px) {

    .acoes-captacao-topo {
        width: 100%;

        align-items: stretch;
        flex-direction: column;
    }

    .acoes-captacao-topo form,
    .acoes-captacao-topo button {
        width: 100%;
    }

    .captacao-resumo-grid {
        grid-template-columns: 1fr;
    }

    .indexacao-itens-status {
        flex-direction: column;
    }

    .filtros-captacao-local {
        grid-template-columns: 1fr;
    }

    .filtros-captacao-local .buscar {
        grid-column: auto;
    }

    .oportunidade-local-topo {
        flex-direction: column;
    }

    .oportunidade-valor-prazo {
        text-align: left;
    }

    .oportunidade-local-dados {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   V9.2 - INDEXAÇÃO AUTOMÁTICA
========================================= */

.btn-reprocessar-falhas {
    min-height: 42px;

    padding: 10px 13px;

    border: 1px solid #efb1b1;
    border-radius: 6px;

    background: #fffafa;
    color: #a91d1d;

    font-size: 11px;
    font-weight: 800;
}

.btn-reprocessar-falhas:hover {
    background: #fff1f1;
}

.indexacao-itens-status > div.tem-falha {
    border-color: #fecaca;
    background: #fff7f7;
}

.indexacao-itens-status > div.tem-falha strong {
    color: #b91c1c;
}

.painel-progresso-indexacao {
    border-top: 3px solid #b88732;
}

.progresso-indexacao-topo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.progresso-etiqueta {
    color: #a97926;

    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.progresso-indexacao-topo h3 {
    margin: 3px 0 3px;

    color: #252b32;
    font-size: 16px;
}

.progresso-indexacao-topo p {
    margin: 0;

    color: #6f7883;

    font-size: 10px;
    line-height: 1.45;
}

.percentual-indexacao {
    min-width: 95px;

    text-align: right;
}

.percentual-indexacao strong {
    display: block;

    color: #252b32;
    font-size: 24px;
}

.percentual-indexacao span {
    display: block;

    color: #949ba4;

    font-size: 9px;
    text-transform: uppercase;
}

.barra-indexacao {
    height: 11px;

    margin-top: 15px;

    overflow: hidden;

    border-radius: 20px;

    background: #eceef0;
}

.barra-indexacao > span {
    width: 0;
    height: 100%;

    display: block;

    border-radius: inherit;

    background: linear-gradient(
        90deg,
        #b88732,
        #d7aa54
    );

    transition: width 0.45s ease;
}

.progresso-indexacao-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 8px;

    margin-top: 12px;
}

.progresso-indexacao-meta > div {
    padding: 9px 11px;

    border: 1px solid #e7e9ec;
    border-radius: 6px;

    background: #fafafa;
}

.progresso-indexacao-meta small {
    display: block;

    color: #9098a2;

    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.progresso-indexacao-meta strong {
    display: block;

    margin-top: 2px;

    color: #343b43;
    font-size: 14px;
}

.proxima-indexacao {
    margin-top: 11px;
    padding: 9px 11px;

    display: flex;
    align-items: center;
    gap: 8px;

    border-left: 3px solid #b88732;
    border-radius: 4px;

    background: #fffdf8;
}

.proxima-indexacao span {
    color: #a97926;

    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.proxima-indexacao strong {
    color: #4a5058;

    font-size: 10px;
}

.proxima-indexacao small {
    margin-left: auto;

    color: #777f89;
    font-size: 9px;
}

.nota-indexacao {
    margin-top: 10px;

    color: #8a929c;

    font-size: 9px;
    line-height: 1.45;
}

@media (max-width: 900px) {

    .progresso-indexacao-meta {
        grid-template-columns: 1fr 1fr;
    }

    .proxima-indexacao {
        align-items: flex-start;
        flex-direction: column;
    }

    .proxima-indexacao small {
        margin-left: 0;
    }

}

@media (max-width: 600px) {

    .progresso-indexacao-topo {
        flex-direction: column;
    }

    .percentual-indexacao {
        text-align: left;
    }

    .progresso-indexacao-meta {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   V9.3 - PRODUTO / SERVIÇO / MISTA
========================================= */

.tipo-oportunidade-chip {
    display: inline-flex;
    align-items: center;

    padding: 3px 7px;

    border-radius: 15px;

    font-size: 9px;
    font-weight: 800;
}

.tipo-oportunidade-chip.produto {
    background: #eaf7ee;
    color: #166534;
}

.tipo-oportunidade-chip.servico {
    background: #eff6ff;
    color: #1d4ed8;
}

.tipo-oportunidade-chip.mista {
    background: #fff7df;
    color: #8a5d10;
}

.tipo-oportunidade-chip.nao_classificada {
    background: #f3f4f6;
    color: #6b7280;
}

.resumo-tipo-oportunidade {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 10px;
    padding: 7px 9px;

    border-radius: 5px;

    background: #fafafa;

    color: #78818c;
    font-size: 9px;
}

.resumo-tipo-oportunidade strong {
    color: #414852;
}

.item-tipo-ms {
    display: inline-flex;

    margin: 1px 0 3px;
    padding: 2px 5px;

    border-radius: 10px;

    background: #eef1f4;
    color: #606a75;

    font-size: 8px;
    font-weight: 800;
}

.aviso-filtro-classificacao {
    margin-left: 5px;

    color: #9a6b1c;
}

.indexacao-itens-status {
    flex-wrap: wrap;
}

@media (max-width: 1250px) {

    .filtros-captacao-local {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .filtros-captacao-local .buscar {
        grid-column: span 3;
    }

}

@media (max-width: 900px) {

    .filtros-captacao-local {
        grid-template-columns: 1fr 1fr;
    }

    .filtros-captacao-local .buscar {
        grid-column: span 2;
    }

}

@media (max-width: 650px) {

    .filtros-captacao-local {
        grid-template-columns: 1fr;
    }

    .filtros-captacao-local .buscar {
        grid-column: auto;
    }

}

/* =========================================
   V10 - AUTENTICAÇÃO / USUÁRIOS
========================================= */

/* TOPO / USUÁRIO */

.topo-conteudo {
    max-width: 1780px;
    gap: 20px;
}

.logo {
    flex: 0 0 180px;
    width: 180px;
}

.logo {
    text-decoration: none;
}

.titulo-portal {
    flex: 0 0 auto;
    padding-left: 22px;
}

.titulo-portal h1 {
    font-size: 26px;
}

.titulo-portal p {
    font-size: 12px;
}

.menu-principal {
    padding-left: 10px;
    gap: 2px;
}

.menu-principal a {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 11px;
}

.usuario-topo {
    position: relative;

    flex: 0 0 auto;

    margin-left: 6px;
}

.usuario-topo-botao {
    min-height: 42px;

    padding: 5px 8px 5px 5px;

    display: flex;
    align-items: center;
    gap: 7px;

    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 7px;

    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.usuario-topo-botao:hover {
    background: rgba(255, 255, 255, 0.08);
}

.usuario-avatar {
    width: 31px;
    height: 31px;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #d0a34c,
            #8c6120
        );

    color: #ffffff;

    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.usuario-topo-nome {
    max-width: 95px;

    overflow: hidden;

    font-size: 10px;
    font-weight: 700;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.usuario-topo-seta {
    color: #b7bbc0;
    font-size: 10px;
}

.usuario-menu {
    position: absolute;
    z-index: 200;

    top: calc(100% + 8px);
    right: 0;

    width: 210px;

    padding: 7px;

    display: none;

    border: 1px solid #303237;
    border-radius: 8px;

    background: #17181a;

    box-shadow:
        0 12px 28px
        rgba(0, 0, 0, 0.30);
}

.usuario-menu.aberto {
    display: block;
}

.usuario-menu-identidade {
    padding: 9px 10px 11px;

    border-bottom: 1px solid #2c2e32;
}

.usuario-menu-identidade strong {
    display: block;

    color: #ffffff;
    font-size: 12px;
}

.usuario-menu-identidade span {
    display: block;

    margin-top: 2px;

    color: #a6abb2;
    font-size: 9px;
}

.usuario-menu > a,
.usuario-menu form button {
    width: 100%;

    min-height: 35px;

    padding: 8px 10px;

    display: flex;
    align-items: center;

    border: 0;
    border-radius: 5px;

    background: transparent;
    color: #d5d7da;

    font-size: 10px;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
}

.usuario-menu > a:hover,
.usuario-menu form button:hover {
    background: #232528;
    color: #ffffff;
}

.usuario-menu form {
    margin: 0;
}


/* LOGIN */

.pagina-autenticacao {
    min-height: 100vh;

    overflow-x: hidden;

    background: #f3f4f6;
}

.autenticacao-layout {
    max-width: none;
    min-height: 100vh;

    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns:
        minmax(420px, 1.05fr)
        minmax(420px, 0.95fr);
}

.autenticacao-marca {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(184, 135, 50, 0.22),
            transparent 36%
        ),
        radial-gradient(
            circle at 90% 80%,
            rgba(184, 135, 50, 0.12),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #090909,
            #171717
        );
}

.autenticacao-marca::after {
    content: "";

    position: absolute;
    inset: 0;

    opacity: 0.17;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        );

    background-size: 44px 44px;
}

.autenticacao-marca-conteudo {
    position: relative;
    z-index: 1;

    width: min(640px, 78%);

    margin: auto;
}

.autenticacao-marca img {
    width: 220px;
    height: 78px;

    object-fit: contain;
    object-position: left center;
}

.autenticacao-etiqueta {
    width: fit-content;

    margin-top: 42px;
    padding: 5px 9px;

    display: block;

    border: 1px solid rgba(211, 171, 92, 0.25);
    border-radius: 20px;

    background: rgba(184, 135, 50, 0.10);
    color: #d3ab5c;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.autenticacao-marca h1 {
    max-width: 610px;

    margin: 15px 0 14px;

    color: #ffffff;

    font-size: clamp(34px, 4vw, 58px);
    font-weight: 650;
    line-height: 1.04;
    letter-spacing: -1.5px;
}

.autenticacao-marca p {
    max-width: 560px;

    margin: 0;

    color: #afb3b8;

    font-size: 15px;
    line-height: 1.65;
}

.autenticacao-recursos {
    margin-top: 34px;

    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.autenticacao-recursos span {
    padding: 6px 9px;

    border-radius: 5px;

    background: rgba(255, 255, 255, 0.055);
    color: #c3c7cc;

    font-size: 9px;
    font-weight: 700;
}

.autenticacao-seguranca {
    max-width: 470px;

    margin-top: 32px;
    padding: 13px 15px;

    border-left: 3px solid #b88732;

    background: rgba(255, 255, 255, 0.045);
}

.autenticacao-seguranca strong,
.autenticacao-seguranca span {
    display: block;
}

.autenticacao-seguranca strong {
    color: #d4aa59;
    font-size: 11px;
}

.autenticacao-seguranca span {
    margin-top: 3px;

    color: #9fa4aa;
    font-size: 10px;
    line-height: 1.45;
}

.autenticacao-form-area {
    min-height: 100vh;

    padding: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            145deg,
            #f6f7f8,
            #ffffff
        );
}

.autenticacao-card {
    width: min(430px, 100%);

    padding: 34px;

    border: 1px solid #e1e4e8;
    border-radius: 12px;

    background: #ffffff;

    box-shadow:
        0 15px 45px
        rgba(24, 30, 36, 0.09);
}

.autenticacao-card-largo {
    width: min(610px, 100%);
}

.autenticacao-card-topo > span {
    color: #a97926;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.autenticacao-card-topo h2 {
    margin: 5px 0 4px;

    color: #171717;

    font-size: 28px;
}

.autenticacao-card-topo p {
    margin: 0;

    color: #858d97;

    font-size: 11px;
    line-height: 1.5;
}

.mensagens-login {
    margin: 18px 0 0;
}

.form-autenticacao {
    margin-top: 22px;

    display: grid;
    gap: 15px;
}

.form-grid-login {
    grid-template-columns: 1fr 1fr;
}

.campo-senha {
    position: relative;
}

.campo-senha input {
    padding-right: 72px;
}

.btn-mostrar-senha {
    position: absolute;

    top: 50%;
    right: 6px;

    min-height: 30px;

    padding: 5px 7px;

    transform: translateY(-50%);

    border: 0;
    border-radius: 4px;

    background: #f1f2f4;
    color: #6c747e;

    font-size: 8px;
    font-weight: 800;
}

.btn-login {
    width: 100%;
    min-height: 46px;

    margin-top: 2px;

    border-radius: 6px;

    background:
        linear-gradient(
            135deg,
            #c28d30,
            #a87222
        );

    color: #ffffff;

    font-size: 12px;
    font-weight: 800;
}

.autenticacao-rodape {
    margin-top: 24px;

    color: #a0a6ad;

    font-size: 9px;
    text-align: center;
}

.autenticacao-rodape span {
    margin: 0 4px;
}

.regra-senha {
    margin: 0;

    color: #8b949e;

    font-size: 9px;
    line-height: 1.45;
}


/* USUÁRIOS */

.resumo-usuarios .card {
    min-height: 120px;
}

.tabela-usuarios code {
    padding: 3px 5px;

    border-radius: 4px;

    background: #f3f4f6;
    color: #4b5563;

    font-family: Consolas, monospace;
    font-size: 10px;
}

.usuario-tabela-identidade {
    min-width: 190px;

    display: flex;
    align-items: center;
    gap: 9px;
}

.usuario-tabela-identidade strong,
.usuario-tabela-identidade small {
    display: block;
}

.usuario-tabela-identidade strong {
    color: #343b43;
}

.usuario-tabela-identidade small {
    margin-top: 2px;

    color: #8d949d;
    font-size: 9px;
}

.usuario-inativo {
    opacity: 0.56;
}

.chip-perfil,
.chip-status-usuario,
.chip-primeiro-acesso {
    display: inline-flex;
    align-items: center;

    padding: 3px 7px;

    border-radius: 14px;

    font-size: 8px;
    font-weight: 800;
}

.chip-perfil.admin {
    background: #fff5d9;
    color: #875b10;
}

.chip-perfil.usuario {
    background: #eef2f7;
    color: #53606e;
}

.chip-status-usuario.ativo {
    background: #ecfdf3;
    color: #166534;
}

.chip-status-usuario.inativo {
    background: #f3f4f6;
    color: #6b7280;
}

.chip-primeiro-acesso {
    margin-left: 5px;

    background: #eff6ff;
    color: #1d4ed8;
}

.acao-resetar-senha {
    border-color: #dfcda7;
    color: #875b10;
}

.form-grid-usuario {
    grid-template-columns: 1fr 1fr;
}

#campoSenhaInicialUsuario small {
    margin-top: 4px;

    color: #8b949e;
    font-size: 9px;
}


/* ALTERAR SENHA */

.painel-alterar-senha {
    max-width: 650px;

    margin: auto;
}

.senha-identidade {
    display: flex;
    align-items: center;
    gap: 12px;

    padding-bottom: 16px;

    border-bottom: 1px solid #eceef0;
}

.usuario-avatar-grande {
    width: 48px;
    height: 48px;

    font-size: 13px;
}

.senha-identidade strong,
.senha-identidade span {
    display: block;
}

.senha-identidade strong {
    color: #30363d;
    font-size: 15px;
}

.senha-identidade span {
    margin-top: 3px;

    color: #818a94;
    font-size: 10px;
}

.aviso-primeiro-acesso {
    margin-top: 16px;
    padding: 11px 13px;

    border-left: 3px solid #b88732;
    border-radius: 4px;

    background: #fffaf0;
}

.aviso-primeiro-acesso strong,
.aviso-primeiro-acesso span {
    display: block;
}

.aviso-primeiro-acesso strong {
    color: #815711;
    font-size: 10px;
}

.aviso-primeiro-acesso span {
    margin-top: 3px;

    color: #7d6d51;
    font-size: 9px;
}

.form-alterar-senha {
    margin-top: 18px;

    display: grid;
    gap: 13px;
}

.form-alterar-senha > button {
    width: fit-content;

    margin-top: 3px;
}


/* RESPONSIVIDADE V10 */

@media (max-width: 1420px) {

    .titulo-portal {
        display: none;
    }

    .menu-principal {
        margin-left: auto;
    }

}

@media (max-width: 1100px) {

    .topo-conteudo {
        flex-wrap: wrap;
    }

    .menu-principal {
        order: 3;

        width: 100%;

        margin-left: 0;
        padding-left: 0;

        justify-content: center;
        flex-wrap: wrap;
    }

    .usuario-topo {
        margin-left: auto;
    }

    .autenticacao-layout {
        grid-template-columns: 1fr;
    }

    .autenticacao-marca {
        min-height: auto;
        padding: 50px 25px;
    }

    .autenticacao-marca-conteudo {
        width: min(700px, 92%);
    }

    .autenticacao-form-area {
        min-height: auto;
        padding: 50px 25px;
    }

}

@media (max-width: 650px) {

    .topo-conteudo {
        padding: 12px 16px;
    }

    .logo {
        flex-basis: 125px;
        width: 125px;
        height: 55px;
    }

    .usuario-topo-nome {
        display: none;
    }

    .autenticacao-marca {
        display: none;
    }

    .autenticacao-form-area {
        min-height: 100vh;
        padding: 22px;
    }

    .autenticacao-card {
        padding: 24px;
    }

    .form-grid-login,
    .form-grid-usuario {
        grid-template-columns: 1fr;
    }

}

/* =========================================
   V10.1 - HISTÓRICO / AUDITORIA
========================================= */

.filtros-historico {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        minmax(240px, 1fr)
        auto;

    align-items: end;
    gap: 10px;

    margin-bottom: 18px;
}

.filtros-historico button {
    min-height: 42px;
}

.timeline-auditoria {
    position: relative;

    display: grid;
    gap: 8px;
}

.evento-auditoria {
    padding: 11px 13px;

    display: grid;
    grid-template-columns: auto 1fr;

    gap: 10px;

    border: 1px solid #e7e9ec;
    border-radius: 7px;

    background: #ffffff;
}

.evento-auditoria-corpo {
    min-width: 0;
}

.evento-auditoria-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}

.evento-auditoria-topo strong {
    color: #30363d;
    font-size: 11px;
}

.evento-auditoria-topo span {
    color: #9198a1;
    font-size: 9px;
}

.evento-auditoria h3 {
    margin: 3px 0 2px;

    color: #4b535d;
    font-size: 11px;
}

.evento-auditoria p {
    margin: 0;

    color: #7a838d;
    font-size: 9px;
    line-height: 1.45;
}

.evento-auditoria-meta {
    margin-top: 5px;

    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.evento-auditoria-meta span {
    padding: 2px 5px;

    border-radius: 10px;

    background: #f3f4f6;
    color: #7c858f;

    font-size: 8px;
}

@media (max-width: 700px) {

    .filtros-historico {
        grid-template-columns: 1fr;
    }

    .evento-auditoria-topo {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

}
