﻿:root {
    --bg-time-off: #d5d7da;
    --bg-calendar: var();
    --bg-calendar: rgb(245, 244, 242);
    --w-hour: var(--px-60);
    --min-width: var(--px-200);
    --min-width-salon: calc(var(--min-width) * 1);
    --height-row: var(--px-30);
    --min-font-size: var(--px-13);
    --max-font-size: var(--px-18);
    --mg-scale: calc(var(--px-10) * -1);
    --height-row-hour: calc(var(--height-row) * 4);
    --tix-unConfirm: #9d85ff;
    /*--tix-unConfirm: #ff9e2e;*/
}

.booking-page-body {
    width: 100%;
    height: 100%;
    display: grid;
    padding-top: 2px;
    position: relative;
    grid-template-rows: var(--px-64) 1fr;
    grid-template-columns: var(--px-280) 1fr var(--px-60);
}

.booking-page-body #create-booking-button-tracking {
    z-index: 12;
    width: 100%;
    height: 100%;
    position: absolute;
    max-width: var(--px-260);
    background: var(--bg-calendar);
}

.booking-page-body #btn-create-booking {
    width: auto;
    position: relative;
    top: var(--px-6);
    left: var(--px-6);
    transition: all 0.4s ease 0s;
    height: var(--px-60);
    padding: var(--px-10);
    border-radius: var(--px-16);
    box-shadow: var(--shadow-1);
}

.booking-page-body .booking-action-area {
    z-index: 14;
    display: flex;
    overflow: hidden;
    transition: width 0.4s ease 0s;
    max-width: var(--px-280);
    height: 100%;
    gap: var(--px-12);
    flex-direction: column;
    background: var(--bs-gray-100);
    padding-top: var(--px-16);
}

.booking-page-body .booking-action-area::after {
    right: 0px;
    width: 1px;
    content: "";
    position: absolute;
    top: 0;
    height: 100%;
    /* background: var(--theme-mode-border); */
}

.booking-page-body .booking-action-area #create-booking-button-tracking {
    display: flex;
    align-items: center;
    height: var(--px-80);
    padding: var(--px-10);
    justify-content: flex-start;
}

.booking-page-body[sidecalendar="closed"] #btn-create-booking {
    border-radius: 100%;
    min-width: var(--px-60);
    max-width: var(--px-60);
}

.booking-page-body[sidecalendar="closed"] #btn-create-booking span {
    display: none;
}

.booking-page-body .btn-navigation-calendar {
    bottom: 6px;
    right: var(--px-80);
    z-index: 12;
    opacity: 0.4;
    display: flex;
    position: absolute;
    align-items: center;
    width: var(--px-60);
    height: var(--px-60);
    justify-content: center;
    box-shadow: var(--shadow-5);
    border-radius: var(--px-60);
    background: var(--bs-white);
    color: var(--theme-mode-text);
}

.booking-page-body .btn-navigation-calendar:hover {
    opacity: 1;
}

.booking-page-body .btn-navigation-calendar i {
    font-size: var(--px-20);
}

.booking-page-body[sidecalendar="closed"] .booking-action-area {
    width: 0;
    display: none;
}

.booking-page-body[sidecalendar="closed"] .booking-calendar-area {
    grid-column: 1 / 3;
}

.booking-page-body[sidecalendar="closed"] .btn-action-form-calendar {}

.booking-page-body[sidecalendar="closed"] .btn-action-form-calendar .fa-chevron-left {
    transform: rotate(180deg);
}

.booking-page-body .booking-calendar-area {
    flex: 1 1 0%;
    width: 100%;
    /* height: 100%; */
    display: flex;
    overflow: auto;
    position: relative;
    flex-direction: column;
    max-height: calc(100vh - var(--px-60) - var(--status-bar-height, 0px));
    touch-action: manipulation;
}

.booking-page-body .booking-calendar-area.scrollable-content.touch-scrolling {
    transition-duration: 0ms;
}

.booking-page-body .booking-calendar-area .area-hours-view {
    top: 0;
    z-index: 8;
    width: 100%;
    display: flex;
    text-align: end;
    position: sticky;
    flex-direction: row;
    align-items: flex-start;
    min-height: var(--px-90);
    max-height: var(--px-90);
    color: var(--theme-mode-text);
    font: normal normal 600 var(--s-13);
    background: var(--theme-mode-bs-400);
}

.booking-page-body .booking-calendar-area .header-hours {
    top: 0;
    left: 0px;
    z-index: 3;
    display: flex;
    position: sticky;
    align-items: center;
    flex-direction: column;
    min-width: var(--w-hour);
    max-width: var(--w-hour);
    min-height: var(--px-90);
    justify-content: flex-end;
    background: inherit;
    /* border-bottom: 1px solid var(--theme-mode-calendar-solid); */
    border-right: 1px solid var(--bk-grid-major);
}

.booking-page-body .booking-calendar-area .list-hour-view {
    top: 0px;
    left: 0px;
    z-index: 2;
    display: flex;
    position: sticky;
    flex-direction: column;
    min-width: var(--w-hour);
    max-width: var(--w-hour);
    background: var(--theme-mode-bs-200);
    border-right: 1px solid var(--theme-mode-calendar-solid);
}

.booking-page-body .booking-calendar-area .list-hour-view .item-hour {
    display: flex;
    flex-flow: column;
    position: relative;
    background: inherit;
    justify-content: flex-end;
    min-height: var(--height-row-hour);
    max-height: var(--height-row-hour);
    /* border-bottom: 1px solid var(--theme-mode-calendar-solid); */
    flex-direction: column;
    align-items: center;
}

.booking-page-body .booking-calendar-area .list-hour-view .item-hour p.time {
    z-index: 3;
    width: calc(100% - var(--px-12));
    height: var(--px-20);
    display: flex;
    white-space: nowrap;
    align-items: center;
    padding-left: var(--px-10);
    color: var(--theme-mode-text);
    font: normal normal 603 var(--s-10);
    background: inherit;
    );
    position: relative;
    top: var(--px-10);
}

.booking-page-body .booking-calendar-area .list-hour-view .item-hour[time="0:00 AM"] {
    display: none;
}

.booking-page-body .booking-calendar-area .list-hour-view .item-hour p.quantity-appt {
    z-index: 3;
    display: flex;
    overflow: hidden;
    align-items: center;
    width: var(--px-20);
    height: var(--px-20);
    justify-content: center;
    background: var(--bs-pink-o);
    border-radius: var(--px-20);
    color: var(--bs-pink);
    font: normal normal 600 var(--s-12);
    position: relative;
    top: var(--px-20);
}

.booking-page-body .booking-calendar-area .header-hours.gmt span {
    white-space: nowrap;
    color: var(--theme-mode-text);
    font: normal normal 600 var(--s-11);
    display: flex;
    background: inherit;
    height: var(--px-24);
}

.booking-page-body .booking-calendar-area .area-calendar-view {
    width: 100%;
    display: flex;
    flex-direction: row;
}

.booking-page-body .booking-calendar-area .header-calendar-view {
    z-index: 1;
    width: 100%;
    display: flex;
    position: sticky;
    flex-direction: row;
    min-height: 100%;
    background: inherit;
    box-shadow: 0 3px 10px var(--theme-mode-border);
    border-bottom: 1px solid var(--theme-mode-border);
}

.booking-page-body .booking-calendar-area .header-calendar-view .item-day {
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    color: var(--theme-mode-text);
    font: normal normal 600 var(--s-12);
}

.booking-page-body .booking-calendar-area .header-calendar-view .item-day .day {
    display: flex;
    cursor: pointer;
    width: var(--px-44);
    border-radius: 100%;
    align-items: center;
    height: var(--px-44);
    justify-content: center;
    font: normal normal 600 var(--s-26);
}

