/* ============================================================================
   Asset & Financial Intelligence — executive dashboard styling.

   Scoped entirely under .ai-executive-page so it never affects any other part
   of the app. Built purely on top of the existing Bootstrap + Radzen
   ("material" theme) design system already used throughout MST.NET — no new
   CSS framework, no new component library, no markup restructuring beyond
   adding this one wrapper class per page.
   ============================================================================ */

/* A filter/Investigate-driven refresh (see OnFilterChangedAsync) dims the existing dashboard
   slightly instead of tearing it down to a full-page spinner — the whole point being that the
   page must never look like it "reloaded from scratch" for what is just a filter change. */
.ai-page-refreshing {
    opacity: 0.7;
    transition: opacity 0.12s ease;
}

.ai-executive-page {
    --ai-accent: #1b6ec2;
    --ai-accent-dark: #124b85;
    --ai-ink: #1f2933;
    --ai-muted: #566270;
    --ai-surface-alt: #f6f9fc;
    --ai-border: #e3e8ef;
    color: var(--ai-ink);
}

/* ---- Page header ---- */

.ai-executive-page h3.fw-bold {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ai-ink);
}

.ai-executive-page .text-muted {
    color: var(--ai-muted) !important;
}

/* The shared "title row" pattern used by Asset Overview, Asset Planning,
   Management Intelligence, and Financial Intelligence: a bordered row
   containing the h3 title + muted subtitle. Give it a subtle banner feel
   instead of a plain rule. */
.ai-executive-page .row.align-items-center.justify-content-between.border-bottom {
    border-bottom: 1px solid var(--ai-border) !important;
    background: linear-gradient(180deg, var(--ai-surface-alt) 0%, transparent 100%);
    border-radius: 0.75rem 0.75rem 0 0;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem !important;
}

/* ---- Section headers (the many `h4/h5.fw-bold.border-bottom` used to
   introduce each card/section throughout every page) ---- */

.ai-executive-page h4.fw-bold.border-bottom,
.ai-executive-page h5.fw-bold.border-bottom,
.ai-executive-page .h4.fw-bold.border-bottom,
.ai-executive-page .h5.fw-bold.border-bottom {
    border-bottom: none !important;
    border-left: 4px solid var(--ai-accent);
    padding: 0.15rem 0 0.15rem 0.75rem !important;
    margin-bottom: 1.1rem !important;
    font-weight: 600;
    letter-spacing: -0.005em;
}

/* ---- Cards (RadzenCard renders as .rz-card; plain Bootstrap cards/borders
   are also refined for the executive-report page, which uses bare
   bordered <div>/<table> markup rather than RadzenCard) ---- */

.ai-executive-page .rz-card {
    border: 1px solid var(--ai-border);
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 8px rgba(16, 24, 40, 0.05);
}

.ai-executive-page .rz-card.border-4 {
    border-left-width: 4px !important;
}

.ai-executive-page .border.rounded {
    border-color: var(--ai-border) !important;
    border-radius: 0.6rem !important;
}

/* KPI figures: bigger, tighter numbers with a more deliberate label above them.
   These labels are non-heading elements carrying only the Bootstrap .h6 size utility class
   (not a real <h6> tag) — a KPI figure is a data value, not a document heading, so it is
   deliberately excluded from the page's heading outline. Matched by class, not tag, so it
   also still covers any literal h6.text-uppercase used elsewhere. */
.ai-executive-page h6.text-uppercase,
.ai-executive-page .h6.text-uppercase {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--ai-muted);
    margin-bottom: 0.35rem;
}

.ai-executive-page .rz-card h3.fw-bold,
.ai-executive-page .rz-card .h3.fw-bold,
.ai-executive-page .fs-3.fw-bold,
.ai-executive-page .fs-4.fw-bold {
    letter-spacing: -0.01em;
}

/* ---- Provenance / source badges ---- */

.ai-executive-page .badge {
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.4em 0.7em;
    border-radius: 999px;
}

.ai-executive-page .badge.bg-secondary {
    background-color: var(--ai-surface-alt) !important;
    color: var(--ai-muted) !important;
    border: 1px solid var(--ai-border);
}

/* ---- Tables / grids (both plain HTML tables and Radzen's rendered
   <table class="rz-grid-table">, which shares standard thead/th markup) ---- */

.ai-executive-page table thead th {
    background-color: var(--ai-surface-alt);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    color: var(--ai-muted);
    border-bottom: 1px solid var(--ai-border) !important;
}

.ai-executive-page table.table-bordered,
.ai-executive-page table.table-bordered td,
.ai-executive-page table.table-bordered th {
    border-color: var(--ai-border);
}

