/**
 * Bookwell Now — Dashboard (admin only)
 */
.bw-dashboard-page,
.bw-dashboard-page .container,
.bw-dashboard-page .bw-admin-page-container,
.bw-dashboard-container {
    background: #f6f5fa !important;
}

.bw-dashboard-page .bw-admin-page-container {
    min-height: auto;
}

.bw-dashboard-container {
    --bw-dash-primary: #7c3aed;
    --bw-dash-shell: #f6f5fa;
    --bw-dash-card: #ffffff;
    --bw-dash-section-gap: 28px;
    --bw-dash-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px rgba(124, 58, 237, 0.06);
    --bw-dash-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    font-family: var(--bw-admin-font, 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    padding: 24px 28px 32px;
    background: var(--bw-dash-shell);
}

.bw-dashboard-filter-card .el-card__body{
    padding-bottom: 0px !important;
}

.bw-dashboard-cards{
    margin-bottom: 13px !important;
}

.bw-dashboard-page.book-now-adm--container {
    margin-top: 0 !important;
}

.bw-dashboard-container .bw-admin-head {
    margin-bottom: 16px !important;
}

.bw-dashboard-section {
    margin-bottom: var(--bw-dash-section-gap);
}

.bw-dashboard-section:last-child {
    margin-bottom: 0;
}

.bw-dashboard-section-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 12px;
    line-height: 1.2;
}

.bw-dashboard-section--day-preview {
    margin-bottom: 44px;
}

.bw-dashboard-section--overview {
    padding-top: 28px;
    margin-top: 4px;
    border-top: 1px solid #e9e3f7;
}

.bw-dashboard-overview-row .el-col {
    margin-bottom: 16px;
}

.bw-dashboard-overview-row .bw-services-card,
.bw-dashboard-overview-row .bw-graph-card {
    margin-top: 0;
    height: 100%;
}

.bw-dashboard-overview-row .bw-chart-container {
    height: 320px;
}

.bw-dashboard-container .bw-admin-head h3 {
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    color: #111827 !important;
    letter-spacing: -0.02em;
    margin: 0 !important;
}

.bw-dashboard-filter-card {
    border: none !important;
    background: transparent !important;
    margin-top: 0;
    margin-bottom: var(--bw-dash-section-gap);
    box-shadow: none !important;
}

.bw-dashboard-filter-card .el-card__body {
    padding: 0;
}

.bw-dashboard-filter-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bw-dashboard-filter-select {
    width: 200px;
}

.bw-dashboard-filter-select .el-input__wrapper,
.bw-dashboard-filter-date .el-input__wrapper {
    border: 1px solid #e9e3f7 !important;
    border-radius: 10px !important;
    box-shadow: var(--bw-dash-shadow-sm) !important;
    min-height: 40px;
    background: var(--bw-dash-card) !important;
    font-family: inherit;
}

.bw-dashboard-cards {
    margin-bottom: var(--bw-dash-section-gap);
}

.bw-dashboard-cards .el-col {
    margin-bottom: 16px;
}

/* Stat metric cards */
.bw-dash-card {
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.08) !important;
    background: var(--bw-dash-card) !important;
    border-radius: 12px !important;
    box-shadow: var(--bw-dash-shadow) !important;
    min-height: 104px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bw-dash-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.05), 0 12px 28px rgba(124, 58, 237, 0.1) !important;
}

.bw-dash-card .el-card__body {
    padding: 18px 14px 16px;
}

.bw-dash-title {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 10px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
}

body.rtl .bw-dash-title,
#bookwellab_admin_app[dir="rtl"] .bw-dash-title,
.book-now-adm--container[dir="rtl"] .bw-dash-title {
    text-transform: none;
    letter-spacing: 0;
}