.booking-page-body .booking-calendar-area .header-calendar-view .item-day .day:hover {
    background: var(--theme-mode-bs-300);
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column {
    display: flex;
    position: relative;
    align-items: center;
    flex-direction: column;
    justify-content: space-evenly;
    background: inherit;
    color: var(--theme-mode-text);
    font: normal normal 600 var(--s-12);
    min-width: var(--min-width);
    max-width: var(--min-width);
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column.scale-80 div,
.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column.scale-80 p {
    transform: scale(0.8);
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column.add-blocked-time::after {
    top: 0px;
    left: 0px;
    z-index: -2;
    content: "";
    width: 100%;
    height: 100vh;
    position: absolute;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.094);
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column.noScroll {
    z-index: 2;
    position: sticky;
    left: calc(var(--min-width) + var(--w-hour)) !important;
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column.noScroll:first-of-type {
    z-index: 2;
    position: sticky;
    left: var(--w-hour) !important;
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column.noScroll[index="1"] {
    box-shadow: rgba(40, 16, 16, 0.12) 3px -1px 9px 0px;
    min-width: var(--min-width-salon);
    max-width: var(--min-width-salon);
}


.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column .photo {
    display: flex;
    cursor: pointer;
    position: relative;
    align-items: center;
    width: var(--px-60);
    height: var(--px-60);
    justify-content: center;
    text-transform: uppercase;
    color: var(--theme-mode-text);
    box-shadow: var(--shadow-1);
    border-radius: var(--px-60);
    border: 4px solid var(--theme-mode-bs-200);
    font: normal normal 600 var(--s-22);
    background: var(--theme-mode-bs-200);
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column .photo .quantity-appt {
    display: flex;
    overflow: hidden;
    position: absolute;
    align-items: center;
    width: var(--px-26);
    height: var(--px-26);
    justify-content: center;
    border-radius: var(--px-20);
    color: var(--bs-pink);
    right: calc(var(--px-10)* -1.4);
    bottom: calc(var(--px-10)* -1.4);
    font: normal normal 600 var(--s-14);
    background: var(--bs-pink-o);
    outline: 4px solid var(--bg-calendar);
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column .photo:hover,
.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column .photo:active {
    transition: all 0.098s ease 0s;
    outline: 3px solid var(--bs-dudu);
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column .photo img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column.noScroll .photo {
    color: var(--bs-main-900);
    outline: unset !important;
    !i;
    !;
    !;
    !i;
    !;
    box-shadow: unset;
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column .name {
    text-align: center;
    font: normal normal 600 var(--s-15);
    color: var(--theme-mode-text);
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .working-slot {
    flex: 1 1 0%;
    width: 100%;
    display: flex;
    position: absolute;
    min-width: var(--min-width);
    background: var(--theme-mode-bs-300);
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .col-calendar {
    flex: 1 1 0%;
    z-index: 3;
    display: flex;
    background-size: 8px 8px;
    max-width: var(--min-width);
    min-width: var(--min-width);
    border-right: 1px solid var(--theme-mode-calendar-solid);
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .col-calendar.noScroll {
    z-index: 9;
    position: sticky;
    background-size: 12px 12px;
    background-image: linear-gradient(45deg, transparent 46%, rgba(16, 25, 40, 0.2) 49%, rgba(16, 25, 40, 0.2) 51%, transparent 55%);
    min-height: calc(var(--height-row)* var(--quantity-hour));
    max-height: calc(var(--height-row)* var(--quantity-hour));
    background-color: var(--bs-gray-200);
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .col-calendar.online-booking {
    left: var(--w-hour) !important;
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .col-calendar.salon {
    box-shadow: rgba(40, 16, 16, 0.12) 6px -1px 8px 0px;
    left: calc(var(--w-hour) + var(--min-width)) !important;
    min-width: var(--min-width-salon);
    max-width: var(--min-width-salon);
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .col-calendar .working-slot {
    background: var(--bs-main-50) 0% 0% no-repeat padding-box;
    border-right: 1px solid var(--theme-mode-calendar-solid);
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .col-calendar .working-slot[idx="1"] {
    min-width: var(--min-width-salon) !important;
    max-width: var(--min-width-salon) !important;
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .col-calendar .calendar-view-row,
.booking-page-body .booking-calendar-area .calendar-view-column-parent .col-calendar .calendar-view-row-hours {
    left: 0px;
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent {
    z-index: 0;
    width: 100%;
    height: 100%;
    display: flex;
    position: relative;
    background-size: 12px 12px;
    background-image: linear-gradient(45deg, transparent 46%, rgba(16, 25, 40, 0.2) 49%, rgba(16, 25, 40, 0.2) 51%, transparent 55%);
    min-height: calc(var(--height-row)* var(--quantity-hour));
    max-height: calc(var(--height-row)* var(--quantity-hour));
    background-color: var(--bs-gray-200);
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .calendar-view-row {
    top: 0px;
    z-index: 1;
    width: 100%;
    height: 100%;
    min-height: 100%;
    position: absolute;
    left: 0px;
    line-height: var(--height-row);
    background-size: var(--height-row) var(--height-row), 14.2857143% 14.2857143%, 100% 100%;
    background-image: linear-gradient(0deg, #46464624 0, var(--theme-mode-calendar-light) 1px, #0000 0, #0000);
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .calendar-view-column {
    display: flex;
    width: 100%;
    height: inherit;
    position: relative;
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .calendar-view-column.weekView {
    grid-template-columns: repeat(7, 1fr);
    background-size: calc(14.2857%), 0%, 100%;
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .calendar-view-column.dayView {
    background-size: calc(100% / var(--quantity-tech)), 0%, 100%;
    grid-template-columns: repeat(var(--quantity-tech), minmax(var(--min-width), 1fr));
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .calendar-view-row-hours {
    top: 0px;
    left: 0px;
    height: 100%;
    width: 100%;
    position: absolute;
    background-size: var(--height-row-hour) var(--height-row-hour), 14.2857143% 14.2857143%, 100% 100%;
    min-height: 100%;
    line-height: var(--height-row-hour);
    z-index: 1;
    background-image: linear-gradient(0deg, #46464624 0, var(--theme-mode-calendar-solid) 1px, #0000 0, #0000);
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .calendar-view-row-hours::after {
    position: absolute;
    content: "";
    top: 0px;
    width: calc(100%);
    height: 1px;
    background: var(--theme-mode-calendar-solid);
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .calendar-area-show-all-time {
    inset: 0px;
    z-index: 7;
    width: 100%;
    height: 100%;
    display: flex;
    position: absolute;
    flex-direction: column;
}

.booking-page-body .booking-calendar-area .calendar-view-column-parent .calendar-area-show-all-time .time-slot {
    width: 100%;
    height: var(--height-row-hour);
    line-height: var(--height-row);
    background-repeat: repeat-x;
}

.btn-action-form-calendar {
    color: var(--theme-mode-text);
    background: var(--theme-mode-bs-200);
    /* border: 1px solid var(--theme-mode-border); */
    min-width: var(--px-44);
    height: var(--px-44);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    z-index: 14;
    font-size: var(--px-20);
    transition: left 0.3s ease 0s;
}

.btn-action-form-calendar:hover {
    box-shadow: var(--shadow-5);
}

.btn-action-form-calendar .fa-chevron-left {
    transition: all 0.4s ease 0s;
    transform: rotate(0deg);
}

.booking-action-area .booking-filter-group-area {
    width: 100%;
    display: flex;
    gap: var(--px-10);
    overflow: hidden;
    max-height: var(--px-40);
    flex-direction: column;
    padding: 0 var(--px-10);
    min-height: var(--px-40);
    border-top: 1px solid var(--bs-gray-400);
    padding-top: var(--px-8);
}

.booking-action-area .booking-filter-group-area.default {
    overflow: hidden;
}

.booking-action-area .booking-filter-group-area.filter-tech {
    max-height: unset;
    height: min-content;
}

.booking-action-area .booking-filter-group-area.opening {
    max-height: unset;
}

.booking-action-area .booking-filter-group-area.opening .form-search-tech-filter {
    width: 100% !important;
}

.booking-filter-parent {
    background: inherit;
    overflow: hidden;
    border-radius: 4px;
}

.booking-action-area .booking-filter-group-area .append-tech-filter-calendar {
    display: flex;
    overflow: auto;
    /* gap: var(--px-8); */
    position: relative;
    flex-direction: column;
    justify-content: flex-start;
}

.booking-action-area .booking-filter-group-area .form-search-tech-filter {
    margin: 0 auto;
    width: calc(100% - var(--px-32));
    display: flex;
    overflow: hidden;
    transition: width .4s;
    border-radius: var(--px-8);
    align-items: center;
    flex-direction: row;
    min-height: var(--px-40);
    max-height: var(--px-40);
    background: var(--theme-mode-bs-300);
}

.booking-action-area .booking-filter-group-area .form-search-tech-filter:focus-within {
    width: 100%;
}

.booking-action-area .booking-filter-group-area .form-search-tech-filter i {
    display: flex;
    min-width: var(--px-40);
    background: inherit;
    align-items: center;
    height: var(--px-40);
    color: var(--bs-blue);
    justify-content: center;
    border-radius: 4px 0px 0px 4px;
}

.booking-action-area .booking-filter-group-area .form-search-tech-filter input {
    width: 100%;
    border: none;
    height: 100%;
    outline: none;
    padding: var(--px-16);
    border-radius: 0px 4px 4px 0px;
    color: var(--theme-mode-text);
    font: normal normal 600 var(--s-14);
    background: inherit;
    padding-left: 0;
}

.booking-filter-parent {
    z-index: 2;
    width: 100%;
    display: flex;
    cursor: pointer;
    overflow: hidden;
    gap: var(--px-10);
    align-items: center;
    flex-direction: row;
    padding: 0 var(--px-16);
    min-height: var(--px-36);
    max-height: var(--px-36);
    transition: all 0.4s ease 0s;
    color: var(--theme-mode-text);
    justify-content: space-between;
    font: normal normal 600 var(--s-16);
    border-radius: 0;
}

.booking-filter-parent:hover {
    color: var(--bs-main);
    background: var(--bs-main-100);
}

.booking-filter-parent .team-member {
    display: flex;
    align-items: center;
}

.booking-filter-parent .team-member p {
    font: normal normal 600 var(--s-16);
}

.booking-filter-parent .quantity-staff-filter {
    display: flex;
    border-radius: 4px;
    align-items: center;
    margin: var(--px-4);
    width: var(--px-40);
    justify-content: center;
    min-height: var(--px-20);
    background: var(--salon-appt);
    font: normal normal 600 var(--s-13);
    color: var(--theme-mode-text-white);
}

.booking-filter-parent .fa-regular {
    transition: all 0.3s ease 0s;
    font-size: var(--px-14);
    color: var(--bs-main);
}

.booking-action-area .booking-filter-group-area .checkbox-option-select {
    width: 100%;
    display: grid;
    cursor: pointer;
    align-items: center;
    min-height: var(--px-36);
    max-height: var(--px-36);
    grid-gap: var(--px-12);
}

.booking-action-area .booking-filter-group-area .checkbox-option-select p {
    margin: 0px;
    z-index: 1000;
    text-transform: capitalize;
    color: var(--theme-mode-text);
    font: normal normal 500 var(--s-14);
}

.booking-action-area .booking-filter-group-area .checkbox-option-select {
    display: none;
}

.booking-action-area .booking-filter-group-area .quick-info-tech {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: flex-start;
    grid-gap: 0 var(--px-16);
    flex-direction: column;
    justify-content: center;
}

.booking-action-area .booking-filter-group-area .quick-info-tech span.turn {
    display: flex;
    gap: var(--px-4);
    align-items: center;
    color: var(--theme-mode-gray);
    font: italic normal 400 var(--s-12);
}

.booking-action-area .booking-filter-group-area .quick-info-tech span.turn strong {
    color: var(--theme-mode-text);
    font: normal normal 600 var(--s-12);
}

.booking-action-area .booking-filter-group-area .quick-info-tech .photo {
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--px-42);
    height: var(--px-42);
    position: relative;
    width: var(--px-42);
}

.booking-action-area .booking-filter-group-area .quick-info-tech .track-img-error-box,
.booking-action-area .booking-filter-group-area .quick-info-tech img {
    display: flex;
    align-items: center;
    width: var(--px-42);
    height: var(--px-42);
    justify-content: center;
    border-radius: var(--px-42);
    border: 3px solid var(--theme-mode-bs-200);
}

.booking-action-area .booking-filter-group-area .quick-info-tech .index-turn {
    display: flex;
    overflow: hidden;
    position: absolute;
    align-items: center;
    width: var(--px-18);
    height: var(--px-18);
    justify-content: center;
    background: var(--theme-mode-bs-200);
    border-radius: var(--px-20);
    right: -8px;
    bottom: -2px;
    color: var(--theme-mode-text);
    font: normal normal 800 var(--s-12);
    border: 1px solid var(--theme-mode-border);
    box-shadow: var(--shadow-1);
}

.booking-action-area .booking-filter-group-area .quick-info-tech p {
    font: normal normal 500 var(--s-12);
}

.booking-action-area .booking-filter-group-area:not(.opening) .tech-list-calendar {
    display: none;
}

.booking-action-area .booking-filter-group-area.opening .tech-list-calendar {
    display: flex;
}

.booking-action-area .booking-filter-group-area.opening .checkbox-option-select {
    display: flex;
}

.booking-action-area .booking-filter-group-area.opening .booking-filter-parent {
    color: var(--bs-main);
    background: var(--bs-main-100);
}

.booking-page-body .box-tix-appt-book {
    z-index: 5;
    display: flex;
    border-style: solid;
    position: absolute;
    background: var(--theme-mode-bs-200);
    flex-direction: column;
    border-radius: 0 0 6px 6px;
    border-width: 5px 1px 1px 1px;
    justify-content: flex-end;
    border-color: #A6A6A6;
    border-top-color: var(--tix-confirm);
    box-shadow: 0px 6px 10px 0px rgb(0 0 0 / 10%), 0px 1px 18px 0px rgb(0 0 0 / 12%), 0px 3px 5px -1px rgb(0 0 0 / 16%);
    /* Fix for touch issues */
    pointer-events: auto;
    user-select: auto !important;
    /* Allow touch interaction */
    touch-action: auto !important;
    /* Allow default touch behavior */
}

.booking-page-body .box-tix-appt-book.no-status .appt-book-ser-time {
    padding-right: var(--px-8);
}

.booking-page-body .box-tix-appt-book.no-status .tix-status-book {
    width: 0;
}

.booking-page-body .box-tix-appt-book.noDrag {}

.booking-page-body .box-tix-appt-book.noDrag .tix-info-book {
    pointer-events: none !important;
}

.booking-page-body .box-tix-appt-book.salonAppt {
    z-index: 8;
}

.booking-page-body .box-tix-appt-book:hover,
.booking-page-body .box-tix-appt-book.popup,
.booking-page-body .box-tix-appt-book:active {
    z-index: 8;
}

.booking-page-body .box-tix-appt-book.ticket-is-showing,
.booking-page-body .box-tix-appt-book.tickets-is-showing,
.booking-page-body .box-tix-appt-book.group-is-showing {
    outline: 2px solid var(--bs-blue);
    box-shadow: rgba(133, 68, 249, 0.23) 0px 1px 2px 6px !important;
}

.booking-page-body .box-tix-appt-book:not(.weekView).active {
    width: var(--min-column) !important;
    box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 15px;
}

.booking-page-body .box-tix-appt-book.active .tix-info-book {
    color: var(--theme-mode-text-dark);
}

.booking-page-body .box-tix-appt-book.animation {
    animation: 250ms ease 0s 1 normal forwards running cd-move-in;
}

.booking-page-body .box-tix-appt-book.active {
    z-index: 40;
}

.booking-page-body .box-tix-appt-book:hover,
.booking-page-body .box-tix-appt-book:focus {
    box-shadow: rgba(0, 0, 0, 0.5) 2px 2px 28px;
}

.booking-page-body .box-tix-appt-book:hover .tix-bar-resize-book,
.booking-page-body .box-tix-appt-book:hover .tix-info-book,
.booking-page-body .box-tix-appt-book:focus .tix-info-book {
    z-index: 4;
}

.booking-page-body .box-tix-appt-book:hover .tix-status-book,
.booking-page-body .box-tix-appt-book.is-popup .tix-status-book {
    max-height: unset;
    z-index: 50;
}

.booking-page-body .box-tix-appt-book.opacity-processing {
    pointer-events: none;
    opacity: 0.4;
}

.booking-page-body .box-tix-appt-book.dragging,
.booking-page-body .box-tix-appt-book.appointment-copy,
.booking-page-body .box-tix-appt-book.holding-to-change-duration {
    z-index: 50;
    box-shadow: rgba(0, 0, 0, 0.533) 2px 2px 28px;
}

.booking-page-body .box-tix-appt-book.appointment-copy .resize-s,
.booking-page-body .box-tix-appt-book.timeOff .resize-s {
    pointer-events: none !important;
}

.booking-page-body .box-tix-appt-book.timeOff {
    box-shadow: none;
    text-decoration: none;
    border-color: rgb(132, 132, 132) !important;
    background-size: 12px 12px !important;
    background-image: linear-gradient(45deg, transparent 46%, rgb(16 25 40 / 49%) 49%, rgba(16, 25, 40, 0.2) 51%, transparent 55%) !important;
    background-color: #c9c9c9 !important;
}

.booking-page-body .box-tix-appt-book.timeOff .tix-info-book {
    color: var(--theme-mode-text-dark);
}

.booking-page-body .box-tix-appt-book .tix-info-book {
    width: 100%;
    display: flex;
    overflow: hidden;
    height: calc(100%);
    align-items: start;
    position: relative;
    white-space: pre-line;
    justify-content: start;
    flex-direction: column;
    text-overflow: ellipsis;
    color: rgb(255, 255, 255);
    text-transform: capitalize;
    font: normal normal 600 var(--s-12);
}

.booking-page-body .box-tix-appt-book.black-font .tix-info-book {
    color: var(--theme-mode-text);
}

.booking-page-body .box-tix-appt-book .tix-info-book.line-through {
    font-style: italic;
    text-decoration: line-through;
}

.booking-page-body .box-tix-appt-book .tix-moved-book {
    position: absolute;
    height: var(--px-30);
    display: none;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    font: normal normal 600 var(--s-12);
    color: rgb(255, 255, 255);
    top: -40px;
    left: -2px;
    cursor: pointer;
    z-index: 20;
}

.booking-page-body .box-tix-appt-book.dragging .tix-moved-book {
    display: grid;
    grid-gap: 8px;
    justify-items: end;
    grid-template-columns: 1fr 1fr;
}

.booking-page-body .box-tix-appt-book .tix-moved-book .holding-revert-appointment {
    height: 100%;
    border-radius: 4px;
    width: 95%;
    align-items: center;
    display: inline-grid;
    justify-content: center;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 3px 20px;
    color: var(--theme-mode-text-white);
    background: var(--bs-gray-500) 0% 0% no-repeat padding-box;
    min-width: var(--px-80);
}

.booking-page-body .box-tix-appt-book .tix-moved-book .holding-moved-appointment {
    height: 100%;
    background: var(--bs-blue) 0% 0% no-repeat padding-box;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 3px 20px;
    border-radius: 4px;
    width: 95%;
    display: inline-grid;
    align-items: center;
    justify-content: center;
    color: var(--theme-mode-text-white);
    min-width: var(--px-80);
}

.booking-page-body .box-tix-appt-book .tix-moved-book .holding-moved-appointment:hover,
.booking-page-body .box-tix-appt-book .tix-moved-book .holding-revert-appointment:hover {
    opacity: 0.6;
}

.booking-page-body .box-tix-appt-book .tix-copy-book {
    position: absolute;
    height: var(--px-30);
    display: none;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    font: normal normal 600 var(--s-12);
    color: rgb(255, 255, 255);
    top: -3px;
    right: 0px;
    cursor: pointer;
    z-index: 20;
}

.booking-page-body .box-tix-appt-book.clone-appointment-copy .tix-copy-book {
    display: flex;
}

.booking-page-body .box-tix-appt-book.holding-to-change-duration .tix-moved-book {
    display: none !important;
}

.booking-page-body .box-tix-appt-book .tix-copy-book .holding-drag-appointment {
    position: absolute;
    height: 24px;
    border-radius: 6px 6px 0px 0px;
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-flow: column;
    font: normal normal 800 var(--s-12);
    color: var(--theme-mode-text);
    bottom: var(--px-28);
    right: 0px;
    background: var(--bs-blue);
}

.booking-page-body .box-tix-appt-book .time {
    width: 100%;
    padding: 5px var(--px-8);
    color: var(--theme-mode-text);
    font: normal normal 500 var(--s-11);
    opacity: .8;
}

.booking-page-body .box-tix-appt-book .client {
    background: unset !important;
    color: var(--theme-mode-text);
    font: normal normal 600 var(--s-12);
    width: 100%;
    min-height: var(--px-20);
    padding: var(--px-4) var(--px-6);
    padding-bottom: 0;
}

.booking-page-body .box-tix-appt-book .appt-book-ser-time {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 2px var(--px-8);
    padding-right: var(--px-16);
}

.booking-page-body .box-tix-appt-book .appt-book-ser-time .ser {
    width: 100%;
    display: flex;
    padding: 4px;
    overflow: hidden;
    flex-direction: row;
    align-items: center;
    border-radius: 4px;
    box-shadow: 1px 1px;
    border: 1px solid;
    color: var(--theme-mode-text);
    font: normal normal 500 var(--s-11);
}

.booking-page-body .box-tix-appt-book .appt-book-ser-time .ser i {
    font-size: var(--px-10);
    margin-right: 2px;
    box-shadow: var(--shadow-1);
    border-radius: 100%;
}

.booking-page-body .box-tix-appt-book.is-popup .appt-book-ser-time .ser,
.booking-page-body .box-tix-appt-book.is-popup .time,
.booking-page-body .box-tix-appt-book.is-popup .ser span,
.booking-page-body .box-tix-appt-book.is-popup .client {
    color: var(--theme-mode-text-white) !important;
}

.booking-page-body .box-tix-appt-book .appt-book-ser-time .time {
    font: normal normal 600 var(--s-11);
    white-space: nowrap;
}

.booking-page-body .box-tix-appt-book .tix-info-book .noted {
    display: flex;
    padding: 0 var(--px-8);
    font: italic normal 500 var(--s-12);
}

.booking-page-body .box-tix-appt-book .tix-info-book .noted.empty {
    margin: 0px;
    height: 0px;
}

.booking-page-body .box-tix-appt-book .tix-info-book .noted mark {
    padding: 0px;
    background: unset;
    text-decoration: underline;
    color: var(--theme-mode-text);
    font: italic normal 500 var(--s-12);
}

.booking-page-body .box-tix-appt-book .tix-bar-resize-book {
    position: absolute;
    bottom: 0px;
    left: -6px;
    opacity: 1;
    height: var(--px-28);
    width: calc(100% + 6px);
    display: flex;
    align-items: center;
    place-content: flex-end center;
    padding: 2px;
}

.booking-page-body .box-tix-appt-book .tix-bar-resize-book i {
    cursor: ns-resize;
    position: relative;
    bottom: 2px;
}

.booking-page-body .box-tix-appt-book.active .tix-bar-resize-book,
.booking-page-body .box-tix-appt-book:hover .tix-bar-resize-book {
    opacity: 1;
}

.booking-page-body .box-tix-appt-book.haspassedDate .holding-moved-appointment,
.booking-page-body .box-tix-appt-book.haspassedDate .resize-s,
.booking-page-body .box-tix-appt-book.block-confirm .tix-bar-resize-book.resize-s,
.booking-page-body .box-tix-appt-book.block-confirm .holding-moved-appointment,
.booking-page-body .box-tix-appt-book[status="3"] .tix-bar-resize-book.resize-s,
.booking-page-body .box-tix-appt-book[status="4"] .tix-bar-resize-book.resize-s,
.booking-page-body .box-tix-appt-book[status="7"] .tix-bar-resize-book.resize-s,
.booking-page-body .box-tix-appt-book[status="8"] .tix-bar-resize-book.resize-s,
.booking-page-body .box-tix-appt-book[status="9"] .tix-bar-resize-book.resize-s {
    display: none;
    pointer-events: none;
}

.booking-page-body .box-tix-appt-book.is-popup {
    background: var(--tix-confirm);
}


.booking-page-body .box-tix-appt-book[status="1"][confob="false"][bookonl="true"] {
    border-color: var(--tix-unConfirm);
}

.booking-page-body .box-tix-appt-book.is-popup[status="1"][confob="false"][bookonl="true"] {
    background: var(--tix-unConfirm);
}

/*
.booking-page-body .box-tix-appt-book[status="1"][confob="false"][bookonl="false"] .client.wrap-line-1,
.booking-page-body .box-tix-appt-book.is-popup[status="1"][confob="false"][bookonl="false"] {
    background: var(--tix-confirm);
}

.booking-page-body .box-tix-appt-book[status="1"][confob="false"][bookonl="true"] .client.wrap-line-1,
.booking-page-body .box-tix-appt-book.is-popup[status="1"][confob="false"][bookonl="true"] {
    background: var(--bs-dudu);
}

.booking-page-body .box-tix-appt-book[status="1"][confob="false"][bookonl="true"] {
    border-color: var(--bs-dudu);
}

.booking-page-body .box-tix-appt-book[status="1"][confob="true"] .client.wrap-line-1,
.booking-page-body .box-tix-appt-book.is-popup[status="1"][confob="true"] {
    background: var(--tix-confirm);
}

.booking-page-body .box-tix-appt-book[status="1"] {
    border-color: var(--tix-confirm);
}

.booking-page-body .box-tix-appt-book[status="2"] .client.wrap-line-1,
.booking-page-body .box-tix-appt-book.is-popup[status="2"] {
    background: var(--tix-wait);
}

.booking-page-body .box-tix-appt-book[status="2"] {
    border-color: var(--tix-wait);
}

.booking-page-body .box-tix-appt-book[status="3"] .client.wrap-line-1,
.booking-page-body .box-tix-appt-book.is-popup[status="3"] {
    background: var(--tix-inservice);
}

.booking-page-body .box-tix-appt-book[status="3"] {
    border-color: var(--tix-inservice);
}

.booking-page-body .box-tix-appt-book[status="8"] .client.wrap-line-1,
.booking-page-body .box-tix-appt-book.is-popup[status="8"] {
    background: rgb(249, 89, 83);
}

.booking-page-body .box-tix-appt-book[status="8"] {
    border-color: rgb(249, 89, 83);
}


*/

.booking-page-body .box-tix-appt-book[status="7"] .client.wrap-line-1,
.booking-page-body .box-tix-appt-book[status="9"] .client.wrap-line-1,
.booking-page-body .box-tix-appt-book.is-popup[status="7"],
.booking-page-body .box-tix-appt-book.is-popup[status="9"] {
    text-decoration: line-through;
    background: var(--tix-closed);
}

.booking-page-body .box-tix-appt-book[status="7"],
.booking-page-body .box-tix-appt-book[status="8"],
.booking-page-body .box-tix-appt-book[status="4"],
.booking-page-body .box-tix-appt-book[status="9"] {
    border-color: var(--bs-gray-700);
}

.booking-page-body .box-tix-appt-book[status="2"]::after {
    left: 0;
    bottom: 0;
    opacity: 1;
    z-index: 12;
    width: 100%;
    content: '';
    height: 100%;
    display: flex;
    align-items: end;
    border-radius: 4px;
    position: absolute;
    background: #00000050;
    justify-content: start;
    mix-blend-mode: multiply;
    padding: 6px var(--px-16);
    font: normal normal 900 var(--s-15);
}

.booking-page-body .box-tix-appt-book[status="3"]::after {
    left: 0;
    bottom: 0;
    opacity: 1;
    z-index: 12;
    content: '';
    height: 100%;
    display: flex;
    align-items: end;
    border-radius: 4px;
    position: absolute;
    background: #00000092;
    justify-content: start;
    mix-blend-mode: multiply;
    padding: 6px var(--px-16);
    border-radius: 0px 4px 12px 4px;
    font: normal normal 900 var(--s-15);
    width: 100%;
}

.booking-page-body .box-tix-appt-book[status="4"]::after,
.booking-page-body .box-tix-appt-book[status="7"]::after,
.booking-page-body .box-tix-appt-book[status="9"]::after {
    left: 0;
    bottom: 0;
    opacity: 1;
    z-index: 12;
    width: 100%;
    content: '';
    height: 100%;
    display: flex;
    align-items: end;
    border-radius: 0px;
    position: absolute;
    background: #00000088;
    justify-content: start;
    mix-blend-mode: multiply;
    padding: 6px var(--px-16);
    font: normal normal 900 var(--s-15);
}

.booking-page-body .box-tix-appt-book[status="8"]::after,
.booking-page-body .box-tix-appt-book[status="7"]::after {
    left: 0;
    bottom: 0;
    opacity: .3;
    z-index: 12;
    width: 100%;
    content: '';
    height: 100%;
    display: flex;
    align-items: end;
    border-radius: 0px;
    position: absolute;
    background: #000;
    justify-content: start;
    mix-blend-mode: multiply;
    padding: 6px var(--px-16);
    font: normal normal 900 var(--s-15);
}

.booking-page-body .box-tix-appt-book::after {
    border-radius: 0 0 6px 6px !important;
}

.booking-page-body .box-tix-appt-book.no-status::after {
    width: 100% !important;
}

.booking-page-body .box-tix-appt-book .tix-status-book {
    z-index: 123123123123;
    gap: 2px;
    top: 0;
    height: auto;
    display: flex;
    overflow: hidden;
    position: absolute;
    width: var(--px-24);
    flex-direction: column;
    padding-bottom: var(--px-2);
    right: -12px;
    background: white;
    color: var(--bs-main);
    border-radius: var(--px-12);
    box-shadow: var(--shadow-1);
    border: 1px solid var(--theme-mode-border);
    max-height: 100%;
    transition: all .4s;
}

.booking-page-body .box-tix-appt-book .tix-status-book .top:not(.dis-none) {
    width: var(--px-22);
    min-height: var(--px-22);
    display: flex;
    align-items: center;
    cursor: context-menu;
    justify-content: center;
    color: var(--bs-gray-600);
    border-radius: 100%;
}

.booking-page-body .box-tix-appt-book .tix-status-book i {
    font-size: var(--px-14);
    font-weight: 900;
}

.booking-page-body .box-tix-appt-book .tix-status-book i.fa-user-group {}

.booking-page-body .box-tix-appt-book .tix-status-book i.fa-message-lines {
    color: var(--bs-gray-600);
}

.booking-page-body .box-tix-appt-book .tix-status-book i.fa-user-group-simple {
    color: var(--bs-green);
}

.booking-page-body .box-tix-appt-book .tix-status-book i.fa-user-xmark {
    color: var(--bs-gray-600);
}

.booking-page-body .box-tix-appt-book .tix-status-book i.fa-thumbs-up {
    color: var(--bs-main-400);
}

.booking-page-body .box-tix-appt-book .tix-status-book i.fa-mobile-button {
    color: var(--bs-gray-700);
    font-weight: 300;
    font-size: var(--px-20);
}

.booking-page-body .box-tix-appt-book .tix-status-book i.fa-sack-dollar {
    color: var(--bs-teal);
}

.booking-page-body .box-tix-appt-book .tix-status-book .bottom {
    position: absolute;
    right: var(--px-6);
}

.booking-page-body .box-tix-appt-book .special {
    position: absolute;
    top: calc(var(--px-7) * -1);
    left: calc(var(--px-20) * -1);
    z-index: 28;
}

.booking-page-body .box-tix-appt-book .special img {
    transform: scale(0.8);
}

.booking-page-body[filter="1"] .box-tix-appt-book[bookonl="false"],
.booking-page-body[filter="2"] .box-tix-appt-book[bookonl="true"] {
    display: none;
}

#booking-page-body-id .general-tix-bar {
    position: absolute;
    inset: 0px;
    z-index: 8;
}

#booking-page-body-id .general-tix-bar.noScroll {
    width: 0px;
    z-index: 10;
    position: sticky;
    left: var(--w-hour);
}

#booking-page-body-id .general-tix-bar.dragProcessing .box-tix-appt-book:not(.dragging) {
    opacity: 0.4;
    pointer-events: none;
}

#booking-page-body-id .general-tix-bar.dragProcessing .box-tix-appt-book.clone-appointment-copy,
#booking-page-body-id .general-tix-bar.dragProcessing .box-tix-appt-book.holding-to-moved {
    opacity: 0.8;
}

#popup-container-custom-id .btn-bottom-popup-group {
    border: 0px;
    z-index: 2;
    width: 98%;
    bottom: -2px;
    display: flex;
    position: sticky;
    gap: var(--px-6);
    align-items: center;
    justify-content: center;
    background: var(--theme-mode-bs-400);
}

#popup-container-custom-id .action-operation-button-click.checkin-group {
    border: 0px;
    z-index: 2;
    width: 98%;
    bottom: 5px;
    display: flex;
    cursor: pointer;
    position: sticky;
    margin: 5px auto;
    gap: var(--px-16);
    align-items: center;
    justify-content: center;
    background: var(--tix-inservice);
    font: normal normal 600 var(--s-16);
}

#popup-container-custom-id .action-operation-button-click.decline {
    background: var(--theme-mode-bs-400);
}

#popup-container-custom-id .action-operation-button-click.decline {
    color: var(--bs-danger);
}

#popup-container-custom-id .action-operation-button-click.checkin-group p {
    font: normal normal 800 var(--s-16);
}

#popup-container-custom-id .action-operation-button-click.checkin-group i {
    font-size: var(--px-20);
}

.popup-detail-ticket-book {
    display: flex;
    position: relative;
    height: fit-content;
    width: var(--px-500);
    padding: var(--px-20);
    flex-direction: column;
}

.popup-detail-ticket-book .header-popup {
    padding-top: var(--px-44);
}

.popup-detail-ticket-book .back-status {
    top: 0px;
    left: 0px;
    right: 0px;
    z-index: 0;
    display: flex;
    position: absolute;
    height: var(--px-100);
    padding: var(--px-16);
    border-radius: 4px 4px 0px 0px;
    background: var(--bs-dudu);
    justify-content: space-between;
}

.popup-detail-ticket-book .back-status p {
    flex: 1 1 0%;
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    flex-direction: column;
    text-size-adjust: 100%;
    text-overflow: ellipsis;
    text-transform: capitalize;
    color: var(--theme-mode-text-white);
    font-style: ;
    font-variant-ligatures: ;
    font-variant-caps: ;
    font-variant-numeric: ;
    font-variant-east-asian: ;
    font-variant-alternates: ;
    font-variant-position: ;
    font-weight: ;
    font-stretch: ;
    line-height: ;
    font-family: ;
    font-optical-sizing: ;
    font-kerning: ;
    font-feature-settings: ;
    font-variation-settings: ;
    font-size: clamp(var(--min-font-size), calc(var(--min-font-size) + 28%), var(--max-font-size));
}

.popup-detail-ticket-book .back-status p span {
    text-decoration: underline;
    font: normal normal 600 var(--s-12);
}

.popup-detail-ticket-book .back-status .action-operation-button-click {
    display: flex;
    gap: var(--px-10);
    align-items: center;
    height: var(--px-32);
    padding: 0 var(--px-16);
    margin-left: var(--px-10);
    color: var(--theme-mode-text);
    justify-content: space-around;
    background: var(--theme-mode-bs-400);
}

.popup-detail-ticket-book .back-status .action-operation-button-click.decline,
.popup-detail-ticket-book .back-status .action-operation-button-click.decline p {
    color: var(--bs-danger);
}

.popup-detail-ticket-book .back-status .action-operation-button-click i {
    font-size: var(--px-20);
}

.popup-detail-ticket-book .back-status .action-operation-button-click p {
    color: var(--theme-mode-text);
    font: normal normal 800 var(--s-15);
}

.popup-detail-ticket-book .back-status .action-operation-button-click.slide i,
.popup-detail-ticket-book .back-status .action-operation-button-click.slide p {
    position: absolute;
    left: -100%;
}

.popup-detail-ticket-book .info-client {
    z-index: 1;
    position: relative;
    display: grid;
    grid-template-areas: "photo name reminder" "photo phone reminder";
    align-items: center;
    border-radius: 8px;
    padding: var(--px-10);
    grid-gap: 2px var(--px-10);
    color: var(--theme-mode-text);
    background: var(--theme-mode-bs-300);
    grid-template-columns: var(--px-60) 1fr;
    border: 1px solid var(--theme-mode-border);
}

.popup-detail-ticket-book .info-client .action-operation-button-click {
    grid-area: reminder;
    color: var(--theme-mode-btn-text);
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    border: 0px;
    outline: 0px;
    cursor: pointer;
    border-radius: 4px;
    padding: 0 var(--px-10);
    background: var(--bs-dudu-o);
}

.popup-detail-ticket-book .info-client .name {
    grid-area: name;
    font: normal normal 800 var(--s-18);
}

.popup-detail-ticket-book .info-client .phone {
    grid-area: phone;
    font: normal normal 600 var(--s-14);
}

.popup-detail-ticket-book .info-client .client-photo {
    grid-area: photo;
    display: flex;
    height: var(--px-60);
    align-items: center;
    justify-content: center;
    background: var(--bs-dudu-o);
    border-radius: var(--px-60);
    color: var(--theme-mode-text);
    font: normal normal 800 var(--s-22);
}

.popup-detail-ticket-book .client-photo span {
    color: var(--theme-mode-text-dark);
}

.popup-detail-ticket-book .client-photo img {
    width: 100%;
    height: 100%;
}

/*
    .popup-detail-ticket-book .btn-action-tracking-status {
        display: grid;
        height: var(--px-80);
        border-radius: 8px;
        justify-items: center;
        padding: var(--px-12) 0;
        grid-template-columns: repeat(auto-fit, minmax(var(--px-60), 1fr));
    }

        .popup-detail-ticket-book .btn-action-tracking-status .action-operation-button-click {
            height: 100%;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-around;
            padding: 0px;
            outline: 0px;
            border-radius: 0px;
            cursor: pointer;
            color: var(--theme-mode-text);
        }

            .popup-detail-ticket-book .btn-action-tracking-status .action-operation-button-click:hover {
                border: 0px;
                background: var(--bs-dudu-o);
            }

            .popup-detail-ticket-book .btn-action-tracking-status .action-operation-button-click:last-of-type {
                border-right: 0px;
            }

            .popup-detail-ticket-book .btn-action-tracking-status .action-operation-button-click i {
                color: var(--theme-mode-text);
                font-size: var(--px-22);
            }

            .popup-detail-ticket-book .btn-action-tracking-status .action-operation-button-click p {
                font: normal normal 600 var(--s-12);
                color: var(--theme-mode-text);
                opacity: 0.7;
            }
*/
.popup-detail-ticket-book .body-popup {
    display: flex;
    border-radius: 0px;
    flex-direction: column;
    padding-top: var(--px-16);
    border-top: 1px solid var(--theme-mode-border);
}

.popup-detail-ticket-book .body-popup .table-tech-item {
    display: flex;
    flex-direction: column;
}

.popup-detail-ticket-book .body-popup .tech-service {
    display: grid;
    border-radius: 4px;
    align-items: center;
    padding: var(--px-12);
    color: var(--theme-mode-text);
    background: var(--theme-mode-bs-100);
    grid-template-columns: 1fr var(--px-80) var(--px-120);
}

.popup-detail-ticket-book .body-popup .tech-service p {
    color: var(--theme-mode-text);
    font: normal normal 800 var(--s-12);
}

.popup-detail-ticket-book .body-popup .tech-service .start-space {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr var(--px-60) var(--px-36);
}

.popup-detail-ticket-book .body-popup .tech-service .text-time {
    color: var(--bs-blue);
    font: normal normal 800 var(--s-12);
}

.popup-detail-ticket-book .body-popup .tech-service .action-operation-button-click {
    border: 0px;
    outline: 0px;
    display: grid;
    background: rgb(255, 255, 255);
    padding: 5px 8px;
    align-items: center;
    color: var(--theme-mode-btn-text);
    font: normal normal 600 var(--s-12);
    grid-template-columns: var(--px-20) 1fr;
}

.popup-detail-ticket-book .body-popup .tech-service .action-operation-button-click i {}

.popup-detail-ticket-book .body-popup .item-services {
    display: grid;
    align-items: center;
    font: normal normal 600 var(--s-15);
    grid-template-columns: 1fr var(--px-80) var(--px-120);
}

.popup-detail-ticket-book .body-popup ul::after {
    content: "";
    border: 1px solid var(--theme-mode-bs-qs);
    position: absolute;
    top: 3px;
    bottom: 0px;
    left: var(--px-22);
    display: block;
}

.popup-detail-ticket-book .body-popup li {
    padding: var(--px-10);
}

.popup-detail-ticket-book .body-popup li::before {
    top: var(--px-15);
    height: var(--px-12);
    left: calc(var(--px-13) * -1);
    width: var(--px-12);
    border: 2px solid var(--bs-blue);
    background: var(--theme-mode-bs-qs);
}

.booking-page-body .booking-calendar-area .general-time-line-book {
    width: 100%;
    z-index: 50;
    position: absolute;
    pointer-events: none;
    border-bottom: 1px solid rgb(228, 90, 116);
}

.booking-page-body .booking-calendar-area .general-time-line-book::after {
    position: absolute;
    background: rgba(80, 80, 80, 0.137);
    content: "";
    left: 0px;
    height: 1e+09px;
    width: 100%;
    bottom: 0px;
}

.booking-page-body .booking-calendar-area .general-time-box-book {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-danger);
    border-radius: var(--px-10);
    position: absolute;
    width: 97%;
    height: var(--px-20);
    margin-top: calc(var(--px-10) * -1);
    font: normal normal 500 var(--s-10);
    color: var(--theme-mode-text-white);
    border: 0px;
    top: var(--px-10);
    right: 2px;
    z-index: 5;
    white-space: nowrap;
}

.booking-page-body .booking-calendar-area .general-time-box-drag {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-teal);
    border-radius: var(--px-10);
    position: absolute;
    width: 98%;
    height: var(--px-20);
    margin-top: calc(var(--px-10) * -1);
    font: normal normal 600 var(--s-10);
    color: var(--theme-mode-text-white);
    border: 0px;
    top: var(--px-10);
    right: 2px;
    z-index: 5;
    white-space: nowrap;
}

.booking-page-body .booking-calendar-area .mouse-over-timer {
    top: 99%;
    right: 0%;
    border: 0;
    margin: 0px;
    z-index: 10;
    display: flex;
    cursor: pointer;
    position: absolute;
    align-items: center;
    white-space: nowrap;
    padding: var(--px-5);
    height: var(--height-row);
    background: var(--bs-main-100);
    transition: left 200ms ease 0s;
    place-content: center flex-start;
    color: var(--bs-main-600);
    font: normal normal 600 var(--s-14);
}

.booking-page-body .booking-calendar-area .mouse-over-timer.drag-time,
.booking-page-body .booking-calendar-area .mouse-over-timer.drag-end {
    background-size: 8px 8px;
    background-color: rgb(225, 225, 225);
    background-image: linear-gradient(45deg, transparent 46%, rgba(16, 25, 40, 0.2) 49%, rgba(16, 25, 40, 0.2) 51%, transparent 55%);
}

.booking-page-body .booking-calendar-area .mouse-over-timer.drag-start {
    background-size: 8px 8px;
    background-color: var(--bs-dudu-o);
    background-image: linear-gradient(45deg, transparent 46%, rgba(16, 25, 40, 0.2) 49%, rgba(16, 25, 40, 0.2) 51%, transparent 55%);
}

.booking-page-body .booking-calendar-area .mouse-over-timer.dis-none,
.booking-page-body .booking-calendar-area .mouse-over-timer.transform {
    pointer-events: none;
}

.booking-page-body .booking-calendar-area .mouse-over-timer.processing-booking {
    border-radius: 4px;
    color: var(--theme-mode-text);
    background: var(--theme-mode-text-white);
    border: 2px solid var(--theme-mode-btn-text);
}

.booking-page-body .booking-calendar-area .mouse-over-timer.dragging-appt {
    display: none !important;
}

/* Block time form (popover on desktop, bottom sheet <=1024). Lives in <body>, outside #booking-page-body-id tokens. */
.popup-container.time-off-popup {
    --to-accent: var(--bs-main, #f97316);
    --to-accent-strong: #c2410c;
    --to-accent-soft: #fff4eb;
    --to-line: #dcd8d3;
    --to-text: #1f1b18;
    --to-muted: #7c746d;
    width: 400px;
    max-width: calc(100vw - 16px);
    overflow: visible;
    background: #fff;
    border: 1px solid var(--to-line);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(28, 25, 23, 0.16);
    transform: none;
}

.popup-container.time-off-popup .popup-content {
    width: 100%;
}

.area-time-off-on-calendar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 18px 20px 20px;
    color: var(--to-text);
    outline: none;
}

.area-time-off-on-calendar .time-off-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.area-time-off-on-calendar .time-off-heading {
    min-width: 0;
}

.area-time-off-on-calendar p.title {
    margin: 0;
    color: var(--to-text);
    font: normal normal 600 18px/24px var(--bs-font-sans-serif, inherit);
}

.area-time-off-on-calendar .time-off-sub {
    margin: 2px 0 0;
    overflow: hidden;
    color: var(--to-muted);
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.area-time-off-on-calendar .time-off-close {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -8px -10px 0 0;
    padding: 0;
    color: var(--to-muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 18px;
}

.area-time-off-on-calendar .time-off-close:hover,
.area-time-off-on-calendar .time-off-close:focus-visible {
    color: var(--to-text);
    background: #f3f2f0;
}

.area-time-off-on-calendar .form-type-time-off {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.area-time-off-on-calendar .form-type-time-off .span-2 {
    grid-column: 1 / -1;
}

.area-time-off-on-calendar .input-type-add {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.area-time-off-on-calendar .title-input {
    color: var(--to-muted);
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
}

.area-time-off-on-calendar .time-off-optional {
    font-weight: 400;
}

.area-time-off-on-calendar input[type="text"] {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    color: var(--to-text);
    background-color: #fff;
    border: 1px solid var(--to-line);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
}

.area-time-off-on-calendar input[type="text"]:focus-visible,
.area-time-off-on-calendar .time-off-field:focus-visible {
    border-color: var(--to-accent);
    outline: 3px solid rgba(249, 115, 22, 0.18);
    outline-offset: 0;
}

.area-time-off-on-calendar .time-off-range {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.area-time-off-on-calendar .time-off-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    min-height: 66px;
    padding: 9px 14px;
    color: var(--to-text);
    text-align: left;
    background: #fff;
    border: 1px solid var(--to-line);
    border-radius: 12px;
}

.area-time-off-on-calendar .time-off-field[aria-expanded="true"] {
    background: var(--to-accent-soft);
    border-color: var(--to-accent);
}

.area-time-off-on-calendar .time-off-value {
    max-width: 100%;
    overflow: hidden;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.area-time-off-on-calendar .time-off-value small {
    color: var(--to-muted);
    font-size: 13px;
    font-weight: 500;
}

.area-time-off-on-calendar .time-off-picker {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 212px;
    padding: 8px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border: 1px solid var(--to-line);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(28, 25, 23, 0.14);
}

.area-time-off-on-calendar .time-off-picker[hidden] {
    display: none;
}

.area-time-off-on-calendar .time-off-hour {
    display: grid;
    grid-template-columns: 48px repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 6px;
}

.area-time-off-on-calendar .time-off-hour-label {
    color: var(--to-muted);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.area-time-off-on-calendar .time-off-hour button {
    height: 44px;
    padding: 0;
    color: var(--to-text);
    background: #f6f5f4;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
}

.area-time-off-on-calendar .time-off-hour button:not(:disabled):hover {
    background: #eeebe8;
}

.area-time-off-on-calendar .time-off-hour button[aria-pressed="true"] {
    color: var(--to-accent-strong);
    background: var(--to-accent-soft);
    border-color: var(--to-accent);
    font-weight: 600;
}

.area-time-off-on-calendar .time-off-hour button:disabled {
    background: transparent;
    opacity: 0.3;
    cursor: default;
}

.area-time-off-on-calendar .time-off-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.area-time-off-on-calendar .time-off-quick button {
    flex: 1 1 auto;
    height: 40px;
    padding: 0 12px;
    white-space: nowrap;
    color: var(--to-text);
    background: #f3f2f0;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
}

.area-time-off-on-calendar .time-off-quick button[aria-pressed="true"] {
    color: var(--to-accent-strong);
    background: var(--to-accent-soft);
    border-color: color-mix(in srgb, var(--to-accent) 35%, transparent);
    font-weight: 600;
}

.area-time-off-on-calendar .time-off-quick button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.area-time-off-on-calendar .time-off-error {
    margin: 0;
    padding: 8px 12px;
    color: #b42318;
    background: #fef3f2;
    border-radius: 10px;
    font-size: 13px;
    line-height: 18px;
}

.area-time-off-on-calendar .time-off-error[hidden] {
    display: none;
}

.area-time-off-on-calendar .time-off-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 2px;
}

.area-time-off-on-calendar .time-off-actions .btn {
    height: 50px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
}

.area-time-off-on-calendar .time-off-actions .cancel-time-off {
    color: var(--to-text);
    background: #fff;
    border: 1px solid var(--to-line);
}

.area-time-off-on-calendar .time-off-actions .save-time-off {
    color: #fff;
    border: 0;
}

.area-time-off-on-calendar .time-off-actions .save-time-off:disabled {
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .popup-container.time-off-popup.time-off-sheet {
        position: fixed !important;
        top: auto !important;
        right: 8px;
        bottom: var(--time-off-bottom, 8px);
        left: 8px !important;
        width: auto;
        max-width: 544px;
        max-height: calc(100dvh - var(--time-off-bottom, 8px) - 64px);
        margin-inline: auto;
        overflow: auto;
        overscroll-behavior: contain;
        animation: bk-legend-sheet-in 0.18s ease-out;
    }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
    .popup-container.time-off-popup.time-off-sheet {
        animation: none;
    }
}

@media (max-width: 360px) {
    .area-time-off-on-calendar {
        gap: 12px;
        padding: 14px 14px 16px;
    }

    .area-time-off-on-calendar .form-type-time-off {
        gap: 12px;
    }

    .area-time-off-on-calendar .time-off-quick button {
        padding: 0 8px;
        font-size: 13px;
    }

    .area-time-off-on-calendar .time-off-picker {
        max-height: 200px;
    }

    .area-time-off-on-calendar .time-off-hour {
        grid-template-columns: 40px repeat(4, minmax(0, 1fr));
        gap: 4px;
    }
}

#booking-page-body-id .booking-calendar-area .mouse-over-timer.time-off-preview {
    z-index: 11;
    align-items: flex-start;
    padding-top: 6px;
    color: var(--bk-accent-strong);
    background-color: color-mix(in srgb, var(--bk-accent-soft) 88%, transparent);
    background-image: repeating-linear-gradient(135deg, var(--bk-accent-ring) 0px, var(--bk-accent-ring) 1px, transparent 1px, transparent 10px);
    background-size: auto;
    border: 2px dashed var(--bk-accent);
    border-radius: 6px;
    box-shadow: none;
    transition: none;
    pointer-events: none;
}

.booking-page-body .box-tix-appt-book.holding-to-moved,
.booking-page-body .box-tix-appt-book.clone-appointment-copy {
    opacity: 0.8;
    border-width: 2px;
    pointer-events: none;
    border-style: dashed;
    border-color: var(--bs-dudu) !important;
}

.form-option-book-or-block {
    display: flex;
    width: var(--px-200);
    height: var(--px-100);
    padding: var(--px-12);
    flex-direction: column;
    background: var(--theme-mode-bs-200);
}

.form-option-book-or-block button {
    flex: 1 1 0%;
    display: flex;
    overflow: hidden;
    gap: var(--px-10);
    border-radius: 4px;
    flex-direction: row;
    align-items: center;
    padding: 8px;
    color: var(--theme-mode-text);
    border: 0px !important;
    width: 100% !important;
    font-weight: 500;
}

.form-option-book-or-block button i {
    font-size: var(--px-18);
}

.form-option-book-or-block button p {
    font: normal normal 600 var(--s-13);
}

.form-option-book-or-block p.description {
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    padding: 0px 12px;
    font: normal normal 600 var(--s-11);
}

.dropdown-menu.filter-calendar.show {
    display: flex;
    gap: var(--px-10);
    width: var(--px-280);
    flex-direction: column;
}

.dropdown-menu.filter-calendar.show div.checkbox-option-select {
    display: flex;
    align-items: center;
    color: var(--theme-mode-text);
}

.confirmation-booking {
    display: flex;
    height: 100%;
    position: absolute;
    width: 100%;
    background: var(--theme-mode-bs-300);
    z-index: 150;
    flex-direction: column;
    padding: var(--px-20);
    justify-content: space-between;
    align-items: center;
    gap: var(--px-20);
    overflow: hidden;
}

.confirmation-booking .confirm-header {
    flex: 1 1 0%;
    display: flex;
    align-items: center;
    flex-direction: column;
    max-height: var(--px-100);
    justify-content: center;
}

.confirmation-booking .confirm-header .text {
    color: var(--theme-mode-text);
    font: normal normal 600 var(--s-24);
}

.confirmation-booking .confirm-header .review {
    color: var(--theme-mode-gray);
    font: normal normal 600 var(--s-15);
}

.confirmation-booking .list-booking-to-confirm {
    width: 80%;
    flex: 1 1 0%;
    display: flex;
    gap: var(--px-10);
    flex-direction: column;
    overflow: auto;
    max-width: var(--px-500);
}

.confirmation-booking .list-booking-to-confirm .box-confirmation {
    display: flex;
    flex-direction: column;
    gap: var(--px-16);
    border: 1px solid var(--theme-mode-border);
    border-radius: var(--px-8);
    padding: var(--px-16) var(--px-24);
    background: var(--theme-mode-bs-200);
}

.confirmation-booking .list-booking-to-confirm .row-confirmation {
    display: grid;
    gap: var(--px-10);
    align-items: center;
    grid-template-columns: var(--px-28) 1fr;
}

.confirmation-booking .list-booking-to-confirm .row-confirmation .client-name-confirm {
    text-align: end;
    grid-column: span 2;
    color: var(--main-color);
    font: normal normal 800 var(--s-17);
}

.confirmation-booking .list-booking-to-confirm .row-confirmation .fa-light {
    font-size: var(--px-16);
    opacity: 0.7;
}

.confirmation-booking .list-booking-to-confirm .row-confirmation strong {
    font-weight: 600;
}

.confirmation-booking .list-booking-to-confirm .row-confirmation p {
    font: normal normal 600 var(--s-14);
}

.confirmation-booking .btn-group-confirm {
    flex: 1 1 0%;
    width: 100%;
    display: flex;
    gap: var(--px-16);
    max-height: var(--px-70);
    align-items: center;
    justify-content: center;
    flex-direction: row-reverse;
    padding: 0 var(--px-2);
}

.confirmation-booking .btn-group-confirm .btn-confirm-review-booking-apt {
    flex: 1;
    border: 0px;
    color: var(--theme-mode-text);
    font: normal normal 600 var(--s-15);
    background: var(--theme-mode-bs-200);
    display: flex;
    align-items: center;
    flex-direction: column-reverse;
    gap: var(--px-10);
    border: 1px solid var(--theme-mode-border);
    border-radius: var(--px-32);
}

.confirmation-booking .btn-group-confirm .btn-confirm-review-booking-apt.confirm {
    color: var(--main-color);
    max-width: var(--px-500);
}

.confirmation-booking .btn-group-confirm .btn-confirm-review-booking-apt.sms {
    color: var(--bs-info);
}

.confirmation-booking .btn-group-confirm .btn-confirm-review-booking-apt.email {
    color: var(--bs-red);
}

.confirmation-booking .btn-group-confirm .btn-confirm-review-booking-apt.both {
    color: var(--bs-green);
}

.confirmation-booking .btn-group-confirm .btn-confirm-review-booking-apt span {
    white-space: nowrap;
    color: var(--theme-mode-text);
    font: normal normal 600 var(--s-14);
}

.booking-action-area .booking-filter-group-area .append-tech-filter-calendar {
    gap: var(--px-10);
}

.tech-list-calendar {
    display: flex;
    position: relative;
    align-items: center;
    min-height: var(--px-36);
    padding: 2px var(--px-20);
    color: var(--theme-mode-text);
    justify-content: space-between;
    font: normal normal 600 var(--s-15);
}

.tech-list-calendar .color-tech {
    top: 0;
    left: 0;
    width: 4px;
    z-index: 10;
    position: absolute;
    border-radius: 4px;
    height: 100%;
}

.tech-list-calendar .quantity-staff-filter {
    color: var(--bs-main);
}

.right-side-panel-action {
    flex: 1;
    display: flex;
    max-width: var(--px-60);
    justify-content: space-between;
    border-left: 1px solid var(--theme-mode-border);
    flex-direction: column;
    align-items: center;
    padding: var(--px-20) 0;
}

.right-side-panel-action .group-btn-action {
    display: grid;
    grid-gap: var(--px-24);
    grid-template-rows: repeat(auto-fit, var(--px-44));
}

.right-side-panel-action button {
    border-radius: 100%;
    min-width: var(--px-44);
    height: var(--px-44);
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-side-panel-action .group-btn-action button:hover {
    background: var(--theme-mode-bs-100);
}

.right-side-panel-action button i {
    font-size: var(--px-22);
}

.right-side-panel-action button.navigation {
    color: var(--bs-main);
}

.right-side-panel-action button.setting {
    color: var(--bs-gray-600);
}

#booking-page-body-id .right-side-panel-action .booking-action-label,
#booking-page-body-id .right-side-panel-action .btn-mobile-new-booking,
#booking-page-body-id .right-side-panel-action .btn-mobile-filter,
#booking-page-body-id .right-side-panel-action .btn-mobile-wait-list {
    display: none;
}

.header-title-calendar {
    display: flex;
    gap: var(--px-12);
    align-items: center;
}

.header-title-calendar p {
    font: normal normal 500 var(--s-22);
}

.header-title-calendar svg {
    height: var(--px-40);
}

.header-title-calendar .icon-cal {
    width: var(--px-40);
    position: relative;
    height: var(--px-40);
}

.header-title-calendar span {
    top: 60%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    font: normal normal 500 var(--s-18);
    color: var(--theme-mode-text-white);
    z-index: 1;
    letter-spacing: 2px;
}

.booking-header-panel {
    display: flex;
    grid-column: span 3;
    gap: var(--px-24);
    align-items: center;
    padding: 0 var(--px-16);
    border-bottom: 1px solid var(--theme-mode-border);
}

.booking-page-body .booking-calendar-area .header-calendar-view .ui-tech-column .photo .avt-special-column-calendar {
    width: var(--px-52);
    height: var(--px-52);
    border-radius: 0;
}

.btn-accept-drag-appointment {
    position: absolute;
    background: white;
    height: var(--px-32);
    width: var(--px-32);
    border-radius: var(--px-32);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4px;
    color: var(--bs-dark);
    font-weight: 800;
    top: calc(-1 * var(--px-18));
    right: calc(-1 * var(--px-16));
    border: 1px solid var(--theme-mode-border);
    box-shadow: 0 2px 10px var(--bs-gray-500);
}

.btn-accept-drag-appointment i {
    font-weight: 300
}

.notice-tech-is-unavailable {
    display: flex;
    gap: var(--px-12);
    align-items: center;
    padding: var(--px-12);
    border-radius: var(--px-8);
    background: var(--tx-wait-o);
    font: normal normal 500 var(--s-14);
    position: sticky;
    bottom: var(--px-12);
    margin: 0 var(--px-12);
    z-index: 1;
}

.notice-tech-is-unavailable i {
    color: var(--tx-wait);
    font-size: var(--px-20);
}

/* ===== Calendar redesign: warm neutral surfaces tuned to --bs-main ===== */
#booking-page-body-id {
    --bk-accent: var(--bs-main);
    --bk-accent-strong: #c2410c;
    --bk-accent-soft: #fff4eb;
    --bk-accent-tint: #ffe8d6;
    --bk-accent-ring: rgba(249, 115, 22, 0.18);
    --bk-surface: #f8f6f3;
    --bk-canvas: #fafaf9;
    --bk-line: #dcd8d3;
    --bk-line-strong: #d7d2cc;
    --bk-grid-minor: #efedea;
    --bk-grid-major: #dcd8d3;
    --bk-offhours: rgb(236, 232, 228);
    --bk-timeoff-bg: rgb(236, 232, 228);
    --bk-timeoff-stripe: rgb(217, 211, 205);
    --bk-hover: #f3f2f0;
    --bk-text: #1f1b18;
    --bk-muted: #7c746d;
    --bk-lane: var(--bk-offhours);
    --bk-lane-line: var(--bk-grid-major);
    --bk-shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
    --bk-shadow-md: 0 1px 2px rgba(28, 25, 23, 0.05), 0 6px 16px rgba(28, 25, 23, 0.07);
    --bk-head-h: var(--px-52);
    /* Appointment status: accent (left rail, legend dot) + soft card fill */
    --bk-st-booked: #4f7cf6;
    --bk-st-booked-bg: #eef3fe;
    --bk-st-unconfirmed: #8b5cf6;
    --bk-st-unconfirmed-bg: #f4f0fe;
    --bk-st-waiting: #e0a200;
    --bk-st-waiting-bg: #fdf6e4;
    --bk-st-inservice: #2e9e6b;
    --bk-st-inservice-bg: #eaf6ef;
    --bk-st-done: #a8a29c;
    --bk-st-done-bg: #f3f1ee;
    --bk-st-cancelled: #d3cec8;
    --bk-st-cancelled-bg: #ffffff;
    --bk-st-noshow: #e5484d;
    background: var(--bk-surface);
}

/* Header */
#booking-page-body-id .booking-header-panel {
    position: relative;
    z-index: 20;
    gap: var(--px-16);
    padding: 0 var(--px-16) 0 var(--px-12);
    background: var(--bk-surface);
    border-bottom: 1px solid var(--bk-line);
}

#booking-page-body-id .header-title-calendar {
    gap: var(--px-10);
}

#booking-page-body-id .header-title-calendar p {
    color: var(--bk-text);
    letter-spacing: -0.01em;
    font: normal normal 600 var(--s-20);
}

#booking-page-body-id .header-title-calendar .icon-cal,
#booking-page-body-id .header-title-calendar svg {
    width: var(--px-35);
    height: var(--px-35);
}

#booking-page-body-id .header-title-calendar svg path:nth-child(1) {
    fill: #eadfd6;
}

#booking-page-body-id .header-title-calendar svg path:nth-child(2) {
    fill: var(--bk-accent);
}

#booking-page-body-id .header-title-calendar svg path:nth-child(3) {
    fill: #fb923c;
}

#booking-page-body-id .header-title-calendar span {
    letter-spacing: 1px;
    font: normal normal 600 var(--s-14);
}

#booking-page-body-id .btn-action-form-calendar {
    min-width: var(--px-40);
    width: var(--px-40);
    height: var(--px-40);
    border: 0;
    color: var(--bk-text);
    background: transparent;
    border-radius: var(--px-12);
    font-size: var(--px-18);
    transition: background 0.2s ease, color 0.2s ease;
}

#booking-page-body-id .btn-action-form-calendar:hover {
    box-shadow: none;
    color: var(--bk-accent);
    background: var(--bk-accent-soft);
}

#booking-page-body-id #navbar-append-follow-page .nav-item {
    gap: var(--px-6);
}

#booking-page-body-id .booking-header-panel .search-form-salon i {
    width: var(--px-40);
    height: var(--px-40);
    color: var(--bk-muted);
    border-radius: var(--px-12);
    font-size: var(--px-16);
}

#booking-page-body-id .booking-header-panel .search-form-salon i:hover {
    color: var(--bk-accent);
    background: var(--bk-accent-soft);
}

#booking-page-body-id .booking-header-panel .search-form-salon.active {
    background: var(--bk-canvas);
    border: 1px solid var(--bk-line-strong);
    border-radius: var(--px-12);
}

#booking-page-body-id #navbar-append-follow-page .btn-view-calendar-today {
    height: var(--px-36);
    padding: 0 var(--px-16);
    color: var(--bk-text);
    background: var(--bk-surface);
    border: 1px solid var(--bk-line-strong);
    border-radius: var(--px-10);
    font: normal normal 600 var(--s-13);
    box-shadow: var(--bk-shadow-sm);
    transition: all 0.2s ease;
}

#booking-page-body-id #navbar-append-follow-page .btn-view-calendar-today:hover {
    color: var(--bk-accent-strong);
    border-color: var(--bk-accent-tint);
    background: var(--bk-accent-soft);
}

#booking-page-body-id #navbar-append-follow-page .btn-view-calendar-date {
    width: var(--px-36);
    height: var(--px-36);
    color: var(--bk-muted);
    background: transparent;
    border-radius: var(--px-10);
    transition: all 0.2s ease;
}

