/* =====================================================
   VESPA REPORT – DASHBOARD PRO (ISOLÉ)
   Compatible avec app2.css sans conflit
===================================================== */

/* ==========================================
   ISOLATION
========================================== */

.dashboard-page {
    margin: 0;
    background: #f4f6f9;
}

.dashboard-page .layout {
    display: flex;
    min-height: 100vh;
}

/* Annule limites globales héritées */
.dashboard-page .card {
    max-width: none !important;
    width: 100% !important;
}

/* ==========================================
   SIDEBAR
========================================== */

.dashboard-page .sidebar {
    width: 240px;
    background: #0f172a;
    color: white;
    padding: 30px 20px;
    flex-shrink: 0;
}

.dashboard-page .sidebar h2 {
    font-size: 18px;
    margin-bottom: 25px;
}

.dashboard-page .sidebar a {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 6px;
    transition: 0.2s ease;
}

.dashboard-page .sidebar a:hover {
    background: #1e293b;
    color: white;
}

.dashboard-page .sidebar a.active {
    background: #f6b500;
    color: #111;
    font-weight: 700;
}

/* ==========================================
   MAIN CONTENT
========================================== */

.dashboard-page .main {
    flex: 1;
    padding: 40px;
}

/* ==========================================
   HEADER
========================================== */

.dashboard-page .dashboard-header {
    margin-bottom: 30px;
}

.dashboard-page .dashboard-header h1 {
    text-align: left;
    font-size: 24px;
    margin-bottom: 6px;
}

/* ==========================================
   KPI (remplace stats-grid)
========================================== */

.dashboard-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-page .stat {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(0,0,0,.05);
    text-align: left;
}

.dashboard-page .stat-label {
    font-size: 13px;
    text-transform: uppercase;
    color: #6b7280;
}

.dashboard-page .stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    margin-top: 6px;
}

/* ==========================================
   CARDS
========================================== */

.dashboard-page .card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    margin-bottom: 24px;
}

.dashboard-page .card h2 {
    font-size: 16px;
    margin-bottom: 15px;
}

/* ==========================================
   TABLES
========================================== */

.dashboard-page .table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    box-shadow: none;
}

.dashboard-page .table th {
    text-align: left;
    font-size: 13px;
    padding: 12px;
    color: #6b7280;
    border-bottom: 2px solid #e5e7eb;
}

.dashboard-page .table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.dashboard-page .table tbody tr:hover {
    background: #fefce8;
}

/* ==========================================
   ACTIONS GRID
========================================== */

.dashboard-page .actions-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-page .actions-grid .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* ==========================================
   BUTTONS
========================================== */

.dashboard-page .btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
}

.dashboard-page .btn.secondary {
    background: #e5e7eb;
}

.dashboard-page .btn.secondary:hover {
    background: #d1d5db;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 900px) {

    .dashboard-page .layout {
        flex-direction: column;
    }

    .dashboard-page .sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
        gap: 8px;
    }

    .dashboard-page .sidebar h2 {
        display: none;
    }

    .dashboard-page .sidebar a {
        white-space: nowrap;
    }

    .dashboard-page .main {
        padding: 20px;
    }
}
