﻿body.mec-dashboard-fullscreen .mec-ud-main-content:not(.mec-user-not-login) {
    max-width: 100vw;
    border-radius: 0;
}

body.mec-dashboard-fullscreen .mec-ud-main-content .mec-ud-main .row.mec-ud-wrap .col-md-3 {
    border-radius: 0;
}

.mec-ud-main {
    font-family: var(--mec-paragraph-font-family, sans-serif);
}

.mec-ud-main h1,
.mec-ud-main h2,
.mec-ud-main h3,
.mec-ud-main h4,
.mec-ud-main h5,
.mec-ud-main h6 {
    font-family: var(--mec-heading-font-family, sans-serif);
}

#mec-ud-events-calendar.mec-ud-content {
    display: block !important;
}

.mec-ud-main-content {
    max-width: 1140px;
    margin: 0 auto;
    border: 1px solid #dcdfe1;
    border-radius: 12px;
}

.mec-ud-content-wrap>div table td {
    min-width: 50px;
}

.mec-ud-main .row.mec-ud-wrap {
    display: flex;
    width: 100%;
    background: #fff;
    box-shadow: 0 3px 20px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 12px 12px;
}

.mec-ud-main .row.mec-ud-wrap .col-md-3 {
    flex: 1;
    float: unset;
    background: #F6F8FA;
    min-height: 610px;
    padding: 0;
    border-right: 1px solid #e6e9eb;
    border-radius: 0 0 0 12px;
}

.mec-ud-main .row.mec-ud-wrap .col-md-9 {
    flex: 4;
    float: unset;
    padding: 20px;
}

/*  Right Menu */
.mec-ud-menu a {
    display: block;
    line-height: 22px;
    font-size: 16px;
    color: #000;
    font-weight: 500;
    padding: 13px 15px 13px 20px;
    transition: all 0.2s ease;
    outline: none;
}

.mec-ud-main-content .mec-ud-wrap .mec-ud-menu a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mec-ud-menu-group {
    border-bottom: 1px solid #e6e9eb;
}

.mec-ud-menu-toggle {
    justify-content: space-between !important;
    width: 100%;
    padding: 13px 20px;
    box-sizing: border-box;
    cursor: pointer;
}

.mec-ud-menu-toggle svg {
    flex-shrink: 0;
}

.mec-ud-menu-toggle span:not(.mec-ud-menu-toggle-icon):nth-child(2) {
    flex: 1;
}

.mec-ud-menu-toggle-icon {
    font-size: 18px;
    line-height: 1;
    min-width: 10px;
    text-align: center;
    flex-shrink: 0;
}

.mec-ud-submenu {
    display: none;
    padding-bottom: 8px;
}

.mec-ud-menu-group.is-open>.mec-ud-submenu {
    display: block;
}

.mec-ud-submenu {
    background-color: #FBFCFD;
}

.mec-ud-submenu .mec-ud-submenu {
    background-color: #FFFFFF;
}

.mec-ud-submenu a {
    padding-left: 30px;
    padding-top: 8px;
    padding-bottom: 8px;
    font-size: 13px;
}

.mec-ud-submenu .mec-ud-menu-group {
    border-bottom: 0;
}