#booking-page-body-id #navbar-append-follow-page .btn-view-calendar-date:hover {
    color: var(--bk-accent);
    background: var(--bk-accent-soft);
}

#booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar.noClick .text-white {
    color: var(--bk-text) !important;
    letter-spacing: -0.01em;
    font: normal normal 600 var(--s-18);
}

#booking-page-body-id .booking-header-panel .hover-box:hover::after,
#booking-page-body-id .booking-action-area .hover-box:hover::after,
#booking-page-body-id .right-side-panel-action .hover-box:hover::after {
    content: none;
}

/* Left panel */
#booking-page-body-id .booking-action-area {
    gap: var(--px-6);
    padding-top: var(--px-12);
    background: inherit;
    border-right: 1px solid var(--bk-line);
}

#booking-page-body-id #calendar-navigator {
    padding: 0 var(--px-12) var(--px-8);
}

#booking-page-body-id #calendar-navigator table {
    border-collapse: separate;
    border-spacing: 2px;
    color: var(--bk-text);
    font: normal normal 400 var(--s-13);
}

#booking-page-body-id #calendar-navigator table tr {
    height: var(--px-32);
}

#booking-page-body-id #calendar-navigator table th.cur-month {
    color: var(--bk-text);
    letter-spacing: 0.04em;
    font: normal normal 600 var(--s-13);
}

#booking-page-body-id #calendar-navigator table th:not(.cur-month):not(.nav-btn) {
    color: var(--bk-muted);
    font: normal normal 600 var(--s-11);
}

#booking-page-body-id #calendar-navigator table td,
#booking-page-body-id #calendar-navigator table th.nav-btn {
    border-radius: var(--px-8);
    transition: background 0.15s ease, color 0.15s ease;
}

#booking-page-body-id #calendar-navigator table .prev-btn,
#booking-page-body-id #calendar-navigator table .next-btn {
    color: var(--bk-muted);
    font-size: var(--px-16);
}

#booking-page-body-id #calendar-navigator table .prev-btn:hover,
#booking-page-body-id #calendar-navigator table .next-btn:hover {
    color: var(--bk-accent);
    background: var(--bk-accent-soft);
}

#booking-page-body-id #calendar-navigator table tr td:hover {
    color: var(--bk-accent-strong);
    background-color: var(--bk-accent-soft);
}

#booking-page-body-id #calendar-navigator table tr .date-pick:not(.current-month) {
    color: var(--bk-muted);
    opacity: 0.55;
}

#booking-page-body-id #calendar-navigator table tr .date-pick.today {
    font-weight: 600;
    color: var(--bk-accent-strong);
    background-color: var(--bk-accent-tint);
}

#booking-page-body-id #calendar-navigator table tr .date-pick.selected,
#booking-page-body-id #calendar-navigator table tr .date-pick.selected:hover {
    font-weight: 500;
    color: #fff;
    background-color: var(--bk-accent);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.3);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area {
    gap: var(--px-4);
    padding: var(--px-6) var(--px-12) 0;
    min-height: var(--px-45);
    max-height: var(--px-45);
    border-top: 1px solid var(--bk-line);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area.filter-tech,
#booking-page-body-id .booking-action-area .booking-filter-group-area.opening {
    max-height: unset;
}

#booking-page-body-id .booking-filter-parent {
    padding: 0 var(--px-10);
    min-height: var(--px-36);
    max-height: var(--px-36);
    color: var(--bk-text);
    border-radius: var(--px-10);
    font: normal normal 600 var(--s-14);
    transition: background 0.2s ease, color 0.2s ease;
}

#booking-page-body-id .booking-filter-parent .team-member p {
    font: normal normal 600 var(--s-14);
}

#booking-page-body-id .booking-filter-parent .fa-regular {
    color: var(--bk-muted);
    font-size: var(--px-12);
}

#booking-page-body-id .booking-filter-parent:hover {
    background: var(--bk-hover);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area.opening .booking-filter-parent {
    color: var(--bk-muted);
    background: transparent;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#booking-page-body-id .booking-action-area .booking-filter-group-area.opening .booking-filter-parent .team-member p {
    font: normal normal 600 var(--s-11);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area.opening .booking-filter-parent .fa-regular {
    color: var(--bk-text);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area.opening .checkbox-option-select {
    gap: var(--px-10);
    padding: 0 var(--px-10);
    border-radius: var(--px-8);
    min-height: var(--px-35);
    max-height: var(--px-35);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area .checkbox-option-select:hover,
#booking-page-body-id .booking-action-area .tech-list-calendar:hover {
    background: var(--bk-hover);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area .checkbox-option-select p {
    color: var(--bk-text);
    font: normal normal 500 var(--s-13);
}

#booking-page-body-id .booking-action-area .container--checkbox-setting {
    width: var(--px-20);
    height: var(--px-20);
}

#booking-page-body-id .booking-action-area .container--checkbox-setting .checkmark {
    top: 0;
    left: 0;
    width: var(--px-20);
    height: var(--px-20);
    box-shadow: none;
    border-radius: var(--px-6);
    border: 1.5px solid var(--bk-line-strong);
    background: var(--bk-surface);
}

#booking-page-body-id .booking-action-area .container--checkbox-setting .checkmark.radio {
    border-radius: 100%;
}

#booking-page-body-id .booking-action-area .container--checkbox-setting .checkmark::after {
    top: 2px;
    width: 5px;
    height: 9px;
}

#booking-page-body-id .booking-action-area .container--checkbox-setting input:checked~.checkmark {
    border-color: var(--bk-accent);
    background-color: var(--bk-accent);
}

#booking-page-body-id .booking-action-area .container--checkbox-setting input:checked~.checkmark.radio {
    outline: 0;
    background-color: var(--bk-surface);
    border: 6px solid var(--bk-accent);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area .form-search-tech-filter {
    width: 100%;
    margin: var(--px-4) 0;
    min-height: var(--px-36);
    max-height: var(--px-36);
    background: var(--bk-surface);
    border-radius: var(--px-10);
    border: 1px solid var(--bk-line-strong);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#booking-page-body-id .booking-action-area .booking-filter-group-area .form-search-tech-filter:focus-within {
    border-color: var(--bk-accent);
    box-shadow: 0 0 0 3px var(--bk-accent-ring);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area .form-search-tech-filter i {
    min-width: var(--px-36);
    height: var(--px-36);
    color: var(--bk-muted);
    font-size: var(--px-14);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area .form-search-tech-filter input {
    padding: 0 var(--px-10) 0 0;
    color: var(--bk-text);
    font: normal normal 500 var(--s-13);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area .form-search-tech-filter input::placeholder {
    color: var(--bk-muted);
}

#booking-page-body-id .booking-action-area .booking-filter-group-area .append-tech-filter-calendar {
    gap: var(--px-2);
}

#booking-page-body-id .tech-list-calendar {
    gap: var(--px-10);
    overflow: hidden;
    min-height: var(--px-44);
    color: var(--bk-text);
    border-radius: var(--px-10);
    padding: var(--px-4) var(--px-8);
    font: normal normal 600 var(--s-13);
    transition: background 0.15s ease;
}

#booking-page-body-id .tech-list-calendar .color-tech {
    position: static;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--px-28);
    height: var(--px-28);
    color: #fff;
    border-radius: 50%;
    text-transform: uppercase;
    font: normal normal 600 var(--s-12);
}

#booking-page-body-id .tech-list-calendar.selectAll .color-tech {
    color: var(--bk-accent-strong);
    background: var(--bk-accent-tint) !important;
    font-size: var(--px-12);
}

#booking-page-body-id .tech-list-calendar .quick-info-tech {
    flex: 1;
    min-width: 0;
}

#booking-page-body-id .tech-list-calendar .quick-info-tech p {
    text-transform: capitalize;
    font: normal normal 600 var(--s-13);
}

#booking-page-body-id .tech-list-calendar .quick-info-tech span.turn {
    display: flex;
    gap: var(--px-4);
    align-items: center;
    margin-top: 2px;
    color: var(--bk-muted);
    font: normal normal 500 var(--s-11);
}

#booking-page-body-id .tech-list-calendar .quantity-staff-filter {
    color: var(--bk-text);
}

#booking-page-body-id .booking-action-area .tech-list-calendar.selectAll {
    margin-bottom: var(--px-4);
    border-bottom: 1px solid var(--bk-line);
    border-radius: var(--px-10) var(--px-10) 0 0;
}

@supports (color: color-mix(in srgb, red 50%, white)) {
    #booking-page-body-id .tech-list-calendar:not(.selectAll) .color-tech {
        color: color-mix(in srgb, var(--tech-color) 72%, #000);
        background: color-mix(in srgb, var(--tech-color) 18%, #fff) !important;
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tech-color) 30%, transparent);
    }
}

/* Calendar grid */
#booking-page-body-id .booking-calendar-area {
    background: var(--bk-surface);
    scrollbar-width: thin;
    scrollbar-color: var(--bk-line-strong) transparent;
}

#booking-page-body-id .booking-calendar-area::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

#booking-page-body-id .booking-calendar-area::-webkit-scrollbar-track {
    background: transparent;
}

#booking-page-body-id .booking-calendar-area::-webkit-scrollbar-thumb {
    background: var(--bk-line-strong);
    border-radius: 8px;
}

#booking-page-body-id .booking-calendar-area .area-hours-view {
    min-height: var(--bk-head-h);
    max-height: var(--bk-head-h);
    background: var(--bk-surface);
}

#booking-page-body-id .booking-calendar-area .header-hours {
    min-height: var(--bk-head-h);
    padding-bottom: var(--px-6);
}

#booking-page-body-id .booking-calendar-area .header-hours.gmt span {
    height: auto;
    color: var(--bk-muted);
    letter-spacing: 0.02em;
    font: normal normal 600 var(--s-10);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view {
    border-bottom: 1px solid var(--bk-line);
    box-shadow: 0 8px 14px -12px rgba(60, 40, 25, 0.22);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .item-day {
    flex-direction: row;
    justify-content: center;
    gap: var(--px-6);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .item-day .day {
    width: var(--px-28);
    height: var(--px-28);
    font: normal normal 600 var(--s-14);
}

/* Fresha-style row: avatar + name / "N appts · Xh Ym" */
#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column {
    container-type: inline-size;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: var(--px-8);
    min-height: var(--bk-head-h);
    padding: 0 var(--px-10);
    text-align: left;
    border-right: 1px solid var(--bk-grid-major);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.scale-80 :is(div, p) {
    transform: none;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-head-text {
    container: tech-summary / inline-size;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-meta {
    display: flex;
    margin: 0;
    align-items: center;
    gap: 6px;
    height: var(--px-14);
    overflow: hidden;
    white-space: nowrap;
    color: var(--bk-muted);
    font: normal normal 400 var(--s-10);
    line-height: var(--px-14);
    font-variant-numeric: tabular-nums;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-meta span {
    white-space: nowrap;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-meta:is(.is-empty, [hidden]) {
    display: none;
}

#booking-page-body-id .tech-meta-count {
    display: inline-flex;
    flex: none;
    align-items: baseline;
    gap: 3px;
}

#booking-page-body-id .tech-meta-value {
    color: var(--bk-text);
    font-weight: 600;
}

#booking-page-body-id .tech-meta-time {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
}

#booking-page-body-id .tech-meta-time:not(:empty)::before {
    content: "";
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: currentColor;
}

@container tech-summary (max-width: 94px) {
    #booking-page-body-id .tech-meta-time {
        display: none;
    }
}

@container tech-summary (max-width: 42px) {
    #booking-page-body-id .tech-meta-label {
        display: none;
    }
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.noScroll {
    background: var(--bk-lane);
    border-right-color: var(--bk-lane-line);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.noScroll[index="1"] {
    border-right: 1px solid var(--bk-lane-line);
    box-shadow: 6px 0 10px -8px rgba(28, 25, 23, 0.18);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .photo {
    flex: none;
    width: var(--px-28);
    height: var(--px-28);
    border: 0;
    outline-width: 2px !important;
    outline-offset: 2px;
    background: var(--bk-hover);
    color: var(--bk-text);
    box-shadow: none;
    font: normal normal 600 var(--s-12);
    transition: box-shadow 0.15s ease;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .photo .track-img-error-box {
    display: flex;
    align-items: center;
    justify-content: center;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .photo .track-img-error-box.dis-none {
    display: none;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.noScroll .photo {
    cursor: default;
    color: var(--bk-text);
    background: var(--bk-surface);
    box-shadow: inset 0 0 0 1px var(--bk-line-strong);
    font-size: var(--px-13);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .name {
    display: block;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: left;
    color: var(--bk-text);
    font: normal normal 600 var(--s-13);
}

/* Unassigned lanes: tonal disc + line glyph per lane */
#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.lane .photo {
    --lane-ink: #526d9a;
    color: var(--lane-ink);
    background: #edf2fa;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--lane-ink) 18%, transparent);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.lane-salon .photo {
    --lane-ink: #397b71;
    background: #edf6f1;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.lane-salon {
    background: #e7f2eb;
    border-bottom: 2px solid #80aa92;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.lane-online {
    background: var(--bk-surface);
    border-bottom: 1px solid var(--bk-grid-major);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.lane-online .photo {
    --lane-ink: #737a77;
    background: #f0f1ef;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.lane-online .tech-meta {
    display: none;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.lane .lane-description {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    min-width: 0;
    margin: 0;
    color: #647387;
    font-size: 10px;
    font-weight: 450;
    line-height: 13px;
    letter-spacing: 0;
    text-align: left;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.lane .lane-description i {
    flex: none;
    padding-top: 2px;
    font-size: 9px;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.lane .lane-description span {
    min-width: 0;
    overflow-wrap: anywhere;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.lane-online .lane-description {
    color: #777e7a;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .lane-glyph {
    width: var(--px-16);
    height: var(--px-16);
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Collapse handle: always visible, sits on the lane group's right edge */
#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.noScroll[index="1"] {
    padding-right: var(--px-20);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .lane-hide-btn {
    top: 50%;
    right: calc(var(--px-12) * -1);
    z-index: 4;
    transform: translateY(-50%);
}

/* Busy tech: header fills left -> right with the in-service share of the current ticket */
@property --tech-busy-ink {
    syntax: "<color>";
    inherits: true;
    initial-value: #2e9e6b;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column {
    --tech-busy-ink: var(--bk-st-inservice);
    --tech-ease: cubic-bezier(0.65, 0, 0.35, 1);
    transition: --tech-busy-ink 0.8s ease;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.tech-is-overdue {
    --tech-busy-ink: var(--bk-st-waiting);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column :is(.photo, .tech-head-text) {
    position: relative;
    z-index: 1;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: color-mix(in srgb, var(--tech-busy-ink) 14%, transparent);
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.tech-is-busy .tech-busy {
    opacity: 1;
}

/* Water: solid tints (not alpha) so the wave layers meet the fill without darker seams */
#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column {
    --tech-water: color-mix(in srgb, #00572f 22%, var(--bk-surface));
    --tech-water-back: color-mix(in srgb, var(--tech-busy-ink) 11%, var(--bk-surface));
}

/* Full-width layer revealed by clip-path / translate: animates on the compositor, no relayout */
#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy-fill {
    position: absolute;
    inset: 0;
    background: var(--tech-water);
    box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--tech-busy-ink) 60%, transparent);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2.4s var(--tech-ease);
    will-change: clip-path;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.tech-is-busy .tech-busy-fill {
    clip-path: inset(0 calc(100% - var(--tech-busy, 0%)) 0 0);
}

/* Wavy water front rides on a full-width track, so translateX(%) maps to header width */
#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy-edge {
    position: absolute;
    inset: 0;
    transform: translateX(0);
    transition: transform 2.4s var(--tech-ease);
    will-change: transform;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.tech-is-busy .tech-busy-edge {
    transform: translateX(var(--tech-busy, 0%));
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-wave {
    position: absolute;
    top: 0;
    left: -1px;
    height: 200%;
    overflow: visible;
    will-change: transform;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-wave-back {
    width: 8px;
    fill: var(--tech-water-back);
    animation: tech-wave-rise 7s linear infinite reverse;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-wave-front {
    width: 6px;
    fill: var(--tech-water);
    animation: tech-wave-rise 4.8s linear infinite;
}

/* Bubbles live only inside the water */
#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy-bubbles {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--tech-busy, 0%);
    overflow: hidden;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy-bubbles i {
    position: absolute;
    bottom: -6px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95) 0 22%, color-mix(in srgb, var(--tech-busy-ink) 16%, transparent) 60%, color-mix(in srgb, var(--tech-busy-ink) 30%, transparent) 100%);
    box-shadow: inset 0 0 0 0.75px color-mix(in srgb, var(--tech-busy-ink) 40%, transparent);
    opacity: 0;
    animation: tech-bubble-rise 5.2s cubic-bezier(0.37, 0, 0.63, 1) infinite;
    will-change: transform, opacity;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy-bubbles i:nth-child(1) {
    left: 14%;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy-bubbles i:nth-child(2) {
    left: 38%;
    width: 3px;
    height: 3px;
    animation-duration: 4.4s;
    animation-delay: 1.3s;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy-bubbles i:nth-child(3) {
    left: 60%;
    width: 6px;
    height: 6px;
    animation-duration: 6.4s;
    animation-delay: 2.6s;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy-bubbles i:nth-child(4) {
    left: 80%;
    width: 4px;
    height: 4px;
    animation-duration: 4.9s;
    animation-delay: 3.7s;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy-bubbles i:nth-child(5) {
    left: 28%;
    width: 3px;
    height: 3px;
    animation-duration: 5.8s;
    animation-delay: 4.5s;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.tech-is-overdue :is(.tech-busy-edge, .tech-busy-bubbles) {
    display: none;
}

/* One wave period = half the SVG height, so -50% loops seamlessly */
@keyframes tech-wave-rise {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

@keyframes tech-bubble-rise {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0;
    }

    15% {
        opacity: 0.9;
    }

    35% {
        transform: translate(2.5px, -20px) scale(0.8);
    }

    65% {
        transform: translate(-2px, -38px) scale(0.95);
        opacity: 0.85;
    }

    100% {
        transform: translate(1.5px, -60px) scale(1.05);
        opacity: 0;
    }
}

@keyframes tech-busy-pop {
    0% {
        opacity: 0;
        scale: 0.4;
    }

    60% {
        opacity: 1;
        scale: 1.12;
    }

    100% {
        scale: 1;
    }
}

@keyframes tech-busy-tick {
    0% {
        opacity: 0.35;
        translate: 0 -3px;
    }

    100% {
        opacity: 1;
        translate: 0 0;
    }
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-countdown {
    position: absolute;
    left: 50%;
    bottom: -7px;
    z-index: 2;
    padding: 2px 4px;
    border-radius: 999px;
    background: var(--tech-busy-ink);
    color: #fff;
    box-shadow: 0 0 0 1.5px var(--bk-surface), 0 1px 3px color-mix(in srgb, var(--tech-busy-ink) 40%, transparent);
    font-size: 8.5px;
    font-weight: 600;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-transform: none;
    white-space: nowrap;
    transform: translateX(-50%);
    animation: tech-busy-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-countdown.is-ticking {
    animation: tech-busy-tick 0.45s ease-out;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-countdown:empty {
    display: none;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column:not(.noScroll) .photo {
    transition: box-shadow 0.6s ease;
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column.tech-is-busy:not(.noScroll) .photo {
    box-shadow: 0 0 0 2px var(--bk-surface), 0 0 0 3.5px var(--tech-busy-ink);
}

@media (prefers-reduced-motion: reduce) {
    #booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column :is(.tech-countdown, .tech-wave) {
        animation: none;
    }

    #booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-busy-bubbles {
        display: none;
    }

    #booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column :is(.tech-busy-fill, .tech-busy-edge) {
        transition: none;
    }
}

@container (max-width: 96px) {
    #booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .photo {
        width: var(--px-22);
        height: var(--px-22);
        font-size: var(--px-10);
    }
}

@container (max-width: 56px) {
    #booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column .tech-head-text {
        display: none;
    }
}

@supports (color: color-mix(in srgb, red 50%, white)) {
    #booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column:not(.noScroll) .photo {
        outline: 0 !important;
        color: color-mix(in srgb, var(--tech-color) 70%, #000);
        background: color-mix(in srgb, var(--tech-color) 16%, #fff);
        box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tech-color) 40%, transparent);
    }

    #booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column:not(.noScroll) .photo:hover {
        box-shadow: 0 0 0 2px var(--bk-surface), 0 0 0 4px var(--tech-color);
    }
}

#booking-page-body-id .booking-calendar-area .header-calendar-view .ui-tech-column:not(.noScroll) .tech-color-marker {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    height: 2px;
    background: var(--tech-color, var(--bk-grid-major));
    opacity: 0.9;
    pointer-events: none;
}

#booking-page-body-id .booking-calendar-area .list-hour-view {
    background: var(--bk-surface);
    border-right: 1px solid var(--bk-line);
}

#booking-page-body-id .booking-calendar-area .list-hour-view .item-hour p.time {
    color: var(--bk-text);
    letter-spacing: 0.02em;
    font: normal normal 500 var(--s-12);
}

#booking-page-body-id .booking-calendar-area .list-hour-view .item-hour p.quantity-appt {
    color: var(--bk-text);
    background: var(--bk-hover);
    box-shadow: inset 0 0 0 1px var(--bk-line-strong);
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent {
    background-color: var(--bk-surface);
    background-image: none;
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .col-calendar {
    z-index: 0;
    background-size: auto;
    background-color: var(--bk-offhours);
    background-image: repeating-linear-gradient(135deg, var(--bk-timeoff-stripe) 0px, var(--bk-timeoff-stripe) 1px, transparent 1px, transparent 10px);
    border-right: 1px solid var(--bk-grid-major);
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .col-calendar.noScroll {
    /* Pinned lanes must cover scrolled tech tickets (.general-tix-bar z8) but stay under their own (z10). */
    z-index: 9;
    background-size: auto;
    background-color: var(--bk-offhours);
    background-image: repeating-linear-gradient(135deg, var(--bk-timeoff-stripe) 0px, var(--bk-timeoff-stripe) 1px, transparent 1px, transparent 10px);
    border-right-color: var(--bk-lane-line);
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .col-calendar.salon {
    box-shadow: 6px 0 10px -8px rgba(28, 25, 23, 0.18);
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .working-slot {
    background: var(--bk-surface);
    border-right: 1px solid var(--bk-grid-major);
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .col-calendar .working-slot {
    background: var(--bk-lane);
    border-right: 1px solid var(--bk-lane-line);
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .col-calendar.salon {
    border-right-color: #bed4c6;
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .col-calendar.salon .working-slot:not(.timeOff) {
    background: #edf6ef;
    border-right-color: #bed4c6;
    cursor: crosshair;
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .col-calendar.online-booking .working-slot:not(.timeOff) {
    background: var(--bk-surface);
    cursor: not-allowed;
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .working-slot.timeOff {
    background-size: auto;
    background-color: var(--bk-timeoff-bg);
    background-image: repeating-linear-gradient(135deg, var(--bk-timeoff-stripe) 0px, var(--bk-timeoff-stripe) 1px, transparent 1px, transparent 10px);
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .calendar-view-row {
    background-image: linear-gradient(0deg, var(--bk-grid-minor) 0, var(--bk-grid-minor) 1px, transparent 1px, transparent);
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .calendar-view-row-hours {
    background-image: linear-gradient(0deg, var(--bk-grid-major) 0, var(--bk-grid-major) 1px, transparent 1px, transparent);
}

#booking-page-body-id .booking-calendar-area .calendar-view-column-parent .calendar-view-row-hours::after {
    background: var(--bk-grid-major);
}

#booking-page-body-id .booking-calendar-area .general-time-line-book {
    border-bottom: 2px solid var(--bk-accent);
}

#booking-page-body-id .booking-calendar-area .general-time-line-book::after {
    background: rgba(120, 90, 65, 0.06);
}

#booking-page-body-id .booking-calendar-area .general-time-box-book {
    width: 92%;
    right: 4%;
    color: #fff;
    background: var(--bk-accent);
    border-radius: 999px;
    font: normal normal 600 var(--s-10);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.35);
}

#booking-page-body-id .booking-calendar-area .general-time-box-drag {
    background: var(--bk-accent-strong);
    border-radius: 999px;
}

#booking-page-body-id .booking-calendar-area .mouse-over-timer {
    color: var(--bk-accent-strong);
    background: var(--bk-accent-soft);
    border-radius: var(--px-6);
    box-shadow: inset 3px 0 0 var(--bk-accent);
    padding-left: var(--px-10);
    font: normal normal 600 var(--s-12);
    border: 1px solid var(--bk-accent-ring);
    border-radius: 0;
}

/* Appointments: soft status fill + 3px status rail */
#booking-page-body-id .box-tix-appt-book {
    --tix-accent: var(--bk-st-booked);
    --tix-bg: var(--bk-st-booked-bg);
    container: tix / size;
    justify-content: flex-start;
    background: var(--tix-bg);
    border-style: solid;
    border-radius: var(--px-6);
    border-width: 1px 1px 1px 3px;
    border-color: var(--bk-line);
    border-color: color-mix(in srgb, var(--tix-accent) 24%, transparent);
    border-left-color: var(--tix-accent);
    box-shadow: none;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

#booking-page-body-id .box-tix-appt-book.tix-st-unconfirmed {
    --tix-accent: var(--bk-st-unconfirmed);
    --tix-bg: var(--bk-st-unconfirmed-bg);
}

#booking-page-body-id .box-tix-appt-book.tix-st-waiting {
    --tix-accent: var(--bk-st-waiting);
    --tix-bg: var(--bk-st-waiting-bg);
}

#booking-page-body-id .box-tix-appt-book.tix-st-inservice {
    --tix-accent: var(--bk-st-inservice);
    --tix-bg: var(--bk-st-inservice-bg);
}

#booking-page-body-id .box-tix-appt-book.tix-st-done {
    --tix-accent: var(--bk-st-done);
    --tix-bg: var(--bk-st-done-bg);
}

#booking-page-body-id .box-tix-appt-book.tix-st-cancelled {
    --tix-accent: var(--bk-st-cancelled);
    --tix-bg: var(--bk-st-cancelled-bg);
    border-color: var(--bk-line-strong);
    border-left-color: var(--tix-accent);
}

#booking-page-body-id .box-tix-appt-book.tix-st-noshow {
    --tix-accent: var(--bk-st-noshow);
    --tix-bg: var(--bk-st-cancelled-bg);
    border-color: color-mix(in srgb, var(--bk-st-noshow) 55%, transparent);
    border-left-color: var(--tix-accent);
}

/* Legacy dark status overlays */
#booking-page-body-id .box-tix-appt-book::after {
    content: none;
}

/* .active sets width to an undefined var (auto); size containment would collapse it */
#booking-page-body-id .box-tix-appt-book.active {
    container-type: normal;
}

#booking-page-body-id .box-tix-appt-book:hover,
#booking-page-body-id .box-tix-appt-book:focus {
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06), 0 6px 14px rgba(28, 25, 23, 0.1);
}

#booking-page-body-id .box-tix-appt-book.ticket-is-showing,
#booking-page-body-id .box-tix-appt-book.tickets-is-showing,
#booking-page-body-id .box-tix-appt-book.group-is-showing {
    outline: 2px solid var(--bk-accent);
    box-shadow: 0 0 0 5px var(--bk-accent-ring) !important;
}

#booking-page-body-id .box-tix-appt-book.is-popup {
    background: var(--tix-bg);
    box-shadow: 0 0 0 2px var(--tix-accent), 0 6px 14px rgba(28, 25, 23, 0.12);
}

#booking-page-body-id .box-tix-appt-book .tix-info-book {
    gap: 2px;
    height: 100%;
    padding: var(--px-4) var(--px-8) var(--px-6) var(--px-6);
    white-space: normal;
    color: var(--bk-text);
}

#booking-page-body-id .box-tix-appt-book .client {
    flex: 0 0 auto;
    width: 100%;
    min-height: var(--px-14);
    padding: 0;
    margin-bottom: calc(22px * var(--scale) / 100);
    color: var(--bk-text) !important;
    font: normal normal 600 var(--s-12);
    line-height: var(--px-14);
}

#booking-page-body-id .box-tix-appt-book .time {
    width: 100%;
    padding: 0;
    opacity: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--bk-muted) !important;
    font: normal normal 500 var(--s-10);
}

#booking-page-body-id .box-tix-appt-book .time .time-start {
    display: none;
}

#booking-page-body-id .box-tix-appt-book .appt-book-ser-time {
    min-height: 0;
    margin: var(--px-2) 0 0;
    padding: 0;
    overflow: hidden;
}

#booking-page-body-id .box-tix-appt-book .appt-book-ser-time .ser {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: none;
    white-space: normal;
    color: var(--bk-muted) !important;
    opacity: 1;
    font: normal normal 400 var(--s-12);
    line-height: var(--px-14);
}

