/* Data Table Component */
.table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    background: var(--bg-card);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: 0.875rem;
}

.data-table th {
    background: var(--bg-hover);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    position: relative;
}

.data-table th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table th.sortable:hover {
    background: var(--bg-active);
}

.data-table th.sortable i {
    margin-left: 0.5rem;
    opacity: 0.5;
    transition: all 0.2s;
}

.data-table th.sort-asc i::before {
    content: "\f0de";
    opacity: 1;
}

.data-table th.sort-desc i::before {
    content: "\f0dd";
    opacity: 1;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: top;
    color: var(--text-primary);
}

.data-table tr:hover {
    background: var(--bg-hover);
}

/* Status-based row hover colors - override default hover */
.data-table tr.row-status-published:hover,
.data-table tr.row-status-cancelled:hover,
.data-table tr.row-status-rescheduled:hover,
.data-table tr.row-status-pending-reschedule:hover,
.data-table tr.row-status-draft:hover,
.data-table tr.row-status-live:hover,
.data-table tr.row-status-completed:hover,
.data-table tr.row-status-complete:hover,
.data-table tr.row-status-promotion:hover,
.data-table tr.row-status-planning:hover,
.data-table tr.row-status-tickets-on-sale:hover,
.data-table tr.row-status-renewal:hover,
.data-table tr.row-status-pending:hover {
    background: inherit;
}

.data-table tr:hover td {
    background: transparent;
}

/* Cell Types */
.cell-currency {
    text-align: right;
    font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

.cell-number {
    text-align: right;
    font-family: 'SF Mono', Consolas, 'Liberation Mono', Menlo, monospace;
}

.cell-date,
.cell-datetime {
    white-space: nowrap;
}

/* Logo cell with thumbnail and link */
.cell-logo {
    padding: 0.5rem 1rem;
}

.logo-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
}

.logo-link {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.7;
    transition: opacity 0.15s, color 0.15s;
}

.logo-link:hover {
    opacity: 1;
    color: var(--brand-primary);
}

.logo-error {
    display: none;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.no-logo {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

.cell-status .status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.status-upcoming {
    background: #ede9fe;
    color: #5b21b6;
}

.status-expired {
    background: #f3f4f6;
    color: #6b7280;
}

.status-future {
    background: #ecfdf5;
    color: #047857;
}

/* Row status coloring for events table */
.row-status-published {
    background-color: rgba(209, 250, 229, 0.3) !important;
    /* light green */
}

.row-status-published:hover {
    background-color: rgba(209, 250, 229, 0.5) !important;
}

.row-status-cancelled {
    background-color: rgba(254, 226, 226, 0.3) !important;
    /* light red */
}

.row-status-cancelled:hover {
    background-color: rgba(254, 226, 226, 0.5) !important;
}

.row-status-rescheduled {
    background-color: rgba(255, 237, 213, 0.3) !important;
    /* light orange */
}

.row-status-rescheduled:hover {
    background-color: rgba(255, 237, 213, 0.5) !important;
}

.row-status-pending-reschedule {
    background-color: rgba(254, 243, 199, 0.3) !important;
    /* light yellow */
}

.row-status-pending-reschedule:hover {
    background-color: rgba(254, 243, 199, 0.5) !important;
}

.row-status-draft {
    background-color: rgba(243, 244, 246, 0.3) !important;
    /* light gray */
}

.row-status-draft:hover {
    background-color: rgba(243, 244, 246, 0.5) !important;
}

.row-status-live {
    background-color: rgba(134, 239, 172, 0.4) !important;
    /* bright green */
}

.row-status-live:hover {
    background-color: rgba(134, 239, 172, 0.6) !important;
}

.row-status-completed,
.row-status-complete {
    background-color: rgba(219, 234, 254, 0.3) !important;
    /* light blue */
}

.row-status-completed:hover,
.row-status-complete:hover {
    background-color: rgba(219, 234, 254, 0.5) !important;
}

/* Promotion-specific status highlighting */
.row-status-promotion {
    background-color: rgba(134, 239, 172, 0.4) !important;
    /* bright green - actively promoting */
}

.row-status-promotion:hover {
    background-color: rgba(134, 239, 172, 0.6) !important;
}

.row-status-planning {
    background-color: rgba(254, 243, 199, 0.3) !important;
    /* light yellow */
}

.row-status-planning:hover {
    background-color: rgba(254, 243, 199, 0.5) !important;
}

.row-status-tickets-on-sale {
    background-color: rgba(209, 250, 229, 0.4) !important;
    /* green tint - tickets available */
}

.row-status-tickets-on-sale:hover {
    background-color: rgba(209, 250, 229, 0.6) !important;
}

.row-status-renewal {
    background-color: rgba(221, 214, 254, 0.3) !important;
    /* light purple */
}

.row-status-renewal:hover {
    background-color: rgba(221, 214, 254, 0.5) !important;
}

.row-status-pending {
    background-color: rgba(254, 215, 170, 0.3) !important;
    /* light orange */
}

.row-status-pending:hover {
    background-color: rgba(254, 215, 170, 0.5) !important;
}

/* Status Legend */
.status-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
}

.status-legend .legend-title {
    font-weight: 600;
    color: var(--text-primary);
}

.status-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-secondary);
}

