/*
 * MEC User Dashboard 2.0.3 — CVX UI/UX Polish
 * Pure presentation layer. No business logic, routes, REST or permissions.
 */

.cvx-mec-ud {
    --cvx-blue: #004aad;
    --cvx-blue-700: #003b8d;
    --cvx-blue-50: #eef5ff;
    --cvx-blue-25: #f7faff;
    --cvx-gold: #ffb700;
    --cvx-text: #172033;
    --cvx-muted: #667085;
    --cvx-line: #e4e9f0;
    --cvx-soft: #f7f9fc;
    --cvx-success: #16803a;
    --cvx-radius: 14px;
    --cvx-shadow: 0 10px 28px rgba(16, 24, 40, .06);
    font-family: "Lexend Deca", "Lexend", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    color: var(--cvx-text);
}

.cvx-mec-ud *,
.cvx-mec-ud *::before,
.cvx-mec-ud *::after {
    box-sizing: border-box;
}

.cvx-mec-ud h1,
.cvx-mec-ud h2,
.cvx-mec-ud h3,
.cvx-mec-ud h4,
.cvx-mec-ud h5,
.cvx-mec-ud h6,
.cvx-mec-ud button,
.cvx-mec-ud input,
.cvx-mec-ud select,
.cvx-mec-ud textarea {
    font-family: inherit !important;
}

.cvx-mec-ud .mec-ud-main-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--cvx-line) !important;
    border-radius: 18px !important;
    box-shadow: 0 3px 14px rgba(16, 24, 40, .035) !important;
}

/* Header supplied by the shortcode. Keep it light and aligned with CVX. */
.cvx-mec-ud .mec-head-wrap {
    margin: 0 !important;
    background: #fff;
    border-bottom: 1px solid var(--cvx-line);
}

.cvx-mec-ud .mec-ud-wrap-header {
    padding: 18px 24px !important;
    color: var(--cvx-text) !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    font-weight: 750 !important;
    letter-spacing: -.02em;
    text-transform: none !important;
}

/* Main desktop grid: fixes Bootstrap/theme collision that compressed the sidebar. */
@media (min-width: 961px) {
    .cvx-mec-ud #mec-ud-dashboard-app.mec-ud-wrap {
        display: grid !important;
        grid-template-columns: 252px minmax(0, 1fr) !important;
        align-items: stretch !important;
        width: 100% !important;
        margin: 0 !important;
        gap: 0 !important;
        background: #fff !important;
        border-radius: 0 0 18px 18px !important;
        box-shadow: none !important;
    }

    .cvx-mec-ud #mec-ud-dashboard-app > .col-md-3 {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: none !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: #f8fafc !important;
        border-right: 1px solid var(--cvx-line) !important;
        border-radius: 0 !important;
        min-height: 620px !important;
        overflow: visible !important;
    }

    .cvx-mec-ud #mec-ud-dashboard-app > .col-md-9 {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        flex: none !important;
        float: none !important;
        padding: 28px 30px 34px !important;
        margin: 0 !important;
        background: #fff !important;
    }
}

/* Sidebar */
.cvx-mec-ud .mec-ud-sidebar-drawer,
.cvx-mec-ud .mec-ud-menu {
    width: 100% !important;
    max-width: 100% !important;
}

.cvx-mec-ud .mec-ud-menu {
    display: block !important;
    padding: 10px 0 16px !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    white-space: normal !important;
}

.cvx-mec-ud .mec-ud-menu-user {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 12px !important;
    width: auto !important;
    margin: 0 12px 10px !important;
    padding: 13px !important;
    background: #fff !important;
    border: 1px solid var(--cvx-line) !important;
    border-radius: 13px !important;
    text-align: left !important;
}

.cvx-mec-ud .mec-ud-menu-user-avatar {
    width: 54px !important;
    height: 54px !important;
    border: 2px solid #fff !important;
    box-shadow: 0 0 0 1px #dce5f0 !important;
}

.cvx-mec-ud .mec-ud-menu-user-info {
    text-align: left !important;
    overflow: hidden !important;
}

.cvx-mec-ud .mec-ud-menu-user-name {
    color: var(--cvx-text) !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
}

.cvx-mec-ud .mec-ud-menu-user-email {
    margin-top: 3px !important;
    color: var(--cvx-muted) !important;
    font-size: 10.5px !important;
}