#booking-page-body-id .box-tix-appt-book .appt-book-ser-time .ser span {
    color: inherit !important;
}

#booking-page-body-id .box-tix-appt-book .appt-book-ser-time .ser {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: baseline;
}

#booking-page-body-id .tix-service-row {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    line-height: 14px;
}

#booking-page-body-id .tix-service-row::before {
    content: "";
    flex: 0 0 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--tix-accent);
    opacity: 0.75;
}

#booking-page-body-id .tix-service-row>span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#booking-page-body-id .box-tix-appt-book .tix-foot {
    display: flex;
    gap: var(--px-4);
    margin-top: auto;
    padding-top: var(--px-2);
}

#booking-page-body-id .box-tix-appt-book .tix-chip,
#booking-page-body-id .calendar-legend .legend-chip {
    padding: 0 var(--px-5);
    color: var(--bk-text);
    background: #fff;
    border-radius: var(--px-4);
    box-shadow: inset 0 0 0 1px var(--bk-line-strong);
    text-transform: none;
    font: normal normal 600 var(--s-10);
}

/* In service: the border itself is the progress (clockwise from top-left), POS parity */
#booking-page-body-id .box-tix-appt-book.tix-st-inservice:not(.timeOff) {
    border-width: 1px;
    border-color: transparent;
}

#booking-page-body-id .box-tix-appt-book.tix-st-inservice:not(.timeOff) .tix-info-book {
    padding-left: var(--px-8);
}

#booking-page-body-id .box-tix-appt-book.tix-st-inservice .client {
    padding-right: 0;
}

#booking-page-body-id .box-tix-appt-book .tix-perimeter {
    position: absolute;
    top: -1px;
    left: -1px;
    z-index: 4;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    overflow: visible;
    pointer-events: none;
}

#booking-page-body-id .box-tix-appt-book .tix-perimeter rect {
    x: 0.875px;
    y: 0.875px;
    width: calc(100% - 1.75px);
    height: calc(100% - 1.75px);
    rx: 5.25px;
    fill: none;
    stroke-width: 1.75px;
}

#booking-page-body-id .box-tix-appt-book .tix-perimeter-track {
    stroke: color-mix(in srgb, var(--tix-accent) 22%, transparent);
}

#booking-page-body-id .box-tix-appt-book .tix-perimeter-fill {
    stroke: var(--tix-accent);
    stroke-opacity: 0.7;
    stroke-dasharray: var(--tix-fill, 0) 100;
    transition: stroke-dasharray 1.6s cubic-bezier(0.65, 0, 0.35, 1);
}

#booking-page-body-id .box-tix-appt-book .tix-perimeter-mask {
    stroke: #fff;
    stroke-dasharray: var(--tix-fill, 0) 100;
    transition: stroke-dasharray 1.6s cubic-bezier(0.65, 0, 0.35, 1);
}

@property --tix-shimmer-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

#booking-page-body-id .box-tix-appt-book .tix-perimeter-shine {
    width: 100%;
    height: 100%;
    background: conic-gradient(from var(--tix-shimmer-angle), transparent 0deg 190deg, color-mix(in srgb, var(--tix-accent) 25%, transparent) 235deg, var(--tix-accent) 275deg, color-mix(in srgb, #fff 85%, var(--tix-accent)) 300deg, var(--tix-accent) 320deg, transparent 360deg);
    opacity: 0.8;
    transition: opacity 0.24s ease, filter 0.24s ease;
    animation: tix-perimeter-travel 9s linear infinite;
}

#booking-page-body-id .box-tix-appt-book.tix-st-inservice:is(:hover, :focus-visible) .tix-perimeter-shine {
    opacity: 1;
    filter: brightness(1.3) saturate(1.15);
}

@keyframes tix-perimeter-travel {
    from {
        --tix-shimmer-angle: 0deg;
    }

    to {
        --tix-shimmer-angle: 360deg;
    }
}

/* "45m left" leads the top-right icon row */
#booking-page-body-id .box-tix-appt-book .tix-status-book .top.tix-remaining {
    display: inline-flex;
    align-items: baseline;
    width: auto;
    height: var(--px-16);
    color: var(--bk-text);
    font-size: calc(10px * var(--scale) / 100);
    font-weight: 600;
    line-height: var(--px-16);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: help;
}

#booking-page-body-id .box-tix-appt-book .tix-remaining .tix-remaining-value {
    display: inline-block;
    color: var(--tix-accent);
    font-weight: 600;
    font-size: calc(11px * var(--scale) / 100);
}

#booking-page-body-id .box-tix-appt-book .tix-remaining .tix-remaining-value.is-ticking {
    animation: tech-busy-tick 0.45s ease-out;
}

#booking-page-body-id .box-tix-appt-book .tix-remaining .tix-remaining-label {
    margin-left: 3px;
    color: var(--bk-muted);
    font-weight: 400;
}

/* Duration handle: hidden until hover, grip pill centred on the bottom edge */
#booking-page-body-id .box-tix-appt-book .tix-bar-resize-book {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 7;
    width: auto;
    height: var(--px-10);
    padding: 0;
    align-items: flex-end;
    place-content: normal center;
    cursor: ns-resize;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

#booking-page-body-id .box-tix-appt-book .tix-bar-resize-book:not(.resize-s) {
    display: none;
}

#booking-page-body-id .box-tix-appt-book:is(:hover, .active, .holding-to-change-duration) .tix-bar-resize-book.resize-s {
    opacity: 1;
    pointer-events: auto;
}

#booking-page-body-id .box-tix-appt-book .tix-resize-grip {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--px-24);
    height: var(--px-12);
    margin-bottom: calc(var(--px-6) * -1);
    color: var(--bk-muted);
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px var(--bk-line-strong), 0 1px 3px rgba(28, 25, 23, 0.14);
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

#booking-page-body-id .box-tix-appt-book .tix-resize-grip i {
    position: static;
    cursor: ns-resize;
    font-size: calc(9px * var(--scale) / 100);
}

#booking-page-body-id .box-tix-appt-book .tix-bar-resize-book:hover .tix-resize-grip,
#booking-page-body-id .box-tix-appt-book.holding-to-change-duration .tix-resize-grip {
    color: #fff;
    background: var(--tix-accent);
    box-shadow: 0 0 0 1px var(--tix-accent), 0 2px 6px rgba(28, 25, 23, 0.18);
}

#booking-page-body-id .box-tix-appt-book.tix-st-done .tix-info-book.line-through,
#booking-page-body-id .box-tix-appt-book.tix-st-done .client {
    font-style: normal;
    text-decoration: none;
}

#booking-page-body-id .box-tix-appt-book:is(.tix-st-cancelled, .tix-st-noshow) .client {
    text-decoration: line-through;
    color: var(--bk-muted) !important;
}

#booking-page-body-id .box-tix-appt-book:is(.tix-st-cancelled, .tix-st-noshow) :is(.time, .ser) {
    opacity: 0.7;
}

/* Inline icon row, top-right (was a floating side rail) */
#booking-page-body-id .box-tix-appt-book .tix-status-book {
    top: calc(20px * var(--scale) / 100);
    left: var(--px-6);
    right: var(--px-6);
    z-index: 6;
    width: auto;
    height: var(--px-16);
    max-height: none;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    scrollbar-width: none;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
}

#booking-page-body-id .box-tix-appt-book .tix-status-book .top:not(.dis-none) {
    width: auto;
    height: var(--px-16);
    min-height: 0;
    border-radius: 0;
    color: color-mix(in srgb, var(--bk-text) 60%, var(--bk-muted));
}

#booking-page-body-id .box-tix-appt-book .tix-status-book i,
#booking-page-body-id .box-tix-appt-book .tix-status-book i.fa-mobile-button {
    font-size: calc(10px * var(--scale) / 100);
    color: inherit;
}

#booking-page-body-id .box-tix-appt-book .tix-status-book i.fa-regular {
    font-weight: 400;
}

#booking-page-body-id .box-tix-appt-book .tix-status-book i.fa-light {
    font-weight: 300;
}

#booking-page-body-id .box-tix-appt-book .tix-status-book i.txt-red {
    color: var(--bs-red);
}

@container tix (max-height: 72px) {
    #booking-page-body-id .box-tix-appt-book .appt-book-ser-time {
        display: none;
    }
}

@container tix (max-height: 50px) {
    #booking-page-body-id .box-tix-appt-book :is(.appt-book-ser-time, .tix-foot, .time) {
        display: none;
    }

    #booking-page-body-id .box-tix-appt-book .tix-info-book {
        padding-bottom: 18px;
    }

    #booking-page-body-id .box-tix-appt-book .client,
    #booking-page-body-id .box-tix-appt-book.tix-st-inservice .client {
        padding-right: 0;
        margin-bottom: 0;
    }

    #booking-page-body-id .box-tix-appt-book .tix-status-book {
        top: auto;
        bottom: 2px;
        left: 5px;
        right: 4px;
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }
}

@container tix (max-width: 110px) {
    #booking-page-body-id .box-tix-appt-book .tix-foot {
        display: none;
    }

    #booking-page-body-id .box-tix-appt-book .tix-info-book {
        padding: 3px 4px 20px;
    }

    #booking-page-body-id .box-tix-appt-book .client,
    #booking-page-body-id .box-tix-appt-book.tix-st-inservice .client {
        padding-right: 0;
        margin-bottom: 0;
    }

    #booking-page-body-id .box-tix-appt-book .tix-status-book {
        top: auto;
        bottom: 3px;
        left: 4px;
        right: 4px;
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }
}

@container tix (max-height: 30px) {
    #booking-page-body-id .box-tix-appt-book .tix-info-book {
        padding: 1px 4px 12px;
    }

    #booking-page-body-id .box-tix-appt-book .client {
        min-height: 12px;
        font-size: 10px;
        line-height: 12px;
    }

    #booking-page-body-id .box-tix-appt-book .tix-status-book,
    #booking-page-body-id .box-tix-appt-book .tix-status-book .top:not(.dis-none) {
        height: 10px;
        line-height: 10px;
    }

    #booking-page-body-id .box-tix-appt-book .tix-status-book {
        bottom: 1px;
        gap: 3px;
    }

    #booking-page-body-id .box-tix-appt-book .tix-status-book i {
        font-size: 9px;
    }

    #booking-page-body-id .box-tix-appt-book .tix-status-book .tix-remaining {
        display: none;
    }
}

#booking-page-body-id .box-tix-appt-book .tix-status-book .top {
    flex: 0 0 auto;
}

#booking-page-body-id .box-tix-appt-book .tix-status-book .tix-remaining {
    order: 1;
}

#booking-page-body-id .box-tix-appt-book:not(:has(.tix-status-book .top:not(.dis-none))) .client {
    margin-bottom: 0;
}

#booking-page-body-id .box-tix-appt-book .tix-status-book::-webkit-scrollbar {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    #booking-page-body-id .box-tix-appt-book :is(.tix-perimeter-fill, .tix-perimeter-mask) {
        transition: none;
    }

    #booking-page-body-id .box-tix-appt-book .tix-remaining-value.is-ticking {
        animation: none;
    }

    #booking-page-body-id .box-tix-appt-book .tix-perimeter-shine {
        display: none;
        animation: none;
    }
}

#booking-page-body-id .box-tix-appt-book.timeOff {
    border-width: 1px;
    border-color: var(--bk-line-strong) !important;
    background-size: auto !important;
    background-color: var(--bk-timeoff-bg) !important;
    background-image: repeating-linear-gradient(135deg, var(--bk-timeoff-stripe) 0px, var(--bk-timeoff-stripe) 1px, transparent 1px, transparent 10px) !important;
}

#booking-page-body-id .box-tix-appt-book.holding-to-moved,
#booking-page-body-id .box-tix-appt-book.clone-appointment-copy {
    border-color: var(--bk-accent) !important;
}

/* Right rail */
#booking-page-body-id .right-side-panel-action {
    padding: var(--px-12) 0;
    border-left: 1px solid var(--bk-line);
}

#booking-page-body-id .right-side-panel-action .group-btn-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--px-8);
}

#booking-page-body-id .right-side-panel-action button {
    border: 0;
    min-width: var(--px-40);
    height: var(--px-40);
    color: var(--bk-muted);
    background: transparent;
    border-radius: var(--px-12);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#booking-page-body-id .right-side-panel-action button i,
#booking-page-body-id .right-side-panel-action button i.text-warning {
    color: inherit !important;
    font-size: var(--px-18);
    --fa-primary-color: currentColor;
    --fa-secondary-color: currentColor;
    --fa-secondary-opacity: 0.35;
}

#booking-page-body-id .right-side-panel-action .group-btn-action button:hover,
#booking-page-body-id .right-side-panel-action button.navigation:hover {
    color: var(--bk-text);
    background: var(--bk-hover);
}

#booking-page-body-id .right-side-panel-action .rail-divider {
    width: var(--px-24);
    height: 1px;
    margin: var(--px-2) auto;
    background: var(--bk-line);
}

/* Legend (doubles as status filter), right side next to New booking */
#booking-page-body-id .calendar-legend {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--px-6);
    margin-left: auto;
}

/* Nav is width:100% globally; shrink it to sit right after the title */
#booking-page-body-id .booking-header-panel #navbar-append-follow-page {
    flex: 0 0 auto;
    width: auto;
    padding: 0 0 0 var(--px-14);
    gap: var(--px-8);
    align-items: center;
    background: transparent;
    border-left: 1px solid var(--bk-line);
}

#booking-page-body-id .booking-header-panel {
    grid-column: 1 / -1;
}

/* Visual order independent of markup: title | date nav ... legend | New booking */
#booking-page-body-id .booking-header-panel>.header-title-calendar {
    order: 0;
}

#booking-page-body-id .booking-header-panel>#navbar-append-follow-page {
    order: 1;
}

#booking-page-body-id .booking-header-panel>.calendar-legend {
    order: 2;
}

#booking-page-body-id .booking-header-panel>.btn-new-booking {
    order: 3;
}

#booking-page-body-id .booking-header-panel .search-form-salon i {
    width: var(--px-36);
    height: var(--px-36);
    border-radius: var(--px-10);
}

#booking-page-body-id #navbar-append-follow-page .date-nav {
    gap: 0;
    padding: 2px;
    background: #fff;
    border: 1px solid var(--bk-line-strong);
    border-radius: var(--px-10);
    box-shadow: var(--bk-shadow-sm);
}

#booking-page-body-id #navbar-append-follow-page .date-nav .btn-view-calendar-date {
    width: var(--px-30);
    height: var(--px-30);
    border-radius: var(--px-8);
}

#booking-page-body-id #navbar-append-follow-page .date-nav .btn-view-calendar-today {
    min-width: 0;
    height: var(--px-30);
    padding: 0 var(--px-12);
    color: var(--bk-text);
    background: transparent;
    border: 0;
    border-radius: var(--px-8);
    box-shadow: none;
}

#booking-page-body-id #navbar-append-follow-page .date-nav .btn-view-calendar-today:hover {
    color: var(--bk-accent-strong);
    background: var(--bk-accent-soft);
}

/* Already on today: stays usable but reads as the current state */
#booking-page-body-id #navbar-append-follow-page .date-nav .btn-view-calendar-today.is-current {
    color: var(--bk-muted);
    font-weight: 500;
}

#booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar {
    min-width: var(--px-240);
    padding: 0 var(--px-6);
    background: transparent;
}

#booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar .text-white {
    color: var(--bk-text) !important;
    letter-spacing: -0.01em;
    white-space: nowrap;
    font: normal normal 600 var(--s-16);
}

#booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar:not(.noClick) {
    height: var(--px-36);
    padding: 0 var(--px-10);
    border-radius: var(--px-10);
}

#booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar:not(.noClick):hover {
    background: var(--bk-hover);
}

#booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar:not(.noClick) i {
    color: var(--bk-muted);
    font-size: var(--px-12);
}

#booking-page-body-id .booking-header-panel .btn-new-booking {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: var(--px-6);
    height: var(--px-36);
    padding: 0 var(--px-14);
    color: #fff;
    white-space: nowrap;
    background: var(--bs-dark);
    border: 0;
    border-radius: var(--px-10);
    box-shadow: 0 2px 6px rgb(35 14 0 / 30%);
    font: normal normal 600 var(--s-13);
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

#booking-page-body-id .booking-header-panel .btn-new-booking:hover {
    background: var(--bk-accent-strong);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.36);
}

#booking-page-body-id .booking-header-panel :is(.btn-new-booking, .date-nav button):focus-visible {
    outline: 2px solid var(--bk-accent);
    outline-offset: 2px;
}

@media (max-width: 1366px) {
    #booking-page-body-id .booking-header-stats[hidden] {
        display: none !important;
    }

    #booking-page-body-id .booking-header-panel .btn-new-booking {
        width: var(--px-36);
        padding: 0;
        justify-content: center;
    }

    #booking-page-body-id .booking-header-panel .btn-new-booking span {
        display: none;
    }
}

#booking-page-body-id .calendar-legend .legend-items {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: var(--px-2);
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

#booking-page-body-id .calendar-legend .legend-items::-webkit-scrollbar {
    display: none;
}

#booking-page-body-id .calendar-legend .legend-set {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--px-2);
    height: 100%;
}

#booking-page-body-id .calendar-legend .legend-set-label {
    flex: 0 0 auto;
    padding: 0 var(--px-5);
    color: var(--bk-muted);
    font-size: calc(9px * var(--scale) / 100);
    font-weight: 600;
    text-transform: uppercase;
}

#booking-page-body-id .calendar-legend .legend-set-divider {
    flex: 0 0 auto;
    width: 1px;
    height: 16px;
    margin: 0 var(--px-4);
    background: var(--bk-line-strong);
}

#booking-page-body-id .calendar-legend :is(.legend-item, .legend-clear) {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: var(--px-6);
    height: var(--px-26);
    padding: 0 var(--px-10);
    cursor: pointer;
    color: var(--bk-muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    font: normal normal 500 var(--s-12);
    transition: background 0.15s ease, color 0.15s ease;
}

#booking-page-body-id .calendar-legend :is(.legend-item, .legend-clear):hover {
    color: var(--bk-text);
    background: var(--bk-hover);
}

#booking-page-body-id .calendar-legend :is(.legend-item, .legend-clear):focus-visible {
    outline: 2px solid var(--bk-accent);
    outline-offset: 1px;
}

#booking-page-body-id .calendar-legend .legend-clear {
    gap: var(--px-4);
    margin-left: var(--px-4);
}

#booking-page-body-id .calendar-legend .swatch {
    flex: 0 0 auto;
    width: var(--px-8);
    height: var(--px-8);
    border-radius: 50%;
}

#booking-page-body-id .calendar-legend .swatch.booked {
    background: var(--bk-st-booked);
}

#booking-page-body-id .calendar-legend .swatch.unconfirmed {
    background: var(--bk-st-unconfirmed);
}

#booking-page-body-id .calendar-legend .swatch.waiting {
    background: var(--bk-st-waiting);
}

#booking-page-body-id .calendar-legend .swatch.inservice {
    background: var(--bk-st-inservice);
}

#booking-page-body-id .calendar-legend .swatch.done {
    background: var(--bk-st-done);
}

#booking-page-body-id .calendar-legend .swatch.cancelled {
    background: var(--bk-st-cancelled);
}

#booking-page-body-id .calendar-legend .swatch.noshow {
    background: var(--bk-st-noshow);
}

#booking-page-body-id .calendar-legend .swatch.closed {
    background: var(--bk-st-done);
}

#booking-page-body-id .calendar-legend .swatch.online {
    background: #7c6de0;
}

#booking-page-body-id .calendar-legend .swatch.offshift {
    width: var(--px-12);
    height: var(--px-12);
    border-radius: 3px;
    background-size: 5px 5px;
    background-color: var(--bk-offhours);
    background-image: linear-gradient(45deg, transparent 40%, rgba(120, 113, 108, 0.45) 45%, rgba(120, 113, 108, 0.45) 55%, transparent 60%);
    box-shadow: inset 0 0 0 1px var(--bk-line-strong);
}

#booking-page-body-id .calendar-legend .legend-more {
    flex: 0 0 auto;
    position: relative;
}

#booking-page-body-id .calendar-legend .legend-item[data-filter-kind] {
    --filter-ink: var(--bk-muted);
}

#booking-page-body-id .calendar-legend [data-filter-kind="booked"] {
    --filter-ink: var(--bk-st-booked);
}

#booking-page-body-id .calendar-legend [data-filter-kind="unconfirmed"] {
    --filter-ink: var(--bk-st-unconfirmed);
}

#booking-page-body-id .calendar-legend [data-filter-kind="waiting"] {
    --filter-ink: var(--bk-st-waiting);
}

#booking-page-body-id .calendar-legend [data-filter-kind="inservice"] {
    --filter-ink: var(--bk-st-inservice);
}

#booking-page-body-id .calendar-legend [data-filter-kind="done"] {
    --filter-ink: var(--bk-st-done);
}

#booking-page-body-id .calendar-legend [data-filter-kind="cancelled"] {
    --filter-ink: #c9c4be;
}

#booking-page-body-id .calendar-legend [data-filter-kind="noshow"] {
    --filter-ink: #e5484d;
}

#booking-page-body-id .calendar-legend [data-filter-kind="closed"] {
    --filter-ink: var(--bk-st-done);
}

#booking-page-body-id .calendar-legend [data-filter-kind="online"] {
    --filter-ink: #7c6de0;
}

#booking-page-body-id .calendar-legend .legend-item[data-filter-kind][aria-pressed="true"] {
    color: var(--bk-text);
    background: color-mix(in srgb, var(--filter-ink) 9%, transparent);
}

#booking-page-body-id .calendar-legend .legend-item[data-filter-kind].is-hidden {
    color: var(--bk-muted);
    opacity: 0.62;
}

#booking-page-body-id .calendar-legend .legend-item[data-filter-kind].is-hidden .swatch {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--filter-ink);
}

/* Bridges the gap so hover survives moving into the panel */
#booking-page-body-id .calendar-legend .legend-more::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: var(--px-10);
}

#booking-page-body-id .calendar-legend .legend-more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--px-28);
    height: var(--px-28);
    padding: 0;
    color: var(--bk-muted);
    background: transparent;
    border: 0;
    border-radius: 50%;
    font-size: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

#booking-page-body-id .calendar-legend .legend-more-btn i {
    color: inherit;
    font-size: var(--px-14);
}

#booking-page-body-id .calendar-legend .legend-more:is(:hover, :focus-within) .legend-more-btn {
    color: var(--bk-text);
    background: var(--bk-hover);
}

#booking-page-body-id .calendar-legend .legend-more-panel {
    position: absolute;
    top: calc(100% + var(--px-8));
    right: 0;
    z-index: 30;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--px-10) var(--px-20);
    min-width: var(--px-340);
    padding: var(--px-14) var(--px-16);
    background: var(--bk-surface);
    border: 1px solid var(--bk-line);
    border-radius: var(--px-12);
    box-shadow: 0 12px 32px rgba(28, 25, 23, 0.14);
}

#booking-page-body-id .calendar-legend .legend-more:hover .legend-more-panel,
#booking-page-body-id .calendar-legend .legend-more:focus-within .legend-more-panel {
    display: grid;
}

#booking-page-body-id .calendar-legend .legend-more-panel span {
    display: flex;
    align-items: center;
    gap: var(--px-8);
    white-space: nowrap;
    color: var(--bk-text);
    font: normal normal 500 var(--s-12);
}

#booking-page-body-id .calendar-legend .legend-more-panel span i {
    width: var(--px-16);
    text-align: center;
    color: var(--bk-muted);
}

#booking-page-body-id .calendar-legend .legend-more-panel span i.txt-red {
    color: var(--bs-red);
}

#booking-page-body-id #calendar-view-area>.calendar-legend {
    position: sticky;
    left: var(--w-hour);
    bottom: 0;
    z-index: 12;
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    gap: 8px;
    width: calc(100% - var(--w-hour));
    min-width: 0;
    height: 48px;
    margin: 0 0 0 var(--w-hour);
    padding: 6px 16px;
    background: var(--bk-surface);
    border-top: 1px solid var(--bk-line);
    box-shadow: 0 -4px 12px rgba(28, 25, 23, 0.08);
}

#booking-page-body-id #calendar-view-area>.calendar-legend .legend-items {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    height: 40px;
    gap: 6px;
    padding-right: 24px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
}

#booking-page-body-id #calendar-view-area>.calendar-legend .legend-set {
    height: 100%;
    gap: 6px;
}

#booking-page-body-id #calendar-view-area>.calendar-legend :is(.legend-item, .legend-clear) {
    height: 28px;
    padding: 0 12px;
    font-size: 12px;
}

#booking-page-body-id #calendar-view-area>.calendar-legend .legend-more {
    flex: 0 0 auto;
}

#booking-page-body-id #calendar-view-area>.calendar-legend .legend-more-btn {
    width: 28px;
    height: 28px;
}

#booking-page-body-id #calendar-view-area>.calendar-legend .legend-more-panel {
    top: auto;
    right: auto;
    left: 0;
    bottom: calc(100% + 8px);
}

