/* Planning Dashboard Custom Styles */

/* KPI Container */
.dashboard-kpi-container {
    padding: 15px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    border-radius: 12px;
    margin-bottom: 20px;
    color: white !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* KPI Group Box (Targeting XAF Layout Groups) */
div[id*="KPITotal"], div[id*="KPICobertura"], div[id*="KPIVencidos"] {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 10px !important;
    padding: 10px !important;
    margin: 5px !important;
    transition: transform 0.3s ease, background 0.3s ease;
}

div[id*="KPITotal"]:hover, div[id*="KPICobertura"]:hover, div[id*="KPIVencidos"]:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2) !important;
}

/* KPI Labels */
div[id*="KPITotal"] .dxbs-layout-group-caption, 
div[id*="KPICobertura"] .dxbs-layout-group-caption, 
div[id*="KPIVencidos"] .dxbs-layout-group-caption {
    color: #ffd700 !important;
    font-weight: bold !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 8px;
    padding-bottom: 4px;
}

/* KPI Values (Property Editors) */
div[id*="KPITotal"] .dxbs-editor-input, 
div[id*="KPICobertura"] .dxbs-editor-input, 
div[id*="KPIVencidos"] .dxbs-editor-input {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: white !important;
    text-align: center !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Specific KPI Colors */
div[id*="KPITotal"] { border-left: 5px solid #4CAF50 !important; }
div[id*="KPICobertura"] { border-left: 5px solid #2196F3 !important; }
div[id*="KPIVencidos"] { border-left: 5px solid #f44336 !important; }

/* Dashboard Tabs Styling */
.dxbs-tabs-content {
    background: white;
    border-radius: 0 0 8px 8px;
    padding: 20px;
}

.dxbs-tabs .nav-link.active {
    font-weight: bold;
    color: #1a2a6c !important;
    border-bottom: 3px solid #1a2a6c !important;
}

/* ========================================= */
/* EXECUTIVE DASHBOARD STYLES (EXCEL STYLE)  */
/* ========================================= */

.executive-dashboard-container {
    background-color: #f8f9fa;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.executive-matrix {
    border-collapse: separate;
    border-spacing: 0;
}

.thead-dark-blue th {
    background-color: #1a2a6c !important;
    color: #ffffff !important;
    border: none;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 12px 15px !important;
    letter-spacing: 0.5px;
}

.group-header-row {
    background-color: #eef2f3 !important;
    border-top: 2px solid #1a2a6c;
    border-bottom: 2px solid #dee2e6;
}

.group-bullet {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #b11d1d;
    border-radius: 50%;
}

.detail-row td {
    border-bottom: 1px solid #f1f1f1;
    padding: 8px 15px !important;
    vertical-align: middle;
}

.bg-dark-blue {
    background-color: #0d1b4a !important;
}

.border-light-blue {
    border-color: #1a2a6c !important;
}

.shadow-inner-left {
    box-shadow: inset 5px 0 10px -5px rgba(0,0,0,0.3);
}

.badge-outline-secondary {
    color: #6c757d;
    border: 1px solid #6c757d;
    background: transparent;
    font-weight: 400;
}

/* Bank Summary Cards */
.card-body.p-3 {
    transition: transform 0.2s ease-in-out;
}

.card:hover .card-body {
    transform: translateY(-2px);
}

.border-left-highlight {
    border-left: 5px solid transparent;
}

.border-left-highlight.border-success {
    border-left-color: #28a745 !important;
}

.border-left-highlight.border-danger {
    border-left-color: #dc3545 !important;
}

.font-weight-500 {
    font-weight: 500;
}

.text-light-gray {
    color: #ced4da;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

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