.cvx-mec-ud .mec-ud-menu-group {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.cvx-mec-ud .mec-ud-menu a,
.cvx-mec-ud .mec-ud-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    width: calc(100% - 20px) !important;
    min-width: 0 !important;
    min-height: 38px !important;
    margin: 2px 10px !important;
    padding: 8px 10px !important;
    color: #344054 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    white-space: normal !important;
}

.cvx-mec-ud .mec-ud-menu a span,
.cvx-mec-ud .mec-ud-menu-toggle span {
    min-width: 0 !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
}

.cvx-mec-ud .mec-ud-menu a svg,
.cvx-mec-ud .mec-ud-menu-toggle svg {
    width: 16px !important;
    height: 16px !important;
    flex: 0 0 16px !important;
}

.cvx-mec-ud .mec-ud-menu-toggle {
    justify-content: space-between !important;
    cursor: pointer !important;
}

.cvx-mec-ud .mec-ud-menu-toggle > span:nth-child(2) {
    flex: 1 1 auto !important;
    text-align: left !important;
}

.cvx-mec-ud .mec-ud-menu a:hover,
.cvx-mec-ud .mec-ud-menu-toggle:hover {
    color: var(--cvx-blue) !important;
    background: #f2f6fb !important;
    border-color: #e6edf7 !important;
}

.cvx-mec-ud .mec-ud-menu a.active,
.cvx-mec-ud .mec-ud-menu a.is-active {
    color: var(--cvx-blue) !important;
    background: var(--cvx-blue-50) !important;
    border-color: #d6e6ff !important;
    font-weight: 750 !important;
}

.cvx-mec-ud .mec-ud-menu a.active svg path,
.cvx-mec-ud .mec-ud-menu a.active svg,
.cvx-mec-ud .mec-ud-menu a:hover svg path {
    stroke: var(--cvx-blue) !important;
}

.cvx-mec-ud .mec-ud-submenu {
    display: none;
    width: 100% !important;
    padding: 1px 0 6px !important;
    background: transparent !important;
}

.cvx-mec-ud .mec-ud-menu-group.is-open > .mec-ud-submenu {
    display: block !important;
}

.cvx-mec-ud .mec-ud-submenu a,
.cvx-mec-ud .mec-ud-submenu .mec-ud-menu-toggle {
    min-height: 34px !important;
    margin-top: 1px !important;
    margin-bottom: 1px !important;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    padding-left: 14px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
}

.cvx-mec-ud .mec-ud-submenu .mec-ud-submenu a {
    padding-left: 26px !important;
}

.cvx-mec-ud .mec-ud-menu-item-lock {
    margin-left: auto !important;
}

.cvx-mec-ud .mec-ud-menu-logout {
    margin-top: 8px !important;
    border-top: 1px solid transparent !important;
    color: #b42318 !important;
}

.cvx-mec-ud .mec-ud-menu-logout:hover {
    color: #b42318 !important;
    background: #fff1f0 !important;
    border-color: #ffd9d4 !important;
}