@media (max-width: 1200px) {
    #booking-page-body-id #calendar-view-area>.calendar-legend {
        flex-basis: 42px;
        height: 42px;
        padding: 4px 10px;
    }

    #booking-page-body-id #calendar-view-area>.calendar-legend .legend-items {
        height: 34px;
        gap: 4px;
        padding-right: 22px;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent);
    }

    #booking-page-body-id #calendar-view-area>.calendar-legend .legend-set {
        gap: 4px;
    }

    #booking-page-body-id #calendar-view-area>.calendar-legend :is(.legend-item, .legend-clear) {
        height: 28px;
        padding: 0 10px;
        font-size: 12px;
    }

    #booking-page-body-id #calendar-view-area>.calendar-legend .legend-more-btn {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 1024px) {
    #booking-page-body-id #calendar-view-area>.calendar-legend {
        bottom: 8px;
    }
}

/* Collapsible Booking Online / Salon Appt lanes */
#booking-page-body-id {
    --lane-strip-w: var(--px-48);
}

#booking-page-body-id .lane-collapsed-head,
#booking-page-body-id .lane-collapsed-strip {
    display: none;
}

#booking-page-body-id[lanes="collapsed"] .ui-tech-column.noScroll,
#booking-page-body-id[lanes="collapsed"] .col-calendar.noScroll,
#booking-page-body-id[lanes="collapsed"] .general-tix-bar.noScroll {
    display: none;
}

/* Drawer opened from a Salon Appt slot: fold only Booking Online, Salon Appt pins next to the hours */
#booking-page-body-id[lanes="online"] .ui-tech-column.lane-online,
#booking-page-body-id[lanes="online"] .col-calendar.online-booking,
#booking-page-body-id[lanes="online"] .general-tix-bar.noScroll .box-tix-appt-book[empid="-1"] {
    display: none;
}

#booking-page-body-id[lanes="online"] .booking-calendar-area .header-calendar-view .ui-tech-column.lane-salon,
#booking-page-body-id[lanes="online"] .booking-calendar-area .calendar-view-column-parent .col-calendar.salon {
    left: var(--w-hour) !important;
}

#booking-page-body-id[lanes="collapsed"] .lane-collapsed-head {
    position: sticky;
    left: var(--w-hour);
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--lane-strip-w);
    max-width: var(--lane-strip-w);
    min-height: var(--bk-head-h);
    background: var(--bk-lane);
    border-right: 1px solid var(--bk-lane-line);
    border-bottom: 1px solid var(--bk-line);
}

#booking-page-body-id[lanes="collapsed"] .lane-collapsed-strip {
    position: sticky;
    left: var(--w-hour);
    z-index: 7;
    display: flex;
    justify-content: center;
    min-width: var(--lane-strip-w);
    max-width: var(--lane-strip-w);
    background: var(--bk-lane);
    border-right: 1px solid var(--bk-lane-line);
    box-shadow: 6px 0 10px -8px rgba(28, 25, 23, 0.18);
}

#booking-page-body-id .lane-expand-btn,
#booking-page-body-id .lane-hide-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--px-24);
    height: var(--px-24);
    padding: 0;
    color: var(--bk-muted);
    background: #fff;
    border: 1px solid var(--bk-line-strong);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(28, 25, 23, 0.12);
    font-size: var(--px-10);
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#booking-page-body-id .lane-expand-btn:hover,
#booking-page-body-id .lane-hide-btn:hover,
#booking-page-body-id :is(.lane-expand-btn, .lane-hide-btn):focus-visible {
    color: #fff;
    background: var(--bk-accent);
    border-color: var(--bk-accent);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.32);
    outline: none;
}

#booking-page-body-id .lane-hide-btn {
    position: absolute;
}

#booking-page-body-id .lane-expand-btn {
    position: relative;
}

/* Bigger hit area on touch without changing the visual size */
#booking-page-body-id :is(.lane-expand-btn, .lane-hide-btn)::after {
    content: "";
    position: absolute;
    inset: calc(var(--px-8) * -1);
}

#booking-page-body-id .lane-collapsed-card {
    position: sticky;
    top: calc(var(--bk-head-h) + var(--px-12));
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--px-10);
    width: calc(100% - var(--px-12));
    margin-top: var(--px-12);
    padding: var(--px-14) 0 var(--px-10);
    color: var(--bk-text);
    background: var(--bk-surface);
    border: 1px solid var(--bk-lane-line);
    border-radius: var(--px-10);
    box-shadow: var(--bk-shadow-sm);
}

#booking-page-body-id .lane-collapsed-card:hover {
    border-color: var(--bk-line-strong);
    box-shadow: var(--bk-shadow-md);
}

#booking-page-body-id .lane-collapsed-card .label {
    writing-mode: vertical-rl;
    white-space: nowrap;
    font: normal normal 600 var(--s-12);
}

#booking-page-body-id .lane-collapsed-card .count {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--px-22);
    height: var(--px-22);
    padding: 0 var(--px-4);
    color: #fff;
    background: var(--bk-accent);
    border-radius: 999px;
    font: normal normal 600 var(--s-11);
}

#booking-page-body-id .lane-collapsed-card .count.is-empty {
    color: var(--bk-muted);
    background: var(--bk-hover);
}

/* Closed hours bar */
#booking-page-body-id .calendar-closed-hours {
    position: sticky;
    left: 0;
    z-index: 7;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: var(--px-10);
    min-height: var(--px-48);
    padding: 0 var(--px-16);
    color: var(--bk-muted);
    background-color: var(--bk-offhours);
    background-image: repeating-linear-gradient(135deg, var(--bk-timeoff-stripe) 0px, var(--bk-timeoff-stripe) 1px, transparent 1px, transparent 10px);
    border-top: 1px solid var(--bk-line-strong);
    font: normal normal 500 var(--s-12);
}

#booking-page-body-id .calendar-closed-hours.is-hidden {
    border-top-style: dashed;
}

#booking-page-body-id .calendar-closed-hours .outside {
    padding: 2px var(--px-8);
    color: var(--bk-accent-strong);
    background: var(--bk-accent-soft);
    border-radius: 999px;
    font: normal normal 600 var(--s-11);
}

#booking-page-body-id .calendar-closed-hours .btn-toggle-closed-hours {
    height: var(--px-30);
    padding: 0 var(--px-12);
    color: var(--bk-text);
    background: var(--bk-surface);
    border: 1px solid var(--bk-line-strong);
    border-radius: var(--px-8);
    box-shadow: var(--bk-shadow-sm);
    font: normal normal 600 var(--s-12);
}

#booking-page-body-id .calendar-closed-hours .btn-toggle-closed-hours:hover {
    border-color: var(--bk-accent-tint);
    background: var(--bk-accent-soft);
}

/* View options applied from Booking settings */
#booking-page-body-id[quarter-lines="off"] .booking-calendar-area .calendar-view-column-parent .calendar-view-row {
    background-image: none;
}

#booking-page-body-id[card-color="tech"] .box-tix-appt-book {
    --tix-pick: var(--tix-tech, var(--bk-st-booked));
}

#booking-page-body-id[card-color="service"] .box-tix-appt-book {
    --tix-pick: var(--tix-svc, var(--bk-st-booked));
}

/* Done / cancelled / no-show keep their muted look so finished work still reads as finished */
#booking-page-body-id:is([card-color="tech"], [card-color="service"]) .box-tix-appt-book:not(.timeOff):not(.tix-st-done):not(.tix-st-cancelled):not(.tix-st-noshow) {
    --tix-accent: var(--tix-pick);
    --tix-bg: color-mix(in srgb, var(--tix-pick) 12%, #fff);
}

/* Booking settings side panel */
#booking-page-body-id {
    --bks-w: var(--px-400, 400px);
}

#booking-page-body-id.settings-open {
    grid-template-columns: var(--px-280) minmax(0, 1fr) var(--px-60) var(--bks-w);
}

#booking-page-body-id .right-side-panel-action button.btn-setting-calendar.active {
    color: var(--bk-accent-strong);
    background: var(--bk-accent-soft);
    box-shadow: inset 0 0 0 1px var(--bk-accent-tint);
}

#booking-settings-panel {
    grid-column: 4;
    grid-row: 2;
    z-index: 15;
    display: none;
    flex-direction: column;
    gap: var(--px-12);
    min-width: 0;
    min-height: 0;
    padding: var(--px-16);
    overflow: hidden;
    color: var(--bk-text);
    background: #fff;
    border-left: 1px solid var(--bk-line);
    box-shadow: -10px 0 28px -20px rgba(28, 25, 23, 0.35);
    font-size: 13px;
}

#booking-page-body-id.settings-open #booking-settings-panel {
    display: flex;
    animation: bks-in 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bks-in {
    from {
        opacity: 0;
        transform: translateX(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

#booking-settings-panel [hidden] {
    display: none !important;
}

#booking-settings-panel button {
    min-width: 0;
    cursor: pointer;
    font-family: inherit;
    box-shadow: none;
}

#booking-settings-panel button:active {
    animation: none;
}

#booking-settings-panel button:disabled {
    cursor: not-allowed;
}

#booking-settings-panel :is(button, input, select, textarea):focus-visible {
    outline: 2px solid var(--bk-accent);
    outline-offset: 2px;
}

#booking-settings-panel .bks-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    gap: var(--px-12);
}

#booking-settings-panel .bks-heading {
    display: flex;
    align-items: center;
    gap: var(--px-12);
    min-width: 0;
}

#booking-settings-panel .bks-heading p {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

#booking-settings-panel .bks-heading small {
    color: var(--bk-muted);
    font-size: 12px;
}

#booking-settings-panel .bks-heading-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--bk-accent-strong);
    background: var(--bk-accent-soft);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px var(--bk-accent-tint);
    font-size: 17px;
}

#booking-settings-panel .bks-close {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--bk-text);
    background: #fff;
    border: 1px solid var(--bk-line-strong);
    border-radius: 10px;
    transition: background 0.15s ease;
}

#booking-settings-panel .bks-close:hover {
    background: var(--bk-hover);
}

#booking-settings-panel .bks-tabs {
    display: grid;
    flex-shrink: 0;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    height: 40px;
    padding: 3px;
    background: var(--bk-hover);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px var(--bk-line);
}

#booking-settings-panel .bks-tabs button {
    height: 34px;
    padding: 0 12px;
    color: var(--bk-muted);
    background: transparent;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#booking-settings-panel .bks-tabs button:hover {
    color: var(--bk-text);
}

#booking-settings-panel .bks-tabs button[aria-selected="true"] {
    color: var(--bk-text);
    background: #fff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.08), 0 2px 6px rgba(28, 25, 23, 0.05);
}

#booking-settings-panel .bks-pane {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

#booking-settings-panel #bks-appointments {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#booking-settings-panel .bks-note {
    display: flex;
    align-items: center;
    gap: var(--px-8);
    margin: 0 0 var(--px-6);
    padding: var(--px-6) var(--px-8);
    color: var(--bk-muted);
    font-size: 12px;
}

/* View options */
#booking-settings-panel .bks-options {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#booking-settings-panel .bks-option {
    display: flex;
    align-items: center;
    gap: var(--px-12);
    width: 100%;
    height: auto;
    padding: var(--px-10) var(--px-8);
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 12px;
    transition: background 0.15s ease;
}

#booking-settings-panel button.bks-option:hover {
    background: var(--bk-surface);
}

#booking-settings-panel .bks-option--selector {
    align-items: flex-start;
}

#booking-settings-panel .bks-option-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--bk-muted);
    background: var(--bk-hover);
    border-radius: 10px;
    font-size: 15px;
}

#booking-settings-panel .bks-option-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#booking-settings-panel .bks-option-title {
    color: var(--bk-text);
    font-size: 13.5px;
    font-weight: 600;
}

#booking-settings-panel .bks-option-desc {
    color: var(--bk-muted);
    font-size: 12px;
}

#booking-settings-panel .bks-switch {
    position: relative;
    flex: 0 0 auto;
    width: 36px;
    height: 20px;
    background: #d6d1cb;
    border-radius: 999px;
    transition: background 0.2s ease;
}

#booking-settings-panel .bks-switch::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.22);
    transition: transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1);
}

#booking-settings-panel [aria-checked="true"]>.bks-switch,
#booking-settings-panel .bks-toggle input:checked+.bks-switch {
    background: var(--bk-accent);
}

#booking-settings-panel [aria-checked="true"]>.bks-switch::before,
#booking-settings-panel .bks-toggle input:checked+.bks-switch::before {
    transform: translateX(16px);
}

#booking-settings-panel .bks-segment {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin-top: var(--px-10);
    padding: 4px;
    background: var(--bk-hover);
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px var(--bk-line);
}

#booking-settings-panel .bks-segment button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: auto;
    padding: var(--px-8) var(--px-4);
    color: var(--bk-muted);
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

#booking-settings-panel .bks-segment button i {
    font-size: 14px;
}

#booking-settings-panel .bks-segment button:hover {
    color: var(--bk-text);
}

#booking-settings-panel .bks-segment button[aria-checked="true"] {
    color: var(--bk-accent-strong);
    background: #fff;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(28, 25, 23, 0.08), inset 0 0 0 1px var(--bk-accent-tint);
}

#booking-settings-panel .bks-divider {
    height: 1px;
    margin: var(--px-10) 0;
    background: var(--bk-line);
}

#booking-settings-panel .bks-zoom {
    display: flex;
    flex-direction: column;
    gap: var(--px-8);
    padding: var(--px-8);
}

#booking-settings-panel .bks-zoom+.bks-zoom {
    margin-top: var(--px-6);
}

#booking-settings-panel .bks-zoom-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--px-8);
}

#booking-settings-panel .bks-zoom-head label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

#booking-settings-panel .bks-zoom-head output {
    padding: 2px 8px;
    color: var(--bk-accent-strong);
    background: var(--bk-accent-soft);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

#booking-settings-panel .bks-range {
    width: 100%;
    height: 6px;
    margin: var(--px-6) 0;
    cursor: pointer;
    background: linear-gradient(to right, var(--bk-accent) 0 var(--bks-fill, 0%), #e4dfd9 var(--bks-fill, 0%) 100%);
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
}

#booking-settings-panel .bks-range::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid var(--bk-accent);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(28, 25, 23, 0.2);
    transition: transform 0.15s ease;
    -webkit-appearance: none;
}

#booking-settings-panel .bks-range::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: #fff;
    border: 2px solid var(--bk-accent);
    border-radius: 50%;
}

#booking-settings-panel .bks-range:not(:disabled):active::-webkit-slider-thumb {
    transform: scale(1.12);
}

#booking-settings-panel .bks-range:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

#booking-settings-panel .bks-reset {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: var(--px-6);
    height: 28px;
    padding: 0 var(--px-8);
    color: var(--bk-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 12px;
}

#booking-settings-panel .bks-reset:not(:disabled):hover {
    color: var(--bk-text);
    background: var(--bk-hover);
}

#booking-settings-panel .bks-reset:disabled {
    opacity: 0.45;
}

#booking-settings-panel .bks-hint {
    margin: 0;
    color: var(--bk-muted);
    font-size: 11.5px;
}

/* Appointments (salon-wide) */
#booking-settings-panel .bks-form {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

#booking-settings-panel .bks-intro {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: var(--px-10);
    padding: 2px 2px var(--px-12);
}

#booking-settings-panel .bks-intro i {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    height: 32px;
    color: var(--bk-muted);
    background: var(--bk-hover);
    border-radius: 9px;
}

#booking-settings-panel .bks-intro p {
    margin: 0;
    font-size: 12.5px;
    font-weight: 600;
}

#booking-settings-panel .bks-intro p span {
    display: block;
    color: var(--bk-muted);
    font-size: 12px;
    font-weight: 400;
}

#booking-settings-panel .bks-fields {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0 4px var(--px-12) 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

#booking-settings-panel .bks-group+.bks-group {
    margin-top: var(--px-20);
}

#booking-settings-panel .bks-group-head {
    display: flex;
    align-items: center;
    gap: var(--px-10);
    padding: 0 2px var(--px-10);
}

#booking-settings-panel .bks-group-head h3 {
    margin: 0 0 2px;
    color: var(--bk-text);
    font-size: 13.5px;
    font-weight: 600;
}

#booking-settings-panel .bks-group-head p {
    margin: 0;
    color: var(--bk-muted);
    font-size: 12px;
}

#booking-settings-panel .bks-group-icon {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    height: 32px;
    color: var(--bk-accent-strong);
    background: var(--bk-accent-soft);
    border-radius: 9px;
}

#booking-settings-panel .bks-group-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 12px;
}

#booking-settings-panel .bks-setting {
    padding: var(--px-14);
    transition: box-shadow 0.2s ease;
}

#booking-settings-panel .bks-setting+.bks-setting {
    border-top: 1px solid var(--bk-line);
}

#booking-settings-panel .bks-setting.is-changed {
    box-shadow: inset 3px 0 var(--bk-accent);
}

#booking-settings-panel .bks-toggle {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--px-12);
    min-height: 40px;
    margin: 0;
    cursor: pointer;
}

#booking-settings-panel .bks-toggle input {
    position: absolute;
    right: 0;
    width: 36px;
    height: 20px;
    margin: 0;
    opacity: 0;
}

#booking-settings-panel .bks-toggle input:focus-visible+.bks-switch {
    outline: 2px solid var(--bk-accent);
    outline-offset: 3px;
}

#booking-settings-panel .bks-toggle input:disabled+.bks-switch {
    opacity: 0.5;
}

#booking-settings-panel .bks-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}

#booking-settings-panel .bks-copy>span {
    font-size: 13px;
    font-weight: 600;
}

#booking-settings-panel .bks-copy small {
    color: var(--bk-muted);
    font-size: 12px;
    line-height: 1.45;
}

#booking-settings-panel :is(.bks-details, .bks-children) {
    margin-top: var(--px-10);
    padding: var(--px-10) var(--px-12);
    background: var(--bk-surface);
    border-radius: 10px;
}

#booking-settings-panel .bks-children>.bks-setting {
    padding: 0;
}

#booking-settings-panel .bks-children>.bks-setting+.bks-setting {
    margin-top: var(--px-10);
    padding-top: var(--px-10);
}

#booking-settings-panel .bks-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    align-items: center;
    gap: var(--px-12);
    margin: 0;
    font-size: 12.5px;
}

#booking-settings-panel .bks-field+.bks-field {
    margin-top: var(--px-8);
}

#booking-settings-panel :is(.bks-select, .bks-inline) {
    display: flex;
    flex-direction: column;
    gap: var(--px-8);
    margin: 0;
}

#booking-settings-panel :is(.bks-field, .bks-select) :is(input, select) {
    width: 100%;
    height: 38px;
    padding: 0 var(--px-10);
    color: var(--bk-text);
    background: #fff;
    border: 1px solid var(--bk-line-strong);
    border-radius: 8px;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#booking-settings-panel :is(.bks-field, .bks-select) :is(input, select):focus {
    border-color: var(--bk-accent);
    outline: 0;
    box-shadow: 0 0 0 3px var(--bk-accent-ring);
}

#booking-settings-panel :is(.bks-field, .bks-select) :is(input, select):disabled {
    opacity: 0.6;
}

#booking-settings-panel .bks-radio-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

#booking-settings-panel .bks-radio-group legend {
    padding: 0;
    color: var(--bk-text);
    font-size: 13px;
    font-weight: 600;
}

#booking-settings-panel .bks-radio-group>div {
    display: grid;
    gap: var(--px-6);
    margin-top: var(--px-8);
}

#booking-settings-panel .bks-radio-group>.bks-radio-hint {
    display: block;
    margin-top: 4px;
    color: var(--bk-muted);
    font-size: 12px;
    line-height: 1.45;
}

#booking-settings-panel .bks-radio-group.is-row>div {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
}

#booking-settings-panel .bks-radio-group.is-row .bks-radio-option {
    align-items: center;
    padding: var(--px-8) var(--px-12);
}

#booking-settings-panel .bks-radio-group.is-row .bks-radio-option input {
    margin-top: 0;
}

#booking-settings-panel .bks-radio-group+.bks-field {
    margin-top: var(--px-10);
}

#booking-settings-panel .bks-radio-option:has(input:focus-visible) {
    outline: 2px solid var(--bk-accent);
    outline-offset: 2px;
}

#booking-settings-panel .bks-radio-option {
    display: flex;
    align-items: flex-start;
    gap: var(--px-10);
    min-width: 0;
    padding: var(--px-10) var(--px-12);
    background: #fff;
    border: 1px solid var(--bk-line);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

#booking-settings-panel .bks-radio-option:has(input:checked) {
    background: var(--bk-accent-soft);
    border-color: var(--bk-accent);
}

#booking-settings-panel .bks-radio-option input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: var(--bk-accent-strong);
}

#booking-settings-panel .bks-radio-option input:disabled {
    opacity: 0.55;
}

#booking-settings-panel .bks-radio-option span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

#booking-settings-panel .bks-radio-option strong {
    color: var(--bk-text);
    font-size: 12.5px;
    font-weight: 600;
}

#booking-settings-panel .bks-radio-option small {
    color: var(--bk-muted);
    font-size: 11.5px;
    line-height: 1.4;
}

#booking-settings-panel [aria-invalid="true"] {
    border-color: var(--bs-red, #dc3545) !important;
}

#booking-settings-panel .bks-readonly p {
    margin: var(--px-8) 0 0;
    color: var(--bk-muted);
    font-size: 12px;
}

#booking-settings-panel .bks-footer {
    flex: 0 0 auto;
    padding-top: var(--px-12);
    background: #fff;
    border-top: 1px solid var(--bk-line);
}

#booking-settings-panel .bks-footer>span {
    color: var(--bk-muted);
    font-size: 12px;
}

#booking-settings-panel .bks-footer>span[role="alert"] {
    color: var(--bs-red, #dc3545);
}

#booking-settings-panel .bks-footer>div {
    display: flex;
    justify-content: flex-end;
    gap: var(--px-8);
    margin-top: var(--px-8);
}

#booking-settings-panel .bks-footer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--px-6);
    height: 38px;
    padding: 0 var(--px-14);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease, opacity 0.15s ease;
}

#booking-settings-panel .bks-footer [data-bks-cancel] {
    min-width: 84px;
    color: var(--bk-text);
    background: #fff;
    border: 1px solid var(--bk-line-strong);
}

#booking-settings-panel .bks-footer [data-bks-cancel]:not(:disabled):hover {
    background: var(--bk-hover);
}

#booking-settings-panel .bks-footer [data-bks-save] {
    min-width: 140px;
    color: #fff;
    background: var(--bs-dark);
    border: 0;
}

#booking-settings-panel .bks-footer [data-bks-save]:not(:disabled):hover {
    background: var(--bk-accent-strong);
}

#booking-settings-panel .bks-footer [data-bks-save] i {
    font-size: 11px;
    opacity: 0.8;
}

#booking-settings-panel .bks-footer button:disabled {
    opacity: 0.45;
}

#booking-settings-panel .bks-message {
    margin: 0;
    padding: var(--px-16) var(--px-8);
    color: var(--bk-muted);
}

#booking-settings-panel .bks-message p {
    margin: 0 0 var(--px-10);
}

#booking-settings-panel .bks-message button {
    height: 34px;
    padding: 0 var(--px-14);
    color: var(--bk-text);
    background: #fff;
    border: 1px solid var(--bk-line-strong);
    border-radius: 10px;
    font-weight: 600;
}

/* Small screens: panel floats over the calendar as a dialog */
@media (max-width: 1024px) {
    #booking-page-body-id.settings-open {
        grid-template-columns: var(--px-280) minmax(0, 1fr) var(--px-60);
    }

    #booking-settings-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 1060;
        width: min(var(--bks-w), 100vw);
        box-shadow: -12px 0 32px rgba(28, 25, 23, 0.22);
    }
}

@media (prefers-reduced-motion: reduce) {
    #booking-page-body-id.settings-open #booking-settings-panel {
        animation: none;
    }

    #booking-settings-panel :is(.bks-switch, .bks-tabs button, .bks-segment button),
    #booking-settings-panel .bks-switch::before {
        transition: none;
    }
}

/* Calendar-first layout for touch screens */
@media (max-width: 1024px) {
    #booking-page-body-id {
        --bk-mobile-header-height: 110px;
        min-width: 0;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr);
    }

    #booking-page-body-id.settings-open {
        grid-template-columns: minmax(0, 1fr);
    }

    #booking-page-body-id .booking-header-panel {
        grid-column: 1;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px;
        grid-template-rows: 36px 34px 24px;
        grid-template-areas:
            "title action"
            "date date"
            "legend legend";
        align-content: center;
        gap: 3px 8px;
        min-width: 0;
        min-height: var(--bk-mobile-header-height);
        padding: 5px 10px;
    }

    #booking-page-body-id .booking-header-panel>.header-title-calendar {
        grid-area: title;
        min-width: 0;
        gap: 8px;
        padding-right: 8px;
    }

    #booking-page-body-id .header-title-calendar .icon-cal,
    #booking-page-body-id .header-title-calendar svg {
        flex: 0 0 32px;
        width: 32px;
        height: 32px;
    }

    #booking-page-body-id .header-title-calendar p {
        min-width: 0;
        overflow: hidden;
        font-size: 17px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #booking-page-body-id .booking-header-panel>#navbar-append-follow-page {
        grid-area: date;
        display: flex;
        flex: none;
        width: 100%;
        min-width: 0;
        gap: 6px;
        padding: 0;
        border: 0;
    }

    #booking-page-body-id #navbar-append-follow-page>.nav-item {
        flex: 0 0 auto;
        min-width: 0;
        margin: 0;
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav {
        flex: 0 0 auto;
        height: 34px;
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav .btn-view-calendar-date {
        width: 32px;
        min-width: 32px;
        height: 30px;
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav .btn-view-calendar-today {
        height: 30px;
        padding: 0 10px;
    }

    #booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar {
        flex: 1 1 auto;
        overflow: hidden;
        height: 34px;
        padding: 0 4px;
        text-overflow: ellipsis;
    }

    #booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar .text-white {
        overflow: hidden;
        font-size: 14px;
        text-overflow: ellipsis;
    }

    #booking-page-body-id #navbar-append-follow-page .search-form-salon {
        flex: 0 0 34px;
        width: 34px;
        min-width: 34px;
        height: 34px;
        padding: 0;
    }

    #booking-page-body-id #navbar-append-follow-page .search-form-salon>i {
        width: 34px;
        min-width: 34px;
        height: 34px;
    }

    #booking-page-body-id .booking-header-panel>.calendar-legend {
        grid-area: legend;
        width: 100%;
        min-width: 0;
        margin: 0;
        overflow: hidden;
    }

    #booking-page-body-id .calendar-legend .legend-items {
        width: 100%;
        height: 28px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        touch-action: pan-x;
        -webkit-overflow-scrolling: touch;
    }

    #booking-page-body-id .calendar-legend :is(.legend-item, .legend-clear) {
        height: 26px;
        padding: 0 8px;
        font-size: 11px;
    }

    #booking-page-body-id .booking-header-panel>.btn-new-booking {
        grid-area: action;
        justify-self: end;
        width: 36px;
        height: 36px;
        min-width: 36px;
    }

    #booking-page-body-id .right-side-panel-action {
        grid-column: 1;
        grid-row: 1;
        position: absolute;
        top: 5px;
        right: 54px;
        z-index: 21;
        display: flex;
        flex: none;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        max-width: none;
        min-width: 0;
        height: 36px;
        padding: 0;
        flex-direction: row;
        background: transparent;
        border: 0;
        border-left: 0;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    #booking-page-body-id .right-side-panel-action button {
        width: 32px;
        min-width: 32px;
        height: 32px;
    }

    #booking-page-body-id .right-side-panel-action button i {
        font-size: 15px;
    }

    #booking-page-body-id .right-side-panel-action .rail-divider {
        display: none;
    }

    #booking-page-body-id .right-side-panel-action button.navigation {
        display: none;
    }

    #booking-page-body-id .booking-calendar-area {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        min-width: 0;
        min-height: 0;
        max-height: none;
        overflow: auto;
        overscroll-behavior: contain;
        touch-action: pan-x pan-y;
        -webkit-overflow-scrolling: touch;
    }

    #booking-page-body-id .booking-action-area {
        display: none;
    }

    #booking-page-body-id.mobile-sidebar-open .booking-header-panel {
        z-index: 32;
    }

    #booking-page-body-id.mobile-sidebar-open .booking-action-area {
        position: absolute;
        inset: var(--bk-mobile-header-height) auto 0 0;
        z-index: 31;
        display: flex;
        width: min(320px, calc(100vw - 48px));
        max-width: none;
        height: auto;
        max-height: none;
        min-height: 0;
        padding: 8px;
        background: var(--bk-surface);
        border: 1px solid var(--bk-line);
        box-shadow: 0 10px 28px rgba(28, 25, 23, 0.18);
    }

    #booking-page-body-id.mobile-sidebar-open::before {
        content: "";
        position: absolute;
        inset: var(--bk-mobile-header-height) 0 0;
        z-index: 30;
        background: rgba(31, 27, 24, 0.2);
    }

    #booking-page-body-id .booking-action-area .booking-filter-group-area.filter-tech {
        flex: 1 1 auto;
        min-height: 0;
    }

    #booking-page-body-id .booking-action-area .append-tech-filter-calendar {
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    #booking-page-body-id .header-title-calendar .icon-cal {
        display: none;
    }

    #booking-page-body-id .header-title-calendar {
        gap: 6px;
    }

    #booking-page-body-id .header-title-calendar p {
        font-size: 16px;
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav .btn-view-calendar-today {
        display: none;
    }

    #booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar .text-white {
        font-size: 13px;
    }

    #booking-page-body-id .calendar-legend :is(.legend-item, .legend-clear) {
        gap: 4px;
        padding: 0 6px;
        font-size: 10px;
    }
}

@media (max-width: 1024px) {
    #booking-page-body-id .booking-header-panel>.btn-new-booking {
        display: none;
    }

    #booking-page-body-id .right-side-panel-action {
        position: fixed;
        inset: auto auto calc(var(--shell-nav-height, 60px) + var(--status-bar-height, 28px) + 12px + env(safe-area-inset-bottom, 0px)) 50%;
        z-index: 1001;
        width: min(540px, calc(100vw - 32px));
        max-width: 540px;
        height: 56px;
        padding: 3px 6px;
        background: rgb(255 255 255 / 96%);
        border: 0;
        border-radius: 999px;
        box-shadow: 0 2px 14px rgba(31, 27, 24, 0.12), 0 0 0 1px rgba(31, 27, 24, 0.06);
        transform: translateX(-50%);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        height: 100%;
        gap: 2px;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action> :is(.btn-mobile-new-booking, .btn-mobile-wait-list) {
        display: flex;
    }

    #booking-page-body-id .right-side-panel-action .rail-divider,
    #booking-page-body-id .right-side-panel-action button.navigation {
        display: none;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        min-width: 0;
        height: 48px;
        gap: 2px;
        padding: 2px;
        color: #53606a;
        background: transparent;
        border: 0;
        border-radius: 999px;
        box-shadow: none;
        white-space: nowrap;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button:hover,
    #booking-page-body-id .right-side-panel-action .group-btn-action>button.active {
        color: var(--bk-accent-strong);
        background: var(--bk-accent-soft);
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button i {
        color: inherit;
        font-size: 18px;
        line-height: 20px;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>.btn-mobile-new-booking i {
        color: #ed6581;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>.btn-appointment-reminder i {
        color: #efb400;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>.btn-mobile-wait-list i {
        color: #4a9cf5;
    }

    #booking-page-body-id .right-side-panel-action .booking-action-label,
    #booking-page-body-id .right-side-panel-action .btn-mobile-new-booking span,
    #booking-page-body-id .right-side-panel-action .btn-mobile-wait-list span {
        display: block;
        color: inherit;
        font-size: 10px;
        font-weight: 500;
        line-height: 12px;
    }

    body.booking-settings-modal-open {
        overflow: hidden;
        overscroll-behavior: none;
        touch-action: none;
    }

    body.booking-settings-modal-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(31, 27, 24, 0.24);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
    }

    #booking-page-body-id.settings-open #booking-settings-panel {
        position: fixed;
        inset: calc(var(--shell-header-height, 52px) + 4px + env(safe-area-inset-top, 0px)) 12px calc(var(--shell-nav-height, 60px) + var(--status-bar-height, 28px) + 90px + env(safe-area-inset-bottom, 0px));
        z-index: 1091;
        width: auto;
        max-width: none;
        min-height: 0;
        padding: 14px;
        background: #fff;
        border: 1px solid rgba(31, 27, 24, 0.1);
        border-radius: 16px;
        box-shadow: 0 16px 48px rgba(31, 27, 24, 0.2);
        animation: bks-mobile-in 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes bks-mobile-in {
        from {
            opacity: 0;
            transform: translateY(10px);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }
}