.mec-ud-submenu .mec-ud-menu-toggle {
    padding-left: 30px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.mec-ud-submenu .mec-ud-submenu a {
    padding-left: 40px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.mec-ud-submenu .mec-ud-submenu {
    padding-bottom: 0;
}

.mec-ud-menu-logout {
    border-top: 1px solid #e6e9eb;
}

.mec-ud-main-content .mec-ud-wrap .mec-ud-menu a:hover {
    background-color: #fff;
}

.mec-ud-main-content .mec-ud-wrap .mec-ud-menu a.active {
    background: var(--mec-ud-primary-shade, #ecf9fd);
    color: var(--mec-ud-primary, #07bbe9);
}

.mec-ud-main-content .mec-ud-wrap .mec-ud-menu a span {
    font-size: 13px;
    font-weight: 400;
}

.mec-ud-menu a:last-of-type {
    border: none;
}

.mec-ud-menu a.active,
.mec-ud-menu a:focus,
.mec-ud-menu a:hover,
.mec-ud-menu a:active {
    color: var(--mec-ud-primary, #07bbe9);
    outline: none !important;
}

/* H7: restore a visible keyboard-focus ring (mouse focus stays ring-free). */
.mec-ud-menu a:focus-visible {
    color: var(--mec-ud-primary, #07bbe9);
    outline: 2px solid var(--mec-ud-primary, #07bbe9) !important;
    outline-offset: 2px !important;
}

.mec-ud-menu a svg,
.mec-ud-menu a svg path {
    vertical-align: middle;
    transition: all 0.2s ease;
}

.mec-ud-menu a:focus svg,
.mec-ud-menu a:focus svg path,
.mec-ud-menu a:focus-visible svg,
.mec-ud-menu a:focus-visible svg path,
.mec-ud-menu a:hover svg,
.mec-ud-menu a:hover svg path,
.mec-ud-menu a:active svg,
.mec-ud-menu a:active svg path {
    outline: none !important;
}

.mec-ud-menu-toggle {
    outline: none !important;
}

.mec-ud-menu-toggle:focus,
.mec-ud-menu-toggle:hover,
.mec-ud-menu-toggle:active {
    outline: none !important;
}

.mec-ud-menu-toggle:focus-visible {
    outline: 2px solid var(--mec-ud-primary, #07bbe9) !important;
    outline-offset: 2px !important;
}

.mec-ud-menu a:hover svg path,
.mec-ud-menu a.active svg path {
    stroke: var(--mec-ud-primary, #07bbe9);
}

.mec-ud-content {
    display: none;
    animation: fadeEffect 0.31s;
}

.mec-ud-content.active {
    display: block;
    animation: fadeEffect 0.31s;
}

/* Profile Tab */
.mec-ud-woocommerce label,
div#mec-ud-profile label,
div#mec-ud-organizer label,
div#mec-ud-speaker label {
    color: #606367;
    font-size: 13px;
    font-weight: 500;
    line-height: 19px;
    letter-spacing: 0;
    margin: 0 0 4px 0;
    display: block;
    clear: none;
    padding: 0 0 5px 0;
}

.mec-ud-woocommerce p {
    position: relative;
}

table.form-table tr.user-profile-picture,
input.mec-ud-attachment-id {
    display: none !important;
}

div.mec-ud-attachment-image img,
.mec-avatar-preview img {
    background-color: white;
    border-radius: 50px;
    width: 75px;
    height: 75px;
}

.mec-ud-spec {
    position: relative;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.mec-ud-spec>div {
    display: inline-block;
    padding: 30px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
}

.mec-ud-spec>div div {
    display: block;
    line-height: 22px;
}

.me-ud-spec-ticket,
.mec-ud-reports-number-spec-ticket {
    color: #46D083;
    border: 1px solid #e6e9eb;
}

.me-ud-spec-event,
.mec-ud-reports-number-spec-total {
    color: #f16747;
    border: 1px solid #e6e9eb;
}

.mec-ud-spec>div div:first-of-type {
    font-size: 33px;
    line-height: 45px;
}

.mec-ud-spec>div div:last-of-type {
    font-size: 13px;
}

.mec-ud-spec-extra {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.mec-ud-spec-extra .me-ud-spec-extra-item {
    display: inline-block;
    padding: 25px 30px;
    text-align: center;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    border: 1px solid #e6e9eb;
    background: #fff;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mec-ud-spec-extra .me-ud-spec-extra-item:hover:not(.me-ud-spec-extra-item--disabled),
.mec-ud-spec-extra .me-ud-spec-extra-item:focus-visible:not(.me-ud-spec-extra-item--disabled) {
    transform: translateY(-2px);
    border-color: var(--mec-ud-primary, #07bbe9);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    outline: none;
}

.mec-ud-spec-extra .me-ud-spec-extra-item:focus-visible:not(.me-ud-spec-extra-item--disabled) {
    box-shadow: 0 0 0 3px rgba(7, 187, 233, 0.25);
}

.mec-ud-spec-extra .me-ud-spec-extra-item--disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.mec-ud-spec-extra .me-ud-spec-extra-item:first-of-type {
    color: #e67e22;
}

.mec-ud-spec-extra .me-ud-spec-extra-item:nth-of-type(2) {
    color: #3498db;
}

.mec-ud-spec-extra .me-ud-spec-extra-item:nth-of-type(3) {
    color: #9b59b6;
}

.mec-ud-spec-extra .me-ud-spec-extra-item:last-of-type {
    color: #2ecc71;
}

.mec-ud-spec-extra .me-ud-spec-extra-item__count {
    font-size: 30px;
    line-height: 40px;
    font-weight: 700;
}

.mec-ud-spec-extra .me-ud-spec-extra-item__label {
    font-size: 13px;
    line-height: 22px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

.mec-ud-spec-extra .me-ud-spec-extra-item__label svg {
    width: 11px;
    height: 11px;
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.mec-ud-spec-extra .me-ud-spec-extra-item:hover:not(.me-ud-spec-extra-item--disabled) .me-ud-spec-extra-item__label svg,
.mec-ud-spec-extra .me-ud-spec-extra-item:focus-visible:not(.me-ud-spec-extra-item--disabled) .me-ud-spec-extra-item__label svg {
    opacity: 1;
    transform: translateX(0);
}

[dir="rtl"] .mec-ud-spec-extra .me-ud-spec-extra-item__label svg {
    transform: scaleX(-1) translateX(-3px);
}

[dir="rtl"] .mec-ud-spec-extra .me-ud-spec-extra-item:hover:not(.me-ud-spec-extra-item--disabled) .me-ud-spec-extra-item__label svg,
[dir="rtl"] .mec-ud-spec-extra .me-ud-spec-extra-item:focus-visible:not(.me-ud-spec-extra-item--disabled) .me-ud-spec-extra-item__label svg {
    transform: scaleX(-1) translateX(0);
}

.mec-ud-dashboard-section {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e6e9eb;
    border-radius: 12px;
    padding: 25px;
}

.mec-ud-dashboard-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mec-ud-month-comparison {
    display: flex;
    gap: 30px;
    align-items: center;
}

.mec-ud-month-col {
    flex: 1;
}

.mec-ud-month-label {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 10px;
}

.mec-ud-month-stat {
    font-size: 18px;
    color: #333;
    line-height: 28px;
}

.mec-ud-month-change {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.mec-ud-change-up {
    color: #46D083;
}

.mec-ud-change-down {
    color: #e74c3c;
}

.mec-ud-recent-bookings-table {
    table-layout: auto;
}

.mec-ud-recent-bookings-table th,
.mec-ud-recent-bookings-table td {
    font-size: 13px;
    line-height: 18px;
    color: #4b5563;
}

.mec-ud-recent-bookings-table th {
    font-weight: 600;
    color: #1f2937;
}

.mec-ud-recent-bookings-table td {
    vertical-align: middle;
}

.mec-ud-recent-bookings-table a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.mec-ud-recent-bookings-table a:hover {
    text-decoration: underline;
}

/* ===== Dashboard Phase 1: Salutation Bar ===== */
.mec-ud-salutation {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e6e9eb;
}

.mec-ud-salutation__title {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.mec-ud-salutation__date {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 22px;
}

.mec-ud-salutation__sep {
    margin: 0 8px;
    color: #cbd5e1;
}

/* ===== Dashboard Phase 1: Section Head with View All link ===== */
.mec-ud-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
}

.mec-ud-section-head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mec-ud-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mec-ud-primary, #07bbe9);
    text-decoration: none;
    cursor: pointer;
    padding: 4px 6px;
    margin: -4px -6px;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

.mec-ud-view-all:hover {
    text-decoration: none;
    background-color: rgba(7, 187, 233, 0.08);
}

.mec-ud-view-all:focus-visible {
    outline: 2px solid var(--mec-ud-primary, #07bbe9);
    outline-offset: 2px;
}

.mec-ud-view-all svg {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
}

.mec-ud-view-all:hover svg {
    transform: translateX(2px);
}

[dir="rtl"] .mec-ud-view-all svg {
    transform: scaleX(-1);
}

[dir="rtl"] .mec-ud-view-all:hover svg {
    transform: scaleX(-1) translateX(2px);
}

/* ===== Dashboard Phase 1: Lifetime Footer ===== */
.mec-ud-lifetime {
    margin-top: 8px;
    padding: 18px 25px;
    background: #fafbfc;
    border: 1px solid #e6e9eb;
    border-radius: 12px;
    font-size: 13px;
    color: #6b7280;
    line-height: 22px;
    text-align: center;
}

.mec-ud-lifetime-label {
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11px;
    margin-right: 12px;
}

.mec-ud-lifetime-sep {
    margin: 0 8px;
    color: #cbd5e1;
}

.mec-ud-lifetime span {
    white-space: nowrap;
}

@media (max-width: 600px) {
    .mec-ud-lifetime {
        text-align: left;
        padding: 16px 18px;
    }

    .mec-ud-lifetime-label {
        display: block;
        margin: 0 0 8px;
    }

    .mec-ud-lifetime-sep {
        display: none;
    }

    .mec-ud-lifetime span:not(.mec-ud-lifetime-label):not(.mec-ud-lifetime-sep) {
        display: block;
    }

    .mec-ud-salutation__title {
        font-size: 22px;
    }
}

/* ===== Dashboard Phase 2: Action Needed ===== */
.mec-ud-action-needed {
    margin-bottom: 30px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    overflow: hidden;
}

.mec-ud-action-needed__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #fde68a;
}

.mec-ud-action-needed__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #92400e;
}

.mec-ud-action-needed__title svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.mec-ud-action-needed__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #f59e0b;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1;
}

.mec-ud-action-needed__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mec-ud-action-needed__list li+li {
    border-top: 1px solid #fde68a;
}

.mec-ud-action-needed__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #78350f;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mec-ud-action-needed__item:hover,
.mec-ud-action-needed__item:focus-visible {
    text-decoration: none;
    background-color: rgba(245, 158, 11, 0.08);
    outline: none;
}

.mec-ud-action-needed__item:focus-visible {
    box-shadow: inset 0 0 0 2px var(--mec-ud-primary, #07bbe9);
}

.mec-ud-action-needed__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.mec-ud-action-needed__item--urgent .mec-ud-action-needed__icon {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

.mec-ud-action-needed__icon svg {
    width: 16px;
    height: 16px;
}

.mec-ud-action-needed__text {
    flex: 1;
    min-width: 0;
    font-size: 14px;
    line-height: 20px;
    color: #422006;
    word-break: break-word;
}

.mec-ud-action-needed__item--urgent .mec-ud-action-needed__text {
    color: #7f1d1d;
}

.mec-ud-action-needed__action {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 600;
    color: #b45309;
    white-space: nowrap;
}

.mec-ud-action-needed__item--urgent .mec-ud-action-needed__action {
    color: #b91c1c;
}

.mec-ud-action-needed__action svg {
    width: 13px;
    height: 13px;
    transition: transform 0.15s ease;
}

.mec-ud-action-needed__item:hover .mec-ud-action-needed__action svg {
    transform: translateX(2px);
}

[dir="rtl"] .mec-ud-action-needed__action svg {
    transform: scaleX(-1);
}

[dir="rtl"] .mec-ud-action-needed__item:hover .mec-ud-action-needed__action svg {
    transform: scaleX(-1) translateX(2px);
}

@media (max-width: 600px) {
    .mec-ud-action-needed__head {
        padding: 14px 16px;
    }

    .mec-ud-action-needed__item {
        flex-wrap: wrap;
        padding: 12px 16px;
        gap: 8px 10px;
    }

    .mec-ud-action-needed__text {
        order: 2;
        flex-basis: calc(100% - 40px);
    }

    .mec-ud-action-needed__action {
        order: 3;
        margin-left: auto;
    }

    [dir="rtl"] .mec-ud-action-needed__action {
        margin-left: 0;
        margin-right: auto;
    }
}

/* ===== Dashboard Phase 3: Upcoming Events list ===== */
.mec-ud-upcoming__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mec-ud-upcoming__list li+li {
    border-top: 1px solid #f1f3f5;
}

.mec-ud-upcoming__link {
    display: block;
    padding: 14px 4px;
    color: inherit;
    text-decoration: none !important;
    border-radius: 6px;
}

.mec-ud-upcoming__link:hover,
.mec-ud-upcoming__link:focus-visible {
    text-decoration: none;
    outline: none;
}

.mec-ud-upcoming__link:focus-visible {
    box-shadow: inset 0 0 0 2px var(--mec-ud-primary, #07bbe9);
}

.mec-ud-upcoming__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
}

.mec-ud-upcoming__title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

.mec-ud-upcoming__link:hover .mec-ud-upcoming__title {
    color: var(--mec-ud-primary, #07bbe9);
}

.mec-ud-upcoming__revenue {
    font-size: 14px;
    font-weight: 700;
    color: #46D083;
    white-space: nowrap;
    flex-shrink: 0;
}

.mec-ud-upcoming__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.mec-ud-upcoming__date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #4b5563;
}

.mec-ud-upcoming__date svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.mec-ud-upcoming__count {
    color: #6b7280;
}

.mec-ud-upcoming__percent {
    margin-left: auto;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 18px;
}

.mec-ud-upcoming__percent--high {
    background: rgba(70, 208, 131, 0.15);
    color: #15803d;
}

.mec-ud-upcoming__percent--mid {
    background: rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.mec-ud-upcoming__percent--low {
    background: rgba(239, 68, 68, 0.12);
    color: #b91c1c;
}

[dir="rtl"] .mec-ud-upcoming__percent {
    margin-left: 0;
    margin-right: auto;
}

.mec-ud-upcoming__bar {
    width: 100%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
}

.mec-ud-upcoming__bar-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
}

.mec-ud-upcoming__bar-fill--high {
    background: linear-gradient(90deg, #46D083, #16a34a);
}

.mec-ud-upcoming__bar-fill--mid {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.mec-ud-upcoming__bar-fill--low {
    background: linear-gradient(90deg, #f87171, #ef4444);
}

@media (max-width: 600px) {
    .mec-ud-upcoming__head {
        flex-wrap: wrap;
    }

    .mec-ud-upcoming__title {
        white-space: normal;
    }

    .mec-ud-upcoming__percent {
        margin-left: 0;
    }
}

/* ===== Dashboard Phase 4: Performance + Sparkline ===== */
.mec-ud-performance {
    position: relative;
}

.mec-ud-performance__controls {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: #f1f5f9;
    border-radius: 8px;
}

.mec-ud-performance__summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.mec-ud-performance__metric-toggle {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: #f1f5f9;
    border-radius: 8px;
}

.mec-ud-chip {
    appearance: none;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1;
    font-family: inherit;
}

.mec-ud-chip:hover {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.6);
}

.mec-ud-chip:focus-visible {
    outline: 2px solid var(--mec-ud-primary, #07bbe9);
    outline-offset: 1px;
}

.mec-ud-chip--active {
    background: #fff;
    color: var(--mec-ud-primary, #07bbe9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.mec-ud-chip--active:hover {
    color: var(--mec-ud-primary, #07bbe9);
    background: #fff;
}

.mec-ud-performance__total {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.mec-ud-performance__total-value {
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.mec-ud-performance__change {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
    line-height: 18px;
}

.mec-ud-performance__change.is-up {
    color: #15803d;
    background: rgba(70, 208, 131, 0.12);
}

.mec-ud-performance__change.is-down {
    color: #b91c1c;
    background: rgba(239, 68, 68, 0.1);
}

.mec-ud-performance__change svg {
    width: 12px;
    height: 12px;
}

.mec-ud-change-arrow--down {
    transform: rotate(0deg);
}

.mec-ud-performance__change-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.mec-ud-sparkline {
    width: 100%;
    height: 80px;
    position: relative;
}

.mec-ud-sparkline__inner {
    position: relative;
    width: 100%;
    height: 100%;
}

.mec-ud-sparkline__svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Round dot at the latest point. Rendered as HTML so it stays circular
   regardless of how the SVG is stretched by preserveAspectRatio="none". */
.mec-ud-sparkline__dot {
    position: absolute;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--mec-ud-primary, #07bbe9);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

@media (max-width: 600px) {
    .mec-ud-performance__summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .mec-ud-performance__total-value {
        font-size: 22px;
    }

    .mec-ud-sparkline {
        height: 64px;
    }
}

/* ===== Dashboard Phase 5: Polish ===== */

/* Mobile: stat-extra cards stack as a 2-col grid for breathing room */
@media (max-width: 600px) {
    .mec-ud-spec-extra {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .mec-ud-spec-extra .me-ud-spec-extra-item {
        padding: 18px 14px;
    }

    .mec-ud-spec-extra .me-ud-spec-extra-item div:first-of-type {
        font-size: 24px;
        line-height: 30px;
    }

    /* Odd item (3rd in our 3-card layout) takes full width */
    .mec-ud-spec-extra .me-ud-spec-extra-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    /* Clickable Recent Bookings rows are taller on touch screens */
    .mec-ud-recent-bookings-table__row {
        cursor: pointer;
    }
}

/* Desktop hover affordance for clickable Recent Bookings rows */
.mec-ud-recent-bookings-table__row {
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.mec-ud-recent-bookings-table__row:hover,
.mec-ud-recent-bookings-table__row:focus-visible {
    background-color: #f8fafc;
    outline: none;
}

.mec-ud-recent-bookings-table__row:focus-visible {
    box-shadow: inset 0 0 0 2px var(--mec-ud-primary, #07bbe9);
}

/* Subtle fade-in for the dashboard top-level sections.
   Staggered by source order so the eye is led from salutation down. */
@keyframes mec-ud-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mec-ud-dashboard>.mec-ud-salutation,
#mec-ud-dashboard>.mec-ud-action-needed,
#mec-ud-dashboard>.mec-ud-spec-extra,
#mec-ud-dashboard>.mec-ud-dashboard-section,
#mec-ud-dashboard>.mec-ud-lifetime {
    animation: mec-ud-fade-in 0.32s ease-out both;
}

#mec-ud-dashboard>.mec-ud-action-needed {
    animation-delay: 0.04s;
}

#mec-ud-dashboard>.mec-ud-spec-extra {
    animation-delay: 0.08s;
}

#mec-ud-dashboard>.mec-ud-dashboard-section:nth-of-type(1) {
    animation-delay: 0.12s;
}

#mec-ud-dashboard>.mec-ud-dashboard-section:nth-of-type(2) {
    animation-delay: 0.16s;
}

#mec-ud-dashboard>.mec-ud-lifetime {
    animation-delay: 0.2s;
}

/* Respect users who explicitly asked for less motion. */
@media (prefers-reduced-motion: reduce) {

    #mec-ud-dashboard>*,
    .mec-ud-content,
    .mec-ud-content.active {
        animation: none !important;
        transition: none !important;
    }
}

.mec-ud-no-data {
    color: #999;
    font-size: 13px;
    text-align: center;
    padding: 20px;
}

.mec-ud-wrap .mec-ud-form {
    margin-bottom: 20px;
}

.mec-ud-main .row.row-ud-nm {}

.woocommerce .mec-ud-wrap .mec-ud-form {
    position: relative;
}

.woocommerce .mec-ud-wrap button {
    border: unset;
    color: #fff;
}

.mec-ud-woocommerce select,
.mec-ud-woocommerce input,
.mec-ud-woocommerce textarea,
.mec-ud-wrap .mec-ud-form input[type=text],
.mec-ud-wrap .mec-ud-form input[type=email],
.mec-ud-wrap .mec-ud-form input[type=password],
.mec-ud-wrap .mec-ud-form textarea {
    display: block;
    background: #fff;
    min-height: 40px;
    min-width: 180px;
    font-size: 13px;
    line-height: 38px;
    font-family: inherit;
    color: #606367;
    border: 1px solid #e3e5e7;
    padding: 0 12px;
    width: 100%;
    margin-bottom: 0;
    box-shadow: unset;
    clear: both;
    border-radius: 0 3px 3px 0;
}

.mec-ud-woocommerce .mec-field-wrapper,
.mec-ud-wrap .mec-ud-form .mec-field-wrapper {
    display: flex;
    flex-direction: row;
    align-items: start;
}

.mec-ud-woocommerce .wp-hide-pw,
.mec-ud-wrap .wp-hide-pw {
    position: relative;
    color: #8F9295 !important;
    font-size: 16px !important;
    line-height: 1 !important;
    height: auto !important;
    width: auto !important;
}

.mec-ud-woocommerce .wp-hide-pw .dashicons,
.mec-ud-wrap .wp-hide-pw .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.mec-ud-woocommerce .password-input,
.mec-ud-wrap .password-input {
    position: relative;
    display: flex;
    width: 100%;
}

.mec-ud-woocommerce .show-password-input,
.mec-ud-wrap .show-password-input {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0;
    color: #8F9295;
    font-size: 16px;
    line-height: 1;
    z-index: 2;
}

.mec-ud-woocommerce .show-password-input:hover,
.mec-ud-wrap .show-password-input:hover {
    color: #606367;
}

.mec-ud-woocommerce .show-password-input .dashicons,
.mec-ud-wrap .show-password-input .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.mec-ud-woocommerce input[type="password"],
.mec-ud-wrap input[type="password"] {
    font-family: inherit;
}

.mec-ud-woocommerce .mec-ud-profile .password-input {
    padding-right: 36px;
}

.mec-ud-woocommerce .mec-field-icon,
.mec-ud-wrap .mec-ud-form .mec-field-icon {
    border: 1px solid #e3e5e7;
    border-right: none;
    background: #fafafa;
    border-radius: 3px 0 0 3px;
    min-width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mec-ud-wrap .mec-ud-form textarea {
    color: #8F9295;
    font-weight: 400;
    transition: all 0.2s ease;
    overflow: hidden;
    line-height: 27px;
    min-height: 100px;
}

.mec-ud-woocommerce select,
.mec-ud-woocommerce input,
.mec-ud-wrap .mec-ud-form textarea:focus,
.mec-ud-wrap .mec-ud-form input:focus {
    outline: none;
}

.mec-ud-form label {}

.mec-ud-woocommerce label {
    width: 100%;
    margin: 0 !important;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 15px;
    color: #8F9295;
    cursor: text;
}

.mec-ud-woocommerce select,
.mec-ud-woocommerce input {
    width: 100%;
    border-radius: 3px;
    border: none !important;
    border-bottom: 1px solid #ddd !important;
}

.mec-ud-wrap .mec-ud-form-p label {
    bottom: 55px;
}




.mec-ud-image label {
    margin-top: 20px;
    font-size: 15px;
    margin-bottom: 15px !important;
    color: #8F9295;
    font-weight: 500;
}

.mec-ud-image-box,
.mec-ud-image-url,
.mec-ud-org-image-url,
.mec-ud-speaker-image-url {
    display: inline-block;
    margin-right: 20px;
    vertical-align: top;
}

.mec-ud-image-url,
.mec-ud-org-image-url,
.mec-ud-speaker-image-url {
    margin-right: 0;
    margin-top: 0;
}

.mec-ud-image-upload {
    border: 1px dashed #EAEBED;
    clear: both;
    padding: 15px 15px 9px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    margin-bottom: 35px;
}

.mec-ud-image-url .image-file,
.mec-ud-org-image-url .image-file,
.mec-ud-speaker-image-url .image-file {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    white-space: nowrap;
    width: 1px;
}

.mec-ud-image-url .image-file+label,
.mec-ud-org-image-url .image-file+label,
.mec-ud-speaker-image-url .image-file+label {
    color: var(--mec-ud-primary, #07bbe9);
    cursor: pointer;
    display: inline-block;
}

.mec-ud-image-url .image-file:focus+label,
.mec-ud-image-url .image-file+label:hover,
.mec-ud-org-image-url .image-file:focus+label,
.mec-ud-org-image-url .image-file+label:hover,
.mec-ud-speaker-image-url .image-file:focus+label,
.mec-ud-speaker-image-url .image-file+label:hover {
    color: #000;
}

.mec-ud-image-url .image-file:focus+label {
    outline: 1px dotted #000;
}

.mec-ud-image-url p,
.mec-ud-image-url p label {
    margin-bottom: 0 !important;
}

.mec-ud-image-url p.image-notice {
    font-size: 13px;
    color: #8F9295
}

/* Unified image upload row (Organizer / Speaker picture) — mirrors
   profile avatar row: circular preview box + action buttons. */
.mec-ud-image-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #2b3137;
    margin-bottom: 2px;
}

.mec-ud-image-hint {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 14px;
    line-height: 1.5;
}

.mec-ud-image-upload-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 35px;
}

.mec-ud-image-box-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f1f2;
    border: 1px solid #e6e9eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mec-ud-image-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mec-ud-image-placeholder {
    color: #9aa3af;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mec-ud-image-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.mec-ud-image-notice {
    flex-basis: 100%;
    font-size: 13px;
    color: #64748b;
    margin: 0;
}

.mec-ud-saveLoader {
    display: inline-block;
    position: relative;
    width: 15px;
    height: 15px;
    vertical-align: middle;
}

form.mec-profile-form {
    position: relative;
}

.mec-ud-saveLoader .mec-loader {
    width: 20px;
    height: 20px;
    left: calc(50% - 10px);
    top: calc(50% - 10px);
    border-width: 0.2em;
}

.mec-ud-saveLoader-hover {
    position: absolute;
    background: #fff;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0.7;
}

.mec-ud-message {
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
    display: none;
}

.mec-ud-message.mec-ud-message-success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mec-ud-message.mec-ud-message-error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mec-ud-form p {
    color: #C6CACF;
    font-size: 14px !important;
    line-height: 22px;
    margin-top: 6px;
}

.mec-ud-wrap .mec-ud-form textarea~p {
    margin-top: -4px;
}

.mec-ud-form.mec-ud-form-p svg {
    bottom: unset;
    top: 14px;
}

@keyframes fadeEffect {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Events List */
.mec-ud-table .mec-ud-download-attendees {
    text-align: center;
}

.mec-ud-table-head {
    background: #f5f6f7;
}

.mec-ud-table-head th {
    border-top: 1px solid #e1e2e3 !important;
    border-bottom: 1px solid #e1e2e3;
    border-right: unset;
    border-left: unset;
    padding: 15px;
    margin: 0;
    white-space: nowrap;
}

.mec-ud-table-head span {
    color: #000;
    font-size: 13px;
    line-height: 14px;
    font-weight: 600;
    text-align: left;
}

.mec-ud-row {
    border-bottom: 1px solid #e1e2e3;
    border-right: 1px solid #e1e2e3;
    border-left: 1px solid #e1e2e3;
    font-size: 13px;
    color: #000;
}

span.mec-fes-ud-event-title,
span.mec-fes-ud-event-title a {
    color: #000;
    font-size: 13px;
}

table.mec-profile-bookings td a {
    color: #000;
    text-decoration: none !important;
}

span.mec-fes-ud-event-title a:hover,
table.mec-profile-bookings td a:hover {
    color: #000;
}

.mec-fes-ud-event-view.mec-event-status {
    color: #fff !important;
    border-color: transparent !important;
    padding: 4px 10px 5px;
    border-radius: 5px;
    font-size: 12px !important;
}

.mec-fes-ud-event-view.mec-book-confirmed {
    background: #2DCA73 !important;
}

.mec-fes-ud-event-view.mec-book-pending {
    background: #FFC114 !important;
}

.mec-fes-ud-event-view.mec-book-rejected {
    background: #fe686a !important;
}

.mec-fes-ud-event-view.mec-book-other {
    background: #40d9f1 !important;
}

.mec-fes-ud-event-view.mec-rsvp-confirmed,
.mec-fes-ud-event-view.mec-waiting-list-confirmed {
    background: #2DCA73 !important;
}

.mec-fes-ud-event-view.mec-rsvp-pending,
.mec-fes-ud-event-view.mec-waiting-list-pending {
    background: #FFC114 !important;
}

.mec-fes-ud-event-view.mec-rsvp-rejected,
.mec-fes-ud-event-view.mec-waiting-list-rejected {
    background: #fe686a !important;
}

span.mec-fes-ud-event-export a:before,
span.mec-fes-ud-event-remove:before,
span.mec-fes-ud-event-view a:before {
    font-family: simple-line-icons;
    font-size: 13px;
    vertical-align: middle;
    color: #000;
    font-size: 15px;
    cursor: pointer;
}

span.mec-fes-ud-event-export a:before {
    content: "\e083";
}

span.mec-fes-ud-event-remove:before {
    content: "\e054";
    margin-right: 5px;
    margin-left: 5px;
}

span.mec-fes-ud-event-view a:before {
    content: "\e08d";
    margin-right: 5px;
    margin-left: 5px;
}

span.mec-fes-ud-event-view a.mec-ud-event-action-link:before {
    content: none;
}

.mec-ud-event-action-icon {
    width: 25px;
    height: 25px;
    margin: 0 5px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.mec-ud-main-content .mec-ud-wrap .mec-ud-menu a:focus {
    outline: none;
}

span.mec-fes-ud-event-export a:hover:before,
span.mec-fes-ud-event-remove:hover:before,
span.mec-fes-ud-event-view a:hover:before {
    color: var(--mec-ud-primary, #07bbe9);
}

/* Tooltip */
.mec-fes-ud-event-view,
.mec-fes-ud-event-remove,
.mec-fes-ud-event-export {
    position: relative;
}

.mec-ud-row .wn-p-t-right {
    width: auto;
    white-space: nowrap;
    display: inline-block;
    top: -8px;
    left: 50%;
    margin-top: 0;
    transform: translate(-50%, -100%);
    padding: 0;
    background-color: #000;
    font-weight: 300;
    letter-spacing: .5px;
    line-height: 1.5;
    position: absolute;
    z-index: 99999999;
    box-sizing: border-box;
    border-radius: 3px !important;
    box-shadow: 0 3px 7px 0 rgba(0, 0, 0, 0.3);
    visibility: hidden;
    opacity: 0;
    transition: opacity .23s;
    padding: 5px 10px 6px;
    border-radius: 5px !important;
}

.mec-ud-row .wn-p-t-right .wn-p-t-text-content {
    font-size: 12px;
    color: #fff;
    letter-spacing: 0;
    font-weight: 500;
    text-align: center;
}

.mec-ud-row td,
.mec-ud-row td span,
.mec-ud-row td a {
    font-size: 13px;
    color: #000;
    text-decoration: unset;
}

.mec-ud-row td a:hover {
    text-decoration: underline;
}

.mec-ud-row .wn-p-t-right i {
    position: absolute !important;
    top: 100%;
    right: 50%;
    margin-top: -7px !important;
    margin-right: -5px !important;
    width: 11px;
    height: 24px;
    overflow: hidden;
    transform: rotate(-90deg);
}

.mec-ud-row .wn-p-t-right i:after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    left: 0;
    top: 50%;
    transform: translate(50%, -50%) rotate(-45deg);
    background-color: #000;
    box-shadow: 0 8px 9px -4px #535a61;
}

.mec-ud-content-wrap .mec-event-date .mec-tooltip .box,
.mec-ud-content-wrap .mec-event-status .mec-tooltip .box {
    border-radius: 3px;
}

/* Export */
span.mec-fes-ud-event-export {
    position: relative;
}

span.mec-fes-ud-event-export:hover .wn-p-t-right,
span.mec-fes-ud-event-view:hover .wn-p-t-right,
span.mec-fes-ud-event-remove:hover .wn-p-t-right {
    visibility: visible;
    opacity: 1;
}

.mec-ud-events-list a {
    text-decoration: none !important;
}

.mec-fes-ud-export-wrapper.mec-fes-export-wrapper {
    background: #f5faff;
}

.mec-fes-ud-export-wrapper.mec-fes-export-wrapper ul li {
    border: 1px solid var(--mec-ud-primary, #07bbe9);
    box-shadow: 0 2px 6px -4px var(--mec-ud-primary, #07bbe9);
}

.mec-fes-ud-export-wrapper.mec-fes-export-wrapper .mec-export-badge {
    color: var(--mec-ud-primary, #07bbe9);
    background: var(--mec-ud-primary-shade, #def0ff);
}

.mec-fes-ud-export-wrapper.mec-fes-export-wrapper ul li.fes-export-date-active {
    color: var(--mec-ud-primary, #07bbe9);
}

.mec-fes-ud-export-wrapper.mec-fes-export-wrapper ul li.fes-export-date-active:before {
    border: 6px solid var(--mec-ud-primary, #07bbe9);
    box-shadow: 0 3px 16px -3px var(--mec-ud-primary, #07bbe9);
}

.mec-fes-ud-export-wrapper .mec-fes-btn-export span {
    background: var(--mec-ud-primary, #07bbe9);
    box-shadow: 0 1px 7px -3px var(--mec-ud-primary, #07bbe9) !important;
}

.mec-fes-ud-export-wrapper .mec-fes-btn-export span:hover {
    background: #222;
}

/* Tickets */

.mec-ud-tickets table.mec-profile-bookings {
    border-collapse: separate;
}

.mec-ud-tickets table.mec-profile-bookings tbody tr:first-of-type td {
    background: #fff;
}

.mec-ud-tickets table.mec-profile-bookings tbody tr:first-of-type td {
    background: #f5f6f7;
    padding: 15px 0 15px 15px;
    font-size: 13px;
    line-height: 25px;
    font-weight: 600;
    text-align: left;
    border-top: 1px solid #e1e2e3;
    border-bottom: 1px solid #e1e2e3;
}

.mec-ud-tickets table.mec-profile-bookings tbody tr td:last-of-type {
    padding: 15px;
}

.mec-ud-tickets table.mec-profile-bookings tbody tr:first-of-type td:first-child {
    border-left: 1px solid #e1e2e3;
    border-radius: 12px 0 0 0;
}

.mec-ud-tickets table.mec-profile-bookings tbody tr:first-of-type td:last-child {
    border-right: 1px solid #e1e2e3;
    border-radius: 0 12px 0 0;
}


.mec-ud-tickets table.mec-profile-bookings tbody tr td:first-of-type {
    text-align: left;
}


.mec-ud-tickets table.mec-profile-bookings,
.mec-ud-tickets table.mec-profile-bookings tr,
.mec-ud-tickets .mec-profile-bookings tbody tr td {
    border: none;
    color: #000;
    vertical-align: middle;
    font-size: 12px;
}

.mec-ud-tickets a.mec-event-title {
    font-size: 13px;
}

.mec-ud-tickets table tbody tr:hover>td,
.mec-ud-tickets table tbody tr:hover>th {
    background-color: transparent;
}

.mec-ud-tickets .mec-event-status.mec-book-confirmed {
    background: #2dca73;
}

.mec-ud-tickets .mec-event-status.mec-book-pending {
    background: #FFC114;
}

.mec-ud-tickets .mec-event-status.mec-book-rejected {
    background: #fe686a;
}

.mec-ud-tickets table.mec-profile-bookings tbody tr[id^="mec_profile_booking"] {
    border-bottom: 1px solid #EFF0F2;
}

/* Heaedr */
.mec-head-wrap {
    display: flex;
    width: 100%;
}

.mec-head-wrap div {
    flex: 1;
}

.mec-ud-wrap-header {
    color: #1d2327;
    border-bottom: 1px solid #dcdfe1;
    padding: 19px 30px;
    text-transform: capitalize;
    font-size: 24px;
    line-height: 40px;
    font-weight: 600;
    border-radius: 12px 12px 0 0;
    z-index: 99;
}

.mec-ud-main .row {
    margin: 0;
}

.mec-ud-content-wrap .mec-profile .mec-profile-bookings tbody tr td {
    text-align: left;
    background-color: transparent;
    border-bottom: 1px solid #e1e2e3;
    padding: 15px 0 15px 15px;
}

.mec-ud-content-wrap .mec-profile .mec-profile-bookings tbody tr td:first-child {
    border-left: 1px solid #e1e2e3;
}

.mec-ud-content-wrap .mec-profile .mec-profile-bookings tbody tr td:last-child {
    border-right: 1px solid #e1e2e3;
}

.wn-wrap .mec-ud-content-wrap .mec-profile .mec-profile-bookings tbody tr td:nth-child(1) {
    width: 3%;
}

.wn-wrap .mec-ud-content-wrap .mec-profile .mec-profile-bookings tbody tr td:nth-child(2) {
    width: 20%;
}

.wn-wrap .mec-ud-content-wrap .mec-profile .mec-profile-bookings tbody tr td:nth-child(3),
.wn-wrap .mec-ud-content-wrap .mec-profile .mec-profile-bookings tbody tr td:nth-child(4),
.wn-wrap .mec-ud-content-wrap .mec-profile .mec-profile-bookings tbody tr td:nth-child(7),
.wn-wrap .mec-ud-content-wrap .mec-profile .mec-profile-bookings tbody tr td:nth-child(8) {
    width: 4%;
}

/* When  user is not login */
.mec-ud-main-content.mec-user-not-login {
    max-width: 390px;
    overflow: hidden;
}

.mec-ud-main-content.mec-user-not-login .mec-ud-wrap-header {
    font-size: 27px;
}

.mec-ud-main-content.mec-user-not-login .mec-login-form {
    padding-top: 50px !important;
    padding-bottom: 20px !important;
}

.mec-ud-main-content.mec-user-not-login .mec-login-form label {
    position: relative;
    box-shadow: unset !important;
}

.mec-ud-main-content.mec-user-not-login .mec-login-form .mec-sl-display-controller-password {
    position: absolute;
    right: 10px;
    top: calc(50% - 9px);
    background: none !important;
    cursor: pointer;
    color: #8f9295;
}

.mec-ud-main-content.mec-user-not-login .mec-login-form .mec-sl-display-controller-password:before {
    content: '\f070';
    font-family: fontawesome;
}

.mec-ud-main-content.mec-user-not-login .mec-login-form .mec-sl-display-controller-password:hover:before,
.mec-ud-main-content.mec-user-not-login .mec-login-form .mec-sl-display-controller-password.show:before {
    content: '\f06e';
    color: black;
}

.mec-ud-main-content.mec-user-not-login #mec-login-form.mec-login-form .mec-ajax-login-loading {
    bottom: unset;
}

.mec-ud-main-content.mec-user-not-login #mec-login-form.mec-login-form .mec-ajax-login-loading-text {
    all: unset;
    padding: 7px 20px;
    line-height: 30px;
    border: 1px solid #dcdfe1;
    border-radius: 0 0 6px 6px;
}

.mec-ud-main-content.mec-user-not-login #mec-login-form.mec-login-form .mec-login-input label {
    border-radius: 3px;
}

.mec-ud-main-content.mec-user-not-login #mec-login-form.mec-login-form .lds-ripple {
    display: none;
}

/* Reports */
#mec_ud_gateways_chart {
    display: none;
}

.mec-ud-reports-number-spec-total,
.mec-ud-reports-number-spec-ticket {
    cursor: auto !important;
}

/* new reports */
.mec-ud-reports-select-events {
    padding-right: 15px;
    padding-bottom: 15px
}

/* Shared filter bar — applies to both Sales and Gateways */
/* Shared filter row — applies to both Sales and Gateways charts */
.mec-ud-reports-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #e6e9eb;
    border-radius: 12px;
    padding: 18px 20px;
}

.mec-ud-reports-filters .mec-ud-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
}

.mec-ud-reports-filters label {
    font-size: 12px;
    font-weight: 600;
    color: #5b6573;
}

.mec-ud-reports-filters select {
    min-height: 38px;
    height: 38px;
    line-height: 38px;
    background: #fff;
    font-size: 13px;
    color: #444;
    border: 1px solid #dfe3e6;
    padding: 0 10px;
    border-radius: 3px;
    width: auto;
}

.mec-ud-reports-filter-event select {
    min-width: 200px;
    max-width: 280px;
}

/* Constrain the gateway pie so it doesn't stretch full-width */
.mec-ud-reports-pie-wrap {
    max-width: 360px;
    margin: 0 auto;
}

/* Fixed-height canvas container — required for maintainAspectRatio: false.
   Without it, Chart.js collapses the canvas to 0 height on narrow screens. */
.mec-ud-reports-chart-wrap {
    position: relative;
    width: 100%;
    height: 340px;
}

.mec-ud-reports-chart-wrap--pie {
    height: 300px;
}

@media (max-width: 600px) {
    .mec-ud-reports-chart-wrap {
        height: 260px;
    }

    .mec-ud-reports-chart-wrap--pie {
        height: 240px;
    }
}

/* Tab switcher — aligned with dashboard chip group (.mec-ud-performance__controls) */
.mec-ud-reports-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: #f1f5f9;
    border-radius: 8px;
    border: none;
    width: fit-content;
    margin-bottom: 20px;
}

.mec-ud-reports-tab {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    font-family: inherit;
    transition: all 0.15s ease;
}

.mec-ud-reports-tab:hover {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.6);
}

.mec-ud-reports-tab:focus-visible {
    outline: 2px solid var(--mec-ud-primary, #07bbe9);
    outline-offset: 1px;
}

.mec-ud-reports-tab.is-active {
    background: #fff;
    color: var(--mec-ud-primary, #07bbe9);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* Panel — card style matching dashboard's .mec-ud-dashboard-section */
.mec-ud-reports-panel {
    background: #fff;
    border: 1px solid #e6e9eb;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.mec-ud-reports-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 20px;
    flex-wrap: wrap;
}

.mec-ud-reports-chart-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.mec-ud-reports-select-events label {
    display: block;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 15px;
}

.mec-ud-reports-head-select.mec-search-form {
    padding: 0
}

.mec-ud-reports-select-events span.select2.select2-container--open .selection .select2-selection.select2-selection--single,
.mec-ud-reports-select-events span.select2.select2-container--open .selection .select2-selection.select2-selection--multiple {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.mec-ud-reports-select-events .select2 {
    width: 100% !important;
}

.mec-ud-reports-select-events span.select2 {
    max-width: 300px;
}

.mec-ud-reports-select-events span.select2 .selection .select2-selection {
    min-height: 36px;
    height: 36px;
    line-height: 36px;
    background: #fff;
    font-size: 13px;
    color: #777;
    border: 1px solid #efefef;
    margin: 0 0 10px -1px;
    padding: 0 5px;
    border-radius: 3px;
    width: 100%;
}

.mec-ud-reports-select-events span.select2 .selection .select2-selection .select2-selection__rendered {
    color: #777;
    line-height: 34px;
    padding-left: 5px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Media Queries */
@media (max-width: 960px) {
    .mec-ud-main-content {
        max-width: 700px;
    }

    .mec-ud-main .row.mec-ud-wrap .col-md-3 {
        min-height: auto;
        text-align: center;
    }

    .mec-ud-main .row.mec-ud-wrap {
        display: block;
    }

    .mec-ud-main .row.mec-ud-wrap .col-xs-3 {
        min-height: auto;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mec-ud-main .row.mec-ud-wrap .col-xs-3 {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 480px) {
    .mec-ud-main .row.mec-ud-wrap .col-xs-3 {
        padding-top: 25px;
        padding-bottom: 25px;
    }
}

@media(max-width: 480px) {
    #mec-ud-reports canvas#mec_ud_reports_chatrs {
        width: auto !important;
    }

    .mec-ud-content.active {
        padding-top: 25px;
        padding-left: 0;
    }

    #mec-ud-events .mec-ud-table-head span,
    .mec-ud-content .mec-ud-table-head span {
        font-size: 13px;
    }

    table.mec-profile-bookings td a,
    span.mec-fes-ud-event-title a,
    span.mec-fes-ud-event-date.mec-event-start-date {
        font-size: 13px;
    }

    .mec-ud-tickets table.mec-profile-bookings tbody tr:first-of-type td,
    .mec-fes-ud-event-view.mec-book-confirmed {
        font-size: 13px;
    }
}

@media(max-width: 376px) {
    .mec-fes-ud-event-view.mec-book-confirmed {
        font-size: 13px;
        padding: 2px 4px;
        line-height: 1.4;
    }
}

.mec-fes-form-top-actions a.mec-fes-form-back-to {
    display: none;
}

.mec-fes-form-to-dashboard {
    display: block;
}

.mec-ud-image-url p {
    margin-top: -3px;
}

span.mec-fes-ud-event-date.mec-event-start-date {
    font-size: 13px;
    color: #000;
}

.mec-ud-woocommerce form [type="submit"].disabled {
    opacity: 0.5;
    filter: grayscale(1);
    pointer-events: none;
    cursor: not-allowed;
}

.mec-ud-woocommerce .woocommerce-Message {
    color: #999 !important;
}

.mec-ud-woocommerce table.woocommerce-orders-table {
    border: 1px solid #eee;
    margin: 0 0 15px;
    text-align: left;
    width: 100%;
}

.mec-ud-woocommerce table.woocommerce-orders-table th {
    border: none;
    color: #000;
    vertical-align: middle;
    font-size: 12px;
    border-bottom: 2px solid var(--mec-ud-primary, #07bbe9);
}

.mec-ud-woocommerce table.woocommerce-orders-table tr {
    border-bottom: 1px solid #EFF0F2;
}

.mec-ud-woocommerce table.woocommerce-orders-table td {
    border: none;
    color: #000;
    vertical-align: middle;
    font-size: 12px;
}

.mec-ud-woocommerce table.woocommerce-orders-table td a.woocommerce-button {
    border: none;
    vertical-align: middle;
    font-size: 12px;
    padding: 10px;
    border-radius: 2px;
    top: 15px;
    background-color: var(--mec-ud-primary, #07bbe9);
    border-radius: 2px !important;
    box-shadow: 0px 5px 10px rgba(7, 187, 233, 0.3);
    padding: 16.72px 22px !important;
    line-height: 12px;
    margin: 0;
}

.mec-ud-woocommerce-menu-item:before {
    content: "";
    width: 6px;
    height: 7px;
    position: relative;
    display: inline-block;
    background-color: var(--mec-ud-primary, #07bbe9);
    border-radius: 25px;
    box-shadow: 0 0 9px -1px var(--mec-ud-primary, #07bbe9);
}

.woocommerce-Button .mec-ud-saveLoader {
    position: relative;
    display: inline-block;
    float: left;
    margin-right: 10px;
}

.event-pagination span,
.event-pagination a {
    background: var(--mec-ud-primary, #07bbe9);
    padding: 0px 10px;
    color: #fff !important;
    background-color: var(--mec-ud-primary, #07bbe9);
    border-radius: 2px !important;
    box-shadow: 0px 5px 10px rgba(7, 187, 233, 0.3) !important;
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.event-pagination span,
.event-pagination a:hover {
    color: #fff;
    background: #222 !important;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3) !important;
}

.dashbord-custom-color span {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: solid 1px #ddd;
    border-radius: 50px;
    cursor: pointer;
}

.dashbord-custom-color span.gray-color {
    background-color: gray;
}

.dashbord-custom-color span.default-color {
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 45%, #bbb 45%, #bbb 55%, transparent 55%);
}

.dashbord-custom-color span.red-color {
    background-color: #ff3b3b;
}

.dashbord-custom-color span.blue-color {
    background-color: #008AFF;
}

.dashbord-custom-color span.yellow-color {
    background-color: #e2cf28;
}

.dashbord-custom-color span.green-color {
    background-color: #8BC34A;
}

.dashbord-custom-color span.pink-color {
    background-color: #E91E63;
}

.dashbord-custom-color span.purple-color {
    background-color: #9C27B0;
}

.dashbord-custom-color span.cyan-color {
    background-color: #009688;
}

/* ===== React color picker (.mec-ud-swatches) =====
   Overrides the legacy inline-styled version in ProfileTab. Larger circles,
   flex layout, hover scale, and a proper selected state via box-shadow so
   the ring works on any background (including white). */
.mec-ud-swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
}

.mec-ud-swatch {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 30px;
    height: 30px;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #e1e5ea !important;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--swatch-bg, #fff) !important;
    color: #9ca3af !important;
    position: relative;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    font-family: inherit;
}

.mec-ud-swatch:hover {
    transform: scale(1.1);
}

.mec-ud-swatch:focus-visible {
    outline: 2px solid var(--mec-ud-primary, #07bbe9);
    outline-offset: 2px;
}

.mec-ud-swatch[aria-pressed="true"],
.mec-ud-swatch.is-selected {
    /* Two-layer ring: white inner ring separates the swatch from the colored
       outer ring so it stays visible on any background. */
    box-shadow:
        0 0 0 2px #fff,
        0 0 0 4px var(--swatch-ring, var(--mec-ud-primary, #07bbe9));
    border-color: rgba(0, 0, 0, 0.08);
}

.mec-ud-swatch svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    pointer-events: none;
}

.mec-ud-swatch--default {
    background: #fff;
    color: #9ca3af;
}

.mec-ud-swatch--custom {
    border: 1.5px dashed #c2c8d0;
    background: var(--swatch-bg, #fff);
    color: #9ca3af;
}

.mec-ud-swatch--custom:hover {
    border-color: var(--mec-ud-primary, #07bbe9);
    color: var(--mec-ud-primary, #07bbe9);
}

/* When a custom color is selected, hide the + icon so the color is visible */
.mec-ud-swatch--custom.is-selected .mec-ud-swatch__plus {
    display: none;
}

.mec-ud-swatch--custom.is-selected {
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.08);
}

/* The native color input is invisible but fills the label so the whole
   circle is the click target. */
.mec-ud-swatch--custom input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

.mec-ud-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .mec-ud-swatches {
        gap: 8px;
    }

    .mec-ud-swatch {
        width: 28px;
        height: 28px;
    }
}

span.mec-ud-login-message {
    width: 100%;
    background: #fff;
    padding: 20px 0 0 0;
    margin: 0 auto;
    text-align: center;
    font-size: 10px;
    position: relative;
    display: block;
    color: #afafaf;
    font-style: italic;
}

.mec-ud-main-content .woocommerce-info,
.mec-ud-main-content .woocommerce-noreviews,
.mec-ud-main-content p.no-comments {
    background-color: #edf0f3;
}

.mec-table-responsive {
    width: 100%;
    max-width: 100%;
}

.mec-ud-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.mec-ud-table th,
.mec-ud-table td {
    vertical-align: top;
    text-align: left;
    padding: 15px;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.mec-ud-table td {
    border: none;
    border-bottom: 1px solid #e1e2e3 !important;
    background: #fff !important;
}

.mec-ud-table tbody tr td:first-child {
    border-left: 1px solid #e1e2e3;
}

.mec-ud-table tbody tr td:last-child {
    border-right: 1px solid #e1e2e3;
}

.mec-ud-table th::before,
.mec-ud-table td::before {
    box-sizing: border-box;
}

/* Actions Dropdown */
.mec-ud-actions-dropdown {
    position: relative;
    display: inline-flex;
}

.mec-ud-actions-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 4px;
    color: #666;
    transition: background 0.15s, color 0.15s;
}

.mec-ud-actions-toggle:hover {
    background: #f0f1f2;
    color: #000;
}

.mec-ud-actions-toggle svg {
    display: block;
}

.mec-ud-actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1000;
    min-width: 170px;
    background: #fff;
    border: 1px solid #e1e2e3;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 4px 0;
    margin-top: 4px;
}

.mec-ud-actions-menu.is-open {
    display: block;
}

.mec-ud-actions-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    text-decoration: none !important;
    color: #333 !important;
    font-size: 13px;
    line-height: 1.4;
    transition: background 0.15s;
    white-space: nowrap;
}

.mec-ud-actions-item:hover {
    background: #f5f6f7;
}

.mec-ud-actions-item svg {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mec-ud-actions-table-cell {
    position: relative;
    text-align: center;
}

@media (max-width: 767px) {

    .mec-ud-table,
    .mec-ud-table thead,
    .mec-ud-table tbody,
    .mec-ud-table th,
    .mec-ud-table td,
    .mec-ud-table tr {
        display: block;
        width: 100%;
    }

    .mec-ud-table-head {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }

    .mec-ud-table .mec-ud-row {
        margin-bottom: 15px;
        border: 1px solid #e1e2e3;
        background: #fff;
    }

    .mec-ud-table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 15px;
        padding: 12px 15px;
        border: 0;
        border-bottom: 1px solid #e1e2e3;
        text-align: right;
    }

    .mec-ud-table tbody tr td:first-child,
    .mec-ud-table tbody tr td:last-child {
        border-left: 0;
        border-right: 0;
    }

    .mec-ud-table td:last-child {
        border-bottom: 0;
    }

    .mec-ud-table td::before {
        content: attr(data-label);
        flex: 0 0 120px;
        max-width: 120px;
        color: #000;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.4;
        text-align: left;
    }
}

.mec-waiting-list-attendees,
.mec-rsvp-attendees {
    background: #fff;
    padding: 10px;
}

h5.mec-ud-form-subtitle {
    font-size: 15px;
    font-weight: 700;
    margin: 30px 0 25px;
    position: relative;
    overflow: hidden;
}

h5.mec-ud-form-subtitle:after {
    content: "";
    display: inline-block;
    width: 100%;
    height: 1px;
    border-bottom: 1px solid #eee;
    position: absolute;
    top: 9px;
    margin-left: 10px;
}

.mec-ud-empty-state {
    background: linear-gradient(135deg, rgba(7, 187, 233, .03), rgba(7, 187, 233, .02));
    border: 1px dashed #e6e9eb;
    border-radius: 8px;
    margin: 20px 15px;
    padding: 40px 30px;
    text-align: center;
}

.mec-ud-empty-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #eef7fb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mec-ud-empty-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: #8aa9b7;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mec-ud-empty-state h4 {
    margin: 0;
    font-size: 18px;
    color: #2b3137;
}

.mec-ud-empty-state p {
    margin: 0 0 8px;
    color: #7b8794;
}

#mec-dashboard-wrapper .fc .fc-button {
    -webkit-appearance: button !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    background-color: transparent !important;
    border: 1px solid transparent !important;
    padding: .4em .65em !important;
    font-size: 1em !important;
    line-height: 1.5 !important;
    border-radius: .25em !important;
}

#mec-dashboard-wrapper .mec-gCalendar h2.fc-toolbar-title button {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    padding: 0 !important;
    outline: none !important;
}

/* Modal Form Fields */
.lity .mec-add-edit-waiting-modal,
.lity .mec-add-edit-booking-modal,
.lity .mec-add-edit-rsvp-modal {
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
}

.lity .mec-add-edit-waiting-modal h3,
.lity .mec-add-edit-booking-modal h3,
.lity .mec-add-edit-rsvp-modal h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 24px;
    color: #171c24;
}

.lity .mec-add-edit-waiting-modal .mec-form-row,
.lity .mec-add-edit-booking-modal .mec-form-row,
.lity .mec-add-edit-rsvp-modal .mec-form-row {
    margin-bottom: 16px;
}

.lity .mec-add-edit-waiting-modal label,
.lity .mec-add-edit-booking-modal label,
.lity .mec-add-edit-rsvp-modal label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #404852;
    margin-bottom: 6px;
    text-transform: none;
}

.lity .mec-add-edit-waiting-modal input[type="text"],
.lity .mec-add-edit-waiting-modal input[type="number"],
.lity .mec-add-edit-waiting-modal input[type="email"],
.lity .mec-add-edit-waiting-modal select,
.lity .mec-add-edit-booking-modal input[type="text"],
.lity .mec-add-edit-booking-modal input[type="number"],
.lity .mec-add-edit-booking-modal input[type="email"],
.lity .mec-add-edit-booking-modal select,
.lity .mec-add-edit-rsvp-modal input[type="text"],
.lity .mec-add-edit-rsvp-modal input[type="number"],
.lity .mec-add-edit-rsvp-modal input[type="email"],
.lity .mec-add-edit-rsvp-modal select,
.lity .mec-rsvp-response-edit-form input[type="text"],
.lity .mec-rsvp-response-edit-form input[type="email"],
.lity .mec-waitlist-request-edit-form input[type="text"],
.lity .mec-waitlist-request-edit-form input[type="email"] {
    width: 100%;
    height: 40px;
    border: 1px solid #d1d5d9;
    border-radius: var(--mec-secondary-border-radius, 3px);
    padding: 0 12px;
    font-size: 13px;
    color: #171c24;
    background: #fff;
    outline: none;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.lity .mec-add-edit-waiting-modal input[type="text"]:focus,
.lity .mec-add-edit-waiting-modal input[type="number"]:focus,
.lity .mec-add-edit-waiting-modal input[type="email"]:focus,
.lity .mec-add-edit-waiting-modal select:focus,
.lity .mec-add-edit-booking-modal input[type="text"]:focus,
.lity .mec-add-edit-booking-modal input[type="number"]:focus,
.lity .mec-add-edit-booking-modal input[type="email"]:focus,
.lity .mec-add-edit-booking-modal select:focus,
.lity .mec-add-edit-rsvp-modal input[type="text"]:focus,
.lity .mec-add-edit-rsvp-modal input[type="number"]:focus,
.lity .mec-add-edit-rsvp-modal input[type="email"]:focus,
.lity .mec-add-edit-rsvp-modal select:focus,
.lity .mec-rsvp-response-edit-form input:focus,
.lity .mec-waitlist-request-edit-form input:focus {
    border-color: var(--mec-ud-primary, #07bbe9);
    box-shadow: 0 0 0 1px var(--mec-ud-primary, #07bbe9);
}

.lity .mec-add-edit-waiting-modal button[type="submit"],
.lity .mec-add-edit-booking-modal button[type="submit"],
.lity .mec-add-edit-rsvp-modal button[type="submit"],
.lity .mec-rsvp-response-edit-form button[type="submit"],
.lity .mec-waitlist-request-edit-form button[type="submit"] {
    height: 40px;
    padding: 0 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--mec-secondary-border-radius, 3px);
    cursor: pointer;
}

.lity .mec-rsvp-response-edit-form,
.lity .mec-waitlist-request-edit-form {
    background: #fff !important;
    padding: 24px !important;
}

.lity .mec-rsvp-response-edit-form div,
.lity .mec-waitlist-request-edit-form div {
    margin-bottom: 14px;
}

.lity .mec-rsvp-response-edit-form label,
.lity .mec-waitlist-request-edit-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #404852;
    margin-bottom: 6px;
}

/* Neutralize MEC frontend.css general button styles on FullCalendar toolbar buttons.
   Uses :where() to keep specificity low so MEC's own .mec-gCalendar FullCalendar styles still apply. */
:where(.mec-ud-events-calendar) .mec-gCalendar .fc-toolbar-chunk button.fc-button {
    background: none;
    border: none;
    box-shadow: none;
    color: inherit;
    font-size: inherit;
    margin: 0;
    padding: 0.4em 0.65em;
    text-transform: none;
}

:where(.mec-ud-events-calendar) .mec-gCalendar .fc-toolbar-chunk button.fc-button:hover {
    background: none;
    border: none;
    box-shadow: none;
    color: inherit;
}

#gCalendarMonthFilterButton {
    display: none;
}

/* Legacy .mec-ud-submit-form is no longer styled here — buttons use the unified
   .mec-ud-btn system defined in src/styles/buttons.css. The class is kept only
   as a JS hook (mec-ud-submit-profile / -speaker / -organizer / -payments). */

/* ---------------------------------------------------------------
   Mobile navigation drawer (≤ 960px)
   On desktop the sidebar renders inline inside `.col-md-3`; on mobile it
   becomes a slide-in drawer toggled by `.mec-ud-mobile-bar`. The drawer
   wrapper is `.mec-ud-sidebar-drawer` and lives in the same DOM spot, so
   the desktop layout is unaffected.
   --------------------------------------------------------------- */

.mec-ud-mobile-bar {
    display: none;
}

.mec-ud-mobile-overlay {
    display: none;
}

/* Drawer wrapper is a no-op on desktop — Sidebar renders inline. */
.mec-ud-sidebar-drawer {
    /* intentionally empty: desktop keeps the normal flow */
}

@media (max-width: 960px) {

    /* Sticky top bar with hamburger toggle. Rendered as a flex item inside
       `.row.mec-ud-wrap`; flex-basis: 100% forces it onto its own row. */
    .mec-ud-mobile-bar {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 999;
        flex: 0 0 100%;
        width: 100%;
        align-items: center;
        gap: 12px;
        padding: 10px 14px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    }

    .mec-ud-mobile-bar__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        color: #1f2937;
        background: transparent;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease;
    }

    .mec-ud-mobile-bar__toggle:hover {
        background: #f3f4f6;
    }

    .mec-ud-mobile-bar__toggle:focus-visible {
        outline: 2px solid var(--mec-ud-primary, #07bbe9);
        outline-offset: 2px;
    }

    .mec-ud-mobile-bar__title {
        font-size: 15px;
        font-weight: 600;
        color: #1f2937;
    }

    /* Backdrop behind the drawer. Click closes the drawer. */
    .mec-ud-mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1000;
        animation: mec-ud-overlay-fade 0.2s ease;
    }

    @keyframes mec-ud-overlay-fade {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    /* The sidebar leaves the normal flow and slides in from the left.
       `visibility: hidden` while closed keeps it out of the tab order and
       the accessibility tree, mirroring how a native dialog would behave. */
    .mec-ud-sidebar-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(320px, 85vw);
        max-width: 320px;
        background: #fff;
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden;
        visibility: hidden;
        transform: translateX(-100%);
        transition: transform 0.25s ease, visibility 0s linear 0.25s;
        box-shadow: 2px 0 24px rgba(0, 0, 0, 0.18);
    }

    .mec-ud-sidebar-drawer.is-open {
        visibility: visible;
        transform: translateX(0);
        transition: transform 0.25s ease, visibility 0s linear 0s;
    }

    /* The stacked mobile layout previously shrank sidebar fonts to fit; with
       the drawer the sidebar uses its normal desktop typography. Also undo
       the centred text alignment so labels read naturally left-aligned. */
    .mec-ud-main .row.mec-ud-wrap .col-md-3 {
        text-align: left;
    }
}