.bpc-native-hidden{display:none!important}
.bpc-date-original{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;overflow:hidden!important;padding:0!important;border:0!important}
.bpc-date-proxy{direction:rtl;text-align:right;cursor:pointer}
.bpc-calendar{
    --bpc-accent:var(--bookly-main-color,#f4662b);
    --bpc-accent-soft:#fff4ed;
    --bpc-border:#e2e8f0;
    --bpc-muted:#64748b;
    --bpc-text:#1f2937;
    box-sizing:border-box;
    width:min(720px,calc(100vw - 24px));
    background:#fff;
    border:1px solid var(--bpc-border);
    border-radius:18px;
    box-shadow:0 18px 50px rgba(15,23,42,.16);
    padding:20px;
    font-family:inherit;
    color:var(--bpc-text);
    z-index:999999;
    direction:rtl;
    overflow:hidden;
    height:auto!important;
    min-height:0!important;
    max-height:none;
    align-self:flex-start;
}
.bpc-calendar *{box-sizing:border-box}
.bpc-calendar-popup{position:absolute;display:none}
.bpc-calendar-popup.bpc-open{display:block}
.bpc-calendar-inline{
    position:relative;
    width:100%;
    max-width:720px;
    min-width:0;
    margin:0 auto;
    box-shadow:none;
    border:1px solid var(--bpc-border);
    border-radius:18px;
    background:#fff;
    padding:20px;
}
.bpc-head{
    display:grid;
    grid-template-columns:46px minmax(0,1fr) 46px;
    align-items:center;
    gap:12px;
    margin-bottom:16px;
}
.bpc-head strong{
    text-align:center;
    font-size:20px;
    font-weight:700;
    line-height:1.6;
    color:var(--bpc-text);
    white-space:nowrap;
}
.bpc-head button{
    width:46px;
    height:46px;
    min-height:46px;
    padding:0;
    border:1px solid transparent;
    background:#f8fafc;
    border-radius:12px;
    cursor:pointer;
    color:#334155;
    font:inherit;
    font-size:28px;
    line-height:1;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
.bpc-head button:hover{background:var(--bpc-accent-soft);border-color:#fed7aa;color:var(--bpc-accent)}
.bpc-head button:active{transform:scale(.96)}
.bpc-head button:focus-visible,.bpc-day:focus-visible,.bpc-foot button:focus-visible{outline:3px solid rgba(244,102,43,.28);outline-offset:2px}
.bpc-weekdays,.bpc-grid{
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    column-gap:4px;
    row-gap:5px;
    width:100%;
    direction:rtl;
}
.bpc-weekdays{
    margin-bottom:8px;
    color:var(--bpc-muted);
    text-align:center;
    font-size:clamp(10px,1.25vw,13px);
    font-weight:650;
    border-bottom:1px solid #f1f5f9;
    padding-bottom:8px;
}
.bpc-weekdays span{
    min-width:0;
    min-height:30px;
    padding:4px 1px;
    display:flex;
    align-items:center;
    justify-content:center;
    line-height:1.25;
    white-space:nowrap;
    word-break:normal;
    overflow:visible;
    text-align:center;
}
.bpc-day,.bpc-empty{
    width:46px;
    height:46px;
    min-width:46px;
    min-height:46px;
    justify-self:center;
    align-self:center;
    display:flex;
    align-items:center;
    justify-content:center;
}
.bpc-day{
    padding:0;
    border:1px solid transparent;
    border-radius:12px;
    background:transparent;
    cursor:pointer;
    color:var(--bpc-text);
    font-family:inherit;
    font-size:16px;
    font-weight:500;
    font-variant-numeric:tabular-nums;
    transition:background-color .15s ease,border-color .15s ease,color .15s ease,transform .15s ease,box-shadow .15s ease;
}
.bpc-day:hover:not(:disabled):not(.bpc-active){background:#f8fafc;border-color:#e2e8f0;transform:translateY(-1px)}
.bpc-day.bpc-active{
    background:var(--bpc-accent);
    border-color:var(--bpc-accent);
    color:#fff;
    font-weight:700;
    box-shadow:0 6px 16px rgba(244,102,43,.24);
}
.bpc-day:disabled{opacity:.28;cursor:not-allowed;background:transparent;transform:none;box-shadow:none}
.bpc-foot{
    display:flex;
    justify-content:flex-start;
    align-items:center;
    gap:10px;
    margin-top:16px;
    padding-top:14px;
    border-top:1px solid #f1f5f9;
}
.bpc-foot button{
    min-height:40px;
    padding:7px 16px;
    border:1px solid #e2e8f0;
    background:#f8fafc;
    border-radius:10px;
    color:#334155;
    cursor:pointer;
    font:inherit;
    font-size:13px;
    font-weight:600;
    transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.bpc-foot button:hover{background:var(--bpc-accent-soft);border-color:#fed7aa;color:var(--bpc-accent)}
.bpc-shake{animation:bpc-shake .25s linear}
@keyframes bpc-shake{25%{transform:translateX(-3px)}50%{transform:translateX(3px)}75%{transform:translateX(-2px)}}

@supports (color:color-mix(in srgb,#000 10%,#fff)){
    .bpc-calendar{--bpc-accent-soft:color-mix(in srgb,var(--bpc-accent) 10%,#fff)}
    .bpc-head button:hover,.bpc-foot button:hover{border-color:color-mix(in srgb,var(--bpc-accent) 28%,#fff)}
    .bpc-head button:focus-visible,.bpc-day:focus-visible,.bpc-foot button:focus-visible{outline-color:color-mix(in srgb,var(--bpc-accent) 30%,transparent)}
    .bpc-day.bpc-active{box-shadow:0 6px 16px color-mix(in srgb,var(--bpc-accent) 28%,transparent)}
}
@media(max-width:640px){
    .bpc-calendar{width:min(100%,calc(100vw - 12px));padding:12px;border-radius:14px}
    .bpc-calendar-inline{padding:12px;border-radius:14px}
    .bpc-head{grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;margin-bottom:12px}
    .bpc-head button{width:40px;height:40px;min-height:40px;border-radius:10px;font-size:24px}
    .bpc-head strong{font-size:17px}
    .bpc-weekdays,.bpc-grid{column-gap:1px;row-gap:3px}
    .bpc-weekdays{font-size:clamp(8.5px,2.5vw,11px);letter-spacing:-.2px;padding-bottom:6px;margin-bottom:5px}
    .bpc-weekdays span{padding:3px 0;white-space:nowrap;transform:scaleX(.96);transform-origin:center}
    .bpc-day,.bpc-empty{width:38px;height:38px;min-width:38px;min-height:38px}
    .bpc-day{font-size:14px;border-radius:10px}
    .bpc-foot{margin-top:12px;padding-top:10px}
    .bpc-foot button{min-height:38px;padding:6px 13px}
}
@media(max-width:390px){
    .bpc-calendar{padding:9px}
    .bpc-calendar-inline{padding:9px}
    .bpc-weekdays{font-size:8.5px}
    .bpc-weekdays span{transform:scaleX(.88)}
    .bpc-day,.bpc-empty{width:34px;height:34px;min-width:34px;min-height:34px}
    .bpc-day{font-size:13px;border-radius:9px}
}
.bpc-inline-host{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;align-self:flex-start!important}
/* The Bookly Svelte Calendar stays mounted and authoritative. Only its visual children are hidden; the Jalali host is rendered in the same component shell. */
.bpc-bookly-shell{visibility:visible!important;opacity:1!important;pointer-events:auto!important;width:100%!important;max-width:720px!important;height:auto!important;min-height:0!important;max-height:none!important;margin-inline:auto!important;align-self:flex-start!important}
.bpc-bookly-shell > :not(.bpc-inline-host){display:none!important}
.bookly-js-datepicker-calendar .bpc-bookly-shell,.bookly-js-datepicker-calendar.bpc-bookly-shell{background:#fff!important}
.bookly-js-datepicker-calendar .bpc-calendar-inline,.bookly-js-datepicker-calendar.bpc-bookly-shell .bpc-calendar-inline{width:100%;min-width:0;max-width:720px}
.bpc-birthday-proxy{max-width:260px}
body.rtl .bpc-calendar,.bookly-css-root .bpc-calendar{direction:rtl}
.bpc-calendar.bpc-busy{opacity:.72;pointer-events:none}
.bpc-modern-date-display{direction:rtl!important;text-align:right!important;unicode-bidi:plaintext}

/* Bookly admin: legacy jQuery daterangepicker */
.bpc-admin-date-original{position:absolute!important;opacity:0!important;pointer-events:none!important;z-index:-1!important;width:1px!important;height:1px!important;padding:0!important;border:0!important}
.bpc-admin-date-proxy{direction:rtl!important;text-align:right!important;cursor:pointer!important}
.daterangepicker.bpc-daterangepicker{direction:rtl}
.daterangepicker.bpc-daterangepicker .calendar-table{direction:rtl}
.daterangepicker.bpc-daterangepicker .calendar-table .table-condensed{direction:rtl}
.daterangepicker.bpc-daterangepicker .monthselect,.daterangepicker.bpc-daterangepicker .yearselect{direction:rtl;text-align:center}
.daterangepicker.bpc-daterangepicker td,.daterangepicker.bpc-daterangepicker th{font-variant-numeric:tabular-nums}
.daterangepicker.bpc-daterangepicker .drp-selected{direction:rtl;text-align:right}

/* Bookly admin: new BooklyCore/BooklyDatatables RangeCalendar */
.bpc-core-range-calendar{direction:rtl;min-width:292px;padding:8px;background:var(--bookly-popover,#fff);color:inherit;font-family:inherit}
.bpc-core-months{display:flex;gap:14px;align-items:flex-start}
.bpc-core-month-block{width:320px;max-width:100%}
.bpc-core-caption{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;gap:8px;margin-bottom:10px}
.bpc-core-selects{display:flex;gap:8px;justify-content:center;direction:rtl}
.bpc-core-month,.bpc-core-year{height:40px;border:1px solid #dbe3eb;border-radius:8px;background:#fff;color:inherit;padding:0 12px;font:inherit;text-align:center;min-width:112px}
.bpc-core-year{min-width:94px}
.bpc-core-nav{width:34px;height:36px;border:0;background:transparent;border-radius:7px;font-size:28px;line-height:1;cursor:pointer;color:inherit}
.bpc-core-nav:hover{background:#f1f5f9}
.bpc-core-weekdays,.bpc-core-grid{display:grid;grid-template-columns:repeat(7,minmax(34px,1fr));gap:2px;text-align:center}
.bpc-core-weekdays{margin-bottom:4px;color:#64748b;font-size:14px;font-weight:500}
.bpc-core-weekdays span{padding:6px 0}
.bpc-core-day{height:40px;border:0;background:transparent;border-radius:0;color:inherit;font:inherit;font-size:16px;cursor:pointer;position:relative}
.bpc-core-day:hover{background:#eef2f7}
.bpc-core-day.bpc-off{color:#8794a4;opacity:.72}
.bpc-core-day.bpc-in-range{background:#e8f0f7}
.bpc-core-day.bpc-range-start,.bpc-core-day.bpc-range-end{background:#059669;color:#fff}
.bpc-core-day.bpc-range-start{border-radius:7px}
.bpc-core-day.bpc-range-end{border-radius:7px}
.bpc-core-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end){box-shadow:inset 0 0 0 1px #059669;border-radius:7px}
.bpc-dt-range-label{direction:rtl;unicode-bidi:plaintext}
@media (max-width: 767px){.bpc-core-months{flex-direction:column}.bpc-core-month-block{width:292px}}

/* Bookly Dashboard: dedicated Jalali reporting period picker (1.2.6+). */
#bookly-dashboard-filters .bpc-dashboard-range{display:inline-flex;position:relative;direction:rtl;align-items:center}
.bpc-dashboard-range-trigger{height:40px;display:inline-flex;align-items:center;gap:8px;padding:0 14px;border:1px solid #dbe3eb;border-radius:9px;background:#fff;color:#111827;font:inherit;font-weight:500;cursor:pointer;white-space:nowrap;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.bpc-dashboard-range-trigger:hover{background:#f8fafc}.bpc-dashboard-range-chevron{font-size:18px;color:#64748b}.bpc-dashboard-range-text{direction:rtl;unicode-bidi:plaintext}
.bpc-dashboard-range-popover{z-index:1000000;width:min(980px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow:auto;background:#fff;color:#0f172a;border:1px solid #dbe3eb;border-radius:12px;box-shadow:0 18px 45px rgba(15,23,42,.2);direction:rtl;font-family:inherit}
.bpc-dashboard-popup-main{display:flex;min-height:500px}.bpc-dashboard-presets{width:220px;flex:0 0 220px;padding:14px 0;border-left:1px solid #e2e8f0;display:flex;flex-direction:column;align-items:stretch}
.bpc-dashboard-preset{border:0;background:transparent;text-align:right;padding:11px 22px;font:inherit;font-size:15px;cursor:pointer;color:#0f172a}.bpc-dashboard-preset:hover,.bpc-dashboard-preset.bpc-active{background:#f1f5f9}.bpc-dashboard-preset.bpc-active{font-weight:600;color:#047857}
.bpc-dashboard-calendars{flex:1;padding:18px 24px 10px;min-width:0}.bpc-dashboard-months{display:grid;grid-template-columns:1fr 1fr;gap:28px}.bpc-dashboard-month-block{min-width:0}
.bpc-dashboard-month-head{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px;margin-bottom:14px}.bpc-dashboard-selects{display:flex;gap:8px;justify-content:center}.bpc-dashboard-month,.bpc-dashboard-year{height:40px;min-width:116px;border:1px solid #dbe3eb;border-radius:8px;background:#fff;color:inherit;padding:0 10px;font:inherit;text-align:center}.bpc-dashboard-year{min-width:96px}
.bpc-dashboard-nav{width:38px;height:38px;border:0;border-radius:8px;background:transparent;font-size:30px;line-height:1;cursor:pointer;color:#0f172a}.bpc-dashboard-nav:hover{background:#f1f5f9}
.bpc-dashboard-weekdays,.bpc-dashboard-days{display:grid;grid-template-columns:repeat(7,minmax(36px,1fr));gap:2px;text-align:center}.bpc-dashboard-weekdays{margin-bottom:6px;color:#64748b;font-size:14px;font-weight:600}.bpc-dashboard-weekdays span{padding:7px 0}
.bpc-dashboard-day{height:44px;border:0;background:transparent;color:#0f172a;font:inherit;font-size:16px;cursor:pointer;border-radius:0;position:relative}.bpc-dashboard-day:hover{background:#eef2f7;border-radius:7px}.bpc-dashboard-day.bpc-off{color:#94a3b8}.bpc-dashboard-day.bpc-in-range{background:#e2f2ec}.bpc-dashboard-day.bpc-range-start,.bpc-dashboard-day.bpc-range-end{background:#059669;color:#fff;border-radius:7px}.bpc-dashboard-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end){box-shadow:inset 0 0 0 1px #059669;border-radius:7px}
.bpc-dashboard-today{display:block;margin:16px 0 0 auto;border:0;background:transparent;color:#64748b;font:inherit;cursor:pointer;padding:6px 0}.bpc-dashboard-today:hover{color:#0f172a}
.bpc-dashboard-actions{display:flex;justify-content:flex-start;gap:10px;padding:14px 18px;border-top:1px solid #e2e8f0}.bpc-dashboard-actions button{height:42px;padding:0 18px;border-radius:9px;font:inherit;cursor:pointer}.bpc-dashboard-cancel{background:#fff;border:1px solid #dbe3eb;color:#0f172a}.bpc-dashboard-apply{background:#059669;border:1px solid #059669;color:#fff}
@media(max-width:900px){.bpc-dashboard-popup-main{flex-direction:column}.bpc-dashboard-presets{width:auto;flex:auto;border-left:0;border-bottom:1px solid #e2e8f0;display:grid;grid-template-columns:repeat(3,1fr)}.bpc-dashboard-months{grid-template-columns:1fr}.bpc-dashboard-month-block:nth-child(2){display:none}.bpc-dashboard-range-popover{max-height:85vh}.bpc-dashboard-calendars{padding:14px}.bpc-dashboard-preset{padding:9px 12px}}


/* ==========================================================================\n   BPC 1.3.4 — unified professional Persian calendar skin\n   ========================================================================== */
:root{
    --bpc-ui-accent:var(--bookly-main-color,#f4662b);
    --bpc-ui-accent-weak:#fff3ec;
    --bpc-ui-text:#172033;
    --bpc-ui-muted:#66758a;
    --bpc-ui-border:#dfe6ee;
    --bpc-ui-border-soft:#eef2f6;
    --bpc-ui-surface:#fff;
    --bpc-ui-surface-2:#f8fafc;
    --bpc-ui-shadow:0 18px 55px rgba(15,23,42,.14);
}

/* Shared typography — complete weekday names never wrap or collide. */
.bpc-weekdays span,
.bpc-core-weekdays span,
.bpc-dashboard-weekdays span,
.daterangepicker.bpc-daterangepicker thead tr:last-child th{
    white-space:nowrap!important;
    word-break:keep-all!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    direction:rtl!important;
    unicode-bidi:plaintext!important;
    letter-spacing:-.25px!important;
}

/* ---------- Frontend / standalone Bookly calendar ---------- */
.bpc-calendar{
    --bpc-accent:var(--bpc-ui-accent);
    width:min(650px,calc(100vw - 28px))!important;
    padding:18px!important;
    border:1px solid var(--bpc-ui-border)!important;
    border-radius:18px!important;
    background:var(--bpc-ui-surface)!important;
    box-shadow:var(--bpc-ui-shadow)!important;
    color:var(--bpc-ui-text)!important;
}
.bpc-calendar-inline{
    width:100%!important;
    max-width:650px!important;
    min-width:560px!important;
    padding:18px!important;
    border:1px solid var(--bpc-ui-border)!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:0 8px 26px rgba(15,23,42,.07)!important;
}
.bpc-head{
    grid-template-columns:48px minmax(0,1fr) 48px!important;
    gap:14px!important;
    margin-bottom:12px!important;
    padding-bottom:12px!important;
    border-bottom:1px solid var(--bpc-ui-border-soft)!important;
}
.bpc-head strong{font-size:20px!important;font-weight:800!important;color:var(--bpc-ui-text)!important}
.bpc-head button{
    width:46px!important;height:46px!important;min-height:46px!important;
    border:1px solid var(--bpc-ui-border)!important;
    border-radius:12px!important;background:var(--bpc-ui-surface-2)!important;
    color:#334155!important;font-size:28px!important;
}
.bpc-head button:hover{background:var(--bpc-ui-accent-weak)!important;color:var(--bpc-ui-accent)!important;border-color:var(--bpc-ui-accent)!important}
.bpc-weekdays{
    display:grid!important;
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:0!important;
    margin:0 0 8px!important;
    padding:0 0 9px!important;
    border-bottom:1px solid var(--bpc-ui-border-soft)!important;
    color:var(--bpc-ui-muted)!important;
    font-size:11.5px!important;
    font-weight:700!important;
}
.bpc-weekdays span{min-width:0!important;min-height:34px!important;padding:7px 1px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.bpc-grid{gap:4px!important;grid-template-columns:repeat(7,minmax(0,1fr))!important}
.bpc-day,.bpc-empty{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important}
.bpc-day{border-radius:11px!important;font-size:15px!important;font-weight:600!important;color:var(--bpc-ui-text)!important}
.bpc-day:hover:not(:disabled):not(.bpc-active){background:var(--bpc-ui-surface-2)!important;border-color:var(--bpc-ui-border)!important}
.bpc-day.bpc-active{background:var(--bpc-ui-accent)!important;border-color:var(--bpc-ui-accent)!important;color:#fff!important;box-shadow:0 7px 18px color-mix(in srgb,var(--bpc-ui-accent) 26%,transparent)!important}
.bpc-foot{margin-top:12px!important;padding-top:12px!important;border-top:1px solid var(--bpc-ui-border-soft)!important}
.bpc-foot button{min-height:40px!important;border:1px solid var(--bpc-ui-border)!important;border-radius:10px!important;background:#fff!important;color:#334155!important;font-weight:700!important}
.bpc-foot button:hover{background:var(--bpc-ui-accent-weak)!important;border-color:var(--bpc-ui-accent)!important;color:var(--bpc-ui-accent)!important}
.bpc-inline-host,.bpc-bookly-shell{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
.bpc-bookly-shell{max-width:650px!important}
.bookly-js-datepicker-calendar .bpc-calendar-inline,.bookly-js-datepicker-calendar.bpc-bookly-shell .bpc-calendar-inline{max-width:650px!important;min-width:560px!important}

/* ---------- Admin: legacy single/range picker ---------- */
.daterangepicker.bpc-daterangepicker{
    --bpc-accent:var(--bpc-ui-accent);
    min-width:500px!important;
    padding:12px!important;
    border:1px solid var(--bpc-ui-border)!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:var(--bpc-ui-shadow)!important;
    color:var(--bpc-ui-text)!important;
}
.daterangepicker.bpc-daterangepicker .drp-calendar{max-width:none!important;padding:6px!important}
.daterangepicker.bpc-daterangepicker .calendar-table{border:0!important;background:transparent!important}
.daterangepicker.bpc-daterangepicker .calendar-table table{border-collapse:separate!important;border-spacing:3px!important;table-layout:fixed!important;width:100%!important}
.daterangepicker.bpc-daterangepicker th,.daterangepicker.bpc-daterangepicker td{width:auto!important;height:38px!important;line-height:38px!important;border-radius:9px!important;font-size:13px!important;text-align:center!important}
.daterangepicker.bpc-daterangepicker thead tr:last-child th{font-size:10px!important;font-weight:700!important;color:var(--bpc-ui-muted)!important;line-height:1.2!important;height:34px!important;padding:4px 1px!important}
.daterangepicker.bpc-daterangepicker td.available:hover{background:var(--bpc-ui-surface-2)!important}
.daterangepicker.bpc-daterangepicker td.active,.daterangepicker.bpc-daterangepicker td.active:hover{background:var(--bpc-ui-accent)!important;color:#fff!important}
.daterangepicker.bpc-daterangepicker .monthselect,.daterangepicker.bpc-daterangepicker .yearselect{height:38px!important;border:1px solid var(--bpc-ui-border)!important;border-radius:9px!important;background:#fff!important;padding:0 9px!important;font-size:13px!important;font-weight:600!important}
.daterangepicker.bpc-daterangepicker .prev span,.daterangepicker.bpc-daterangepicker .next span{border-color:#334155!important}

/* ---------- Admin: BooklyCore compact RangeCalendar / Calendar page popup ---------- */
.bpc-core-range-calendar{
    --bpc-accent:var(--bpc-ui-accent);
    min-width:520px!important;
    padding:14px!important;
    border:1px solid var(--bpc-ui-border)!important;
    border-radius:16px!important;
    background:#fff!important;
    box-shadow:var(--bpc-ui-shadow)!important;
    color:var(--bpc-ui-text)!important;
}
.bpc-core-months{gap:24px!important}
.bpc-core-month-block{width:430px!important;min-width:430px!important}
.bpc-core-caption{grid-template-columns:40px 1fr 40px!important;gap:10px!important;margin-bottom:12px!important}
.bpc-core-selects{gap:8px!important}
.bpc-core-month,.bpc-core-year{height:40px!important;min-width:118px!important;border:1px solid var(--bpc-ui-border)!important;border-radius:9px!important;background:#fff!important;font-size:13px!important;font-weight:650!important}
.bpc-core-year{min-width:94px!important}
.bpc-core-nav{width:38px!important;height:38px!important;border:1px solid var(--bpc-ui-border)!important;border-radius:9px!important;background:var(--bpc-ui-surface-2)!important;color:#334155!important;font-size:25px!important}
.bpc-core-nav:hover{background:var(--bpc-ui-accent-weak)!important;color:var(--bpc-ui-accent)!important;border-color:var(--bpc-ui-accent)!important}
.bpc-core-weekdays,.bpc-core-grid{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:3px!important}
.bpc-core-weekdays{margin-bottom:7px!important;padding-bottom:7px!important;border-bottom:1px solid var(--bpc-ui-border-soft)!important;font-size:10.5px!important;font-weight:700!important;color:var(--bpc-ui-muted)!important}
.bpc-core-weekdays span{min-height:30px!important;padding:6px 1px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.bpc-core-day{height:40px!important;border-radius:9px!important;font-size:14px!important;font-weight:600!important}
.bpc-core-day:hover{background:var(--bpc-ui-surface-2)!important}
.bpc-core-day.bpc-in-range{background:var(--bpc-ui-accent-weak)!important}
.bpc-core-day.bpc-range-start,.bpc-core-day.bpc-range-end{background:var(--bpc-ui-accent)!important;color:#fff!important}
.bpc-core-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end){box-shadow:inset 0 0 0 1.5px var(--bpc-ui-accent)!important}

/* ---------- Dashboard two-month reporting picker ---------- */
.bpc-dashboard-range-popover{
    --bpc-accent:var(--bpc-ui-accent);
    width:min(1180px,calc(100vw - 32px))!important;
    border:1px solid var(--bpc-ui-border)!important;
    border-radius:18px!important;
    box-shadow:0 24px 70px rgba(15,23,42,.18)!important;
    overflow:hidden!important;
}
.bpc-dashboard-popup-main{min-height:0!important;background:#fff!important}
.bpc-dashboard-presets{width:230px!important;flex:0 0 230px!important;padding:12px!important;border-left:1px solid var(--bpc-ui-border-soft)!important;gap:4px!important}
.bpc-dashboard-preset{padding:11px 14px!important;border-radius:9px!important;font-size:14px!important;font-weight:550!important;color:var(--bpc-ui-text)!important}
.bpc-dashboard-preset:hover{background:var(--bpc-ui-surface-2)!important}.bpc-dashboard-preset.bpc-active{background:var(--bpc-ui-accent-weak)!important;color:var(--bpc-ui-accent)!important;font-weight:750!important}
.bpc-dashboard-calendars{padding:20px 24px 16px!important}
.bpc-dashboard-months{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:30px!important}
.bpc-dashboard-month-block{min-width:400px!important}
.bpc-dashboard-month-head{grid-template-columns:40px 1fr 40px!important;gap:8px!important;margin-bottom:12px!important}
.bpc-dashboard-selects{gap:8px!important}
.bpc-dashboard-month,.bpc-dashboard-year{height:42px!important;min-width:128px!important;border:1px solid var(--bpc-ui-border)!important;border-radius:10px!important;background:#fff!important;font-size:14px!important;font-weight:650!important}.bpc-dashboard-year{min-width:98px!important}
.bpc-dashboard-nav{width:40px!important;height:40px!important;border:1px solid var(--bpc-ui-border)!important;border-radius:10px!important;background:var(--bpc-ui-surface-2)!important;font-size:26px!important;color:#334155!important}.bpc-dashboard-nav:hover{background:var(--bpc-ui-accent-weak)!important;border-color:var(--bpc-ui-accent)!important;color:var(--bpc-ui-accent)!important}
.bpc-dashboard-weekdays,.bpc-dashboard-days{grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:3px!important}
.bpc-dashboard-weekdays{font-size:10.5px!important;font-weight:700!important;color:var(--bpc-ui-muted)!important;margin-bottom:7px!important;padding-bottom:7px!important;border-bottom:1px solid var(--bpc-ui-border-soft)!important}
.bpc-dashboard-weekdays span{min-height:30px!important;padding:6px 1px!important;display:flex!important;align-items:center!important;justify-content:center!important}
.bpc-dashboard-day{height:42px!important;border-radius:9px!important;font-size:14px!important;font-weight:600!important}.bpc-dashboard-day:hover{background:var(--bpc-ui-surface-2)!important}.bpc-dashboard-day.bpc-in-range{background:var(--bpc-ui-accent-weak)!important}.bpc-dashboard-day.bpc-range-start,.bpc-dashboard-day.bpc-range-end{background:var(--bpc-ui-accent)!important;color:#fff!important}.bpc-dashboard-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end){box-shadow:inset 0 0 0 1.5px var(--bpc-ui-accent)!important}
.bpc-dashboard-actions{padding:13px 18px!important;border-top:1px solid var(--bpc-ui-border-soft)!important;background:#fff!important}.bpc-dashboard-actions button{height:42px!important;border-radius:10px!important;font-weight:700!important}.bpc-dashboard-apply{background:var(--bpc-ui-accent)!important;border-color:var(--bpc-ui-accent)!important}.bpc-dashboard-cancel{border-color:var(--bpc-ui-border)!important}

/* Calendar page week/day header output is allowed to show complete Persian weekday names. */
.bookly-js-calendar .fc-col-header-cell-cushion,
.bookly-js-calendar .fc-list-day-text,
.bookly-js-calendar .fc-list-day-side-text{white-space:nowrap!important;direction:rtl!important;unicode-bidi:plaintext!important}

/* Responsive: keep full weekday names, switch dual-month pickers to one month before collision. */
@media(max-width:1100px){
    .bpc-dashboard-range-popover{width:min(760px,calc(100vw - 20px))!important;max-height:88vh!important;overflow:auto!important}
    .bpc-dashboard-popup-main{flex-direction:column!important}
    .bpc-dashboard-presets{width:auto!important;flex:auto!important;border-left:0!important;border-bottom:1px solid var(--bpc-ui-border-soft)!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
    .bpc-dashboard-months{grid-template-columns:1fr!important}
    .bpc-dashboard-month-block{min-width:0!important;width:100%!important}
    .bpc-dashboard-month-block:nth-child(2){display:none!important}
    .bpc-dashboard-weekdays{font-size:11px!important}
    .bpc-core-months{flex-direction:column!important}
    .bpc-core-month-block{width:430px!important;min-width:430px!important}
}
@media(max-width:700px){
    .bpc-calendar,.bpc-calendar-inline{width:min(100%,calc(100vw - 12px))!important;min-width:0!important;padding:12px!important;border-radius:14px!important}
    .bpc-bookly-shell{max-width:100%!important}.bookly-js-datepicker-calendar .bpc-calendar-inline,.bookly-js-datepicker-calendar.bpc-bookly-shell .bpc-calendar-inline{min-width:0!important;max-width:100%!important}
    .bpc-head{grid-template-columns:40px minmax(0,1fr) 40px!important;gap:8px!important}.bpc-head button{width:40px!important;height:40px!important;min-height:40px!important}.bpc-head strong{font-size:17px!important}
    .bpc-weekdays{font-size:clamp(8px,2.15vw,10.5px)!important;letter-spacing:-.45px!important}.bpc-weekdays span{padding-inline:0!important}
    .bpc-day,.bpc-empty{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}.bpc-day{font-size:13.5px!important}
    .bpc-core-range-calendar{min-width:min(460px,calc(100vw - 18px))!important;max-width:calc(100vw - 18px)!important;padding:10px!important;overflow:auto!important}.bpc-core-month-block{width:410px!important;min-width:410px!important}.bpc-core-weekdays{font-size:9.5px!important}
    .bpc-dashboard-presets{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bpc-dashboard-calendars{padding:12px!important}.bpc-dashboard-weekdays{font-size:9.5px!important}.bpc-dashboard-day{height:38px!important;font-size:13px!important}
    .daterangepicker.bpc-daterangepicker{min-width:min(480px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;overflow:auto!important}
}

/* ==========================================================================
   BPC 1.3.5 — compact frontend controls + refined Dashboard range picker
   ========================================================================== */

/* Frontend: compact, balanced, with manual Jalali month/year selection. */
.bpc-calendar{
    width:min(520px,calc(100vw - 24px))!important;
    padding:14px!important;
    border-radius:16px!important;
}
.bpc-calendar-inline{
    width:100%!important;
    max-width:520px!important;
    min-width:480px!important;
    padding:14px!important;
    border-radius:16px!important;
}
.bpc-bookly-shell{max-width:520px!important}
.bookly-js-datepicker-calendar .bpc-calendar-inline,
.bookly-js-datepicker-calendar.bpc-bookly-shell .bpc-calendar-inline{
    max-width:520px!important;
    min-width:480px!important;
}
.bpc-head{
    grid-template-columns:42px minmax(0,1fr) 42px!important;
    gap:8px!important;
    margin-bottom:10px!important;
    padding-bottom:10px!important;
}
.bpc-head button{
    width:40px!important;
    height:40px!important;
    min-height:40px!important;
    border-radius:10px!important;
    font-size:24px!important;
}
.bpc-caption-selects{
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    gap:7px!important;
    min-width:0!important;
}
.bpc-month-select,.bpc-year-select{
    height:40px!important;
    border:1px solid var(--bpc-ui-border)!important;
    border-radius:10px!important;
    background:#fff!important;
    color:var(--bpc-ui-text)!important;
    font:inherit!important;
    font-size:14px!important;
    font-weight:700!important;
    line-height:1!important;
    text-align:center!important;
    outline:none!important;
    padding:0 10px!important;
    cursor:pointer!important;
}
.bpc-month-select{min-width:122px!important}
.bpc-year-select{min-width:88px!important}
.bpc-month-select:focus,.bpc-year-select:focus{
    border-color:var(--bpc-ui-accent)!important;
    box-shadow:0 0 0 3px color-mix(in srgb,var(--bpc-ui-accent) 12%,transparent)!important;
}
.bpc-weekdays{
    gap:2px!important;
    margin-bottom:6px!important;
    padding-bottom:7px!important;
    font-size:10.5px!important;
}
.bpc-weekdays span{
    min-height:30px!important;
    padding:5px 0!important;
    white-space:nowrap!important;
    letter-spacing:-.35px!important;
}
.bpc-grid{
    gap:3px!important;
    justify-items:center!important;
}
.bpc-day,.bpc-empty{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
}
.bpc-day{
    border-radius:10px!important;
    font-size:14px!important;
}
.bpc-day.bpc-active{
    box-shadow:0 6px 14px color-mix(in srgb,var(--bpc-ui-accent) 22%,transparent)!important;
}
.bpc-foot{margin-top:9px!important;padding-top:9px!important}
.bpc-foot button{min-height:38px!important;padding:6px 12px!important;font-size:13px!important}

/* Dashboard: less whitespace, clearer date states and robust navigation controls. */
.bpc-dashboard-range-popover{
    width:min(980px,calc(100vw - 28px))!important;
    border-radius:16px!important;
}
.bpc-dashboard-presets{
    width:190px!important;
    flex:0 0 190px!important;
    padding:10px!important;
}
.bpc-dashboard-preset{
    padding:9px 11px!important;
    font-size:13px!important;
    border-radius:8px!important;
}
.bpc-dashboard-calendars{padding:16px 18px 12px!important}
.bpc-dashboard-months{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:18px!important;
}
.bpc-dashboard-month-block{
    min-width:330px!important;
    width:100%!important;
}
.bpc-dashboard-month-head{
    grid-template-columns:38px minmax(0,1fr) 38px!important;
    gap:6px!important;
    margin-bottom:9px!important;
}
.bpc-dashboard-selects{gap:6px!important}
.bpc-dashboard-month,.bpc-dashboard-year{
    height:38px!important;
    min-width:112px!important;
    padding:0 8px!important;
    border-radius:9px!important;
    font-size:13px!important;
}
.bpc-dashboard-year{min-width:82px!important}
.bpc-dashboard-nav{
    position:relative!important;
    z-index:3!important;
    width:36px!important;
    height:36px!important;
    padding:0!important;
    border-radius:9px!important;
    cursor:pointer!important;
    pointer-events:auto!important;
    touch-action:manipulation!important;
    font-size:25px!important;
}
.bpc-dashboard-weekdays,.bpc-dashboard-days{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:2px!important;
}
.bpc-dashboard-weekdays{
    margin-bottom:5px!important;
    padding-bottom:5px!important;
    font-size:9.6px!important;
    letter-spacing:-.4px!important;
}
.bpc-dashboard-weekdays span{
    min-height:26px!important;
    padding:4px 0!important;
    white-space:nowrap!important;
}
.bpc-dashboard-day{
    height:38px!important;
    min-height:38px!important;
    border-radius:9px!important;
    font-size:13.5px!important;
    font-weight:650!important;
}
.bpc-dashboard-day.bpc-in-range{
    background:color-mix(in srgb,var(--bpc-ui-accent) 11%,#fff)!important;
    border-radius:7px!important;
}
.bpc-dashboard-day.bpc-range-start,.bpc-dashboard-day.bpc-range-end{
    background:var(--bpc-ui-accent)!important;
    color:#fff!important;
    box-shadow:0 5px 13px color-mix(in srgb,var(--bpc-ui-accent) 20%,transparent)!important;
    border-radius:10px!important;
}
/* Today is informative, not a second "selected" state. */
.bpc-dashboard-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end){
    box-shadow:none!important;
    color:var(--bpc-ui-accent)!important;
    font-weight:800!important;
    background:color-mix(in srgb,var(--bpc-ui-accent) 5%,#fff)!important;
}
.bpc-dashboard-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end)::after{
    content:"";
    position:absolute;
    width:4px;height:4px;
    border-radius:50%;
    background:var(--bpc-ui-accent);
    bottom:4px;
    left:50%;
    transform:translateX(-50%);
}
.bpc-dashboard-today{margin-top:10px!important;font-size:13px!important}
.bpc-dashboard-actions{padding:10px 14px!important}
.bpc-dashboard-actions button{height:38px!important;padding:0 15px!important;font-size:13px!important}

@media(max-width:1050px){
    .bpc-dashboard-range-popover{width:min(720px,calc(100vw - 20px))!important;max-height:88vh!important;overflow:auto!important}
    .bpc-dashboard-popup-main{flex-direction:column!important}
    .bpc-dashboard-presets{width:auto!important;flex:auto!important;border-left:0!important;border-bottom:1px solid var(--bpc-ui-border-soft)!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
    .bpc-dashboard-months{grid-template-columns:1fr!important}
    .bpc-dashboard-month-block{min-width:0!important;width:100%!important}
    .bpc-dashboard-month-block:nth-child(2){display:none!important}
}
@media(max-width:620px){
    .bpc-calendar,.bpc-calendar-inline{width:min(100%,calc(100vw - 10px))!important;min-width:0!important;max-width:100%!important;padding:10px!important}
    .bookly-js-datepicker-calendar .bpc-calendar-inline,.bookly-js-datepicker-calendar.bpc-bookly-shell .bpc-calendar-inline{min-width:0!important;max-width:100%!important}
    .bpc-head{grid-template-columns:36px minmax(0,1fr) 36px!important;gap:5px!important}
    .bpc-head button{width:34px!important;height:36px!important;min-height:36px!important;font-size:21px!important}
    .bpc-caption-selects{gap:4px!important}
    .bpc-month-select,.bpc-year-select{height:36px!important;padding:0 6px!important;font-size:12px!important}
    .bpc-month-select{min-width:100px!important}.bpc-year-select{min-width:72px!important}
    .bpc-weekdays{font-size:clamp(7.7px,2vw,9.5px)!important;letter-spacing:-.55px!important;gap:0!important}
    .bpc-weekdays span{min-height:27px!important;padding-inline:0!important}
    .bpc-grid{gap:1px!important}
    .bpc-day,.bpc-empty{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}.bpc-day{font-size:12.5px!important}
    .bpc-dashboard-presets{grid-template-columns:repeat(2,minmax(0,1fr))!important}
    .bpc-dashboard-calendars{padding:10px!important}
    .bpc-dashboard-weekdays{font-size:8.7px!important}
    .bpc-dashboard-day{height:35px!important;min-height:35px!important;font-size:12.5px!important}
}


/* ========================================================================== 
   BPC 1.3.6 — functional Bookly sync + compact real range selection
   ========================================================================== */
/* Frontend: compact enough for full weekday names, without excessive spacing. */
.bpc-calendar{width:min(500px,calc(100vw - 20px))!important;padding:12px!important}
.bpc-calendar-inline{max-width:500px!important;min-width:455px!important;padding:12px!important}
.bpc-bookly-shell{max-width:500px!important}
.bookly-js-datepicker-calendar .bpc-calendar-inline,.bookly-js-datepicker-calendar.bpc-bookly-shell .bpc-calendar-inline{max-width:500px!important;min-width:455px!important}
.bpc-head{grid-template-columns:38px minmax(0,1fr) 38px!important;gap:6px!important;padding-bottom:8px!important;margin-bottom:8px!important}
.bpc-head button{width:36px!important;height:36px!important;min-height:36px!important;font-size:22px!important}
.bpc-caption-selects{gap:5px!important}.bpc-month-select,.bpc-year-select{height:36px!important;font-size:13px!important}.bpc-month-select{min-width:112px!important}.bpc-year-select{min-width:78px!important}
.bpc-weekdays{font-size:10px!important;gap:0!important;margin-bottom:4px!important;padding-bottom:5px!important}.bpc-weekdays span{min-height:26px!important;padding:3px 0!important;letter-spacing:-.42px!important}
.bpc-grid{gap:1px!important}.bpc-day,.bpc-empty{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important}.bpc-day{font-size:13.5px!important;border-radius:9px!important}
.bpc-foot{margin-top:7px!important;padding-top:7px!important}.bpc-foot button{min-height:35px!important;padding:5px 11px!important;font-size:12.5px!important}

/* Dashboard range picker: compact two-month layout modeled after Bookly's own picker. */
.bpc-dashboard-range-popover{width:min(900px,calc(100vw - 24px))!important;border-radius:14px!important;overflow:hidden!important}
.bpc-dashboard-popup-main{min-height:0!important}
.bpc-dashboard-presets{width:190px!important;flex:0 0 190px!important;padding:10px!important}
.bpc-dashboard-calendars{padding:12px 14px 10px!important}
.bpc-dashboard-range-hint{margin:0 0 8px!important;padding:7px 10px!important;border-radius:8px!important;background:var(--bpc-ui-surface-2)!important;color:var(--bpc-ui-muted)!important;font-size:12px!important;font-weight:650!important;text-align:center!important}
.bpc-dashboard-months{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.bpc-dashboard-month-block{min-width:320px!important;width:100%!important}
.bpc-dashboard-month-head{grid-template-columns:34px minmax(0,1fr) 34px!important;gap:5px!important;margin-bottom:6px!important}
.bpc-dashboard-nav{width:32px!important;height:32px!important;font-size:22px!important;border-radius:8px!important}
.bpc-dashboard-month,.bpc-dashboard-year{height:34px!important;font-size:12.5px!important;min-width:105px!important}.bpc-dashboard-year{min-width:78px!important}
.bpc-dashboard-weekdays{font-size:9px!important;margin-bottom:3px!important;padding-bottom:4px!important;letter-spacing:-.48px!important}.bpc-dashboard-weekdays span{min-height:23px!important;padding:2px 0!important}
.bpc-dashboard-days{gap:0!important}
.bpc-dashboard-day{height:36px!important;min-height:36px!important;border-radius:0!important;font-size:13px!important;transition:background .12s ease,color .12s ease,box-shadow .12s ease!important}
.bpc-dashboard-day:hover{border-radius:7px!important}
.bpc-dashboard-day.bpc-in-range{background:color-mix(in srgb,var(--bpc-ui-accent) 12%,#fff)!important;border-radius:0!important}
.bpc-dashboard-day.bpc-range-start,.bpc-dashboard-day.bpc-range-end{background:var(--bpc-ui-accent)!important;color:#fff!important;border-radius:8px!important;box-shadow:none!important;position:relative!important;z-index:2!important}
.bpc-dashboard-day.bpc-range-start:not(.bpc-range-end){border-start-start-radius:8px!important;border-end-start-radius:8px!important}
.bpc-dashboard-day.bpc-range-end:not(.bpc-range-start){border-start-end-radius:8px!important;border-end-end-radius:8px!important}
.bpc-dashboard-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end){background:transparent!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bpc-ui-accent) 45%,transparent)!important;color:var(--bpc-ui-text)!important}
.bpc-dashboard-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end)::after{display:none!important}
.bpc-dashboard-today{margin-top:6px!important;padding:4px 0!important;font-size:12px!important}
.bpc-dashboard-actions{padding:9px 12px!important}.bpc-dashboard-actions button{height:36px!important;padding:0 14px!important;font-size:12.5px!important}.bpc-dashboard-apply:disabled{opacity:.45!important;cursor:not-allowed!important}
@media(max-width:940px){.bpc-dashboard-range-popover{width:min(690px,calc(100vw - 16px))!important;max-height:88vh!important;overflow:auto!important}.bpc-dashboard-popup-main{flex-direction:column!important}.bpc-dashboard-presets{width:auto!important;flex:auto!important;border-left:0!important;border-bottom:1px solid var(--bpc-ui-border-soft)!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}.bpc-dashboard-months{grid-template-columns:1fr!important}.bpc-dashboard-month-block:nth-child(2){display:none!important}.bpc-dashboard-month-block{min-width:0!important}}
@media(max-width:560px){.bpc-calendar,.bpc-calendar-inline{min-width:0!important;max-width:100%!important;width:min(100%,calc(100vw - 8px))!important}.bookly-js-datepicker-calendar .bpc-calendar-inline,.bookly-js-datepicker-calendar.bpc-bookly-shell .bpc-calendar-inline{min-width:0!important;max-width:100%!important}.bpc-weekdays{font-size:clamp(7.5px,2.1vw,9px)!important}.bpc-day,.bpc-empty{width:33px!important;height:33px!important;min-width:33px!important;min-height:33px!important}.bpc-dashboard-presets{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* ========================================================================== 
   BPC 1.3.7 — functional frontend commit + polished compact Persian controls
   ========================================================================== */
:root{
    --bpc-137-accent:var(--bookly-main-color,#f4662b);
    --bpc-137-accent-soft:color-mix(in srgb,var(--bpc-137-accent) 12%,#fff);
    --bpc-137-accent-soft-2:color-mix(in srgb,var(--bpc-137-accent) 7%,#fff);
    --bpc-137-text:#172033;
    --bpc-137-muted:#6b778c;
    --bpc-137-border:#dce4ed;
    --bpc-137-border-soft:#edf1f5;
    --bpc-137-surface:#fff;
    --bpc-137-surface-2:#f8fafc;
}

/* Shared Select2-like native selects; actual Select2 is enhanced automatically when available. */
.bpc-select2-like,
.bpc-month-select,.bpc-year-select,
.bpc-dashboard-month,.bpc-dashboard-year{
    -webkit-appearance:none!important;
    appearance:none!important;
    background-color:#fff!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20'%3E%3Cpath fill='%23475569' d='M5.3 7.3a1 1 0 0 1 1.4 0L10 10.6l3.3-3.3a1 1 0 1 1 1.4 1.4l-4 4a1 1 0 0 1-1.4 0l-4-4a1 1 0 0 1 0-1.4Z'/%3E%3C/svg%3E")!important;
    background-repeat:no-repeat!important;
    background-position:14px 50%!important;
    padding-left:38px!important;
    padding-right:13px!important;
    border:1px solid var(--bpc-137-border)!important;
    border-radius:10px!important;
    color:var(--bpc-137-text)!important;
    font-family:inherit!important;
    font-weight:700!important;
    text-align:right!important;
    direction:rtl!important;
    box-shadow:0 1px 2px rgba(15,23,42,.03)!important;
    outline:0!important;
    cursor:pointer!important;
}
.bpc-select2-like:hover,
.bpc-month-select:hover,.bpc-year-select:hover,
.bpc-dashboard-month:hover,.bpc-dashboard-year:hover{border-color:#b9c5d3!important;background-color:#fbfcfd!important}
.bpc-select2-like:focus,
.bpc-month-select:focus,.bpc-year-select:focus,
.bpc-dashboard-month:focus,.bpc-dashboard-year:focus{
    border-color:var(--bpc-137-accent)!important;
    box-shadow:0 0 0 3px color-mix(in srgb,var(--bpc-137-accent) 13%,transparent)!important;
}

/* Optional real Select2, when Bookly already provides it on the page. */
.bpc-calendar .select2-container,
.bpc-dashboard-range-popover .select2-container{font-family:inherit!important;direction:rtl!important;min-width:0!important}
.bpc-calendar .select2-container .select2-selection--single,
.bpc-dashboard-range-popover .select2-container .select2-selection--single{
    height:38px!important;border:1px solid var(--bpc-137-border)!important;border-radius:10px!important;background:#fff!important;display:flex!important;align-items:center!important;box-shadow:0 1px 2px rgba(15,23,42,.03)!important
}
.bpc-calendar .select2-container .select2-selection__rendered,
.bpc-dashboard-range-popover .select2-container .select2-selection__rendered{line-height:36px!important;color:var(--bpc-137-text)!important;font-weight:700!important;padding:0 12px 0 30px!important;text-align:right!important;width:100%!important}
.bpc-calendar .select2-container .select2-selection__arrow,
.bpc-dashboard-range-popover .select2-container .select2-selection__arrow{height:36px!important;left:8px!important;right:auto!important}
.bpc-calendar .select2-dropdown,
.bpc-dashboard-range-popover .select2-dropdown{border:1px solid var(--bpc-137-border)!important;border-radius:10px!important;overflow:hidden!important;box-shadow:0 12px 30px rgba(15,23,42,.15)!important;direction:rtl!important}
.bpc-calendar .select2-results__option,
.bpc-dashboard-range-popover .select2-results__option{padding:8px 12px!important;text-align:right!important}
.bpc-calendar .select2-results__option--highlighted,
.bpc-dashboard-range-popover .select2-results__option--highlighted{background:var(--bpc-137-accent)!important;color:#fff!important}

/* ---------- Frontend ---------- */
.bpc-calendar,
.bpc-calendar-inline{
    width:min(485px,calc(100vw - 18px))!important;
    max-width:485px!important;
    min-width:430px!important;
    padding:12px!important;
    border:1px solid var(--bpc-137-border)!important;
    border-radius:16px!important;
    background:#fff!important;
    color:var(--bpc-137-text)!important;
    box-shadow:0 10px 32px rgba(15,23,42,.10)!important;
}
.bpc-bookly-shell{width:100%!important;max-width:485px!important;height:auto!important;min-height:0!important}
.bookly-js-datepicker-calendar .bpc-calendar-inline,
.bookly-js-datepicker-calendar.bpc-bookly-shell .bpc-calendar-inline{width:100%!important;max-width:485px!important;min-width:430px!important}
.bpc-head{grid-template-columns:38px minmax(0,1fr) 38px!important;gap:7px!important;margin:0 0 8px!important;padding:0 0 9px!important;border-bottom:1px solid var(--bpc-137-border-soft)!important}
.bpc-head button{width:36px!important;height:36px!important;min-height:36px!important;padding:0!important;border:1px solid var(--bpc-137-border)!important;border-radius:10px!important;background:var(--bpc-137-surface-2)!important;color:#334155!important;font-size:23px!important;box-shadow:none!important}
.bpc-head button:hover{border-color:var(--bpc-137-accent)!important;background:var(--bpc-137-accent-soft-2)!important;color:var(--bpc-137-accent)!important}
.bpc-caption-selects{display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(92px,.75fr)!important;gap:6px!important;width:100%!important;min-width:0!important}
.bpc-month-select,.bpc-year-select{width:100%!important;min-width:0!important;height:38px!important;font-size:13.5px!important}
.bpc-weekdays{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0!important;margin:0 0 5px!important;padding:0 0 6px!important;border-bottom:1px solid var(--bpc-137-border-soft)!important;color:var(--bpc-137-muted)!important;font-size:10.2px!important;font-weight:800!important}
.bpc-weekdays span{display:flex!important;align-items:center!important;justify-content:center!important;min-width:0!important;min-height:28px!important;padding:3px 0!important;white-space:nowrap!important;overflow:visible!important;letter-spacing:-.45px!important}
.bpc-grid{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:2px!important;justify-items:center!important}
.bpc-day,.bpc-empty{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important}
.bpc-day{border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:var(--bpc-137-text)!important;font-size:13.5px!important;font-weight:650!important;transition:background .12s ease,color .12s ease,border-color .12s ease,transform .12s ease!important}
.bpc-day:hover:not(:disabled):not(.bpc-active){background:var(--bpc-137-surface-2)!important;border-color:var(--bpc-137-border)!important}
.bpc-day:active:not(:disabled){transform:scale(.96)!important}
.bpc-day.bpc-active{background:var(--bpc-137-accent)!important;color:#fff!important;border-color:var(--bpc-137-accent)!important;box-shadow:0 6px 15px color-mix(in srgb,var(--bpc-137-accent) 20%,transparent)!important}
.bpc-day:disabled{color:#a8b0bc!important;opacity:.58!important;background:transparent!important}
.bpc-foot{margin-top:8px!important;padding-top:8px!important;border-top:1px solid var(--bpc-137-border-soft)!important}
.bpc-foot button{height:36px!important;min-height:36px!important;padding:0 13px!important;border:1px solid var(--bpc-137-border)!important;border-radius:9px!important;background:#fff!important;color:#334155!important;font-size:12.5px!important;font-weight:700!important}
.bpc-foot button:hover{border-color:var(--bpc-137-accent)!important;color:var(--bpc-137-accent)!important;background:var(--bpc-137-accent-soft-2)!important}

/* ---------- Dashboard range picker ---------- */
.bpc-dashboard-range-popover{width:min(900px,calc(100vw - 22px))!important;border:1px solid var(--bpc-137-border)!important;border-radius:15px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 18px 50px rgba(15,23,42,.17)!important}
.bpc-dashboard-popup-main{min-height:0!important}
.bpc-dashboard-presets{width:185px!important;flex:0 0 185px!important;padding:10px!important;border-left:1px solid var(--bpc-137-border-soft)!important;gap:3px!important}
.bpc-dashboard-preset{padding:9px 11px!important;border-radius:8px!important;font-size:13px!important;font-weight:650!important;color:var(--bpc-137-text)!important}
.bpc-dashboard-preset:hover{background:var(--bpc-137-surface-2)!important}.bpc-dashboard-preset.bpc-active{background:var(--bpc-137-accent-soft)!important;color:var(--bpc-137-accent)!important;font-weight:800!important}
.bpc-dashboard-calendars{padding:12px 14px 10px!important}
.bpc-dashboard-range-hint{margin:0 0 8px!important;padding:7px 10px!important;border:1px solid var(--bpc-137-border-soft)!important;border-radius:8px!important;background:var(--bpc-137-surface-2)!important;color:var(--bpc-137-muted)!important;font-size:12px!important;font-weight:700!important;text-align:center!important}
.bpc-dashboard-months{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important}
.bpc-dashboard-month-block{min-width:320px!important;width:100%!important}
.bpc-dashboard-month-head{grid-template-columns:34px minmax(0,1fr) 34px!important;gap:6px!important;margin-bottom:7px!important}
.bpc-dashboard-selects{display:grid!important;grid-template-columns:minmax(0,1.3fr) minmax(82px,.75fr)!important;gap:6px!important;width:100%!important}
.bpc-dashboard-month,.bpc-dashboard-year{width:100%!important;min-width:0!important;height:36px!important;font-size:12.5px!important}
.bpc-dashboard-nav{position:relative!important;z-index:3!important;width:32px!important;height:32px!important;padding:0!important;border:1px solid var(--bpc-137-border)!important;border-radius:8px!important;background:var(--bpc-137-surface-2)!important;color:#334155!important;font-size:22px!important;line-height:1!important;cursor:pointer!important;pointer-events:auto!important}
.bpc-dashboard-nav:hover{border-color:var(--bpc-137-accent)!important;background:var(--bpc-137-accent-soft-2)!important;color:var(--bpc-137-accent)!important}
.bpc-dashboard-weekdays,.bpc-dashboard-days{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:0!important;text-align:center!important}
.bpc-dashboard-weekdays{margin-bottom:4px!important;padding-bottom:5px!important;border-bottom:1px solid var(--bpc-137-border-soft)!important;color:var(--bpc-137-muted)!important;font-size:9.2px!important;font-weight:800!important;letter-spacing:-.45px!important}
.bpc-dashboard-weekdays span{display:flex!important;align-items:center!important;justify-content:center!important;min-height:25px!important;padding:2px 0!important;white-space:nowrap!important;overflow:visible!important}
.bpc-dashboard-day{height:37px!important;min-height:37px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--bpc-137-text)!important;font-size:13px!important;font-weight:650!important;transition:background .1s ease,color .1s ease!important}
.bpc-dashboard-day:hover{background:var(--bpc-137-surface-2)!important;border-radius:7px!important}
.bpc-dashboard-day.bpc-off{color:#a0adbd!important;opacity:.82!important}
/* Every middle day of a selected range has both a visible strip and accent-colored number. */
.bpc-dashboard-day.bpc-in-range{background:var(--bpc-137-accent-soft)!important;color:var(--bpc-137-accent)!important;font-weight:800!important;border-radius:0!important;opacity:1!important}
.bpc-dashboard-day.bpc-off.bpc-in-range{color:color-mix(in srgb,var(--bpc-137-accent) 72%,#64748b)!important;opacity:1!important}
.bpc-dashboard-day.bpc-range-start,.bpc-dashboard-day.bpc-range-end{position:relative!important;z-index:2!important;background:var(--bpc-137-accent)!important;color:#fff!important;font-weight:850!important;border-radius:9px!important;box-shadow:0 5px 13px color-mix(in srgb,var(--bpc-137-accent) 18%,transparent)!important;opacity:1!important}
.bpc-dashboard-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end):not(.bpc-in-range){background:transparent!important;color:var(--bpc-137-text)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bpc-137-accent) 50%,transparent)!important;border-radius:7px!important}
.bpc-dashboard-day.bpc-today.bpc-in-range{box-shadow:none!important}
.bpc-dashboard-today{margin-top:7px!important;padding:4px 0!important;font-size:12px!important;color:var(--bpc-137-muted)!important}
.bpc-dashboard-actions{padding:9px 12px!important;border-top:1px solid var(--bpc-137-border-soft)!important}
.bpc-dashboard-actions button{height:36px!important;padding:0 14px!important;border-radius:9px!important;font-size:12.5px!important;font-weight:750!important}.bpc-dashboard-apply{background:var(--bpc-137-accent)!important;border-color:var(--bpc-137-accent)!important;color:#fff!important}.bpc-dashboard-cancel{background:#fff!important;border-color:var(--bpc-137-border)!important;color:var(--bpc-137-text)!important}

@media(max-width:940px){
    .bpc-dashboard-range-popover{width:min(700px,calc(100vw - 16px))!important;max-height:88vh!important;overflow:auto!important}
    .bpc-dashboard-popup-main{flex-direction:column!important}
    .bpc-dashboard-presets{width:auto!important;flex:auto!important;border-left:0!important;border-bottom:1px solid var(--bpc-137-border-soft)!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
    .bpc-dashboard-months{grid-template-columns:1fr!important}
    .bpc-dashboard-month-block{min-width:0!important}
    .bpc-dashboard-month-block:nth-child(2){display:none!important}
}
@media(max-width:560px){
    .bpc-calendar,.bpc-calendar-inline{width:min(100%,calc(100vw - 8px))!important;min-width:0!important;max-width:100%!important;padding:9px!important}
    .bookly-js-datepicker-calendar .bpc-calendar-inline,.bookly-js-datepicker-calendar.bpc-bookly-shell .bpc-calendar-inline{min-width:0!important;max-width:100%!important}
    .bpc-head{grid-template-columns:34px minmax(0,1fr) 34px!important;gap:4px!important}
    .bpc-head button{width:32px!important;height:34px!important;min-height:34px!important;font-size:20px!important}
    .bpc-caption-selects{gap:4px!important;grid-template-columns:minmax(0,1.35fr) minmax(74px,.75fr)!important}
    .bpc-month-select,.bpc-year-select{height:34px!important;font-size:11.8px!important;padding-right:8px!important;padding-left:30px!important;background-position:9px 50%!important}
    .bpc-weekdays{font-size:clamp(7.5px,2.05vw,9.2px)!important;letter-spacing:-.55px!important}
    .bpc-day,.bpc-empty{width:33px!important;height:33px!important;min-width:33px!important;min-height:33px!important}.bpc-day{font-size:12.2px!important}
    .bpc-dashboard-presets{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bpc-dashboard-calendars{padding:9px!important}.bpc-dashboard-weekdays{font-size:8.5px!important}.bpc-dashboard-day{height:35px!important;min-height:35px!important;font-size:12px!important}
}


/* ========================================================================== 
   BPC 1.3.8 — real Bookly Select2 + stable range geometry
   ========================================================================== */
/* Native selects are only a fallback. Once BooklySelect2 initializes they are hidden. */
.bpc-calendar .booklySelect2-container,
.bpc-dashboard-range-popover .booklySelect2-container,
.bpc-calendar .select2-container,
.bpc-dashboard-range-popover .select2-container{
    width:100%!important;min-width:0!important;display:block!important;font-family:inherit!important;direction:rtl!important
}
.bpc-calendar .booklySelect2-container .booklySelect2-selection--single,
.bpc-dashboard-range-popover .booklySelect2-container .booklySelect2-selection--single,
.bpc-calendar .select2-container .select2-selection--single,
.bpc-dashboard-range-popover .select2-container .select2-selection--single{
    height:38px!important;min-height:38px!important;border:1px solid var(--bpc-137-border)!important;border-radius:9px!important;background:#fff!important;box-shadow:none!important;display:flex!important;align-items:center!important;position:relative!important
}
.bpc-calendar .booklySelect2-selection__rendered,
.bpc-dashboard-range-popover .booklySelect2-selection__rendered,
.bpc-calendar .select2-selection__rendered,
.bpc-dashboard-range-popover .select2-selection__rendered{
    width:100%!important;line-height:36px!important;padding:0 11px 0 30px!important;text-align:right!important;color:var(--bpc-137-text)!important;font-size:13px!important;font-weight:700!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important
}
.bpc-calendar .booklySelect2-selection__arrow,
.bpc-dashboard-range-popover .booklySelect2-selection__arrow,
.bpc-calendar .select2-selection__arrow,
.bpc-dashboard-range-popover .select2-selection__arrow{
    position:absolute!important;left:8px!important;right:auto!important;top:50%!important;transform:translateY(-50%)!important;width:18px!important;height:18px!important
}
.bpc-calendar .booklySelect2-dropdown,
.bpc-dashboard-range-popover .booklySelect2-dropdown,
.bpc-calendar .select2-dropdown,
.bpc-dashboard-range-popover .select2-dropdown{
    border:1px solid var(--bpc-137-border)!important;border-radius:10px!important;background:#fff!important;box-shadow:0 12px 28px rgba(15,23,42,.16)!important;overflow:hidden!important;font-family:inherit!important;direction:rtl!important;z-index:1000005!important
}
.bpc-calendar .booklySelect2-results__option,
.bpc-dashboard-range-popover .booklySelect2-results__option,
.bpc-calendar .select2-results__option,
.bpc-dashboard-range-popover .select2-results__option{
    min-height:34px!important;padding:7px 12px!important;font-size:13px!important;line-height:20px!important;text-align:right!important;color:var(--bpc-137-text)!important;background:#fff!important
}
.bpc-calendar .booklySelect2-results__option--highlighted[aria-selected],
.bpc-dashboard-range-popover .booklySelect2-results__option--highlighted[aria-selected],
.bpc-calendar .select2-results__option--highlighted[aria-selected],
.bpc-dashboard-range-popover .select2-results__option--highlighted[aria-selected]{
    background:var(--bpc-137-accent)!important;color:#fff!important
}
.bpc-calendar .booklySelect2-results__option[aria-selected=true],
.bpc-dashboard-range-popover .booklySelect2-results__option[aria-selected=true],
.bpc-calendar .select2-results__option[aria-selected=true],
.bpc-dashboard-range-popover .select2-results__option[aria-selected=true]{font-weight:800!important}
.bpc-calendar .booklySelect2-search__field,
.bpc-dashboard-range-popover .booklySelect2-search__field,
.bpc-calendar .select2-search__field,
.bpc-dashboard-range-popover .select2-search__field{
    direction:rtl!important;text-align:right!important;border:1px solid var(--bpc-137-border)!important;border-radius:7px!important;outline:none!important;padding:6px 8px!important;font-family:inherit!important
}

/* Arrows are SVGs so their visual center does not depend on font glyph metrics. */
.bpc-head>button,.bpc-dashboard-nav{
    padding:0!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:0!important
}
.bpc-head>button svg,.bpc-dashboard-nav svg{width:19px!important;height:19px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:2.4!important;stroke-linecap:round!important;stroke-linejoin:round!important;margin:auto!important}

/* Dashboard range cells: fixed geometry and identical typography in every state. */
.bpc-dashboard-days{gap:0!important;align-items:stretch!important}
.bpc-dashboard-day{
    box-sizing:border-box!important;width:100%!important;max-width:none!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
    font-family:inherit!important;font-size:13.5px!important;font-weight:650!important;line-height:1!important;
    color:var(--bpc-137-text)!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;opacity:1!important
}
.bpc-dashboard-day.bpc-off{color:#9aa8ba!important;opacity:1!important;font-size:13.5px!important;font-weight:650!important}
.bpc-dashboard-day.bpc-in-range{
    background:var(--bpc-137-accent-soft)!important;color:var(--bpc-137-text)!important;
    font-family:inherit!important;font-size:13.5px!important;font-weight:650!important;line-height:1!important;border-radius:0!important;box-shadow:none!important
}
.bpc-dashboard-day.bpc-off.bpc-in-range{color:#748399!important;font-size:13.5px!important;font-weight:650!important}
.bpc-dashboard-day.bpc-range-start,.bpc-dashboard-day.bpc-range-end{
    background:var(--bpc-137-accent)!important;color:#fff!important;
    font-family:inherit!important;font-size:13.5px!important;font-weight:750!important;line-height:1!important;
    border-radius:9px!important;box-shadow:none!important
}
.bpc-dashboard-day.bpc-range-start.bpc-range-end{border-radius:9px!important}
.bpc-dashboard-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end){font-size:13.5px!important;font-weight:650!important}

/* Keep the two month headers aligned after Select2 replaces the selects. */
.bpc-dashboard-selects,.bpc-caption-selects{align-items:center!important;min-width:0!important}
.bpc-dashboard-selects>.booklySelect2-container,.bpc-dashboard-selects>.select2-container,
.bpc-caption-selects>.booklySelect2-container,.bpc-caption-selects>.select2-container{flex:1 1 0!important;min-width:0!important}


/* ========================================================================== 
   BPC 1.3.9 — single Select2 control + invariant Persian typography
   ========================================================================== */
/* Bookly's own hidden-accessible rule is scoped to #bookly-tbs. Our frontend
   calendar is outside that wrapper, so provide the same accessibility hiding
   here. This is the key rule that prevents native + Select2 duplicate controls. */
.bpc-calendar .booklySelect2-hidden-accessible,
.bpc-dashboard-range-popover .booklySelect2-hidden-accessible,
.bpc-calendar select.bpc-select-enhanced,
.bpc-dashboard-range-popover select.bpc-select-enhanced{
    border:0!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    height:1px!important;
    width:1px!important;
    margin:-1px!important;
    overflow:hidden!important;
    padding:0!important;
    position:absolute!important;
    white-space:nowrap!important;
    background:none!important;
    box-shadow:none!important;
}

/* Minimal unscoped BooklySelect2 primitives, required on frontend because
   Bookly normally ships these styles under #bookly-tbs only. */
.bpc-calendar .booklySelect2-container,
.bpc-dashboard-range-popover .booklySelect2-container{
    box-sizing:border-box!important;
    display:block!important;
    margin:0!important;
    position:relative!important;
    vertical-align:middle!important;
    width:100%!important;
    min-width:0!important;
    direction:rtl!important;
    font-family:inherit!important;
}
.bpc-calendar .booklySelect2-container .selection,
.bpc-dashboard-range-popover .booklySelect2-container .selection{display:block!important;width:100%!important}
.bpc-calendar .booklySelect2-dropdown,
.bpc-dashboard-range-popover .booklySelect2-dropdown{
    box-sizing:border-box!important;
    display:block!important;
    position:absolute!important;
    left:-100000px;
    width:100%!important;
    z-index:1000008!important;
}
.bpc-calendar .booklySelect2-container--open .booklySelect2-dropdown,
.bpc-dashboard-range-popover .booklySelect2-container--open .booklySelect2-dropdown{left:0!important}
.bpc-calendar .booklySelect2-results,
.bpc-dashboard-range-popover .booklySelect2-results{display:block!important}
.bpc-calendar .booklySelect2-results__options,
.bpc-dashboard-range-popover .booklySelect2-results__options{list-style:none!important;margin:0!important;padding:4px!important;max-height:260px!important;overflow-y:auto!important}
.bpc-calendar .booklySelect2-search--dropdown,
.bpc-dashboard-range-popover .booklySelect2-search--dropdown{display:block!important;padding:6px!important}
.bpc-calendar .booklySelect2-search--dropdown.booklySelect2-search--hide,
.bpc-dashboard-range-popover .booklySelect2-search--dropdown.booklySelect2-search--hide{display:none!important}

/* One immutable typography for every date state. Selection changes only color,
   never font family, size, weight, spacing or numeral shaping. */
.bpc-day,
.bpc-day.bpc-active,
.bpc-dashboard-day,
.bpc-dashboard-day.bpc-off,
.bpc-dashboard-day.bpc-in-range,
.bpc-dashboard-day.bpc-off.bpc-in-range,
.bpc-dashboard-day.bpc-range-start,
.bpc-dashboard-day.bpc-range-end,
.bpc-dashboard-day.bpc-today{
    font-family:inherit!important;
    font-size:14px!important;
    font-weight:600!important;
    font-style:normal!important;
    font-stretch:normal!important;
    line-height:1!important;
    letter-spacing:0!important;
    font-variant:normal!important;
    font-synthesis:none!important;
    text-indent:0!important;
}
.bpc-day{font-size:14px!important;font-weight:600!important}
.bpc-day.bpc-active{font-size:14px!important;font-weight:600!important}

/* Month/year typography is identical before and after enhancement/selection. */
.bpc-month-select,.bpc-year-select,
.bpc-dashboard-month,.bpc-dashboard-year,
.bpc-calendar .booklySelect2-selection__rendered,
.bpc-dashboard-range-popover .booklySelect2-selection__rendered,
.bpc-calendar .booklySelect2-results__option,
.bpc-dashboard-range-popover .booklySelect2-results__option{
    font-family:inherit!important;
    font-size:14px!important;
    font-weight:600!important;
    font-style:normal!important;
    line-height:1.45!important;
    letter-spacing:0!important;
    font-variant:normal!important;
    font-synthesis:none!important;
}
.bpc-calendar .booklySelect2-selection__rendered,
.bpc-dashboard-range-popover .booklySelect2-selection__rendered{
    line-height:36px!important;
    height:36px!important;
    display:block!important;
    padding:0 12px 0 32px!important;
    color:var(--bpc-137-text)!important;
    text-align:right!important;
}
.bpc-calendar .booklySelect2-results__option[aria-selected=true],
.bpc-dashboard-range-popover .booklySelect2-results__option[aria-selected=true],
.bpc-calendar .booklySelect2-results__option--highlighted[aria-selected],
.bpc-dashboard-range-popover .booklySelect2-results__option--highlighted[aria-selected]{font-weight:600!important}

/* Range: professional individual chips rather than long broken bars. */
.bpc-dashboard-days{gap:2px!important}
.bpc-dashboard-day{
    width:calc(100% - 4px)!important;
    height:38px!important;
    min-height:38px!important;
    margin:2px!important;
    border-radius:8px!important;
    background:transparent!important;
}
.bpc-dashboard-day.bpc-in-range{
    background:var(--bpc-137-accent-soft)!important;
    color:var(--bpc-137-text)!important;
    border-radius:8px!important;
}
.bpc-dashboard-day.bpc-range-start,
.bpc-dashboard-day.bpc-range-end{
    background:var(--bpc-137-accent)!important;
    color:#fff!important;
    border-radius:9px!important;
    box-shadow:0 3px 10px color-mix(in srgb,var(--bpc-137-accent) 18%,transparent)!important;
}
.bpc-dashboard-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end):not(.bpc-in-range){
    background:#fff!important;
    box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--bpc-137-accent) 48%,transparent)!important;
}

/* Navigation buttons: force geometric center independent of RTL/font rules. */
.bpc-head>button,.bpc-dashboard-nav{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:0!important;
    text-align:center!important;
}
.bpc-head>button svg,.bpc-dashboard-nav svg{
    display:block!important;
    position:static!important;
    width:18px!important;
    height:18px!important;
    margin:0!important;
    transform:none!important;
}

@media(max-width:560px){
    .bpc-day,.bpc-day.bpc-active,.bpc-dashboard-day,.bpc-dashboard-day.bpc-in-range,.bpc-dashboard-day.bpc-range-start,.bpc-dashboard-day.bpc-range-end{font-size:12.5px!important;font-weight:600!important}
    .bpc-month-select,.bpc-year-select,.bpc-dashboard-month,.bpc-dashboard-year,.bpc-calendar .booklySelect2-selection__rendered,.bpc-dashboard-range-popover .booklySelect2-selection__rendered{font-size:12.5px!important;font-weight:600!important}
}


/* ==========================================================================
   BPC 1.3.10 — BooklySelect2 open/dropdown positioning fix
   ========================================================================== */
/* BooklySelect2 appends the open dropdown to dropdownParent (our calendar).
   It must be allowed to escape the calendar card. */
.bpc-calendar.bpc-has-bookly-select2,
.bpc-calendar.bpc-select-open,
.bpc-dashboard-range-popover.bpc-has-bookly-select2,
.bpc-dashboard-range-popover.bpc-select-open{
    overflow:visible!important;
}
/* Only the selection containers inside the caption are relative/full-width. */
.bpc-caption-selects > .booklySelect2-container,
.bpc-dashboard-selects > .booklySelect2-container{
    position:relative!important;
    width:100%!important;
    min-width:0!important;
    z-index:21!important;
}
/* The separate dropdown container created by Select2 must stay absolutely
   positioned. JS supplies an !important width equal to the clicked control. */
.bpc-calendar > .booklySelect2-container--open,
.bpc-dashboard-range-popover > .booklySelect2-container--open{
    position:absolute!important;
    z-index:1000016!important;
    max-width:calc(100% - 16px)!important;
}
.bpc-calendar > .booklySelect2-container--open .booklySelect2-dropdown,
.bpc-dashboard-range-popover > .booklySelect2-container--open .booklySelect2-dropdown{
    left:0!important;
    visibility:visible!important;
    opacity:1!important;
    pointer-events:auto!important;
    z-index:1000017!important;
}
.bpc-calendar .booklySelect2-selection--single,
.bpc-dashboard-range-popover .booklySelect2-selection--single{
    cursor:pointer!important;
    pointer-events:auto!important;
}


/* ========================================================================== 
   BPC 1.3.13 — customer birthday picker (legacy daterangepicker)
   The daterangepicker popup is appended to <body>, not inside the customer
   modal. Scope directly to the dedicated picker class.
   ========================================================================== */
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker{
    width:min(420px,calc(100vw - 24px))!important;
    min-width:min(420px,calc(100vw - 24px))!important;
    max-width:min(420px,calc(100vw - 24px))!important;
    padding:12px!important;
    border:1px solid #e2e8f0!important;
    border-radius:14px!important;
    background:#fff!important;
    box-shadow:0 18px 45px rgba(15,23,42,.18)!important;
    overflow:visible!important;
    direction:rtl!important;
    font-family:inherit!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .drp-calendar.left{
    display:block!important;
    float:none!important;
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    margin:0!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .drp-calendar.right,
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .drp-buttons,
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .drp-selected{
    display:none!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .calendar-table{
    width:100%!important;
    max-width:100%!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    background:#fff!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .calendar-table table{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
    border-collapse:separate!important;
    border-spacing:4px 5px!important;
    margin:0!important;
    direction:rtl!important;
}
/* Do not give colspan month header the same 1/7 width as day columns. */
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker thead tr:first-child th{
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    height:42px!important;
    line-height:42px!important;
    padding:0!important;
    vertical-align:middle!important;
    border-radius:9px!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:650!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker thead tr:first-child th.prev,
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker thead tr:first-child th.next{
    width:42px!important;
    min-width:42px!important;
    max-width:42px!important;
    background:#f8fafc!important;
    border:1px solid #e2e8f0!important;
    cursor:pointer!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker thead tr:first-child th.prev:hover,
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker thead tr:first-child th.next:hover{
    background:#f1f5f9!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker thead tr:first-child th.month{
    width:auto!important;
    padding:0 4px!important;
    white-space:nowrap!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .monthselect,
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .yearselect{
    display:inline-block!important;
    box-sizing:border-box!important;
    width:47%!important;
    max-width:47%!important;
    min-width:0!important;
    height:38px!important;
    margin:0 1%!important;
    padding:0 8px!important;
    border:1px solid #dbe3eb!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#1f2937!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:600!important;
    text-align:center!important;
    vertical-align:middle!important;
}
/* Weekday row and day cells are the only true seven equal columns. */
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker thead tr:last-child th,
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker tbody td{
    box-sizing:border-box!important;
    width:14.285714%!important;
    min-width:0!important;
    max-width:none!important;
    text-align:center!important;
    vertical-align:middle!important;
    font-family:inherit!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker thead tr:last-child th{
    height:34px!important;
    line-height:1.15!important;
    padding:4px 1px!important;
    border:0!important;
    border-radius:0!important;
    color:#64748b!important;
    font-size:10.5px!important;
    font-weight:700!important;
    white-space:nowrap!important;
    cursor:default!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker tbody td{
    height:40px!important;
    line-height:40px!important;
    padding:0!important;
    border:1px solid transparent!important;
    border-radius:9px!important;
    color:#172033!important;
    font-size:13.5px!important;
    font-weight:600!important;
    font-variant-numeric:tabular-nums!important;
    cursor:pointer!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker tbody td.off{
    color:#a5afbd!important;
    background:transparent!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker tbody td.available:hover{
    background:#f1f5f9!important;
    border-color:#e2e8f0!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker tbody td.active,
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker tbody td.active:hover{
    background:var(--bookly-main-color,#f4662b)!important;
    border-color:var(--bookly-main-color,#f4662b)!important;
    color:#fff!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .prev span,
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .next span{
    display:inline-block!important;
    position:static!important;
    margin:0!important;
    padding:4px!important;
    border-color:#334155!important;
    vertical-align:middle!important;
}
@media(max-width:480px){
    .daterangepicker.bpc-daterangepicker.bpc-single-date-picker{
        width:calc(100vw - 16px)!important;
        min-width:calc(100vw - 16px)!important;
        max-width:calc(100vw - 16px)!important;
        padding:8px!important;
    }
    .daterangepicker.bpc-daterangepicker.bpc-single-date-picker tbody td{
        height:36px!important;
        line-height:36px!important;
        font-size:12.5px!important;
    }
    .daterangepicker.bpc-daterangepicker.bpc-single-date-picker thead tr:last-child th{
        font-size:9.5px!important;
    }
}

/* 1.3.15 — deterministic RTL chevrons for legacy daterangepicker.
 * Do not rotate Bookly's existing border shape as a whole: some themes alter its
 * border/padding and it becomes an L-shaped glyph. Rebuild the chevron geometry. */
.daterangepicker.bpc-daterangepicker .prev span,
.daterangepicker.bpc-daterangepicker .next span{
    display:inline-block!important;
    width:9px!important;
    height:9px!important;
    padding:0!important;
    margin:0!important;
    border:solid #334155!important;
    border-width:0 2px 2px 0!important;
    border-radius:0!important;
    transform-origin:center!important;
}
/* In RTL: previous month is on the right and points right; next is on the left. */
.daterangepicker.bpc-daterangepicker .prev span{transform:rotate(-45deg)!important}
.daterangepicker.bpc-daterangepicker .next span{transform:rotate(135deg)!important}

/* Customer birthday month/year: real BooklySelect2 with a compact searchable
 * year dropdown. The original selects are hidden only after enhancement. */
.daterangepicker.bpc-single-date-picker select.bpc-single-select-enhanced,
.daterangepicker.bpc-single-date-picker .booklySelect2-hidden-accessible{
    border:0!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;
    height:1px!important;width:1px!important;margin:-1px!important;overflow:hidden!important;
    padding:0!important;position:absolute!important;white-space:nowrap!important
}
.daterangepicker.bpc-single-date-picker .month{white-space:nowrap!important;text-align:center!important}
.daterangepicker.bpc-single-date-picker .month>.booklySelect2-container{
    display:inline-block!important;position:relative!important;width:47%!important;min-width:0!important;margin:0 1%!important;
    font-family:inherit!important;direction:rtl!important
}
.daterangepicker.bpc-single-date-picker .booklySelect2-selection--single{
    display:block!important;height:38px!important;border:1px solid #dbe3eb!important;border-radius:9px!important;
    background:#fff!important;cursor:pointer!important
}
.daterangepicker.bpc-single-date-picker .booklySelect2-selection__rendered{
    display:block!important;height:38px!important;line-height:38px!important;padding:0 10px 0 28px!important;
    color:#1f2937!important;font-family:inherit!important;font-size:13px!important;font-weight:600!important;text-align:center!important
}
.daterangepicker.bpc-single-date-picker .booklySelect2-selection__arrow{
    position:absolute!important;left:8px!important;right:auto!important;top:0!important;width:20px!important;height:38px!important
}
.daterangepicker.bpc-single-date-picker>.booklySelect2-container--open{
    position:absolute!important;z-index:1000025!important;max-width:260px!important
}
.daterangepicker.bpc-single-date-picker .booklySelect2-dropdown{
    background:#fff!important;border:1px solid #d9dee6!important;border-radius:10px!important;
    box-shadow:0 12px 28px rgba(15,23,42,.18)!important;overflow:hidden!important;font-family:inherit!important
}
.daterangepicker.bpc-single-date-picker .booklySelect2-results__options{
    list-style:none!important;margin:0!important;padding:4px!important;max-height:280px!important;overflow-y:auto!important
}
.daterangepicker.bpc-single-date-picker .booklySelect2-results__option{
    padding:7px 10px!important;border-radius:7px!important;font-size:13px!important;font-weight:500!important;text-align:right!important
}
.daterangepicker.bpc-single-date-picker .booklySelect2-search--dropdown{padding:6px!important}
.daterangepicker.bpc-single-date-picker .booklySelect2-search__field{
    width:100%!important;height:34px!important;border:1px solid #dbe3eb!important;border-radius:7px!important;padding:0 9px!important;direction:rtl!important
}


/* ========================================================================== 
   BPC 1.3.16 — universal single-date admin picker
   Customers, Discounts and any other Bookly singleDatePicker share one compact
   presentation. Range pickers keep their dedicated two-month layouts.
   ========================================================================== */
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker{
    width:min(420px,calc(100vw - 24px))!important;
    min-width:min(420px,calc(100vw - 24px))!important;
    max-width:min(420px,calc(100vw - 24px))!important;
    overflow:visible!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .drp-calendar.left{
    width:100%!important;max-width:100%!important;float:none!important;padding:0!important;margin:0!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .drp-calendar.right,
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .drp-buttons,
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .drp-selected{display:none!important}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .calendar-table table{
    width:100%!important;table-layout:fixed!important;border-collapse:separate!important;border-spacing:4px 5px!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker thead tr:last-child th,
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker tbody td{
    box-sizing:border-box!important;width:14.285714%!important;min-width:0!important;max-width:none!important;
    font-family:inherit!important;font-variant-numeric:tabular-nums!important;text-align:center!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker tbody td{
    height:40px!important;line-height:40px!important;padding:0!important;border-radius:9px!important;
    font-size:13.5px!important;font-weight:600!important;
}
.daterangepicker.bpc-daterangepicker.bpc-single-date-picker .month>.booklySelect2-container{
    vertical-align:middle!important;
}
@media(max-width:480px){
    .daterangepicker.bpc-daterangepicker.bpc-single-date-picker{
        width:calc(100vw - 16px)!important;min-width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;
    }
}

/* Bookly Settings > Holidays: genuine Jalali annual calendar (1.3.17+). */
.bookly-js-annual-calendar.bpc-holidays-annual{padding:18px!important;direction:rtl;overflow:visible!important}
.bpc-holidays-nav-controls{display:flex;align-items:center;justify-content:center;gap:10px;direction:rtl;margin:12px auto 18px}
.bpc-holidays-nav-btn{width:44px;height:42px;display:flex;align-items:center;justify-content:center;border:1px solid #dbe3eb;border-radius:10px;background:#fff;color:#334155;cursor:pointer;padding:0}
.bpc-holidays-nav-btn:hover{background:#f8fafc;border-color:#cbd5e1}.bpc-holidays-nav-btn svg{width:20px;height:20px;display:block}
.bpc-holidays-year{height:42px;min-width:150px;border:1px solid #dbe3eb;border-radius:10px;background:#fff;text-align:center;font:inherit;color:inherit;padding:0 12px}
.bpc-holidays-months{display:grid;grid-template-columns:repeat(3,minmax(300px,1fr));gap:26px 30px;align-items:start}
.bpc-holiday-month{min-width:0;border:1px solid #e6ebf1;border-radius:14px;background:#fff;padding:14px 12px 12px;box-shadow:0 2px 8px rgba(15,23,42,.03)}
.bpc-holiday-month h3{margin:0 0 10px;text-align:center;font-size:16px;font-weight:700;color:#1e293b}
.bpc-holiday-weekdays,.bpc-holiday-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;direction:rtl;text-align:center}
.bpc-holiday-weekdays{border-bottom:1px solid #eef2f6;margin-bottom:5px;padding-bottom:5px}
.bpc-holiday-weekdays span{font-size:10.5px;font-weight:600;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:clip;padding:4px 0}
.bpc-holiday-day{height:36px;border:0;border-radius:8px;background:transparent;color:#172033;font:inherit;font-size:14px;font-weight:500;display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:background .12s ease,color .12s ease,box-shadow .12s ease}
.bpc-holiday-day:hover{background:#f1f5f9}.bpc-holiday-day.bpc-off-month{color:#b5c0ce;cursor:default;pointer-events:none}
.bpc-holiday-day.bpc-today:not(.bpc-holiday-set){box-shadow:inset 0 0 0 1px var(--bookly-main-color,#ff672f)}
.bpc-holiday-day.bpc-holiday-set{background:color-mix(in srgb,var(--bookly-main-color,#ff672f) 14%,white);color:var(--bookly-main-color,#ff672f);font-weight:700}
.bpc-holiday-day.bpc-in-range{background:color-mix(in srgb,var(--bookly-main-color,#ff672f) 12%,white);color:#172033}
.bpc-holiday-day.bpc-range-start{background:var(--bookly-main-color,#ff672f);color:#fff;box-shadow:none}
.bpc-holiday-popover-content{min-width:230px;padding:8px 4px;direction:rtl;text-align:right}.bpc-holiday-check{display:flex;align-items:center;gap:8px;padding:8px 4px;margin:0;cursor:pointer}.bpc-holiday-check input{margin:0}
.bpc-holiday-popover-actions{border-top:1px solid #e5e7eb;margin-top:8px;padding-top:8px;text-align:left}.bpc-holiday-fallback-popover{position:absolute;z-index:1000001;background:#fff;border:1px solid #dbe3eb;border-radius:10px;box-shadow:0 12px 28px rgba(15,23,42,.18);padding:10px}
.bookly-js-holidays-nav .select2-container,.bookly-js-holidays-nav .bookly-select2-container{min-width:150px!important;font-family:inherit!important}
@media(max-width:1180px){.bpc-holidays-months{grid-template-columns:repeat(2,minmax(300px,1fr))}}
@media(max-width:760px){.bookly-js-annual-calendar.bpc-holidays-annual{padding:10px!important}.bpc-holidays-months{grid-template-columns:1fr;gap:14px}.bpc-holiday-month{padding:12px 8px}.bpc-holiday-weekdays span{font-size:9.5px}.bpc-holiday-day{height:34px;font-size:13px}}


/* 1.3.18 — Settings > Holidays: stable annual Jalali calendar takeover. */
.bookly-js-holidays-nav{position:relative!important;overflow:visible!important;z-index:20}
.bookly-js-holidays-nav .bpc-holidays-nav-controls{position:relative;z-index:21}
.bookly-js-holidays-nav .bpc-holidays-year + .select2-container,
.bookly-js-holidays-nav .bpc-holidays-year + .bookly-select2-container,
.bpc-holidays-year-select2{width:160px!important;min-width:160px!important;max-width:160px!important;font-family:inherit!important}
.bookly-js-holidays-nav .select2-selection,
.bookly-js-holidays-nav .bookly-select2-selection,
.bpc-holidays-year-select2 .select2-selection,
.bpc-holidays-year-select2 .bookly-select2-selection{height:42px!important;min-height:42px!important;border:1px solid #dbe3eb!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;font-family:inherit!important}
.bookly-js-holidays-nav .select2-selection__rendered,
.bookly-js-holidays-nav .bookly-select2-selection__rendered,
.bpc-holidays-year-select2 .select2-selection__rendered,
.bpc-holidays-year-select2 .bookly-select2-selection__rendered{height:40px!important;line-height:40px!important;padding:0 34px 0 34px!important;text-align:center!important;direction:rtl!important;font-family:inherit!important;font-size:16px!important;font-weight:600!important;color:#1f2937!important}
.bpc-holidays-year-dropdown,
.select2-dropdown.bpc-holidays-year-dropdown,
.bookly-select2-dropdown.bpc-holidays-year-dropdown{z-index:1000005!important;width:160px!important;min-width:160px!important;max-width:160px!important;border:1px solid #d8dee7!important;border-radius:12px!important;overflow:hidden!important;box-shadow:0 14px 34px rgba(15,23,42,.18)!important;background:#fff!important;font-family:inherit!important}
.bpc-holidays-year-dropdown .select2-search,
.bpc-holidays-year-dropdown .bookly-select2-search{padding:8px!important;background:#fff!important}
.bpc-holidays-year-dropdown .select2-search__field,
.bpc-holidays-year-dropdown .bookly-select2-search__field{height:36px!important;border:1px solid #dbe3eb!important;border-radius:8px!important;padding:4px 9px!important;font-family:inherit!important;font-size:14px!important;text-align:center!important;direction:rtl!important;outline:0!important}
.bpc-holidays-year-dropdown .select2-results__options,
.bpc-holidays-year-dropdown .bookly-select2-results__options{max-height:260px!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:4px!important}
.bpc-holidays-year-dropdown .select2-results__option,
.bpc-holidays-year-dropdown .bookly-select2-results__option{min-height:36px!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:6px 10px!important;border-radius:7px!important;font-family:inherit!important;font-size:15px!important;font-weight:500!important;line-height:1.4!important;text-align:center!important;direction:rtl!important;color:#1f2937!important}
.bpc-holidays-year-dropdown .select2-results__option--highlighted,
.bpc-holidays-year-dropdown .bookly-select2-results__option--highlighted{background:var(--bookly-main-color,#ff672f)!important;color:#fff!important}
.bpc-holidays-annual .jCalMo,.bpc-holidays-annual .jCal{display:none!important}


/* ========================================================================== 
   BPC 1.3.19 — Holidays year BooklySelect2: bounded, scrollable dropdown.
   Bookly's bundled Select2 uses booklySelect2-* classes (capital S).
   ========================================================================== */
.bookly-js-holidays-nav .bpc-holidays-year-open,
.bookly-js-holidays-nav .booklySelect2-container--open{
    z-index:1000006!important;
}
.bookly-js-holidays-nav .bpc-holidays-year-dropdown,
.bookly-js-holidays-nav .booklySelect2-dropdown.bpc-holidays-year-dropdown{
    position:absolute!important;
    width:160px!important;
    min-width:160px!important;
    max-width:160px!important;
    max-height:340px!important;
    overflow:hidden!important;
    border:1px solid #d8dee7!important;
    border-radius:12px!important;
    background:#fff!important;
    box-shadow:0 14px 34px rgba(15,23,42,.18)!important;
    font-family:inherit!important;
    z-index:1000007!important;
}
.bookly-js-holidays-nav .bpc-holidays-year-dropdown .booklySelect2-search--dropdown{
    display:block!important;
    padding:8px!important;
    background:#fff!important;
    border-bottom:1px solid #eef2f6!important;
}
.bookly-js-holidays-nav .bpc-holidays-year-dropdown .booklySelect2-search__field{
    box-sizing:border-box!important;
    width:100%!important;
    height:36px!important;
    margin:0!important;
    padding:4px 10px!important;
    border:1px solid #dbe3eb!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#172033!important;
    outline:0!important;
    font:500 14px/1.4 inherit!important;
    text-align:center!important;
    direction:rtl!important;
}
.bookly-js-holidays-nav .bpc-holidays-year-dropdown .booklySelect2-results{
    display:block!important;
    overflow:hidden!important;
}
.bookly-js-holidays-nav .bpc-holidays-year-dropdown .booklySelect2-results__options{
    display:block!important;
    list-style:none!important;
    box-sizing:border-box!important;
    max-height:260px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    margin:0!important;
    padding:5px!important;
    scrollbar-width:thin;
}
.bookly-js-holidays-nav .bpc-holidays-year-dropdown .booklySelect2-results__option{
    box-sizing:border-box!important;
    min-height:36px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    margin:0 0 2px!important;
    padding:7px 10px!important;
    border-radius:7px!important;
    background:#fff!important;
    color:#1f2937!important;
    font-family:inherit!important;
    font-size:15px!important;
    font-weight:500!important;
    line-height:1.35!important;
    text-align:center!important;
    direction:rtl!important;
    cursor:pointer!important;
}
.bookly-js-holidays-nav .bpc-holidays-year-dropdown .booklySelect2-results__option[aria-selected="true"]{
    background:#f1f5f9!important;
    color:#111827!important;
    font-weight:700!important;
}
.bookly-js-holidays-nav .bpc-holidays-year-dropdown .booklySelect2-results__option--highlighted[aria-selected]{
    background:var(--bookly-main-color,#ff672f)!important;
    color:#fff!important;
}


/* ========================================================================== 
   BPC 1.3.20 — Holidays year picker: dedicated controlled dropdown.
   Avoid native/select2 dropdowns entirely so 201 years can never expand over page.
   ========================================================================== */
.bpc-holidays-year-picker{position:relative;width:160px;flex:0 0 160px;z-index:1000008}
.bpc-holidays-year-trigger{box-sizing:border-box;width:160px;height:42px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 13px;border:1px solid #dbe3eb;border-radius:10px;background:#fff;color:#1f2937;font-family:inherit;font-size:16px;font-weight:600;line-height:1;cursor:pointer;box-shadow:none}
.bpc-holidays-year-trigger:hover,.bpc-holidays-year-trigger[aria-expanded="true"]{border-color:var(--bookly-main-color,#ff672f);box-shadow:0 0 0 3px color-mix(in srgb,var(--bookly-main-color,#ff672f) 14%,transparent)}
.bpc-holidays-year-trigger span{font:inherit;direction:rtl;font-variant-numeric:tabular-nums}
.bpc-holidays-year-trigger svg{width:17px;height:17px;display:block;flex:0 0 17px;transition:transform .16s ease}
.bpc-holidays-year-trigger[aria-expanded="true"] svg{transform:rotate(180deg)}
.bpc-holidays-year-menu{position:absolute;top:calc(100% + 7px);right:0;box-sizing:border-box;width:160px;max-height:340px;overflow:hidden;border:1px solid #d8dee7;border-radius:12px;background:#fff;box-shadow:0 16px 36px rgba(15,23,42,.18);z-index:1000009;font-family:inherit;direction:rtl}
.bpc-holidays-year-menu[hidden]{display:none!important}
.bpc-holidays-year-search-wrap{padding:8px;border-bottom:1px solid #eef2f6;background:#fff;position:sticky;top:0;z-index:2}
.bpc-holidays-year-search{box-sizing:border-box;width:100%;height:36px;margin:0!important;padding:4px 9px!important;border:1px solid #dbe3eb!important;border-radius:8px!important;background:#fff!important;color:#172033!important;outline:0!important;font-family:inherit!important;font-size:14px!important;font-weight:500!important;text-align:center!important;direction:rtl!important;box-shadow:none!important}
.bpc-holidays-year-search:focus{border-color:var(--bookly-main-color,#ff672f)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--bookly-main-color,#ff672f) 12%,transparent)!important}
.bpc-holidays-year-list{box-sizing:border-box;max-height:276px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:5px;scrollbar-width:thin;background:#fff}
.bpc-holidays-year-option{box-sizing:border-box;position:relative;width:100%;min-height:36px;display:flex;align-items:center;justify-content:center;margin:0 0 2px;padding:7px 28px 7px 10px;border:0;border-radius:7px;background:#fff;color:#1f2937;font-family:inherit;font-size:15px;font-weight:500;line-height:1.35;text-align:center;direction:rtl;cursor:pointer;font-variant-numeric:tabular-nums}
.bpc-holidays-year-option:hover,.bpc-holidays-year-option:focus-visible{background:#f1f5f9;outline:0}
.bpc-holidays-year-option.is-selected{background:color-mix(in srgb,var(--bookly-main-color,#ff672f) 12%,white);color:#111827;font-weight:700}
.bpc-holidays-year-option.is-selected:hover,.bpc-holidays-year-option.is-selected:focus-visible{background:var(--bookly-main-color,#ff672f);color:#fff}
.bpc-year-check{position:absolute;right:9px;top:50%;transform:translateY(-50%);font-family:inherit;font-size:15px;font-weight:800}
.bpc-holidays-year-empty{padding:18px 8px;color:#64748b;font-family:inherit;font-size:13px;text-align:center}
@media(max-width:600px){.bpc-holidays-year-picker,.bpc-holidays-year-trigger{width:138px;flex-basis:138px}.bpc-holidays-year-menu{width:138px}.bpc-holidays-year-trigger{font-size:14px}}

/* ========================================================================== 
   BPC 1.3.24 — BooklyDatatables range picker (Appointments / Packages)
   Compact in-plugin popover, real BooklySelect2 month/year, RTL chevrons.
   ========================================================================== */
.bpc-core-popover{
    box-sizing:border-box!important;
    width:auto!important;
    min-width:0!important;
    overflow:visible!important;
    z-index:100000!important;
}
.bpc-core-range-main{
    box-sizing:border-box!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
}
.bpc-core-calendar-pane{
    box-sizing:border-box!important;
    width:auto!important;
    min-width:0!important;
    max-width:780px!important;
    overflow:visible!important;
}
.bpc-core-range-calendar{
    box-sizing:border-box!important;
    position:relative!important;
    direction:rtl!important;
    width:min(768px,100%)!important;
    min-width:0!important;
    max-width:768px!important;
    padding:12px!important;
    overflow:visible!important;
    border:0!important;
    border-radius:12px!important;
    box-shadow:none!important;
    background:#fff!important;
}
.bpc-core-months{
    display:flex!important;
    flex-wrap:nowrap!important;
    align-items:flex-start!important;
    justify-content:center!important;
    gap:14px!important;
    width:100%!important;
}
.bpc-core-month-block{
    box-sizing:border-box!important;
    flex:0 0 365px!important;
    width:365px!important;
    min-width:365px!important;
    max-width:365px!important;
}
.bpc-core-caption{
    direction:rtl!important;
    display:grid!important;
    grid-template-columns:38px minmax(0,1fr) 38px!important;
    align-items:center!important;
    gap:8px!important;
    margin-bottom:10px!important;
}
.bpc-core-selects{
    direction:rtl!important;
    display:grid!important;
    grid-template-columns:minmax(126px,1.25fr) minmax(90px,.75fr)!important;
    align-items:center!important;
    gap:7px!important;
    min-width:0!important;
}
.bpc-core-month,.bpc-core-year{
    box-sizing:border-box!important;
    width:100%!important;
    min-width:0!important;
    height:38px!important;
    margin:0!important;
    padding:0 10px!important;
    border:1px solid #d9e1ea!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#172033!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:600!important;
    line-height:38px!important;
    text-align:center!important;
    direction:rtl!important;
    box-shadow:none!important;
}
.bpc-core-nav{
    box-sizing:border-box!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    margin:0!important;
    padding:0!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid #d9e1ea!important;
    border-radius:9px!important;
    background:#f8fafc!important;
    color:#334155!important;
    line-height:0!important;
    cursor:pointer!important;
}
.bpc-core-nav:hover{
    border-color:var(--bookly-main-color,#ff672f)!important;
    background:color-mix(in srgb,var(--bookly-main-color,#ff672f) 8%,white)!important;
    color:var(--bookly-main-color,#ff672f)!important;
}
.bpc-core-nav svg{
    display:block!important;
    width:19px!important;
    height:19px!important;
    margin:auto!important;
    fill:none!important;
    stroke:currentColor!important;
    stroke-width:2.35!important;
    stroke-linecap:round!important;
    stroke-linejoin:round!important;
}
.bpc-core-weekdays,.bpc-core-grid{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:2px!important;
}
.bpc-core-weekdays{
    margin-bottom:6px!important;
    padding-bottom:6px!important;
    border-bottom:1px solid #edf1f5!important;
    color:#64748b!important;
    font-family:inherit!important;
    font-size:10px!important;
    font-weight:650!important;
}
.bpc-core-weekdays span{
    min-height:28px!important;
    padding:5px 0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
}
.bpc-core-day{
    box-sizing:border-box!important;
    width:100%!important;
    height:38px!important;
    min-height:38px!important;
    margin:0!important;
    padding:0!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:0!important;
    border-radius:8px!important;
    background:transparent!important;
    color:#172033!important;
    font-family:inherit!important;
    font-size:13.5px!important;
    font-weight:600!important;
    line-height:1!important;
    font-variant-numeric:tabular-nums!important;
    cursor:pointer!important;
}
.bpc-core-day.bpc-off{color:#a5b1c0!important;opacity:1!important}
.bpc-core-day:hover{background:#f3f6f9!important}
.bpc-core-day.bpc-in-range{
    background:color-mix(in srgb,var(--bookly-main-color,#ff672f) 10%,white)!important;
    color:#172033!important;
}
.bpc-core-day.bpc-range-start,.bpc-core-day.bpc-range-end{
    background:var(--bookly-main-color,#ff672f)!important;
    color:#fff!important;
    font-size:13.5px!important;
    font-weight:600!important;
}
.bpc-core-day.bpc-today:not(.bpc-range-start):not(.bpc-range-end){
    box-shadow:inset 0 0 0 1.5px var(--bookly-main-color,#ff672f)!important;
}

/* Real BooklySelect2 for the custom Jalali RangeCalendar. */
.bpc-core-range-calendar select.booklySelect2-hidden-accessible{
    border:0!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    height:1px!important;
    width:1px!important;
    margin:-1px!important;
    overflow:hidden!important;
    padding:0!important;
    position:absolute!important;
    white-space:nowrap!important;
}
.bpc-core-selects>.booklySelect2-container{
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    position:relative!important;
    direction:rtl!important;
    font-family:inherit!important;
}
.bpc-core-selects>.booklySelect2-container .selection{display:block!important;width:100%!important}
.bpc-core-selects>.booklySelect2-container .booklySelect2-selection--single{
    box-sizing:border-box!important;
    display:block!important;
    width:100%!important;
    height:38px!important;
    border:1px solid #d9e1ea!important;
    border-radius:9px!important;
    background:#fff!important;
    box-shadow:none!important;
    cursor:pointer!important;
}
.bpc-core-selects>.booklySelect2-container .booklySelect2-selection__rendered{
    box-sizing:border-box!important;
    height:36px!important;
    line-height:36px!important;
    padding:0 12px 0 30px!important;
    color:#172033!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:600!important;
    text-align:center!important;
    direction:rtl!important;
    font-variant-numeric:tabular-nums!important;
}
.bpc-core-selects>.booklySelect2-container .booklySelect2-selection__arrow{
    position:absolute!important;
    left:7px!important;
    right:auto!important;
    top:0!important;
    width:20px!important;
    height:36px!important;
}
.bpc-core-range-calendar>.booklySelect2-container--open{
    position:absolute!important;
    z-index:1000020!important;
    font-family:inherit!important;
    direction:rtl!important;
}
.bpc-core-range-calendar .bpc-core-select2-dropdown,
.bpc-core-range-calendar>.booklySelect2-container--open .booklySelect2-dropdown{
    box-sizing:border-box!important;
    border:1px solid #d8dee7!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:0 14px 34px rgba(15,23,42,.18)!important;
    overflow:hidden!important;
    font-family:inherit!important;
    direction:rtl!important;
}
.bpc-core-range-calendar .bpc-core-select2-dropdown .booklySelect2-results__options,
.bpc-core-range-calendar>.booklySelect2-container--open .booklySelect2-results__options{
    box-sizing:border-box!important;
    max-height:250px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    margin:0!important;
    padding:4px!important;
    list-style:none!important;
}
.bpc-core-range-calendar .bpc-core-select2-dropdown .booklySelect2-results__option,
.bpc-core-range-calendar>.booklySelect2-container--open .booklySelect2-results__option{
    min-height:34px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding:6px 10px!important;
    border-radius:7px!important;
    background:#fff!important;
    color:#172033!important;
    font-family:inherit!important;
    font-size:13px!important;
    font-weight:500!important;
    text-align:center!important;
    direction:rtl!important;
    cursor:pointer!important;
}
.bpc-core-range-calendar .booklySelect2-results__option[aria-selected="true"]{background:#f1f5f9!important;font-weight:650!important}
.bpc-core-range-calendar .booklySelect2-results__option--highlighted[aria-selected]{background:var(--bookly-main-color,#ff672f)!important;color:#fff!important}
.bpc-core-range-calendar .booklySelect2-search--dropdown{display:block!important;padding:7px!important;border-bottom:1px solid #eef2f6!important}
.bpc-core-range-calendar .booklySelect2-search--dropdown.booklySelect2-search--hide{display:none!important}
.bpc-core-range-calendar .booklySelect2-search__field{
    box-sizing:border-box!important;
    width:100%!important;
    height:34px!important;
    margin:0!important;
    padding:4px 8px!important;
    border:1px solid #d9e1ea!important;
    border-radius:8px!important;
    background:#fff!important;
    color:#172033!important;
    outline:0!important;
    font-family:inherit!important;
    font-size:13px!important;
    text-align:center!important;
    direction:rtl!important;
}

@media(max-width:1180px){
    .bpc-core-calendar-pane{max-width:390px!important}
    .bpc-core-range-calendar{width:390px!important;max-width:390px!important}
    .bpc-core-months{flex-direction:column!important;gap:12px!important}
    .bpc-core-month-block{flex-basis:365px!important;width:365px!important;min-width:365px!important;max-width:365px!important}
}

/* ========================================================================== 
   BPC 1.3.25 — Stable Appointments / Packages RangeCalendar
   No native/select2 lifecycle races: controlled dropdowns + fixed content-area popover.
   ========================================================================== */
.bpc-core-popover{
    box-sizing:border-box!important;
    position:fixed!important;
    inset:auto!important;
    left:var(--bpc-core-left,24px)!important;
    top:var(--bpc-core-top,96px)!important;
    right:auto!important;
    bottom:auto!important;
    transform:none!important;
    translate:none!important;
    max-width:var(--bpc-core-max-width,1040px)!important;
    margin:0!important;
    z-index:99998!important;
    overflow:visible!important;
}
.bpc-core-popover:not(.bpc-core-positioned){visibility:hidden!important}
.bpc-core-popover.bpc-core-positioned{visibility:visible!important}

/* Lock navigation to RTL semantics: previous = right, next = left. */
.bpc-core-caption{
    direction:ltr!important;
    grid-template-columns:38px minmax(0,1fr) 38px!important;
}
.bpc-core-caption>.bpc-core-selects{grid-column:2!important;grid-row:1!important;direction:rtl!important}
.bpc-core-caption>.bpc-core-prev{grid-column:3!important;grid-row:1!important}
.bpc-core-caption>.bpc-core-next{grid-column:1!important;grid-row:1!important}
.bpc-core-nav{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    line-height:0!important;
}
.bpc-core-nav svg{display:block!important;width:20px!important;height:20px!important;margin:0!important}
.bpc-core-nav svg path{fill:none!important;stroke:currentColor!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important}

/* Controlled Select2-like controls. Native select and BooklySelect2 are not used here. */
.bpc-core-selects{
    display:grid!important;
    grid-template-columns:minmax(132px,1.25fr) minmax(104px,.75fr)!important;
    gap:8px!important;
    overflow:visible!important;
}
.bpc-core-dropdown{position:relative!important;min-width:0!important;font-family:inherit!important;direction:rtl!important}
.bpc-core-dropdown-trigger{
    box-sizing:border-box!important;
    width:100%!important;
    height:40px!important;
    min-height:40px!important;
    margin:0!important;
    padding:0 13px 0 34px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    border:1px solid #d7e0ea!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#172033!important;
    box-shadow:none!important;
    font-family:inherit!important;
    font-size:13.5px!important;
    font-weight:650!important;
    line-height:1!important;
    text-align:center!important;
    direction:rtl!important;
    cursor:pointer!important;
    position:relative!important;
    font-variant-numeric:tabular-nums!important;
}
.bpc-core-dropdown-trigger:hover,.bpc-core-dropdown-trigger:focus-visible,.bpc-core-dropdown.is-open .bpc-core-dropdown-trigger{
    outline:0!important;
    border-color:var(--bookly-main-color,#ff672f)!important;
    box-shadow:0 0 0 2px color-mix(in srgb,var(--bookly-main-color,#ff672f) 13%,transparent)!important;
}
.bpc-core-dropdown-trigger>span{overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
.bpc-core-dropdown-trigger>svg{
    position:absolute!important;left:9px!important;top:50%!important;transform:translateY(-50%)!important;
    width:17px!important;height:17px!important;display:block!important;fill:none!important;stroke:#475569!important;stroke-width:1.9!important;stroke-linecap:round!important;stroke-linejoin:round!important
}
.bpc-core-dropdown-menu{
    box-sizing:border-box!important;
    position:absolute!important;
    top:calc(100% + 6px)!important;
    right:0!important;
    left:auto!important;
    width:100%!important;
    min-width:132px!important;
    max-width:220px!important;
    z-index:100010!important;
    border:1px solid #d7e0ea!important;
    border-radius:11px!important;
    background:#fff!important;
    box-shadow:0 16px 36px rgba(15,23,42,.18)!important;
    overflow:hidden!important;
    direction:rtl!important;
}
.bpc-core-dropdown-year .bpc-core-dropdown-menu{min-width:150px!important}
.bpc-core-dropdown-search-wrap{padding:7px!important;border-bottom:1px solid #edf1f5!important;background:#fff!important}
.bpc-core-dropdown-search{
    box-sizing:border-box!important;width:100%!important;height:34px!important;margin:0!important;padding:4px 9px!important;
    border:1px solid #d7e0ea!important;border-radius:8px!important;background:#fff!important;color:#172033!important;
    outline:0!important;font-family:inherit!important;font-size:13px!important;font-weight:500!important;text-align:center!important;direction:rtl!important
}
.bpc-core-dropdown-search:focus{border-color:var(--bookly-main-color,#ff672f)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--bookly-main-color,#ff672f) 10%,transparent)!important}
.bpc-core-dropdown-options{
    box-sizing:border-box!important;max-height:252px!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;
    padding:5px!important;scrollbar-width:thin!important;background:#fff!important
}
.bpc-core-dropdown-option{
    box-sizing:border-box!important;position:relative!important;width:100%!important;min-height:35px!important;margin:0 0 2px!important;padding:7px 28px 7px 10px!important;
    display:flex!important;align-items:center!important;justify-content:center!important;border:0!important;border-radius:7px!important;background:#fff!important;color:#172033!important;
    font-family:inherit!important;font-size:13.5px!important;font-weight:500!important;line-height:1.25!important;text-align:center!important;direction:rtl!important;cursor:pointer!important;
    font-variant-numeric:tabular-nums!important
}
.bpc-core-dropdown-option:hover,.bpc-core-dropdown-option:focus-visible{outline:0!important;background:#f1f5f9!important}
.bpc-core-dropdown-option.is-selected{background:color-mix(in srgb,var(--bookly-main-color,#ff672f) 10%,white)!important;font-weight:700!important}
.bpc-core-dropdown-option.is-selected:hover,.bpc-core-dropdown-option.is-selected:focus-visible{background:var(--bookly-main-color,#ff672f)!important;color:#fff!important}
.bpc-core-dropdown-check{position:absolute!important;right:9px!important;top:50%!important;transform:translateY(-50%)!important;font-weight:800!important}
.bpc-core-dropdown-option[hidden]{display:none!important}

/* Old Select2 rules remain for legacy Bookly datepickers, but never participate in this Svelte picker. */
.bpc-core-range-calendar>.booklySelect2-container--open,
.bpc-core-range-calendar .bpc-core-select2-container{display:none!important}

@media(max-width:1100px){
    .bpc-core-range-calendar{width:min(710px,100%)!important;max-width:710px!important}
    .bpc-core-month-block{flex-basis:336px!important;width:336px!important;min-width:336px!important;max-width:336px!important}
    .bpc-core-selects{grid-template-columns:minmax(118px,1.2fr) minmax(96px,.8fr)!important}
}

/* ========================================================================== 
   BPC 1.3.26 — clamp Appointments / Packages popover to the actual Bookly panel
   (#bookly-tbs), not wpbody-content (which extends under the RTL admin menu).
   ========================================================================== */
.bpc-core-popover{
    box-sizing:border-box!important;
    width:var(--bpc-core-width,min(1040px,calc(100vw - 32px)))!important;
    max-width:var(--bpc-core-max-width,calc(100vw - 32px))!important;
    min-width:0!important;
    max-height:calc(100vh - var(--bpc-core-top,96px) - 14px)!important;
    overflow:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-width:thin!important;
}
.bpc-core-range-main{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
}
.bpc-core-calendar-pane{
    box-sizing:border-box!important;
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:780px!important;
}
.bpc-core-range-calendar{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:768px!important;
    min-width:0!important;
}
/* Keep controlled month/year menus inside the calendar surface. */
.bpc-core-dropdown-menu{
    max-width:min(220px,calc(100vw - 48px))!important;
}
/* The month/year controls are custom controlled dropdowns in this picker.
   Explicitly suppress any stale native/Bookly Select2 node left by an older render. */
.bpc-core-range-calendar select,
.bpc-core-range-calendar .booklySelect2-container{
    display:none!important;
}
.bpc-core-range-calendar .bpc-core-dropdown{
    display:block!important;
}
@media(max-width:1180px){
    .bpc-core-popover{width:var(--bpc-core-width,calc(100vw - 28px))!important}
    .bpc-core-range-main{flex-direction:column!important}
    .bpc-core-calendar-pane{max-width:100%!important;width:100%!important}
    .bpc-core-range-calendar{width:100%!important;max-width:100%!important}
    .bpc-core-months{flex-direction:column!important;align-items:center!important}
    .bpc-core-month-block{flex:0 0 auto!important;width:min(365px,100%)!important;min-width:0!important;max-width:365px!important}
}

/* ========================================================================== 
   BPC 1.3.27 — mount Appointments / Packages picker inside #bookly-tbs.
   The popover is an absolute child of the visible Bookly panel, so it can no
   longer render underneath the RTL/LTR WordPress admin menu or outside screen.
   ========================================================================== */
#bookly-tbs.bpc-core-position-scope,
.bookly-main-page-wrap.bpc-core-position-scope,
.bookly-css-root.bpc-core-position-scope{
    position:relative!important;
    overflow:visible!important;
}
.bpc-core-popover{
    position:absolute!important;
    inset:auto!important;
    left:var(--bpc-core-left,14px)!important;
    top:var(--bpc-core-top,110px)!important;
    right:auto!important;
    bottom:auto!important;
    width:var(--bpc-core-width,900px)!important;
    max-width:var(--bpc-core-max-width,calc(100% - 28px))!important;
    max-height:var(--bpc-core-max-height,calc(100vh - 120px))!important;
    transform:none!important;
    translate:none!important;
    margin:0!important;
    overflow:auto!important;
    z-index:10020!important;
}
.bpc-core-popover[data-bpc-month-count="1"] .bpc-core-calendar-pane{
    max-width:390px!important;
}
.bpc-core-popover[data-bpc-month-count="1"] .bpc-core-range-calendar{
    max-width:390px!important;
}
.bpc-core-popover[data-bpc-month-count="1"] .bpc-core-months{
    flex-direction:column!important;
    align-items:center!important;
}
.bpc-core-popover[data-bpc-month-count="1"] .bpc-core-month-block{
    flex:0 0 auto!important;
    width:min(365px,100%)!important;
    min-width:0!important;
    max-width:365px!important;
}

/* ========================================================================== 
   BPC 1.3.28 — keep Bookly/Bits UI popover in its original portal lifecycle.
   Visual position is fixed/clamped to the visible Bookly area, but the DOM node
   is never re-parented; Apply, Cancel and outside-click can therefore close it.
   ========================================================================== */
.bpc-core-popover{
    position:fixed!important;
    inset:auto!important;
    left:var(--bpc-core-left,16px)!important;
    top:var(--bpc-core-top,96px)!important;
    right:auto!important;
    bottom:auto!important;
    width:var(--bpc-core-width,min(1040px,calc(100vw - 32px)))!important;
    max-width:var(--bpc-core-max-width,calc(100vw - 32px))!important;
    max-height:var(--bpc-core-max-height,calc(100vh - 110px))!important;
    transform:none!important;
    translate:none!important;
    margin:0!important;
    overflow:auto!important;
    z-index:100020!important;
}
.bpc-dt-range-label{
    direction:rtl!important;
    unicode-bidi:isolate!important;
    font-family:inherit!important;
    font-variant-numeric:tabular-nums!important;
}


/* ========================================================================== 
   BPC 1.3.31 — position the REAL Bits UI floating wrapper.
   Bookly positions Popover.Content through a transformed
   [data-bits-floating-content-wrapper]. Clamping only the inner content caused
   a second translation and pushed the calendar outside the Bookly panel.
   ========================================================================== */
.bpc-core-floating-wrapper{
    position:fixed!important;
    inset:auto!important;
    left:var(--bpc-core-left,16px)!important;
    top:var(--bpc-core-top,96px)!important;
    right:auto!important;
    bottom:auto!important;
    width:var(--bpc-core-width,min(1040px,calc(100vw - 32px)))!important;
    min-width:0!important;
    max-width:var(--bpc-core-max-width,calc(100vw - 32px))!important;
    height:auto!important;
    max-height:var(--bpc-core-max-height,calc(100vh - 110px))!important;
    transform:none!important;
    translate:none!important;
    margin:0!important;
    z-index:100020!important;
}
.bpc-core-floating-wrapper .bpc-core-popover{
    position:relative!important;
    inset:auto!important;
    left:auto!important;
    top:auto!important;
    right:auto!important;
    bottom:auto!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    max-height:var(--bpc-core-max-height,calc(100vh - 110px))!important;
    transform:none!important;
    translate:none!important;
    margin:0!important;
    overflow:auto!important;
    box-sizing:border-box!important;
}


/* ========================================================================== 
   BPC 1.3.35 — Dashboard filter row alignment + active-range KPI label support
   Only the compact trigger/layout is styled here; calendar internals are untouched.
   ========================================================================== */
#bookly-dashboard-filters .bpc-dashboard-filter-row{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    gap:.5rem!important;
}
#bookly-dashboard-filters .bpc-dashboard-range{
    display:flex!important;
    position:relative!important;
    direction:rtl!important;
    align-items:center!important;
    flex:0 1 auto!important;
    min-width:0!important;
    max-width:min(430px,100%)!important;
    margin:0!important;
    order:-999!important;
}
#bookly-dashboard-filters .bpc-dashboard-range-trigger{
    box-sizing:border-box!important;
    height:36px!important;
    min-height:36px!important;
    max-width:430px!important;
    width:auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    padding:0 12px!important;
    border-radius:.5rem!important;
    border:1px solid var(--bookly-border,var(--bpc-ui-border))!important;
    background:var(--bookly-filter-bg,#fff)!important;
    color:var(--bookly-foreground,var(--bpc-ui-text))!important;
    font:inherit!important;
    font-size:1rem!important;
    font-weight:500!important;
    line-height:1!important;
    box-shadow:none!important;
    white-space:nowrap!important;
    cursor:pointer!important;
    transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease!important;
}
#bookly-dashboard-filters .bpc-dashboard-range-trigger:hover{
    background:var(--bookly-muted,#f8fafc)!important;
}
#bookly-dashboard-filters .bpc-dashboard-range-trigger:focus-visible{
    outline:none!important;
    border-color:var(--bookly-ring,var(--bpc-ui-accent))!important;
    box-shadow:0 0 0 2px color-mix(in srgb,var(--bpc-ui-accent) 18%,transparent)!important;
}
#bookly-dashboard-filters .bpc-dashboard-range-text{
    display:block!important;
    min-width:0!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
    direction:rtl!important;
    unicode-bidi:plaintext!important;
}
#bookly-dashboard-filters .bpc-dashboard-range-chevron{
    flex:0 0 auto!important;
    margin-inline-start:2px!important;
    color:var(--bookly-muted-foreground,var(--bpc-ui-muted))!important;
    font-size:17px!important;
    line-height:1!important;
}
@media(max-width:900px){
    #bookly-dashboard-filters .bpc-dashboard-range{max-width:100%!important}
    #bookly-dashboard-filters .bpc-dashboard-range-trigger{max-width:100%!important}
}
