/* Events Page - Figma Design */
.events-page,
.create-event-page {
    --events-primary: var(--jbf-pink);
    --events-text: var(--events-text-color);
    --events-text-muted: var(--text-secondary);
    --events-text-secondary: var(--text-primary);
    --events-border: var(--events-border-color);
    --events-border-light: var(--events-border-light-color);
    --events-action-item-text: #414142;
    --events-card-bg: #F6F5F8;
    --events-primary-hover: #6a4a6e;
    font-family: var(--font-overpass);
    padding: 20px 24px;
}

.events-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--events-text);
    margin: 0;
}

.events-subtitle {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--events-text-muted);
    margin: 0;
}

.events-header-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.events-btn-outline {
    padding: 10px 20px;
    height: 35px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--events-primary);
    background: var(--rz-white);
    border: 1px solid var(--events-primary);
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.events-btn-outline:hover {
    background: var(--events-card-bg);
}

.events-btn-primary {
    padding: 10px 20px;
    height: 35px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--rz-white);
    background: var(--events-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.events-btn-primary:hover {
    background: var(--events-primary-hover);
}

.events-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 8px 0;
}

.event-card {
    background: var(--events-card-bg);
    border-radius: 12px;
    border: 1px solid var(--events-border-light);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 781px;
    width: 100%;
}

.event-card-name {
    height: 24px;
    width: fit-content;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--events-text-secondary);
    margin: 0;
}

.event-card-season {
    height: 29px;
    width: fit-content;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.6;
    color: var(--events-text-muted);
    margin: 0;
}

.event-card-actions-wrapper {
    position: relative;
}

.event-actions-container {
    position: relative;
}

.event-actions-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
}

.event-actions-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    height: 32px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--events-text);
    background: var(--rz-white);
    border: 1px solid var(--events-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.event-actions-btn:hover {
    background: var(--stripe-background-color);
}

.event-actions-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 180px;
    background: var(--rz-white);
    border-radius: 12px;
    box-shadow: 0 12px 12px 0 rgba(39, 45, 58, 0.25);
    border: 1px solid var(--events-border);
    z-index: 100;
    padding: 8px 0;
}

.event-actions-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--events-action-item-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

.event-actions-item:hover {
    background: var(--events-card-bg);
}

.event-card-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    flex: 1 1 300px;
    max-width: 360px;
}

.event-detail-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--events-text-muted);
}

.event-detail-value {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--events-text-secondary);
}

.event-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 2px 8px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 6px;
    width: fit-content;
}

.event-pill-grey {
    background: transparent;
    color: var(--events-text);
    border: 1px solid var(--events-border-light);
}

.event-pill-purple {
    background: var(--events-primary);
    color: var(--rz-white);
    border: 1px solid transparent;
}

.event-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 17px;
    border-top: 1px solid var(--events-border-light);
}

.event-payment-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 0;
    color: var(--events-text-muted);
}

.event-check-icon {
    flex-shrink: 0;
}

.recent-events-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.333;
    color: var(--events-text);
    margin: 0;
}

.recent-events-container {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 0;
    list-style: none;
    background: var(--rz-white);
    border: 1px solid var(--events-border-light);
    border-radius: 14px;
    padding: 25px 0;
    box-shadow: 0px 1px 2px -1px rgba(0, 0, 0, 0.1), 0px 1px 3px 0px rgba(0, 0, 0, 0.1);
}

.recent-event-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 16px 17px;
    border-bottom: 1px solid var(--events-border-light);
    gap: 16px;
}

.recent-event-row:last-child {
    border-bottom: none;
}

.recent-event-name {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--events-text);
}

.recent-event-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.recent-event-time {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    color: var(--events-text-secondary);
}

.recent-event-status {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.33;
    color: var(--events-text);
    padding: 3px 9px;
    border: 1px solid var(--events-border-light);
    border-radius: 8px;
}

/* xs/sm tiers (≤ --bp-md = 768) - event cards span full row. The 767.98px
   literal mirrors --bp-md in site.css; CSS @media can't dereference custom
   properties. md+ unchanged. */
@media (max-width: 767.98px) {
    .event-card-column {
        flex: 1 1 100%;
        max-width: none;
    }

    .events-header-right {
        width: 100%;
    }

    .recent-event-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Create Event Page */
.create-event-page {
    --events-primary: var(--jbf-pink);
    --events-text: var(--events-text-color);
    --events-text-muted: var(--text-secondary);
    --events-border: var(--events-border-color);
    --events-border-light: var(--events-border-light-color);
    font-family: var(--font-overpass);
}

.create-event-back {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--events-text);
    text-decoration: none;
    margin-bottom: 10px;
    cursor: pointer;
}

.create-event-back:hover {
    text-decoration: underline;
}

.create-event-header {
    margin-bottom: 32px;
}

.create-event-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--events-text);
    margin: 0 0 4px 0;
}

