/**
 * mod_intercode_scripts_loader
 * @copyright (C) 2026 Intercode
 */

/* ==========================================
   Consultas - Tabela de Pagamento
   ========================================== */

#pagamento .table-responsive {
    margin-bottom: 20px;
}

#pagamento .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-align: center;
}

#pagamento .table td {
    vertical-align: middle;
}

#pagamento .form-control.valor-input {
    width: 120px;
}

#pagamento .form-control.qtd-input {
    width: 80px;
    margin: 0 auto;
}

#pagamento .item-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#pagamento .text-muted {
    display: block;
    font-size: 12px;
}

#pagamento .btn-pagbank,
#pagamento .btn-paypal {
    margin-right: 10px;
}

/*
 * Botões personalizados para PagBank e PayPal
 */
#pagamento .btn-pagbank {
    background: #00b15d;
    color: #fff;
    border: 1px solid #00b15d;
    border-radius: 6px;
    padding: 8px 24px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px #00b15d22;
}

#pagamento .btn-pagbank:hover,
#pagamento .btn-pagbank:focus {
    background: #60b88d;
    color: #fff;
    border-color: #60b88d;
}

#pagamento .btn-paypal {
    background: #ffc439;
    color: #003087;
    border: 1px solid #ffc439;
    border-radius: 6px;
    padding: 8px 24px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px #ffc43922;
}

#pagamento .btn-paypal:hover,
#pagamento .btn-paypal:focus {
    background: #fdde90;
    color: #003087;
    border-color: #fdde90;
}

#pagamento .btn-pagbank img,
#pagamento .btn-paypal img {
    vertical-align: middle;
    height: 32px;
    margin-right: 8px;
}

/* CSS responsivo para tabela em dispositivos móveis */
@media (max-width: 767px) {
    #pagamento .table-responsive {
        border: 0;
        overflow-x: visible;
    }

    #pagamento .table {
        border: 0;
    }

    #pagamento .table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    #pagamento .table tr {
        border-bottom: 3px solid #f2f2f2;
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
        border-radius: 6px;
    }

    #pagamento .table td {
        border-bottom: 1px solid #eee;
        display: block;
        font-size: 0.9em;
        text-align: right;
        padding: 10px 5px;
        position: relative;
        padding-left: 50%;
    }

    #pagamento .table td:last-child {
        border-bottom: 0;
    }

    #pagamento .table td::before {
        content: attr(data-label);
        font-weight: bold;
        position: absolute;
        left: 5px;
        text-align: left;
    }

    #pagamento .table td.valor {
        padding-left: 5px;
        text-align: right;
    }

    #pagamento .form-control.valor-input {
        width: auto;
        max-width: 100px;
        margin-left: auto;
    }

    #pagamento .form-control.qtd-input {
        width: auto;
        max-width: 80px;
        margin-left: auto;
    }
}

#pagamento .botoes-pagamento {
    display: flex;
    flex-direction: column;
    width: 100%;
}

#pagamento .btn-pagbank,
#pagamento .btn-paypal {
    margin: 5px 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}