:root {
    --bw-border-color: #ebeef5;
    --bw-border-radius: 4px;
    --bw-field-label-color: #000000;
    --bw-title-color: #000000;
    --bw-bg-color: #ffffff;
    --bw-primary-font: 'Poppins', Arial, Helvetica, sans-serif;
    --bw-admin-font: var(--bw-primary-font);
    --bw-popup-font: 'Poppins', Arial, Helvetica, sans-serif;
    --bw-drawer-font: var(--bw-popup-font);
    --bw-title-font-size: 24px;
    --bw-field-font-size: 14px;
}

/* Admin font: bundled local Poppins (admin-popups.css). */
.fs-notice {
    margin-top: 100px !important;
}
.bw-right-align {
    display: flex !important;
    align-items: center;
    justify-content: end;
}

.bw-service-drawer-title,
.bw-staff-drawer-title,
.bw-shifts-drawer-title {
    padding-top: 30px !important;
}

.bw-category-action-buttons .el-button--small [class*=el-icon]+span {
    margin-left: 0px !important;
}

.bw-form-label {
    font-size: var(--bw-field-font-size);
    font-weight: 500;
    font-family: var(--bw-drawer-font);
}

.bw-drawer-header h3,
.bw-service-drawer-title,
.bw-staff-drawer-title,
.bw-shifts-drawer-title {
    font-family: var(--bw-drawer-font);
}

.bw-admin-head h3 {
    font-family: var(--bw-admin-font);
    font-size: var(--bw-title-font-size);
}

.bw-left-align {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.bw-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--bw-border-color);
    padding: 24px 24px;
    margin-top: 24px;
}

.bw-main-drawer .el-drawer__body {
    padding: 0px !important;
    overflow: hidden !important;
}

@media (max-width: 782px) {
    body.bookwellab-admin-page .bw-main-drawer.el-overlay .el-drawer.rtl,
    body.bookwellab-admin-page .bw-main-drawer.el-overlay .el-drawer.ltr {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Service add/edit drawer: flex layout, compact header, scrollable form, sticky save */
.bw-service-drawer .el-drawer__body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.bw-service-drawer-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.bw-service-drawer-header.bw-drawer-header {
    flex-shrink: 0;
    margin-top: 0;
    padding: 12px 20px 10px;
    min-height: 0;
    background: #fff;
    border-bottom: 1px solid var(--bw-border-color);
    position: relative;
    z-index: 2;
}

.bw-service-drawer-header.bw-drawer-header h3 {
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
    color: var(--bw-title-color);
    display: block;
}

.bw-service-drawer-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bw-border-color);
}

.bw-service-drawer-body.bw-drawer-body {
    flex: 1;
    min-height: 0;
    height: auto !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px 20px 20px;
}

.bw-service-drawer-footer {
    flex-shrink: 0;
    display: flex;
    gap: 12px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--bw-border-color);
    background: var(--bw-bg-color);
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.06);
}

.bw-dialog-footer {
    display: inline-flex;
    gap: 12px;
    flex-wrap: wrap;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table td.bw-actions-column .cell,
.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table td.el-table__cell:has(.el-button.is-circle) .cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: nowrap;
}

/* RTL admin: mirror drawer footer and dialog button order (drawer opens left via drawer_direction). */
body.rtl .bw-main-drawer.el-overlay,
#bookwellab_root_app[dir="rtl"] .bw-main-drawer.el-overlay {
    direction: rtl;
}

body.rtl .bw-service-drawer-footer,
#bookwellab_root_app[dir="rtl"] .bw-service-drawer-footer {
    flex-direction: row-reverse;
}

body.rtl .bw-dialog-footer,
#bookwellab_root_app[dir="rtl"] .bw-dialog-footer {
    flex-direction: row-reverse;
}

.bw-service-drawer-cancel.el-button,
.bw-service-drawer-save.el-button {
    flex: 1;
}

.bw-staff-drawer .el-drawer__body {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.bw-staff-drawer-layout {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.bw-staff-drawer-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--bw-border-color);
}

.bw-staff-drawer-body.bw-drawer-body {
    flex: 1;
    min-height: 0;
    height: auto !important;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 12px 20px 20px;
}

.bw-staff-drawer-footer {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--bw-border-color);
    background: var(--bw-bg-color);
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.06);
}

.bw-staff-drawer-cancel.el-button,
.bw-staff-drawer-save.el-button {
    flex: 1;
}

.bw-staff-drawer .bw-staff-form-row {
    width: 100%;
}

.bw-staff-drawer .bw-staff-form-row > .el-col .el-form-item {
    margin-bottom: 18px;
}

.bw-staff-drawer .bw-staff-form-row .bw-form-fields-control {
    width: 100%;
}

.bw-staff-list-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #dcdfe6;
    display: inline-block;
}

.bw-service-list-image {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid #dcdfe6;
    display: inline-block;
}

.bw-service-list-image-placeholder {
    display: inline-block;
    width: 34px;
    text-align: center;
    color: #999;
}

.bw-drawer-body {
    height: calc(100% - 100px);
    overflow: auto;
    padding: 0px 24px;
    font-family: var(--bw-drawer-font);
}

.bw-form-fields-control {
    font-family: var(--bw-drawer-font);
    font-size: var(--bw-field-font-size);
    width: 100%;
}

.bw-form-fields-control input {
    border: none;
    padding: 0;
}

.bw-form-fields-control input:focus {
    box-shadow: unset;
    outline: unset;
}

.bw-drawer-body .bw-form-item {
    margin-top: 24px;
}

.bw-pading-right-15 {
    padding-right: 15px;
}

.bw-pading-left-15 {
    padding-left: 15px;
}

.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:before,
.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:before {
    content: none;
    margin-right: 0;
}

.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label-wrap>.el-form-item__label:after,
.el-form-item.is-required:not(.is-no-asterisk).asterisk-left>.el-form-item__label:after {
    color: var(--el-color-danger);
    content: "*";
    margin-left: 4px;
}

.bw-form-item-row {
    width: 100%;
}

/* Admin Page Grid Style */
[v-cloak] {
    display: none !important;
}

.bw-calendar-card,
.book-now-adm--container-settings .el-card,
.book-now-adm--container-settings .el-card__body {
    background-color: #f7f2fc !important;
}

.bw-admin-page-container {
    min-height: 500px;
    background-color: var(--bw-bg-color);
}

.bw-dashboard-container {
    padding-left: 30px;
    padding-right: 30px;
    padding-bottom: 30px;
    padding-top: 30px;
}

/* Timezone Notification */
.bw-timezone-notification {
    background-color: #fff9f9;
    border: 1px solid #ffeded;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 25px;
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.05);
}

.bw-timezone-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #444;
    font-size: 14px;
    flex: 1;
    min-width: 0;
}

.bw-timezone-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 0;
}

.bw-timezone-message i,
.bw-timezone-content > i {
    color: #f56c6c;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.bw-timezone-message span {
    line-height: 1.45;
}

.bw-current-tz {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    background: #fdf6ec;
    padding: 6px 10px;
    border-radius: 4px;
    margin-left: 0;
    color: #e6a23c;
    font-weight: 500;
    line-height: 1.4;
}

.bw-timezone-change-btn {
    flex-shrink: 0;
}

