/**
 * EDCI Dynamic Dashboard Styles & Badges
 */

/* =========================================================
   STATUS BADGES
   ========================================================= */
.edci-status-badge-wrap {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.edci-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    width: fit-content;
}

.edci-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.edci-badge-active,
.edci-badge-approved,
.edci-badge-published {
    background-color: var(--edci-soft-green, #EDF7E7);
    color: var(--edci-growth-green, #61A52E);
}
.edci-badge-active .edci-badge-dot,
.edci-badge-approved .edci-badge-dot,
.edci-badge-published .edci-badge-dot {
    background-color: var(--edci-growth-green, #61A52E);
}

.edci-badge-inactive,
.edci-badge-draft {
    background-color: var(--edci-soft-blue, #EDF5FC);
    color: var(--edci-tech-blue, #0C5698);
}

.edci-badge-expired,
.edci-badge-rejected {
    background-color: #FDE8E8;
    color: var(--edci-error-red, #D9383A);
}
.edci-badge-expired .edci-badge-dot,
.edci-badge-rejected .edci-badge-dot {
    background-color: var(--edci-error-red, #D9383A);
}

.edci-badge-review,
.edci-badge-submitted {
    background-color: var(--edci-soft-orange, #FFF0D8);
    color: var(--edci-energy-orange, #EA8E19);
}

.edci-badge-returned {
    background-color: var(--edci-soft-orange, #FFF0D8);
    color: var(--edci-energy-orange, #EA8E19);
}

.edci-badge-not-created {
    background-color: #F1F5F9 !important;
    color: #64748B !important;
    border: 1px solid var(--edci-border, #DCE5EE) !important;
}

/* Reset Elementor wrapper container for portfolio status pill */
.edci-portfolio-status-pill-wrap,
[data-id="797d0d44"] {
    background-color: transparent !important;
    padding: 0 !important;
    border: none !important;
}

[data-id="61ab91da"] p {
    margin: 0 !important;
    color: inherit !important;
}

.edci-validity-text {
    font-size: 12px;
    color: var(--edci-muted-text, #68788C);
}

.edci-text-danger {
    color: var(--edci-error-red, #D9383A) !important;
}

/* =========================================================
   PROFILE COMPLETION BAR
   ========================================================= */
.edci-progress-widget {
    background: #FFFFFF;
    border: 1px solid var(--edci-border, #DCE5EE);
    border-radius: var(--edci-radius-md, 10px);
    padding: 18px 20px;
}

.edci-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--edci-primary-navy, #0A224C);
}

.edci-progress-track {
    width: 100%;
    height: 8px;
    background-color: var(--edci-page-bg, #F6F9FC);
    border-radius: 4px;
    overflow: hidden;
}

.edci-progress-fill,
.edci-profile-progress-fill {
    width: var(--edci-profile-completion, 0%) !important;
    max-width: 100% !important;
    min-height: 10px !important;
    height: 100% !important;
    background-color: var(--edci-tech-blue, #0C5698) !important;
    border-radius: 20px !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.edci-profile-progress-track {
    width: 100% !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    background-color: var(--edci-soft-blue, #EDF5FC) !important;
}

.edci-progress-action {
    margin-top: 10px;
    font-size: 13px;
}

.edci-btn-link {
    color: var(--edci-growth-green, #61A52E);
    text-decoration: none;
    font-weight: 600;
}
.edci-btn-link:hover {
    text-decoration: underline;
}

/* =========================================================
   DASHBOARD CARDS
   ========================================================= */
.edci-dash-card {
    background: #FFFFFF;
    border: 1px solid var(--edci-border, #DCE5EE);
    border-radius: var(--edci-radius-md, 10px);
    padding: 24px;
    box-shadow: var(--edci-shadow-sm);
}

.edci-dash-card-empty {
    text-align: center;
    padding: 36px 24px;
}

.edci-dash-card-icon i {
    font-size: 40px;
    width: 40px;
    height: 40px;
    color: var(--edci-tech-teal, #0391B2);
    margin-bottom: 12px;
}

.edci-dash-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.edci-reviewer-feedback-box {
    background-color: var(--edci-soft-orange, #FFF0D8);
    border-left: 4px solid var(--edci-energy-orange, #EA8E19);
    padding: 14px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 13px;
}

.edci-reviewer-feedback-box p {
    margin: 4px 0 0 0;
}

.edci-dash-card-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* =========================================================
   MEMBERSHIP SUMMARY TABLE
   ========================================================= */
.edci-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.edci-table th,
.edci-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--edci-border, #DCE5EE);
}

.edci-table th {
    color: var(--edci-muted-text, #68788C);
    font-weight: 600;
    width: 35%;
}

/* =========================================================
   DASHBOARD SHELL & RESPONSIVE LAYOUT SYSTEM
   ========================================================= */
.edci-dashboard-shell {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 100vh;
    background-color: var(--edci-page-bg, #F6F9FC);
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    position: relative;
    overflow-x: hidden;
}

.edci-dashboard-sidebar {
    box-sizing: border-box;
    width: 350px !important;
    flex: 0 0 350px !important;
    flex-shrink: 0 !important;
    position: relative;
    z-index: 100;
}

.edci-dashboard-main {
    box-sizing: border-box;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: calc(100% - 350px) !important;
    max-width: calc(100% - 350px) !important;
}

/* =========================================================
   NAVIGATION BUTTON FULL-LABEL CLICKABILITY (ALL VIEWPORTS)
   ========================================================= */
.edci-dashboard-sidebar .elementor-widget-icon-box,
.edci-dashboard-sidebar-container .edci-sidebar-nav-item,
[data-settings*="Dashboard Side bar"] .elementor-widget-icon-box {
    position: relative !important;
    cursor: pointer !important;
}

.edci-dashboard-sidebar .elementor-widget-icon-box .elementor-widget-container,
.edci-dashboard-sidebar .elementor-widget-icon-box .elementor-icon-box-wrapper,
[data-settings*="Dashboard Side bar"] .elementor-widget-icon-box .elementor-widget-container,
[data-settings*="Dashboard Side bar"] .elementor-widget-icon-box .elementor-icon-box-wrapper {
    position: relative !important;
    cursor: pointer !important;
}

/* Stretch the anchor to cover the entire icon box boundary */
.edci-dashboard-sidebar .elementor-widget-icon-box .elementor-icon-box-title a::after,
.edci-dashboard-sidebar .elementor-widget-icon-box .elementor-icon-box-icon a::after,
[data-settings*="Dashboard Side bar"] .elementor-widget-icon-box .elementor-icon-box-title a::after,
[data-settings*="Dashboard Side bar"] .elementor-widget-icon-box .elementor-icon-box-icon a::after {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 10 !important;
    cursor: pointer !important;
    border-radius: 8px !important;
}

.edci-dashboard-sidebar .elementor-widget-icon-box *,
[data-settings*="Dashboard Side bar"] .elementor-widget-icon-box * {
    cursor: pointer !important;
}

/* =========================================================
   UNIVERSAL ACTIVE NAVIGATION TAB INDICATOR (ALL VIEWPORTS)
   ========================================================= */
/* Remove border/shadow from outer widget wrapper */
.edci-dashboard-sidebar .elementor-widget-icon-box.is-active,
.edci-dashboard-sidebar .elementor-widget-icon-box[style*="#13366C"],
.edci-dashboard-sidebar .elementor-widget-icon-box[data-settings*="#13366C"] {
    background: transparent !important;
    border: none !important;
    border-left: none !important;
    box-shadow: none !important;
}

/* Apply active pill styling directly to inner widget container & nav items */
.edci-dashboard-sidebar .elementor-widget-icon-box.is-active .elementor-widget-container,
.edci-dashboard-sidebar .elementor-widget-icon-box[style*="#13366C"] .elementor-widget-container,
.edci-dashboard-sidebar .elementor-widget-icon-box[data-settings*="#13366C"] .elementor-widget-container,
.edci-dashboard-sidebar .edci-sidebar-nav-item.is-active,
.edci-sidebar-nav-item.is-active {
    background-color: var(--edci-secondary-navy, #13366C) !important;
    border: none !important;
    border-left: 4px solid var(--edci-energy-orange, #EA8E19) !important;
    border-radius: 8px !important;
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(10, 34, 76, 0.12) !important;
    transition: all 0.2s ease !important;
}

/* Hover state for inactive sidebar items */
.edci-dashboard-sidebar .elementor-widget-icon-box:not(.is-active):hover .elementor-widget-container {
    background-color: var(--edci-soft-blue, #EDF5FC) !important;
    border-left: 4px solid var(--edci-tech-blue, #0C5698) !important;
    border-radius: 8px !important;
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}

.edci-dashboard-sidebar .elementor-widget-icon-box.is-active .elementor-icon-box-title,
.edci-dashboard-sidebar .elementor-widget-icon-box.is-active .elementor-icon-box-title a,
.edci-dashboard-sidebar .elementor-widget-icon-box.is-active .elementor-icon-box-icon i,
.edci-dashboard-sidebar .elementor-widget-icon-box.is-active .elementor-icon,
.edci-dashboard-sidebar .elementor-widget-icon-box.is-active span,
.edci-dashboard-sidebar .elementor-widget-icon-box[style*="#13366C"] .elementor-icon-box-title,
.edci-dashboard-sidebar .elementor-widget-icon-box[style*="#13366C"] .elementor-icon-box-title a,
.edci-dashboard-sidebar .elementor-widget-icon-box[style*="#13366C"] .elementor-icon-box-icon i,
.edci-dashboard-sidebar .edci-sidebar-nav-item.is-active * {
    color: #FFFFFF !important;
    font-weight: 600 !important;
}

/* =========================================================
   STAT CARDS MODERN COMPACT LAYOUT & ANTI-DISTORTION
   ========================================================= */
.edci-stat-cards-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    width: 100% !important;
}

.edci-stat-card {
    background: #FFFFFF !important;
    border: 1px solid var(--edci-border, #DCE5EE) !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    box-shadow: 0px 4px 14px 0px rgba(10, 34, 76, 0.05) !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    min-height: auto !important;
    box-sizing: border-box !important;
}

/* Force icon circle to remain 52px fixed, zero stretch / no oval */
.edci-stat-card > .e-con:first-child,
.edci-stat-card > div:first-child,
.edci-stat-card [data-settings*="Portfolio Icon"] {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    border-radius: 50% !important;
    flex: 0 0 52px !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.edci-stat-card > .e-con:first-child .elementor-icon,
.edci-stat-card > div:first-child .elementor-icon {
    font-size: 22px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Standardize All Circular Icon Badges (Action Cards, Profile Completion, Membership Overview) */
.edci-action-card > .e-con:first-child,
.edci-action-card > div:first-child,
.edci-action-card [data-element_type="container"]:first-child,
.edci-overview-icon-badge,
.edci-progress-icon-badge,
.edci-icon-circle-badge,
[data-id="212c3e4a"],
[data-id="4a9dcee3"] {
    width: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
    height: 52px !important;
    min-height: 52px !important;
    max-height: 52px !important;
    border-radius: 50% !important;
    border-radius: 9999px !important;
    flex: 0 0 52px !important;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.edci-action-card > .e-con:first-child,
.edci-action-card > div:first-child {
    margin: 0 auto 12px auto !important;
}

.edci-overview-icon-badge,
.edci-progress-icon-badge,
[data-id="212c3e4a"],
[data-id="4a9dcee3"] {
    margin: 0 12px 0 0 !important;
}

.edci-action-card > .e-con:first-child .elementor-icon,
.edci-action-card > div:first-child .elementor-icon,
.edci-overview-icon-badge .elementor-icon,
.edci-progress-icon-badge .elementor-icon,
[data-id="212c3e4a"] .elementor-icon,
[data-id="4a9dcee3"] .elementor-icon {
    font-size: 22px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.edci-overview-icon-badge .elementor-widget-container,
.edci-progress-icon-badge .elementor-widget-container,
.edci-overview-icon-badge .elementor-icon-wrapper,
.edci-progress-icon-badge .elementor-icon-wrapper,
[data-id="212c3e4a"] .elementor-icon-wrapper,
[data-id="4a9dcee3"] .elementor-icon-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Stat Card Content Column */
.edci-stat-card > .e-con:last-child,
.edci-stat-card > div:last-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 3px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.edci-stat-card .elementor-widget-heading h2,
.edci-stat-card .elementor-widget-heading h3 {
    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    color: var(--edci-primary-navy, #0A224C) !important;
}

.edci-stat-card .elementor-widget-text-editor p {
    font-size: 13px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    color: var(--edci-muted-text, #68788C) !important;
}

.edci-stat-card .elementor-widget-button .elementor-button {
    padding: 0 !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--edci-tech-blue, #0C5698) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-top: 2px !important;
    border: none !important;
    box-shadow: none !important;
}

/* =========================================================
   PUBLIC HEADER & MOBILE DASHBOARD TOP BAR Z-INDEX SYSTEM
   ========================================================= */
#masthead,
header#masthead,
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    border-bottom: 1px solid var(--edci-border, #DCE5EE) !important;
    box-shadow: 0 4px 20px rgba(10, 34, 76, 0.05) !important;
    overflow: visible !important;
}

#masthead > div,
#masthead .elementor,
#masthead .ehf-header {
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure inner public header container stays in relative flow without nested sticky/margins */
#edci_public_header,
#edci-public-header,
.edci-public-header {
    position: relative !important;
    top: auto !important;
    z-index: auto !important;
    margin: 0 !important;
}

@media (min-width: 783px) {
    body.admin-bar #masthead,
    body.admin-bar header#masthead,
    body.admin-bar .site-header {
        top: 32px !important;
    }
}

@media (min-width: 601px) and (max-width: 782px) {
    body.admin-bar #masthead,
    body.admin-bar header#masthead,
    body.admin-bar .site-header {
        top: 46px !important;
    }
}

@media (max-width: 600px) {
    body.admin-bar #masthead,
    body.admin-bar header#masthead,
    body.admin-bar .site-header {
        top: 0 !important;
    }
}

/* Global header mobile navigation dropdown */
.edci-navigation-panel,
[data-edci-navigation] .edci-navigation-panel {
    z-index: 10000 !important;
}

.edci-mobile-dash-bar {
    display: none;
    box-sizing: border-box;
    width: 100%;
    background: #FFFFFF;
    border-bottom: 1px solid var(--edci-border, #DCE5EE);
    padding: 12px 16px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(10, 34, 76, 0.05);
    align-items: center;
    justify-content: space-between;
}

.edci-mobile-dash-status {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.edci-mobile-dash-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--edci-soft-blue, #EDF5FC);
    color: var(--edci-primary-navy, #0A224C);
    padding: 6px 12px;
    border-radius: 20px;
    font-family: var(--edci-font-heading, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid var(--edci-border, #DCE5EE);
    max-width: 100%;
}

.dash-text-full {
    display: inline;
}

.dash-text-short {
    display: none;
}

.edci-mobile-dash-badge i {
    color: var(--edci-tech-blue, #0C5698);
    font-size: 14px;
}

.edci-mobile-dash-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--edci-primary-navy, #0A224C);
    color: #FFFFFF !important;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: var(--edci-font-heading, 'Poppins', sans-serif);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(10, 34, 76, 0.15);
    white-space: nowrap;
    flex-shrink: 0;
}

.edci-mobile-dash-toggle:hover,
.edci-mobile-dash-toggle:focus {
    background: var(--edci-secondary-navy, #13366C);
    box-shadow: 0 4px 12px rgba(10, 34, 76, 0.25);
}

.edci-mobile-dash-toggle:active {
    transform: scale(0.97);
}

.edci-mobile-dash-toggle .dash-icon-bars {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    width: 14px;
}

.edci-mobile-dash-toggle .dash-icon-bars span {
    display: block;
    height: 2px;
    width: 100%;
    background: #FFFFFF;
    border-radius: 1px;
    transition: all 0.2s ease;
}

/* =========================================================
   MOBILE DRAWER BACKDROP & HEADER
   ========================================================= */
.edci-dash-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 34, 76, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999998 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.edci-dash-drawer-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--edci-border, #DCE5EE);
}

.edci-dash-drawer-title {
    margin: 0;
    font-family: var(--edci-font-heading, 'Poppins', sans-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--edci-primary-navy, #0A224C);
    display: flex;
    align-items: center;
    gap: 8px;
}

.edci-dash-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--edci-soft-blue, #EDF5FC);
    color: var(--edci-primary-navy, #0A224C);
    border: 1px solid var(--edci-border, #DCE5EE);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.edci-dash-drawer-close:hover,
.edci-dash-drawer-close:focus {
    background: #FEF2F2;
    color: var(--edci-error-red, #D9383A);
    border-color: #FECACA;
    transform: rotate(90deg);
}

/* Prevent horizontal scroll artifacts on mobile viewports while preserving position: sticky */
html, body {
    overflow-x: clip !important;
    overflow-y: visible !important;
}

body.edci-drawer-active {
    overflow: hidden !important;
    overflow-x: hidden !important;
    touch-action: none !important;
}

/* =========================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ========================================================= */
@media (max-width: 1024px) {
    /* Shell Stacking */
    .edci-dashboard-shell {
        flex-direction: column !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* Show Mobile Top Bar below header */
    .edci-mobile-dash-bar {
        display: flex !important;
        position: sticky !important;
        top: var(--edci-header-height, 68px) !important;
        z-index: 900 !important;
        background: #FFFFFF !important;
        margin: 0 !important;
    }

    body.admin-bar .edci-mobile-dash-bar {
        top: calc(32px + var(--edci-header-height, 68px)) !important;
    }

    @media (min-width: 601px) and (max-width: 782px) {
        body.admin-bar .edci-mobile-dash-bar {
            top: calc(46px + var(--edci-header-height, 68px)) !important;
        }
    }

    @media (max-width: 600px) {
        body.admin-bar .edci-mobile-dash-bar {
            top: var(--edci-header-height, 61px) !important;
        }

        .dash-text-full {
            display: none !important;
        }
        .dash-text-short {
            display: inline !important;
        }
        .edci-mobile-dash-toggle {
            padding: 6px 10px !important;
            font-size: 12px !important;
            gap: 6px !important;
        }
        .edci-mobile-dash-badge {
            font-size: 12px !important;
            padding: 5px 10px !important;
        }
    }

    /* Convert Sidebar into Off-Canvas Drawer */
    .edci-dashboard-sidebar,
    aside.edci-dashboard-sidebar-container.edci-dashboard-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 320px !important;
        max-width: 86vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: #FFFFFF !important;
        z-index: 999999 !important;
        box-shadow: 10px 0 35px rgba(10, 34, 76, 0.18) !important;
        transform: translateX(-100%) !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease !important;
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain !important;
        touch-action: pan-y !important;
        -webkit-overflow-scrolling: touch !important;
        padding: 20px 16px 36px 16px !important;
        border-right: 1px solid var(--edci-border, #DCE5EE) !important;
        box-sizing: border-box !important;
    }

    .edci-dashboard-sidebar.is-drawer-open {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    /* Strict Vertical Stack & Full-Width Enforcements for all Drawer Elements */
    .edci-dashboard-sidebar > *,
    .edci-dashboard-sidebar > .e-con,
    .edci-dashboard-sidebar .e-con,
    .edci-dashboard-sidebar .elementor-element,
    .edci-dashboard-sidebar .edci-dashboard-nav-card,
    .edci-dashboard-sidebar .edci-sidebar-nav-card,
    .edci-dashboard-sidebar .edci-need-help-card,
    .edci-dashboard-sidebar .edci-sidebar-support-card,
    .edci-dashboard-sidebar-container > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .edci-dashboard-sidebar a[href*="/contact/"],
    .edci-dashboard-sidebar .edci-need-help-card a,
    .edci-dashboard-sidebar .edci-sidebar-support-card a,
    .edci-dashboard-sidebar .elementor-button {
        font-size: 12px !important;
        letter-spacing: 0.5px !important;
        font-weight: 600 !important;
        padding: 8px 14px !important;
        border-radius: 6px !important;
        width: 100% !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    .edci-dashboard-sidebar .e-con {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
    }

    .edci-dash-drawer-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-bottom: 14px !important;
        margin-bottom: 14px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
        border-bottom: 1px solid var(--edci-border, #DCE5EE) !important;
    }

    .edci-dash-drawer-header * {
        flex-shrink: 0 !important;
    }

    /* Show Drawer Backdrop */
    .edci-dash-drawer-backdrop {
        display: block !important;
    }
    .edci-dash-drawer-backdrop.is-drawer-open {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Main Area Full Width */
    .edci-dashboard-main {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px 16px 32px 16px !important;
    }

    /* Responsive Sidebar Card Inside Drawer */
    .edci-dashboard-sidebar .edci-dashboard-nav-card,
    .edci-dashboard-sidebar .edci-sidebar-nav-card {
        border: none !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .edci-dashboard-sidebar .edci-need-help-card,
    .edci-dashboard-sidebar .edci-sidebar-support-card {
        margin-top: 16px !important;
    }
}

/* =========================================================
   ANTI-DISTORTION & CARD MOBILE PERFECTION (< 768px)
   ========================================================= */
@media (max-width: 767px) {
    .edci-dashboard-main {
        padding: 14px 12px 28px 12px !important;
    }

    /* Mobile Dashboard Bar sticky top offset below header */
    .edci-mobile-dash-bar {
        top: var(--edci-header-height, 61px) !important;
    }
    body.admin-bar .edci-mobile-dash-bar {
        top: var(--edci-header-height, 61px) !important;
    }
    @media (min-width: 601px) and (max-width: 782px) {
        body.admin-bar .edci-mobile-dash-bar {
            top: calc(46px + var(--edci-header-height, 61px)) !important;
        }
    }

    /* Prevent text blowout and horizontal scroll */
    .edci-dashboard-main,
    .edci-dashboard-main * {
        box-sizing: border-box !important;
        max-width: 100% !important;
    }

    /* Welcome Section Stacking */
    .edci-welcome-section {
        flex-direction: column;
        padding: 18px 16px;
        gap: 16px;
        text-align: center;
    }

    .edci-welcome-section .elementor-widget-heading h2 {
        font-size: 22px;
        line-height: 1.3;
    }

    .edci-welcome-illustration {
        max-width: 180px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
    }

    .edci-welcome-illustration img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    /* Stat Cards Mobile: 2 Column Grid per Row & Internal Layout [ {icon} | {Status content with button} ] */
    .edci-stat-cards-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .edci-stat-card {
        width: calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
        flex: 0 0 calc(50% - 4px) !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        /* Visual properties free of !important for Elementor GUI customization */
        padding: 10px 8px;
        min-height: 86px;
        border-radius: 10px;
        background: #FFFFFF;
    }

    /* Left side: [ {icon} ] */
    .edci-stat-card > .e-con:first-child,
    .edci-stat-card > div:first-child {
        flex: 0 0 36px !important;
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
        border-radius: 50%;
        margin: 0;
        padding: 0;
    }

    .edci-stat-card > .e-con:first-child i,
    .edci-stat-card > .e-con:first-child svg {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    /* Right side: [ {Status content with button} ] */
    .edci-stat-card > .e-con:last-child,
    .edci-stat-card > div:last-child {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: flex-start !important;
        overflow: hidden !important;
        gap: 2px;
        text-align: left;
    }

    .edci-stat-card .edci-portfolio-status-pill-wrap,
    .edci-stat-card .edci-status-badge {
        font-size: 10px;
        font-weight: 600;
        padding: 2px 5px;
        border-radius: 4px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .edci-stat-card .elementor-widget-heading h3,
    .edci-stat-card h3,
    .edci-stat-card .elementor-heading-title {
        font-size: 13px;
        font-weight: 700;
        line-height: 1.15;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .edci-stat-card .elementor-widget-text-editor,
    .edci-stat-card .elementor-widget-text-editor p,
    .edci-stat-card p {
        font-size: 10.5px;
        line-height: 1.2;
        margin: 0;
        color: #64748B;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .edci-stat-card a.elementor-button,
    .edci-stat-card .elementor-button,
    .edci-stat-card a {
        font-size: 11px;
        font-weight: 600;
        padding: 2px 0;
        margin: 2px 0 0 0;
        line-height: 1.2;
        background: transparent;
        color: var(--edci-tech-blue, #0C5698);
        border: none;
        box-shadow: none;
        text-decoration: underline;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    /* Portfolio Stepper & Form Action Buttons Scaling on Mobile */
    .edci-form-actions-row {
        flex-direction: column-reverse !important;
        gap: 10px !important;
        align-items: stretch !important;
        width: 100% !important;
    }
    .edci-form-actions-row > div {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }
    .edci-form-actions-row .edci-btn,
    .edci-modern-form .edci-btn {
        font-size: 13px !important;
        padding: 10px 14px !important;
        min-height: 42px !important;
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .edci-repeater-container .edci-btn,
    .edci-repeater-row .edci-repeater-remove-btn {
        font-size: 12px !important;
        padding: 6px 10px !important;
    }

    /* Action Cards 2-Column Compact Grid on Mobile */
    .edci-action-cards-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        flex-direction: unset !important;
    }

    .edci-action-card {
        width: 100% !important;
        flex: none !important;
        padding: 14px 10px !important;
        text-align: center !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .edci-action-card > .e-con:first-child,
    .edci-action-card > div:first-child {
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;
        flex: 0 0 44px !important;
        margin: 0 auto 8px auto !important;
    }

    .edci-action-card .elementor-icon {
        font-size: 18px;
    }

    .edci-action-card h3,
    .edci-action-card .elementor-widget-heading h3 {
        font-size: 13.5px;
        font-weight: 700;
        line-height: 1.2;
        margin: 0 0 4px 0;
    }

    .edci-action-card p,
    .edci-action-card .elementor-widget-text-editor p {
        font-size: 11px;
        line-height: 1.3;
        margin: 0 0 8px 0;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .edci-action-card .elementor-button {
        padding: 6px 12px;
        font-size: 11px;
        min-height: 32px;
        width: 100%;
        justify-content: center;
    }

    .edci-action-card:active {
        transform: scale(0.985);
    }

    /* Portfolio 5-Step Horizontal Stepper on Mobile */
    .edci-portfolio-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        gap: 8px !important;
        padding: 4px 4px 10px 4px !important;
        margin: 12px 0 16px 0 !important;
        scrollbar-width: thin;
        scrollbar-color: var(--edci-border, #DCE5EE) transparent;
    }

    .edci-portfolio-tabs::-webkit-scrollbar {
        height: 4px;
    }

    .edci-portfolio-tabs::-webkit-scrollbar-thumb {
        background-color: var(--edci-border, #DCE5EE);
        border-radius: 4px;
    }

    .edci-portfolio-tabs .edci-tab-btn {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
        scroll-snap-align: start !important;
        padding: 8px 14px !important;
        font-size: 12.5px !important;
        border-radius: 20px !important;
    }

    /* Overview Section Columns */
    .edci-overview-row {
        flex-direction: column !important;
        gap: 16px !important;
    }

    .edci-overview-col {
        width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Membership Table Mobile Formatting */
    .edci-table {
        display: block;
        width: 100%;
    }

    .edci-table tbody,
    .edci-table tr {
        display: block;
        width: 100%;
    }

    .edci-table tr {
        padding: 10px 0;
        border-bottom: 1px solid var(--edci-border, #DCE5EE);
    }

    .edci-table th,
    .edci-table td {
        display: block;
        width: 100% !important;
        padding: 3px 0 !important;
        border-bottom: none !important;
    }

    .edci-table th {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--edci-muted-text, #68788C);
    }

    .edci-table td {
        font-size: 14.5px;
        font-weight: 500;
        color: var(--edci-primary-navy, #0A224C);
    }

    /* Progress Widget Mobile */
    .edci-progress-widget {
        padding: 16px 14px !important;
    }

    .edci-dash-card {
        padding: 18px 14px !important;
    }

    /* Touch Target Optimization (Min 44px) */
    .edci-sidebar-nav-item {
        min-height: 46px !important;
        padding: 12px 14px !important;
    }

    /* Icon Badges Absolute Symmetry on Mobile (Profile Completion & Membership Overview) */
    .edci-overview-icon-badge,
    .edci-progress-icon-badge,
    .edci-icon-circle-badge,
    [data-id="212c3e4a"],
    [data-id="4a9dcee3"],
    .edci-action-card > .e-con:first-child,
    .edci-action-card > div:first-child {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        height: 52px !important;
        min-height: 52px !important;
        max-height: 52px !important;
        flex: 0 0 52px !important;
        flex-shrink: 0 !important;
        aspect-ratio: 1 / 1 !important;
        border-radius: 50% !important;
        border-radius: 9999px !important;
    }

    /* Prevent text columns next to icons from shrinking to zero */
    [data-id="bbf3a95"],
    [data-id="31c78b2"] {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
}

/* Reduced Motion Safety */
@media (prefers-reduced-motion: reduce) {
    .edci-dashboard-sidebar,
    .edci-dash-drawer-backdrop,
    .edci-mobile-dash-toggle {
        transition: none !important;
    }
}

/* =========================================================
   MEDIA & ASSET FALLBACK / BROKEN IMAGE SHIELD
   ========================================================= */
img.edci-img-error,
img[src=""],
img:not([src]),
.elementor-widget-image img[src=""],
.elementor-widget-image img:not([src]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* =========================================================
   PORTFOLIO 5-TAB STEPPER & REPEATER STYLES (v2)
   ========================================================= */
.edci-portfolio-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 24px;
    border-bottom: 2px solid var(--edci-border, #DCE5EE);
    padding-bottom: 8px;
}

.edci-portfolio-tabs .edci-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #FFFFFF;
    border: 1px solid var(--edci-border, #DCE5EE);
    border-radius: 6px;
    color: var(--edci-muted-text, #68788C);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edci-portfolio-tabs .edci-tab-btn:hover {
    color: var(--edci-primary-navy, #0A224C);
    border-color: var(--edci-tech-blue, #0C5698);
}

.edci-portfolio-tabs .edci-tab-btn.is-active {
    background: var(--edci-primary-navy, #0A224C);
    color: #FFFFFF;
    border-color: var(--edci-primary-navy, #0A224C);
    box-shadow: 0 2px 6px rgba(10, 34, 76, 0.15);
}

.edci-tab-panel {
    display: none;
}

.edci-tab-panel.is-active {
    display: block;
    animation: edciFadeIn 0.25s ease-in-out;
}

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

.edci-repeater-row {
    transition: box-shadow 0.2s ease;
}

.edci-repeater-row:hover {
    box-shadow: 0 4px 12px rgba(10, 34, 76, 0.05);
}

.edci-input.has-error,
.edci-select.has-error,
.edci-textarea.has-error {
    border-color: #DC2626 !important;
    background-color: #FEF2F2 !important;
}

/* =========================================================
   TABLET OVERVIEW ROW (2-COLUMN GRID)
   ========================================================= */
@media (min-width: 768px) and (max-width: 1024px) {
    .edci-overview-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: space-between !important;
        gap: 16px !important;
    }
    .edci-overview-row > .edci-overview-col,
    .edci-overview-row > .e-con {
        width: 48.5% !important;
        max-width: 48.5% !important;
        flex: 0 0 48.5% !important;
    }
}

/* =========================================================
   SIDEBAR CONTACT SUPPORT BUTTON SCALING (ALL VIEWPORTS)
   ========================================================= */
.edci-dashboard-sidebar a.elementor-button,
.edci-dashboard-sidebar .elementor-button,
.edci-sidebar-support-card .elementor-button,
.edci-dashboard-sidebar [data-settings*="Need Help"] .elementor-button {
    font-size: 13px;
    font-weight: 600;
    padding: 9px 16px;
    line-height: 1.3;
    letter-spacing: 0.3px;
    border-radius: 6px;
    width: 100%;
    text-align: center;
}

@media (max-width: 1024px) {
    .edci-dashboard-sidebar a.elementor-button,
    .edci-dashboard-sidebar .elementor-button,
    .edci-sidebar-support-card .elementor-button {
        font-size: 13px;
        padding: 9px 14px;
    }
}

@media (max-width: 767px) {
    .edci-dashboard-sidebar a.elementor-button,
    .edci-dashboard-sidebar .elementor-button,
    .edci-sidebar-support-card .elementor-button {
        font-size: 12px;
        padding: 8px 12px;
    }
}

/* =========================================================
   CUSTOM BRANDED FILE UPLOAD COMPONENT (ALL VIEWPORTS)
   ========================================================= */
.edci-custom-file-upload {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.edci-custom-file-upload input[type="file"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.edci-custom-file-upload .edci-file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 600;
    font-family: var(--edci-font-heading, 'Poppins', sans-serif);
    color: var(--edci-primary-navy, #0A224C);
    background: #FFFFFF;
    border: 1px solid var(--edci-primary-navy, #0A224C);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.edci-custom-file-upload .edci-file-upload-btn:hover {
    background: var(--edci-primary-navy, #0A224C);
    color: #FFFFFF;
}

.edci-custom-file-upload .edci-file-chosen-name {
    font-size: 12px;
    color: var(--edci-muted-text, #68788C);
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Portfolio Validation Banner */
.edci-validation-banner {
    display: none;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-left: 4px solid var(--edci-error-red, #D9383A);
    color: #991B1B;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13.5px;
    align-items: center;
    gap: 10px;
}
.edci-validation-banner.is-visible {
    display: flex;
    animation: edciFadeIn 0.25s ease-in-out;
}