@media (max-width: 360px) {
    #booking-page-body-id .right-side-panel-action {
        width: calc(100vw - 20px);
        height: 56px;
        bottom: calc(var(--shell-nav-height, 60px) + var(--status-bar-height, 28px) + 12px + env(safe-area-inset-bottom, 0px));
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button {
        height: 48px;
        gap: 2px;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button i {
        font-size: 17px;
    }

    #booking-page-body-id .right-side-panel-action .booking-action-label,
    #booking-page-body-id .right-side-panel-action .btn-mobile-new-booking span,
    #booking-page-body-id .right-side-panel-action .btn-mobile-wait-list span {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #booking-page-body-id.settings-open #booking-settings-panel {
        animation: none;
    }
}

/* Mobile touch-up: overrides the touch-screen blocks above */
@media (max-width: 1024px) {
    #booking-page-body-id {
        --bk-mobile-header-height: 88px;
        --bk-action-zone: 76px;
        grid-template-rows: auto minmax(0, 1fr);
        padding-bottom: 0;
    }

    /* Header rows: [menu | icon | title | search] / [‹ date › | Today] */
    #booking-page-body-id .booking-header-panel {
        grid-row: 1;
        grid-template-columns: 36px 32px minmax(0, 1fr) 36px auto;
        grid-template-rows: 36px 36px;
        grid-template-areas:
            "menu icon title title search"
            "date date date nav nav";
        align-items: center;
        gap: 4px 8px;
        min-height: var(--bk-mobile-header-height);
        padding: 6px 12px 4px;
        border-bottom: 1px solid var(--bk-line);
    }

    #booking-page-body-id .booking-header-panel>.header-title-calendar,
    #booking-page-body-id .booking-header-panel>#navbar-append-follow-page {
        display: contents;
    }

    #booking-page-body-id .header-title-calendar .btn-action-form-calendar {
        grid-area: menu;
        width: 36px;
        min-width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 17px;
    }

    #booking-page-body-id .header-title-calendar .icon-cal {
        grid-area: icon;
        display: block;
        position: relative;
        width: 32px;
        height: 32px;
    }

    #booking-page-body-id .header-title-calendar .icon-cal svg {
        width: 32px;
        height: 32px;
    }

    #booking-page-body-id .header-title-calendar .icon-cal span {
        font-size: 12px;
        letter-spacing: 0;
    }

    #booking-page-body-id .header-title-calendar p {
        grid-area: title;
        margin: 0;
        padding: 0;
        min-width: 0;
        overflow: hidden;
        color: var(--bk-text);
        font-size: 18px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.01em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #booking-page-body-id #navbar-append-follow-page>li:nth-child(3) {
        grid-area: search;
        justify-self: end;
        width: 36px;
        margin: 0;
    }

    #booking-page-body-id #navbar-append-follow-page .search-form-salon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        min-width: 36px;
        height: 36px;
        padding: 0;
        overflow: hidden;
        background: transparent;
        border: 0;
    }

    #booking-page-body-id #navbar-append-follow-page .search-form-salon:not(.active) input {
        display: none;
    }

    /* Same round treatment as the ‹ › day buttons */
    #booking-page-body-id #navbar-append-follow-page .search-form-salon>i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 34px;
        width: 34px;
        min-width: 34px;
        height: 34px;
        color: var(--bk-text);
        background: var(--bk-hover);
        border-radius: 50%;
        font-size: 15px;
    }

    #booking-page-body-id #navbar-append-follow-page .search-form-salon.active>i {
        background: transparent;
    }

    #booking-page-body-id #navbar-append-follow-page .search-form-salon.active {
        position: absolute;
        top: 6px;
        left: 12px;
        right: 12px;
        z-index: 3;
        display: flex;
        align-items: center;
        width: auto;
        height: 36px;
        background: #fff;
        border: 1px solid var(--bk-line-strong);
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(28, 25, 23, 0.08);
    }

    #booking-page-body-id #navbar-append-follow-page .search-form-salon.active input {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Date title button (left) + segmented ‹ Today › (right); doubled id beats the legacy :not(.noClick) rule */
    #booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar#select-date-navbar-calendar {
        grid-area: date;
        justify-self: start;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        max-width: 100%;
        min-width: 0;
        height: 36px;
        margin: 0 0 0 -6px;
        padding: 0 10px 0 6px;
        cursor: pointer;
        pointer-events: auto !important;
        background: transparent;
        border: 0;
        border-radius: 10px;
        transition: background 0.15s ease;
    }

    #booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar#select-date-navbar-calendar:active {
        background: var(--bk-hover);
    }

    #booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar#select-date-navbar-calendar .text-white {
        min-width: 0;
        overflow: hidden;
        color: var(--bk-text) !important;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: -0.01em;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar#select-date-navbar-calendar i {
        display: inline-block;
        flex: 0 0 auto;
        margin-top: 1px;
        color: var(--bk-muted);
        font-size: 11px;
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav.date-nav {
        grid-area: nav;
        justify-self: end;
        display: inline-flex;
        align-items: center;
        gap: 0;
        height: 34px;
        margin: 0;
        padding: 2px;
        background: #fff;
        border: 1px solid var(--bk-line-strong);
        border-radius: 999px;
        box-shadow: 0 1px 2px rgba(28, 25, 23, 0.05);
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav.date-nav button {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 28px;
        margin: 0;
        overflow: visible;
        color: var(--bk-text);
        background: transparent;
        border: 0;
        box-shadow: none;
        transition: background 0.15s ease, color 0.15s ease;
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav.date-nav button::before {
        content: none;
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav.date-nav button:active {
        background: var(--bk-hover);
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav.date-nav .btn-view-calendar-date {
        width: 30px;
        min-width: 30px;
        padding: 0;
        border-radius: 50%;
        font-size: 12px;
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav.date-nav .btn-view-calendar-today {
        padding: 0 12px;
        border-radius: 999px;
        font-size: 12.5px;
        font-weight: 600;
    }

    /* Hairlines between the three segments */
    #booking-page-body-id #navbar-append-follow-page .date-nav.date-nav .btn-view-calendar-today::after {
        content: "";
        position: absolute;
        inset: 7px -1px;
        border-inline: 1px solid var(--bk-line);
        pointer-events: none;
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav.date-nav .btn-view-calendar-today.is-current {
        color: var(--bk-muted);
    }

    /* Legend fades out at the edge instead of clipping a label */
    #booking-page-body-id .booking-header-panel>.calendar-legend {
        grid-area: legend;
        display: flex;
        align-items: center;
        gap: 4px;
        width: 100%;
        min-width: 0;
        margin: 0;
        overflow: visible;
    }

    #booking-page-body-id .calendar-legend .legend-items {
        flex: 1 1 auto;
        height: 26px;
        gap: 2px;
        padding-right: 20px;
        -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
        mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent);
    }

    #booking-page-body-id .calendar-legend :is(.legend-item, .legend-clear) {
        gap: 5px;
        height: 24px;
        padding: 0 8px;
        font-size: 11.5px;
    }

    #booking-page-body-id .calendar-legend .legend-more-btn {
        width: 24px;
        height: 24px;
    }

    /* Calendar scrolls underneath the floating action zone */
    #booking-page-body-id .booking-calendar-area {
        padding-bottom: var(--bk-action-zone);
    }

    #booking-page-body-id .right-side-panel-action {
        position: absolute;
        inset: auto 0 0;
        grid-row: auto;
        z-index: 9;
        isolation: isolate;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        max-width: none;
        height: var(--bk-action-zone);
        margin: 0;
        padding: 10px 16px 12px;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        transform: none;
        pointer-events: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    #booking-page-body-id .right-side-panel-action::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        background: linear-gradient(to bottom, transparent, rgb(250 249 247 / 92%) 70%);
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action {
        position: relative;
        z-index: 0;
        grid-template-rows: unset;
        width: 100%;
        height: 52px;
        max-width: 440px;
        margin: 0 auto;
        padding: 4px;
        gap: 2px;
        pointer-events: auto;
        background: transparent;
        border: 0;
        border-radius: 999px;
        box-shadow: 0 0 0 1px rgba(28, 25, 23, 0.06), 0 1px 2px rgba(28, 25, 23, 0.04), 0 8px 24px -10px rgba(28, 25, 23, 0.18);
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        border-radius: inherit;
        background: rgb(255 255 255 / 96%);
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button {
        height: 100%;
        gap: 2px;
        padding: 0 2px;
        color: #6b7280;
        border-radius: 999px;
        transition: background 0.15s ease, color 0.15s ease;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button i {
        font-size: 16px;
        font-weight: 400;
        line-height: 20px;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button.btn-mobile-new-booking {
        color: var(--bk-accent);
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button:hover,
    #booking-page-body-id .right-side-panel-action .group-btn-action>button.active {
        color: var(--bk-accent-strong);
        background: var(--bk-accent-soft);
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button:active {
        background: rgb(28 25 23 / 5%);
    }

    #booking-page-body-id .right-side-panel-action :is(.booking-action-label, .btn-mobile-new-booking span, .btn-mobile-wait-list span) {
        font-size: 10.5px;
        font-weight: 500;
        line-height: 12px;
        letter-spacing: 0;
    }

    /* Full page settings: above shell header/nav (1000), below SweetAlert (1060) */
    body.booking-settings-modal-open::after {
        content: none;
    }

    #booking-page-body-id.settings-open #booking-settings-panel {
        position: fixed;
        inset: 0;
        z-index: 1056;
        width: 100%;
        height: 100dvh;
        gap: 14px;
        padding: calc(12px + env(safe-area-inset-top, 0px)) 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: #fff;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        animation: bks-mobile-page-in 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    }

    #booking-settings-panel .bks-header {
        padding-bottom: 12px;
        border-bottom: 1px solid var(--bk-line);
    }

    #booking-settings-panel .bks-close {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    @keyframes bks-mobile-page-in {
        from {
            opacity: 0;
            transform: translateY(24px);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }
}

@media (max-width: 360px) {
    #booking-page-body-id .booking-header-panel {
        padding-inline: 10px;
    }

    #booking-page-body-id #navbar-append-follow-page .date-nav .btn-view-calendar-today {
        padding: 0 10px;
    }

    #booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar .text-white {
        font-size: 14px;
    }

    #booking-page-body-id #navbar-append-follow-page #select-date-navbar-calendar#select-date-navbar-calendar .text-white {
        font-size: 15px;
    }

    #booking-page-body-id .right-side-panel-action {
        padding-inline: 8px;
    }
}

/* Book date picker (daterangepicker tagged in Operation.js) */
.daterangepicker.bk-date-picker {
    margin-top: 6px;
    padding: 10px;
    color: #1f1b18;
    background: #fff;
    border: 1px solid #e7e3de;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(28, 25, 23, 0.14), 0 2px 6px rgba(28, 25, 23, 0.06);
    font-family: inherit;
}

.daterangepicker.bk-date-picker::before,
.daterangepicker.bk-date-picker::after {
    display: none;
}

.daterangepicker.bk-date-picker .drp-calendar.left {
    max-width: none;
    padding: 0;
}

.daterangepicker.bk-date-picker .calendar-table {
    padding: 0;
    background: transparent;
    border: 0;
}

.daterangepicker.bk-date-picker .calendar-table table {
    border-collapse: separate;
    border-spacing: 2px;
}

.daterangepicker.bk-date-picker .calendar-table :is(th, td) {
    width: 36px;
    min-width: 36px;
    height: 36px;
    line-height: 36px;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
}

.daterangepicker.bk-date-picker .calendar-table th.month {
    color: #1f1b18;
    font-size: 14px;
    font-weight: 600;
}

.daterangepicker.bk-date-picker .calendar-table thead tr:last-child th {
    height: 28px;
    line-height: 28px;
    color: #8a827b;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.daterangepicker.bk-date-picker .calendar-table :is(th.prev, th.next) {
    border-radius: 50%;
}

.daterangepicker.bk-date-picker .calendar-table :is(th.prev, th.next) span {
    padding: 3px;
    border-color: #1f1b18;
    border-width: 0 1.5px 1.5px 0;
}

.daterangepicker.bk-date-picker td.available:hover,
.daterangepicker.bk-date-picker th.available:hover {
    background: #f3f2f0;
}

.daterangepicker.bk-date-picker td.off,
.daterangepicker.bk-date-picker td.off.in-range {
    color: #c8c2bc;
    background: transparent;
}

.daterangepicker.bk-date-picker td.today {
    color: var(--bs-main);
    font-weight: 600;
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--bs-main) 45%, transparent);
}

.daterangepicker.bk-date-picker td.active,
.daterangepicker.bk-date-picker td.active:hover {
    color: #fff;
    background: var(--bs-main);
    font-weight: 600;
}

@media (max-width: 480px) {

    /* Full-width sheet under the header so days stay 44px-ish touch targets */
    .daterangepicker.bk-date-picker {
        left: 8px !important;
        right: 8px !important;
        width: auto;
    }

    .daterangepicker.bk-date-picker .drp-calendar.left,
    .daterangepicker.bk-date-picker .calendar-table table {
        width: 100%;
    }

    .daterangepicker.bk-date-picker .calendar-table :is(th, td) {
        width: calc((100vw - 16px - 20px - 14px) / 7);
        min-width: 0;
        height: 40px;
        line-height: 40px;
        font-size: 14px;
    }
}

@media screen and (max-width: 768px) {
    @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        #booking-page-body-id .right-side-panel-action::after {
            background: rgb(250 249 247 / 55%);
            -webkit-backdrop-filter: blur(10px) saturate(140%);
            backdrop-filter: blur(10px) saturate(140%);
            -webkit-mask-image: linear-gradient(to bottom, transparent, #000 70%);
            mask-image: linear-gradient(to bottom, transparent, #000 70%);
        }

        #booking-page-body-id .right-side-panel-action .group-btn-action::before {
            background: rgb(255 255 255 / 88%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            backdrop-filter: blur(20px) saturate(180%);
        }
    }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
    #booking-page-body-id.settings-open #booking-settings-panel {
        animation: none;
    }
}

/* ===== New booking: live calendar preview + tech column focus ===== */
#booking-page-body-id {
    --qbp-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

#booking-page-body-id .qb-preview-tix {
    --qb-accent: var(--bs-main);
    position: absolute;
    z-index: 6;
    display: flex;
    flex-direction: column;
    gap: 1px;
    box-sizing: border-box;
    min-height: 0;
    padding: var(--px-4) var(--px-8) var(--px-6) var(--px-8);
    overflow: hidden;
    color: var(--bk-text);
    background: color-mix(in srgb, var(--qb-accent) 6%, #fff);
    border: 1.5px dashed color-mix(in srgb, var(--qb-accent) 50%, transparent);
    border-radius: var(--px-6);
    box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--qb-accent) 70%, transparent);
    pointer-events: none;
    container: qbp / size;
    transition: top 0.32s var(--qbp-ease), left 0.32s var(--qbp-ease), width 0.32s var(--qbp-ease), height 0.32s var(--qbp-ease),
        background 0.25s ease, border-color 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
}

#booking-page-body-id .qb-preview-tix.is-entering {
    animation: qbp-enter 0.34s var(--qbp-ease) both;
}

/* Soft ring on the tech being edited; kept on a pseudo so it never fights the enter animation */
#booking-page-body-id .qb-preview-tix::after {
    content: "";
    position: absolute;
    inset: -1.5px;
    border-radius: inherit;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--qb-accent) 22%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

#booking-page-body-id .qb-preview-tix.is-active {
    border-color: color-mix(in srgb, var(--qb-accent) 80%, transparent);
    background: color-mix(in srgb, var(--qb-accent) 9%, #fff);
}

#booking-page-body-id .qb-preview-tix.is-active::after {
    opacity: 1;
    animation: qbp-breathe 2.6s ease-in-out infinite;
}

#booking-page-body-id .qb-preview-tix.is-out {
    display: none;
}

#booking-page-body-id .qb-preview-tix.is-leaving {
    opacity: 0;
    transform: scale(0.96);
    transition-duration: 0.2s;
}

#booking-page-body-id .qb-preview-tix.is-saved {
    border-style: solid;
    border-color: var(--qb-accent);
    background: color-mix(in srgb, var(--qb-accent) 10%, #fff);
    animation: qbp-settle 0.42s var(--qbp-ease) both;
}

#booking-page-body-id .qb-preview-tix.is-saved::after {
    opacity: 0;
    animation: none;
}

#booking-page-body-id .qb-preview-fold {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--px-12);
    height: var(--px-12);
    background: linear-gradient(225deg, var(--qb-accent) 50%, transparent 50%);
    border-top-right-radius: var(--px-4);
}

#booking-page-body-id .qb-preview-head {
    display: flex;
    align-items: baseline;
    gap: var(--px-6);
    min-width: 0;
    padding-right: var(--px-6);
}

#booking-page-body-id .qb-preview-client {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font: normal normal 600 var(--s-12);
}

#booking-page-body-id .qb-preview-dur {
    flex: 0 0 auto;
    color: var(--bk-text);
    font-size: calc(10px * var(--scale) / 100);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#booking-page-body-id .qb-preview-dur b {
    font-size: calc(11px * var(--scale) / 100);
    font-weight: 600;
}

#booking-page-body-id .qb-preview-dur span {
    margin-left: 1px;
    color: var(--bk-muted);
}

#booking-page-body-id .qb-preview-time {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--bk-muted);
    font: normal normal 500 var(--s-10);
}

#booking-page-body-id .qb-preview-svcs {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-height: 0;
    margin: var(--px-4) 0 0;
    padding: 0;
    overflow: hidden;
    list-style: none;
}

#booking-page-body-id .qb-preview-svcs li {
    display: block;
    position: relative;
    padding-left: 8px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-transform: lowercase;
    color: var(--bk-muted);
    opacity: 1;
    font: normal normal 400 var(--s-10);
    line-height: 14px;
    animation: qbp-item 0.28s var(--qbp-ease) both;
}

#booking-page-body-id .qb-preview-svcs li::before {
    content: "";
    position: absolute;
    top: 5.5px;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--svc, var(--qb-accent));
    opacity: 0.75;
}

#booking-page-body-id .qb-preview-svcs li.is-empty {
    font-style: italic;
    text-transform: none;
    color: var(--bk-muted);
}

@container qbp (max-height: 46px) {
    #booking-page-body-id .qb-preview-svcs {
        display: none;
    }
}

@container qbp (max-height: 28px) {
    #booking-page-body-id .qb-preview-time {
        display: none;
    }
}

@container qbp (max-width: 64px) {
    #booking-page-body-id .qb-preview-dur {
        display: none;
    }
}

@keyframes qbp-enter {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.96);
    }
}

@keyframes qbp-item {
    from {
        opacity: 0;
        transform: translateX(-4px);
    }
}

@media (min-width: 1025px) {
    #booking-page-body-id .booking-header-panel {
        display: flex;
        align-items: center;
        gap: 18px;
        padding-inline: clamp(16px, 2vw, 28px);
    }

    #booking-page-body-id .booking-header-panel>.header-title-calendar {
        flex: 0 0 auto;
    }

    #booking-page-body-id .booking-header-panel>#navbar-append-follow-page {
        display: flex;
        flex: 0 1 auto;
        flex-direction: row;
        align-items: center;
        width: auto;
        max-width: min(670px, 42vw);
        height: 36px;
        min-width: 0;
        justify-content: flex-start;
        margin-left: 0;
        overflow: hidden;
    }

    #booking-page-body-id .booking-header-panel>.btn-new-booking {
        flex: 0 0 auto;
        margin-left: auto;
    }

    #booking-page-body-id .booking-header-stats {
        order: 4;
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        gap: 14px;
        min-width: 0;
        margin-left: 0;
    }

    #booking-page-body-id .booking-header-stat {
        display: flex;
        align-items: center;
        gap: 8px;
        min-width: 0;
        padding-left: 12px;
        border-left: 1px solid var(--bk-line);
    }

    #booking-page-body-id .booking-header-stat-icon {
        display: inline-flex;
        flex: 0 0 30px;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        color: #416ca8;
        background: #edf2fa;
        border-radius: 8px;
        font-size: 13px;
    }

    #booking-page-body-id .booking-header-stat-appointments .booking-header-stat-icon {
        color: #7154aa;
        background: #f2eef9;
    }

    #booking-page-body-id .booking-header-stat-slots .booking-header-stat-icon {
        color: #b27617;
        background: #fbf3e5;
    }

    #booking-page-body-id .booking-header-stat-copy {
        display: flex;
        flex-direction: column;
        min-width: 0;
        line-height: 1.15;
    }

    #booking-page-body-id .booking-header-stat-label {
        overflow: hidden;
        color: var(--bk-muted);
        font-size: 11px;
        font-weight: 500;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    #booking-page-body-id .booking-header-stat-value {
        color: var(--bk-text);
        font-size: 15px;
        font-variant-numeric: tabular-nums;
        font-weight: 600;
        white-space: nowrap;
    }

    #booking-page-body-id .booking-header-stat-note {
        color: var(--bk-muted);
        font-size: 9px;
        line-height: 1;
        display: none;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    #booking-page-body-id .booking-header-panel {
        gap: 10px;
        padding-inline: 12px;
    }

    #booking-page-body-id .booking-header-panel>#navbar-append-follow-page {
        width: min(360px, 34vw);
    }

    #booking-page-body-id .booking-header-stats {
        gap: 8px;
        margin-left: 0;
    }

    #booking-page-body-id .booking-header-stat {
        gap: 5px;
        padding-left: 7px;
    }

    #booking-page-body-id .booking-header-stat-icon {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    #booking-page-body-id .booking-header-stat-label {
        font-size: 8px;
    }

    #booking-page-body-id .booking-header-stat-value {
        font-size: 13px;
    }

    #booking-page-body-id .booking-header-stat-note {
        display: none;
    }
}

#booking-page-body-id .calendar-legend>.calendar-closed-hours {
    flex: 0 0 auto;
    width: auto;
    max-width: 240px;
    margin-left: auto;
}

#booking-page-body-id #calendar-view-area>.calendar-legend .legend-items {
    flex: 1 1 0%;
}

@media (max-width: 1024px) {
    #booking-page-body-id {
        --bk-mobile-header-height: 120px;
    }

    #booking-page-body-id .booking-header-panel {
        grid-template-rows: 36px 36px 28px;
        grid-template-areas:
            "menu icon title title search"
            "date date date nav nav"
            "stats stats stats stats stats";
        min-height: var(--bk-mobile-header-height);
    }

    #booking-page-body-id .booking-header-stats {
        grid-area: stats;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 4px;
        width: 100%;
        min-width: 0;
        height: 28px;
    }

    #booking-page-body-id .booking-header-stat {
        display: flex;
        align-items: center;
        gap: 4px;
        min-width: 0;
        padding: 0 4px;
        border: 0;
    }

    #booking-page-body-id .booking-header-stat-icon {
        display: inline-flex;
        flex: 0 0 20px;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        color: #416ca8;
        background: #edf2fa;
        border-radius: 6px;
        font-size: 10px;
    }

    #booking-page-body-id .booking-header-stat-appointments .booking-header-stat-icon {
        color: #7154aa;
        background: #f2eef9;
    }

    #booking-page-body-id .booking-header-stat-slots .booking-header-stat-icon {
        color: #b27617;
        background: #fbf3e5;
    }

    #booking-page-body-id .booking-header-stat-copy {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 4px;
        min-width: 0;
    }

    #booking-page-body-id .booking-header-stat-label {
        color: var(--bk-muted);
        font-size: 8px;
        font-weight: 600;
        text-transform: none;
    }

    #booking-page-body-id .booking-header-stat-value {
        font-size: 11px;
    }

    #booking-page-body-id .booking-header-stat-note {
        display: none;
    }

    #booking-page-body-id .calendar-legend>.calendar-closed-hours {
        max-width: 148px;
    }
}

@media (max-width: 480px) {
    #booking-page-body-id .booking-header-stat-icon {
        display: none;
    }

    #booking-page-body-id .booking-header-stat-copy {
        gap: 3px;
    }

    #booking-page-body-id .booking-header-stat-label {
        font-size: 8px;
    }

    #booking-page-body-id .calendar-legend>.calendar-closed-hours {
        max-width: 100px;
    }
}

@media (min-width: 1025px) {
    #booking-page-body-id .booking-header-panel {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 18px;
        padding-inline: clamp(16px, 2vw, 28px);
    }

    #booking-page-body-id .booking-header-panel>.header-title-calendar {
        flex: 0 0 auto;
    }

    #booking-page-body-id .booking-header-panel>#navbar-append-follow-page {
        display: flex;
        flex-direction: row;
        align-items: center;
        flex: 0 1 auto;
        height: 36px;
        min-width: 0;
        justify-content: flex-start;
        margin-left: 0;
    }

    #booking-page-body-id .booking-header-panel>.btn-new-booking {
        flex: 0 0 auto;
        margin-left: auto;
    }

    #booking-page-body-id .booking-header-panel>.booking-header-stats {
        margin-left: 0;
    }
}

#booking-page-body-id #calendar-view-area>.calendar-legend {
    gap: 8px;
}

#booking-page-body-id .calendar-legend>.calendar-closed-hours {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: auto;
    flex: 0 1 clamp(190px, 22vw, 268px);
    width: auto;
    min-width: 0;
    min-height: 32px;
    height: 32px;
    gap: 6px;
    margin: 0;
    padding: 0 8px;
    overflow: hidden;
    border: 1px solid var(--bk-line-strong);
    border-radius: 8px;
    box-shadow: none;
    font-size: 11px;
}

#booking-page-body-id .calendar-legend>.calendar-closed-hours>i {
    flex: 0 0 auto;
    font-size: 12px;
}

#booking-page-body-id .calendar-legend>.calendar-closed-hours .text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
}

#booking-page-body-id .calendar-legend>.calendar-closed-hours .outside {
    flex: 0 0 auto;
    max-width: 100px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 2px 6px;
    font-size: 10px;
}

#booking-page-body-id .calendar-legend>.calendar-closed-hours .btn-toggle-closed-hours {
    flex: 0 0 auto;
    height: 24px;
    padding: 0 8px;
    white-space: nowrap;
    border-radius: 6px;
    font-size: 11px;
}

#booking-page-body-id #calendar-view-area>.calendar-legend .legend-items {
    width: auto;
}

@media (max-width: 1024px) {
    #booking-page-body-id #calendar-view-area>.calendar-legend {
        gap: 6px;
    }

    #booking-page-body-id .calendar-legend>.calendar-closed-hours {
        flex: 0 0 auto;
        width: auto;
        gap: 4px;
        padding: 0 6px;
    }

    #booking-page-body-id .calendar-legend>.calendar-closed-hours :is(.text, .outside) {
        display: none;
    }

    #booking-page-body-id .calendar-legend>.calendar-closed-hours .btn-toggle-closed-hours {
        height: 28px;
        padding: 0 6px;
    }
}

@keyframes qbp-breathe {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }
}

@keyframes qbp-settle {
    0% {
        transform: scale(0.97);
    }

    60% {
        transform: scale(1.015);
    }

    100% {
        transform: none;
    }
}

/* Real tickets slide aside to share a column with the draft */
#booking-page-body-id .box-tix-appt-book.qb-shifted {
    transition: left 0.32s var(--qbp-ease), width 0.32s var(--qbp-ease), opacity 0.25s ease, box-shadow 0.15s ease;
}

/* Column focus for the techs in the drawer */
#booking-page-body-id #calendar-view-area .header-calendar-view .ui-tech-column {
    --qb-hue: var(--bk-accent);
    background-repeat: no-repeat;
    background-position: center bottom, 0 0;
    background-size: 0 3px, 100% 100%;
    transition: background-size 0.32s var(--qbp-ease);
}

#booking-page-body-id #calendar-view-area .header-calendar-view .ui-tech-column :is(.photo, .tech-head-text) {
    transition: opacity 0.28s ease, box-shadow 0.28s ease;
}

#booking-page-body-id #calendar-view-area .header-calendar-view .ui-tech-column.qb-focus {
    background-image: linear-gradient(color-mix(in srgb, var(--qb-hue) 55%, transparent), color-mix(in srgb, var(--qb-hue) 55%, transparent)),
        linear-gradient(to bottom, color-mix(in srgb, var(--qb-hue) 3%, transparent) 0%, color-mix(in srgb, var(--qb-hue) 10%, transparent) 100%);
    background-size: 24px 3px, 100% 100%;
}

#booking-page-body-id #calendar-view-area .header-calendar-view .ui-tech-column.qb-focus-active {
    background-image: linear-gradient(var(--qb-hue), var(--qb-hue)),
        linear-gradient(to bottom, color-mix(in srgb, var(--qb-hue) 4%, transparent) 0%, color-mix(in srgb, var(--qb-hue) 14%, transparent) 100%);
    background-size: 36px 3px, 100% 100%;
    box-shadow: inset 1px 0 0 color-mix(in srgb, var(--qb-hue) 55%, transparent), inset -1px 0 0 color-mix(in srgb, var(--qb-hue) 55%, transparent);
}

#booking-page-body-id #calendar-view-area .header-calendar-view .ui-tech-column.qb-focus-active:not(.noScroll) .photo {
    box-shadow: 0 0 0 2px var(--bk-surface), 0 0 0 3.5px var(--qb-hue), 0 0 0 8px color-mix(in srgb, var(--qb-hue) 18%, transparent);
}

#booking-page-body-id #calendar-view-area .header-calendar-view .ui-tech-column.qb-focus-active .name {
    color: var(--bk-text);
    font-weight: 600;
}

#booking-page-body-id #calendar-view-area.qb-focusing .header-calendar-view .ui-tech-column:not(.qb-focus):not(.noScroll) :is(.photo, .tech-head-text) {
    opacity: 0.45;
}

/* Full-height wash under the tickets (off-hours stripes included) */
#booking-page-body-id .qb-column-wash {
    position: absolute;
    top: 0;
    z-index: 0;
    box-sizing: border-box;
    background: color-mix(in srgb, var(--qb-hue) 4%, transparent);
    border-inline: 1px solid color-mix(in srgb, var(--qb-hue) 25%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background 0.3s ease, border-color 0.3s ease, left 0.32s var(--qbp-ease), width 0.32s var(--qbp-ease);
}

#booking-page-body-id .qb-column-wash.is-on {
    opacity: 1;
}

#booking-page-body-id .qb-column-wash.is-active {
    background: color-mix(in srgb, var(--qb-hue) 7%, transparent);
    border-color: color-mix(in srgb, var(--qb-hue) 55%, transparent);
}

#booking-page-body-id #calendar-view-area.qb-focusing .box-tix-appt-book:not(.qb-in-focus) {
    opacity: 0.45;
}

@media (prefers-reduced-motion: reduce) {

    #booking-page-body-id .qb-preview-tix,
    #booking-page-body-id .box-tix-appt-book.qb-shifted,
    #booking-page-body-id .qb-column-wash,
    #booking-page-body-id #calendar-view-area .header-calendar-view .ui-tech-column {
        transition: none;
    }

    #booking-page-body-id .qb-preview-tix,
    #booking-page-body-id .qb-preview-tix::after,
    #booking-page-body-id .qb-preview-svcs li {
        animation: none !important;
    }
}

