/* ============================================================
   REPORTS PRO STYLES
   ------------------------------------------------------------
   Loaded AFTER reports.css so it can extend cleanly without
   breaking the ribbon, canvas, or fullscreen dashboard mode.

   PURPOSE:
     Adds a professional hero strip at the top of the Reports
     page, matching the Dashboard / Maintenance / Work Orders /
     Assets / Settings pages.

   IMPORTANT:
     - The hero is hidden automatically in dashboard mode
       (body.dashboard-mode) so the fullscreen slideshow is
       completely unaffected.
     - Nothing in this file touches the ribbon, canvas grid,
       slide panel, or slide stage.
   ============================================================ */

/* ============================================================
   1) HERO STRIP
   ------------------------------------------------------------
   Slate-blue gradient header, matching the rest of the app.
   Placed inside <main> as the first child.
   ============================================================ */
.reports-hero {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #152b47 60%, #2a4d7a 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.22);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.reports-hero::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 55%;
    height: 200%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(240, 176, 93, 0.10) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(15deg);
    pointer-events: none;
}

.reports-hero-text {
    position: relative;
    z-index: 1;
    min-width: 260px;
    flex: 1;
}

.reports-hero-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #f0b05d;
    margin-bottom: 6px;
}

.reports-hero-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 6px 0;
    color: #ffffff;
    letter-spacing: -0.2px;
}

.reports-hero-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

/* ---- Action buttons row inside the hero ---- */
.reports-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
    position: relative;
    z-index: 1;
    align-items: center;
}

.reports-hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #f0b05d 0%, #e09d3e 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(240, 176, 93, 0.35);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.reports-hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(240, 176, 93, 0.5);
}

.reports-hero-btn-primary:active {
    transform: translateY(0);
}

.reports-hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.reports-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ---- KPI chips on the right side of the hero ---- */
.reports-hero-kpis {
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.reports-kpi {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    min-width: 92px;
    text-align: center;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.reports-kpi-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.reports-kpi-value {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.reports-kpi-value.kpi-canvas  { color: #8fc8ff; }   /* soft blue */
.reports-kpi-value.kpi-widget  { color: #f0b05d; }   /* amber */
.reports-kpi-value.kpi-slide   { color: #86e29b; }   /* green */

/* ============================================================
   2) HIDE HERO IN DASHBOARD MODE
   ------------------------------------------------------------
   Dashboard mode (fullscreen slideshow) must be completely
   unobstructed. We hide the hero + report-builder-header when
   body.dashboard-mode is present.
   ============================================================ */
body.dashboard-mode .reports-hero {
    display: none !important;
}

/* ============================================================
   3) RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .reports-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px 20px;
    }

    .reports-hero-kpis {
        width: 100%;
    }

    .reports-kpi {
        flex: 1;
        min-width: 0;
        padding: 10px 12px;
    }

    .reports-kpi-value {
        font-size: 18px;
    }
}

@media (max-width: 600px) {
    .reports-hero-title {
        font-size: 20px;
    }

    .reports-hero-actions {
        width: 100%;
    }

    .reports-hero-btn-primary,
    .reports-hero-btn-secondary {
        flex: 1 1 calc(50% - 4px);
        justify-content: center;
        font-size: 12px;
        padding: 10px 12px;
    }

    .reports-hero-kpis {
        flex-wrap: wrap;
    }

    .reports-kpi {
        flex: 1 1 calc(50% - 6px);
    }
}