/* ============================================================== */
/* MÓDULO: RENDIMIENTO - HOJA DE ESTILOS                          */
/* ============================================================== */

.rdm-main-api { font-family: 'Inter', -apple-system, sans-serif; color: #333; background-color: #f8f9fa; padding-bottom: 30px; position: relative; }

/* Buscador */
.rdm-header-wrapper { background: #fff; margin: 10px 20px 20px 20px; padding: 15px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.rdm-search-container { position: relative; width: 100%; }
.rdm-search-container i.fa-magnifying-glass { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #71639e; font-size: 16px; }
.rdm-input-search { width: 100%; height: 50px; padding: 0 15px 0 45px; border-radius: 8px; border: 1px solid #ced4da; font-size: 16px; outline: none; transition: border-color 0.3s; }
.rdm-input-search:focus { border-color: #71639e; box-shadow: 0 0 0 3px rgba(113, 99, 158, 0.2); }

/* Dropdown */
.rdm-dropdown-list { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #ced4da; border-top: none; border-radius: 0 0 8px 8px; box-shadow: 0 8px 16px rgba(0,0,0,0.1); max-height: 350px; overflow-y: auto; z-index: 1000; }
.rdm-list-item { display: block; width: 100%; text-align: left; padding: 12px 15px; border: none; border-bottom: 1px solid #f1f1f1; background: #fff; cursor: pointer; }
.rdm-list-item:hover { background: #f8f9fa; }

/* Botonera */
.rdm-actions-wrapper { display: flex; justify-content: center; gap: 15px; margin: 0 20px 20px 20px; flex-wrap: wrap; }
.rdm-btn-action { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: transform 0.1s; color: #fff; }
.rdm-btn-action:active { transform: scale(0.98); }
.rdm-btn-primary { background-color: #71639e; box-shadow: 0 4px 10px rgba(113, 99, 158, 0.3); }
.rdm-btn-primary:hover { background-color: #5a4d81; }
.rdm-btn-secondary { background-color: #6c757d; box-shadow: 0 4px 10px rgba(108, 117, 125, 0.3); }

/* Dashboard KPIs (Ajustado para 4 columnas) */
.rdm-dashboard-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; padding: 0 20px 20px 20px; }
.rdm-kpi-card { background: #fff; padding: 20px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.05); border-left: 5px solid #ced4da; text-align: center; }
.rdm-kpi-highlight { border-left: 5px solid #71639e; }
.rdm-kpi-title { font-size: 11px; color: #6c757d; text-transform: uppercase; font-weight: 700; margin-bottom: 5px; }
.rdm-kpi-value { font-size: 26px; font-weight: 800; color: #1a1a1a; }

/* Utilidades de Texto */
.text-primary { color: #71639e !important; }
.text-success { color: #198754 !important; }
.text-danger { color: #dc3545 !important; }
.text-warning { color: #ffc107 !important; }

/* Tablas */
.rdm-table-wrapper { background: #fff; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.08); margin: 0 20px 25px 20px; overflow-x: auto; }
.rdm-main-table { width: 100%; border-collapse: collapse; text-align: center; min-width: 800px; }
.rdm-main-table th { background: #71639e; color: #fff; padding: 15px 10px; font-size: 12px; text-transform: uppercase; border: 1px solid #5a4d81; }
.rdm-main-table td { padding: 12px 10px; font-size: 13px; border: 1px solid #eee; vertical-align: middle; }
.rdm-empty-state { text-align: center; padding: 60px 20px; color: #6c757d; }
.rdm-empty-icon { font-size: 48px; color: #dee2e6; margin-bottom: 15px; }

@media (max-width: 768px) {
    .rdm-dashboard-container { grid-template-columns: 1fr 1fr; }
    .rdm-actions-wrapper { flex-direction: column; }
    .rdm-btn-action { width: 100%; justify-content: center; }
}