/* ===== Drag / resize feedback: time chip on the card, drop guide, gutter pill ===== */
#booking-page-body-id .box-tix-appt-book.is-drag-moving .tix-moved-book {
    display: none;
}

/* Lifted while moving; top/left glide between grid snaps (class is dropped before the drop position is read) */
#booking-page-body-id .box-tix-appt-book.is-drag-moving:not(.holding-to-change-duration) {
    scale: 1.025;
    box-shadow: 0 2px 4px rgba(28, 25, 23, 0.08), 0 14px 28px -10px rgba(28, 25, 23, 0.35);
    transition: top 0.14s cubic-bezier(0.22, 1, 0.36, 1), left 0.18s cubic-bezier(0.22, 1, 0.36, 1), scale 0.2s ease, box-shadow 0.2s ease;
}

#booking-page-body-id .box-tix-appt-book.holding-to-change-duration.is-drag-moving {
    box-shadow: 0 10px 22px -12px rgba(28, 25, 23, 0.35);
    transition: height 0.12s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
}

#booking-page-body-id .box-tix-appt-book.is-drop-settle {
    animation: drag-drop-settle 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes drag-drop-settle {
    0% {
        scale: 1.025;
    }

    55% {
        scale: 0.985;
    }

    100% {
        scale: 1;
    }
}

#booking-page-body-id .box-tix-appt-book .time .time-range {
    transition: color 0.2s ease;
}

#booking-page-body-id .box-tix-appt-book.is-drag-moving .time .time-range {
    color: var(--bk-text);
    font-weight: 600;
}

#booking-page-body-id .box-tix-appt-book .drag-time-chip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: -2px;
    z-index: 25;
    display: inline-flex;
    flex-direction: column;
    gap: 1px;
    padding: var(--px-4) var(--px-8);
    color: #fff;
    white-space: nowrap;
    background: var(--bk-text);
    border-radius: var(--px-8);
    box-shadow: 0 8px 20px -8px rgba(28, 25, 23, 0.55);
    pointer-events: none;
    transform-origin: 14px 100%;
    animation: drag-chip-in 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

#booking-page-body-id .box-tix-appt-book .drag-time-chip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 12px;
    border: 5px solid transparent;
    border-top-color: var(--bk-text);
}

#booking-page-body-id .box-tix-appt-book .drag-time-chip.is-below {
    top: calc(100% + 8px);
    bottom: auto;
    transform-origin: 14px 0;
}

#booking-page-body-id .box-tix-appt-book .drag-time-chip.is-below::after {
    top: auto;
    bottom: 100%;
    border-top-color: transparent;
    border-bottom-color: var(--bk-text);
}

#booking-page-body-id .box-tix-appt-book .drag-time-chip.is-blocked {
    background: #b42318;
}

#booking-page-body-id .box-tix-appt-book .drag-time-chip.is-blocked::after {
    border-top-color: #b42318;
}

#booking-page-body-id .box-tix-appt-book .drag-time-chip.is-blocked.is-below::after {
    border-top-color: transparent;
    border-bottom-color: #b42318;
}

#booking-page-body-id .box-tix-appt-book .drag-time-range {
    display: inline-block;
    font-size: calc(12px * var(--scale) / 100);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

#booking-page-body-id .box-tix-appt-book .drag-time-range.is-ticking {
    animation: drag-time-tick 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

#booking-page-body-id .box-tix-appt-book .drag-time-meta {
    color: rgba(255, 255, 255, 0.72);
    font-size: calc(10px * var(--scale) / 100);
    font-weight: 500;
}

#booking-page-body-id .box-tix-appt-book .drag-time-meta:empty {
    display: none;
}

@keyframes drag-chip-in {
    from {
        opacity: 0;
        transform: translateY(4px) scale(0.92);
    }
}

@keyframes drag-time-tick {
    from {
        opacity: 0.4;
        transform: translateY(3px);
    }
}

@keyframes drag-guide-in {
    from {
        opacity: 0;
        transform: scaleX(0.4);
    }
}

@keyframes drag-pill-in {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
}

/* Dashed line at the snapped start, linking the card to the gutter pill */
#booking-page-body-id .drag-time-guide {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 7;
    height: 0;
    border-top: 1.5px dashed color-mix(in srgb, var(--bk-text) 55%, transparent);
    opacity: 0;
    pointer-events: none;
    transition: top 0.12s ease-out, opacity 0.2s ease;
}

#booking-page-body-id .drag-time-guide.is-on {
    opacity: 1;
    transform-origin: left center;
    animation: drag-guide-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

#booking-page-body-id .booking-calendar-area .general-time-box-drag {
    color: #fff;
    background: var(--bk-text);
    box-shadow: 0 4px 10px -4px rgba(28, 25, 23, 0.5);
    transition: top 0.12s ease-out;
    animation: drag-pill-in 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#booking-page-body-id #calendar-view-area.qb-focusing .box-tix-appt-book.dragging {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {

    #booking-page-body-id .box-tix-appt-book .drag-time-chip,
    #booking-page-body-id .box-tix-appt-book .drag-time-range.is-ticking,
    #booking-page-body-id .box-tix-appt-book.is-drop-settle,
    #booking-page-body-id .drag-time-guide.is-on,
    #booking-page-body-id .booking-calendar-area .general-time-box-drag {
        animation: none;
    }

    #booking-page-body-id .box-tix-appt-book.is-drag-moving,
    #booking-page-body-id .drag-time-guide,
    #booking-page-body-id .booking-calendar-area .general-time-box-drag {
        transition: none;
    }
}

@media (max-width: 1024px) {
    #booking-page-body-id.booking-stats-hidden {
        --bk-mobile-header-height: 88px;
    }

    #booking-page-body-id.booking-stats-hidden .booking-header-panel {
        grid-template-rows: 36px 36px;
        grid-template-areas:
            "menu icon title title search"
            "date date date nav nav";
    }
}

/* ---------- Ticket search: inline pill in the header that expands into a results drawer ---------- */
#booking-page-body-id #navbar-append-follow-page:has(> .ticket-search-slot) {
    flex: 1 1 auto;
}

/* The nav row clips overflow; let the expanded drawer escape it */
#booking-page-body-id #navbar-append-follow-page:has(.ticket-search.is-open) {
    z-index: 70;
    overflow: visible;
}

#booking-page-body-id #navbar-append-follow-page > li.ticket-search-slot {
    position: relative;
    z-index: 60;
    height: 36px;
    margin: 0;
    padding: 0;
    container: ticket-slot / inline-size;
}

@media (min-width: 1025px) {
    #booking-page-body-id #navbar-append-follow-page > li.ticket-search-slot {
        flex: 1 1 300px;
        width: auto;
        min-width: 36px;
        max-width: 340px;
    }
}

#booking-page-body-id .ticket-search {
    --ts-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: absolute;
    inset: 0;
}

#booking-page-body-id .ticket-search-surface {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: left 0.34s var(--ts-ease), width 0.34s var(--ts-ease), top 0.34s var(--ts-ease);
}

#booking-page-body-id .ticket-search.is-open .ticket-search-surface {
    top: -4px;
    left: var(--ts-shift, 0px);
    width: var(--ts-open-w, 460px);
}

#booking-page-body-id .ticket-search-box {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 10px;
    height: 36px;
    min-width: 0;
    margin: 0;
    padding: 0 6px 0 12px;
    color: #6f6862;
    cursor: text;
    background: #e9e7e3;
    border: 1px solid transparent;
    border-radius: 10px;
    transition:
        height 0.34s var(--ts-ease),
        padding 0.34s var(--ts-ease),
        border-radius 0.34s var(--ts-ease),
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.3s ease;
}

#booking-page-body-id .ticket-search:not(.is-open) .ticket-search-box:hover {
    background: #e2dfdb;
}

#booking-page-body-id .ticket-search.is-open .ticket-search-box {
    height: 44px;
    padding: 0 8px 0 14px;
    background: #fff;
    border-color: #d9d4ce;
    border-radius: 12px;
    box-shadow: 0 0 0 4px rgba(31, 27, 24, 0.05);
}

#booking-page-body-id .ticket-search-box > i {
    flex: 0 0 auto;
    font-size: 15px;
    transition: color 0.2s ease;
}

#booking-page-body-id .ticket-search.is-open .ticket-search-box > i {
    color: var(--bk-text);
}

#booking-page-body-id .ticket-search-box input {
    flex: 1 1 auto;
    width: 0;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    color: var(--bk-text);
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
    font: normal normal 500 13px/1.3 "Montserrat", sans-serif;
    text-overflow: ellipsis;
}

#booking-page-body-id .ticket-search.is-open .ticket-search-box input {
    font-size: 14px;
}

#booking-page-body-id .ticket-search-box input::-webkit-search-cancel-button {
    display: none;
}

#booking-page-body-id .ticket-search-box input::placeholder {
    color: #8a837c;
    opacity: 1;
}

#booking-page-body-id .ticket-search-box kbd,
#booking-page-body-id .ticket-search-footer kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    color: #6f6862;
    background: #fff;
    border: 1px solid #e0dbd5;
    border-radius: 6px;
    box-shadow: 0 1px 0 #e0dbd5;
    font: normal normal 600 11px/1 "Montserrat", sans-serif;
}

#booking-page-body-id .ticket-search-footer kbd > i {
    font-size: 10px;
}

#booking-page-body-id .ticket-search-box .ticket-search-hint {
    flex: 0 0 auto;
}

#booking-page-body-id .ticket-search-box:not(:has(input:placeholder-shown)) .ticket-search-hint {
    display: none;
}

#booking-page-body-id .ticket-search-clear {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    color: var(--bk-muted);
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

#booking-page-body-id .ticket-search-clear:hover {
    color: var(--bk-text);
    background: var(--bk-hover);
}

#booking-page-body-id .ticket-search-box:has(input:placeholder-shown) .ticket-search-clear {
    display: none;
}

/* Narrow slot (tablet/mobile header): collapsed state is just the magnifier */
@container ticket-slot (max-width: 140px) {
    #booking-page-body-id .ticket-search:not(.is-open) .ticket-search-box {
        justify-content: center;
        padding: 0;
        background: transparent;
    }

    #booking-page-body-id .ticket-search:not(.is-open) .ticket-search-box:hover {
        background: var(--bk-hover);
    }

    #booking-page-body-id .ticket-search:not(.is-open) .ticket-search-box > i {
        font-size: 16px;
    }

    #booking-page-body-id .ticket-search:not(.is-open) :is(.ticket-search-hint, .ticket-search-clear) {
        display: none;
    }

    #booking-page-body-id .ticket-search:not(.is-open) .ticket-search-box input {
        position: absolute;
        width: 1px;
        opacity: 0;
    }
}

/* Results card sits under the input; height animates through grid rows 0fr -> 1fr */
#booking-page-body-id .ticket-search-drawer {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 8px;
    transition: grid-template-rows 0.36s var(--ts-ease);
}

#booking-page-body-id .ticket-search.is-open .ticket-search-drawer {
    grid-template-rows: 1fr;
}

#booking-page-body-id .ticket-search-drawer-inner {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e7e3de;
    border-radius: 14px;
    box-shadow: 0 10px 28px -12px rgba(31, 27, 24, 0.14), 0 2px 6px rgba(31, 27, 24, 0.04);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.36s var(--ts-ease);
}

#booking-page-body-id .ticket-search.is-open .ticket-search-drawer-inner {
    opacity: 1;
    transform: none;
    transition-delay: 0.04s;
}

#booking-page-body-id .ticket-search-results {
    max-height: min(440px, var(--ts-room, 440px));
    padding: 8px 8px 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
}

#booking-page-body-id .ticket-search-section-label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 4px 10px 8px;
    color: #7a736c;
    font: normal normal 600 12px/1.3 "Montserrat", sans-serif;
}

#booking-page-body-id .ticket-search-section-label.is-attention > i {
    color: #d34b50;
    font-size: 13px;
}

#booking-page-body-id .ticket-search-result {
    --ts-kind: var(--bk-muted);
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    min-height: 62px;
    margin: 0 0 2px;
    padding: 10px 12px 10px 20px;
    color: var(--bk-text);
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 12px;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.14s ease;
}

#booking-page-body-id .ticket-search-result::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 8px;
    width: 3px;
    border-radius: 3px;
    background: var(--ts-kind);
    opacity: 0.7;
}

#booking-page-body-id .ticket-search-result.is-active {
    background: #f4f2ef;
}

#booking-page-body-id .ticket-search-result.kind-booked { --ts-kind: var(--bk-st-booked); }
#booking-page-body-id .ticket-search-result.kind-unconfirmed { --ts-kind: var(--bk-st-unconfirmed); }
#booking-page-body-id .ticket-search-result.kind-waiting { --ts-kind: var(--bk-st-waiting); }
#booking-page-body-id .ticket-search-result.kind-inservice { --ts-kind: var(--bk-st-inservice); }
#booking-page-body-id .ticket-search-result:is(.kind-done, .kind-closed) { --ts-kind: #a39c95; }
#booking-page-body-id .ticket-search-result.kind-cancelled { --ts-kind: #c8c1ba; }
#booking-page-body-id .ticket-search-result.kind-noshow { --ts-kind: #d34b50; }

#booking-page-body-id .ticket-search.is-entering .ticket-search-result {
    animation: ticket-search-row-in 0.34s var(--ts-ease) both;
    animation-delay: calc(var(--ts-index, 0) * 26ms + 70ms);
}

@keyframes ticket-search-row-in {
    from { opacity: 0; transform: translateY(-4px); }
}

#booking-page-body-id .ticket-search-result-id {
    flex: 0 0 auto;
    min-width: 42px;
    padding: 6px 7px;
    color: #5f5852;
    text-align: center;
    background: #efedea;
    border-radius: 7px;
    font: normal normal 600 12px/1 "Montserrat", sans-serif;
    font-variant-numeric: tabular-nums;
}

#booking-page-body-id .ticket-search-result.is-active .ticket-search-result-id {
    background: #e7e4e0;
}

#booking-page-body-id .ticket-search-result-copy {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#booking-page-body-id .ticket-search-result-title {
    overflow: hidden;
    color: var(--bk-text);
    font: normal normal 600 14px/1.3 "Montserrat", sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#booking-page-body-id .ticket-search-result-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    color: #7a736c;
    font: normal normal 500 12px/1.3 "Montserrat", sans-serif;
    white-space: nowrap;
}

#booking-page-body-id .ticket-search-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: #3d3732;
    font-weight: 600;
}

#booking-page-body-id .ticket-search-status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ts-kind);
}

#booking-page-body-id .ticket-search-separator {
    flex: 0 0 auto;
    color: #bdb6af;
}

#booking-page-body-id .ticket-search-service {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

#booking-page-body-id .ticket-search-result-side {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    max-width: 96px;
    min-width: 0;
}

#booking-page-body-id .ticket-search-result-time {
    color: var(--bk-text);
    font: normal normal 600 13px/1.2 "Montserrat", sans-serif;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#booking-page-body-id .ticket-search-result-time.is-late {
    color: #d34b50;
}

#booking-page-body-id .ticket-search-result-tech {
    max-width: 100%;
    overflow: hidden;
    color: #8a837c;
    font: normal normal 500 11px/1.2 "Montserrat", sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#booking-page-body-id .ticket-search-result-arrow {
    flex: 0 0 14px;
    width: 14px;
    color: #a8a098;
    font-size: 13px;
    opacity: 0;
    transform: translateX(-3px);
    transition: opacity 0.14s ease, transform 0.2s var(--ts-ease);
}

#booking-page-body-id .ticket-search-result.is-active .ticket-search-result-arrow {
    opacity: 1;
    transform: none;
}

#booking-page-body-id .ticket-search-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 32px 16px;
    color: var(--bk-muted);
    text-align: center;
}

#booking-page-body-id .ticket-search-empty > i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 4px;
    background: #f4f2ef;
    border-radius: 10px;
    font-size: 15px;
}

#booking-page-body-id .ticket-search-empty strong {
    color: var(--bk-text);
    font: normal normal 600 14px/1.3 "Montserrat", sans-serif;
}

#booking-page-body-id .ticket-search-empty span {
    font: normal normal 500 12px/1.4 "Montserrat", sans-serif;
}

#booking-page-body-id .ticket-search-footer {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 16px;
    min-height: 46px;
    margin: 0;
    padding: 0 14px;
    color: #7a736c;
    background: #faf9f7;
    border-top: 1px solid #efebe6;
    font: normal normal 500 12px/1.2 "Montserrat", sans-serif;
}

#booking-page-body-id .ticket-search-footer > span:not(.ticket-search-tip) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

#booking-page-body-id .ticket-search-footer .ticket-search-tip {
    margin-left: auto;
    overflow: hidden;
    color: #958e87;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 600px) {
    #booking-page-body-id .ticket-search-result { gap: 10px; padding-right: 10px; }
    #booking-page-body-id .ticket-search-result-arrow { display: none; }
    #booking-page-body-id .ticket-search-footer { gap: 10px; padding-inline: 12px; }
    #booking-page-body-id .ticket-search-footer .ticket-search-tip { display: none; }
}

.box-tix-appt-book.ticket-search-highlight {
    z-index: 15 !important;
    outline: 2px solid var(--bk-accent-strong) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px rgba(194, 65, 12, 0.14), 0 6px 18px rgba(31, 27, 24, 0.22) !important;
    animation: ticket-search-highlight 1.2s ease-in-out 2;
}

@keyframes ticket-search-highlight {
    50% { outline-color: var(--bk-accent); box-shadow: 0 0 0 9px rgba(194, 65, 12, 0.08), 0 6px 18px rgba(31, 27, 24, 0.18) !important; }
}

@media (prefers-reduced-motion: reduce) {
    #booking-page-body-id .ticket-search-surface,
    #booking-page-body-id .ticket-search-box,
    #booking-page-body-id .ticket-search-box > i,
    #booking-page-body-id .ticket-search-drawer,
    #booking-page-body-id .ticket-search-drawer-inner,
    #booking-page-body-id .ticket-search-result,
    #booking-page-body-id .ticket-search-result-arrow,
    .box-tix-appt-book.ticket-search-highlight {
        transition: none;
        animation: none;
    }
}

/* ===================== Calendar / List view switcher ===================== */

.view-mode-switch {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 106px;
  height: 40px;
  flex: 0 0 106px;
  padding: 3px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 22px;
  background: color-mix(in srgb, var(--bs-text) 12%, var(--bs-surface-bg));
  border: 0;
}

.view-mode-switch::before {
  content: "";
  position: absolute;
  inset: 3px auto 3px 3px;
  width: calc((100% - 6px) / 2);
  border-radius: 20px;
  background: var(--bs-surface-bg);
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%), 0 2px 6px rgb(15 23 42 / 5%);
  pointer-events: none;
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1);
}

.view-mode-switch:has([data-view="list"][aria-pressed="true"])::before {
  transform: translateX(100%);
}

.view-mode-switch::after {
  content: none;
}

#view-mode-switch .view-mode-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
  box-shadow: none;
  color: var(--bs-text-muted);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
  font-size: 14px;
  min-height: unset;
}

#view-mode-switch .view-mode-btn svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  pointer-events: none;
}

#view-mode-switch .view-mode-btn:hover {
  background: transparent;
  color: var(--bs-text);
}

#view-mode-switch .view-mode-btn[aria-pressed="true"] {
  color: var(--bs-text);
  background: transparent;
}

#view-mode-switch .view-mode-btn:focus-visible {
  outline: 2px solid var(--bs-main);
  outline-offset: -4px;
  border-radius: 20px;
}

#view-mode-switch .view-mode-btn::before {
  content: none;
}

#view-mode-switch .view-mode-btn:active > * {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  #view-mode-switch::before,
  #view-mode-switch .view-mode-btn {
    transition: none;
  }
}

/* ===================== List view (agenda) ===================== */

.booking-page-body #calendar-view-area {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
}

.booking-page-body[sidecalendar="closed"] #calendar-view-area,
.booking-page-body.create-appointment #calendar-view-area {
  grid-column: 1 / 3;
}

.booking-page-body #calendar-view-area.calendar-view-inactive {
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .booking-page-body[sidecalendar] #calendar-view-area {
    grid-column: 1 / -1;
  }
}

.booking-page-body .booking-list-view-area {
  display: flex;
  flex-direction: column;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  max-height: 100%;
  padding: 0 20px 20px;
  background: var(--bk-surface);
  border-radius: 0;
  border: 0;
  container-type: inline-size;
  scrollbar-gutter: stable;
  scroll-padding-top: var(--list-toolbar-height, 100px);
  overscroll-behavior: contain;
  margin: 0;
}

.booking-page-body[sidecalendar="closed"] .booking-list-view-area,
.booking-page-body.create-appointment .booking-list-view-area {
  grid-column: 1 / 3;
}

.booking-page-body[view-mode="list"] #navbar-append-follow-page > li:has(.btn-view-calendar-today),
.booking-page-body[view-mode="list"] #navbar-append-follow-page > li:has(#select-date-navbar-calendar) {
  display: none;
}

.list-range-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 32px;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 0 12px;
  background: inherit;
  border-bottom: 1px solid var(--bs-border-color);
  backdrop-filter: blur(12px);
}

.list-range-toolbar .list-view-date-heading {
  position: static;
  min-width: 0;
  border: 0;
  padding: 0;
}

/* One segmented control: Today / Week / Month / date range trigger */
.list-range-bar {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  height: var(--px-40);
  padding: 3px;
  border-radius: var(--px-24);
  background: color-mix(in srgb, var(--bs-text) 12%, var(--bs-surface-bg));
  isolation: isolate;
  backdrop-filter: blur(4px);
}

/* Sliding thumb; moveThumb() sets --thumb-x / --thumb-w from the active segment */
.list-range-bar::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  z-index: -1;
  width: var(--thumb-w, 0px);
  border-radius: var(--px-20);
  background: var(--bs-surface-bg);
  box-shadow:
    0 1px 2px rgb(15 23 42 / 8%),
    0 2px 6px rgb(15 23 42 / 5%);
  opacity: 0;
  transform: translateX(var(--thumb-x, 0px));
}

.list-range-bar.has-thumb::before {
  opacity: 1;
}

.list-range-bar.is-ready::before {
  transition:
    transform 300ms cubic-bezier(0.3, 0.8, 0.2, 1),
    width 300ms cubic-bezier(0.3, 0.8, 0.2, 1),
    opacity 160ms ease;
}

/* Opt out of the site-wide button ripple, clipping and :active flash */
.list-range-bar button,
.lrp button {
  z-index: auto;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
}

.list-range-bar button::before,
.lrp button::before {
  content: none;
}

.list-range-bar button:active > *,
.lrp button:active > * {
  animation: none;
}

.list-range-bar .list-range-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-width: 0;
  padding: 0 16px;
  border: 0;
  border-radius: var(--px-20);
  background: transparent;
  color: var(--bs-text-muted);
  font: normal normal 500 var(--s-13);
  white-space: nowrap;
  transition: color 200ms ease;
}

.list-range-bar .list-range-tab:hover,
.list-range-bar .list-range-tab[aria-pressed="true"],
.list-range-bar .list-range-trigger.is-active,
.list-range-bar .list-range-trigger[aria-expanded="true"] {
  color: var(--bs-text);
}

.list-range-bar .list-range-tab[aria-pressed="true"] {
  font-weight: 600;
}

/* Reserve the bold width so switching tabs never nudges the segments */
.list-range-bar .list-range-tab[data-label] {
  display: inline-grid;
  align-content: center;
  justify-items: center;
  gap: 0;
}

.list-range-bar .list-range-tab[data-label]::after {
  content: attr(data-label);
  height: 0;
  overflow: hidden;
  font-weight: 600;
  visibility: hidden;
}

.list-range-bar .list-range-tab:focus-visible {
  outline: 2px solid var(--bs-main);
  outline-offset: -2px;
}

.list-range-bar .list-range-trigger {
  justify-content: flex-start;
  min-width: 216px;
  margin-left: 5px;
  padding: 0 12px 0 14px;
}

.list-range-trigger::after {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: -4px;
  width: 1px;
  background: color-mix(in srgb, var(--bs-text) 14%, transparent);
  transition: opacity 200ms ease;
}

.list-range-tab[aria-pressed="true"] + .list-range-trigger::after,
.list-range-trigger.is-active::after {
  opacity: 0;
}

.list-range-trigger > .fa-calendar {
  font-size: 13px;
  transition: color 200ms ease;
}

.list-range-trigger.is-active > .fa-calendar,
.list-range-trigger[aria-expanded="true"] > .fa-calendar {
  color: var(--bs-main);
}

.list-range-trigger-label {
  color: var(--bs-text);
  font-weight: 600;
}

.list-range-trigger-label:empty {
  display: none;
}

.list-range-trigger-dates {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.list-range-trigger-label:not(:empty) + .list-range-trigger-dates {
  color: var(--bs-text-muted);
}

.list-range-trigger-caret {
  margin-left: auto;
  padding-left: 4px;
  font-size: 10px;
  opacity: 0.6;
  transition: transform 200ms ease;
}

.list-range-trigger[aria-expanded="true"] .list-range-trigger-caret {
  transform: rotate(180deg);
}

#list-view-rows-id {
  transition: opacity 160ms ease;
}

/* Delay the dim so fast responses swap content without a flash */
#list-view-rows-id.is-refreshing {
  opacity: 0.45;
  pointer-events: none;
  transition-delay: 120ms;
}

.lrp button:focus-visible {
  outline: 2px solid var(--bs-main);
  outline-offset: 2px;
}

/* Range picker popover */
.lrp {
  --lrp-band: color-mix(in srgb, var(--bs-main) 8%, var(--bs-surface-bg));
  --lrp-line: color-mix(in srgb, var(--bs-text) 9%, transparent);
  position: fixed;
  z-index: 1060;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(712px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: hidden;
  border: 1px solid var(--lrp-line);
  border-radius: 16px;
  background: var(--bs-surface-bg);
  box-shadow:
    0 1px 2px rgb(15 23 42 / 4%),
    0 16px 40px -12px rgb(15 23 42 / 18%);
  color: var(--bs-text);
  font-size: 13px;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 140ms ease,
    transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.lrp[hidden] {
  display: none;
}

.lrp.is-open {
  opacity: 1;
  transform: none;
}

.lrp-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-height: 0;
  overflow: auto;
}

.lrp-presets {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px;
  border-right: 1px solid var(--lrp-line);
}

.lrp .lrp-preset {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-start;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--bs-text-muted);
  font: inherit;
  font-weight: 500;
  text-align: left;
  white-space: nowrap;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.lrp .lrp-preset:hover {
  background: color-mix(in srgb, var(--bs-text) 5%, transparent);
  color: var(--bs-text);
}

.lrp .lrp-preset[aria-pressed="true"] {
  background: var(--lrp-band);
  color: var(--bs-main-800);
  font-weight: 600;
}

.lrp-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 16px 20px;
}

/* Two columns that line up with the two months below */
.lrp-fields {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 24px;
}

.lrp-fields-sep {
  position: absolute;
  bottom: 0;
  left: 50%;
  display: grid;
  place-items: center;
  height: 40px;
  color: var(--bs-text-muted);
  font-size: 11px;
  opacity: 0.7;
  transform: translateX(-50%);
}

.lrp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.fa-light.fa-arrow-right.lrp-fields-sep {
  transform: translate(-6px, 16px);
  color: var(--bs-main);
  font-weight: 600;
}

.lrp-field-label {
  color: var(--bs-text-muted);
  font-size: 11.5px;
  font-weight: 500;
}

.lrp-field-box {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  background: var(--bs-surface-bg);
  cursor: text;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.lrp-field-box i {
  color: var(--bs-text-muted);
  font-size: 13px;
}

.lrp-field.is-next .lrp-field-box {
  border-style: dashed;
  border-color: color-mix(in srgb, var(--bs-main) 55%, var(--bs-border-color));
}

.lrp-field-box:focus-within {
  border-style: solid;
  border-color: var(--bs-main);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-main) 12%, transparent);
}

.lrp-field.is-invalid .lrp-field-box {
  border-style: solid;
  border-color: var(--bs-red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-red) 12%, transparent);
}

.lrp-input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bs-text);
  font: inherit;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.lrp-input::placeholder {
  color: var(--bs-text-muted);
  opacity: 0.6;
}

.lrp-months {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.lrp .lrp-nav {
  position: absolute;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bs-text-muted);
  font-size: 12px;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.lrp .lrp-nav:hover {
  background: color-mix(in srgb, var(--bs-text) 6%, transparent);
  color: var(--bs-text);
}

.lrp-prev {
  left: -6px;
}

.lrp-next {
  right: -6px;
}

.lrp-month-title {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
}

.lrp-weekdays,
.lrp-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.lrp-grid {
  row-gap: 6px;
}

.lrp-weekdays span {
  display: grid;
  place-items: center;
  height: 28px;
  color: var(--bs-text-muted);
  font-size: 11px;
  font-weight: 500;
}

.lrp-cell {
  position: relative;
  display: grid;
  place-items: center;
  height: 34px;
}

.lrp-cell.in-range::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--lrp-band);
}

.lrp-cell.is-preview::before {
  background: color-mix(in srgb, var(--bs-main) 6%, var(--bs-surface-bg));
}

.lrp-cell.range-start::before {
  left: 50%;
}

.lrp-cell.range-end::before {
  right: 50%;
}

.lrp-cell.in-range:nth-child(7n + 1):not(.range-start)::before {
  border-radius: 999px 0 0 999px;
}

.lrp-cell.in-range:nth-child(7n):not(.range-end)::before {
  border-radius: 0 999px 999px 0;
}

.lrp .lrp-day {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bs-text);
  font: inherit;
  font-variant-numeric: tabular-nums;
  transition:
    background-color 120ms ease,
    color 120ms ease;
}

.lrp .lrp-day:hover {
  background: color-mix(in srgb, var(--bs-text) 6%, transparent);
}

.lrp .lrp-cell.in-range .lrp-day:hover {
  background: color-mix(in srgb, var(--bs-main) 16%, transparent);
}

.lrp .lrp-day.is-today {
  color: var(--bs-main-700);
  font-weight: 600;
}

.lrp .lrp-day.is-today::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.lrp .lrp-cell .lrp-day.is-selected,
.lrp .lrp-cell .lrp-day.is-selected:hover {
  background: var(--bs-main);
  color: #fff;
  font-weight: 600;
}

.lrp .lrp-cell.is-preview.range-end .lrp-day {
  box-shadow: inset 0 0 0 1.5px var(--bs-main);
}

.lrp-cell.is-far .lrp-day {
  opacity: 0.35;
}

.lrp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px 12px 20px;
  border-top: 1px solid var(--lrp-line);
}

.lrp-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: var(--bs-text-muted);
}

.lrp-summary strong {
  overflow: hidden;
  color: var(--bs-text);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lrp-count {
  flex: none;
  font-size: 12px;
}

.lrp-count::before {
  content: "Â·";
  margin-right: 8px;
}

.lrp-actions {
  display: flex;
  flex: none;
  gap: 6px;
}

.lrp .lrp-btn {
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--px-24);
  font: inherit;
  font-weight: 600;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    opacity 120ms ease;
}

.lrp .lrp-btn-ghost {
  padding: 0 12px;
  background: transparent;
  color: var(--bs-text-muted);
  font-weight: 500;
}

.lrp .lrp-btn-ghost:hover {
  color: var(--bs-text);
}

.lrp .lrp-btn-outline {
  border-color: var(--bs-border-color);
  background: var(--bs-surface-bg);
  color: var(--bs-text);
  font-weight: 500;
}

.lrp .lrp-btn-outline:hover {
  background: color-mix(in srgb, var(--bs-text) 4%, var(--bs-surface-bg));
}

