/* ===== Carta de Serviços - estilos base ===== */
/* Ajuste as cores/fontes para casar com a identidade visual do site. */

.carta-servicos-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 16px 64px;
}

.carta-servicos-header p {
    color: #6b7280;
    margin-top: 0;
}

/* ----- Formulário de filtros ----- */
.carta-servicos-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
    background: #f7f8fa;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin: 24px 0 32px;
    justify-content: center;
}

.carta-servicos-filtros .campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.carta-servicos-filtros label {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.carta-servicos-filtros select,
.carta-servicos-filtros input[type="text"] {
    min-width: 220px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.campo-acoes {
    flex-direction: row !important;
    gap: 10px !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
    line-height: 1;
}

button.btn.btn-pesquisar:hover {
    color: #fff;
}

.btn-pesquisar {
    background: #16305c !important;
    color: #fff !important;
    font-size: 14px !important;
    padding: 8px 16px !important;
}

.btn-pesquisar:hover {
    background: #0f2246 !important;
}

.btn-limpar {
    font-size: 14px !important;
    color: #16305c !important;
    border-color: #16305c !important;
padding: 8px 16px !important;
}

.btn-limpar:hover {
    background: #eef1f7 !important;
}

/* ----- Lista / cards ----- */
.carta-servicos-resultados h2 {
    font-size: 20px;
    margin-bottom: 4px;
}

.carta-servicos-total {
    color: #6b7280;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 14px;
}

.carta-servicos-lista {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 60px;
}

.carta-servicos-lista.carta-servicos-loading {
    opacity: .5;
    pointer-events: none;
}

.carta-servicos-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 18px 20px;
}

.carta-servicos-icone {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #eaf0fb;
    color: #16305c;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carta-servicos-info {
    flex: 1 1 auto;
    min-width: 0;
}

.carta-servicos-info h3 {
    margin: 0 0 4px;
    font-size: 16px;
    color: #111827;
    text-align: left;
}

.carta-servicos-info h3 a {
    color: #16305c;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.carta-servicos-info .descricao {
    margin: 0 0 6px;
    color: #4b5563;
    font-size: 14px;
}

.carta-servicos-info .meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #374151;
    margin: 0;
}

.carta-servicos-acessar a {
    flex: 0 0 auto;
    color: #16305c;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.carta-servicos-acessar a:hover {
    text-decoration: underline;
}

.carta-servicos-vazio {
    color: #6b7280;
    padding: 24px 0;
}

.cs-item.aberto .cs-item-conteudo {
    display: block;
}

/* ----- Página interna / accordion ----- */
.carta-servico-single-header .subtitulo {
    text-align: center;
    color: #6b7280;
    margin-top: 0;
}

.btn-relatorio {
    margin: 12px auto 40px;
    background: #16305c !important;
    color: #fff !important;
    font-size: 12px !important;
    align-items: center;
    display: flex !important;
    justify-content: center;
    width: fit-content;
}

.carta-servico-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.cs-item {
    border-bottom: 1px solid #e5e7eb;
}

.cs-item:last-child {
    border-bottom: none;
}

.cs-item-titulo {
    width: 100%;
    text-align: left;
    background: #fff;
    border: none;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #16305c;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cs-item-titulo::after {
    content: "\25BE"; /* seta para baixo */
    transition: transform .2s ease;
}

.cs-item.aberto .cs-item-titulo::after {
    transform: rotate(180deg);
}

.cs-item-conteudo {
    display: none;
    padding: 0 18px 16px;
    color: #374151;
    font-size: 14px;
}

.cs-lista-check,
.cs-lista-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cs-lista-check li,
.cs-lista-links li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
}

.cs-lista-links li a {
    color: #16305c;
    font-weight: 600;
}

.cs-lista-check .dashicons-yes {
    color: #16a34a;
}

.cs-lista-links .dashicons-admin-links {
    color: #16305c;
}

.carta-servico-voltar {
    margin-top: 20px;
}

.carta-servico-voltar a {
    color: #16305c;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 14px;
}

/* ----- Responsivo ----- */
@media (max-width: 640px) {
    .carta-servicos-card {
        flex-wrap: wrap;
    }
    .carta-servicos-filtros select,
    .carta-servicos-filtros input[type="text"] {
        min-width: 100%;
    }

    .carta-servicos-filtros .campo {
        width: 100%;
        justify-content: space-between;
    }
}