/* Content hierarchy */
.cvx-mec-ud .mec-ud-content-wrap,
.cvx-mec-ud .mec-ud-tab-content-wrap {
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.cvx-mec-ud .mec-ud-tab-header {
    margin-bottom: 18px !important;
    gap: 12px !important;
}

.cvx-mec-ud h1.mec-ud-tab-title,
.cvx-mec-ud .mec-ud-tab-title {
    margin: 0 !important;
    color: var(--cvx-text) !important;
    font-size: 20px !important;
    line-height: 1.25 !important;
    font-weight: 760 !important;
    letter-spacing: -.025em !important;
}

.cvx-mec-ud .mec-ud-tab-desc {
    margin-top: 5px !important;
    color: var(--cvx-muted) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.cvx-mec-ud .mec-ud-salutation__title {
    color: var(--cvx-text) !important;
    font-size: 21px !important;
    line-height: 1.25 !important;
    font-weight: 760 !important;
}

.cvx-mec-ud .mec-ud-salutation__date {
    color: var(--cvx-muted) !important;
    font-size: 12px !important;
}

/* Cards / panels */
.cvx-mec-ud .mec-ud-card,
.cvx-mec-ud .mec-ud-dashboard-section,
.cvx-mec-ud .mec-ud-reports-panel {
    border: 1px solid var(--cvx-line) !important;
    border-radius: var(--cvx-radius) !important;
    background: #fff !important;
    box-shadow: none !important;
}

.cvx-mec-ud .mec-ud-card {
    padding: 20px !important;
    margin-bottom: 18px !important;
}

.cvx-mec-ud .mec-ud-dashboard-section {
    padding: 18px !important;
    margin-bottom: 16px !important;
}

.cvx-mec-ud .mec-ud-empty-state {
    min-height: 0 !important;
    margin: 12px 0 !important;
    padding: 28px 22px !important;
    gap: 8px !important;
    background: linear-gradient(180deg, #fbfdff 0%, #f7fbff 100%) !important;
    border: 1px dashed #cfdced !important;
    border-radius: 14px !important;
}

.cvx-mec-ud .mec-ud-empty-icon {
    width: 46px !important;
    height: 46px !important;
    background: var(--cvx-blue-50) !important;
    color: var(--cvx-blue) !important;
}

.cvx-mec-ud .mec-ud-empty-icon svg {
    width: 22px !important;
    height: 22px !important;
}

.cvx-mec-ud .mec-ud-empty-state h4 {
    color: var(--cvx-text) !important;
    font-size: 15px !important;
    font-weight: 740 !important;
    line-height: 1.35 !important;
}

.cvx-mec-ud .mec-ud-empty-state p {
    max-width: 620px;
    margin: 0 auto 4px !important;
    color: var(--cvx-muted) !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
}

/* Buttons — deliberately compact, dashboard scale rather than landing-page scale. */
.cvx-mec-ud .mec-ud-btn,
.cvx-mec-ud a.mec-ud-btn,
.cvx-mec-ud button.mec-ud-btn,
.cvx-mec-ud .mec-ud-submit-profile,
.cvx-mec-ud .mec-ud-submit-organizer,
.cvx-mec-ud .mec-ud-submit-speaker,
.cvx-mec-ud .mec-ud-submit-payments {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 11px !important;
    border-radius: 8px !important;
    font-size: 11.25px !important;
    line-height: 1 !important;
    font-weight: 730 !important;
    letter-spacing: 0 !important;
    box-shadow: none !important;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease !important;
}

.cvx-mec-ud .mec-ud-btn:hover,
.cvx-mec-ud a.mec-ud-btn:hover {
    transform: none !important;
}

.cvx-mec-ud .mec-ud-btn--primary,
.cvx-mec-ud a.mec-ud-btn--primary {
    color: #fff !important;
    background: var(--cvx-blue) !important;
    border-color: var(--cvx-blue) !important;
}

.cvx-mec-ud .mec-ud-btn--primary:hover,
.cvx-mec-ud a.mec-ud-btn--primary:hover {
    background: var(--cvx-blue-700) !important;
    border-color: var(--cvx-blue-700) !important;
}

.cvx-mec-ud .mec-ud-btn--ghost {
    color: #344054 !important;
    background: #fff !important;
    border: 1px solid #d9e1eb !important;
}

.cvx-mec-ud .mec-ud-btn--ghost:hover {
    color: var(--cvx-blue) !important;
    background: var(--cvx-blue-25) !important;
    border-color: #bed4f5 !important;
}

.cvx-mec-ud .mec-ud-btn--icon {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
}

.cvx-mec-ud .mec-ud-btn-group {
    gap: 6px !important;
}

/* Reports toggle buttons */
.cvx-mec-ud .mec-ud-reports-tabs {
    gap: 6px !important;
    margin: 12px 0 16px !important;
}

.cvx-mec-ud .mec-ud-reports-tabs button {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    font-size: 11.25px !important;
    font-weight: 700 !important;
}

/* Forms */
.cvx-mec-ud .mec-profile-form,
.cvx-mec-ud .mec-organizer-form,
.cvx-mec-ud .mec-speaker-form,
.cvx-mec-ud .mec-ud-react-form {
    width: 100% !important;
}

.cvx-mec-ud .mec-ud-react-form label,
.cvx-mec-ud .mec-profile-form label,
.cvx-mec-ud .mec-organizer-form label,
.cvx-mec-ud .mec-speaker-form label {
    margin-bottom: 6px !important;
    color: #344054 !important;
    font-size: 11.5px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
}

.cvx-mec-ud .mec-ud-react-form input[type="text"],
.cvx-mec-ud .mec-ud-react-form input[type="email"],
.cvx-mec-ud .mec-ud-react-form input[type="password"],
.cvx-mec-ud .mec-ud-react-form input[type="url"],
.cvx-mec-ud .mec-ud-react-form input[type="number"],
.cvx-mec-ud .mec-ud-react-form input[type="date"],
.cvx-mec-ud .mec-ud-react-form input[type="search"],
.cvx-mec-ud .mec-ud-react-form select,
.cvx-mec-ud .mec-profile-form input,
.cvx-mec-ud .mec-profile-form select,
.cvx-mec-ud .mec-organizer-form input,
.cvx-mec-ud .mec-organizer-form select,
.cvx-mec-ud .mec-speaker-form input,
.cvx-mec-ud .mec-speaker-form select {
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    color: var(--cvx-text) !important;
    background: #fff !important;
    border: 1px solid #d7e0ea !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 12px !important;
}

.cvx-mec-ud .mec-ud-react-form textarea,
.cvx-mec-ud .mec-profile-form textarea,
.cvx-mec-ud .mec-organizer-form textarea,
.cvx-mec-ud .mec-speaker-form textarea {
    min-height: 100px !important;
    padding: 10px 12px !important;
    color: var(--cvx-text) !important;
    background: #fff !important;
    border: 1px solid #d7e0ea !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.cvx-mec-ud input:focus,
.cvx-mec-ud select:focus,
.cvx-mec-ud textarea:focus {
    outline: none !important;
    border-color: #77a9ec !important;
    box-shadow: 0 0 0 3px rgba(0, 74, 173, .09) !important;
}

.cvx-mec-ud .mec-field-wrapper {
    border-radius: 10px !important;
}

.cvx-mec-ud .mec-ud-form {
    margin-bottom: 14px !important;
}

.cvx-mec-ud .mec-ud-form-hint,
.cvx-mec-ud .mec-ud-image-hint,
.cvx-mec-ud .mec-ud-form-subtitle {
    color: var(--cvx-muted) !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
}

/* Profile avatar */
.cvx-mec-ud .mec-ud-profile-avatar-row {
    gap: 14px !important;
    margin: 10px 0 20px !important;
    padding: 14px !important;
    background: #f9fbfd !important;
    border: 1px solid var(--cvx-line) !important;
    border-radius: 13px !important;
}

.cvx-mec-ud .mec-ud-avatar-box {
    width: 66px !important;
    height: 66px !important;
}

.cvx-mec-ud .mec-ud-avatar-actions {
    gap: 7px !important;
}

/* Reports */
.cvx-mec-ud .mec-ud-reports-filters {
    display: grid !important;
    grid-template-columns: minmax(180px, 1.25fr) minmax(140px, .8fr) minmax(140px, .8fr) minmax(130px, .65fr) !important;
    gap: 10px !important;
    align-items: end !important;
    padding: 14px !important;
    margin-bottom: 14px !important;
    background: #fbfcfe !important;
    border: 1px solid var(--cvx-line) !important;
    border-radius: 13px !important;
}

.cvx-mec-ud .mec-ud-reports-number {
    padding: 18px !important;
    border: 1px solid var(--cvx-line) !important;
    border-radius: 13px !important;
    box-shadow: none !important;
}

.cvx-mec-ud .mec-ud-reports-number strong,
.cvx-mec-ud .mec-ud-reports-number-spec-ticket,
.cvx-mec-ud .mec-ud-reports-number-spec-total {
    color: var(--cvx-blue) !important;
    font-weight: 760 !important;
}

.cvx-mec-ud .mec-ud-reports-chart-wrap {
    border-radius: 13px !important;
    overflow: hidden !important;
}

.cvx-mec-ud .mec-ud-reports-chart-title {
    color: var(--cvx-text) !important;
    font-size: 14px !important;
    font-weight: 730 !important;
}

/* Calendar */
.cvx-mec-ud .mec-ud-events-calendar {
    width: 100% !important;
    min-width: 0 !important;
}

.cvx-mec-ud .mec-ud-events-calendar .mec-wrap,
.cvx-mec-ud .mec-ud-events-calendar .mec-calendar,
.cvx-mec-ud .mec-ud-events-calendar .mec-calendar-events-wrap,
.cvx-mec-ud .mec-ud-events-calendar .mec-calendar-topsec {
    max-width: 100% !important;
    box-shadow: none !important;
}

.cvx-mec-ud .mec-ud-events-calendar .mec-calendar {
    border-color: var(--cvx-line) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

.cvx-mec-ud .mec-ud-events-calendar .mec-calendar-topsec {
    padding: 14px !important;
    background: #fff !important;
    border: 1px solid var(--cvx-line) !important;
    border-radius: 13px !important;
}

.cvx-mec-ud .mec-ud-events-calendar .mec-calendar-topsec h2,
.cvx-mec-ud .mec-ud-events-calendar .mec-calendar-topsec h3 {
    font-size: 18px !important;
    font-weight: 750 !important;
    color: var(--cvx-text) !important;
}

.cvx-mec-ud .mec-ud-events-calendar button,
.cvx-mec-ud .mec-ud-events-calendar .mec-load-month,
.cvx-mec-ud .mec-ud-events-calendar .mec-calendar-topsec a {
    min-height: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    padding: 0 10px !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-size: 11.5px !important;
}

.cvx-mec-ud .mec-ud-events-calendar .mec-calendar-table-head dt,
.cvx-mec-ud .mec-ud-events-calendar .mec-calendar-day {
    font-size: 11.5px !important;
}

/* Tables */
.cvx-mec-ud .mec-table-responsive {
    border: 1px solid var(--cvx-line);
    border-radius: 13px;
    overflow: auto;
}

.cvx-mec-ud .mec-ud-table {
    margin: 0 !important;
}

.cvx-mec-ud .mec-ud-table th {
    color: #475467 !important;
    background: #f8fafc !important;
    font-size: 11px !important;
    font-weight: 720 !important;
}

.cvx-mec-ud .mec-ud-table td {
    color: #344054 !important;
    font-size: 11.5px !important;
}

/* Toasts */
.cvx-mec-ud .mec-ud-toast {
    border-radius: 10px !important;
    font-size: 12px !important;
}

/* Keyboard accessibility */
.cvx-mec-ud a:focus-visible,
.cvx-mec-ud button:focus-visible {
    outline: 2px solid #77a9ec !important;
    outline-offset: 2px !important;
}

/* Mobile / tablet */
@media (max-width: 960px) {
    .cvx-mec-ud #mec-ud-dashboard-app.mec-ud-wrap {
        display: flex !important;
        flex-wrap: wrap !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .cvx-mec-ud #mec-ud-dashboard-app > .col-md-3,
    .cvx-mec-ud #mec-ud-dashboard-app > .col-md-9 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        float: none !important;
    }

    .cvx-mec-ud #mec-ud-dashboard-app > .col-md-3 {
        min-height: 0 !important;
        padding: 0 !important;
        border-right: 0 !important;
    }

    .cvx-mec-ud #mec-ud-dashboard-app > .col-md-9 {
        padding: 20px !important;
    }

    .cvx-mec-ud .mec-ud-mobile-bar {
        padding: 8px 12px !important;
        border-bottom-color: var(--cvx-line) !important;
        box-shadow: none !important;
    }

    .cvx-mec-ud .mec-ud-mobile-bar__toggle {
        width: 36px !important;
        height: 36px !important;
        border-radius: 9px !important;
        color: var(--cvx-blue) !important;
    }

    .cvx-mec-ud .mec-ud-sidebar-drawer {
        width: min(292px, 88vw) !important;
        max-width: 292px !important;
        background: #f8fafc !important;
    }

    .cvx-mec-ud .mec-ud-reports-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 600px) {
    .cvx-mec-ud .mec-ud-main-content {
        border-radius: 14px !important;
    }

    .cvx-mec-ud .mec-ud-wrap-header {
        padding: 15px 16px !important;
        font-size: 16px !important;
    }

    .cvx-mec-ud #mec-ud-dashboard-app > .col-md-9 {
        padding: 16px !important;
    }

    .cvx-mec-ud h1.mec-ud-tab-title,
    .cvx-mec-ud .mec-ud-tab-title {
        font-size: 18px !important;
    }

    .cvx-mec-ud .mec-ud-reports-filters {
        grid-template-columns: 1fr !important;
    }

    .cvx-mec-ud .mec-ud-empty-state {
        padding: 22px 15px !important;
    }

    .cvx-mec-ud .mec-ud-tab-header,
    .cvx-mec-ud .mec-ud-tab-header-row {
        align-items: stretch !important;
    }
}

/* The CVX profile wrapper sometimes applies nowrap/flex rules to nested plugin
   navigation. These final guards prevent horizontal menu "pills" and clipping. */
.cvx-mec-ud #mec-ud-sidebar,
.cvx-mec-ud #mec-ud-sidebar *,
.cvx-mec-ud .mec-ud-menu,
.cvx-mec-ud .mec-ud-menu-group,
.cvx-mec-ud .mec-ud-submenu {
    max-width: 100%;
}

.cvx-mec-ud #mec-ud-sidebar {
    overflow-x: hidden !important;
}