/* ---- Alerts (status/empty/error states) ---- */

.ai-executive-page .alert {
    border-radius: 0.75rem;
    border-width: 1px;
}

/* ---- Buttons ---- */

.ai-executive-page .btn {
    font-weight: 600;
    border-radius: 0.5rem;
}

.ai-executive-page .btn-sm {
    padding: 0.35rem 0.85rem;
}

/* ---- Section rhythm: a little extra breathing room between major blocks ---- */

.ai-executive-page .row.mb-4,
.ai-executive-page .row.g-3.mb-4,
.ai-executive-page .row.g-4.mb-4 {
    margin-bottom: 1.75rem !important;
}

/* ============================================================================
   Executive header bar (Asset Overview)
   ============================================================================ */

.ai-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(180deg, var(--ai-surface-alt) 0%, transparent 100%);
    border-bottom: 1px solid var(--ai-border);
    border-radius: 0.75rem 0.75rem 0 0;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.ai-header-titles {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.ai-header-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    background: linear-gradient(135deg, var(--ai-accent), var(--ai-accent-dark));
}

.ai-header-title {
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ai-ink);
}

.ai-header-subtitle {
    font-size: 0.82rem;
    color: var(--ai-muted);
    font-weight: 500;
}

.ai-header-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.ai-header-source {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ai-muted);
    background: #fff;
    border: 1px solid var(--ai-border);
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
}

/* ============================================================================
   Unified filter / action toolbar
   ============================================================================ */

.ai-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--ai-surface-alt);
    border: 1px solid var(--ai-border);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
}

.ai-toolbar__group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ai-toolbar__label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ai-muted);
    margin: 0;
}

.ai-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-wrap: wrap;
}

/* ============================================================================
   Asset Portfolio Map — premium section
   ============================================================================ */

.ai-map-card.rz-card {
    border-radius: 1rem;
    box-shadow: 0 2px 4px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.07);
}

.ai-map-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-bottom: 1px solid var(--ai-border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.9rem;
}

.ai-map-card__title {
    font-weight: 700;
    margin: 0;
    color: var(--ai-ink);
}

.ai-map-card__count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ai-muted);
    background: var(--ai-surface-alt);
    border: 1px solid var(--ai-border);
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
}

.ai-map-card__map {
    height: 420px;
    width: 100%;
    border-radius: 0.6rem;
    overflow: hidden;
}

.ai-map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-top: 0.75rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--ai-border);
}

.ai-map-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--ai-muted);
}

.ai-map-legend__swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

/* ============================================================================
   Executive KPI card system
   ============================================================================ */

.asset-kpi-section {
    margin-bottom: 0.5rem;
}

.asset-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.asset-kpi-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--ai-border);
    border-radius: 16px;
    padding: 1.25rem 1.25rem 1rem;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.asset-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
}

.asset-kpi-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.asset-kpi-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.asset-kpi-card__icon--primary   { background: rgba(var(--bs-primary-rgb), 0.12);   color: var(--bs-primary); }
.asset-kpi-card__icon--info      { background: rgba(var(--bs-info-rgb), 0.14);      color: var(--bs-info); }
.asset-kpi-card__icon--success   { background: rgba(var(--bs-success-rgb), 0.12);   color: var(--bs-success); }
.asset-kpi-card__icon--warning   { background: rgba(var(--bs-warning-rgb), 0.16);   color: #92600a; }
.asset-kpi-card__icon--danger    { background: rgba(var(--bs-danger-rgb), 0.12);    color: var(--bs-danger); }
.asset-kpi-card__icon--secondary { background: rgba(var(--bs-secondary-rgb), 0.14); color: var(--bs-secondary); }
.asset-kpi-card__icon--dark      { background: rgba(var(--bs-dark-rgb), 0.10);      color: var(--bs-dark); }

.asset-kpi-card__label {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ai-muted);
}

.asset-kpi-card__value {
    font-size: clamp(1.35rem, 1.6vw + 0.7rem, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.15;
    color: var(--ai-ink);
    overflow-wrap: anywhere;
    margin-bottom: 0.2rem;
}

.asset-kpi-card__title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ai-muted);
}

.asset-kpi-card__footer {
    margin-top: 0.85rem;
    padding-top: 0.7rem;
    border-top: 1px solid var(--ai-border);
    font-size: 0.75rem;
    color: var(--ai-muted);
}

