body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.card-header {
    background: linear-gradient(to right, #007bff, #0056b3);
    color: white;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    padding: 15px;
    border-radius: 8px 8px 0 0;
}

.card-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    font-weight: bold;
    display: block;
}

input.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Capital y Días Plazo en la misma línea */
.row {
    display: flex;
    gap: 10px;
}

/* Estilo para botones */
.btn-group {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}
.btn-success {
    background-color: #0056b3;
    color: white;
    border: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}
.btn-primary {
    background-color: #0056B8;
    color: white;
    border: none;
}

#tipoplazo,#agencia,#tipo_cliente  {
    width: 120%;
    padding: 6px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    font-size: 16px;
    color: #333;
    outline: none;
    appearance: none; /* Oculta la flecha predeterminada en algunos navegadores */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="16" height="16" fill="gray"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

#tipoplazo:hover,#agencia:hover,#tipo_cliente:hover {
    border-color: #007bff;
}

#tipoplazo:focus,#agencia:focus,#tipo_cliente:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}


/* Estilo personalizado para la tabla */
.tabla-interes {
    width: 100%;
    border-collapse: collapse; /* Evitar espacios entre los bordes */
}

.tabla-interes th, .tabla-interes td {
    border: 1px solid #ddd; /* Borde gris claro */
    padding: 8px;
    text-align: left;
}

.tabla-interes th {
    background-color: #f2f2f2; /* Fondo gris claro para los encabezados */
    font-weight: bold; /* Negrita para los encabezados */
}

.tabla-interes tr:nth-child(even) {
    background-color: #f9f9f9; /* Fondo alterno para filas pares */
}

.tabla-interes tfoot th {
    font-weight: bold; /* Negrita para los totales */
    background-color: #e2e2e2; /* Fondo gris claro para el pie de tabla */
}


@media (max-width: 576px) {
    .row {
        flex-direction: column;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}



