/* ===== 2ª VIA - FORM PRINCIPAL ===== */
.segunda-via__title {
    color: #6a6f7a;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}


.page-label {
    display: block;
    width: fit-content;
    padding: 4px 18px;
    border-radius: 999px;
    background: rgba(255, 107, 53, 0.14);
    border: 1px solid rgba(255, 107, 53, 0.22);
    color: #ff6b35;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin: 0 auto 14px;
    text-align: center;
    line-height: 1.2;
}

.page-label + .segunda-via__title {
    color: #22252a;
}

.segunda-via__subtitle {
    color: #6a6f7a;
    font-size: 18px;
    text-align: center;
    margin-bottom: 32px;
}

.segunda-via__form {
    width: 35%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.segunda-via__submit {
    width: 100%;
    height: 44px;
    font-size: 17px;
    background-color: #ff6b35;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    color: #fff;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.segunda-via__submit:hover {
    background-color: #ff5722;
    transform: translateY(-1px);
}

.segunda-via__alert {
    margin-top: 6px;
    width: 100%;
    text-align: center;
    background-color: #fa9893;
    padding: 8px 0;
    color: #d6140a;
    border-radius: 6px;
    font-weight: 600;
}

/* ===== HISTÓRICO ===== */
.segunda-via-historico__header {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.segunda-via-historico__header h1 {
    color: #6a6f7a;
    font-size: 26px;
    font-weight: 700;
    margin: 0;
}

.segunda-via-historico__header p {
    color: #6a6f7a;
    font-size: 16px;
    margin: 0;
}

.segunda-via-historico__resumo {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: #424953;
}

.segunda-via-historico__resumo span strong {
    color: #ff6b35;
}

.segunda-via-historico__info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.segunda-via-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 2px 20px #dce4ef;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.segunda-via-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: #6a6f7a;
    margin: 0;
}

.segunda-via-card p {
    font-size: 18px;
    font-weight: 600;
    color: #424953;
    margin: 0;
}

.segunda-via-card span {
    font-size: 13px;
    color: #7a8595;
}

.segunda-via-historico__tabela {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0px 2px 20px #dce4ef;
    padding: 20px;
    margin-bottom: 60px;
}

#tabelaAcordos thead th {
    color: #7a8595;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e4edf7;
}

#tabelaAcordos tbody td {
    color: #424953;
    font-size: 14px;
    vertical-align: middle;
}

.segunda-via__estado {
    text-align: center;
    padding: 26px;
    color: #7a8595;
}

.segunda-via__acoes {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.segunda-via-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #ff6b35;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.segunda-via-btn i {
    font-size: 15px;
}

.segunda-via-btn:hover {
    background: #ff5722;
    transform: translateY(-1px);
}

.segunda-via-btn:disabled {
    background: #d0d5dd;
    cursor: not-allowed;
    transform: none;
}

/* ===== MODAL REENVIO ===== */
.segunda-via-modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.segunda-via-modal__content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    width: 360px;
    position: relative;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.15);
}

.segunda-via-modal__content h3 {
    font-size: 20px;
    color: #424953;
    font-weight: 700;
    margin-bottom: 8px;
}

.segunda-via-modal__content p {
    font-size: 14px;
    color: #7a8595;
    margin-bottom: 20px;
}

.segunda-via-modal__content .form-control {
    border-radius: 8px;
    height: 42px;
    font-size: 14px;
}

.segunda-via-modal__erro {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #d6140a;
}

.segunda-via-modal__botoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.segunda-via-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #7a8595;
    font-size: 16px;
}

/* ===== STATUS BADGES ===== */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.status-promessa {
    background-color: #ff9800;
}

.status-vigente {
    background-color: #28a745;
}

.status-quitado {
    background-color: #6c757d;
}

.status-quebrado {
    background-color: #dc3545;
}

.status-padrao {
    background-color: #7a8595;
}

.status-modal {
    max-width: 420px;
}

.status-modal .modal-buttons {
    justify-content: center;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 992px) {
    .segunda-via__form {
        width: 55%;
    }
}

@media (max-width: 768px) {
    .segunda-via__form {
        width: 70%;
    }

    .segunda-via-historico__header {
        margin-top: 40px;
    }
}

@media (max-width: 576px) {
    .segunda-via__form {
        width: 100%;
    }

    .segunda-via-historico__resumo {
        flex-direction: column;
        gap: 8px;
    }

    .segunda-via-modal__content {
        width: calc(100% - 40px);
    }
}

