/* ==========================================================
   BRX PLANOS - CSS MASTER
   Estilo Corporativo Premium
========================================================== */

#brx-planos-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    font-family: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
    color: #333;
}

/* --- FILTROS (Caixa Superior) --- */
.brx-box {
    background: #fff;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

#brx-filtros .brx-linha {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

#brx-filtros label {
    font-weight: 600;
    color: #444;
    min-width: 80px;
}

#brx-filtros select,
#brx-filtros input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 200px;
    font-size: 14px;
}

#brx-filtros input[type="radio"] {
    transform: scale(1.2);
    margin-right: 5px;
    margin-left: 10px;
}

/* Botão Buscar */
.brx-actions {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: right;
}

.brx-btn {
    background: #005ad5;
    color: #fff;
    padding: 10px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    transition: background 0.2s;
}

.brx-btn:hover {
    background: #0044a0;
}

/* --- TABELA DE RESULTADOS --- */
#brx-resultados {
    padding: 0; /* Remove padding do container para tabela encostar nas bordas */
    overflow: hidden; /* Para bordas arredondadas */
}

#brx-tabela {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#brx-tabela thead th {
    background: #0d47a1; /* Azul Canopus */
    color: #fff;
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    border-bottom: 3px solid #0a357a;
}

#brx-tabela thead th:hover {
    background: #155bc2;
}

#brx-tabela tbody td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    color: #555;
}

#brx-tabela tbody tr:nth-child(even) {
    background: #f8faff;
}

#brx-tabela tbody tr:hover {
    background: #eef4ff;
}

/* Ícone de Detalhes (Redondo Azul com Seta) */
.brx-detalhes-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.brx-icone-azul {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: #0073aa;
    color: #fff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}

.brx-detalhes-btn:hover .brx-icone-azul {
    background-color: #005ad5;
    transform: scale(1.1);
}

/* --- PAGINAÇÃO (Módulo 6) --- */
#brx-pagination {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #eee;
    text-align: center;
}

.brx-pagin-wrap {
    display: inline-flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.brx-page-btn {
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #005ad5;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 13px;
}

.brx-page-btn:hover {
    background: #f0f6ff;
    border-color: #005ad5;
}

.brx-page-btn.brx-active {
    background: #005ad5;
    color: #fff;
    border-color: #005ad5;
}

.brx-dots {
    padding: 8px 5px;
    color: #999;
}

.brx-center { text-align: center !important; }

/* --- MODAL PLUS --- */
#brx-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.brx-modal-bg {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.brx-modal-box {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 2;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.brx-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.brx-modal-close:hover { color: #333; }

.brx-modal-content {
    padding: 30px;
}

/* Modal Header & Body */
.brx-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.brx-details-left h2 {
    margin: 0 0 5px;
    color: #0d47a1;
    font-size: 24px;
}

.brx-sub { color: #666; font-size: 14px; margin: 0; }

.brx-details-right { text-align: right; }

.brx-big-value {
    font-size: 26px;
    font-weight: 800;
    color: #005ad5;
}

.brx-mini { font-size: 13px; color: #777; margin-top: 4px; }

.brx-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Tabela Modal Prazos */
.brx-prazos-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 10px;
}

.brx-prazos-table th {
    background: #eef3f9;
    color: #333;
    padding: 10px;
    text-align: left;
    border-bottom: 2px solid #ddd;
}

.brx-prazos-table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

/* Botões Footer */
.brx-actions-footer {
    margin-top: 30px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.brx-solicitar-simulacao {
    background: #005ad5;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

.brx-whatsapp {
    background: #25d366;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .brx-details-header { flex-direction: column; gap: 15px; }
    .brx-details-right { text-align: left; }
    
    #brx-tabela thead { display: none; }
    #brx-tabela tbody td {
        display: block;
        padding: 8px 15px;
        text-align: right;
        position: relative;
        border: none;
    }
    #brx-tabela tbody td::before {
        content: attr(data-label); /* Se quiser labels no mobile, precisa adicionar no JS */
        position: absolute;
        left: 15px;
        font-weight: bold;
        display: none; /* Simplificado para layout clean */
    }
    #brx-tabela tbody tr {
        display: block;
        border: 1px solid #ddd;
        margin-bottom: 15px;
        border-radius: 8px;
        padding: 10px;
        background: #fff !important;
    }
    /* Ajuste centralizado no mobile */
    #brx-tabela tbody td { text-align: center; }
}