.bw-dash-value {
    font-size: 32px;
    line-height: 1;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.bw-dash-value--pending {
    color: #f59e0b;
}

.bw-dash-value--approved {
    color: #10b981;
}

.bw-dash-value--cancelled {
    color: #94a3b8;
}

.bw-dash-value--received {
    color: var(--bw-dash-primary);
}

.bw-dash-value--pending-payment {
    color: #ef4444;
}

.bw-dash-value--new-customer {
    color: #3b82f6;
}

.bw-dash-value--total-customer {
    color: #059669;
}

/* Section cards */
.bw-graph-card,
.bw-services-card,
.bw-day-preview-card {
    border-radius: 12px !important;
    border: 1px solid rgba(124, 58, 237, 0.08) !important;
    background: var(--bw-dash-card) !important;
    box-shadow: var(--bw-dash-shadow) !important;
    overflow: hidden;
}

.bw-day-preview-card {
    --el-color-primary: var(--bw-dash-primary);
    margin-top: 0;
}

.bw-graph-card .el-card__header,
.bw-services-card .el-card__header,
.bw-day-preview-card .el-card__header {
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 24px 8px;
    background: var(--bw-dash-card);
}

.bw-graph-card .el-card__body,
.bw-services-card .el-card__body {
    padding: 8px 24px 24px;
}

.bw-day-preview-card .el-card__body {
    padding: 20px 24px 28px;
    background: var(--bw-dash-card);
}

.bw-card-header-title {
    font-family: inherit;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

/* Most booked services table */
.bw-top-services-table {
    width: 100%;
    font-family: inherit;
}

.bw-top-services-table::before {
    display: none;
}

.bw-top-services-table th.el-table__cell {
    font-weight: 600;
    font-size: 13px;
    color: #64748b !important;
    background: var(--bw-dash-card) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    padding: 12px 0 !important;
}

.bw-top-services-table td.el-table__cell {
    color: #1e293b;
    background: var(--bw-dash-card) !important;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #eef2f6 !important;
    padding: 14px 0 !important;
}

.bw-top-services-table .el-table__row:last-child td.el-table__cell {
    border-bottom: none !important;
}

.bw-service-count-tag {
    border: 0 !important;
    background-color: #ede9fe !important;
    color: var(--bw-dash-primary) !important;
    border-radius: 999px !important;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 12px !important;
}

/* Revenue chart */
.bw-chart-container {
    position: relative;
    height: 380px;
    padding: 4px 0 8px;
}

/* Day preview */
.bw-day-preview-view-toggle .el-radio-button__inner {
    border-radius: 999px !important;
    padding: 8px 18px;
    font-weight: 600;
    font-family: inherit;
}

.bw-day-preview-view-toggle .el-radio-button__original-radio:checked + .el-radio-button__inner {
    background-color: var(--bw-dash-primary) !important;
    border-color: var(--bw-dash-primary) !important;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.bw-day-preview-filters {
    --bw-day-preview-filter-height: 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.bw-day-preview-filters-actions {
    margin-left: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.bw-day-preview-filter {
    flex: 0 0 auto;
    width: 200px;
    max-width: 100%;
    height: var(--bw-day-preview-filter-height);
}

.bw-day-preview-filter--date.el-date-editor {
    width: 200px !important;
    flex: 0 0 200px;
    height: var(--bw-day-preview-filter-height) !important;
    vertical-align: middle;
}

.bw-day-preview-filter--date.el-date-editor .el-input__wrapper,
.bw-day-preview-filter.el-select .el-select__wrapper,
.bw-day-preview-filter .el-input__wrapper {
    border: 1px solid #e9e3f7 !important;
    border-radius: 10px !important;
    box-shadow: var(--bw-dash-shadow-sm) !important;
    height: var(--bw-day-preview-filter-height) !important;
    min-height: var(--bw-day-preview-filter-height) !important;
    box-sizing: border-box;
    background: var(--bw-dash-card) !important;
    padding-top: 0;
    padding-bottom: 0;
    font-family: inherit;
}

.bw-day-preview-filter--staff,
.bw-day-preview-filter--service {
    width: 200px;
    height: var(--bw-day-preview-filter-height);
}

.bw-day-preview-filter--date .el-input__inner,
.bw-day-preview-filter.el-select .el-select__selected-item,
.bw-day-preview-filter.el-select .el-select__placeholder {
    line-height: calc(var(--bw-day-preview-filter-height) - 2px);
    font-weight: 500;
    color: #334155;
}

.bw-day-preview-filter--date .el-input__prefix,
.bw-day-preview-filter--date .el-input__suffix {
    display: flex;
    align-items: center;
}

.bw-day-preview-empty {
    padding: 28px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.bw-day-preview-hours {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.bw-day-preview-hours-spacer {
    width: 56px;
    flex-shrink: 0;
}

.bw-day-preview-hours-track {
    position: relative;
    flex: 1;
    height: 26px;
}

.bw-day-preview-hour-label {
    position: absolute;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap;
}

.bw-day-preview-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bw-day-preview-staff {
    width: 48px;
    flex-shrink: 0;
}

.bw-day-preview-staff-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.bw-day-preview-track {
    position: relative;
    flex: 1;
    height: 48px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e9edf3;
    overflow: visible;
}

.bw-day-preview-now-line {
    position: absolute;
    top: -22px;
    bottom: -6px;
    width: 2px;
    background: linear-gradient(180deg, #ef4444 0%, rgba(239, 68, 68, 0.4) 100%);
    z-index: 4;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.bw-day-preview-now-label {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -100%);
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
    letter-spacing: 0.02em;
}

.bw-day-preview-seg-wrap {
    position: absolute;
    top: 8px;
    height: 32px;
    z-index: 3;
}

.bw-day-preview-seg-wrap .el-popover,
.bw-day-preview-seg-wrap .el-tooltip__trigger {
    display: block;
    width: 100%;
    height: 100%;
}

.bw-day-preview-seg {
    position: absolute;
    top: 8px;
    height: 32px;
    border-radius: 10px;
    z-index: 2;
}

.bw-day-preview-seg-wrap .bw-day-preview-seg {
    position: relative;
    top: 0;
    width: 100%;
    height: 100%;
}

.bw-day-preview-seg--available {
    background: linear-gradient(90deg, rgba(124, 58, 237, 0.45) 0%, rgba(124, 58, 237, 0.25) 100%);
    top: 0;
    height: 100%;
    border-radius: 12px;
    z-index: 1;
}

.bw-day-preview-seg--appointment,
.bw-day-preview-seg--booked {
    background: linear-gradient(180deg, #8b5cf6 0%, var(--bw-dash-primary) 100%);
    cursor: pointer;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.35);
}

.bw-day-preview-seg--break {
    background: #fff;
    border: 1px dashed #cbd5e1;
    z-index: 2;
}

.bw-day-preview-seg--slot {
    background: var(--bw-dash-primary);
    opacity: 0.9;
}

.bw-day-preview-popover-inner {
    font-size: 13px;
    color: #1e293b;
    font-family: inherit;
}

.bw-day-preview-popover-title {
    font-weight: 600;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bw-day-preview-popover-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bw-dash-primary);
    display: inline-block;
}

.bw-day-preview-popover-time {
    color: #64748b;
    margin-bottom: 10px;
}

.bw-day-preview-popover-customer {
    margin-bottom: 4px;
}

.bw-day-preview-popover-meta {
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .bw-dashboard-container {
        padding: 16px;
    }

    .bw-day-preview-filters {
        flex-wrap: wrap;
    }

    .bw-day-preview-filter,
    .bw-day-preview-filter--date.el-date-editor {
        width: 100%;
        flex: 1 1 100%;
    }

    .bw-day-preview-filters-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        margin-top: 4px;
    }

    .bw-card-header-title {
        font-size: 20px !important;
    }

    .bw-chart-container {
        height: 300px;
    }
}

@media (max-width: 782px) {
    body.bookwellab-admin-page .bw-dashboard-page.book-now-adm--container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .bw-dashboard-container {
        padding: 12px 8px 20px;
    }

    .bw-day-preview-filters-actions {
        justify-content: stretch;
        margin-top: 8px;
    }

    .bw-day-preview-view-toggle {
        display: flex;
        width: 100%;
    }

    .bw-day-preview-view-toggle .el-radio-button {
        flex: 1;
    }

    .bw-day-preview-view-toggle .el-radio-button__inner {
        width: 100%;
        text-align: center;
        padding: 8px 10px;
        font-size: 12px;
    }

    .bw-day-preview-card .el-card__body {
        padding: 16px 12px 20px;
    }

    .bw-day-preview-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 4px;
    }

    .bw-day-preview-hours,
    .bw-day-preview-row {
        width: max-content;
        min-width: 100%;
    }

    .bw-day-preview-hours-spacer,
    .bw-day-preview-staff {
        position: sticky;
        left: 0;
        z-index: 6;
        background: var(--bw-dash-card, #fff);
    }

    .bw-day-preview-hours-spacer {
        width: 52px;
        box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.08);
    }

    .bw-day-preview-staff {
        width: 52px;
        box-shadow: 4px 0 8px -4px rgba(15, 23, 42, 0.08);
    }

    .bw-day-preview-row {
        gap: 0;
    }

    .bw-day-preview-hour-label {
        font-size: 10px;
    }
}
