[v-cloak],
[v-cloak] * {
    display: none !important;
}

.bw-cp-app,
#bookwellab_customer_panel_app.bw-cp-app,
#bookwellab_customer_panel_app.bw-force-fullwidth {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    box-sizing: border-box;
    font-family: var(--bw-font-family, 'Poppins', Arial, Helvetica, sans-serif);
    color: var(--bw-content-text-color, #334155);
    font-size: var(--bw-content-text-size, 14px);
}

.bw-cp-app .bw-cp-shell {
    width: 100%;
    max-width: 100%;
}

.bw-cp-app *,
.bw-cp-app *::before,
.bw-cp-app *::after {
    box-sizing: border-box;
}

.bw-cp-login-card,
.bw-cp-shell {
    background: #fff;
    border: 1px solid var(--bw-border-color, #d4cdc9);
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.bw-cp-login-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px;
    text-align: center;
}

.bw-cp-login-card h3 {
    margin: 0 0 12px;
    color: var(--bw-title-color, #044343);
    font-size: var(--bw-section-title-size, 24px);
    font-weight: 600;
}

.bw-cp-login-card p {
    margin: 0 0 20px;
    color: var(--bw-content-text-color, #334155);
    font-size: var(--bw-content-text-size, 14px);
    line-height: 1.6;
}

.bw-cp-login-title {
    text-align: center;
}

.bw-cp-login-form {
    text-align: left;
    margin-top: 8px;
}

.bw-cp-login-form .el-form-item {
    margin-bottom: 18px;
}

.bw-cp-login-remember {
    margin-bottom: 20px;
}

.bw-cp-login-submit {
    width: 100%;
    height: 44px !important;
    font-size: var(--bw-content-text-size, 15px) !important;
}

.bw-cp-login-lost {
    display: block;
    text-align: center;
    margin-top: 16px;
    color: var(--bw-detail-color, #64748b);
    font-size: var(--bw-content-text-size, 14px);
    text-decoration: none;
    font-weight: 600;
}

.bw-cp-login-lost:hover {
    color: var(--bw-primary-color, #044343);
}

.bw-cp-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 620px;
}

.bw-cp-topbar {
    display: none;
}

.bw-cp-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--bw-primary-color, #044343);
    padding: 24px 14px 20px;
    color: var(--bw-sidebar-text-color, #fff);
}

.bw-cp-profile {
    text-align: center;
    margin-bottom: 24px;
}

.bw-cp-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    color: var(--bw-sidebar-title-color, #fff);
}

.bw-cp-profile-name {
    font-weight: 600;
    color: var(--bw-sidebar-title-color, #fff);
    font-size: var(--bw-sidebar-title-size, 16px);
}

.bw-cp-profile-email {
    color: var(--bw-sidebar-text-color, rgba(255, 255, 255, 0.85));
    font-size: var(--bw-sidebar-text-size, 12px);
    word-break: break-word;
    opacity: 0.9;
}

.bw-cp-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.bw-cp-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    border-radius: 6px;
    padding: 11px 12px;
    text-align: left;
    color: var(--bw-sidebar-text-color, #fff);
    cursor: pointer;
    text-decoration: none;
    font-size: var(--bw-sidebar-title-size, 16px);
    font-weight: 500;
    line-height: 1.4;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.bw-cp-nav-item:hover,
.bw-cp-nav-item.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--bw-sidebar-title-color, #fff);
}

.bw-cp-nav-logout {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.bw-cp-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.bw-cp-nav-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.bw-cp-main {
    padding: 28px 32px;
    background: var(--bw-panel-bg-color, #f7f3ed);
}

.bw-cp-title {
    margin: 0 0 20px;
    color: var(--bw-title-color, #044343);
    font-size: var(--bw-section-title-size, 24px);
    font-weight: 600;
    line-height: 1.3;
}

.bw-cp-filters {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    margin-bottom: 20px;
    align-items: center;
}

.bw-cp-filters .el-date-editor,
.bw-cp-filters .el-date-editor.el-range-editor,
.bw-cp-filters .el-input,
#bookwellab_customer_panel_app .bw-cp-filters .el-date-editor,
#bookwellab_customer_panel_app .bw-cp-filters .el-date-editor.el-range-editor,
#bookwellab_customer_panel_app .bw-cp-filters .el-input {
    width: 100% !important;
    min-width: 0;
}

.bw-cp-filters .el-button,
#bookwellab_customer_panel_app .bw-cp-filters .el-button {
    white-space: nowrap;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 20px !important;
    line-height: 38px;
}

.bw-cp-table-wrap {
    border: 1px solid var(--bw-border-color, #d4cdc9);
    border-radius: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #fff;
    min-height: 420px;
    position: relative;
}

.bw-cp-table {
    width: 100%;
    min-width: 760px;
}

.bw-cp-table-row {
    display: grid;
    grid-template-columns: 48px 90px minmax(120px, 1.2fr) minmax(160px, 1.6fr) minmax(110px, 0.9fr) minmax(100px, 0.8fr);
    align-items: center;
    width: 100%;
}

.bw-cp-table-row:not(.bw-cp-table-row--head) {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.bw-cp-table-row:not(.bw-cp-table-row--head):hover {
    background: rgba(var(--bw-primary-color-rgb, 4, 67, 67), 0.05);
}

.bw-cp-table-row--head {
    background: #fff;
    border-bottom: 1px solid var(--bw-border-color, #e5e7eb);
    font-weight: 600;
    color: var(--bw-title-color, #044343);
    font-size: var(--bw-content-text-size, 14px);
}

.bw-cp-table-row.is-striped:not(.is-expanded) {
    background: rgba(var(--bw-primary-color-rgb, 4, 67, 67), 0.03);
}

.bw-cp-table-row.is-expanded {
    background: rgba(var(--bw-primary-color-rgb, 4, 67, 67), 0.05);
}

.bw-cp-table-cell {
    padding: 12px 10px;
    min-width: 0;
    color: var(--bw-content-text-color, #334155);
    font-size: var(--bw-content-text-size, 14px);
}

.bw-cp-table-cell--toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 14px;
    padding-right: 0;
}

.bw-cp-expand-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.bw-cp-expand-icon::before {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--bw-detail-color, #64748b);
    border-bottom: 2px solid var(--bw-detail-color, #64748b);
    transform: rotate(-45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.bw-cp-expand-icon.is-open::before {
    transform: rotate(45deg);
    border-color: var(--bw-primary-color, #044343);
}

.bw-cp-table-expand {
    background: #fff;
    border-bottom: 1px solid var(--bw-border-color, #e5e7eb);
}

.bw-cp-table-expand:last-child {
    border-bottom: none;
}

.bw-cp-filters .el-input__wrapper,
.bw-cp-filters .el-range-editor.el-input__wrapper {
    border: 1px solid var(--bw-border-color, #d4cdc9) !important;
    box-shadow: none !important;
    background: #fff !important;
    min-height: 40px;
    border-radius: 4px;
}

.bw-cp-filters .el-input__wrapper.is-focus,
.bw-cp-filters .el-range-editor.el-input__wrapper.is-focus,
.bw-cp-filters .el-input__wrapper:hover,
.bw-cp-filters .el-range-editor.el-input__wrapper:hover {
    border-color: var(--bw-primary-color, #044343) !important;
}

.bw-cp-filters .el-input__inner,
.bw-cp-filters .el-range-input {
    color: var(--bw-content-text-color, #334155) !important;
    font-size: var(--bw-content-text-size, 14px) !important;
}

.bw-cp-col-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.bw-cp-col-head-sub {
    color: var(--bw-detail-color, #64748b);
    font-size: var(--bw-detail-font-size, 12px);
    font-weight: 500;
}

.bw-cp-service-name {
    color: var(--bw-content-text-color, #334155);
    font-size: var(--bw-content-text-size, 14px);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 4px;
}

.bw-cp-meeting-links-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.bw-cp-meeting-links-row:empty {
    display: none;
    margin-top: 0;
}

.bw-cp-zoom-link-wrap {
    margin-top: 2px;
}

.bw-cp-meeting-links-row .bw-cp-zoom-link-wrap {
    margin-top: 0;
}

.bw-cp-zoom-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    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-cp-zoom-icon-link:hover,
.bw-cp-zoom-icon-link:focus {
    color: #0B5CFF;
    background: rgba(45, 140, 255, 0.18);
    outline: none;
}

.bw-cp-zoom-icon {
    display: block;
    flex-shrink: 0;
}

.bw-cp-service-date {
    color: var(--bw-content-text-color, #334155);
    font-size: var(--bw-content-text-size, 14px);
    line-height: 1.4;
}

.bw-cp-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--bw-detail-color, #64748b);
    font-size: var(--bw-content-text-size, 14px);
    margin-top: 4px;
}

.bw-cp-duration-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: block;
}

.bw-cp-expand {
    padding: 20px 22px 22px;
}

.bw-cp-expand-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.bw-cp-expand-id {
    font-weight: 500;
    color: var(--bw-detail-color, #64748b);
    font-size: var(--bw-detail-font-size, 13px);
}

.bw-cp-expand-service {
    margin: 0 0 16px;
    color: var(--bw-title-color, #044343);
    font-size: var(--bw-title-font-size, 17px);
    font-weight: 600;
}

.bw-cp-expand-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.bw-cp-expand-cell {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bw-cp-expand-section {
    border-top: 1px solid var(--bw-border-color, #e5e7eb);
    padding-top: 16px;
}

.bw-cp-expand-section-title {
    color: var(--bw-title-color, #044343);
    font-weight: 600;
    font-size: var(--bw-content-text-size, 14px);
    margin-bottom: 12px;
}

.bw-cp-expand-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
}

.bw-cp-expand-label {
    color: var(--bw-detail-color, #64748b);
    font-size: var(--bw-content-text-size, 14px);
}

.bw-cp-expand-value {
    color: var(--bw-content-text-color, #334155);
    font-size: var(--bw-content-text-size, 14px);
    font-weight: 500;
}

.bw-cp-status--success {
    color: #15803d;
}

.bw-cp-status--warning {
    color: #b45309;
}

.bw-cp-expand-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding: 12px 14px;
    background: var(--bw-panel-bg-color, #f7f3ed);
    border: 1px solid var(--bw-border-color, #e5e7eb);
    border-radius: 4px;
}

.bw-cp-expand-total .bw-cp-expand-label {
    color: var(--bw-content-text-color, #334155);
    font-weight: 500;
}

.bw-cp-expand-price {
    color: var(--bw-primary-color, #044343);
    font-size: var(--bw-content-text-size, 15px);
    font-weight: 700;
}

.bw-cp-expand-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.bw-cp-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid var(--bw-border-color, #d4cdc9);
    border-radius: 4px;
    background: #fff;
    color: var(--bw-content-text-color, #334155);
    font-size: var(--bw-content-text-size, 14px);
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.bw-cp-btn-outline:hover {
    border-color: var(--bw-primary-color, #044343);
    color: var(--bw-primary-color, #044343);
}

.bw-cp-btn-outline--danger:hover {
    border-color: #dc2626;
    color: #dc2626;
    background: #fff;
}

.bw-cp-btn-ico {
    font-size: 15px;
    line-height: 1;
}

.bw-cp-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--bw-detail-color, #64748b);
}

/* Cancel confirmation popconfirm (teleported to body, so styled unscoped) */
.el-popover.el-popconfirm.bw-cp-popconfirm,
.el-popper.bw-cp-popconfirm {
    padding: 16px !important;
    border-radius: 10px !important;
    border: 1px solid var(--bw-border-color, #e5e7eb) !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16) !important;
    font-family: var(--bw-font-family, inherit);
}

.bw-cp-popconfirm .el-popconfirm__main {
    align-items: flex-start;
    margin-bottom: 14px;
    line-height: 1.5;
    color: var(--bw-content-text-color, #334155);
    font-size: 14px;
}

.bw-cp-popconfirm .el-popconfirm__icon {
    margin-top: 2px;
    font-size: 18px;
}

.bw-cp-popconfirm .el-popconfirm__action {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

.bw-cp-popconfirm .el-popconfirm__action .el-button {
    height: 32px;
    padding: 0 16px;
    border-radius: 6px;
    margin: 0;
}

.bw-cp-popconfirm .el-popconfirm__action .el-button--primary {
    background-color: var(--bw-primary-color, #044343) !important;
    border-color: var(--bw-primary-color, #044343) !important;
    color: #fff !important;
}

.bw-cp-pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

#bookwellab_customer_panel_app .el-pagination.is-background .el-pager li.is-active {
    background-color: var(--bw-primary-color, #044343) !important;
    color: var(--bw-sidebar-title-color, #fff) !important;
}

.bw-cp-form-narrow {
    max-width: 420px;
}

.bw-cp-field-error {
    color: #e53935;
    font-size: 12px;
    line-height: 1.4;
    margin-top: 4px;
}

.bw-cp-btn-primary,
#bookwellab_customer_panel_app .el-button--primary {
    background-color: var(--bw-primary-color, #044343) !important;
    border-color: var(--bw-primary-color, #044343) !important;
    color: var(--bw-button-text-color, #fff) !important;
    font-size: var(--bw-button-font-size, 16px) !important;
    font-family: var(--bw-button-font-family, inherit) !important;
    border-radius: 4px !important;
}

.bw-cp-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

#bookwellab_customer_panel_app .el-button--primary:hover {
    background-color: var(--bw-primary-hover, #033535) !important;
    border-color: var(--bw-primary-hover, #033535) !important;
}

#bookwellab_customer_panel_app .bw-cp-filters .el-input__wrapper,
#bookwellab_customer_panel_app .bw-cp-filters .el-range-editor.el-input__wrapper {
    border-radius: 4px;
}

#bookwellab_customer_panel_app .el-tag,
#bookwellab_customer_panel_app .el-tag.el-tag--small {
    --el-tag-font-size: var(--bw-content-text-size, 14px);
    font-size: var(--bw-content-text-size, 14px) !important;
}

#bookwellab_customer_panel_app .el-tag.el-tag--success {
    --el-tag-bg-color: rgba(34, 197, 94, 0.12);
    --el-tag-border-color: rgba(34, 197, 94, 0.2);
    --el-tag-text-color: #15803d;
}

#bookwellab_customer_panel_app .el-tag.el-tag--warning {
    --el-tag-bg-color: rgba(245, 158, 11, 0.12);
    --el-tag-border-color: rgba(245, 158, 11, 0.2);
    --el-tag-text-color: #b45309;
}

#bookwellab_customer_panel_app .el-tag.el-tag--info {
    --el-tag-bg-color: rgba(100, 116, 139, 0.12);
    --el-tag-border-color: rgba(100, 116, 139, 0.2);
    --el-tag-text-color: #475569;
}

/* Tablet — : ID / Service / Date table + usable filters */
@media (min-width: 783px) and (max-width: 1024px) {
    .bw-cp-app,
    #bookwellab_customer_panel_app.bw-cp-app,
    #bookwellab_customer_panel_app.bw-force-fullwidth {
        max-width: 100% !important;
    }

    .bw-cp-shell {
        grid-template-columns: 180px minmax(0, 1fr);
        min-height: 0;
    }

    .bw-cp-sidebar {
        padding: 20px 10px 16px;
    }

    .bw-cp-avatar {
        width: 56px;
        height: 56px;
    }

    .bw-cp-main {
        padding: 22px 18px;
        min-width: 0;
    }

    .bw-cp-filters {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
        gap: 10px;
        align-items: stretch;
    }

    #bookwellab_customer_panel_app .bw-cp-filters .el-date-editor,
    #bookwellab_customer_panel_app .bw-cp-filters .el-date-editor.el-range-editor,
    #bookwellab_customer_panel_app .bw-cp-filters .el-input,
    .bw-cp-filters .el-date-editor,
    .bw-cp-filters .el-date-editor.el-range-editor,
    .bw-cp-filters .el-input {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .bw-cp-filters .el-range-input,
    #bookwellab_customer_panel_app .bw-cp-filters .el-range-input {
        width: 45% !important;
        min-width: 0 !important;
        font-size: var(--bw-content-text-size, 14px) !important;
    }

    .bw-cp-filters .el-button,
    #bookwellab_customer_panel_app .bw-cp-filters .el-button {
        min-width: 88px;
        padding: 0 14px !important;
    }

    .bw-cp-table-wrap {
        overflow-x: auto;
        min-height: 360px;
    }

    .bw-cp-table {
        min-width: 0;
        width: 100%;
    }

    /*  columns: expand + ID + Service + Date */
    .bw-cp-table-row {
        grid-template-columns: 40px 72px minmax(120px, 1.2fr) minmax(180px, 1.6fr);
        width: 100%;
    }

    .bw-cp-table-cell {
        padding: 12px 8px;
    }

    .bw-cp-table-cell--toggle {
        padding-left: 8px;
    }

    .bw-cp-table-cell--status,
    .bw-cp-table-cell--payment {
        display: none;
    }

    .bw-cp-service-name,
    .bw-cp-service-date {
        color: var(--bw-content-text-color, #334155);
        font-size: var(--bw-content-text-size, 14px);
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal;
    }

    .bw-cp-duration {
        color: var(--bw-detail-color, #64748b);
        font-size: var(--bw-content-text-size, 14px);
        flex-wrap: wrap;
    }

    .bw-cp-expand-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px 16px;
    }

    .bw-cp-expand-actions {
        flex-wrap: wrap;
    }

    .bw-cp-pagination {
        flex-wrap: wrap;
        gap: 8px;
    }
}

@media (max-width: 782px) {
    .bw-cp-app {
        max-width: 100%;
        overflow-x: hidden;
    }

    .bw-cp-shell {
        grid-template-columns: 1fr;
        min-height: 0;
        max-width: 100%;
    }

    .bw-cp-main {
        min-width: 0;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Sidebar becomes a top navbar with dropdown, like mobile */
    .bw-cp-sidebar {
        display: none;
    }

    .bw-cp-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 14px 16px;
        background: #fff;
        border-bottom: 1px solid var(--bw-border-color, #e5e7eb);
    }

    .bw-cp-topbar-title {
        color: var(--bw-title-color, #044343);
        font-size: var(--bw-section-title-size, 18px);
        font-weight: 600;
    }

    .bw-cp-topbar-menu {
        position: relative;
    }

    .bw-cp-topbar-toggle {
        display: flex;
        align-items: center;
        gap: 0;
        border: 0;
        background: transparent !important;
        padding: 2px;
        cursor: pointer;
        -webkit-appearance: none;
        appearance: none;
        box-shadow: none;
        outline: none;
    }

    .bw-cp-topbar-toggle:hover,
    .bw-cp-topbar-toggle.is-open,
    .bw-cp-topbar-toggle:focus,
    .bw-cp-topbar-toggle:active {
        background: transparent !important;
        box-shadow: none !important;
    }

    .bw-cp-topbar-avatar {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 1px solid var(--bw-border-color, #d4cdc9);
        background: #fff;
        color: var(--bw-detail-color, #64748b);
        transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .bw-cp-topbar-toggle:hover .bw-cp-topbar-avatar,
    .bw-cp-topbar-toggle.is-open .bw-cp-topbar-avatar {
        border-color: var(--bw-primary-color, #044343);
        background: #fff;
        color: var(--bw-primary-color, #044343);
    }

    .bw-cp-topbar-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 220px;
        background: #fff;
        border: 1px solid var(--bw-border-color, #e5e7eb);
        border-radius: 8px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
        padding: 8px;
        z-index: 20;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .bw-cp-topbar-dropdown .bw-cp-nav-item {
        color: var(--bw-content-text-color, #334155);
    }

    .bw-cp-topbar-dropdown .bw-cp-nav-item:hover,
    .bw-cp-topbar-dropdown .bw-cp-nav-item.active {
        background: rgba(var(--bw-primary-color-rgb, 4, 67, 67), 0.08);
        color: var(--bw-primary-color, #044343);
    }

    .bw-cp-main {
        padding: 18px 14px;
    }

    .bw-cp-section,
    .bw-cp-table-wrap {
        min-height: 400px;
    }

    .bw-cp-title {
        display: none;
    }

    .bw-cp-filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #bookwellab_customer_panel_app .bw-cp-filters .el-date-editor,
    #bookwellab_customer_panel_app .bw-cp-filters .el-date-editor.el-range-editor,
    #bookwellab_customer_panel_app .bw-cp-filters .el-input {
        width: 100% !important;
        max-width: 100% !important;
    }

    .bw-cp-filters .el-button,
    #bookwellab_customer_panel_app .bw-cp-filters .el-button {
        width: 100%;
        justify-content: center;
    }

    /* Appointment rows become mobile cards */
    .bw-cp-table-wrap {
        border: 0;
        background: transparent;
        overflow: visible;
        min-height: 0;
    }

    .bw-cp-table {
        min-width: 0;
        width: 100%;
    }

    #bookwellab_customer_panel_app .bw-cp-table-row.bw-cp-table-row--head {
        display: none !important;
    }

    .bw-cp-table-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: auto auto auto;
        grid-template-areas:
            "service toggle"
            "date toggle"
            "status status";
        align-items: start;
        column-gap: 12px;
        row-gap: 6px;
        background: #fff !important;
        border: 1px solid var(--bw-border-color, #e5e7eb);
        border-radius: 8px;
        padding: 14px 12px;
        margin-bottom: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .bw-cp-table-row.is-expanded {
        border-color: var(--bw-primary-color, #044343);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 0;
    }

    .bw-cp-table-cell {
        padding: 0;
        min-width: 0;
    }

    .bw-cp-table-cell--toggle {
        grid-area: toggle;
        align-self: center;
        justify-content: flex-end;
        padding: 0;
    }

    .bw-cp-expand-icon {
        width: 32px;
        height: 32px;
        border: 1px solid var(--bw-border-color, #e5e7eb);
        border-radius: 6px;
        background: #fff;
        box-sizing: border-box;
    }

    .bw-cp-expand-icon::before {
        width: 8px;
        height: 8px;
        border-right-width: 2px;
        border-bottom-width: 2px;
    }

    .bw-cp-table-cell--id {
        display: none;
    }

    .bw-cp-table-cell--service {
        grid-area: service;
        min-width: 0;
    }

    .bw-cp-table-cell--date {
        grid-area: date;
        min-width: 0;
    }

    .bw-cp-table-cell--status {
        grid-area: status;
        justify-self: start;
        padding-top: 2px;
    }

    .bw-cp-table-cell--payment {
        display: none;
    }

    .bw-cp-service-name {
        font-weight: 600;
        margin-bottom: 0;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .bw-cp-service-date {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        line-height: 1.35;
    }

    .bw-cp-duration {
        margin-top: 4px;
        flex-wrap: wrap;
    }

    .bw-cp-table-expand {
        border: 1px solid var(--bw-border-color, #e5e7eb);
        border-top: 0;
        border-radius: 0 0 8px 8px;
        margin-top: 0;
        margin-bottom: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .bw-cp-expand {
        padding: 14px 12px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .bw-cp-expand-head {
        flex-wrap: wrap;
        gap: 8px;
    }

    .bw-cp-expand-service {
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .bw-cp-expand-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .bw-cp-expand-cell,
    .bw-cp-expand-line,
    .bw-cp-expand-total {
        width: 100%;
        box-sizing: border-box;
    }

    .bw-cp-expand-line,
    .bw-cp-expand-total {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .bw-cp-expand-actions {
        flex-direction: column;
        width: 100%;
    }

    .bw-cp-expand-actions .bw-cp-btn-outline,
    .bw-cp-expand-actions .el-button {
        width: 100%;
        justify-content: center;
    }

    .bw-cp-expand-grid {
        grid-template-columns: 1fr;
    }

    .bw-cp-pagination {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        overflow-x: auto;
        max-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   RTL layout — sidebar on the right, main content on the left
   -------------------------------------------------------------------------- */
#bookwellab_customer_panel_app[dir="rtl"],
#bookwellab_customer_panel_app.bw-rtl {
    direction: rtl;
    text-align: right;
}

#bookwellab_customer_panel_app[dir="rtl"] .bw-cp-nav-item,
#bookwellab_customer_panel_app.bw-rtl .bw-cp-nav-item {
    text-align: right;
    flex-direction: row-reverse;
    gap: 12px;
}

#bookwellab_customer_panel_app[dir="rtl"] .bw-cp-nav-item span:last-child,
#bookwellab_customer_panel_app.bw-rtl .bw-cp-nav-item span:last-child {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: break-word;
}

#bookwellab_customer_panel_app[dir="rtl"] .bw-cp-login-form,
#bookwellab_customer_panel_app.bw-rtl .bw-cp-login-form {
    text-align: right;
}

#bookwellab_customer_panel_app[dir="rtl"] .bw-cp-filters,
#bookwellab_customer_panel_app.bw-rtl .bw-cp-filters {
    direction: rtl;
}

#bookwellab_customer_panel_app[dir="rtl"] .bw-cp-title,
#bookwellab_customer_panel_app.bw-rtl .bw-cp-title {
    text-align: right;
}

#bookwellab_customer_panel_app[dir="rtl"] .bw-cp-table-row,
#bookwellab_customer_panel_app.bw-rtl .bw-cp-table-row {
    direction: rtl;
}

#bookwellab_customer_panel_app[dir="rtl"] .el-pagination,
#bookwellab_customer_panel_app.bw-rtl .el-pagination {
    direction: rtl;
}

/* Desktop + tablet — move sidebar column to the right */
@media (min-width: 783px) {
    #bookwellab_customer_panel_app[dir="rtl"] .bw-cp-shell,
    #bookwellab_customer_panel_app.bw-rtl .bw-cp-shell {
        grid-template-columns: minmax(0, 1fr) 250px;
    }

    #bookwellab_customer_panel_app[dir="rtl"] .bw-cp-sidebar,
    #bookwellab_customer_panel_app.bw-rtl .bw-cp-sidebar {
        grid-column: 2;
        grid-row: 1;
        min-width: 250px;
        overflow: hidden;
    }

    #bookwellab_customer_panel_app[dir="rtl"] .bw-cp-main,
    #bookwellab_customer_panel_app.bw-rtl .bw-cp-main {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        padding: 28px 24px 28px 32px;
    }
}

@media (min-width: 783px) and (max-width: 1024px) {
    #bookwellab_customer_panel_app[dir="rtl"] .bw-cp-shell,
    #bookwellab_customer_panel_app.bw-rtl .bw-cp-shell {
        grid-template-columns: minmax(0, 1fr) 210px;
    }

    #bookwellab_customer_panel_app[dir="rtl"] .bw-cp-sidebar,
    #bookwellab_customer_panel_app.bw-rtl .bw-cp-sidebar {
        min-width: 210px;
        padding: 20px 12px 16px;
    }

    #bookwellab_customer_panel_app[dir="rtl"] .bw-cp-main,
    #bookwellab_customer_panel_app.bw-rtl .bw-cp-main {
        padding: 22px 14px 22px 18px;
    }
}

/* Mobile — keep profile menu button on the right */
@media (max-width: 782px) {
    #bookwellab_customer_panel_app[dir="rtl"] .bw-cp-topbar,
    #bookwellab_customer_panel_app.bw-rtl .bw-cp-topbar {
        direction: ltr;
    }

    #bookwellab_customer_panel_app[dir="rtl"] .bw-cp-topbar-title,
    #bookwellab_customer_panel_app.bw-rtl .bw-cp-topbar-title {
        direction: rtl;
        text-align: right;
        flex: 1;
    }

    #bookwellab_customer_panel_app[dir="rtl"] .bw-cp-topbar-dropdown,
    #bookwellab_customer_panel_app.bw-rtl .bw-cp-topbar-dropdown {
        right: 0;
        left: auto;
    }

    #bookwellab_customer_panel_app[dir="rtl"] .bw-cp-topbar-dropdown .bw-cp-nav-item,
    #bookwellab_customer_panel_app.bw-rtl .bw-cp-topbar-dropdown .bw-cp-nav-item {
        flex-direction: row-reverse;
        text-align: right;
        gap: 12px;
    }
}