@media (max-width: 782px) {
    .book-now-adm--container-settings .bw-timezone-notification {
        flex-direction: column;
        align-items: stretch;
        padding: 14px 16px;
        margin-bottom: 20px;
        gap: 12px;
    }

    .book-now-adm--container-settings .bw-timezone-content {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .book-now-adm--container-settings .bw-timezone-message {
        width: 100%;
    }

    .book-now-adm--container-settings .bw-current-tz {
        width: 100%;
        box-sizing: border-box;
    }

    .book-now-adm--container-settings .bw-timezone-change-btn {
        width: 100%;
        min-height: 40px;
        margin: 0;
    }
}

.bw-admin-table {
    padding: 0 20px;
}

.bw-admin-loader-upper {
    display: flex;
    min-height: 500px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.book-now-adm--container .bw-admin-dot-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.book-now-adm--container .bw-admin-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #5700B4;
    opacity: 0.35;
    animation: bw-admin-dot-bounce 1.2s infinite ease-in-out;
}

.book-now-adm--container .bw-admin-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.book-now-adm--container .bw-admin-dot:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes bw-admin-dot-bounce {

    0%,
    80%,
    100% {
        transform: scale(0.7);
        opacity: 0.35;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Strip native WordPress admin focus outlines specifically when Element Plus is handling focus */
.el-input__inner:focus,
.el-select__input:focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: transparent !important;
}

.el-textarea__inner:hover {
    border-color: #c0c4cc !important;
}

.el-textarea__inner:focus {
    border-color: #5700B4 !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #5700B4 !important;
}

/* Strip WP admin static borders only from inner inputs that are inside Element Plus wrappers.
   Textareas don't use wrappers in this version, so they still need their native borders. */
.el-input__wrapper .el-input__inner,
.el-select .el-input__inner,
.el-select__input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.bw-element-btn-group-col {
    display: flex !important;
    align-items: end;
}

.bw-form-element {
    position: relative;
}

.bw-drawer-body {
    padding-top: 20px;
    font-family: var(--bw-drawer-font);
}

.bw-form-element .bw-element-label {
    font-size: 13px;
    color: var(--bw-field-label-color);
}

.bw-form-element .bw-element-label--with-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.bw-form-element .bw-field-note-icon {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
    color: var(--el-color-primary, #5700B4);
    cursor: help;
    flex: 0 0 auto;
    outline: none;
}

.bw-form-element .bw-field-note-icon:hover,
.bw-form-element .bw-field-note-icon:focus {
    color: var(--el-color-primary-dark-2, #460090);
}

body.wp-admin .bw-zoom-note-tooltip.el-popper {
    max-width: 280px;
    line-height: 1.45;
    font-size: 12px;
}

.bw-form-element .el-form-item__label {
    margin-bottom: 5px !important;
    height: auto !important;
    line-height: 14px !important;
}

.bw-form-element-row {
    width: 100% !important;
}

.bw-admin-head {
    display: flex;
    align-items: center;
}

.bw-admin-head h3 {
    margin: 0px !important;
}

.bw-card {
    border-bottom: none !important;
}

.bw-card .el-card__body {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

.bw-flex-start {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.bw-flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Staff Services Column Styles */
.bw-service-count {
    background-color: #5700B4;
    color: #ffffff;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

.bw-staff-services-text {
    display: inline-flex;
    align-items: center;
}

.bw-services-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.bw-service-item {
    padding: 4px 8px;
    background-color: #f4f4f5;
    border-radius: 4px;
    font-size: 13px;
    color: #606266;
}

/* Staff Shift Management Styles */
.bw-shifts-container {
    padding: 10px;
}

.bw-shifts-drawer .el-drawer__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.bw-shifts-drawer .bw-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.bw-shifts-drawer-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: #111111;
    margin: 0 0 14px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid var(--bw-border-color);
}

.bw-shifts-drawer-footer {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--bw-border-color);
    background: var(--bw-bg-color);
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.06);
}

.bw-shifts-drawer-cancel.el-button,
.bw-shifts-drawer-save.el-button {
    flex: 1;
}

.bw-shift-row {
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.bw-shift-row-upper {
    border-bottom: 1px solid #ebeef5;
}

.bw-shift-day {
    flex: 0 0 120px;
    font-weight: 600;
}

.bw-shift-times {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
}

/*
 * Filterable el-select: search caret/placeholder alignment (admin-wide).
 * EP positions .el-select__input absolutely at left:0 (border edge), while
 * selected/placeholder text sits in the padded flow — align input to 12px.
 */
body.bookwellab-admin-page #bookwellab_root_app .el-select .el-select__wrapper.is-filterable,
body.bookwellab-admin-page .bw-break-dialog .el-select .el-select__wrapper.is-filterable,
body.bookwellab-admin-page .el-overlay-dialog .bw-break-dialog .el-select .el-select__wrapper.is-filterable {
    padding-left: 12px !important;
    padding-right: 30px !important;
}

body.bookwellab-admin-page #bookwellab_root_app .el-select .el-select__wrapper.is-filterable .el-select__selection,
body.bookwellab-admin-page .bw-break-dialog .el-select .el-select__wrapper.is-filterable .el-select__selection,
body.bookwellab-admin-page .el-overlay-dialog .bw-break-dialog .el-select .el-select__wrapper.is-filterable .el-select__selection {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

body.bookwellab-admin-page #bookwellab_root_app .el-select .el-select__wrapper.is-filterable .el-select__selected-item,
body.bookwellab-admin-page #bookwellab_root_app .el-select .el-select__wrapper.is-filterable .el-select__placeholder,
body.bookwellab-admin-page .bw-break-dialog .el-select .el-select__wrapper.is-filterable .el-select__selected-item,
body.bookwellab-admin-page .bw-break-dialog .el-select .el-select__wrapper.is-filterable .el-select__placeholder,
body.bookwellab-admin-page .el-overlay-dialog .bw-break-dialog .el-select .el-select__wrapper.is-filterable .el-select__selected-item,
body.bookwellab-admin-page .el-overlay-dialog .bw-break-dialog .el-select .el-select__wrapper.is-filterable .el-select__placeholder {
    padding-left: 0 !important;
    margin-left: 0 !important;
    left: 0 !important;
    inset-inline-start: 0 !important;
}

body.bookwellab-admin-page #bookwellab_root_app .el-select .el-select__wrapper.is-filterable .el-select__input,
body.bookwellab-admin-page #bookwellab_root_app .el-select .el-select__wrapper.is-filterable input.el-select__input,
body.bookwellab-admin-page .bw-break-dialog .el-select .el-select__wrapper.is-filterable .el-select__input,
body.bookwellab-admin-page .bw-break-dialog .el-select .el-select__wrapper.is-filterable input.el-select__input,
body.bookwellab-admin-page .el-overlay-dialog .bw-break-dialog .el-select .el-select__wrapper.is-filterable .el-select__input,
body.bookwellab-admin-page .el-overlay-dialog .bw-break-dialog .el-select .el-select__wrapper.is-filterable input.el-select__input {
    margin: 0 !important;
    padding: 0 !important;
    text-indent: 0 !important;
    box-sizing: border-box !important;
    /* Absolute search input sits on padding-box edge; offset to match placeholder. */
    left: 12px !important;
    inset-inline-start: 12px !important;
}

.bw-shift-actions {
    flex: 0 0 150px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

.bw-shift-off-text {
    color: #909399;
    font-style: italic;
    margin-left: 10px;
}

.bw-break-list {
    margin-top: 10px;
    padding-left: 120px;
}

.bw-break-item {
    display: inline-flex;
    align-items: center;
    position: relative;
    background-color: #f0f2f5;
    border-radius: 4px;
    padding: 6px 18px 6px 8px;
    margin-right: 10px;
    margin-bottom: 5px;
    font-size: 12px;
}

/* Special/Holiday Days: stack breaks vertically under the Breaks heading. */
.bw-special-day-break-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-left: 0;
    margin-top: 12px;
    clear: both;
}

.bw-special-day-break-list .bw-break-item {
    display: inline-flex;
    margin-right: 0;
    margin-bottom: 0;
}

.bw-break-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    cursor: pointer;
    color: #ffffff;
    background: #f56c6c;
    border: 1px solid #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    border: 0;
    line-height: 1;
    font-size: 11px;
    font-weight: 600;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.bw-break-remove:hover {
    background: #e45656;
}

/* Global Page Styles */
.bw-admin-page-content {
    background-color: #f4f6f8;
    /* Softer gray background */
    padding: 40px;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.container {
    width: 100%;
    margin: 0 auto;
}

/* Header */
.bw-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.bw-page-header h3 {
    font-size: 24px;
    font-weight: 600;
    color: #1a1f36;
    margin: 0 0 5px 0;
}

.bw-text-muted {
    color: #697386;
    font-size: 14px;
    margin: 0;
}

/* Main Card Wrapper */
.bw-notification-wrapper {
    display: flex;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    border: 1px solid #e3e8ee;
    min-height: 600px;
}

/* Sidebar */
.bw-sidebar {
    width: 260px;
    background: #f7fafc;
    border-right: 1px solid #e3e8ee;
    padding-top: 30px;
    flex-shrink: 0;
}

.bw-sidebar-title {
    padding: 0 24px;
    margin-bottom: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8792a2;
    font-weight: 600;
}

.bw-notification-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bw-notification-menu li {
    padding: 14px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #4f566b;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.bw-notification-menu li:hover {
    background-color: #edf2f7;
    color: #1a1f36;
}

.bw-notification-menu li.active {
    background-color: #ffffff;
    color: #5700B4;
    /* BookWell Primary Blue */
    font-weight: 600;
    box-shadow: -4px 0 0 #5700B4 inset;
    /* Left accent border */
}

.bw-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #cbd5e0;
    margin-right: 12px;
    transition: background-color 0.3s;
}

.bw-status-dot.enabled {
    background-color: #13ce66;
    box-shadow: 0 0 0 2px rgba(19, 206, 102, 0.2);
}

.bw-arrow-icon {
    margin-left: auto;
    font-size: 12px;
}

/* Content Area */
.bw-content {
    flex: 1;
    padding: 40px 50px;
}

.bw-section-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1f36;
    margin: 0 0 30px 0;
}

/* Flex Utilities */
.bw-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Controls & Forms */
.bw-control-group {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #edf2f7;
}

.bw-control-label {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    display: block;
    margin-bottom: 4px;
}

.bw-control-desc {
    font-size: 13px;
    color: #718096;
}

.bw-form-group {
    margin-bottom: 24px;
}

.bw-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

.bw-help-text {
    font-size: 12px;
    color: #a0aec0;
    margin-top: 6px;
}

/* El-Input Overrides for Premium Feel */
.el-input__inner,
.el-textarea__inner {
    border-radius: 6px;
    border-color: #e2e8f0;
    transition: all 0.3s;
}

/* Strip native WordPress admin focus outlines specifically when Element Plus is handling focus */
.el-input__inner:focus,
.el-textarea__inner:focus,
.el-select__input:focus,
.el-input__wrapper.is-focus .el-input__inner,
.el-textarea__wrapper.is-focus .el-textarea__inner {
    box-shadow: none !important;
    outline: none !important;
    border-color: transparent !important;
}

/* Apply our premium focus blue glow ONLY to the Element Plus wrapper */
.el-input__wrapper.is-focus,
.el-textarea__wrapper.is-focus,
.el-input.is-active .el-input__wrapper,
.el-input__wrapper:focus-within {
    box-shadow: 0 0 0 1px #5700B4 inset !important;
    border-color: #5700B4 !important;
    outline: none !important;
}

/* Ensure selected value is visible in filterable el-select */
.el-select .el-input__wrapper {
    background-color: #fff !important;
    box-shadow: 0 0 0 1px #dcdfe6 inset !important;
}

/* Allow normal El-Select behavior inside the wrapper without stripping internal layout */
.el-select .el-select__selection {
    z-index: 1 !important;
}

/* Placeholders Box */
.bw-placeholders-box {
    background: #fff;
    border: 1px dashed #cbd5e0;
    border-radius: 8px;
    padding: 20px;
    margin-top: 25px;
}

.bw-placeholders-title {
    font-size: 13px;
    font-weight: 600;
    color: #718096;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.bw-placeholders-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bw-tag-item {
    background: #ebf8ff;
    color: #3182ce;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    border: 1px solid transparent;
}

.bw-tag-item:hover {
    background: #bee3f8;
    border-color: #90cdf4;
    transform: translateY(-1px);
}

.bw-tag-item:active {
    transform: translateY(0);
}

/* Tabs Styling */
.bw-premium-tabs .el-tabs__nav-wrap::after {
    background-color: #e3e8ee;
    height: 1px;
}

.bw-premium-tabs .el-tabs__item {
    font-size: 15px;
    font-weight: 500;
    color: #718096;
    padding: 0 25px;
    height: 45px;
    line-height: 45px;
}

.bw-premium-tabs .el-tabs__item.is-active {
    color: #5700B4;
    font-weight: 600;
}

.bookwellab_page_main {
    margin-top: 80px;
}

/* Branding Header Styles */
.bw-branding-header {
    position: absolute !important;
    left: 0 !important;
    top: 0px !important;
    padding-top: 15px !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    padding: 15px 28px;
    border-bottom: 1px solid #f0f0f0;
    z-index: 100;
    /*margin: -20px -20px 0 -20px;*/
    /* Kept negative left/right margins to span full width */
    width: 100%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
    /* Prevent this floating header from blocking tab clicks below it. */
    pointer-events: none;
}

.bw-branding-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 200px;
    max-height: 40px;
}

.bw-branding-logo svg {
    display: block;
    width: 100%;
    height: auto;
    max-height: 40px;
}

.bw-branding-docs-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #5700B4;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 1;
    pointer-events: auto;
}

.bw-branding-docs-link .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.bw-branding-docs-link:hover,
.bw-branding-docs-link:focus {
    color: #3f0084;
    text-decoration: underline;
}

.bw-branding-text {
    display: flex;
    flex-direction: column;
}

.bw-brand-name {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #1a1a1a;
    font-family: 'Inter', sans-serif;
}

.bw-premium-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.bw-premium-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, #4f46e5 0%, #9333ea 100%);
}

.bw-premium-btn svg {
    fill: currentColor;
}

/* Adjustments for the main page container to fit with the header */
.book-now-adm--container {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 30px;
    /* Added spacing between header and content since we removed it from the header's bottom margin */
}

.bw-page-filter .bw-element-label {
    color: #606266 !important;
    font-weight: 500 !important;
}

.bw-page-filter {
    margin-bottom: 20px !important;
}

@media (max-width: 782px) {
    body.bookwellab-admin-page .bw-branding-header {
        position: relative !important;
        top: auto !important;
        left: 0 !important;
        width: 100% !important;
        padding: 10px 16px !important;
        box-sizing: border-box;
        z-index: 1;
        background: #ffffff;
        margin: 0 0 8px 0 !important;
    }

    body.bookwellab-admin-page .bw-branding-logo {
        max-width: 170px;
        max-height: 36px;
        margin: 0;
    }

    body.bookwellab-admin-page .bw-branding-logo svg {
        max-height: 36px;
    }

    body.bookwellab-admin-page .bw-branding-docs-link {
        font-size: 12px;
        gap: 6px;
    }

    body.bookwellab-admin-page .bw-branding-docs-link .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }

    body.bookwellab-admin-page .bookwellab_page_main {
        margin-top: 0 !important;
    }

    body.bookwellab-admin-page .book-now-adm--container {
        margin-top: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    body.bookwellab-admin-page #wpbody-content {
        overflow-x: hidden;
    }

    .bw-brand-name {
        font-size: 16px;
    }

    .bw-premium-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

.bw-cal-event-item {
    cursor: pointer;
    padding: 2px 5px;
    margin-bottom: 2px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.bw-cal-event-item:hover {
    background-color: rgba(64, 158, 255, 0.1);
}

.bw-cal-event-more {
    cursor: pointer;
    color: #5700B4;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 5px;
    margin-top: 5px;
    text-align: right;
    transition: color 0.2s;
}

.bw-cal-event-more:hover {
    color: #66b1ff;
    text-decoration: underline;
}

.el-textarea__inner:focus {
    box-shadow: 0 0 0 1px var(--el-input-focus-border-color) inset !important;
    outline: none !important;
}

.bw-categories-table .el-table__cell {
    vertical-align: middle;
}

.bw-category-action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bw-category-action-buttons .el-button {
    margin: 0 !important;
}

.bw-category-dialog-form .bw-category-form-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 4px;
}

.bw-category-dialog-form .bw-category-name-item {
    flex: 1 1 220px;
    margin-bottom: 0;
    min-width: 0;
}

.bw-category-dialog-form .bw-category-name-input {
    width: 100%;
}

.bw-category-dialog-form .bw-category-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.bw-categories-mobile-list {
    display: none;
    margin-top: 12px;
}

.bw-cat-mobile-card {
    background: #f9fafb;
    border: 1px solid #f0ebf7;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.bw-cat-mobile-card:last-child {
    margin-bottom: 0;
}

.bw-cat-mobile-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bw-category-dialog .bw-category-drag-handle {
    cursor: move;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bw-category-dialog .bw-category-drag-handle .dashicons {
    color: #9ca3af;
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.bw-cat-mobile-card-head .bw-category-drag-handle {
    flex-shrink: 0;
}

.bw-cat-mobile-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    word-break: break-word;
}

.bw-cat-mobile-empty {
    text-align: center;
    padding: 24px 12px;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #e5e7eb;
}

.bw-category-dialog .el-button--primary {
    background-color: #5700B4 !important;
    border-color: #5700B4 !important;
}

.bw-category-dialog .el-button--primary:hover,
.bw-category-dialog .el-button--primary:focus {
    background-color: #4b0099 !important;
    border-color: #4b0099 !important;
}

@media (max-width: 782px) {
    body.bookwellab-admin-page .el-overlay-dialog:has(.bw-category-dialog),
    body.bookwellab-admin-page .el-overlay:has(.bw-category-dialog) {
        padding: 0 !important;
    }

    body.bookwellab-admin-page .bw-category-dialog.el-dialog {
        --el-dialog-width: 100%;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    body.bookwellab-admin-page .bw-category-dialog .el-dialog__header {
        flex-shrink: 0;
        padding: 16px 16px 12px;
        margin-right: 0;
        border-bottom: 1px solid #f0ebf7;
    }

    body.bookwellab-admin-page .bw-category-dialog .el-dialog__title {
        font-size: 18px;
        font-weight: 600;
        color: #111827;
        line-height: 1.35;
    }

    body.bookwellab-admin-page .bw-category-dialog .el-dialog__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px;
    }

    body.bookwellab-admin-page .bw-category-dialog .el-dialog__headerbtn {
        top: 14px;
        right: 12px;
    }

    body.bookwellab-admin-page .bw-category-dialog-form .bw-category-form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    body.bookwellab-admin-page .bw-category-dialog-form .bw-category-name-item {
        flex: 1 1 auto;
        width: 100%;
    }

    body.bookwellab-admin-page .bw-category-dialog-form .bw-category-form-actions {
        width: 100%;
        flex-direction: column;
    }

    body.bookwellab-admin-page .bw-category-dialog-form .bw-category-form-actions .el-button {
        width: 100%;
        margin: 0;
        min-height: 44px;
    }

    body.bookwellab-admin-page .bw-categories-mobile-list {
        display: block;
    }

    body.bookwellab-admin-page .bw-categories-desktop-table {
        display: none !important;
    }

    body.bookwellab-admin-page .bw-cat-mobile-card-head .bw-category-action-buttons .el-button.is-circle {
        width: 36px !important;
        height: 36px !important;
        min-height: 36px !important;
    }
}

/* Settings / Element Plus: color picker is clipped by .el-main{overflow:auto} and can sit under #adminmenuwrap */
.book-now-adm--container-settings.el-main {
    overflow: visible;
}

/* Settings page: align all dropdown heights with text inputs (all tabs) */
.book-now-adm--container-settings .el-input:not(.el-textarea):not(.el-input--small) .el-input__wrapper,
.book-now-adm--container-settings .el-select:not(.el-select--small) .el-select__wrapper {
    min-height: 40px !important;
    height: 40px !important;
    box-sizing: border-box !important;
}

/* Settings inputs: match filterable select left inset (12px); strip WP admin inner padding */
.book-now-adm--container-settings .el-input:not(.el-textarea) .el-input__wrapper,
.book-now-adm--container-settings .el-textarea .el-textarea__inner {
    padding-left: 12px !important;
    padding-right: 12px !important;
}

.book-now-adm--container-settings .el-input:not(.el-textarea) .el-input__wrapper .el-input__inner,
.book-now-adm--container-settings .el-input:not(.el-textarea) .el-input__inner {
    padding-left: 0 !important;
    padding-right: 0 !important;
    text-indent: 0 !important;
}

.book-now-adm--container-settings .el-select:not(.el-select--small) .el-select__wrapper {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 38px;
}

.book-now-adm--container-settings .el-select:not(.el-select--small) .el-select__selected-item,
.book-now-adm--container-settings .el-select:not(.el-select--small) .el-select__placeholder {
    line-height: 38px;
}

.book-now-adm--container-settings .el-input:not(.el-textarea):not(.el-input--small) {
    --el-input-height: 40px;
}

.book-now-adm--container-settings .el-select:not(.el-select--small) {
    --el-component-size: 40px;
}

/* Settings: vertical left tab sidebar (card nav, BookWell purple) */
.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left {
    display: flex;
    align-items: stretch;
    min-height: 520px;
    gap: 20px;
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left > .el-tabs__header.is-left {
    float: none !important;
    margin: 0 !important;
    height: auto !important;
    align-self: stretch;
    box-sizing: border-box;
    background: #ebe4f4;
    border-radius: 14px;
    border: none;
    padding: 16px 12px;
    min-width: 236px;
    width: 236px;
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__nav-wrap.is-left {
    margin-right: 0 !important;
    height: 100% !important;
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__nav-wrap.is-left::after {
    display: none;
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__nav-scroll {
    height: 100% !important;
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__nav.is-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-right: none !important;
    float: none !important;
    padding: 0;
    background: transparent;
    min-width: 0;
    width: 100%;
    height: auto;
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__active-bar.is-left {
    display: none;
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__item.is-left {
    height: auto;
    min-height: 48px;
    line-height: 1.35;
    padding: 12px 14px;
    text-align: left;
    justify-content: flex-start;
    align-items: center;
    border-radius: 10px;
    border: 1px solid #e8e0f2;
    background: #ffffff;
    color: #4a4458;
    font-weight: 500;
    font-size: 14px;
    white-space: normal;
    box-shadow: 0 1px 3px rgba(87, 0, 180, 0.06);
    transition: color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__item.is-left .bw-settings-tab-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__item.is-left .bw-settings-tab-label .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
    flex: 0 0 auto;
    color: #6b6578;
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__item.is-left:hover {
    color: var(--el-color-primary, #5700B4);
    border-color: var(--el-color-primary-light-7, #ccb3e9);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(87, 0, 180, 0.1);
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__item.is-left:hover .bw-settings-tab-label .dashicons {
    color: var(--el-color-primary, #5700B4);
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__item.is-left.is-active {
    color: var(--el-color-primary, #5700B4);
    background: #ffffff;
    border-color: var(--el-color-primary, #5700B4);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(87, 0, 180, 0.14);
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__item.is-left.is-active .bw-settings-tab-label .dashicons {
    color: var(--el-color-primary, #5700B4);
}

.book-now-adm--container-settings .bw-settings-tabs.el-tabs--left > .el-tabs__content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 20px 24px;
    height: auto !important;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #e8e0f2;
    box-sizing: border-box;
}

.book-now-adm--container-settings .bw-settings-tabs .el-tab-pane {
    padding: 4px 4px 12px;
}

@media (max-width: 900px) {
    .book-now-adm--container-settings .bw-settings-tabs.el-tabs--left {
        flex-direction: column;
        min-height: 0;
        gap: 16px;
    }

    .book-now-adm--container-settings .bw-settings-tabs.el-tabs--left > .el-tabs__header.is-left {
        margin: 0 !important;
        width: 100%;
        min-width: 0;
        align-self: auto;
        height: auto !important;
    }

    .book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__nav-wrap.is-left,
    .book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__nav-scroll {
        height: auto !important;
    }

    .book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__nav.is-left {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .book-now-adm--container-settings .bw-settings-tabs.el-tabs--left .el-tabs__item.is-left {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
    }

    .book-now-adm--container-settings .bw-settings-tabs.el-tabs--left > .el-tabs__content {
        padding: 16px;
    }
}

/* Teleported color dropdown must render above WP admin left menu (z-index ~9990) and admin bar */
body.wp-admin .bw-admin-el-popper.el-popper,
body.wp-admin .el-color-picker__panel.el-popper {
    z-index: 100100 !important;
}

/* Keep Element Plus notification messages fully visible in wp-admin. */
.el-notification {
    max-width: calc(100vw - 32px);
}

.el-notification__group {
    padding-right: 12px;
}

.el-notification__content,
.el-notification__content p {
    white-space: normal !important;
    word-break: break-word;
    overflow: visible;
    line-height: 1.45;
}

/* Customers, Services, Staff, Appointments — light lavender filter panel (flat bottom edge) */
.bw-customers-page .bw-customers-filter-card .bw-page-filter,
.bw-services-page .bw-services-filter-card .bw-page-filter,
.bw-staff-page .bw-staff-filter-card .bw-page-filter,
.bw-appointments-page .bw-box-card > .bw-page-filter {
    background: #ebe4f4;
    border-radius: 10px 10px 5px 0;
    padding: 20px 20px 20px;
    box-sizing: border-box;
}

.bw-customers-page .bw-customers-filter-card,
.bw-services-page .bw-services-filter-card,
.bw-staff-page .bw-staff-filter-card {
    margin-top: 10px;
}

/* Hide column sort arrows on admin list tables */
.bw-customers-page .bw-custom-table .caret-wrapper,
.bw-appointments-page .bw-appointments-table .caret-wrapper,
.bw-services-page .bw-services-table .caret-wrapper,
.bw-staff-page .bw-staff-table .caret-wrapper {
    display: none !important;
}

/* Service page UI refresh (admin only, isolated by page root class) */
.bw-services-page {
    background: #f7f2fc;
    border-radius: 12px;
    padding: 16px 14px 22px !important;
}

.bw-services-page .container {
    padding: 0;
}

.bw-services-page .bw-admin-page-container {
    background: transparent;
    min-height: auto;
}

.bw-services-page .bw-card {
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    background: transparent !important;
}

.bw-services-page .bw-card .el-card__body {
    padding: 14px 10px !important;
}

.bw-services-page .bw-services-header-card {
    margin-bottom: 14px;
}

.bw-services-page .bw-services-filter-card {
    margin-bottom: 10px;
}

/* Filter row sits on page lavender — no white panel behind filters (reference) */
.bw-services-page .bw-services-filter-card .el-card__body {
    background: transparent !important;
    border-radius: 0;
    border: 0 !important;
    box-shadow: none !important;
    padding-top: 8px !important;
    padding-bottom: 12px !important;
}

.bw-services-page .bw-admin-head h3 {
    font-size: 22px !important;
    line-height: 1.25;
    font-weight: 600;
    color: #111827 !important;
}

.bw-services-page .bw-page-filter {
    margin-bottom: 0 !important;
}

/* Filter row: equal-height inputs + bottom-aligned Reset/Apply with field row */
.bw-services-page .bw-services-filter-row.el-row {
    display: flex !important;
    align-items: stretch !important;
}

.bw-services-page .bw-services-filter-row>.el-col {
    display: flex !important;
    flex-direction: column !important;
}

.bw-services-page .bw-services-filter-row .bw-form-element {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
}

.bw-services-page .el-form-item__label {
    justify-content: flex-start !important;
}

.bw-services-page .bw-services-filter-row .bw-element-btn-group-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: stretch !important;
}

.bw-services-page .bw-services-filter-row .bw-element-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
}

.bw-services-page .bw-services-filter-row .bw-services-reset-btn.el-button,
.bw-services-page .bw-services-filter-row .bw-services-apply-btn.el-button {
    min-height: 44px !important;
    height: 44px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.bw-services-page .bw-page-filter .bw-element-label {
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.bw-services-page .bw-page-filter .el-input .el-input__wrapper {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 10px;
    box-shadow: 0 0 0 1px #eceff4 inset !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.bw-services-page .bw-page-filter .el-select .el-select__wrapper {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 10px;
    box-shadow: 0 0 0 1px #eceff4 inset !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.bw-services-page .bw-page-filter .bw-form-control.el-input,
.bw-services-page .bw-page-filter .bookwell-form-control.el-select {
    width: 100%;
}

.bw-services-page .bw-page-filter .el-input .el-input__wrapper:hover {
    box-shadow: 0 0 0 1px #d1d5db inset !important;
}

.bw-services-page .bw-page-filter .el-select .el-select__wrapper.is-hovering:not(.is-focused) {
    box-shadow: 0 0 0 1px #d1d5db inset !important;
}

.bw-services-page .bw-services-btn-label {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.bw-services-page .bw-services-btn-icon.dashicons {
    font-size: 18px;
    width: 20px;
    height: 20px;
    line-height: 20px;
    margin-right: 8px;
    color: inherit;
}

/* Manage Categories — lavender secondary (reference) */
.bw-services-page .bw-services-manage-categories-btn.el-button {
    border-radius: 10px;
    border: 1px solid #ddd6fe !important;
    color: #5700B4 !important;
    background: #ede9fe !important;
    min-height: 40px;
    padding: 10px 20px !important;
    font-weight: 600;
}

.bw-services-page .bw-services-manage-categories-btn.el-button:hover,
.bw-services-page .bw-services-manage-categories-btn.el-button:focus {
    border-color: #c4b5fd !important;
    background: #e4e0fc !important;
    color: #4c0099 !important;
}

.bw-services-page .bw-services-reset-btn.el-button {
    border-radius: 10px;
    border: 1px solid #d4c4eb !important;
    color: #5700B4 !important;
    background: rgba(255, 255, 255, 0.55) !important;
    min-height: 40px;
    padding: 10px 22px !important;
    font-weight: 600;
}

.bw-services-page .bw-services-reset-btn.el-button:hover,
.bw-services-page .bw-services-reset-btn.el-button:focus {
    border-color: #c4b5fd !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: #4b0099 !important;
}

.bw-services-page .bw-services-primary-btn.el-button,
.bw-services-page .bw-services-apply-btn.el-button {
    border-radius: 10px;
    border-color: #5700B4 !important;
    background: #5700B4 !important;
    color: #ffffff !important;
    min-height: 40px;
    padding: 10px 24px !important;
    font-weight: 600;
}

.bw-services-page .bw-services-header-card .bw-services-primary-btn.el-button::before {
    content: '+';
    display: inline-block;
    margin-right: 6px;
    font-weight: 600;
    font-size: 1.05em;
    line-height: 1;
}

.bw-services-page .bw-services-primary-btn.el-button:hover,
.bw-services-page .bw-services-primary-btn.el-button:focus,
.bw-services-page .bw-services-apply-btn.el-button:hover,
.bw-services-page .bw-services-apply-btn.el-button:focus {
    border-color: #4b0099;
    background: #4b0099;
}

.bw-services-page .bw-services-table-wrap {
    padding: 0;
}

.bw-services-page .bw-services-table {
    border-radius: 14px;
    overflow: hidden;
    background: transparent !important;
    --el-table-border-color: transparent;
    --el-table-row-hover-bg-color: #ffffff;
    /* Match main + fixed header cells (fixed="right" uses this variable) */
    --el-table-header-bg-color: #f7f2fc;
}

.bw-services-page .bw-services-table::before {
    display: none;
}

.bw-services-page .bw-services-table .el-table__header-wrapper th {
    background: #f7f2fc;
    color: #4b5563;
    font-weight: 600;
    border-bottom-color: #e8dff5 !important;
    height: 54px !important;
    font-size: 14px;
}

.bw-services-page .bw-services-table .el-table__header-wrapper {
    background: #f7f2fc;
}

/* Fixed "Action" column header: patch cell defaults to white in Element Plus — match lavender header */
.bw-services-page .bw-services-table .el-table__header-wrapper tr th.el-table__fixed-right-patch,
.bw-services-page .bw-services-table .el-table__header-wrapper tr td.el-table__fixed-right-patch {
    background: #f7f2fc !important;
}

.bw-services-page .bw-services-table thead th.el-table-fixed-column--right,
.bw-services-page .bw-services-table .el-table__fixed-right .el-table__header-wrapper th.el-table__cell {
    background-color: #f7f2fc !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.bw-services-page .bw-services-table .el-table__fixed-right {
    border-radius: 0 !important;
}

/* Avoid clipping switch thumbs / icon buttons inside table cells */
.bw-services-page .bw-services-table td.el-table__cell:has(.el-switch) .cell,
.bw-services-page .bw-services-table .el-table__fixed-right td.el-table__cell .cell {
    overflow: visible;
}

.bw-services-page .bw-services-table .el-table__body-wrapper {
    background: #f7f2fc;
    padding: 6px 0 10px;
}

.bw-services-page .bw-services-table .el-table__row td {
    background: #ffffff;
    border-bottom: 10px solid #f7f2fc !important;
    border-top: 0 !important;
    font-size: 14px;
    color: #374151;
    height: 76px !important;
}

.bw-services-page .bw-services-table .el-table__body tr td:nth-child(1) {
    color: #9ca3af;
    font-weight: 500;
}

.bw-services-page .bw-services-table .el-table__body tr td:nth-child(5) {
    color: #6b7280;
}

.bw-services-page .bw-services-table .el-table__body tr td:nth-child(6) {
    font-weight: 600;
    color: #111827;
}

.bw-services-page .bw-services-table .el-table__row td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.bw-services-page .bw-services-table .el-table__row td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Use theme tokens only — do not resize switch track/thumb: Element Plus positions
   the checked thumb with calc() sized for its default 16px knob; overriding sizes breaks "on" state. */
.bw-services-page .bw-services-table .el-switch {
    --el-switch-on-color: #5700B4;
}

.bw-services-page .bw-services-table .el-switch.is-checked .el-switch__core {
    background-color: var(--el-switch-on-color);
    border-color: var(--el-switch-on-color);
}

.bw-services-page .bw-services-table .el-button.el-button--primary.is-circle {
    background: #5700B4;
    border-color: #5700B4;
}

.bw-services-page .bw-services-table .el-button.el-button--danger.is-circle {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

.bw-services-page .bw-services-table .el-button.is-circle {
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 6px !important;
}

.bw-services-page .bw-service-list-image {
    width: 38px;
    height: 38px;
    border-radius: 7px;
    border: 1px solid #eceff3;
}

.bw-services-page .bw-service-list-image-placeholder {
    width: 38px;
}

.bw-services-page .bw-drag-handle .dashicons {
    color: #9ca3af;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Services mobile list */
.bw-services-page .bw-services-mobile-list {
    display: none;
}

.bw-services-page .bw-svc-mobile-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.bw-services-page .bw-svc-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0ebf7;
}

.bw-services-page .bw-svc-mobile-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.bw-services-page .bw-svc-mobile-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.bw-services-page .bw-svc-mobile-image {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.bw-services-page .bw-svc-mobile-image-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #9ca3af;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.bw-services-page .bw-svc-mobile-title-wrap {
    min-width: 0;
}

.bw-services-page .bw-svc-mobile-id {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 2px;
}

.bw-services-page .bw-svc-mobile-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    word-break: break-word;
}

.bw-services-page .bw-svc-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bw-services-page .bw-svc-mobile-block {
    margin-bottom: 10px;
}

.bw-services-page .bw-svc-mobile-block:last-child {
    margin-bottom: 0;
}

.bw-services-page .bw-svc-mobile-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.bw-services-page .bw-svc-mobile-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    word-break: break-word;
}

.bw-services-page .bw-svc-mobile-meta {
    font-size: 13px;
    color: #6b7280;
}

.bw-services-page .bw-svc-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.bw-services-page .bw-svc-mobile-staff {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.bw-services-page .bw-svc-mobile-staff-more {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ede9fe;
    color: #5700B4;
    font-size: 12px;
    font-weight: 600;
}

.bw-services-page .bw-svc-mobile-empty {
    text-align: center;
    padding: 28px 16px;
    color: #6b7280;
    background: #ffffff;
    border-radius: 14px;
}

@media (max-width: 782px) {
    .bw-services-page .bw-services-filter-row > .el-col {
        margin-bottom: 18px;
    }

    .bw-services-page .bw-services-filter-row > .el-col:last-child {
        margin-bottom: 0;
    }

    .bw-services-page .bw-services-filter-row .bw-form-element {
        justify-content: flex-start;
    }

    .bw-services-page .bw-services-filter-row .bw-form-element label.el-form-item__label {
        padding-top: 0 !important;
        padding-bottom: 8px !important;
        margin-bottom: 0;
    }

    .bw-services-page .bw-services-filter-row .bw-element-btn-group-col {
        margin-top: 4px;
    }

    .bw-services-page .bw-services-filter-row .bw-element-btn-group {
        justify-content: stretch;
        gap: 10px;
        width: 100%;
    }

    .bw-services-page .bw-services-filter-row .bw-element-btn-group .el-button {
        flex: 1 1 0;
    }

    .bw-services-page .bw-services-mobile-list {
        display: block;
    }

    .bw-services-page .bw-services-desktop-table {
        display: none !important;
    }

    .bw-services-page .bw-admin-head .bw-right-align {
        margin-top: 12px;
        justify-content: flex-start !important;
        flex-direction: column;
        align-items: stretch !important;
        gap: 10px;
    }

    .bw-services-page .bw-services-manage-categories-btn.el-button,
    .bw-services-page .bw-services-primary-btn.el-button {
        width: 100%;
        margin-right: 0 !important;
    }

    .bw-services-page .bw-svc-mobile-actions .el-button.is-circle {
        width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
    }
}

/* -------------------------------------------------------------------------
   Staff admin list page (Manage Staff) — scoped to .bw-staff-page only
   ------------------------------------------------------------------------- */
.bw-staff-page {
    background: #f7f2fc;
    border-radius: 12px;
    padding: 16px 14px 22px !important;
}

.bw-staff-page .container {
    padding: 0;
}

.bw-staff-page .bw-admin-page-container {
    background: transparent;
    min-height: auto;
}

.bw-staff-page .bw-card {
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    background: transparent !important;
}

.bw-staff-page .bw-card .el-card__body {
    padding: 14px 10px !important;
}

.bw-staff-page .bw-staff-filter-card .el-card__body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-top: 8px !important;
    padding-bottom: 12px !important;
}

.bw-staff-page .bw-staff-header-card {
    margin-bottom: 14px;
}

.bw-staff-page .bw-admin-head h3 {
    font-size: 22px !important;
    line-height: 1.25;
    font-weight: 600;
    color: #111827 !important;
}

.bw-staff-page .bw-staff-primary-btn.el-button,
.bw-staff-page .bw-staff-apply-btn.el-button {
    border-radius: 10px;
    border-color: #5700B4 !important;
    background: #5700B4 !important;
    color: #ffffff !important;
    min-height: 40px;
    padding: 10px 24px !important;
    font-weight: 600;
}

.bw-staff-page .bw-staff-header-card .bw-staff-primary-btn.el-button::before {
    content: '+';
    display: inline-block;
    margin-right: 6px;
    font-weight: 600;
    font-size: 1.05em;
    line-height: 1;
}

.bw-staff-page .bw-staff-primary-btn.el-button:hover,
.bw-staff-page .bw-staff-primary-btn.el-button:focus,
.bw-staff-page .bw-staff-apply-btn.el-button:hover,
.bw-staff-page .bw-staff-apply-btn.el-button:focus {
    border-color: #4b0099 !important;
    background: #4b0099 !important;
}

.bw-staff-page .bw-staff-reset-btn.el-button {
    border-radius: 10px;
    border: 1px solid #d4c4eb !important;
    color: #5700B4 !important;
    background: rgba(255, 255, 255, 0.55) !important;
    min-height: 40px;
    padding: 10px 22px !important;
    font-weight: 600;
}

.bw-staff-page .bw-staff-reset-btn.el-button:hover,
.bw-staff-page .bw-staff-reset-btn.el-button:focus {
    border-color: #c4b5fd !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: #4b0099 !important;
}

.bw-staff-page .bw-staff-filter-row.el-row {
    display: flex !important;
    align-items: stretch !important;
}

.bw-staff-page .bw-staff-filter-row>.el-col {
    display: flex !important;
    flex-direction: column !important;
}

.bw-staff-page .bw-staff-filter-row .bw-form-element {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
}

.bw-staff-page .bw-staff-filter-row .bw-element-btn-group-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    margin-left: auto !important;
}

@media (max-width: 991px) {
    .bw-staff-page .bw-staff-filter-row .bw-element-btn-group-col {
        margin-left: 0 !important;
        align-items: stretch !important;
    }

    .bw-staff-page .bw-staff-filter-row .bw-element-btn-group {
        width: 100%;
        justify-content: flex-start;
    }
}

.bw-staff-page .bw-staff-filter-row .bw-element-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.bw-staff-page .bw-staff-filter-row .bw-staff-reset-btn.el-button,
.bw-staff-page .bw-staff-filter-row .bw-staff-apply-btn.el-button {
    min-height: 44px !important;
    height: 44px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.bw-staff-page .bw-page-filter .bw-element-label {
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

/* Element Plus defaults label.el-form-item__label to justify-content:flex-end */
.bw-staff-page .bw-staff-filter-row .bw-form-element label.el-form-item__label {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

.bw-staff-page .bw-page-filter .el-input .el-input__wrapper {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 10px;
    box-shadow: 0 0 0 1px #eceff4 inset !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.bw-staff-page .bw-page-filter .el-select .el-select__wrapper {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 10px;
    box-shadow: 0 0 0 1px #eceff4 inset !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.bw-staff-page .bw-page-filter .bw-form-control.el-input,
.bw-staff-page .bw-page-filter .bookwell-form-control.el-select {
    width: 100%;
}

.bw-staff-page .bw-page-filter .el-input .el-input__wrapper:hover {
    box-shadow: 0 0 0 1px #d1d5db inset !important;
}

.bw-staff-page .bw-page-filter .el-select .el-select__wrapper.is-hovering:not(.is-focused) {
    box-shadow: 0 0 0 1px #d1d5db inset !important;
}

.bw-staff-page .bw-staff-table-wrap {
    padding: 0;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table {
    border-radius: 14px;
    overflow: hidden;
    background: transparent !important;
    --el-table-border-color: transparent;
    --el-table-row-hover-bg-color: #ffffff;
    --el-table-header-bg-color: #f7f2fc;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table::before {
    display: none;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__header-wrapper th {
    background: #f7f2fc;
    color: #4b5563;
    font-weight: 600;
    border-bottom-color: #e8dff5 !important;
    height: 54px !important;
    font-size: 14px;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__header-wrapper {
    background: #f7f2fc;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__header-wrapper tr th.el-table__fixed-right-patch,
.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__header-wrapper tr td.el-table__fixed-right-patch {
    background: #f7f2fc !important;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table thead th.el-table-fixed-column--right,
.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__fixed-right .el-table__header-wrapper th.el-table__cell {
    background-color: #f7f2fc !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__fixed-right {
    border-radius: 0 !important;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__body-wrapper {
    background: #f7f2fc;
    padding: 6px 0 10px;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__row td {
    background: #ffffff;
    border-bottom: 10px solid #f7f2fc !important;
    border-top: 0 !important;
    font-size: 14px;
    color: #374151;
    height: 76px !important;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__body tr td:nth-child(1) {
    color: #9ca3af;
    font-weight: 500;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__body tr td:nth-child(3) {
    font-weight: 600;
    color: #111827;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__body tr td:nth-child(4) {
    color: #6b7280;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__body tr td:nth-child(6) {
    color: #4b5563;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__body-wrapper .el-table__row td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__fixed-right .el-table__body-wrapper .el-table__row td.el-table__cell {
    background: #ffffff !important;
    border-bottom: 10px solid #f7f2fc !important;
    border-top: 0 !important;
    height: 76px !important;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-switch {
    --el-switch-on-color: #5700B4;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-switch.is-checked .el-switch__core {
    background-color: var(--el-switch-on-color);
    border-color: var(--el-switch-on-color);
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table td.el-table__cell:has(.el-switch) .cell,
.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-table__fixed-right td.el-table__cell .cell {
    overflow: visible;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-button.el-button--primary.is-circle {
    background: #5700B4;
    border-color: #5700B4;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-button.el-button--danger.is-circle {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

.bw-staff-page .bw-staff-table-wrap .bw-staff-table .el-button.is-circle {
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 6px !important;
}

.bw-staff-page .bw-staff-list-avatar {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #eceff3;
}

.bw-staff-page .bw-staff-drag-handle .dashicons {
    color: #9ca3af;
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.bw-staff-page .bw-staff-shift-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.bw-staff-page .bw-staff-shift-btn.el-button.is-plain {
    margin-left: 0 !important;
    min-width: 104px;
    border-radius: 8px;
    font-weight: 600;
    border-color: #5700B4 !important;
    color: #5700B4 !important;
    background: #ffffff !important;
}

.bw-staff-page .bw-staff-shift-btn.el-button.is-plain:hover,
.bw-staff-page .bw-staff-shift-btn.el-button.is-plain:focus {
    border-color: #4b0099 !important;
    color: #4b0099 !important;
    background: #f5f0ff !important;
}

.bw-staff-page .bw-staff-table-wrap .bw-service-count {
    background-color: #ede9fe;
    color: #5700B4;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
}

/* Staff mobile list */
.bw-staff-page .bw-staff-mobile-list {
    display: none;
}

.bw-staff-page .bw-staff-mobile-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.bw-staff-page .bw-staff-mobile-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0ebf7;
}

.bw-staff-page .bw-staff-mobile-head-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.bw-staff-page .bw-staff-mobile-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.bw-staff-page .bw-staff-mobile-avatar {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.bw-staff-page .bw-staff-mobile-title-wrap {
    min-width: 0;
}

.bw-staff-page .bw-staff-mobile-id {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    margin-bottom: 2px;
}

.bw-staff-page .bw-staff-mobile-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    word-break: break-word;
}

.bw-staff-page .bw-staff-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bw-staff-page .bw-staff-mobile-block {
    margin-bottom: 10px;
}

.bw-staff-page .bw-staff-mobile-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.bw-staff-page .bw-staff-mobile-value {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    word-break: break-word;
}

.bw-staff-page .bw-staff-mobile-meta {
    font-size: 13px;
    color: #6b7280;
}

.bw-staff-page .bw-staff-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.bw-staff-page .bw-staff-mobile-shift-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bw-staff-page .bw-staff-mobile-shift-row .bw-staff-shift-btn {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    margin: 0 !important;
}

.bw-staff-page .bw-staff-mobile-empty {
    text-align: center;
    padding: 28px 16px;
    color: #6b7280;
    background: #ffffff;
    border-radius: 14px;
}

@media (max-width: 782px) {
    .bw-staff-page .bw-staff-filter-row > .el-col {
        margin-bottom: 18px;
    }

    .bw-staff-page .bw-staff-filter-row > .el-col:last-child {
        margin-bottom: 0;
    }

    .bw-staff-page .bw-staff-filter-row .bw-form-element {
        justify-content: flex-start;
    }

    .bw-staff-page .bw-staff-filter-row .bw-form-element label.el-form-item__label {
        padding-top: 0 !important;
        padding-bottom: 8px !important;
        margin-bottom: 0;
    }

    .bw-staff-page .bw-staff-filter-row .bw-element-btn-group-col {
        margin-top: 4px;
    }

    .bw-staff-page .bw-staff-filter-row .bw-element-btn-group {
        justify-content: stretch;
        gap: 10px;
        width: 100%;
    }

    .bw-staff-page .bw-staff-filter-row .bw-element-btn-group .el-button {
        flex: 1 1 0;
    }

    .bw-staff-page .bw-staff-mobile-list {
        display: block;
    }

    .bw-staff-page .bw-staff-desktop-table {
        display: none !important;
    }

    .bw-staff-page .bw-admin-head .bw-right-align {
        margin-top: 12px;
        justify-content: flex-start !important;
    }

    .bw-staff-page .bw-staff-primary-btn {
        width: 100%;
    }

    .bw-staff-page .bw-staff-mobile-actions .el-button.is-circle {
        width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
    }
}

/* -------------------------------------------------------------------------
   Appointments admin list — scoped to .bw-appointments-page only
   ------------------------------------------------------------------------- */
.bw-appointments-page {
    background: #f7f2fc;
    border-radius: 12px;
    padding: 16px 14px 22px !important;
}

.bw-appointments-page .container {
    padding: 0;
}

.bw-appointments-page .bw-admin-page-container {
    background: transparent;
    min-height: auto;
}

.bw-appointments-page .bw-card {
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    background: transparent !important;
}

.bw-appointments-page .bw-card .el-card__body {
    padding: 14px 10px !important;
}

.bw-appointments-page .bw-appointments-header-card {
    margin-bottom: 14px;
}

.bw-appointments-page .bw-appointments-main-card {
    margin-top: 10px;
}

.bw-appointments-page .bw-admin-head h3 {
    font-size: 22px !important;
    line-height: 1.25;
    font-weight: 600;
    color: #111827 !important;
}

.bw-appointments-page .bw-appointments-main-card .bw-box-card {
    background: transparent;
}

.bw-appointments-page .bw-box-card > .bw-page-filter {
    margin-bottom: 12px;
}

.bw-appointments-page .bw-appointments-filter-row.el-row {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: wrap;
}

.bw-appointments-page .bw-appointments-filter-row>.el-col {
    display: flex !important;
    flex-direction: column !important;
}

.bw-appointments-page .bw-appointments-filter-row .bw-form-element {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
}

.bw-customers-page .bw-customers-filter-row .bw-form-element label.el-form-item__label{
    padding-bottom: 5px !important;
}

.bw-appointments-page .bw-appointments-filter-row .bw-form-element label.el-form-item__label {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
    padding-bottom: 5px !important;
}

.bw-appointments-page .bw-appointments-filter-row .bw-element-btn-group-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    margin-left: auto !important;
}

@media (max-width: 991px) {
    .bw-appointments-page .bw-appointments-filter-row .bw-element-btn-group-col {
        margin-left: 0 !important;
        align-items: stretch !important;
    }

    .bw-appointments-page .bw-appointments-filter-row .bw-element-btn-group {
        width: 100%;
        justify-content: flex-end;
    }
}

.bw-appointments-page .bw-appointments-filter-row .bw-element-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
    max-width: 100%;
}

.bw-appointments-page .bw-appointments-reset-btn.el-button {
    border-radius: 10px;
    border: 1px solid #d4c4eb !important;
    color: #5700B4 !important;
    background: rgba(255, 255, 255, 0.65) !important;
    min-height: 40px;
    padding: 10px 22px !important;
    font-weight: 600;
}

.bw-appointments-page .bw-appointments-refresh-btn.el-button {
    border-radius: 10px;
    border-color: #5700B4 !important;
    background: #5700B4 !important;
    color: #ffffff !important;
    min-height: 40px;
    padding: 10px 24px !important;
    font-weight: 600;
}

.bw-appointments-page .bw-appointments-filter-row .bw-appointments-reset-btn.el-button,
.bw-appointments-page .bw-appointments-filter-row .bw-appointments-refresh-btn.el-button {
    min-height: 44px !important;
    height: 44px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Field labels aligned with Staff / table header weight */
.bw-appointments-page .bw-page-filter .bw-element-label {
    text-align: left !important;
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}

.bw-appointments-page .bw-appointments-filter-row .el-input .el-input__wrapper,
.bw-appointments-page .bw-appointments-filter-row .el-select .el-select__wrapper,
.bw-appointments-page .bw-appointments-filter-row .el-date-editor.el-input__wrapper {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 10px;
    box-shadow: 0 0 0 1px #eceff4 inset !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.bw-appointments-page .bw-appointments-filter-row .bw-form-control.el-input,
.bw-appointments-page .bw-appointments-filter-row .bw-form-control.el-select,
.bw-appointments-page .bw-appointments-filter-row .bw-form-control.el-date-editor {
    width: 100% !important;
}

.bw-appointments-page .bw-appointments-table-wrap {
    padding: 0;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table {
    border-radius: 14px;
    overflow: hidden;
    background: transparent !important;
    --el-table-border-color: transparent;
    --el-table-row-hover-bg-color: #ffffff;
    --el-table-header-bg-color: #f7f2fc;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table::before {
    display: none;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-table__header-wrapper th {
    background: #f7f2fc;
    color: #4b5563;
    font-weight: 600;
    border-bottom-color: #e8dff5 !important;
    height: 40px !important;
    font-size: 14px;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-table__header-wrapper {
    background: #f7f2fc;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-table__body-wrapper {
    background: #f7f2fc;
    padding: 6px 0 10px;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-table__row td {
    background: #ffffff;
    border-bottom: 10px solid #f7f2fc !important;
    border-top: 0 !important;
    font-size: 14px;
    color: #374151;
    height: auto !important;
    min-height: 92px;
    vertical-align: middle;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-table__body tr td:nth-child(1) {
    color: #9ca3af;
    font-weight: 500;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-table__body tr td:nth-child(6) {
    font-weight: 600;
    color: #111827;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-table__body-wrapper .el-table__row td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-table__body-wrapper .el-table__row td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-table__cell .cell {
    line-height: 1.45;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table th.bw-payment-column .cell,
.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table td.bw-payment-column .cell {
    text-align: left !important;
    padding-right: 28px !important;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table th.bw-datetime-column .cell,
.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table td.bw-datetime-column .cell {
    padding-left: 12px !important;
}

/* Date/Time primary lines */
.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .bw-appt-datetime-date,
.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .bw-appt-datetime-time {
    color: #374151;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .bw-appt-datetime-date strong,
.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .bw-appt-datetime-time strong {
    color: #374151;
    font-weight: 500;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .bw-appt-customer-name,
.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .bw-appt-customer-name strong {
    color: #374151;
    font-weight: 500;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .bw-appt-datetime-duration {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .bw-payment-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
}

.bw-appointments-page .bw-payment-tags-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .bw-payment-tags .el-tag {
    max-width: 100%;
    white-space: nowrap;
    height: auto;
    line-height: 1.3;
    flex-shrink: 0;
}

.bw-appointments-page .bw-payment-transaction-id {
    width: 100%;
    box-sizing: border-box;
    padding: 6px 8px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.bw-zoom-meeting-link {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: #2D8CFF;
    text-decoration: none;
}

.bw-zoom-meeting-link:hover {
    color: #0B5CFF;
    text-decoration: underline;
}

.bw-meeting-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.bw-meeting-links-row:empty {
    display: none;
    margin-top: 0;
}

.bw-zoom-meeting-link-wrap {
    margin-top: 6px;
}

.bw-meeting-links-row .bw-zoom-meeting-link-wrap {
    margin-top: 0;
}

.bw-zoom-meeting-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: #2D8CFF;
    background: rgba(45, 140, 255, 0.1);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.bw-zoom-meeting-icon-link:hover,
.bw-zoom-meeting-icon-link:focus {
    color: #0B5CFF;
    background: rgba(45, 140, 255, 0.18);
    outline: none;
}

.bw-zoom-meeting-icon {
    display: block;
    flex-shrink: 0;
}

.bw-zoom-scopes-box {
    margin: 20px 0 0;
    padding: 16px 18px;
    border: 1px solid var(--bw-border-color, #e2e8f0);
    border-radius: 10px;
    background: #fafafa;
}

.bw-zoom-config-note {
    margin: 0 0 20px;
    padding: 12px 14px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #78350f;
    font-size: 13px;
    line-height: 1.5;
}

.bw-zoom-config-note strong {
    margin-inline-end: 4px;
}

.bw-zoom-scopes-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.bw-zoom-scopes-group {
    padding: 12px 14px;
    border: 1px solid var(--bw-border-color, #e2e8f0);
    border-radius: 8px;
    background: #fff;
}

.bw-zoom-scopes-group strong {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--bw-title-color, #0f172a);
}

.bw-zoom-scopes-group ul {
    margin: 0;
    padding: 0 0 0 18px;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.bw-zoom-scopes-group li {
    margin-bottom: 4px;
}

@media (max-width: 1100px) {
    .bw-zoom-scopes-grid {
        grid-template-columns: 1fr;
    }
}

.bw-appointments-page .bw-payment-transaction-id__label {
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 3px;
}

.bw-appointments-page .bw-payment-transaction-id__value {
    display: block;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 600;
    line-height: 1.35;
    color: #334155;
    word-break: break-all;
    overflow-wrap: anywhere;
}

.bw-appointments-page .bw-appt-mobile-tags {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.bw-appointments-page .bw-appt-mobile-tags .bw-payment-transaction-id {
    width: 100%;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table td.el-table__cell:has(.el-button.is-circle) .cell {
    overflow: visible;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-tag {
    border-radius: 999px;
    font-weight: 600;
    padding: 4px 10px;
}

/* Appointment list status dropdown (BookingPress-style color select) */
.bw-appointments-page .bw-appt-status-dropdown-wrap {
    position: relative;
    width: 100%;
    max-width: 148px;
}

.bw-appointments-page .bw-appt-status-dropdown-wrap.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.bw-appointments-page .bw-appt-status-select {
    width: 100%;
}

.bw-appointments-page .bw-appt-status-select .el-select__wrapper {
    min-height: 28px !important;
    height: 28px !important;
    padding: 0 10px !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    border: 1px solid transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 26px;
}

.bw-appointments-page .bw-appt-status-select .el-select__selected-item,
.bw-appointments-page .bw-appt-status-select .el-select__placeholder {
    line-height: 26px;
}

.bw-appointments-page .bw-appt-status-select.bw-appt-status--approved .el-select__wrapper {
    background: rgba(87, 0, 180, 0.08);
    border-color: #5700B4;
    color: #5700B4;
}

.bw-appointments-page .bw-appt-status-select.bw-appt-status--pending .el-select__wrapper {
    background: rgba(245, 174, 65, 0.12);
    border-color: #F5AE41;
    color: #b7791f;
}

.bw-appointments-page .bw-appt-status-select.bw-appt-status--cancelled .el-select__wrapper {
    background: rgba(114, 126, 149, 0.12);
    border-color: #727E95;
    color: #4a5568;
}

.bw-appointments-page .bw-appt-status-select.bw-appt-status--completed .el-select__wrapper {
    background: rgba(56, 161, 105, 0.12);
    border-color: #38A169;
    color: #276749;
}

.bw-appointments-page .bw-appt-mobile-card-head .bw-appt-status-dropdown-wrap {
    max-width: 130px;
}

body.bookwellab-admin-page .bw-appt-status-dropdown-popper.el-select__popper .el-select-dropdown__item {
    font-size: 13px;
}

/* Bulk actions bar — fixed to viewport bottom (appointments, services, staff) */
body.bookwellab-admin-page .bw-appt-bulk-actions-bar,
body.bookwellab-admin-page .bw-admin-bulk-actions-bar {
    position: fixed;
    left: 180px;
    right: 20px;
    bottom: 20px;
    z-index: 100100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    width: auto;
    max-width: 920px;
    margin: 0;
    padding: 12px 16px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

body.bookwellab-admin-page.folded .bw-appt-bulk-actions-bar,
body.bookwellab-admin-page.folded .bw-admin-bulk-actions-bar {
    left: 56px;
}

body.bookwellab-admin-page .bw-appt-bulk-actions-close,
body.bookwellab-admin-page .bw-admin-bulk-actions-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #edf2f7;
    color: #4a5568;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

body.bookwellab-admin-page .bw-appt-bulk-actions-close:hover,
body.bookwellab-admin-page .bw-admin-bulk-actions-close:hover {
    background: #e2e8f0;
    color: #1a202c;
}

body.bookwellab-admin-page .bw-appt-bulk-actions-count,
body.bookwellab-admin-page .bw-admin-bulk-actions-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #2d3748;
}

body.bookwellab-admin-page .bw-appt-bulk-actions-count-icon,
body.bookwellab-admin-page .bw-admin-bulk-actions-count-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #5700B4;
    color: #fff;
}

body.bookwellab-admin-page .bw-appt-bulk-actions-controls,
body.bookwellab-admin-page .bw-admin-bulk-actions-controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

body.bookwellab-admin-page .bw-appt-bulk-action-select,
body.bookwellab-admin-page .bw-admin-bulk-action-select {
    min-width: 180px;
}

body.bookwellab-admin-page .bw-appt-bulk-go-btn.el-button,
body.bookwellab-admin-page .bw-admin-bulk-go-btn.el-button {
    min-height: 32px;
    background: #5700B4;
    border-color: #5700B4;
}

body.bookwellab-admin-page .bw-appt-bulk-go-btn.el-button:hover,
body.bookwellab-admin-page .bw-appt-bulk-go-btn.el-button:focus,
body.bookwellab-admin-page .bw-admin-bulk-go-btn.el-button:hover,
body.bookwellab-admin-page .bw-admin-bulk-go-btn.el-button:focus {
    background: #4a0099;
    border-color: #4a0099;
}

.bw-appointments-page .bw-appt-mobile-select-all,
body.bookwellab-admin-page .bw-admin-mobile-select-all {
    margin-bottom: 10px;
    padding: 0 2px;
}

.bw-appointments-page .bw-appt-mobile-card.is-selected,
body.bookwellab-admin-page .bw-svc-mobile-card.is-selected,
body.bookwellab-admin-page .bw-staff-mobile-card.is-selected,
body.bookwellab-admin-page .bw-customer-mobile-card.is-selected {
    border-color: #5700B4;
    box-shadow: 0 0 0 1px rgba(87, 0, 180, 0.2);
}

@media (max-width: 960px) {
    body.bookwellab-admin-page .bw-appt-bulk-actions-bar,
    body.bookwellab-admin-page.folded .bw-appt-bulk-actions-bar,
    body.bookwellab-admin-page .bw-admin-bulk-actions-bar,
    body.bookwellab-admin-page.folded .bw-admin-bulk-actions-bar {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: none;
    }
}

@media (max-width: 782px) {
    body.bookwellab-admin-page .bw-appt-bulk-actions-bar,
    body.bookwellab-admin-page .bw-admin-bulk-actions-bar {
        flex-direction: column;
        align-items: stretch;
    }

    body.bookwellab-admin-page .bw-appt-bulk-actions-controls,
    body.bookwellab-admin-page .bw-admin-bulk-actions-controls {
        margin-left: 0;
        width: 100%;
    }

    body.bookwellab-admin-page .bw-appt-bulk-action-select,
    body.bookwellab-admin-page .bw-appt-bulk-go-btn.el-button,
    body.bookwellab-admin-page .bw-admin-bulk-action-select,
    body.bookwellab-admin-page .bw-admin-bulk-go-btn.el-button {
        width: 100%;
    }
}

/* Bulk action confirmation dialog */
body.bookwellab-admin-page .bw-admin-bulk-confirm.el-message-box {
    width: min(440px, calc(100vw - 32px));
    max-width: 440px;
    padding: 22px 22px 18px;
    border-radius: 12px;
    border: 1px solid #ebe4f5;
    box-shadow: 0 16px 40px rgba(31, 12, 58, 0.18);
}

body.bookwellab-admin-page .bw-admin-bulk-confirm .el-message-box__header {
    padding-bottom: 8px;
}

body.bookwellab-admin-page .bw-admin-bulk-confirm .el-message-box__title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

body.bookwellab-admin-page .bw-admin-bulk-confirm .el-message-box__content {
    padding: 8px 0 4px;
}

body.bookwellab-admin-page .bw-admin-bulk-confirm .el-message-box__container {
    align-items: flex-start;
    gap: 12px;
}

body.bookwellab-admin-page .bw-admin-bulk-confirm .el-message-box__status {
    font-size: 24px !important;
    color: #f59e0b !important;
}

body.bookwellab-admin-page .bw-admin-bulk-confirm .el-message-box__message {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

body.bookwellab-admin-page .bw-admin-bulk-confirm .el-message-box__btns {
    padding-top: 16px;
    gap: 8px;
}

body.bookwellab-admin-page .bw-admin-bulk-confirm .bw-admin-bulk-confirm-cancel.el-button {
    min-height: 36px;
    border-radius: 8px;
    border-color: #d7d2e0;
    color: #4b5563;
    background: #fff;
}

body.bookwellab-admin-page .bw-admin-bulk-confirm .bw-admin-bulk-confirm-cancel.el-button:hover,
body.bookwellab-admin-page .bw-admin-bulk-confirm .bw-admin-bulk-confirm-cancel.el-button:focus {
    border-color: #c4bdd1;
    color: #1f2937;
    background: #f8f5fc;
}

body.bookwellab-admin-page .bw-admin-bulk-confirm .bw-admin-bulk-confirm-ok.el-button {
    min-height: 36px;
    border-radius: 8px;
    background: #5700B4;
    border-color: #5700B4;
    color: #fff;
}

body.bookwellab-admin-page .bw-admin-bulk-confirm .bw-admin-bulk-confirm-ok.el-button:hover,
body.bookwellab-admin-page .bw-admin-bulk-confirm .bw-admin-bulk-confirm-ok.el-button:focus {
    background: #4a0099;
    border-color: #4a0099;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-button.el-button--primary.is-circle {
    background: #5700B4;
    border-color: #5700B4;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-button.el-button--danger.is-circle {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

.bw-appointments-page .bw-appointments-table-wrap .bw-appointments-table .el-button.is-circle {
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 6px !important;
}

/* Delete circle button: visible white spinner, hide trash icon while loading */
.bw-appointments-page .bw-appt-delete-btn.el-button.is-circle.is-loading,
.bw-appointments-page .bw-appt-mobile-actions .bw-appt-delete-btn.el-button.is-circle.is-loading {
    pointer-events: none;
    opacity: 1 !important;
}

.bw-appointments-page .bw-appt-delete-btn.el-button.is-circle.is-loading .el-icon,
.bw-appointments-page .bw-appt-mobile-actions .bw-appt-delete-btn.el-button.is-circle.is-loading .el-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 14px !important;
    height: 14px !important;
    font-size: 14px !important;
    margin: 0 !important;
    color: #fff !important;
}

.bw-appointments-page .bw-appt-delete-btn.el-button.is-circle.is-loading .el-icon svg,
.bw-appointments-page .bw-appt-mobile-actions .bw-appt-delete-btn.el-button.is-circle.is-loading .el-icon svg {
    width: 14px !important;
    height: 14px !important;
    color: #fff !important;
}

.bw-appointments-page .bw-appt-delete-btn.el-button.is-circle.is-loading > span,
.bw-appointments-page .bw-appt-mobile-actions .bw-appt-delete-btn.el-button.is-circle.is-loading > span {
    display: none !important;
}

/* Appointments mobile list */
.bw-appointments-page .bw-appointments-mobile-list {
    display: none;
}

.bw-appointments-page .bw-appt-mobile-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.bw-appointments-page .bw-appt-mobile-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0ebf7;
}

.bw-appointments-page .bw-appt-mobile-id {
    font-size: 13px;
    font-weight: 600;
    color: #9ca3af;
}

.bw-appointments-page .bw-appt-mobile-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bw-appointments-page .bw-appt-mobile-block {
    margin-bottom: 12px;
}

.bw-appointments-page .bw-appt-mobile-block:last-child {
    margin-bottom: 0;
}

.bw-appointments-page .bw-appt-mobile-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.bw-appointments-page .bw-appt-mobile-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    line-height: 1.35;
    word-break: break-word;
}

.bw-appointments-page .bw-appt-mobile-customer-name {
    color: #374151;
    font-weight: 500;
}

.bw-appointments-page .bw-appt-mobile-datetime-primary {
    color: #374151;
    font-weight: 500;
}

.bw-appointments-page .bw-appt-mobile-meta {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
    word-break: break-word;
}

.bw-appointments-page .bw-appt-mobile-time {
    font-weight: 600;
    color: #374151;
}

.bw-appointments-page .bw-appt-mobile-price {
    font-size: 16px;
}

.bw-appointments-page .bw-appt-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bw-appointments-page .bw-appt-mobile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bw-appointments-page .bw-appt-mobile-empty {
    text-align: center;
    padding: 28px 16px;
    color: #6b7280;
    background: #ffffff;
    border-radius: 14px;
}

@media (max-width: 782px) {
    .bw-appointments-page .bw-appointments-filter-row > .el-col {
        margin-bottom: 18px;
    }

    .bw-appointments-page .bw-appointments-filter-row > .el-col:last-child {
        margin-bottom: 0;
    }

    .bw-appointments-page .bw-appointments-filter-row .bw-form-element {
        justify-content: flex-start;
    }

    .bw-appointments-page .bw-appointments-filter-row .bw-form-element label.el-form-item__label {
        padding-top: 0 !important;
        padding-bottom: 8px !important;
        margin-bottom: 0;
    }

    .bw-appointments-page .bw-appointments-filter-row .bw-element-btn-group-col {
        margin-top: 4px;
    }

    .bw-appointments-page .bw-appointments-filter-row .bw-element-btn-group {
        justify-content: stretch;
        gap: 10px;
    }

    .bw-appointments-page .bw-appointments-filter-row .bw-element-btn-group .el-button {
        flex: 1 1 0;
    }

    .bw-appointments-page .bw-appointments-mobile-list {
        display: block;
    }

    .bw-appointments-page .bw-appointments-desktop-table {
        display: none !important;
    }

    .bw-appointments-page .bw-admin-head .bw-right-align {
        margin-top: 12px;
        justify-content: flex-start !important;
    }

    .bw-appointments-page .bw-appointments-primary-btn {
        width: 100%;
    }
}

.bw-service-drawer .bw-appt-customer-form-item .el-form-item__content {
    width: 100%;
}

.bw-service-drawer .bw-appt-form-row,
.bw-service-drawer .bw-service-form-row {
    width: 100%;
}

.bw-service-drawer .bw-appt-form-row > .el-col .el-form-item,
.bw-service-drawer .bw-service-form-row > .el-col .el-form-item {
    margin-bottom: 18px;
}

.bw-service-drawer .bw-service-form-row .bw-form-fields-control {
    width: 100%;
}

.bw-service-drawer .bw-appt-service-extra-row {
    width: 100%;
}

.bw-service-drawer .bw-appt-service-meeting-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-top: 6px;
}

.bw-service-drawer .bw-appt-service-meeting-actions:empty {
    display: none;
}

.bw-service-drawer .bw-appt-service-extra-row:not(:has(.bw-appt-add-extra-action)) .el-select.bw-appt-service-select {
    width: 100% !important;
}

.bw-service-drawer .el-form-item--label-top .el-form-item__label,
.bw-service-drawer .el-form-item--label-top .el-form-item__label-wrap > .el-form-item__label {
    margin-bottom: 4px;
    height: auto;
    line-height: 1.35;
    padding: 0;
}

.bw-service-drawer .bw-appt-customer-select-row {
    width: 100%;
    flex-wrap: nowrap;
}

.bw-service-drawer .bw-appt-customer-select-row > .el-col {
    display: flex;
    align-items: stretch;
}

.bw-service-drawer .bw-appt-customer-select {
    width: 100%;
}

/* Match Status / other default drawer selects (--el-component-size: 32px) */
.bw-service-drawer .bw-appt-customer-select-row .bw-appt-customer-select .el-select__wrapper {
    min-height: 32px !important;
    height: 32px !important;
    box-sizing: border-box !important;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 30px;
}

.bw-service-drawer .bw-appt-customer-select-row .bw-appt-customer-select .el-select__selected-item,
.bw-service-drawer .bw-appt-customer-select-row .bw-appt-customer-select .el-select__placeholder {
    line-height: 30px;
}

.bw-service-drawer .bw-appt-customer-add-btn.el-button {
    white-space: nowrap;
    min-height: 32px;
    height: 32px;
    padding-top: 0;
    padding-bottom: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bw-service-drawer .bw-appt-customer-hidden-fields {
    display: none;
}

.bw-service-drawer .bw-appt-custom-fields-grid {
    display: flex;
    flex-wrap: wrap;
    column-gap: 16px;
    row-gap: 0;
    width: 100%;
    margin-bottom: 4px;
}

.bw-service-drawer .bw-appt-custom-field-item {
    box-sizing: border-box;
    min-width: 0;
}

.bw-service-drawer .bw-appt-custom-field-item.bw-field-width-full {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
}

.bw-service-drawer .bw-appt-custom-field-item.bw-field-width-half {
    flex: 0 0 calc(50% - 8px);
    width: calc(50% - 8px);
    max-width: calc(50% - 8px);
}

.bw-service-drawer .bw-appt-custom-field-item .el-form-item {
    margin-bottom: 18px;
}

@media (max-width: 767px) {
    .bw-service-drawer .bw-appt-custom-field-item.bw-field-width-half {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

.bw-appt-summary-block {
    margin: 16px 0 0;
}

.bw-appt-payment-breakdown {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    padding: 12px 14px;
}

.bw-appt-payment-breakdown__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    font-size: 13px;
    color: #4b5563;
}

.bw-appt-payment-breakdown__row + .bw-appt-payment-breakdown__row {
    border-top: 1px solid #f1f5f9;
}

.bw-appt-payment-breakdown__row--total {
    margin-top: 4px;
    padding-top: 10px;
    font-size: 14px;
    color: #111827;
}

.bw-appt-payment-breakdown__row--total strong {
    color: #16a34a;
}

.bw-appt-customer-option {
    line-height: 1.35;
    padding: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bw-appt-customer-option-name {
    font-weight: 600;
    color: #5700B4;
}

.bw-appt-customer-option-email {
    font-weight: 400;
    color: #777;
}

.bw-appt-customer-option-meta {
    font-size: 12px;
    color: #777;
}

#bookwellab_root_app .bw-admin-list-pagination,
.bw-appointments-page .bw-admin-list-pagination,
.bw-customers-page .bw-admin-list-pagination {
    margin-top: 16px;
    padding: 8px 4px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

#bookwellab_root_app .bw-admin-list-pagination .el-pagination.is-background .el-pager li.is-active {
    background-color: #5700B4 !important;
    color: #ffffff !important;
    border-radius: 8px;
}

#bookwellab_root_app .bw-admin-list-pagination .el-pagination.is-background .el-pager li:not(.is-active):not(.more):hover {
    color: #5700B4;
}

#bookwellab_root_app .bw-admin-list-pagination .el-pagination.is-background .el-pager li.more {
    background-color: transparent !important;
    color: #606266 !important;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: default;
}

#bookwellab_root_app .bw-admin-list-pagination .el-pagination.is-background .el-pager li.more.btn-quicknext,
#bookwellab_root_app .bw-admin-list-pagination .el-pagination.is-background .el-pager li.more.btn-quickprev {
    cursor: pointer;
}

#bookwellab_root_app .bw-admin-list-pagination .el-pagination.is-background .el-pager li.more.btn-quicknext:hover,
#bookwellab_root_app .bw-admin-list-pagination .el-pagination.is-background .el-pager li.more.btn-quickprev:hover {
    color: #5700B4 !important;
}

#bookwellab_root_app .bw-admin-list-pagination .el-pagination.is-background .btn-next,
#bookwellab_root_app .bw-admin-list-pagination .el-pagination.is-background .btn-prev {
    border-radius: 8px;
}

/* -------------------------------------------------------------------------
   Customers admin (Manage Customers) — same visual language as Services
   Scoped to .bw-customers-page only (wp-admin; does not load on frontend)
   ------------------------------------------------------------------------- */
.bw-customers-page {
    background: #f7f2fc;
    border-radius: 12px;
    padding: 16px 14px 22px !important;
}

.bw-customers-page .container {
    padding: 0;
}

.bw-customers-page .bw-admin-page-container {
    background: transparent;
    min-height: auto;
}

.bw-customers-page .bw-card {
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    background: transparent !important;
}

.bw-customers-page .bw-card .el-card__body {
    padding: 14px 10px !important;
}

.bw-customers-page .bw-customers-filter-card .el-card__body {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding-top: 8px !important;
    padding-bottom: 12px !important;
}

.bw-customers-page .bw-customers-header-card {
    margin-bottom: 14px;
}

.bw-customers-page .bw-customers-filter-card {
    margin-bottom: 10px;
}

.bw-customers-page .bw-admin-head h3 {
    font-size: 22px !important;
    line-height: 1.25;
    font-weight: 600;
    color: #111827 !important;
}

.bw-customers-page .bw-customers-primary-btn.el-button {
    border-radius: 10px;
    border-color: #5700B4 !important;
    background: #5700B4 !important;
    color: #ffffff !important;
    min-height: 40px;
    padding: 10px 22px !important;
    font-weight: 600;
}

.bw-customers-page .bw-customers-primary-btn.el-button:hover,
.bw-customers-page .bw-customers-primary-btn.el-button:focus {
    border-color: #4b0099 !important;
    background: #4b0099 !important;
}

.bw-customers-page .bw-customers-reset-btn.el-button {
    border-radius: 10px;
    border: 1px solid #d4c4eb !important;
    color: #5700B4 !important;
    background: rgba(255, 255, 255, 0.55) !important;
    min-height: 40px;
    padding: 10px 22px !important;
    font-weight: 600;
}

.bw-customers-page .bw-customers-reset-btn.el-button:hover,
.bw-customers-page .bw-customers-reset-btn.el-button:focus {
    border-color: #c4b5fd !important;
    background: rgba(255, 255, 255, 0.85) !important;
    color: #4b0099 !important;
}

.bw-customers-page .bw-customers-apply-btn.el-button {
    border-radius: 10px;
    border-color: #5700B4 !important;
    background: #5700B4 !important;
    color: #ffffff !important;
    min-height: 40px;
    padding: 10px 24px !important;
    font-weight: 600;
}

.bw-customers-page .bw-customers-apply-btn.el-button:hover,
.bw-customers-page .bw-customers-apply-btn.el-button:focus {
    border-color: #4b0099 !important;
    background: #4b0099 !important;
}

.bw-customers-page .bw-customers-filter-row.el-row {
    display: flex !important;
    align-items: stretch !important;
    flex-wrap: wrap;
}

.bw-customers-page .bw-customers-filter-row>.el-col {
    display: flex !important;
    flex-direction: column !important;
}

.bw-customers-page .bw-customers-filter-row .bw-form-element {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 0;
}

.bw-customers-page .bw-customers-filter-row .bw-form-element label.el-form-item__label {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: left !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box;
}

/* Match table column headers (Full Name, Email, …) */
.bw-customers-page .bw-page-filter .bw-element-label {
    color: #4b5563 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: left !important;
}

.bw-customers-page .bw-customers-filter-row .bw-element-btn-group-col {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    align-items: flex-end !important;
    margin-left: auto !important;
}

@media (max-width: 991px) {
    .bw-customers-page .bw-customers-filter-row .bw-element-btn-group-col {
        margin-left: 0 !important;
        align-items: stretch !important;
    }

    .bw-customers-page .bw-customers-filter-row .bw-element-btn-group {
        width: 100%;
        justify-content: flex-end;
    }
}

.bw-customers-page .bw-customers-filter-row .bw-element-btn-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
    max-width: 100%;
}

.bw-customers-page .bw-customers-filter-row .bw-customers-reset-btn.el-button,
.bw-customers-page .bw-customers-filter-row .bw-customers-apply-btn.el-button {
    min-height: 44px !important;
    height: 44px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

.bw-customers-page .bw-customers-filter-row .el-input .el-input__wrapper {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 10px;
    box-shadow: 0 0 0 1px #eceff4 inset !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.bw-customers-page .bw-customers-filter-row .bw-form-control.el-input {
    width: 100%;
}

.bw-customers-page .bw-customers-filter-row .el-input .el-input__wrapper:hover {
    box-shadow: 0 0 0 1px #d1d5db inset !important;
}

.bw-customers-page .bw-customers-table-wrap {
    padding: 0;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table {
    border-radius: 14px;
    overflow: hidden;
    background: transparent !important;
    --el-table-border-color: transparent;
    --el-table-row-hover-bg-color: #ffffff;
    --el-table-header-bg-color: #f7f2fc;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table::before {
    display: none;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-table__header-wrapper th {
    background: #f7f2fc;
    color: #4b5563;
    font-weight: 600;
    border-bottom-color: #e8dff5 !important;
    height: 54px !important;
    font-size: 14px;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-table__header-wrapper {
    background: #f7f2fc;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-table__header-wrapper tr th.el-table__fixed-right-patch,
.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-table__header-wrapper tr td.el-table__fixed-right-patch {
    background: #f7f2fc !important;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table thead th.el-table-fixed-column--right,
.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-table__fixed-right .el-table__header-wrapper th.el-table__cell {
    background-color: #f7f2fc !important;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-table__fixed-right {
    border-radius: 0 !important;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-table__body-wrapper {
    background: #f7f2fc;
    padding: 6px 0 10px;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-table__row td {
    background: #ffffff;
    border-bottom: 10px solid #f7f2fc !important;
    border-top: 0 !important;
    font-size: 14px;
    color: #374151;
    height: auto !important;
    min-height: 72px;
    vertical-align: middle;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-table__body-wrapper .el-table__row td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-table__fixed-right .el-table__body-wrapper .el-table__row td.el-table__cell {
    background: #ffffff !important;
    border-bottom: 10px solid #f7f2fc !important;
    border-top: 0 !important;
    min-height: 72px;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table td.el-table__cell:has(.el-button.is-circle) .cell {
    overflow: visible;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .bw-customer-name {
    font-weight: 600;
    color: #111827;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-button.el-button--primary.is-circle {
    background: #5700B4;
    border-color: #5700B4;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-button.el-button--danger.is-circle {
    background: #ff6b6b;
    border-color: #ff6b6b;
}

.bw-customers-page .bw-customers-table-wrap .bw-custom-table .el-button.is-circle {
    width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    padding: 6px !important;
}

/* Customers mobile list */
.bw-customers-page .bw-customers-mobile-list {
    display: none;
}

.bw-customers-page .bw-customer-mobile-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.06);
}

.bw-customers-page .bw-customer-mobile-card-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0ebf7;
}

.bw-customers-page .bw-customer-mobile-head-left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.bw-customers-page .bw-customer-mobile-name {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #5700B4;
    line-height: 1.35;
    word-break: break-word;
}

.bw-customers-page .bw-customer-mobile-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.bw-customers-page .bw-customer-mobile-block {
    margin-bottom: 12px;
}

.bw-customers-page .bw-customer-mobile-block:last-child {
    margin-bottom: 0;
}

.bw-customers-page .bw-customer-mobile-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 4px;
}

.bw-customers-page .bw-customer-mobile-value {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.45;
    word-break: break-word;
}

.bw-customers-page .bw-customer-mobile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.bw-customers-page .bw-customer-mobile-empty {
    text-align: center;
    padding: 28px 16px;
    color: #6b7280;
    background: #ffffff;
    border-radius: 14px;
    margin-bottom: 12px;
}

@media (max-width: 782px) {
    .bw-customers-page .bw-customers-filter-row > .el-col {
        margin-bottom: 18px;
    }

    .bw-customers-page .bw-customers-filter-row > .el-col:last-child {
        margin-bottom: 0;
    }

    .bw-customers-page .bw-customers-filter-row .bw-form-element {
        justify-content: flex-start;
    }

    .bw-customers-page .bw-customers-filter-row .bw-form-element label.el-form-item__label {
        padding-top: 0 !important;
        padding-bottom: 8px !important;
        margin-bottom: 0;
    }

    .bw-customers-page .bw-customers-filter-row .bw-element-btn-group-col {
        margin-top: 4px;
    }

    .bw-customers-page .bw-customers-filter-row .bw-element-btn-group {
        justify-content: stretch;
        gap: 10px;
        width: 100%;
    }

    .bw-customers-page .bw-customers-filter-row .bw-element-btn-group .el-button {
        flex: 1 1 0;
    }

    .bw-customers-page .bw-customers-mobile-list {
        display: block;
    }

    .bw-customers-page .bw-customers-desktop-table {
        display: none !important;
    }

    .bw-customers-page .bw-admin-head .bw-right-align {
        margin-top: 12px;
        justify-content: flex-start !important;
    }

    .bw-customers-page .bw-customers-primary-btn {
        width: 100%;
    }
}

/* Add/Edit dialog (teleported to body — hook via dialog class) */
.bw-customers-dialog .el-button--primary {
    background-color: #5700B4 !important;
    border-color: #5700B4 !important;
}

.bw-customers-dialog .el-button--primary:hover,
.bw-customers-dialog .el-button--primary:focus {
    background-color: #4b0099 !important;
    border-color: #4b0099 !important;
}

.bw-customers-dialog .bw-phone-wrapper .iti {
    width: 100%;
}

.bw-customers-dialog .bw-phone-wrapper .el-input__inner {
    /* Reserve room for flag + separate dial code to prevent overlap with typed number */
    padding-left: 92px !important;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    height: 40px;
    line-height: 40px;
    box-sizing: border-box;
}

.bw-customers-dialog .bw-phone-wrapper .iti--separate-dial-code .el-input__inner {
    padding-left: 92px !important;
}

.bw-customers-dialog .bw-phone-wrapper .el-input__inner:focus {
    border-color: #5700B4;
    outline: none;
}

.bw-customers-dialog .bw-customer-dialog-form .el-form-item {
    margin-bottom: 18px;
}

.bw-customers-dialog .bw-customer-dialog-form .el-form-item__label {
    padding-bottom: 6px;
    line-height: 1.35;
    font-weight: 500;
}

.bw-customers-dialog .bw-customer-dialog-footer {
    width: 100%;
}

@media (max-width: 782px) {
    body.bookwellab-admin-page .el-overlay-dialog:has(.bw-customers-dialog),
    body.bookwellab-admin-page .el-overlay:has(.bw-customers-dialog) {
        padding: 0 !important;
    }

    body.bookwellab-admin-page .bw-customers-dialog.el-dialog {
        --el-dialog-width: 100%;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
    }

    body.bookwellab-admin-page .bw-customers-dialog .el-dialog__header {
        flex-shrink: 0;
        padding: 16px 16px 12px;
        margin-right: 0;
        border-bottom: 1px solid #f0ebf7;
    }

    body.bookwellab-admin-page .bw-customers-dialog .el-dialog__title {
        font-size: 18px;
        font-weight: 600;
        color: #111827;
        line-height: 1.35;
    }

    body.bookwellab-admin-page .bw-customers-dialog .el-dialog__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 16px;
    }

    body.bookwellab-admin-page .bw-customers-dialog .el-dialog__footer {
        flex-shrink: 0;
        padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid #f0ebf7;
        background: #fff;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    }

    body.bookwellab-admin-page .bw-customers-dialog .bw-customer-dialog-footer {
        display: flex;
        gap: 10px;
    }

    body.bookwellab-admin-page .bw-customers-dialog .bw-customer-dialog-footer .el-button {
        flex: 1 1 0;
        margin: 0;
    }

    body.bookwellab-admin-page .bw-customers-dialog .bw-customer-name-row > .el-col:first-child {
        margin-bottom: 0;
    }

    body.bookwellab-admin-page .bw-customers-dialog .bw-customer-name-row > .el-col + .el-col {
        margin-top: 0;
    }

    body.bookwellab-admin-page .bw-customers-dialog .bw-customer-dialog-form .el-form-item {
        margin-bottom: 16px;
    }

    body.bookwellab-admin-page .bw-customers-dialog .bw-phone-wrapper .el-input__inner {
        height: 44px;
        line-height: 44px;
        font-size: 16px;
    }
}

.bw-service-drawer .bw-phone-wrapper .iti {
    width: 100%;
}

.bw-service-drawer .bw-phone-wrapper .el-input__inner {
    padding-left: 92px !important;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    height: 40px;
    line-height: 40px;
    box-sizing: border-box;
}

.bw-service-drawer .bw-phone-wrapper .iti--separate-dial-code .el-input__inner {
    padding-left: 92px !important;
}

.bw-service-drawer .bw-phone-wrapper .el-input__inner:focus {
    border-color: #5700B4;
    outline: none;
}

/* -------------------------------------------------------------------------
   Notifications admin — scoped to .bw-notifications-page only
   ------------------------------------------------------------------------- */
.bw-notifications-page {
    background: #f7f2fc;
    border-radius: 12px;
    padding: 16px 14px 22px !important;
}

.bw-notifications-page .container {
    padding: 0;
}

.bw-notifications-page .bw-admin-page-container {
    background: transparent;
    min-height: auto;
}

.bw-notifications-page .bw-card {
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    background: transparent !important;
}

.bw-notifications-page .bw-card .el-card__body {
    padding: 14px 10px !important;
}

.bw-notifications-page .bw-notifications-header-card {
    margin-bottom: 14px;
}

.bw-notifications-page .bw-admin-head h3 {
    font-size: 22px !important;
    line-height: 1.25;
    font-weight: 600;
    color: #111827 !important;
}

.bw-notifications-page .bw-notifications-subtitle {
    margin: 6px 0 0 0 !important;
    font-size: 14px !important;
    color: #6b7280 !important;
    line-height: 1.45;
}

.bw-notifications-page .bw-notifications-save-btn.el-button--primary {
    border-radius: 10px;
    border-color: #5700B4 !important;
    background: #5700B4 !important;
    color: #ffffff !important;
    min-height: 44px;
    padding: 10px 24px !important;
    font-weight: 600;
}

.bw-notifications-page .bw-notifications-save-btn.el-button--primary:hover,
.bw-notifications-page .bw-notifications-save-btn.el-button--primary:focus {
    border-color: #4b0099 !important;
    background: #4b0099 !important;
}

.bw-notifications-page .bw-notifications-main-card {
    background: #ffffff !important;
    border: 1px solid #e8dff5 !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 28px rgba(87, 0, 180, 0.07) !important;
}

.bw-notifications-page .bw-notifications-main-card .el-card__body {
    padding: 0 !important;
    position: relative;
    border-radius: 14px;
    overflow: hidden;
}

.bw-notifications-page .bw-notification-wrapper {
    display: flex;
    align-items: stretch;
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    min-height: 520px;
    overflow: visible;
}

.bw-notifications-page .bw-notifications-sidebar {
    flex: 0 0 240px;
    width: 240px;
    box-sizing: border-box;
    padding: 16px 12px;
    background: #ebe4f4;
    border-right: 1px solid #e8dff5;
}

.bw-notifications-page .bw-notifications-sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #4a4458;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.bw-notifications-page .bw-notifications-sidebar-item:last-child {
    margin-bottom: 0;
}

.bw-notifications-page .bw-notifications-sidebar-dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5700B4;
    opacity: 0.55;
}

.bw-notifications-page .bw-notifications-sidebar-item:hover {
    background: rgba(87, 0, 180, 0.08);
    color: #5700B4;
}

.bw-notifications-page .bw-notifications-sidebar-item.is-active {
    background: #5700B4;
    color: #ffffff;
    font-weight: 600;
}

.bw-notifications-page .bw-notifications-sidebar-item.is-active .bw-notifications-sidebar-dot {
    background: #ffffff;
    opacity: 1;
}

.bw-notifications-page .bw-notifications-content {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    padding: 24px 26px 28px;
    box-sizing: border-box;
}

.bw-notifications-page .bw-notifications-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.bw-notifications-page .bw-notifications-sub-tabs {
    margin-top: 0;
}

/* Primary purple tab indicator */
.bw-notifications-page .bw-notifications-tabs .el-tabs__active-bar {
    background-color: #5700B4 !important;
    height: 3px !important;
    border-radius: 3px 3px 0 0;
}

.bw-notifications-page .bw-notifications-tabs .el-tabs__item {
    font-weight: 500;
    color: #6b7280;
}

.bw-notifications-page .bw-notifications-tabs .el-tabs__item.is-active {
    color: #5700B4;
    font-weight: 600;
}

.bw-notifications-page .bw-notifications-tabs .el-tabs__nav-wrap::after {
    background-color: #e5e7eb;
    height: 1px;
}

.bw-notifications-page .bw-notifications-sub-tabs .el-tabs__item {
    font-size: 14px;
    padding: 0 20px;
    height: 44px;
    line-height: 44px;
}

/* Enable notification row — lavender panel + purple border */
.bw-notifications-page .bw-control-group {
    background: #ebe4f4;
    border: 1px solid #d4c4eb;
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.bw-notifications-page .bw-control-group.bw-flex-between {
    align-items: center;
}

.bw-notifications-page .bw-control-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}

.bw-notifications-page .bw-control-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}

.bw-notifications-page .bw-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
}

.bw-notifications-page .bw-help-text {
    font-size: 13px;
    color: #6b7280;
    margin-top: 8px;
}

.bw-notifications-page .bw-notifications-form-block {
    margin-top: 24px;
}

.bw-notifications-page .bw-form-group {
    margin-bottom: 22px;
}

.bw-notifications-page .bw-notifications-content .el-input__wrapper,
.bw-notifications-page .bw-notifications-content .el-textarea__inner {
    border-radius: 10px;
    min-height: 44px;
}

.bw-notifications-page .bw-notifications-content .el-textarea__inner {
    min-height: 120px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.bw-notifications-page .el-switch {
    --el-switch-on-color: #5700B4;
}

/* Placeholders footer — lavender + dashed purple border */
.bw-notifications-page .bw-notifications-placeholders {
    background: #f5f0ff;
    border: 1px dashed #a78bfa;
    border-radius: 10px;
    padding: 18px 18px 16px;
    margin-top: 8px;
}

.bw-notifications-page .bw-notifications-placeholders .bw-placeholders-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    letter-spacing: 0.06em;
    margin-bottom: 14px;
}

.bw-notifications-page .bw-notifications-placeholders .bw-tag-item {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #93c5fd;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    padding: 7px 14px;
}

.bw-notifications-page .bw-notifications-placeholders .bw-tag-item:hover {
    background: #dbeafe;
    border-color: #60a5fa;
    color: #1d4ed8;
}

@media (max-width: 900px) {
    .bw-notifications-page .bw-notification-wrapper {
        flex-direction: column;
        min-height: 0;
    }

    .bw-notifications-page .bw-notifications-sidebar {
        flex: 0 0 auto;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #e8dff5;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px;
    }

    .bw-notifications-page .bw-notifications-sidebar-item {
        flex: 1 1 auto;
        width: auto;
        margin: 0;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .bw-notifications-page .bw-notifications-content {
        padding: 18px 16px 22px;
    }

    .bw-notifications-page .bw-right-align {
        margin-top: 12px;
        justify-content: flex-start !important;
    }
}

.bw-settings-section-title {
    margin: 0 0 8px;
    font-size: 18px;
    color: var(--bw-title-color);
}

.bw-helper-text {
    display: block;
    margin: 6px 0 0;
    padding: 0;
    font-size: 12px !important;
    line-height: 1.45;
    font-weight: 400;
    color: #909399 !important;
}

.book-now-adm--container-settings .el-form-item .bw-helper-text,
.book-now-adm--container-settings p.bw-helper-text {
    margin-top: 6px;
}

.bw-settings-subsection-title {
    margin: 20px 0 12px;
    font-size: 15px;
    color: var(--bw-title-color);
}

.bw-appearance-form-type {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bw-appearance-form-type .el-radio {
    margin-right: 0 !important;
    height: auto;
    padding: 12px 16px;
    white-space: normal;
}

.bw-appearance-form-type-grid {
    margin-bottom: 12px;
    max-width: 460px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.bw-appearance-form-type-card {
    cursor: pointer;
    height: 100%;
}

.bw-appearance-form-type-grid .bw-appearance-theme-preview,
.bw-appearance-form-type-grid .bw-appearance-form-preview {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    box-sizing: border-box;
}

.bw-appearance-form-preview--wizard {
    display: flex;
    flex-direction: row;
}

.bw-appearance-form-preview--catalog {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: var(--bw-theme-panel, #F8F4F8);
}

.bw-appearance-form-preview-chips {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.bw-appearance-form-preview-chips span {
    display: block;
    height: 8px;
    width: 28px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.12);
}

.bw-appearance-form-preview-chips span.is-active {
    background: var(--bw-theme-primary, #044343);
}

.bw-appearance-form-preview-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

.bw-appearance-form-preview-card {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #fff;
    border-radius: 4px;
    padding: 3px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    min-width: 0;
    height: 100%;
    box-sizing: border-box;
}

.bw-appearance-form-preview-card-img {
    display: block;
    height: 28px;
    flex-shrink: 0;
    border-radius: 3px;
    background: color-mix(in srgb, var(--bw-theme-primary, #044343) 18%, #ffffff);
}

.bw-appearance-form-preview-card-title {
    display: block;
    height: 4px;
    width: 70%;
    border-radius: 2px;
    background: var(--bw-theme-primary, #044343);
}

.bw-appearance-form-preview-card-meta {
    display: block;
    height: 3px;
    width: 90%;
    border-radius: 2px;
    background: var(--bw-theme-accent, #64748b);
    opacity: 0.35;
}

.bw-appearance-form-preview-card-btn {
    display: block;
    height: 6px;
    width: 100%;
    margin-top: auto;
    border-radius: 2px;
    background: var(--bw-theme-primary, #044343);
}

@media (max-width: 782px) {
    .bw-appearance-form-type-grid {
        max-width: none;
        grid-template-columns: 1fr;
    }
}

.bw-appearance-theme-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.bw-appearance-theme-grid:not(.bw-appearance-form-type-grid) {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bw-appearance-theme-grid-extra {
    margin-bottom: 28px;
}

@media (max-width: 1400px) {
    .bw-appearance-theme-grid:not(.bw-appearance-form-type-grid) {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 12px;
    }
}

@media (max-width: 1100px) {
    .bw-appearance-theme-grid:not(.bw-appearance-form-type-grid) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 782px) {
    .bw-appearance-theme-grid:not(.bw-appearance-form-type-grid) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.bw-paypal-currency-alert {
    margin: 0 0 18px;
}

.bw-appearance-theme-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--bw-border-color);
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bw-appearance-theme-card.is-active {
    border-color: var(--el-color-primary, #7c3aed);
    box-shadow: 0 0 0 1px var(--el-color-primary, #7c3aed);
}

.bw-appearance-theme-preview {
    display: flex;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 12px;
    background: var(--bw-theme-panel, #F8F4F8);
}

.bw-appearance-theme-preview-sidebar {
    flex: 0 0 32%;
    background: var(--bw-theme-sidebar, #044343);
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bw-appearance-theme-preview-sidebar span {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.85);
}

.bw-appearance-theme-preview-sidebar span:nth-child(2) {
    opacity: 0.65;
    width: 80%;
}

.bw-appearance-theme-preview-sidebar span:nth-child(3) {
    opacity: 0.45;
    width: 60%;
}

.bw-appearance-theme-preview-main {
    flex: 1 1 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bw-theme-panel, #F8F4F8);
}

.bw-appearance-theme-preview-title {
    display: block;
    height: 8px;
    width: 55%;
    border-radius: 4px;
    background: var(--bw-theme-primary, #044343);
}

.bw-appearance-theme-preview-line {
    display: block;
    height: 5px;
    width: 90%;
    border-radius: 3px;
    background: var(--bw-theme-accent, #64748b);
    opacity: 0.35;
}

.bw-appearance-theme-preview-line.short {
    width: 65%;
}

.bw-appearance-theme-preview-btn {
    display: block;
    height: 10px;
    width: 42%;
    margin-top: auto;
    border-radius: 4px;
    background: var(--bw-theme-primary, #044343);
}

.bw-appearance-theme-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--bw-title-color);
    text-align: center;
    margin-bottom: 10px;
    line-height: 1.3;
}

.bw-appearance-theme-apply {
    width: 100%;
}

.bw-appearance-settings-collapse,
.bw-settings-collapse {
    margin-top: 16px;
    border: 1px solid var(--bw-border-color);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.bw-settings-collapse {
    margin-top: 0;
}

.bw-appearance-settings-collapse .el-collapse-item__header,
.bw-settings-collapse .el-collapse-item__header {
    font-size: 15px;
    font-weight: 600;
    color: var(--bw-title-color);
    height: auto;
    min-height: 52px;
    line-height: 1.4;
    padding: 16px 20px;
    box-sizing: border-box;
    border-bottom: 1px solid var(--bw-border-color);
    background: #fafafa;
}

.bw-appearance-settings-collapse .el-collapse-item.is-active > .el-collapse-item__header,
.bw-settings-collapse .el-collapse-item.is-active > .el-collapse-item__header {
    border-bottom: 1px solid var(--bw-border-color);
}

.bw-appearance-settings-collapse .el-collapse-item__wrap,
.bw-settings-collapse .el-collapse-item__wrap {
    border-bottom: none;
}

.bw-appearance-settings-collapse .el-collapse-item__content,
.bw-settings-collapse .el-collapse-item__content {
    padding: 20px 20px 12px;
    box-sizing: border-box;
}

.bw-debug-log-gateway {
    padding: 14px 0;
    border-bottom: 1px solid var(--bw-border-color);
}

.bw-debug-log-gateway:last-child {
    border-bottom: 0;
}

/* Payment Gateways: boxed sections */
.book-now-adm--container-settings .bw-payment-gateways-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.book-now-adm--container-settings .bw-payment-gateway-box {
    background: #ffffff;
    border: 1px solid #e8e0f2;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 3px rgba(87, 0, 180, 0.05);
}

.book-now-adm--container-settings .bw-payment-gateway-box .bw-settings-toggle-row {
    margin-bottom: 0;
}

.book-now-adm--container-settings .bw-payment-gateway-box .bw-settings-toggle-row + .el-form-item,
.book-now-adm--container-settings .bw-payment-gateway-box .bw-settings-toggle-row + .bw-paypal-currency-alert,
.book-now-adm--container-settings .bw-payment-gateway-box .bw-settings-toggle-row + .el-alert {
    margin-top: 16px;
}

.book-now-adm--container-settings .bw-payment-gateway-box .el-form-item:last-child {
    margin-bottom: 0;
}

.book-now-adm--container-settings .bw-payment-gateway-box .bw-paypal-currency-alert {
    margin-bottom: 12px;
}

.book-now-adm--container-settings .bw-wc-status-rules-box .bw-settings-toggle-row {
    margin-bottom: 4px;
}

.book-now-adm--container-settings .bw-wc-status-rules-box > .bw-helper-text {
    margin: 0 0 16px;
}

.book-now-adm--container-settings .bw-wc-status-rule-row {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #eee6f7;
    border-radius: 8px;
    background: #faf8fc;
}

.book-now-adm--container-settings .bw-wc-status-rule-row:last-of-type {
    margin-bottom: 16px;
}

.book-now-adm--container-settings .bw-wc-status-rule-row .el-form-item {
    margin-bottom: 0;
}

.book-now-adm--container-settings .bw-wc-status-rule-actions {
    display: flex;
    align-items: flex-end;
}

.book-now-adm--container-settings .bw-wc-status-rules-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bw-debug-log-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 4px;
}

.bw-debug-log-download {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bw-debug-log-download-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.bw-debug-log-download-head .bw-helper-text {
    margin: 0;
    flex: 1 1 auto;
    padding-right: 4px;
    line-height: 1.4;
}

.bw-debug-log-download-close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: -2px -2px 0 0;
    padding: 0;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #909399;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.bw-debug-log-download-close:hover {
    color: #303133;
    background: rgba(0, 0, 0, 0.06);
}

body.wp-admin .bw-debug-log-download-popover.el-popover.el-popper {
    z-index: 100100 !important;
    min-width: 280px;
    max-width: min(320px, calc(100vw - 200px));
    box-sizing: border-box;
    padding: 12px 12px 14px;
}

.bw-debug-log-duration-select {
    width: 100%;
    margin-bottom: 12px;
}

.bw-debug-log-download-dates {
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
}

.bw-debug-log-download-popover .bw-debug-log-download-dates.el-date-editor--daterange {
    --el-date-editor-width: 100%;
    --el-date-editor-daterange-width: 100%;
    width: 100% !important;
    box-sizing: border-box;
}

.bw-debug-log-download-popover .bw-debug-log-download-dates .el-range-input {
    width: 36%;
    min-width: 0;
    font-size: 13px;
}

.bw-debug-log-download-popover .bw-debug-log-download-dates .el-range-separator {
    flex: 0 0 auto;
    padding: 0 4px;
    font-size: 13px;
    line-height: 1;
}

body.wp-admin .bw-debug-log-download-popover--custom.el-popover.el-popper {
    min-width: 360px;
    max-width: min(380px, calc(100vw - 200px));
}

.bw-debug-log-download-btn {
    width: 100%;
}

body.wp-admin .bw-debug-log-download-select.el-select__popper,
body.wp-admin .bw-debug-log-download-picker.el-picker__popper {
    z-index: 100101 !important;
}

body.bookwellab-admin-page.folded .bw-debug-log-download-popover.el-popover.el-popper {
    max-width: min(320px, calc(100vw - 76px));
}

body.wp-admin .bw-debug-log-clear-popconfirm.el-popover.el-popper {
    z-index: 100100 !important;
    min-width: 300px;
    max-width: min(320px, calc(100vw - 200px));
    box-sizing: border-box;
}

body.wp-admin .bw-debug-log-clear-popconfirm .el-popconfirm__main {
    align-items: flex-start;
}

body.wp-admin .bw-debug-log-clear-popconfirm .el-popconfirm__icon {
    margin-top: 2px;
}

.bw-debug-log-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 0;
    width: 100%;
}

/* Debug log modal: keep clear of WP admin sidebar on the left */
body.bookwellab-admin-page .el-overlay:has(.bw-debug-log-dialog),
body.bookwellab-admin-page .el-overlay-dialog:has(.bw-debug-log-dialog) {
    padding: 5vh 32px 32px;
    padding-left: max(32px, calc(160px + 40px));
    box-sizing: border-box;
}

body.bookwellab-admin-page.folded .el-overlay:has(.bw-debug-log-dialog),
body.bookwellab-admin-page.folded .el-overlay-dialog:has(.bw-debug-log-dialog) {
    padding-left: max(32px, calc(36px + 40px));
}

body.bookwellab-admin-page .bw-debug-log-dialog.el-dialog {
    width: 100% !important;
    max-width: 1080px;
    max-height: 80vh;
    margin: 0 auto !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.bookwellab-admin-page .bw-debug-log-dialog .el-dialog__header {
    flex: 0 0 auto;
    padding: 18px 24px 12px;
    margin-right: 0;
}

body.bookwellab-admin-page .bw-debug-log-dialog .el-dialog__body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px 24px;
    overflow-y: auto;
}

body.bookwellab-admin-page .bw-debug-log-dialog .el-dialog__footer {
    flex: 0 0 auto;
    padding: 12px 24px 18px;
    border-top: 1px solid #ebeef5;
}

body.bookwellab-admin-page .bw-debug-log-dialog .bw-debug-log-table .el-table__cell {
    vertical-align: top;
}

body.bookwellab-admin-page .bw-debug-log-dialog .bw-debug-log-data {
    max-height: 160px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.45;
    padding: 2px 0;
    color: #303133;
}

body.rtl.bookwellab-admin-page .el-overlay:has(.bw-debug-log-dialog),
body.rtl.bookwellab-admin-page .el-overlay-dialog:has(.bw-debug-log-dialog) {
    padding-left: 32px;
    padding-right: max(32px, calc(160px + 40px));
}

body.rtl.bookwellab-admin-page.folded .el-overlay:has(.bw-debug-log-dialog),
body.rtl.bookwellab-admin-page.folded .el-overlay-dialog:has(.bw-debug-log-dialog) {
    padding-right: max(32px, calc(36px + 40px));
}

@media (max-width: 782px) {
    body.bookwellab-admin-page .el-overlay:has(.bw-debug-log-dialog),
    body.bookwellab-admin-page .el-overlay-dialog:has(.bw-debug-log-dialog) {
        padding: 0 !important;
    }

    body.bookwellab-admin-page .bw-debug-log-dialog.el-dialog {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    body.bookwellab-admin-page .bw-debug-log-dialog .el-dialog__body {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
    }
}