* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #202938;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================
   SIDEBAR
   ========================= */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    background: #182433;
    color: #fff;
    padding: 25px 18px;
}

.logo {
    padding: 8px 12px 25px;
    text-align: center;
    overflow: hidden;
}

.logo-imagem {
    display: block;
    width: 100%;
    max-width: 230px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

.logo-subtitulo {
    margin-top: 8px;
    font-size: 12px;
    color: #9ca9b8;
    text-align: center;
}

.menu-titulo {
    margin: 22px 12px 8px;
    font-size: 11px;
    text-transform: uppercase;
    color: #718096;
    font-weight: bold;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 12px 14px;
    margin-bottom: 4px;

    border-radius: 8px;
    color: #cbd5df;

    transition: .2s;
}

.menu-item:hover {
    background: #243447;
    color: #fff;
}

.menu-item.ativo {
    background: #2f80ed;
    color: #fff;
}

.menu-icone {
    width: 22px;
    text-align: center;
}


/* =========================
   CONTEÚDO
   ========================= */

.conteudo {
    margin-left: 250px;
    min-height: 100vh;
}


/* =========================
   HEADER
   ========================= */

.header {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid #e5e9ef;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 35px;
}

.header-titulo {
    font-size: 18px;
    font-weight: bold;
}

.usuario {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usuario-avatar {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #e8f1ff;
    color: #2f80ed;

    font-weight: bold;
}


/* =========================
   DASHBOARD
   ========================= */

.dashboard {
    padding: 38px;
    max-width: 1400px;
    margin: auto;
}

.boas-vindas h1 {
    margin: 0;
    font-size: 30px;
}

.boas-vindas p {
    margin-top: 8px;
    color: #718096;
}


/* =========================
   PESQUISA
   ========================= */

.pesquisa-principal {
    margin-top: 30px;
    background: #fff;
    padding: 25px;

    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.pesquisa-principal h2 {
    margin-top: 0;
    font-size: 18px;
}

.pesquisa-box {
    display: flex;
    gap: 10px;
}

.pesquisa-box input {
    flex: 1;

    padding: 15px 18px;

    border: 1px solid #d8dee8;
    border-radius: 8px;

    font-size: 15px;
    outline: none;
}

.pesquisa-box input:focus {
    border-color: #2f80ed;
}

.botao {
    border: 0;
    border-radius: 8px;

    padding: 0 22px;

    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

.botao-primario {
    background: #2f80ed;
    color: #fff;
}

.botao-primario:hover {
    background: #236fd1;
}


/* =========================
   CARDS
   ========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;

    margin-top: 25px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 22px;

    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.card-label {
    color: #718096;
    font-size: 13px;
}

.card-numero {
    font-size: 30px;
    font-weight: bold;
    margin-top: 8px;
}

.card-detalhe {
    margin-top: 7px;
    font-size: 12px;
    color: #9aa5b1;
}


/* =========================
   AÇÕES
   ========================= */

.acoes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;

    margin-top: 25px;
}

.acao-card {
    background: #fff;
    padding: 22px;
    border-radius: 12px;

    display: flex;
    align-items: center;
    gap: 18px;

    box-shadow: 0 2px 10px rgba(0,0,0,.04);

    cursor: pointer;
    transition: .2s;
}

.acao-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

.acao-icone {
    width: 48px;
    height: 48px;

    border-radius: 10px;

    background: #e8f1ff;
    color: #2f80ed;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

.acao-card h3 {
    margin: 0 0 5px;
}

.acao-card p {
    margin: 0;
    color: #718096;
    font-size: 13px;
}


/* =========================
   SOLUÇÕES RECENTES
   ========================= */

.painel {
    margin-top: 25px;
    background: #fff;

    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.painel-cabecalho {
    padding: 20px 22px;
    border-bottom: 1px solid #edf0f4;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.painel-cabecalho h2 {
    margin: 0;
    font-size: 17px;
}

.painel-conteudo {
    padding: 25px;
}

.vazio {
    text-align: center;
    color: #8a96a3;
    padding: 25px;
}


/* =========================
   RESPONSIVO
   ========================= */

@media (max-width: 1000px) {

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 750px) {

    .sidebar {
        display: none;
    }

    .conteudo {
        margin-left: 0;
    }

    .cards,
    .acoes {
        grid-template-columns: 1fr;
    }

}

/* =========================
   PÁGINAS / FORMULÁRIOS
   ========================= */

   .pagina-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.pagina-cabecalho h1 {
    margin: 0;
    font-size: 28px;
}

.pagina-cabecalho p {
    margin: 7px 0 0;
    color: #718096;
}

.formulario-solucao {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;

    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.form-card-titulo {
    font-size: 16px;
    font-weight: bold;

    margin: -25px -25px 24px;
    padding: 18px 25px;

    border-bottom: 1px solid #edf0f4;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.campo {
    margin-bottom: 20px;
}

.form-card .campo:last-child {
    margin-bottom: 0;
}

.campo label {
    display: block;

    margin-bottom: 7px;

    font-size: 13px;
    font-weight: bold;

    color: #3d4857;
}

.campo label span {
    color: #d64545;
}

.campo input[type="text"],
.campo select,
.campo textarea {
    width: 100%;

    border: 1px solid #d8dee8;
    border-radius: 8px;

    padding: 12px 14px;

    font-family: inherit;
    font-size: 14px;

    color: #202938;
    background: #fff;

    outline: none;
}

.campo textarea {
    resize: vertical;
    line-height: 1.5;
}

.campo input[type="text"]:focus,
.campo select:focus,
.campo textarea:focus {
    border-color: #2f80ed;

    box-shadow:
        0 0 0 3px rgba(47, 128, 237, .08);
}

.campo small {
    display: block;

    margin-top: 7px;

    color: #8a96a3;
    font-size: 12px;
}

.campo-checkbox {
    padding-top: 1px;
}

.checkbox-linha {
    display: flex !important;
    align-items: center;
    gap: 9px;

    min-height: 43px;

    font-weight: normal !important;
}

.checkbox-linha input {
    width: 17px;
    height: 17px;
}

.form-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 12px;

    padding-bottom: 35px;
}

.botao-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 43px;

    padding: 0 20px;

    border: 1px solid #d8dee8;
    border-radius: 8px;

    background: #fff;

    color: #4a5568;
    font-size: 14px;
    font-weight: bold;

    cursor: pointer;
}

.botao-secundario:hover {
    background: #f7f9fb;
}

.botao-salvar {
    min-height: 43px;
}

.alerta {
    padding: 15px 18px;
    margin-bottom: 20px;

    border-radius: 8px;

    font-size: 14px;
}

.alerta-erro {
    background: #fff1f1;
    border: 1px solid #ffd5d5;
    color: #b42318;
}

@media (max-width: 900px) {

    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr;
    }

    .pagina-cabecalho {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================
   LISTAGEM DE SOLUÇÕES
   ========================= */

   .filtro-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}

.lista-solucoes-card {
    background: #fff;
    border-radius: 12px;
    margin-top: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

.lista-solucoes-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 20px 25px;

    border-bottom: 1px solid #edf0f4;
}

.lista-solucoes-cabecalho h2 {
    margin: 0 0 4px;
    font-size: 17px;
}

.lista-solucoes-cabecalho span {
    color: #8a96a3;
    font-size: 13px;
}

.solucoes-lista {
    display: flex;
    flex-direction: column;
}

.solucao-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 20px 25px;

    color: inherit;
    text-decoration: none;

    border-bottom: 1px solid #edf0f4;

    transition: background .15s ease;
}

.solucao-item:last-child {
    border-bottom: 0;
}

.solucao-item:hover {
    background: #f8fafc;
}

.solucao-item-principal {
    flex: 1;
    min-width: 0;
}

.solucao-item-topo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.solucao-item-topo h3 {
    margin: 0;
    font-size: 16px;
    color: #182333;
}

.solucao-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 7px;

    color: #778395;
    font-size: 13px;
}

.meta-separador {
    color: #bcc4ce;
}

.status-badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: bold;

    white-space: nowrap;
}

.status-rascunho {
    background: #f1f3f5;
    color: #657080;
}

.status-validacao {
    background: #fff5d9;
    color: #946200;
}

.status-validada {
    background: #e7f8ee;
    color: #247a46;
}

.solucao-item-lateral {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ia-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 8px;

    border-radius: 6px;

    background: #eaf2ff;
    color: #2f80ed;

    font-size: 11px;
    font-weight: bold;
}

.solucao-seta {
    color: #a0aab7;
    font-size: 27px;
}

.lista-vazia {
    padding: 60px 25px;
    text-align: center;
    color: #8591a1;
}

.lista-vazia strong {
    display: block;
    color: #667282;
}

.lista-vazia p {
    margin: 8px 0 0;
}


/* =========================================================
   IMPORTAR PROTOCOLO
   ========================================================= */

   .pesquisa-protocolo {
    display: flex;
    gap: 12px;
    align-items: center;
}

.pesquisa-protocolo input {
    flex: 1;
}

.pesquisa-protocolo .botao {
    white-space: nowrap;
}

.campo-visualizacao {
    margin-top: 6px;
    padding: 12px 14px;
    background: #f7f9fc;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    min-height: 20px;
}

.historico-protocolo {
    padding: 18px 0;
    border-bottom: 1px solid #e6ebf1;
}

.historico-protocolo:first-of-type {
    padding-top: 5px;
}

.historico-protocolo:last-child {
    border-bottom: 0;
}

.historico-protocolo-cabecalho {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.historico-protocolo-cabecalho span {
    font-size: 13px;
    color: #718096;
}

.historico-protocolo-bloco {
    margin-top: 12px;
}

.historico-protocolo-bloco label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.historico-protocolo-texto {
    padding: 14px;
    background: #f7f9fc;
    border-radius: 8px;
    line-height: 1.6;
    white-space: normal;
}

.historico-protocolo-anexo {
    margin-top: 12px;
    font-size: 13px;
    color: #5f6b7a;
}

@media (max-width: 700px) {

    .pesquisa-protocolo {
        flex-direction: column;
        align-items: stretch;
    }

}