.status-legend .legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.status-legend .legend-color.published {
    background-color: rgba(74, 222, 128, 0.5);
}

.status-legend .legend-color.cancelled {
    background-color: rgba(248, 113, 113, 0.5);
}

.status-legend .legend-color.rescheduled {
    background-color: rgba(251, 146, 60, 0.5);
}

.status-legend .legend-color.pending-reschedule {
    background-color: rgba(253, 224, 71, 0.5);
}

.status-legend .legend-color.draft {
    background-color: rgba(156, 163, 175, 0.5);
}

.status-legend .legend-color.live {
    background-color: rgba(34, 197, 94, 0.6);
}

.status-legend .legend-color.completed,
.status-legend .legend-color.complete {
    background-color: rgba(96, 165, 250, 0.5);
}

/* Promotion-specific status legend colors */
.status-legend .legend-color.promotion {
    background-color: rgba(34, 197, 94, 0.6);
    /* bright green */
}

.status-legend .legend-color.tickets-on-sale {
    background-color: rgba(74, 222, 128, 0.5);
    /* green tint */
}

.status-legend .legend-color.planning {
    background-color: rgba(253, 224, 71, 0.5);
    /* yellow */
}

.status-legend .legend-color.renewal {
    background-color: rgba(167, 139, 250, 0.5);
    /* purple */
}

.status-legend .legend-color.pending {
    background-color: rgba(251, 146, 60, 0.5);
    /* orange */
}

/* Editable Cells */
.editable {
    cursor: pointer;
    position: relative;
}

.editable:hover {
    outline: 2px solid var(--brand-primary);
    outline-offset: -2px;
    border-radius: 4px;
}

.cell-editor {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid var(--brand-primary);
    border-radius: 4px;
    font-size: inherit;
    font-family: inherit;
    background: var(--bg-input);
    color: var(--text-primary);
}

.cell-editor:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Dropdown cell editor */
.cell-dropdown {
    cursor: pointer;
    appearance: auto;
    min-width: 150px;
}

.cell-dropdown option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.5rem;
}

/* Clickable dropdown cells */
td[data-editable="true"].cell-dropdown-type {
    cursor: pointer;
}

td[data-editable="true"].cell-dropdown-type:hover {
    background: var(--bg-active) !important;
}

/* Actions Cell */
.actions-cell {
    white-space: nowrap;
}

.actions-cell .btn-icon {
    opacity: 0;
    transition: opacity 0.2s;
}

.data-table tr:hover .actions-cell .btn-icon {
    opacity: 1;
}

.btn-edit {
    color: #059669;
}

.btn-edit:hover {
    background: #d1fae5;
}

.btn-view {
    color: #3b82f6;
}

.btn-view:hover {
    background: #dbeafe;
}

.btn-delete {
    color: #dc2626;
}

.btn-delete:hover {
    background: #fee2e2;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-pagination {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
}

.btn-pagination:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.btn-pagination:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Filter Panel Component */
.filter-panel {
    position: relative;
}

.filter-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.filter-toggle:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.filter-count {
    background: var(--brand-primary);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    min-width: 1.25rem;
    text-align: center;
}