.create-event-subtitle {
    font-size: 0.875rem;
    color: var(--events-text-muted);
    margin: 0;
}

.create-event-steps {
    display: flex;
    padding: 3px;
    background: var(--events-card-bg);
    border-radius: 10px;
    width: 100%;
    margin-bottom: 24px;
    align-items: center;
    align-self: stretch;
}

.create-event-step {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 29px;
    padding: 5px 29.36px;
    font-size: 14px;
    font-weight: 500;
    color: var(--events-text);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1 0 0;
    text-align: center;
}

.create-event-step:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--events-border-light);
}

.create-event-step-active {
    border-radius: 8px;
    background: var(--rz-white);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
}

.create-event-form-section {
    background: var(--events-card-bg);
    border-radius: 12px;
    border: 1px solid var(--events-border-light);
    padding: 32px;
}

.create-event-form-section .rz-dropdown-panel {
    top: 100% !important;
    bottom: auto !important;
}

.basic-info-section-title {
    font-size: 20px;
    font-weight: 400;
    color: var(--events-text);
    margin: 0 0 8px 0;
}

.event-info-section-title, .event-info-subsection-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--events-text);
    margin: 0 0 4px 0;
}

.tagging-info-section-title, .tagging-info-subsection-title {
    font-size: 18px;
    font-weight: 400;
    color: var(--events-text);
    margin: 0 0 4px 0;
}

.basic-info-section-subtitle {
    width: fit-content;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.event-info-section-subtitle, .event-info-subsection-desc {
    width: fit-content;
    font-size: 14px;
    color: var(--events-text-muted);
    margin: 0 0 4px 0;
}

.tagging-info-section-subtitle, .tagging-info-subsection-desc {
    width: fit-content;
    font-size: 0.875rem;
    color: var(--events-text-muted);
    margin: 0 0 4px 0;
}

.create-event-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 24px;
}

.create-event-form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.basic-info-label, .create-event-label {
    font-size: 14px;
    font-weight: 400;
    color: var(--events-text);
}

.create-event-label {
    font-weight: 600;
}

.basic-info-label .required, .create-event-label .required {
    color: var(--rz-danger);
}

.create-event-form-actions {
    margin-top: 24px;
    display: flex;
    justify-content: flex-end;
}

.create-event-btn-next {
    display: flex;
    height: 40px;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--rz-white);
    background: var(--events-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-event-btn-next:hover {
    background: var(--events-primary-hover);
}

.create-event-btn-back {
    display: flex;
    height: 40px;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--events-text-muted);
    background: var(--rz-white);
    border: 1px solid var(--events-text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-event-btn-back:hover {
    background: var(--stripe-background-color);
}

.basic-info-subsection {
    margin-bottom: 28px;
}

.event-info-subsection {
    padding-top: 20px;
    margin-bottom: 24px;
}

.tagging-info-subsection {
    padding-top: 20px;
}

.create-event-info-subsection:last-of-type {
    margin-bottom: 0;
}

.basic-info-subsection-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--events-text);
    margin: 0 0 8px 0;
}

.event-info-upload-section-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--events-text);
    margin: 0 0 4px 0;
}

.event-info-upload-section-desc {
    color: var(--events-text-muted);
    font-size: 14px;
    font-weight: 400;
}

.event-info-rich-editor-wrap, .tagging-info-rich-editor-wrap {
    border: 1px solid var(--events-border-light);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 24px;
}

.event-info-rich-editor-wrap .rz-html-editor-toolbar,
.event-info-rich-editor-wrap .rz-htmleditor-toolbar,
.tagging-info-rich-editor-wrap .rz-html-editor-toolbar,
.tagging-info-rich-editor-wrap .rz-htmleditor-toolbar {
    background: var(--rz-primary-lighter);
}

.event-info-rich-editor-wrap .rz-html-editor-button,
.event-info-rich-editor-wrap .rz-htmleditor-button,
.tagging-info-rich-editor-wrap .rz-html-editor-button,
.tagging-info-rich-editor-wrap .rz-htmleditor-button {
    background: var(--rz-primary-lighter);
}

.event-info-rich-editor-wrap .rz-html-editor-content,
.event-info-rich-editor-wrap .rz-htmleditor-content,
.tagging-info-rich-editor-wrap .rz-html-editor-content,
.tagging-info-rich-editor-wrap .rz-htmleditor-content {
    min-height: 200px;
}

.event-info-rich-editor-wrap .rz-html-editor-colorpicker,
.event-info-rich-editor-wrap .rz-htmleditor-colorpicker,
.tagging-info-rich-editor-wrap .rz-html-editor-colorpicker,
.tagging-info-rich-editor-wrap .rz-htmleditor-colorpicker {
    background-color: var(--rz-primary-lighter);
    padding: 12px;
}

.event-info-rich-editor-wrap .rz-colorpicker-trigger,
.tagging-info-rich-editor-wrap .rz-colorpicker-trigger {
    background-color: var(--rz-primary-lighter);
}

