/* ===== Roteiro de Testes ===== */

section.roteiro-testes {
    max-width: 780px;
    margin: 0 auto;
    padding: 2rem 1rem 4rem;
    font-size: 1rem;
}

/* Cabeçalho */
.rt-header {
    text-align: center;
    margin-bottom: 2rem;
}

.rt-header h1 {
    font-size: 1.8rem;
    margin-bottom: .25rem;
}

.rt-header p {
    color: var(--muted, #888);
    margin-bottom: 1rem;
}

.rt-instrucoes {
    margin-top: 1rem;
    font-size: .85rem;
    color: var(--muted, #666);
    line-height: 1.6;
}

.rt-instrucoes a {
    color: var(--primary, #1a7a3f);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.rt-instrucoes a:hover {
    text-decoration: underline;
}

.rt-progresso {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
}

.rt-progresso span {
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted, #555);
}

.rt-barra-fundo {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: #e0e0e0;
    border-radius: 99px;
    overflow: hidden;
}

.rt-barra {
    height: 100%;
    width: 0%;
    background: var(--primary, #1a7a3f);
    border-radius: 99px;
    transition: width .4s ease;
}

/* Lista */
.rt-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

/* Título de grupo */
.rt-grupo-titulo {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted, #888);
    margin-top: 1.5rem;
    margin-bottom: .25rem;
    padding-left: .5rem;
    border-left: 3px solid var(--primary, #1a7a3f);
}

/* Item */
.rt-item {
    background: var(--surface, #fff);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: .9rem 1rem;
    transition: border-color .2s, background .2s;
}

.rt-item.rt-ok {
    border-color: #86efac;
    background: #f0fdf4;
}

.rt-item.rt-nok {
    border-color: #fca5a5;
    background: #fff1f2;
}

.rt-item.rt-neutral {
    border-color: #e5e7eb;
    background: #f9fafb;
}

.rt-item-info {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    margin-bottom: .6rem;
}

.rt-num {
    font-size: .78rem;
    font-weight: 700;
    background: #f0f0f0;
    color: #555;
    border-radius: 50%;
    min-width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: .1rem;
}

.rt-item-info strong {
    font-size: .95rem;
    display: block;
    line-height: 1.3;
}

.rt-item-info p {
    font-size: .82rem;
    color: var(--muted, #666);
    margin: .2rem 0 0;
    line-height: 1.4;
}

/* Ações */
.rt-acoes {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.rt-btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .4rem .85rem;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, transform .1s;
}

.rt-btn:active {
    transform: scale(.97);
}

.rt-aprovado {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.rt-aprovado:hover {
    background: #bbf7d0;
}

.rt-reprovado {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.rt-reprovado:hover {
    background: #fecaca;
}

.rt-desfazer {
    background: #f1f5f9;
    color: #475569;
    border-color: #cbd5e1;
    font-size: .78rem;
}

.rt-desfazer:hover {
    background: #e2e8f0;
}

/* Campo de motivo */
.rt-motivo-wrap {
    margin-top: .7rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.rt-motivo-wrap label {
    font-size: .82rem;
    color: #555;
    font-weight: 600;
}

.rt-motivo {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: .5rem .75rem;
    font-size: .85rem;
    resize: vertical;
    font-family: inherit;
}

.rt-confirmar-motivo {
    align-self: flex-start;
    background: #991b1b;
    color: #fff;
    border: none;
    font-size: .82rem;
}

.rt-confirmar-motivo:hover {
    background: #7f1d1d;
}

/* Badge de status */
.rt-status-badge {
    margin-top: .5rem;
    font-size: .82rem;
    font-weight: 600;
    padding: .25rem .5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.badge-ok {
    background: #dcfce7;
    color: #166534;
}

.badge-nok {
    background: #fee2e2;
    color: #991b1b;
}

.badge-neutral {
    background: #e5e7eb;
    color: #374151;
}

/* Rodapé */
.rt-rodape {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.rt-identificacao h3 {
    font-size: 1rem;
    margin: 0 0 .7rem;
}

.rt-campos {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.rt-campo {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    flex: 1;
    min-width: 200px;
}

.rt-campo label {
    font-size: .82rem;
    font-weight: 600;
    color: #555;
}

.rt-campo input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: .5rem .75rem;
    font-size: .9rem;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}

/* Aviso pendentes */
.rt-aviso {
    font-size: .85rem;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: .6rem 1rem;
}

/* Botão concluir */
.rt-btn-concluir {
    width: 100%;
    padding: .85rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    background: var(--primary, #1a7a3f);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, opacity .2s;
}

.rt-btn-concluir:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.rt-btn-concluir:not(:disabled):hover {
    background: #145e30;
}

/* Feedback */
.rt-feedback {
    font-size: .9rem;
    border-radius: 8px;
    padding: .85rem 1.1rem;
    line-height: 1.5;
}

.rt-sucesso {
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

.rt-sucesso a {
    color: #166534;
}

.rt-erro {
    background: #fff1f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

@media (max-width: 520px) {
    .rt-btn {
        flex: 1;
        justify-content: center;
    }
}