.filter-clear-wrapper {
    display: flex;
    justify-content: center;
    padding: 0.375rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.filter-clear {
    background: none;
    border: none;
    color: var(--brand-primary);
    font-size: 0.8125rem;
    cursor: pointer;
}

.filter-clear:hover {
    text-decoration: underline;
}

.filter-content {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
}

.filter-content.expanded {
    max-height: 4000px;
    border-color: var(--border-color);
    opacity: 1;
    visibility: visible;
}

.filter-group {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-label {
    display: block;
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.filter-input {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.8125rem;
    transition: all 0.2s;
    background: var(--bg-input);
    color: var(--text-primary);
}

.filter-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Multi-select Filter */
.multiselect-wrapper {
    position: relative;
}

.multiselect-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-input);
    cursor: pointer;
    text-align: left;
    color: var(--text-primary);
}

.multiselect-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.multiselect-dropdown.open {
    display: block;
}

.multiselect-option {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background 0.2s;
    color: var(--text-primary);
}

.multiselect-option:hover {
    background: var(--bg-hover);
}

.multiselect-option input {
    margin-right: 0.5rem;
}

/* Date Range Filter */
.date-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-range input {
    flex: 1;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.date-separator {
    color: var(--text-secondary);
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Column Picker Component */
.column-picker {
    position: relative;
}

.column-picker-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.column-picker-trigger:hover {
    background: var(--bg-hover);
    border-color: var(--text-muted);
}

.column-picker-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    margin-top: 0.5rem;
    overflow: hidden;
}

.column-picker-dropdown.open {
    display: block;
}

.column-picker-header {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    background: var(--bg-hover);
}

.column-picker-header h3 {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.column-picker-actions {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.column-picker-actions button {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: all 0.2s;
    text-decoration: none;
}

.column-picker-actions button:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

.column-picker-content {
    max-height: 320px;
    overflow-y: auto;
    padding: 0.25rem;
}

.column-item {
    border-bottom: 1px solid var(--border-color);
}

.column-item:last-child {
    border-bottom: none;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
    gap: 0.5rem;
}

.checkbox-label:hover {
    background: var(--bg-hover);
}

.checkbox-custom {
    position: relative;
    flex-shrink: 0;
}

.column-info {
    flex: 1;
    min-width: 0;
}

.column-top-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.column-name {
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.column-type {
    display: none;
}

.default-badge,
.editable-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 4px;
    font-size: 0.5625rem;
    font-weight: 600;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.default-badge {
    background: var(--bg-active);
    color: var(--brand-dark);
    border: 1px solid var(--brand-primary);
}

.editable-badge {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #d1fae5;
}

.column-picker-footer {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    background: var(--bg-hover);
}

/* Modal Component */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.modal.show {
    opacity: 1;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-dialog {
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    margin: 1rem;
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.modal-small .modal-dialog {
    max-width: 400px;
    width: 100%;
}

.modal-medium .modal-dialog {
    max-width: 600px;
    width: 100%;
}

.modal-large .modal-dialog {
    max-width: 900px;
    width: 100%;
}

/* Extra large modal for complex forms */
.modal-xlarge .modal-dialog {
    max-width: 1100px;
    width: 95%;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    color: var(--text-primary);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-title i {
    color: var(--brand-primary);
    font-size: 1.125rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-active);
    color: var(--text-primary);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.modal-error,
.modal-success {
    margin-bottom: 1.5rem;
}

/* Calendar Component */
.calendar-wrapper {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-color);
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.calendar-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.calendar-view-switcher {
    display: flex;
    gap: 0.5rem;
}

.calendar-content {
    padding: 1rem;
}

/* Month View */
.calendar-month {
    width: 100%;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: var(--bg-hover);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.calendar-weekday {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-day-cell {
    background: var(--bg-card);
    min-height: 120px;
    padding: 0.75rem;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day-cell:hover {
    background: var(--bg-hover);
}

.calendar-day-cell.other-month {
    background: var(--bg-hover);
    color: var(--text-muted);
}

.calendar-day-cell.today {
    background: var(--bg-active);
    border: 2px solid var(--brand-primary);
}

.calendar-day-number {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.calendar-day-cell.today .calendar-day-number {
    color: var(--brand-dark);
}

.calendar-day-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.calendar-event {
    background: var(--brand-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-event:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

.event-title {
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-time {
    font-size: 0.625rem;
    opacity: 0.9;
}

/* Week View */
.calendar-week {
    display: flex;
    height: 600px;
}

.calendar-time-slots {
    width: 80px;
    border-right: 1px solid var(--border-color);
    flex-shrink: 0;
}

.calendar-time-slot {
    height: 60px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    padding: 0.25rem 0.5rem;
}

.calendar-time-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    transform: translateY(-50%);
}

.calendar-week-days {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
}

.calendar-week-day {
    background: var(--bg-card);
    position: relative;
    border-right: 1px solid var(--border-color);
}

.calendar-week-day.today {
    background: var(--bg-active);
}

.calendar-week-day-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    background: var(--bg-hover);
}

.calendar-week-day-name {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.calendar-week-day-number {
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-week-day.today .calendar-week-day-number {
    color: var(--brand-dark);
}

.calendar-week-day-events {
    position: relative;
    height: calc(100% - 60px);
}

.calendar-week-event {
    position: absolute;
    left: 2px;
    right: 2px;
    background: var(--brand-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    overflow: hidden;
    z-index: 1;
}

.calendar-week-event:hover {
    background: var(--brand-dark);
    z-index: 2;
}

/* Day View */
.calendar-day {
    height: 600px;
}

.calendar-day-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.calendar-day-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-day-content {
    display: flex;
    height: calc(100% - 80px);
}

.calendar-day-events {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.calendar-day-event {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-day-event:hover {
    border-color: var(--brand-primary);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.event-header .event-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.event-header .event-time {
    color: var(--brand-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.event-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.event-track,
.event-promotion,
.event-attendance {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.event-track {
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .calendar-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .calendar-nav,
    .calendar-actions {
        justify-content: center;
    }

    .calendar-title {
        min-width: auto;
    }

    .calendar-day-cell {
        min-height: 80px;
        padding: 0.5rem;
    }

    .calendar-week {
        height: 400px;
    }

    .calendar-day {
        height: 400px;
    }

    .calendar-time-slots {
        width: 60px;
    }

    .calendar-time-label {
        font-size: 0.625rem;
    }
}

/* Dashboard Calendar Styling */
#eventsCalendar {
    font-family: system-ui, sans-serif;
    color: var(--text-primary);
}

.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cal-nav {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.cal-nav:hover {
    color: var(--brand-primary);
}

.cal-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
}

.cal-dow,
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.cal-dow {
    margin-bottom: 6px;
}

.cal-dow-cell {
    text-align: center;
    font-size: .8rem;
    color: var(--text-secondary);
}

.cal-cell {
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    cursor: default;
    background: var(--bg-input);
    font-family: inherit;
    color: var(--text-primary);
}

.cal-cell:focus {
    outline: 2px solid var(--border-focus);
    outline-offset: 1px;
}

.cal-blank {
    background: transparent;
    border: none;
}

.cal-day {
    font-size: .85rem;
    font-weight: 400;
    color: var(--text-secondary);
    align-self: flex-end;
    /* keep day in top right */
}

.cal-count {
    font-size: 1.2rem;
    font-weight: 600;
    align-self: center;
    color: var(--text-primary);
}

.cal-label {
    font-size: .8rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-align: center;
}

.is-today {
    box-shadow: inset 0 0 0 2px var(--brand-primary);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s;
    box-sizing: border-box;
    background: var(--bg-input);
    color: var(--text-primary);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: #ef4444;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem 1rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: 0.95rem;
}

/* Data Table hoverable trash icon */
.delete-cell {
    opacity: 0;
    transition: opacity 0.2s;
}

tr:hover .delete-cell {
    opacity: 1;
}

/* --- Single Day Modal - Series Rows (Compact) --- */
.series-row-wrapper {
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.series-row-wrapper:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Single row grid layout */
.series-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Series dropdown takes remaining space */
.series-main {
    flex: 1;
    min-width: 0;
}

.series-main .form-label {
    display: none;
    /* Hide label in compact mode */
}

.series-main .form-select,
.series-main .searchable-select-wrapper {
    width: 100%;
}

/* Feature laps + money side by side */
.series-sub {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.series-sub>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.series-sub .form-label {
    display: none;
    /* Hide labels in compact mode */
}

.series-sub .form-input {
    width: 70px;
    padding: 6px 8px;
    font-size: 13px;
    text-align: center;
}

/* X button */
.series-actions {
    flex-shrink: 0;
}

.remove-btn {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    height: 28px;
    width: 28px;
    font-size: 12px;
    padding: 0;
}

.remove-btn:hover {
    background-color: #fecaca;
}

/* Subview uses flexbox to keep header/footer fixed, body scrolls */
.subview-root {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 60px - 5rem);
    /* viewport minus top nav (60px) minus content padding */
    max-height: calc(100vh - 60px - 5rem);
    background: var(--bg-hover);
    border-radius: 12px;
    overflow: hidden;
}

/* Header: fixed at top */
.subview-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

/* Footer: fixed at bottom */
.subview-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

/* Left/right clusters */
.subview-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subview-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* Save buttons */
.subview-save.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Body: scrollable area between header and footer */
.subview-body {
    flex: 1 1 auto;
    min-height: 0;
    /* Important: allows flex child to shrink below content size */
    overflow-y: auto;
    padding: 1.5rem;
    background: var(--bg-hover);
}

/* Yoda Activity */
/* ---------- Compact list ---------- */
.yoda-simple-list {
    font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.ya-line {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 6px;
}

.ya-line:hover {
    background: var(--bg-hover);
    border-radius: 6px;
}

.ya-line.ya-create .ya-icon {
    color: #047857;
    background: rgba(4, 120, 87, 0.1);
}

.ya-line.ya-update .ya-icon {
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.1);
}

.ya-line.ya-delete .ya-icon {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.1);
}

.ya-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-hover);
    font-size: 14px;
}

.ya-left {
    flex: 1;
    min-width: 0;
}

.ya-main {
    font-weight: 600;
    color: var(--text-primary);
}

.ya-user,
.ya-sub {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 2px;
}

.ya-right {
    flex: 0 0 auto;
}

.ya-hr {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 0;
}

.ya-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 8px;
}

/* ---------- All Activity View ---------- */
.ya-all-root {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 4px 0;
}

.ya-all-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    align-items: flex-end;
}

.ya-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}

.ya-filter-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-secondary);
}

.ya-filter-group.ya-search-group {
    flex: 1;
    min-width: 220px;
}

.ya-filter-group select,
.ya-filter-group input {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.ya-filter-group select:focus,
.ya-filter-group input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.ya-all-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
}

.ya-count {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.ya-pager {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ya-pager .btn {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 6px;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    color: var(--btn-secondary-text);
    transition: all 0.2s;
}

.ya-pager .btn:hover:not(:disabled) {
    background: var(--btn-secondary-hover);
}

.ya-pager .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ya-page-label {
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 100px;
    text-align: center;
}

.ya-all-list {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.ya-all-list .ya-line {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.ya-all-list .ya-line:last-child {
    border-bottom: none;
}

.ya-all-list .ya-line:hover {
    background: var(--bg-hover);
}

.ya-all-list .ya-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.ya-all-list .ya-left {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.ya-all-list .ya-main {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
}

.ya-all-list .ya-sub {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.ya-all-list .ya-right {
    flex: 0 0 auto;
}

.ya-all-list .ya-view-btn {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    background: var(--btn-secondary-bg);
    border: 1px solid var(--btn-secondary-border);
    color: var(--btn-secondary-text);
    cursor: pointer;
    transition: all 0.2s;
}

.ya-all-list .ya-view-btn:hover {
    background: var(--btn-secondary-hover);
    border-color: var(--text-muted);
}

/* Empty state for activity list */
.ya-all-list .empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

.ya-all-list .empty-state i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--text-muted);
}

/* ---------- Modal: summary header (NEW) ---------- */
.ya-sum {
    /* NEW */
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 16px;
    align-items: center;
    padding: 4px 0 2px;
    font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text-primary);
}

.ya-badge {
    /* NEW */
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .02em;
}

.ya-badge.ya-create {
    background: rgba(236, 253, 245, 0.1);
    color: #047857;
    border-color: #a7f3d0;
}

/* NEW */
.ya-badge.ya-update {
    background: rgba(239, 246, 255, 0.1);
    color: #1d4ed8;
    border-color: #bfdbfe;
}

/* NEW */
.ya-badge.ya-delete {
    background: rgba(254, 242, 242, 0.1);
    color: #b91c1c;
    border-color: #fecaca;
}

/* NEW */

.ya-meta {
    /* NEW */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 16px;
}

.ya-meta>div {
    /* NEW */
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 6px;
    align-items: start;
}

.ya-meta span {
    color: var(--text-secondary);
}

/* NEW */
.ya-meta strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* NEW */

.ya-sep {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 14px 0;
}

/* NEW */

/* ---------- Modal: meta block ---------- */
.ya-detail {
    display: grid;
    gap: 8px;
    padding: 6px 2px 2px;
    font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.ya-detail>div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px 14px;
    align-items: start;
}

.ya-detail strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ---------- Section heading (NEW) ---------- */
.ya-h {
    /* NEW */
    margin: 0 0 8px;
    font: 600 13px/1.2 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ---------- Modal: diff block ---------- */
.ya-diff {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
    font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* First line ("Field: <code>...") spans full width */
.ya-diff>div:first-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Make the field name feel like a chip even though it's in your HTML already */
.ya-diff>div:first-child code {
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    font: 600 12px ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    color: var(--text-primary);
}

/* "From" box (2nd child) */
.ya-diff>div:nth-child(2) {
    border: 1px solid rgba(254, 202, 202, 0.2);
    background: rgba(254, 226, 226, 0.1);
    border-radius: 10px;
    padding: 10px;
    min-height: 48px;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
}

/* "To" box (3rd child) */
.ya-diff>div:nth-child(3) {
    border: 1px solid rgba(187, 247, 208, 0.2);
    background: rgba(220, 252, 231, 0.1);
    border-radius: 10px;
    padding: 10px;
    min-height: 48px;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
}

/* Keep inline code consistent elsewhere in the modal */
.ya-diff code,
.ya-detail code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: 12.5px;
}

/* ---------- Create/Delete JSON blocks ---------- */
.ya-pre {
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-hover);
    font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    white-space: pre-wrap;
    word-break: break-word;
    color: var(--text-primary);
}

/* ---------- Update table ---------- */
.ya-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-card);
}

.ya-table thead th {
    text-align: left;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 12px;
    font-size: 12.5px;
}

.ya-table td {
    padding: 10px 12px;
    vertical-align: top;
    border-top: 1px solid var(--border-color);
    color: var(--text-primary);
}

.ya-table tbody tr:first-child td {
    border-top: 0;
}

.ya-table code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

.ya-from {
    background: rgba(254, 226, 226, 0.1);
}

.ya-to {
    background: rgba(220, 252, 231, 0.1);
}

/* Export Modal */
.export-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.export-modal-container {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.export-modal-container .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.export-modal-container .modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.export-modal-container .modal-header h3 i {
    margin-right: 0.5rem;
    color: var(--primary);
}

.export-modal-container .modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
}

.export-modal-container .modal-footer {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.export-select-all {
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.export-select-all label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.export-columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.export-category {
    background: var(--bg-hover);
    border-radius: 8px;
    padding: 1rem;
}

.export-category-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.export-category-header label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.export-category-columns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.export-column-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
}

.export-column-item:hover {
    color: var(--text-primary);
}

.export-column-item input[type="checkbox"],
.export-category-header input[type="checkbox"],
.export-select-all input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Idle Warning Modal */
.idle-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.idle-warning-content {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 380px;
    width: 90%;
    overflow: hidden;
}

.idle-warning-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.idle-warning-header i {
    color: #f59e0b;
}

.idle-warning-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.idle-warning-body {
    padding: 1.25rem;
}

.idle-warning-message {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.idle-countdown {
    font-weight: 600;
    color: #f59e0b;
}

.idle-warning-hint {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.idle-warning-footer {
    display: flex;
    justify-content: flex-end;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-hover);
}

.idle-warning-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.idle-warning-btn:hover {
    background: #2563eb;
}

/* ========================================
   Promotion Wizard Component
   ======================================== */

.wizard-root {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: var(--bg-card);
}

.wizard-host {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.wizard-host .wizard-root {
    flex: 1;
    min-height: 0;
}

.wizard-root.bulk-wizard {
    height: auto;
}

.wizard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.wizard-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wizard-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Progress Steps */
.wizard-progress {
    padding: 1.5rem 2rem;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    overflow: visible;
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 1;
}

.wizard-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.wizard-step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.wizard-step.active .wizard-step-number {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.wizard-step.active .wizard-step-label {
    color: var(--brand-primary);
    font-weight: 600;
}

.wizard-step.completed .wizard-step-number {
    background: #16a34a;
    border-color: #16a34a;
    color: white;
    position: relative;
}

.wizard-step.completed .wizard-step-number span {
    display: none;
}

.wizard-step.completed .wizard-step-number::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.875rem;
    position: absolute;
}

.wizard-step.completed .wizard-step-label {
    color: #16a34a;
    font-weight: 500;
}

.wizard-step-connector {
    flex: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 0.5rem;
    margin-bottom: 1.5rem;
    transition: background 0.3s ease;
    min-width: 40px;
    max-width: 80px;
}

.wizard-step-connector.completed {
    background: var(--success-color);
}

/* Wizard Body */
.wizard-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 2.5rem 3rem;
}

.wizard-step-content {
    max-width: 700px;
    margin: 0 auto;
}

/* Bulk wizard needs more width for tables */
.bulk-wizard .wizard-step-content {
    max-width: 1100px;
}

.wizard-step-intro {
    text-align: center;
    margin-bottom: 2.5rem;
}

.wizard-step-intro h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.wizard-step-intro p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Wizard Form */
.wizard-form {
    background: var(--bg-card);
}

.wizard-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.wizard-form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wizard-form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.wizard-form-field label .required {
    color: var(--error-color);
}

.wizard-form-field input,
.wizard-form-field select,
.wizard-form-field textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wizard-form-field input:focus,
.wizard-form-field select:focus,
.wizard-form-field textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wizard-form-field-full,
.wizard-form-field.full-width {
    grid-column: 1 / -1;
}

/* Wizard Tips */
.wizard-tip {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.wizard-tip i {
    color: #3b82f6;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Wizard Summary */
.wizard-summary {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(34, 197, 94, 0.05);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
}

.wizard-summary h4 {
    margin: 0 0 1rem 0;
    color: var(--success-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wizard-summary h5 {
    margin: 0 0 0.5rem 0;
    color: var(--success-color);
    font-size: 1rem;
}

.wizard-summary p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.summary-section {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.summary-section h5 {
    margin: 0 0 0.75rem 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.summary-item:last-child {
    margin-bottom: 0;
}

.summary-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 0.875rem;
    color: var(--text-primary);
    font-weight: 500;
}

.summary-value em {
    color: var(--text-secondary);
    font-weight: 400;
}

/* Series Selection */
.wizard-series-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wizard-series-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wizard-series-select {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9375rem;
    background: var(--bg-input);
    color: var(--text-primary);
}

.wizard-series-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wizard-remove-series {
    padding: 0.5rem;
    min-width: 36px;
    height: 36px;
}

.wizard-add-series {
    margin-top: 0.5rem;
}

/* Event Days */
.wizard-date-range {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.wizard-date-range .wizard-form-field {
    flex: 1;
    max-width: 200px;
}

.wizard-date-range-arrow {
    padding-bottom: 0.75rem;
    color: var(--text-secondary);
}

.wizard-event-days-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.wizard-event-days-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wizard-event-days-count {
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-hover);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.wizard-event-days-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.wizard-event-day-row {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.wizard-event-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.wizard-event-day-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wizard-event-day-label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    background: var(--brand-primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.wizard-event-day-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.wizard-event-day-fields {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 0.75rem;
}

.wizard-event-day-fields .wizard-form-field {
    margin: 0;
}

.wizard-event-day-fields .wizard-form-field label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.wizard-event-day-fields .wizard-form-field input {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.wizard-remove-day {
    padding: 0.25rem 0.5rem;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.wizard-event-day-row:hover .wizard-remove-day {
    opacity: 1;
}

.wizard-add-day {
    margin-top: 0.5rem;
}

/* Series Selector for Event Days */
.wizard-event-day-series {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.wizard-event-day-series>label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.wizard-event-day-series>label i {
    color: var(--primary-color);
}

/* Series Section (Event Wizard) */
.wizard-series-section {
    margin-bottom: 1.5rem;
}

.wizard-series-section>label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.wizard-series-section>label i {
    color: #4f46e5;
}

.wizard-series-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wizard-series-dropdown {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
}

.wizard-series-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wizard-tier-dropdown {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 100%;
}

.wizard-tier-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.wizard-selected-series-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.wizard-selected-series-section>label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.wizard-selected-series {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 1.5rem;
    padding: 0.25rem;
}

.wizard-selected-series .wizard-series-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #4f46e5;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.wizard-series-tag .series-name {
    font-weight: 600;
}

.wizard-series-tag .series-tier {
    font-size: 0.6875rem;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.wizard-series-tag .remove-series {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.125rem;
    opacity: 0.7;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-series-tag .remove-series:hover {
    opacity: 1;
}

.btn-add-series {
    margin-top: 0.5rem;
}

.wizard-series-tag i {
    cursor: pointer;
    opacity: 0.7;
    font-size: 0.625rem;
}

.wizard-series-tag i:hover {
    opacity: 1;
}

/* Sponsorship Form */
.wizard-sponsorship-form {
    margin-bottom: 1.5rem;
}

.wizard-type-dropdown,
.wizard-target-dropdown {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.875rem;
    width: 100%;
}

.wizard-type-dropdown:focus,
.wizard-target-dropdown:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-add-sponsorship {
    height: 100%;
    min-height: 42px;
}

/* Selected Sponsorships Section */
.wizard-selected-sponsorships-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.wizard-selected-sponsorships-section>label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.wizard-selected-sponsorships {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.wizard-sponsorship-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #4f46e5;
    color: #ffffff;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.wizard-sponsorship-tag[data-type="series"] {
    background: #4f46e5;
}

.wizard-sponsorship-tag[data-type="promotion"] {
    background: #059669;
}

.wizard-sponsorship-tag[data-type="track"] {
    background: #d97706;
}

.wizard-sponsorship-tag i:first-child {
    font-size: 0.75rem;
    opacity: 0.9;
}

.wizard-sponsorship-tag .sponsorship-name {
    font-weight: 600;
}

.wizard-sponsorship-tag .sponsorship-tier {
    font-size: 0.6875rem;
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
}

.wizard-sponsorship-tag .remove-sponsorship {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.125rem;
    opacity: 0.7;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-sponsorship-tag .remove-sponsorship:hover {
    opacity: 1;
}

/* Legacy chip styles - can be removed */
.wizard-series-chip {
    display: none;
}

/* Series Summary (Step 3) */
.wizard-series-summary-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.wizard-series-day-summary {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.wizard-series-day-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wizard-series-day-info strong {
    font-size: 0.9375rem;
}

.wizard-series-day-date {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.wizard-series-day-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.wizard-series-day-tags .wizard-series-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: #4f46e5;
    color: #ffffff;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.wizard-no-series {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-style: italic;
}

.wizard-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.wizard-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.wizard-empty-state p {
    margin: 0;
}

.wizard-series-day-summary strong,
.wizard-series-summary-list {
    color: var(--text-primary);
}

/* Contacts Grid */
.wizard-contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

/* Wizard Footer */
.wizard-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.wizard-nav-buttons {
    display: flex;
    gap: 0.75rem;
}

.wizard-submit {
    background: var(--success-color) !important;
}

.wizard-submit:hover {
    background: #16a34a !important;
}

/* Wizard Toast Notifications */
.wizard-toast {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}

.wizard-toast i {
    font-size: 1.125rem;
    margin-top: 0.125rem;
}

.wizard-toast-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
}

.wizard-toast-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success-color);
}

/* Logo Input Group */
.logo-input-group {
    display: flex;
    gap: 0.5rem;
}

.logo-input-group input {
    flex: 1;
}

.logo-input-group .btn-upload-logo {
    padding: 0.75rem 1rem;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Preview */
.logo-preview {
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--bg-hover);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    text-align: center;
}

.logo-preview img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 4px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {

    .wizard-form-grid,
    .wizard-contacts-grid {
        grid-template-columns: 1fr;
    }

    .wizard-steps {
        gap: 0;
    }

    .wizard-step-label {
        display: none;
    }

    .wizard-step-connector {
        margin-bottom: 0;
        min-width: 20px;
    }

    .wizard-footer {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .wizard-nav-buttons {
        margin-left: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

/* ====================================================
   Bulk Wizard Styles
   ==================================================== */

.bulk-wizard-container {
    width: 100%;
}

.bulk-wizard {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-height: calc(100vh - 200px);
    min-height: 500px;
}

.bulk-wizard .wizard-header {
    flex-shrink: 0;
}

.bulk-wizard .wizard-progress {
    flex-shrink: 0;
}

.bulk-wizard .wizard-body {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}

.bulk-wizard .wizard-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-hover);
}

/* Bulk Block Cards (selection screen) */
.bulk-block {
    background: var(--bg-card);
    border-radius: 16px;
    width: 340px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.bulk-block:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #4f46e5;
}

.bulk-block-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.bulk-block-icon i {
    font-size: 2rem;
    color: white;
}

.bulk-block h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.bulk-block p {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.bulk-block-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    width: 100%;
}

.bulk-block-features span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-block-features span i {
    color: #22c55e;
    font-size: 0.75rem;
}

/* Bulk Wizard Table */
.bulk-wizard-table-wrap {
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: visible;
    margin-top: 1.5rem;
}

.bulk-wizard-table {
    width: 100%;
    border-collapse: collapse;
}

.bulk-wizard-table th,
.bulk-wizard-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
    color: var(--text-primary);
    position: relative;
}

.bulk-wizard-table thead th {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-hover);
    text-align: left;
    padding: 12px;
    vertical-align: middle;
    white-space: nowrap;
}

.bulk-wizard-table thead th .required {
    color: #ef4444;
    margin-left: 2px;
}

.bulk-wizard-table tbody tr {
    transition: background 0.15s ease;
}

.bulk-wizard-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.02);
}

.bulk-wizard-table tbody tr:last-child td {
    border-bottom: none;
}

.bulk-wizard-table .row-handle {
    text-align: center;
    width: 40px;
    vertical-align: middle;
    padding: 10px 8px;
}

.bulk-wizard-table .icon-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--text-muted);
    transition: all 0.2s;
    font-size: 0.85rem;
}

.bulk-wizard-table .icon-btn:hover {
    background: #fee2e2;
    color: #dc2626;
}

.bulk-wizard-table td>input.form-input,
.bulk-wizard-table td>select.form-select {
    width: 100%;
    padding: 6px 10px;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-body);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bulk-wizard-table input.form-input::placeholder {
    color: var(--text-muted);
}

.bulk-wizard-table input.form-input:focus,
.bulk-wizard-table select.form-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.bulk-wizard-table input.input-error,
.bulk-wizard-table select.input-error {
    border-color: #ef4444;
}

.bulk-wizard-table .field-error {
    display: none;
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 4px;
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: -2px;
}

.bulk-wizard-table .field-error:not(:empty) {
    display: block;
}

/* Bulk Wizard Actions */
.bulk-wizard-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: var(--bg-hover);
    border-radius: 12px;
}

.bulk-wizard-actions .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
}

/* Choices.js Dropdown Fixes for Bulk Wizard Tables */
.bulk-wizard-table .choices {
    margin-bottom: 0;
}

.bulk-wizard-table .choices__inner {
    padding: 6px 10px;
    min-height: 38px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-body);
}

.bulk-wizard-table .choices__list--dropdown,
.bulk-wizard-table .choices__list[aria-expanded] {
    z-index: 100;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-top: 2px;
}

.bulk-wizard-table .choices__list--dropdown .choices__item,
.bulk-wizard-table .choices__list[aria-expanded] .choices__item {
    padding: 8px 12px;
    font-size: 0.9rem;
}

.bulk-wizard-table .choices__list--dropdown .choices__item--selectable.is-highlighted,
.bulk-wizard-table .choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
    background: rgba(79, 70, 229, 0.1);
    color: var(--text-primary);
}

.bulk-wizard-table .choices.is-open .choices__inner {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    border-radius: 8px;
}

.bulk-wizard-table .choices__placeholder {
    color: var(--text-muted);
    opacity: 1;
}

/* Multi-select in table cells */
.bulk-wizard-table .series-cell,
.bulk-wizard-table .track-cell {
    min-width: 180px;
}

/* Compact Choices.js in table cells */
.bulk-wizard-table .choices .choices__inner {
    padding: 4px 8px;
    min-height: 34px;
    font-size: 0.875rem;
}

.bulk-wizard-table .choices[data-type*="select-multiple"] .choices__inner {
    padding: 4px 8px;
    min-height: 38px;
}

.bulk-wizard-table .choices[data-type*="select-multiple"] .choices__item {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border: none;
    border-radius: 14px;
    padding: 2px 8px;
    font-size: 0.8rem;
    margin: 2px;
}

.bulk-wizard-table .choices[data-type*="select-multiple"] .choices__button {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding-left: 6px;
    margin-left: 4px;
}

/* Field Hints */
.field-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Wizard Review Summary Stats */
.wizard-review-summary {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--bg-hover);
    border-radius: 12px;
}

.review-stat {
    text-align: center;
}

.review-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--brand-primary, #2563eb);
    line-height: 1;
}

.review-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Wizard Review Sections */
.wizard-review-section {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.wizard-review-section h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wizard-review-section h5 i {
    color: var(--text-muted);
}

.wizard-review-section .review-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Review Section Styles */
.bulk-review-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.bulk-review-item {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: 8px;
    align-items: center;
}

.bulk-review-item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.bulk-review-item-header i {
    color: var(--text-muted);
}

.bulk-review-series-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.series-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.bulk-review-item-compact {
    padding: 0.75rem 1rem;
}

.bulk-review-item-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.bulk-review-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bulk-review-item-compact .bulk-review-item-content {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.bulk-review-item-name {
    font-weight: 600;
    color: var(--text-primary);
}

.bulk-review-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bulk-review-item-details span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.bulk-review-item-details i {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.bulk-review-days {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-body);
    padding: 2px 8px;
    border-radius: 4px;
}

.bulk-review-series-group {
    margin-bottom: 1.5rem;
}

.bulk-review-series-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
}

.bulk-review-series-header i {
    font-size: 0.9rem;
}

.bulk-review-series-count {
    margin-left: auto;
    font-weight: 400;
    font-size: 0.85rem;
    opacity: 0.9;
}

.bulk-review-series-group .bulk-review-list {
    margin-top: 0;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 0.5rem;
    gap: 0.5rem;
}

/* Weekly Modal */
.bulk-wizard-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.bulk-wizard-modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.bulk-wizard-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.bulk-wizard-modal-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bulk-wizard-modal-header h4 i {
    color: #4f46e5;
}

.bulk-wizard-modal-header .icon-btn {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.bulk-wizard-modal-header .icon-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.bulk-wizard-modal-body {
    padding: 1.5rem;
}

.bulk-wizard-modal-body .wizard-form-grid {
    gap: 1rem;
}

.weekly-preview {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-hover);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weekly-preview-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.weekly-preview-count {
    font-weight: 600;
    color: #4f46e5;
    font-size: 1rem;
}

.bulk-wizard-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-hover);
    border-radius: 0 0 16px 16px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Screen */
.wizard-success {
    text-align: center;
    padding: 3rem 2rem;
}

.wizard-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: scaleIn 0.4s ease;
}

.wizard-success-icon i {
    font-size: 2.5rem;
    color: white;
}

.wizard-success h4 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.wizard-success p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.wizard-success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Warning Box */
.wizard-warning {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    color: #d97706;
    margin-top: 1.5rem;
}

.wizard-warning i {
    font-size: 1.25rem;
}

/* Form Field with Hint */
.wizard-form-field .field-hint {
    margin-top: 6px;
}

/* Single Column Form */
.wizard-form-single {
    max-width: 400px;
    margin: 0 auto;
}