.asset-kpi-card--danger {
    border-color: rgba(var(--bs-danger-rgb), 0.35);
    background: linear-gradient(180deg, rgba(var(--bs-danger-rgb), 0.05) 0%, #fff 45%);
}

.asset-kpi-card--success {
    border-color: rgba(var(--bs-success-rgb), 0.3);
}

/* ============================================================================
   Financial exposure insight cards
   ============================================================================ */

.asset-exposure-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.asset-exposure-card {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--ai-border);
    border-radius: 14px;
    padding: 1.1rem 1.25rem;
    height: 100%;
}

.asset-exposure-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.asset-exposure-card__icon--neutral { background: rgba(var(--bs-secondary-rgb), 0.14); color: var(--bs-secondary); }
.asset-exposure-card__icon--warning { background: rgba(var(--bs-warning-rgb), 0.16); color: #92600a; }
.asset-exposure-card__icon--info    { background: rgba(var(--bs-info-rgb), 0.14);    color: var(--bs-info); }

.asset-exposure-card__body {
    min-width: 0;
}

.asset-exposure-card__label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--ai-ink);
    margin-bottom: 0.15rem;
}

.asset-exposure-card__value {
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ai-ink);
    overflow-wrap: anywhere;
}

.asset-exposure-card__note {
    font-size: 0.78rem;
    color: var(--ai-muted);
    margin: 0.2rem 0 0;
}

/* ---- Priority intervention banner: an actual warning state, styled to match
   the rest of the executive card system rather than a generic Bootstrap alert ---- */

.asset-priority-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    background: rgba(var(--bs-danger-rgb), 0.06);
    border: 1px solid rgba(var(--bs-danger-rgb), 0.35);
    border-radius: 14px;
    padding: 1rem 1.25rem;
}

.asset-priority-banner__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    background: var(--bs-danger);
}

.asset-priority-banner__body {
    flex: 1;
    min-width: 200px;
}

.asset-priority-banner__title {
    font-weight: 700;
    margin: 0 0 0.15rem;
    color: var(--ai-ink);
}

.asset-priority-banner__text {
    margin: 0;
    color: var(--ai-ink);
}

/* ============================================================================
   Management insights panel
   ============================================================================ */

.ai-insights-card__title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    border-bottom: 1px solid var(--ai-border);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--ai-ink);
}

.ai-insights-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(var(--bs-warning-rgb), 0.18);
    color: #92600a;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.ai-insights-card__list {
    padding-left: 1.1rem;
}

.ai-insights-card__list li {
    margin-bottom: 0.55rem;
    line-height: 1.5;
}

.ai-insights-card__list li:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   Underlying Assets drill-down panel
   ============================================================================ */

.ai-drilldown-card.rz-card {
    border-left: 4px solid var(--ai-accent);
}

/* ---- Top intervention candidates list ---- */

.asset-priority-list .list-group-item {
    border-left: none;
    border-right: none;
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
}

.asset-priority-list .list-group-item:first-child {
    border-top: none;
}

/* ============================================================================
   Portfolio Intelligence Readiness
   ============================================================================ */

.ai-readiness-card.rz-card {
    border-radius: 1rem;
}

.ai-readiness-badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ai-readiness-badge--strong,
.ai-readiness-dimension--strong .ai-readiness-dimension__status {
    background-color: rgba(var(--bs-success-rgb), 0.16) !important;
    color: #146c43 !important;
}

.ai-readiness-badge--adequate,
.ai-readiness-dimension--adequate .ai-readiness-dimension__status {
    background-color: rgba(var(--bs-info-rgb), 0.16) !important;
    color: #087990 !important;
}

.ai-readiness-badge--limited,
.ai-readiness-dimension--limited .ai-readiness-dimension__status {
    background-color: rgba(var(--bs-warning-rgb), 0.2) !important;
    color: #92600a !important;
}

.ai-readiness-badge--critical,
.ai-readiness-dimension--critical .ai-readiness-dimension__status {
    background-color: rgba(var(--bs-danger-rgb), 0.16) !important;
    color: var(--bs-danger) !important;
}

.ai-readiness-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.ai-readiness-dimension {
    border: 1px solid var(--ai-border);
    border-left-width: 4px;
    border-radius: 0.75rem;
    padding: 0.85rem 1rem;
    background: #fff;
}

.ai-readiness-dimension--strong { border-left-color: var(--bs-success); }
.ai-readiness-dimension--adequate { border-left-color: var(--bs-info); }
.ai-readiness-dimension--limited { border-left-color: var(--bs-warning); }
.ai-readiness-dimension--critical { border-left-color: var(--bs-danger); }

.ai-readiness-dimension__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.ai-readiness-dimension__name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--ai-ink);
}

.ai-readiness-dimension__status {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.ai-readiness-dimension__value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ai-ink);
    margin-bottom: 0.25rem;
}

