.wizard-step {
    padding: 30px;
    margin-top: 30px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 3px;
    border-color: #e1e7ec;
    box-shadow: 0 2px 1px rgba(0, 0, 0, 0.06);
}

.archive-servicos {
    display: flex;
    gap: 30px;
    font-family: var(--primary-font);
    color: var(--body-font);
}

/* Estilo lateral para desktop */
.filtros {
    width: 280px;
    background: #fff;
    padding: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 2px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    font-family: var(--secondary-font);
}

/* Botão para mobile */
.filtros-toggle {
    display: none;
    background: var(--accent2);
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background 0.2s ease;
}
.filtros-toggle:hover {
    background: var(--accent1);
}

/* Conteúdo dos filtros */
.filtros h3 {
    margin-top: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--accent1);
    border-bottom: 2px solid var(--accent1);
    padding-bottom: 8px;
    margin-bottom: 15px;
}
.filtros h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--accent2);
    margin: 15px 0 8px;
}
.filtros input[type="text"] {
    width: 100%;
    padding: 8px 10px 8px 35px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: var(--primary-font);
    color: var(--body-font);
}

.filtros p {
    font-size: 14px;
    color: var(--body-font);
    margin-bottom: 15px;
}

.filtros div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}
.filtros input[type="checkbox"] {
    accent-color: var(--accent2);
    width: 16px;
    height: 16px;
    cursor: pointer;
}
.filtros label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--body-font);
    transition: color 0.2s ease;
}
.filtros div:hover label {
    color: var(--body-link);
}
.filtros .ativos {
    margin: 12px 0;
    font-size: 13px;
}
.filtros .ativos span {
    background: color-mix(in srgb, var(--accent2) 20%, transparent);
    color: var(--accent2);
    padding: 4px 8px;
    margin: 2px;
    display: inline-block;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease, color 0.2s ease;
}
.filtros .ativos span:hover {
    background: var(--accent2);
    color: #fff;
}

.servicos-lista {
    flex: 1;
}

/* Responsividade */
@media (max-width: 991px) {
    .archive-servicos {
        flex-direction: column;
    }
    .filtros {
        display: none;
        width: 100%;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    .filtros-toggle {
        display: block;
    }
}

/* Links de nível 1 e 2 como "botões" clicáveis */
.post-tree__item-link[data-toggle='true'] {
    cursor: pointer;
    text-decoration: none !important;
    transition: color 0.2s ease;
}
.post-tree__item-link[data-toggle='true']:hover {
    color: var(--accent1);
}

#resultado-servicos .post-tree__item-icon--folder:before {
    display: none;
}

#resultado-servicos .post-tree__item-icon--folder {
    top: 10px;
    left: 20px;
}

/* Wrapper do campo de busca */
.filtro-busca {
    position: relative;
    margin-bottom: 15px;
}
.filtro-busca input {
    width: 100%;
    padding: 10px 12px 10px 38px; /* espaço p/ ícone */
    border: 1px solid #ccc;
    border-radius: 25px;
    font-size: 14px;
    font-family: var(--primary-font);
    color: var(--body-font);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.filtro-busca input:focus {
    outline: none;
    border-color: var(--accent2);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent2) 40%, transparent);
}
.filtro-busca .icon-lupa {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent2);
    font-size: 16px;
    pointer-events: none;
}

.filtro-range {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
}

.filtro-range input[type="range"] {
    flex: 1;
    cursor: pointer;
}

.filtro-range span {
    min-width: 24px;
    font-weight: bold;
    color: var(--accent2);
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}

#btn-prev.disable,
#btn-next.disable {
    color: rgba(204, 204, 204, 1.6)!important;
		border-color: rgba(204, 204, 204, 0.6)!important;
    cursor: not-allowed !important;   
    opacity: 0.7;                     
    pointer-events: none;             
}

.wizard-step {
    padding: 30px; 
}

@media (max-width: 768px) {
    #wizard-step {
        padding: 15px !important;
    }
	    .wizard-step {
        padding: 15px !important;
    }
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.table-docs, .table-taxas {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 14px;
    background: #fff;
    border: 1px solid #ddd;   
    border-radius: 0 !important;  /* força sem arredondamento */
}

/* Estilo padrão: em telas grandes o texto quebra normalmente */
.table-docs th, 
.table-docs td,
.table-taxas th,
.table-taxas td {
    padding: 6px 8px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
    /* sem nowrap, sem ellipsis */
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

/* MOBILE */
@media (max-width: 768px) {
    .table-docs td, .table-taxas td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 5px 0;
        max-width: 100%;
        /* agora sim, corta com reticências */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .table-docs td a, .table-taxas td a {
        display: inline-block;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}


/* links normais em desktop */
.table-docs td a, .table-taxas td a {
    color: #0073aa;
    text-decoration: none;
}

.table-docs td a:hover, .table-taxas td a:hover {
    text-decoration: underline;
}

/* MOBILE */
@media (max-width: 768px) {
    
    .table-docs, .table-taxas {
        font-size: 13px;
    }

    .table-docs thead, .table-taxas thead {
        display: none;
    }
    .table-docs tr, .table-taxas tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #ddd;
        background: #fff;
        padding: 8px;
    }
    .table-docs td, .table-taxas td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 5px 0;
        max-width: 100%;
    }
    .table-docs td:last-child, .table-taxas td:last-child {
        border-bottom: none;
    }
    .table-docs td:before, .table-taxas td:before {
        content: attr(data-label);
        font-weight: bold;
        flex: 1;
        min-width: 110px;
    }
    .table-docs td a, .table-taxas td a {
        display: inline-block;
        max-width: 140px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