.lrp .lrp-btn-primary {
  background: var(--bs-main);
  color: #fff;
}

.lrp .lrp-btn-primary:hover {
  background: var(--bs-main-hover);
}

.lrp .lrp-btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Phones: bottom sheet, preset chips, one month */
.lrp.is-sheet {
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 88dvh;
  border-width: 1px 0 0;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 0 0 100vmax rgb(15 23 42 / 32%);
  transform: translateY(24px);
}

.lrp.is-sheet.is-open {
  transform: none;
}

.lrp.is-sheet .lrp-body {
  grid-template-columns: minmax(0, 1fr);
}

.lrp.is-sheet .lrp-presets {
  flex-direction: row;
  gap: 6px;
  padding: 14px 16px 12px;
  overflow-x: auto;
  border-right: 0;
  border-bottom: 1px solid var(--lrp-line);
  scrollbar-width: none;
}

.lrp.is-sheet .lrp-preset {
  height: 32px;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
}

.lrp.is-sheet .lrp-preset[aria-pressed="true"] {
  border-color: transparent;
}

.lrp.is-sheet .lrp-main {
  padding: 16px;
}

.lrp.is-sheet .lrp-months {
  grid-template-columns: minmax(0, 1fr);
}

.lrp.is-sheet .lrp-month + .lrp-month {
  display: none;
}

.lrp.is-sheet .lrp-footer {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
}

.lrp.is-sheet .lrp-actions .lrp-btn {
  flex: 1;
}

@media (prefers-reduced-motion: reduce) {
  .lrp,
  .list-range-bar.is-ready::before,
  .list-range-bar .list-range-tab,
  .list-range-trigger-caret,
  #list-view-rows-id {
    transition: none;
  }
}

.list-range-controls {
  position: relative;
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
}

#list-range-message {
  min-height: 15px;
  padding-inline: 4px;
  color: var(--bs-text-muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
  white-space: nowrap;
  overflow-wrap: anywhere;
}

#list-range-message:empty {
  display: none;
}

.list-range-group {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-width: 0;
  border-bottom: 1px solid var(--bs-border-color);
  display: flex;
  flex-direction: column;
}

.list-range-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 12px 8px 8px 4px;
  color: var(--bs-text);
}

.list-range-day time {
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-day-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--bs-text-muted);
  cursor: pointer;
}

.list-day-toggle:hover {
  background: var(--bs-surface-2-bg);
  color: var(--bs-main);
}

.list-day-toggle:focus-visible {
  outline: 2px solid var(--bs-main);
  outline-offset: 2px;
}

.list-day-toggle[aria-expanded="false"] i {
  transform: rotate(-90deg);
}

.list-range-appointments[hidden] {
  display: none;
}

.list-ticket-loading {
  pointer-events: none;
}

.list-ticket-skeleton {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) minmax(70px, 20%);
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 16px 12px;
  border-bottom: 1px solid var(--bs-border-color);
}

.list-ticket-skeleton span {
  display: block;
  height: 12px;
  border-radius: 4px;
  background: var(--bs-border-color);
  animation: list-loading-pulse 1200ms ease-in-out infinite alternate;
}

.list-ticket-skeleton .list-skeleton-detail {
  width: 75%;
  height: 28px;
}

.list-range-reveal {
  animation: list-content-enter 220ms cubic-bezier(.2, .8, .2, 1) both;
}

.list-day-toggle i {
  transition: transform 180ms ease;
}

@keyframes list-loading-pulse {
  from { opacity: .35; }
  to { opacity: .8; }
}

@keyframes list-content-enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@container (max-width: 430px) {
  .list-ticket-skeleton {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 16px;
  }

  .list-ticket-skeleton .list-skeleton-tech {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .list-ticket-skeleton span,
  .list-range-reveal {
    animation: none;
  }

  .list-day-toggle i {
    transition: none;
  }
}

.list-range-day-number {
  min-width: 28px;
  font-size: 22px;
  font-weight: 500;
  line-height: 32px;
  text-align: center;
}

.list-range-day-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0;
}

.list-range-day time[data-today="true"] {
  color: var(--bs-main-800);
}

.list-range-day time[data-today="true"] .list-range-day-number {
  border-radius: 50%;
  background: var(--bs-main);
  color: #fff;
  min-width: 32px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.list-range-appointments {
  min-width: 0;
  container-type: inline-size;
}

.list-range-appointments .list-view-row:last-child {
  border-bottom: 0;
}

@container (max-width: 700px) {
  .list-range-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 12px;
  }

  .list-range-controls {
    width: 100%;
    justify-items: stretch;
  }

  .list-range-bar {
    display: flex;
    width: 100%;
  }

  .list-range-bar .list-range-tab {
    flex: 1 1 auto;
    padding: 0 12px;
  }

  .list-range-bar .list-range-trigger {
    flex: 3 1 auto;
    min-width: 0;
    justify-content: flex-start;
  }

  .list-range-trigger-caret {
    margin-left: auto;
  }

  #list-range-message {
    text-align: left;
  }

  .list-range-group {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .list-range-day {
    padding: 12px 6px 12px 0;
  }

  .list-range-day time {
    flex-direction: column;
    gap: 2px;
  }
}

.list-view-date-heading {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--bs-text);
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--bs-border-color);
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 1;
  flex-shrink: 0;
}

.list-view-rows {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.list-view-row {
  display: grid;
  grid-template-columns: 112px 8px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  min-height: var(--px-72);
  padding: 12px;
  border-bottom: 1px solid var(--bs-border-color);
  cursor: pointer;
  transition: background-color 120ms ease;
}

.list-view-row:hover {
  background: var(--bs-gray-100);
}

.list-view-row:focus-visible {
  outline: 2px solid var(--bs-main);
  outline-offset: -2px;
}

.list-view-row .lvr-time {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.list-view-date-heading {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  flex-direction: column;
}

.list-summary-total {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
  font-size: 13px;
}

.list-summary-total strong {
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.list-summary-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  min-width: 0;
}

.list-summary-item strong {
  color: var(--bs-text);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.list-view-row .lvr-time-entry {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
}

.list-view-row .lvr-time-label {
  font-size: 10px;
  line-height: 1.5;
  color: var(--bs-text-muted, #6b7280);
}

.list-view-row .lvr-time .lvr-start {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--bs-text);
}

.list-view-row .lvr-time .lvr-end {
  font-size: 12px;
  line-height: 1.5;
  color: var(--bs-text-muted, #6b7280);
}

.list-view-row .lvr-bar {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--row-accent, var(--bs-main));
}

.list-view-row .lvr-body {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(100px, 30%) 100px;
  grid-template-areas:
    "client tech status"
    "service tech status";
  gap: 6px 24px;
  align-items: center;
}

.list-view-row .lvr-top {
  display: contents;
}

.list-view-row .lvr-meta {
  grid-area: tech;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.list-view-row .lvr-client {
  grid-area: client;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--bs-text);
  min-width: 0;
}

.list-summary-item,
.list-view-row .lvr-status {
  grid-area: status;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--bs-text-muted, #6b7280);
  --status-dot: #31846b;
}

.list-summary-item::before,
.list-view-row .lvr-status::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: var(--status-dot);
}

.list-summary-item.st-wait,
.list-summary-item.st-pending,
.list-view-row .lvr-status.st-wait,
.list-view-row .lvr-status.st-pending {
  --status-dot: #b88218;
}

.list-summary-item.st-inservice,
.list-view-row .lvr-status.st-inservice {
  --status-dot: #4387bd;
}

.list-summary-item.st-noshow,
.list-view-row .lvr-status.st-noshow {
  --status-dot: var(--bs-red);
}

.list-summary-item.st-closed,
.list-summary-item.st-cancelled,
.list-summary-item.st-other,
.list-view-row .lvr-status.st-closed,
.list-view-row .lvr-status.st-cancelled {
  --status-dot: #92999f;
}

.list-view-row .lvr-service {
  grid-area: service;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bs-text-muted, #6b7280);
  text-transform: capitalize;
}

.list-view-row .lvr-client,
.list-view-row .lvr-service {
  display: block;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.list-view-row .lvr-tech {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: var(--bs-text-muted, #6b7280);
  text-transform: capitalize;
}

.list-view-row .lvr-tech i {
  font-size: 12px;
  flex-shrink: 0;
}

.list-view-row .lvr-tech-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.list-view-row .lvr-requested {
  display: inline-block;
  margin-left: 6px;
  color: var(--bs-red);
  vertical-align: baseline;
}

.list-view-row .lvr-icons {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--bs-text-muted, #6b7280);
  font-size: 12px;
  line-height: 1.6;
}

.list-view-row .lvr-icons:empty {
  display: none;
}

.list-view-row .lvr-detail {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.list-view-row .lvr-detail > i {
  flex: 0 0 14px;
  text-align: center;
}

.list-view-row .lvr-detail > span {
  min-width: 0;
}

.list-view-row .lvr-detail strong {
  color: var(--bs-text);
  font-weight: 500;
}

.list-view-row .lvr-note {
  flex-basis: 100%;
}

.list-view-row .lvr-note-content {
  white-space: pre-wrap;
}

.list-view-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex: 1;
  min-height: 200px;
  padding: 40px 16px;
  color: var(--bs-text-muted, #6b7280);
  text-align: center;
}

.list-view-empty i {
  font-size: 32px;
  color: var(--bs-text-muted, #6b7280);
  opacity: 0.5;
}

.list-view-empty p {
  font-size: 14px;
  line-height: 1.5;
}

@container (max-width: 700px) {
  .list-view-date-heading {
    align-items: flex-start;
    gap: 8px 14px;
  }

  .list-summary-total {
    font-size: 12px;
  }

  .list-summary-total strong {
    font-size: 18px;
  }

  .list-summary-counts {
    gap: 8px 14px;
  }

  .list-view-row {
    grid-template-columns: clamp(82px, 24vw, 98px) 6px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 0;
    align-items: flex-start;
  }

  .list-view-row .lvr-bar {
    width: 6px;
    height: 6px;
    align-self: start;
    margin-top: 8px;
  }

  .list-view-row .lvr-time {
    align-self: start;
    gap: 2px;
    padding-top: 1px;
  }

  .list-view-row .lvr-time-entry {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 4px;
  }

  .list-view-row .lvr-time .lvr-start {
    font-size: 12px;
  }

  .list-view-row .lvr-time .lvr-end {
    font-size: 12px;
  }

  .list-view-row .lvr-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "client" "service" "tech" "status";
    gap: 6px 10px;
    align-items: start;
  }

  .list-view-row .lvr-meta {
    width: 100%;
    gap: 6px;
  }

  .list-view-row .lvr-icons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-content: flex-start;
    gap: 4px;
    width: 100%;
  }

  .list-view-row .lvr-icons:empty {
    display: none;
  }

  .list-view-row .lvr-detail {
    width: 100%;
  }

  .list-view-row .lvr-status {
    white-space: normal;
  }
}

@container (max-width: 520px) {
  .list-view-date-heading {
    padding-block: 12px 10px;
  }

  .list-summary-total strong {
    font-size: 17px;
  }

  .list-summary-item,
  .list-view-row .lvr-status {
    font-size: 11px;
  }

  .list-view-row .lvr-client {
    font-size: 13px;
  }

  .list-view-row .lvr-service {
    font-size: 12px;
  }

  .list-view-row .lvr-tech,
  .list-view-row .lvr-icons {
    font-size: 11px;
  }
}

@container (max-width: 360px) {
  .list-range-appointments .list-view-row {
    grid-template-columns: 6px minmax(0, 1fr);
    gap: 8px;
  }

  .list-range-appointments .lvr-time {
    grid-column: 2;
    grid-row: 1;
  }

  .list-range-appointments .lvr-bar {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .list-range-appointments .lvr-body {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 1024px) {
  .booking-page-body[view-mode="list"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-page-body[view-mode="list"] .booking-header-panel {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .booking-page-body[view-mode="list"] .header-title-calendar {
    min-width: 0;
  }

  .booking-page-body[view-mode="list"] #navbar-append-follow-page {
    min-width: 0;
    flex-wrap: nowrap;
  }

  .booking-page-body[sidecalendar] .booking-list-view-area {
    grid-column: 1 / -1;
    padding-inline: 20px;
  }
}

@media (max-width: 768px) {
  .booking-page-body[sidecalendar] .booking-list-view-area {
    padding: 0 16px 88px;
    max-height: 100%;
    border-radius: 0;
    border-inline: 0;
    scroll-padding-bottom: 88px;
    margin: 0;
  }

  .list-view-date-heading {
    padding-block: 16px;
    font-size: 13px;
    align-items: center;
  }

  .list-range-toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 8px 0;
  }

  .list-range-toolbar .list-view-date-heading {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .list-summary-total strong {
    font-size: 18px;
    line-height: 24px;
  }

  .list-summary-counts {
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .list-range-controls {
    justify-items: stretch;
    gap: 4px;
  }

  #list-range-message {
    min-height: 0;
    padding: 0;
    text-align: left;
    white-space: normal;
  }

  #list-range-message:empty {
    display: none;
  }

  .list-range-day {
    padding: 10px 0 6px;
  }

  .list-range-day time {
    flex-direction: row;
    gap: 8px;
  }

  .list-range-day-number,
  .list-range-day time[data-today="true"] .list-range-day-number {
    min-width: 28px;
    font-size: 15px;
    line-height: 28px;
  }

  .list-range-day-label {
    font-size: 11px;
    line-height: 16px;
  }

  .list-range-appointments .list-view-row {
    grid-template-columns: 72px 6px minmax(0, 1fr);
    gap: 8px;
    padding: 10px 0;
    align-items: start;
  }

  .list-range-appointments .lvr-time {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
    gap: 3px;
  }

  .list-view-row .lvr-time-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .list-view-row .lvr-time-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .list-view-row .lvr-time .lvr-start,
  .list-view-row .lvr-time .lvr-end {
    line-height: 18px;
  }

  .list-range-appointments .lvr-bar {
    grid-column: 2;
    grid-row: 1;
    margin-top: 6px;
  }

  .list-range-appointments .lvr-body {
    grid-column: 3;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "client status" "service service" "tech tech";
    gap: 4px 8px;
    align-items: start;
  }

  .list-view-row .lvr-client {
    line-height: 18px;
  }

  .list-view-row .lvr-status {
    white-space: nowrap;
    line-height: 18px;
  }

  .list-view-row .lvr-service {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    line-height: 16px;
  }

  .list-view-row .lvr-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .list-view-row .lvr-tech,
  .list-view-row .lvr-icons {
    line-height: 16px;
  }

  .list-view-row .lvr-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    width: auto;
  }

  .list-view-row .lvr-detail {
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .list-view-row {
    transition: none;
  }
}

/* Hide the calendar-only "1-hour slots" filter while in List view; it doesn't apply to an agenda list. */
.booking-page-body[view-mode="list"] .booking-filter-group-area.time-slots {
  display: none;
}

#booking-page-body-id,
#list-range-picker {
    --bs-text: var(--bk-text, #1f1b18);
    --bs-text-muted: var(--bk-muted, #7c746d);
    --bs-surface-bg: var(--bk-canvas, #fafaf9);
    --bs-surface-2-bg: var(--bk-hover, #f3f2f0);
    --bs-border-color: var(--bk-line, #dcd8d3);
}

#booking-page-body-id[view-mode="list"] #select-date-navbar-calendar,
#booking-page-body-id[view-mode="list"] #navbar-append-follow-page > .date-nav {
    display: none !important;
}

#booking-page-body-id .view-mode-switch {
    flex-shrink: 0;
}

#booking-page-body-id .view-mode-btn i {
    font-size: 16px;
}

#booking-page-body-id .list-range-controls {
    grid-template-columns: minmax(0, 1fr);
}

#booking-page-body-id .list-range-bar {
    min-width: 0;
}

#booking-page-body-id .lvr-status.st-appt { --agenda-ink: #217e33; --agenda-bg: #e9f3eb; }
#booking-page-body-id .lvr-status.st-wait { --agenda-ink: #8f6800; --agenda-bg: #f7f2e6; }
#booking-page-body-id .lvr-status.st-pending { --agenda-ink: #b05109; --agenda-bg: #f8eee6; }
#booking-page-body-id .lvr-status.st-inservice { --agenda-ink: #0274af; --agenda-bg: #e6f3f9; }
#booking-page-body-id .lvr-status.st-closed { --agenda-ink: #606f85; --agenda-bg: #f0f1f3; }
#booking-page-body-id .lvr-status.st-noshow { --agenda-ink: #d12424; --agenda-bg: #fce9e9; }
#booking-page-body-id .lvr-status.st-cancelled { --agenda-ink: #956152; --agenda-bg: #f6f0ef; }

#booking-page-body-id .lvr-status {
    --status-dot: var(--agenda-ink);
    color: var(--agenda-ink, var(--bk-muted));
    background: var(--agenda-bg, transparent);
}

@media (max-width: 1024px) {
    #booking-page-body-id[view-mode="list"] {
        --bk-mobile-header-height: 103px;
    }

    #booking-page-body-id[view-mode="calendar"] {
        --bk-mobile-header-height: 149px;
    }

    #booking-page-body-id[view-mode="list"].booking-stats-hidden {
        --bk-mobile-header-height: 53px;
    }

    #booking-page-body-id[view-mode="calendar"].booking-stats-hidden {
        --bk-mobile-header-height: 103px;
    }

    #booking-page-body-id[view-mode] .booking-header-panel {
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) 80px 40px;
        grid-template-rows: 40px 40px 44px;
        grid-template-areas:
            "menu title mode search"
            "date date nav nav"
            "stats stats stats stats";
        min-height: 0;
        height: auto;
        gap: 6px 8px;
        padding: 6px 12px;
        border-bottom: 1px solid var(--bk-line);
    }

    #booking-page-body-id[view-mode="list"] .booking-header-panel {
        grid-template-columns: minmax(0, 1fr) 80px 40px;
        grid-template-rows: 40px 44px;
        grid-template-areas:
            "title mode search"
            "stats stats stats";
    }

    #booking-page-body-id[view-mode="calendar"].booking-stats-hidden .booking-header-panel {
        grid-template-rows: 40px 40px;
        grid-template-areas: "menu title mode search" "date date nav nav";
    }

    #booking-page-body-id[view-mode="list"].booking-stats-hidden .booking-header-panel {
        grid-template-rows: 40px;
        grid-template-areas: "title mode search";
    }

    #booking-page-body-id[view-mode] .booking-header-panel > .header-title-calendar,
    #booking-page-body-id[view-mode] .booking-header-panel > #navbar-append-follow-page {
        display: contents;
    }

    #booking-page-body-id[view-mode] .header-title-calendar .icon-cal,
    #booking-page-body-id[view-mode="list"] .btn-action-form-calendar {
        display: none;
    }

    #booking-page-body-id[view-mode] .header-title-calendar > p {
        grid-area: title;
        display: block;
        margin: 0;
        color: var(--bk-text);
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        letter-spacing: 0;
    }

    #booking-page-body-id[view-mode] .view-mode-switch {
        grid-area: mode;
        justify-self: end;
        width: 80px;
        height: 40px;
        border-radius: 8px;
        background: #eff1f2;
    }

    #booking-page-body-id[view-mode] .view-mode-switch::before,
    #booking-page-body-id[view-mode] .view-mode-btn {
        border-radius: 6px;
    }

    #booking-page-body-id[view-mode] #navbar-append-follow-page > li.ticket-search-slot {
        grid-area: search;
        width: 40px;
        height: 40px;
        align-self: center;
        justify-self: end;
    }

    #booking-page-body-id[view-mode] .ticket-search:not(.is-open) .ticket-search-box {
        justify-content: center;
        height: 40px;
        padding: 0;
        background: transparent;
        border-radius: 8px;
    }

    #booking-page-body-id[view-mode] .ticket-search:not(.is-open) .ticket-search-box:hover {
        background: #eff1f2;
    }

    #booking-page-body-id[view-mode] #navbar-append-follow-page #select-date-navbar-calendar#select-date-navbar-calendar {
        height: 40px;
        margin: 0;
        padding: 0;
    }

    #booking-page-body-id[view-mode] #navbar-append-follow-page #select-date-navbar-calendar#select-date-navbar-calendar .text-white {
        font-size: 13px;
        line-height: 20px;
    }

    #booking-page-body-id[view-mode] #navbar-append-follow-page .date-nav.date-nav {
        height: 40px;
        justify-self: end;
    }

    #booking-page-body-id[view-mode] .booking-header-stats {
        display: grid;
        grid-area: stats;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
        gap: 0;
        height: 44px;
        width: 100%;
        padding: 0;
        margin: 0;
        background: transparent;
    }

    #booking-page-body-id[view-mode] .booking-header-stats[hidden] {
        display: none !important;
    }

    #booking-page-body-id[view-mode] .booking-header-stat {
        display: flex;
        align-items: center;
        min-width: 0;
        height: 34px;
        padding: 0 10px;
        border: 0;
    }

    #booking-page-body-id[view-mode] .booking-header-stat:first-child {
        padding-left: 0;
    }

    #booking-page-body-id[view-mode] .booking-header-stat + .booking-header-stat {
        border-left: 1px solid #e8ebee;
    }

    #booking-page-body-id[view-mode] .booking-header-stat-icon,
    #booking-page-body-id[view-mode] .booking-header-stat-note {
        display: none;
    }

    #booking-page-body-id[view-mode] .booking-header-stat-copy {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        min-width: 0;
        width: 100%;
    }

    #booking-page-body-id[view-mode] .booking-header-stat-label {
        color: var(--bk-muted);
        font-size: 10px;
        font-weight: 400;
        line-height: 14px;
        text-transform: none;
        white-space: nowrap;
    }

    #booking-page-body-id[view-mode] .booking-header-stat-value {
        color: var(--bk-text);
        font-size: 14px;
        font-weight: 600;
        line-height: 18px;
    }

    #booking-page-body-id[sidecalendar] .booking-list-view-area {
        grid-column: 1 / -1;
        grid-row: 2;
        min-height: 0;
    }

    #booking-page-body-id .list-range-bar {
        height: 40px;
    }

    #booking-page-body-id .list-range-bar .list-range-tab {
        padding-inline: 8px;
        font-size: 12px;
        line-height: 16px;
    }
}

@media (max-width: 480px) {
    #booking-page-body-id .list-range-trigger > .fa-calendar {
        display: none;
    }
}

/* ===== Touch screens: compact calendar header + single docked action bar =====
   Supersedes the floating pill and the legend row that floated over the calendar. */
@media (max-width: 1024px) {
    #booking-page-body-id {
        grid-template-rows: auto minmax(0, 1fr) auto;
    }

    /* Calendar header: date replaces the title; Today nav and stats share row 2 */
    #booking-page-body-id[view-mode="calendar"],
    #booking-page-body-id[view-mode="calendar"].booking-stats-hidden {
        --bk-mobile-header-height: 93px;
    }

    #booking-page-body-id[view-mode="calendar"] .booking-header-panel,
    #booking-page-body-id[view-mode="calendar"].booking-stats-hidden .booking-header-panel {
        grid-template-columns: 36px auto minmax(0, 1fr) 80px 40px;
        grid-template-rows: 40px 34px;
        grid-template-areas:
            "menu date date mode search"
            "nav nav stats stats stats";
        gap: 6px 8px;
        padding: 6px 12px;
    }

    #booking-page-body-id[view-mode="calendar"] .header-title-calendar>p {
        display: none;
    }

    #booking-page-body-id[view-mode="calendar"] #navbar-append-follow-page #select-date-navbar-calendar#select-date-navbar-calendar {
        justify-self: start;
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    #booking-page-body-id[view-mode="calendar"] #navbar-append-follow-page #select-date-navbar-calendar#select-date-navbar-calendar .text-white {
        min-width: 0;
        overflow: hidden;
        color: var(--bk-text);
        font-size: 16px;
        font-weight: 600;
        line-height: 24px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #booking-page-body-id[view-mode="calendar"] #navbar-append-follow-page .date-nav.date-nav {
        justify-self: start;
        height: 34px;
    }

    #booking-page-body-id[view-mode="calendar"] .booking-header-stats {
        height: 34px;
        padding-left: 10px;
        border-left: 1px solid var(--bk-line);
    }

    #booking-page-body-id[view-mode="calendar"] .booking-header-stat {
        height: 30px;
        padding: 0 8px;
    }

    #booking-page-body-id[view-mode="calendar"] .booking-header-stat:first-child {
        padding-left: 0;
    }

    #booking-page-body-id[view-mode="calendar"] .booking-header-stat-copy {
        gap: 1px;
    }

    #booking-page-body-id[view-mode="calendar"] :is(.booking-header-stat-label, .booking-header-stat-value) {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #booking-page-body-id[view-mode="calendar"] .booking-header-stat-label {
        line-height: 12px;
    }

    #booking-page-body-id[view-mode="calendar"] .booking-header-stat-value {
        font-size: 13px;
        line-height: 16px;
    }

    #booking-page-body-id .booking-calendar-area {
        padding-bottom: 0;
        scrollbar-width: none;
    }

    #booking-page-body-id .booking-calendar-area::-webkit-scrollbar {
        display: none;
    }

    /* Legend is moved into the action bar (placeLegend) and opens as a sheet from Filter */
    #booking-page-body-id .right-side-panel-action>.calendar-legend {
        position: absolute;
        left: 8px;
        right: 8px;
        bottom: calc(100% + 8px);
        z-index: 20;
        display: none;
        flex-wrap: wrap;
        align-items: center;
        gap: 12px;
        width: auto;
        max-width: 544px;
        height: auto;
        margin: 0 auto;
        padding: 14px;
        background: #fff;
        border: 1px solid var(--bk-line);
        border-radius: 16px;
        box-shadow: 0 16px 40px rgba(28, 25, 23, 0.16);
    }

    #booking-page-body-id .right-side-panel-action.legend-open>.calendar-legend {
        display: flex;
        animation: bk-legend-sheet-in 0.18s cubic-bezier(0.22, 1, 0.36, 1);
    }

    @keyframes bk-legend-sheet-in {
        from {
            opacity: 0;
            transform: translateY(8px);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }

    #booking-page-body-id .right-side-panel-action>.calendar-legend .legend-more {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    #booking-page-body-id .right-side-panel-action>.calendar-legend .legend-more-btn {
        width: 32px;
        height: 32px;
    }

    #booking-page-body-id .right-side-panel-action>.calendar-legend .legend-more-panel {
        top: calc(100% + 6px);
        right: 0;
        bottom: auto;
        left: auto;
        width: min(340px, calc(100vw - 48px));
        min-width: 0;
    }

    #booking-page-body-id .right-side-panel-action>.calendar-legend .legend-items {
        flex: 1 1 100%;
        width: 100%;
        height: auto;
        padding: 0;
        overflow: visible;
        touch-action: auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    #booking-page-body-id .right-side-panel-action>.calendar-legend .legend-set {
        display: flex;
        flex: 1 1 100%;
        flex-wrap: wrap;
        gap: 8px;
        min-width: 0;
        height: auto;
    }

    #booking-page-body-id .right-side-panel-action>.calendar-legend .legend-set-label {
        flex: 1 0 100%;
        padding-right: 40px;
        color: var(--bk-muted);
        font-size: 11px;
        font-weight: 600;
        line-height: 16px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    #booking-page-body-id .right-side-panel-action>.calendar-legend :is(.legend-item, .legend-clear) {
        flex: 0 0 auto;
        width: auto;
        min-width: 0;
        height: 32px;
        padding: 0 12px;
        font-size: 12px;
    }

    #booking-page-body-id .right-side-panel-action>.calendar-legend>.calendar-closed-hours {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 0;
        gap: 8px;
        margin: 0;
        padding: 12px 0 0;
        overflow: visible;
        color: var(--bk-muted);
        background: transparent;
        border: 0;
        border-top: 1px solid var(--bk-line);
        border-radius: 0;
        font-size: 12px;
    }

    #booking-page-body-id .right-side-panel-action>.calendar-legend>.calendar-closed-hours .text {
        display: block;
        flex: 1 1 auto;
        color: var(--bk-text);
        font-size: 12px;
    }

    #booking-page-body-id .right-side-panel-action>.calendar-legend>.calendar-closed-hours .outside:not(.dis-none) {
        display: inline-block;
    }

    #booking-page-body-id .right-side-panel-action>.calendar-legend>.calendar-closed-hours .btn-toggle-closed-hours {
        width: auto;
        min-width: 0;
        height: 32px;
        padding: 0 14px;
        color: var(--bk-text);
        background: #fff;
        border: 1px solid var(--bk-line-strong);
        border-radius: 999px;
        box-shadow: none;
        font-size: 12px;
        font-weight: 600;
    }

    /* Action bar: in-flow third row, so it never covers the calendar or list */
    #booking-page-body-id .right-side-panel-action {
        position: relative;
        inset: auto;
        grid-row: 3;
        grid-column: 1 / -1;
        z-index: 13;
        display: block;
        width: 100%;
        max-width: none;
        height: auto;
        margin: 0;
        padding: 8px 12px;
        background: #fff;
        border: 0;
        border-top: 1px solid var(--bk-line);
        border-radius: 0;
        box-shadow: none;
        transform: none;
        pointer-events: auto;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    #booking-page-body-id .right-side-panel-action::after,
    #booking-page-body-id .right-side-panel-action .group-btn-action::before {
        content: none;
    }

    /* Icon buttons around one labelled primary action */
    #booking-page-body-id .right-side-panel-action .group-btn-action {
        display: grid;
        grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px;
        gap: 6px;
        width: 100%;
        max-width: 560px;
        height: 44px;
        margin: 0 auto;
        padding: 0;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button {
        position: relative;
        width: 100%;
        height: 44px;
        gap: 0;
        padding: 0;
        border-radius: 12px;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button i {
        font-size: 18px;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button:not(.btn-mobile-new-booking)>span {
        display: none;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button.btn-mobile-new-booking {
        flex-direction: row;
        gap: 8px;
        padding: 0 12px;
        color: var(--bk-accent-strong);
        background: var(--bk-accent-soft);
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button.btn-mobile-new-booking:hover {
        background: color-mix(in srgb, var(--bk-accent) 18%, #fff);
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action>button.btn-mobile-new-booking span {
        overflow: hidden;
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        text-overflow: ellipsis;
    }

    #booking-page-body-id .right-side-panel-action .btn-mobile-filter.has-filter::after {
        content: "";
        position: absolute;
        top: 9px;
        right: 9px;
        width: 8px;
        height: 8px;
        background: var(--bk-accent);
        border-radius: 50%;
        box-shadow: 0 0 0 2px #fff;
    }
}

@media (max-width: 360px) {
    #booking-page-body-id[view-mode="calendar"] .booking-header-panel,
    #booking-page-body-id[view-mode="calendar"].booking-stats-hidden .booking-header-panel {
        grid-template-columns: 36px auto minmax(0, 1fr) 72px 36px;
        gap: 6px;
        padding-inline: 10px;
    }

    #booking-page-body-id[view-mode="calendar"] .view-mode-switch {
        width: 72px;
    }

    #booking-page-body-id[view-mode="calendar"] #navbar-append-follow-page #select-date-navbar-calendar#select-date-navbar-calendar .text-white {
        font-size: 14px;
    }

    #booking-page-body-id[view-mode="calendar"] #navbar-append-follow-page > li.ticket-search-slot {
        width: 36px;
    }

    #booking-page-body-id .right-side-panel-action {
        padding-inline: 8px;
    }

    #booking-page-body-id .right-side-panel-action .group-btn-action {
        grid-template-columns: 40px 40px minmax(0, 1fr) 40px 40px;
        gap: 4px;
    }
}

@media (max-width: 1024px) and (prefers-reduced-motion: reduce) {
    #booking-page-body-id .right-side-panel-action.legend-open>.calendar-legend {
        animation: none;
    }
}