.ai-readiness-dimension__explanation {
    font-size: 0.78rem;
    color: var(--ai-muted);
    margin: 0;
}

.ai-readiness-dimension__caveat {
    font-size: 0.74rem;
    color: #92600a;
    margin: 0.4rem 0 0;
}

/* ============================================================================
   Executive "What We Know / What We Cannot Yet Measure" summary
   ============================================================================ */

.ai-summary-card.rz-card {
    border-radius: 1rem;
}

.ai-summary-card--know.rz-card {
    border-left: 4px solid var(--bs-success);
}

.ai-summary-card--unknown.rz-card {
    border-left: 4px solid var(--bs-warning);
}

.ai-summary-card__list {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.ai-summary-card__list li {
    margin-bottom: 0.55rem;
    line-height: 1.5;
}

.ai-summary-card__list li:last-child {
    margin-bottom: 0;
}

.ai-summary-card__caveat {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--ai-muted);
}

/* ============================================================================
   Management insights — severity-ranked
   ============================================================================ */

.ai-insight {
    position: relative;
}

.ai-insight__badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    margin-right: 0.4rem;
    vertical-align: middle;
}

.ai-insight--critical .ai-insight__badge {
    background-color: rgba(var(--bs-danger-rgb), 0.16);
    color: var(--bs-danger);
}

.ai-insight--warning .ai-insight__badge {
    background-color: rgba(var(--bs-warning-rgb), 0.2);
    color: #92600a;
}

.ai-insight--positive .ai-insight__badge {
    background-color: rgba(var(--bs-success-rgb), 0.16);
    color: #146c43;
}

.ai-insight--info .ai-insight__badge {
    background-color: var(--ai-surface-alt);
    color: var(--ai-muted);
}

/* ============================================================================
   Empty / not-measurable states for charts whose entire underlying data is
   unavailable — an explanatory message in place of a meaningless all-zero
   chart, never a silently blank card.
   ============================================================================ */

.ai-empty-state {
    background: var(--ai-surface-alt);
    border: 1px dashed var(--ai-border);
    border-radius: 0.6rem;
    padding: 0.85rem 1rem;
    color: var(--ai-muted);
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* ============================================================================
   Asset Detail sidebar
   ============================================================================ */

.ai-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, 0.45);
    z-index: 1040;
    animation: ai-sidebar-fade-in 0.15s ease;
}

.ai-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(720px, 100vw);
    background: #fff;
    box-shadow: -8px 0 24px rgba(16, 24, 40, 0.15);
    z-index: 1041;
    display: flex;
    flex-direction: column;
    animation: ai-sidebar-slide-in 0.18s ease;
}

.ai-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ai-border);
    flex-shrink: 0;
}

.ai-sidebar__body {
    overflow-y: auto;
    padding: 1.25rem;
    flex: 1;
}

@keyframes ai-sidebar-slide-in {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes ai-sidebar-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 576px) {
    .ai-sidebar {
        width: 100vw;
    }
}

/* ============================================================================
   Responsive behaviour
   ============================================================================ */

@media (max-width: 1200px) {
    .asset-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .asset-exposure-grid {
        grid-template-columns: 1fr;
    }

    .ai-readiness-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .asset-kpi-grid {
        grid-template-columns: 1fr;
    }

    .ai-readiness-grid {
        grid-template-columns: 1fr;
    }

    .ai-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .ai-toolbar {
        align-items: stretch;
    }

    .ai-toolbar__actions {
        margin-left: 0;
        width: 100%;
    }

    .ai-toolbar__actions .btn {
        flex: 1;
    }
}

/* Phones and small tablets: stack filters and KPI cards, keep figures inside the card. */
@media (max-width: 767.98px) {
    .ai-executive-page > .row > .col-auto {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
    }

    .ai-executive-page > .row > .col-auto .d-flex {
        flex-wrap: wrap;
    }

    .ai-executive-page > .row > .col-auto .btn {
        flex: 1 1 auto;
    }

    .ai-executive-page .form-select,
    .ai-executive-page .form-control {
        width: 100%;
        min-width: 0 !important;
        max-width: 100%;
    }

    .ai-executive-page .text-muted {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 575.98px) {
    .ai-executive-page .row > .col-6 {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .ai-executive-page .rz-card h3,
    .ai-executive-page .rz-card .h3,
    .ai-executive-page h3.fw-bold {
        font-size: 1.3rem;
        overflow-wrap: anywhere;
    }

    .ai-executive-page .rz-card {
        padding: 0.85rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .ai-executive-page .col-6.col-xl-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .ai-executive-page .col-12.col-xl-6 {
        flex: 0 0 auto;
        width: 50%;
    }
}
