﻿.bonos-page {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 20px;
}

.bonos-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.bonos-title {
    margin: 0 0 6px 0;
    color: #08305f;
    font-size: 32px;
    font-weight: 900;
}

.bonos-subtitle {
    margin: 0;
    color: #667085;
    font-size: 17px;
}

.bonos-btn-volver {
    white-space: nowrap;
}

/* Grupos */

.bonos-grupos {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tarjeta de beneficiario */

.bonos-beneficiario-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 63, 125, 0.07);
}

.bonos-beneficiario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    border-bottom: 1px solid #e8edf2;
    background: #ffffff;
}

.bonos-beneficiario-principal {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.bonos-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 14px;
    background: #eef7ff;
    color: #096ca8;
    font-size: 24px;
}

.bonos-beneficiario-info {
    min-width: 0;
}

.bonos-beneficiario-titulo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

    .bonos-beneficiario-titulo h2 {
        margin: 0;
        color: #0c2d57;
        font-size: 22px;
        font-weight: 800;
    }

.bonos-beneficiario-datos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 7px;
    color: #667085;
    font-size: 14px;
}

    .bonos-beneficiario-datos i {
        margin-right: 3px;
    }

.bonos-separador {
    color: #b6bec8;
}

/* Badges */

.bonos-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.bonos-badge-titular {
    background: #e6f2ff;
    color: #075e95;
}

.bonos-badge-familiar {
    background: #f0f2f5;
    color: #4c5663;
}

.bonos-total {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 10px 15px;
    border-radius: 999px;
    background: #fff4d6;
    color: #7a5700;
    font-size: 14px;
    font-weight: 700;
}

/* Tabla */

.bonos-table-container {
    width: 100%;
}

.bonos-table {
    width: 100%;
    table-layout: fixed;
}

    .bonos-table thead th {
        padding: 14px 18px;
        border-top: 0;
        border-bottom: 1px solid #dfe6ee;
        background: #f7f9fc;
        color: #536273;
        font-size: 12px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        vertical-align: middle;
    }

    .bonos-table tbody td {
        padding: 18px;
        border-bottom: 1px solid #e8edf2;
        color: #17324d;
        vertical-align: middle;
    }

    .bonos-table tbody tr:last-child td {
        border-bottom: 0;
    }

    .bonos-table tbody tr {
        transition: background 0.15s ease;
    }

        .bonos-table tbody tr:hover {
            background: #fafcff;
        }

.bonos-col-fecha {
    width: 135px;
}

.bonos-col-valor {
    width: 145px;
}

.bonos-col-accion {
    width: 90px;
}

.bonos-fecha {
    color: #17324d;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.bonos-hora {
    margin-top: 3px;
    color: #7b8794;
    font-size: 13px;
}

.bonos-prestacion {
    color: #17324d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bonos-numero-resumen {
    max-width: 550px;
    margin-top: 7px;
    overflow: hidden;
    color: #8994a2;
    font-family: monospace;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bonos-valor {
    color: #075e95;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

/* Botón detalle */

.bonos-btn-detalle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #cbd9e8;
    border-radius: 10px;
    background: #ffffff;
    color: #096ca8;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .bonos-btn-detalle:hover {
        border-color: #096ca8;
        background: #096ca8;
        color: #ffffff;
        transform: translateY(-1px);
    }

    .bonos-btn-detalle:focus {
        outline: none;
        box-shadow: 0 0 0 4px rgba(9, 108, 168, 0.15);
    }

/* Sin resultados */

.bonos-empty-card {
    padding: 60px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 63, 125, 0.07);
}

    .bonos-empty-card h2 {
        margin: 18px 0 8px;
        color: #0c2d57;
        font-size: 22px;
        font-weight: 800;
    }

    .bonos-empty-card p {
        margin: 0;
        color: #667085;
    }

.bonos-empty-icon {
    color: #096ca8;
    font-size: 48px;
}

.bonos-sin-resultados {
    padding: 45px 24px;
    color: #667085;
    text-align: center;
}

    .bonos-sin-resultados i {
        display: block;
        margin-bottom: 10px;
        color: #9aa6b2;
        font-size: 36px;
    }

    .bonos-sin-resultados p {
        margin: 0;
    }

/* Modal */

.bonos-modal {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 36, 74, 0.25);
}

.bonos-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e4e9ef;
    background: #ffffff;
}

    .bonos-modal-header .modal-title {
        color: #0c2d57;
        font-size: 21px;
        font-weight: 800;
    }

.bonos-modal-subtitle {
    margin: 4px 0 0;
    color: #7b8794;
    font-size: 13px;
}

.bonos-modal-body {
    padding: 24px;
    background: #f7f9fc;
}

.bonos-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e4e9ef;
    background: #ffffff;
}

.bonos-detail-box {
    height: 100%;
    padding: 16px 18px;
    border: 1px solid #dfe6ee;
    border-radius: 12px;
    background: #ffffff;
}

.bonos-detail-label {
    display: block;
    margin-bottom: 6px;
    color: #7b8794;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bonos-detail-value {
    display: block;
    color: #17324d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.bonos-detail-price {
    color: #075e95;
    font-size: 19px;
    font-weight: 800;
}

.bonos-detail-number {
    font-family: monospace;
    font-size: 13px;
}

/* Responsive */

@media (max-width: 767.98px) {
    .bonos-page {
        padding: 24px 12px;
    }

    .bonos-page-header {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 22px;
    }

    .bonos-title {
        font-size: 27px;
    }

    .bonos-subtitle {
        font-size: 15px;
    }

    .bonos-btn-volver {
        width: 100%;
    }

    .bonos-beneficiario-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .bonos-beneficiario-titulo h2 {
        font-size: 18px;
    }

    .bonos-total {
        align-self: flex-start;
    }

    .bonos-table {
        min-width: 720px;
    }

        .bonos-table thead th,
        .bonos-table tbody td {
            padding: 14px;
        }

    .bonos-modal-body {
        padding: 16px;
    }
}
