/* ============================================================================
   RAGE — Shared Report / Grid Screen Design System
   ----------------------------------------------------------------------------
   Global (non-isolated) classes so ANY screen can use them without redeclaring.
   Mirrors the Asset Management module, which is the visual reference:
     Rage.Web\Features\Maintenance\AssetManagement\Pages\AssetManagement.razor(.css)
     Rage.Web\Features\Maintenance\AssetManagement\Components\Tabs\AssetLocationReportTab\
   Companion components: Rage.Web\Shared\Components\Report\
   Documentation:        Rage.Core\Documents\rage_web_instructions.md (Part B - Design System)
   ============================================================================ */

/* ---------- 1. Page shell ---------- */

/* Root container for a report page. Satisfies the mandatory 100vh rule. */
.report-page {
    padding: var(--kendo-spacing-6, 2rem);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Centered white title card with the blue accent bar along its top edge. */
.report-header {
    text-align: center;
    margin-bottom: var(--kendo-spacing-4, 2rem);
    background: var(--white-primary);
    padding: var(--kendo-spacing-5, 2.5rem) var(--kendo-spacing-6, 2rem);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    position: relative;
}

.report-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--blue-600);
    border-radius: 12px 12px 0 0;
}

.report-title {
    font-size: var(--text-26);
    font-weight: var(--font-weight-700);
    color: var(--dark-blue-500);
    margin: 0 0 var(--kendo-spacing-1, 0.75rem);
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.report-subtitle {
    font-size: var(--text-14);
    color: #64748b;
    margin: 0;
    font-weight: var(--font-weight-500);
}

/* ---------- 2. Content section ---------- */

/* Grey panel that groups the section heading, note, filters and KPI cards.
   Equivalent of .asset-management-tab-content in the Asset Management module. */
.report-section {
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.report-section-heading {
    margin-bottom: 1.5rem;
}

.report-section-title {
    color: var(--dark-blue-500);
    font-size: var(--text-18);
    font-weight: var(--font-weight-600);
    margin: 0;
}

/* ---------- 3. Filter bar ---------- */

/* Breathing room around the filter controls. Scoped to .report-section so the
   global .commonFormField used by other screens is left untouched. */
.report-section .commonFormField {
    padding: 5px;
    border-radius: 3px;
}

/* Cell in the .commonFormField 4-column grid that holds an action button,
   bottom-aligned so it lines up with the inputs beside it. */
.report-filter-action {
    display: flex;
    padding: 5px;
    align-items: flex-end;
}

/* ---------- 4. Grid toolbar ---------- */

/* Right-aligned action buttons inside a GridToolBarTemplate. */
.report-toolbar {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 8px;
}

.report-toolbar-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

/* ---------- 5. Status chips ----------
   Solid pill badges matching the Marketing Attributes tab in Manage Branches
   (Rage.Web\Features\Maintenance\Manage Branches\Components\Marketing Attributes\MarketingAttribute.razor),
   which is the established Active/Inactive look across the application. */

:root {
    --status-active: #2e8b57;
    --status-inactive: #7a7a7a;
}

.report-status-chip {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: var(--text-11);
    font-weight: var(--font-weight-700);
    color: var(--white-primary);
}

.report-status-active {
    background-color: var(--status-active);
}

.report-status-inactive {
    background-color: var(--status-inactive);
}