.create-event-rich-editor-wrap {
    border: 1px solid var(--events-border-light);
    border-radius: 8px;
    overflow: hidden;
}

.create-event-rich-editor-wrap .rz-htmleditor {
    border: none;
    border-radius: 8px;
}

.create-event-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    color: var(--events-text);
    background: var(--rz-white);
    border: 1px solid var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-event-upload-btn:hover {
    background: var(--stripe-background-color);
}

.create-event-tagging-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 24px;
}

.create-event-tagging-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.seller-guide-section-title {
    color: var(--events-text);
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 4px;
}

.create-event-field-desc,
.create-event-subsection-desc {
    font-size: 0.8125rem;
    color: var(--events-text-muted);
    margin: 0 0 8px 0;
}

.seller-guide-section-desc {
    font-size: 0.875rem;
    color: var(--events-text-muted);
    margin: 0 0 12px 0;
}

.tagging-info-subsection-desc {
    font-size: 14px;
    font-weight: 400;
    margin: 0 0 8px 0;
    color: var(--events-text-muted);
}

.event-info-subsection-desc {
    font-size: 0.875rem;
    color: var(--events-text-muted);
    margin: 0 0 8px 0;
}

.create-event-subsection-desc {
    font-size: 0.875rem;
    color: var(--events-text-muted);
    margin: 0 0 16px 0;
}

.create-event-tagging-col .create-event-subsection-title {
    margin-bottom: 0;
}

.create-event-tagging-col .create-event-subsection-desc {
    margin-bottom: 8px;
}

.create-event-detail-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.create-event-detail-card {
    background: var(--events-card-bg);
    border-radius: 12px;
    border: 1px solid var(--events-border-light);
    padding: 25px;
}

.create-event-detail-card-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.create-event-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--events-card-bg);
    color: var(--events-primary);
}

.create-event-detail-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--events-text);
    margin: 0 0 4px 0;
}

.create-event-detail-card-subtitle {
    font-size: 0.875rem;
    color: var(--events-text-muted);
    margin: 0;
}

.event-payment-collection-item {
    padding: 12px 0;
}

.create-event-detail-toggle-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--events-text);
}

.create-event-detail-toggle-desc {
    display: block;
    font-size: 0.8125rem;
    color: var(--events-text-muted);
    margin-top: 4px;
}

.create-event-input-prefix {
    display: flex;
    align-items: center;
    border-radius: 8px;
    overflow: hidden;
}

.create-event-input-prefix-symbol {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--events-text-muted);
}

.create-event-detail-footer-buttons {
    display: flex;
    gap: 12px;
}

.create-event-btn-publish {
    display: flex;
    height: 40px;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--rz-white);
    background: var(--events-primary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-event-btn-publish:hover {
    background: var(--events-primary-hover);
}

.create-event-btn-draft {
    display: flex;
    height: 40px;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: var(--rz-white);
    background: #6b7280;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-event-btn-draft:hover {
    background: #4b5563;
}

.create-event-detail-card .rz-switch {
    border-radius: 9999px !important;
    background-color: #e5e7eb !important;
    min-width: 44px !important;
    height: 24px !important;
}

.create-event-detail-card .rz-switch .rz-switch-handle {
    background-color: var(--rz-white) !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
}

.create-event-detail-card .rz-switch.rz-state-active {
    background-color: #7d5b81 !important;
}

.create-event-detail-card .rz-switch.rz-state-active .rz-switch-handle,
.create-event-detail-card .rz-switch.rz-switch-checked.rz-switch-circle {
    background-color: var(--rz-white) !important;
}

.create-event-detail-card .rz-switch.rz-switch-checked .rz-switch-circle {
    background-color: #7d5581 !important;
}

.create-event-detail-card .rz-switch.rz-switch-checked .rz-switch-circle:before {
    background-color: var(--rz-white) !important;
    left: 3px;
}

.registration-amount-input .rz-textbox {
    width: 120px;
    border: 1px solid var(--events-border-light);
}

.max-consignor-items-input .rz-textbox {
    width: 205px;
    height: 38px;
}

/* xs/sm tiers (≤ --bp-md = 768) - create-event form collapses to a single
   column. The 767.98px literal mirrors --bp-md in site.css; CSS @media can't
   dereference custom properties. md+ unchanged. */
@media (max-width: 767.98px) {
    .create-event-form-grid {
        grid-template-columns: 1fr;
    }

    .create-event-tagging-columns {
        grid-template-columns: 1fr;
    }

    .create-event-detail-card-body {
        padding-left: 0;
    }

    .create-event-detail-footer-buttons {
        flex-direction: column;
    }
}

/* Checklist Admin - dashboard + Communications-style metric drill-down (see communications.css) */
.checklist-admin-dashboard-tab {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.checklist-admin-dashboard-host {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}
