/*** global styles ***/
body {
    counter-reset: esum;
}

.bcrm-dashboard *,
.bcrm-reservation-form *,
.bcrm-survey-form * {
    box-sizing: border-box;
    font-family: alibaba !important;
    font-weight: 200;
    font-size: 15px;
    text-decoration: none;
    color: #000000;
}

.bcrm-dashboard-customer * {
    font-weight: 200;
}

.fc-icon {
    font-family: fcicons !important;
}

.bcrm-dashboard input:-webkit-autofill,
.bcrm-dashboard input:-webkit-autofill:hover, 
.bcrm-dashboard input:-webkit-autofill:focus, 
.bcrm-dashboard input:-webkit-autofill:active,
.bcrm-reservation-form input:-webkit-autofill,
.bcrm-reservation-form input:-webkit-autofill:hover, 
.bcrm-reservation-form input:-webkit-autofill:focus, 
.bcrm-reservation-form input:-webkit-autofill:active {
    background-color: #f9f9f9 !important;
    transition: background-color 0s 600000s, color 0s 600000s !important;
}


/*** dashboard styles ***/
.bcrm-dashboard {
    position: relative;
    max-width: 100%;
    display: flex;
    min-height: calc(100vh - 100px);
    padding: 0;
    margin: 0;
    background: #ffffff;
}

.bcrm-dashboard-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 30px 30px 10px 30px;
    border-bottom: 1px solid #9bbc9e;
}

.bcrm-dashboard-management .bcrm-dashboard-header {
    margin-top: 40px;
}

.bcrm-dashboard-customer .bcrm-dashboard-header {
    border-bottom: none;
}

.bcrm-dashboard-avatar img {
    border-radius: 50%;
    width: 80px;
    height: 80px;
}

.bcrm-dashboard-title {
    display: flex;
    flex-direction: column;
}

.bcrm-dashboard-title b {
    font-size: 1.2em;
    font-weight: 300;
    color: #000000;
}

.bcrm-dashboard-title span {
    font-size: 1em;
    font-weight: lighter;
    color: #000000;
}

.bcrm-dashboard-title-icon {
    display: none !important;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bcrm-dashboard-title-icon::after {
    content: '';
    position: absolute;
    left: -200px;
    top: 50%;
    width: 200vw;
    height: 1px;
    background-image: linear-gradient(to right, #bdbdbd 50%, transparent 50%);
    background-repeat: repeat;
    background-position: center;
    pointer-events: none;
    z-index: 1;
}

.bcrm-dashboard-title-icon span {
    background-color: #fff;
    padding-left: 10px;
    z-index: 2;
}

.bcrm-dashboard-actions {
    margin-right: auto;
    display: flex;
    gap: 10px;
}

.bcrm-side-area {
    width: 350px;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background: #c8f1c9;
    z-index: 10;
}

.bcrm-content-area {
    width: calc(100% - 350px);
    margin-right: 350px;
}

.bcrm-content-area .bcrm-dashboard-header {
    display: none;
}

.bcrm-dashboard-customer .bcrm-side-area {
    background: #fff9f3
}

.bcrm-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    border: 1px solid #9bbc9e;
    background: #c8f1c9;
    color: #464646;
    padding: 0;
    padding-top: 15px;
}

.bcrm-dashboard-customer .bcrm-user-avatar {
    border: 1px solid #e7e5e2;
    background: #fff9f3;
}

.bcrm-icons {
    width: 24px;
    height: 24px;
}

.bcrm-icons.shampo {
    width: 32px;
    height: 32px;
}

.bcrm-dashboard a {
    outline: 0;
    cursor: pointer;
    color: #000000;
}

.bcrm-nav {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.bcrm-other-menu ul, .bcrm-lines-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.bcrm-other-menu li , .bcrm-lines-menu li {
    padding: 0;
    margin: 0;
    font-size: 1.2em;
    font-weight: normal;
}

.bcrm-lines-menu li a,
.bcrm-lines-menu li a:focus {
    padding: 15px 30px;
    background: #c8f1c9;
    border-bottom: 1px solid #9bbc9e;
    outline: 0;
    display: block;
}

.bcrm-dashboard-customer .bcrm-nav li a {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bcrm-dashboard-customer .bcrm-lines-menu li a,
.bcrm-dashboard-customer .bcrm-lines-menu li a:focus {
    background: #fff9f3;
    border-bottom: 1px solid #e7e5e2;
}

.bcrm-other-menu li a,
.bcrm-other-menu li a:focus {
    padding: 15px 30px;
    background: #c8f1c9;
    border-top: 1px solid #9bbc9e;
    outline: 0;
    display: block;
}

.bcrm-dashboard-customer .bcrm-other-menu li a,
.bcrm-dashboard-customer .bcrm-other-menu li a:focus {
    background: #fff9f3;
    border-top: 1px solid #e7e5e2;
}

.bcrm-other-menu li.active a, .bcrm-lines-menu li.active a {
    background: #b6dab7;
    color: #000000;
}

.bcrm-dashboard-customer .bcrm-lines-menu li.active a,
.bcrm-dashboard-customer .bcrm-other-menu li.active a {
    background: #fff9f3;
}

.bcrm-other-menu a, .bcrm-lines-menu a {
    color: inherit;
    text-decoration: none;
}


/*** customers list styles ***/
.bcrm-dashboard .bcrm-search-options {
    display: flex;
    flex-direction: column;
    flex: 1 1 100%;
    gap: 5px;
    width: 100%;
}

.bcrm-dashboard .bcrm-search-options label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}

.bcrm-dashboard .bcrm-search-options label span {
    min-width: 200px;
}

.bcrm-dashboard .bcrm-search-options-actions {
    display: flex;
    justify-content: end;
    gap: 10px;
    min-width: 300px;
}

.bcrm-dashboard .bcrm-search-options input,
.bcrm-dashboard .bcrm-search-options select {
    max-width: 200px;
}

.bcrm-dashboard .bcrm-search-options .bcrm-form-row {
    justify-content: flex-start !important;
}

.bcrm-dashboard .bcrm-content-area .bcrm-customers-actions,
.bcrm-dashboard .bcrm-content-area .bcrm-advanced-search-panel {
    padding: 25px 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
    gap: 20px;
    border-bottom: 1px solid #cacaca;
}

.bcrm-dashboard .bcrm-content-area .bcrm-search-results-info {
    padding: 25px 40px;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 50px;
}

.bcrm-dashboard .bcrm-content-area .bcrm-actions-item {
    position: relative;
    display: flex;
    justify-content: center;
    flex: 1 1 0px;
}

.bcrm-dashboard input[type="text"],
.bcrm-dashboard input[type="text"]:focus,
.bcrm-dashboard input[type="text"]:active {
    border: 1px solid #ddd;
    outline: 0;
    border-radius: 5px;
    background: #f3f3f3;
    color: #000000;
}

#bcrm-customer-search {
    width: 100%;
    position: relative;
    padding: 10px 45px 10px 10px;
    display: inline-block;
    font-size: 1em;
}

.bcrm-search-box::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M21 21l-3.5-3.5M17 10a7 7 0 1 1-14 0 7 7 0 0 1 14 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    pointer-events: none;
}

.bcrm-new-customer,
.bcrm-toggle-advanced-search {
    display: inline-block;
    padding: 10px 40px 10px 10px;
    position: relative;
}

.bcrm-new-customer::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-7 7V5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.bcrm-toggle-advanced-search::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg style='stroke:%23000;stroke-width:2;fill:none;fill-rule:evenodd;stroke-linecap:round;stroke-linejoin:round' transform='translate(-2 -2)'%3E%3Cpath d='m17.994635 18.244635 2.461986 2.461986'/%3E%3Ccircle cx='15.532648' cy='15.782648' r='3.282648'/%3E%3Cpath d='m17 3v2'/%3E%3Cpath d='m7 3v2'/%3E%3Cpath d='m9.03064542 21c-.60514416 0-2.51286041 0-3.72314874 0-.80236687 0-1.09332448-.0781689-1.38665781-.2249539-.29333334-.1467849-.52354305-.3621858-.68041944-.6366497-.15687638-.274464-.24041943-.546705-.24041943-1.2974576v-11.68187758c0-.75075262.08354305-1.02299366.24041943-1.2974576.15687639-.27446394.3870861-.48986484.68041944-.63664976.29333333-.14678492.58429094-.22495386 1.38665781-.22495386h13.38500662c.8023669 0 1.0933245.07816894 1.3866578.22495386.2933334.14678492.5235431.36218582.6804195.63664976.1568763.27446394.2404194 2.38511527.2404194 3.1358679'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.bcrm-search-results-info {
    margin: 10px 0;
}

.bcrm-table-wrapper {
    width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    
    &::-webkit-scrollbar {
        height: 10px;
    }

    &::-webkit-scrollbar-track {
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb {
        background: #f3f3f3;
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: #f3f3f3;
    }
}

.bcrm-customers-table,
.bcrm-referrers-table {
    width: 100%;
    text-align: center;
    border-collapse: collapse;
}

.bcrm-customers-table tr th:first-child,
.bcrm-customers-table tr td:first-child,
.bcrm-referrers-table tr th:first-child,
.bcrm-referrers-table tr td:first-child {
    text-align: right;
}

.bcrm-customers-table tr th,
.bcrm-referrers-table tr th {
    padding: 25px 40px;
    background: #f3f3f3;
    border-bottom: 10px solid transparent;
    background-clip: padding-box;
}

.bcrm-customers-table tr td,
.bcrm-referrers-table tr td {
    padding: 10px 40px;
    background: #f9f9f9;
    border-bottom: 10px solid transparent;
    background-clip: padding-box;
    vertical-align: top;
}

/* .bcrm-pagination-buttons button {
    margin: 0 5px;
    padding: 8px 12px;
    border: 1px solid #c8f1c9;
    background: white;
    cursor: pointer;
}
.bcrm-pagination-buttons button.active {
    background: #c8f1c9;
    color: white;
    border-color: #c8f1c9;
}
.bcrm-pagination-buttons button:hover:not(.active) {
    background: #c8f1c9;
} */

.bcrm-pagination-wrapper {
    margin-top: 20px;
    text-align: center;
}

.bcrm-pagination-buttons {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.bcrm-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s;
}

.bcrm-page-btn:hover:not(.active) {
    background: #f5f5f5;
}

.bcrm-page-btn.active {
    background: #c8f1c9;
    border-color: #c8f1c9;
    font-weight: bold;
}

.bcrm-page-btn.arrow {
    font-size: 18px;
    padding: 0 12px;
}

.bcrm-pagination-buttons span {
    color: #666;
    font-size: 14px;
    padding: 0 8px;
}

/*** customer-form styles ***/
.bcrm-tabs-wrapper {
    margin: 30px 40px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.bcrm-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f5f7f5;
    border-bottom: 1px solid #d0d7d0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    scroll-behavior: smooth;
}

.bcrm-tabs::-webkit-scrollbar {
    display: none;
}

.bcrm-tabs li {
    flex: 0 0 auto;
    margin: 0;
}

.bcrm-tabs a {
    display: block;
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    min-width: 120px;
    text-align: center;
}

.bcrm-tabs a:hover {
    background: #e8ece8;
    color: #2d862d;
}

.bcrm-tabs li.ui-tabs-active a {
    color: #2d862d;
    font-weight: 600;
    background: #ffffff;
}

.bcrm-tabs li.ui-tabs-active a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #2d862d;
}

.bcrm-tabs-wrapper .ui-tabs-panel {
    padding: 30px;
    min-height: 400px;
}

.bcrm-form-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
    padding: 25px 40px;
    background-image: linear-gradient(to right, #bdbdbd 50%, transparent 50%);
    background-size: 10px 1px;
    background-repeat: repeat-x;
    background-position: bottom;
}

.bcrm-form-section.no-border {
    background-image: none;
}

.bcrm-form-row {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: space-between;
}

.bcrm-visit-item,
.bcrm-reservation-item,
.bcrm-follow-up-item {
    padding: 15px;
}

.bcrm-visit-item .bcrm-form-row label,
.bcrm-follow-up-item .bcrm-form-row label {
    min-width: auto !important;
}

.bcrm-visit-item:nth-child(even) {
    background-color: #f3f7f3;
}

.bcrm-form-row input[type="text"],
.bcrm-form-row input[type="number"],
.bcrm-form-row textarea,
.bcrm-form-row select,
.bcrm-dashboard .bcrm-search-options input[type="text"],
.bcrm-dashboard .bcrm-search-options input[type="number"],
.bcrm-dashboard .bcrm-search-options textarea,
.bcrm-dashboard .bcrm-search-options select {
    width: 100%;
    height: 50px;
    align-self: flex-start;
    padding: 10px;
    border-radius: 5px;
    outline: 0;
    background: #f9f9f9;
    color: #000000;
    display: inline-block;
    border: 1px solid #ddd;
    font-size: 14px;
}

.bcrm-form-checkbox input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid #ddd;
    background-color: #f0f0f0;
    background-position: center;
    background-repeat: no-repeat;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    margin: 0 10px;
    position: relative;
    cursor: pointer;
    flex: 0 0 20px;
}

.bcrm-form-checkbox input:checked {
    background-color: #9bbc9f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.bcrm-form-checkbox input:focus {
    outline: 2px solid rgba(155, 188, 159, 0.3);
    outline-offset: 2px;
}

.bcrm-form-checkbox input:disabled {
    background-color: #e0e0e0;
    cursor: not-allowed;
    opacity: 0.7;
}

.bcrm-group-field {
    display: flex;
    flex-direction: column;
    width: 103%;
    gap: 10px;
}

.bcrm-section-title {
    margin-bottom: 20px;
    font-weight: bold;
}

.bcrm-form-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.bcrm-section-content input[type="text"] {
    width: 100%;
}

.bcrm-form-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.bcrm-search-options input::-webkit-outer-spin-button,
.bcrm-search-options input::-webkit-inner-spin-button,
.bcrm-form-section input::-webkit-outer-spin-button,
.bcrm-form-section input::-webkit-inner-spin-button {
    display: none;
}

.bcrm-form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.bcrm-form-row.grid {
    display: grid !important;
    gap: 15px;
    align-items: start;
    margin-bottom: 15px;
}

.grid-row-1 {
    grid-template-columns: 1fr 1fr 3fr 1fr 1fr 1fr !important;
}

.grid-row-2 {
    grid-template-columns: 1fr 1fr 3fr 1fr 2fr !important;
}

.grid-row-3 {
    grid-template-columns: 1fr 1fr 1fr 1fr !important;
}

.bcrm-form-field textarea.bcrm-reserve-cost {
    align-content: center;
    line-height: 9px;
    resize: none;
}

.bcrm-form-field label {
    font-size: 14px;
    min-height: 20px;
}

.bcrm-form-field.actions {
    flex-direction: row;
    justify-content: start;
    align-items: start;
    max-width: 100px;
    position: relative;
    top: 40px;
}

.bcrm-form-field.actions a.bcrm-remove-visit,
.bcrm-form-field.actions a.bcrm-remove-follow-up {
    display: contents;
}

.bcrm-reserve-amounts-group {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.bcrm-reserve-type,
.bcrm-reserve-costs-group {
    width: 100%;
}

.bcrm-generate-survey .loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.bcrm-form-field.labels {
    max-width: 200px;
}

.bcrm-form-field.datepick input,
.bcrm-form-field.timepick input,
.bcrm-form-field.totalprice input {
    text-align: center;
}

.bcrm-form-actions {
    display: flex;
    justify-content: flex-end;
    padding: 25px 40px;
}

.bcrm-form-actions .button-primary,
.bcrm-apply-search,
.bcrm-clear-search {
    background: #c8f1c9;
    color: #000000;
    border: none;
    cursor: pointer;
    display: inline-block;
    min-width: 100px;
    min-height: 40px;
    font-size: 1.2em;
    border-radius: 5px;
    outline: 0;
}

.bcrm-form-actions .button-primary:hover,
.bcrm-form-actions .button-primary:focus,
.bcrm-apply-search:hover,
.bcrm-apply-search:focus,
.bcrm-clear-search:hover,
.bcrm-clear-search:focus {
    background-color: #5fa163 !important;
    color: #fff !important;
}

.bcrm-visits-container,
.bcrm-follow-ups-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#bcrm-add-visit,
#bcrm-add-follow-up {
    align-self: flex-end;
    margin-top: 15px;
}

#bcrm-sms-container .bcrm-form-field {
    justify-content: flex-end;
}

#bcrm-sms-container .bcrm-form-field.reminder-int span {
    height: 50px;
    align-self: flex-start;
    padding: 0 10px;
    border-radius: 5px;
    outline: 0;
    background: #f9f9f9;
    color: #000000;
    display: inline-block;
    border: 1px solid #ddd;
    font-size: 14px;
}

#bcrm-sms-container .bcrm-form-field.reminder-int span input {
    width: 80px;
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    text-align: center;
}

#bcrm-wallet-container {
    margin-top: 30px;
}

#bcrm-wallet-container .bcrm-form-field {
    justify-content: flex-end;
}

#bcrm-wallet-container .bcrm-form-field.wallet-adjust span {
    height: 35px;
    max-width: 300px;
    border-radius: 5px;
    outline: 0;
    background: #f9f9f9;
    color: #000000;
    border: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
}

#bcrm-wallet-container .bcrm-form-field.wallet-adjust span input {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background-color: transparent;
    text-align: center;
    height: 100%;
}

#bcrm-wallet-container .bcrm-form-field.wallet-adjust span button.bcrm-wallet-button {
    width: 30%;
    margin: 0;
    padding: 0;
    outline: 0;
    border: none;
    border-right: 1px solid #ddd;
    background-color: #c8f1c9;
    color: #000000;
    cursor: pointer;
    height: 100%;
}

#bcrm-wallet-container .bcrm-form-field.wallet-adjust span button.bcrm-wallet-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

#bcrm-credits-container .bcrm-form-row.grid,
#bcrm-manual-expiring-container .bcrm-form-row.grid {
    grid-template-columns: 1fr 1fr 2fr 1fr 1fr !important;
}

#bcrm-credits-container .button.button-primary,
#bcrm-manual-expiring-container .button.button-primary {
    width: fit-content;
    min-width: 120px;
    height: 100%;
    min-height: 50px;
    margin: 0;
    padding: 0;
    outline: 0;
    border: none;
    border-radius: 5px;
    border-right: 1px solid #ddd;
    background-color: #c8f1c9;
    color: #000000;
    cursor: pointer;
}

#bcrm-credits-container .button.button-primary:disabled,
#bcrm-manual-expiring-container .button.button-primary:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}


/*** select2 styles ***/
.select2-dropdown--above {
    border: 1px solid #aaa !important;
}

.select2-dropdown--below {
    margin-top: -10px !important;
    border: 1px solid #aaa !important;
}

.select2-container--default .select2-selection--multiple {
    height: 50px;
    overflow: scroll !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 2px 10px !important;
    display: block;
    height: 50px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    overflow: visible !important;
    padding: 5px 10px !important;
}

.select2-container--default[dir="rtl"] .select2-selection--multiple .select2-selection__choice__remove {
    margin-left: -8px !important;
    margin-top: -15px !important;
    border: none !important;
    color: #000000;
    font-size: 18px;
    font-weight: lighter;
}

.select2-container .select2-dropdown, .select2-container .select2-selection {
    background: #f9f9f9 !important;
    color: #000000 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #dadada !important;
    color: #000000 !important;
}

.select2-container .select2-selection {
    width: 100% !important;
    border-radius: 5px !important;
    padding: 0 !important;
    outline: 0 !important;
    display: inline-block !important;
    font-size: 1em !important;
    border: 1px solid #ddd !important;
}

.select2-container,
.bcrm-form-row select.select2 {
    min-width: auto !important;
}

.bcrm-form-row .select2-search.select2-search--inline,
.bcrm-form-row .select2-search__field {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
}


/*** reservation form styles ***/
.bcrm-reservation-form {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bcrm-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.bcrm-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.bcrm-step-number {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.bcrm-step.active .bcrm-step-number {
    background: #5fa163;
    color: #fff;
}

.bcrm-step-title {
    font-size: 0.9em;
    color: #666;
}

.bcrm-step.active .bcrm-step-title {
    color: #5fa163;
    font-weight: bold;
}

.bcrm-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 0;
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    z-index: 0;
}

.bcrm-step-content {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bcrm-step-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.5em;
}

/* service selection (step 1 & 2) */
.bcrm-cards-grid,
.bcrm-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.bcrm-card-item {
    display: block;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bcrm-card-item:hover {
    background: #f5f5f5;
}

.bcrm-card-item h4 {
    margin: 0;
    font-size: 1.1em;
}

/* date and time selector (step 3) */
.bcrm-date-time-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bcrm-calendar-container,
.bcrm-time-slots-container {
    flex: 1;
    min-width: 300px;
}

.bcrm-calendar-container .fc .fc-col-header-cell-cushion {
    font-size: 12px;
}

.bcrm-calendar-container .fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 10px;
}

.bcrm-calendar-container .fc .fc-toolbar-title {
    font-size: 16px;
}

.bcrm-calendar-container .fc .fc-button {
    height: 40px;
    width: 40px;
    padding: 0;
}

.bcrm-calendar-container .fc .fc-daygrid-body-unbalanced .fc-daygrid-day-events {
    min-height: 0;
}

.bcrm-calendar-container .fc-col-header-cell {
    font-size: 12px;
    text-decoration: none;
}

.bcrm-calendar-container .fc-day {
    cursor: pointer;
}

.bcrm-calendar-container .fc-day.fc-day-disabled {
    background-color: #f0f0f0 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}
.bcrm-calendar-container .fc-day.fc-day-disabled .fc-daygrid-day-number {
    color: #999 !important;
}

.bcrm-calendar-container .fc-day.selected-day,
.bcrm-calendar-container .fc-day.selected-day a {
    background-color: #5fa163;
    color: #fff;
}

.bcrm-calendar-container .fc-button-primary,
.bcrm-calendar-container .fc-button-primary:hover,
.bcrm-calendar-container .fc-button-primary:focus {
    background-color: #5fa163 !important;
    border: none !important;
}

.bcrm-time-slots-container h4 {
    margin-bottom: 15px;
    font-weight: bold;
}

.bcrm-time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.bcrm-time-slot {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.bcrm-time-slot:hover,
.bcrm-time-slot.active {
    background: #5fa163 !important;
    color: #fff !important;
    border-color: #5fa163 !important;
}

.bcrm-time-slot-reserved,
.bcrm-time-slot-reserved:hover {
    background: #f5f5f5;
    color: #999;
    border-color: #ddd;
    cursor: not-allowed;
}

.bcrm-specialists-grid h4 {
    margin-bottom: 15px;
    font-weight: bold;
}

#bcrm_specialist_list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

#bcrm_specialist_list:has(p) {
    display: inline-block;
}

.bcrm-specialist-item {
    display: block;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bcrm-specialist-item.active,
.bcrm-specialist-item.active:hover {
    background: #5fa163;
    color: #fff;
    border-color: #5fa163;
}

.bcrm-specialist-item:hover {
    background: #f5f5f5;
    color: #333;
    border-color: #ddd;
}

.bcrm-specialist-item h4 {
    margin: 0;
    font-size: 1.1em;
}

/* personal info form (step 4) */
.bcrm-personal-info-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bcrm-notice {
    background: #e7f3ff;
    padding: 10px;
    border-radius: 4px;
    color: #005177;
}

.bcrm-form-row label {
    display: block;
    font-weight: bold;
    color: #333;
    min-width: 200px;
}

.bcrm-personal-info-form .bcrm-form-row label {
    font-weight: lighter !important;
}

.bcrm-form-row input[disabled] {
    background: #f0f0f0;
    cursor: not-allowed;
}

/* wallet and payment (step 5) */
.bcrm-reservation-details {
    display: flex;
    justify-content: space-between;
}

.bcrm-reservation-details p > span {
    display: inline-block;
    width: 100%;
}

.bcrm-reservation-details .off-cost {
    text-decoration: line-through;
}

.bcrm-description-section textarea {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    outline: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.bcrm-wallet-payment {
    padding: 15px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.bcrm-wallet-payment.wc-bcrm-wallet-payment {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    margin-bottom: 20px;
}

.bcrm-wallet-payment p {
    margin: 5px 0;
}

.bcrm-wallet-payment label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.bcrm-wallet-payment .bcrm-wallet-details p {
    font-size: 16px;
}

.bcrm-wallet-toggle {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    vertical-align: middle;
}

.bcrm-wallet-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.bcrm-wallet-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.bcrm-wallet-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.bcrm-wallet-toggle input:checked + .bcrm-wallet-slider {
    background-color: #5fa163;
}

.bcrm-wallet-toggle input:focus + .bcrm-wallet-slider {
    box-shadow: 0 0 1px #5fa163;
}

.bcrm-wallet-toggle input:checked + .bcrm-wallet-slider:before {
    transform: translateX(26px);
}

.bcrm-wallet-toggle-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
    color: #333;
    gap: 10px;
    -webkit-tap-highlight-color: transparent;
}

.bcrm-gateways-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.bcrm-gateway-item {
    flex: 1 1 100%;
    padding: 10px;
    transition: all 0.3s ease;
}

.bcrm-gateway-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.bcrm_payment_gateway {
    margin: 0 5px 0 0;
}

.bcrm-gateway-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    color: #333;
}

.bcrm-gateway-icon img {
    max-width: 40px;
    height: auto;
    border-radius: 4px;
}

/* step actions */
.bcrm-step-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.bcrm-step-actions .button {
    padding: 5px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
}

.bcrm-step-actions .button-primary {
    background: #5fa163;
    color: #fff;
    border: none;
    cursor: pointer;
    outline: 0;
}

.bcrm-step-actions .button-primary:hover {
    background: #5fa163;
}

.bcrm-step-actions .button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.bcrm-step-actions .button:not(.button-primary) {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.bcrm-step-actions .button:not(.button-primary):hover {
    background: #e0e0e0;
}

/* coupon */
#bcrm_apply_coupon.button {
    padding: 5px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1em;
    transition: all 0.3s ease;
    background: #5fa163;
    color: #fff;
    border: 1px solid transparent;
    cursor: pointer;
    outline: 0;
}

#bcrm_apply_coupon.button:hover {
    background: #5fa163;
}

#bcrm_apply_coupon.button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

input#bcrm_coupon_code {
    padding: 6px 20px;
    border-radius: 4px;
    outline: none;
    border: 1px solid #ddd;
}

.bcrm-coupon-message {
    margin: 0;
    margin-top: 10px;
}


/*** customer profile ***/
body:has(.bcrm-profile-details) {
    overflow: hidden;
}

.bcrm-customer-dashboard {
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bcrm-customer-dashboard-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bcrm-header-area,
.bcrm-dashboard-header-area {
    display: flex;
    gap: 40px;
    padding: 40px;
}

.bcrm-dashboard-header-area {
    display: none;
}

.bcrm-header-area .bcrm-header-item,
.bcrm-dashboard-header-area .bcrm-header-item {
    width: 300px;
    height: 60px;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    font-size: 1.2em;
    padding: 10px;
    border-radius: 12px;
}

.bcrm-header-area .bcrm-header-wallet,
.bcrm-dashboard-header-area .bcrm-header-wallet {
    background: #fff9f3;
    border: 1px solid #f4f0ed;
}

.bcrm-header-area .bcrm-header-register,
.bcrm-dashboard-header-area .bcrm-header-register {
    background: #f9fef7;
    border: 1px solid #e7e8e6;
}

.bcrm-header-area .bcrm-header-item span,
.bcrm-dashboard-header-area .bcrm-header-item span {
    display: flex;
    gap: 10px;
    align-items: center;
}

.bcrm-header-area .bcrm-header-item span:first-child,
.bcrm-dashboard-header-area .bcrm-header-item span:first-child {
    font-weight: 300;
}

.bcrm-profile-details {
    margin-top: 25px;
    padding-left: 25px;
    height: calc(100vh - 300px);
    overflow-y: scroll;
    scroll-behavior: smooth;
    
    &::-webkit-scrollbar {
        width: 10px;
    }

    &::-webkit-scrollbar-track {
        background: #e7e5e2;
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb {
        background: #fff9f3;
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: #fff9f3;
    }
}

.bcrm-profile-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 10px;
    padding: 25px 5px;
    background-image: linear-gradient(to right, #bdbdbd 50%, transparent 50%);
    background-size: 10px 1px;
    background-repeat: repeat-x;
    background-position: bottom;
}

.bcrm-profile-row:first-child {
    padding-top: 0;
}

.bcrm-profile-row:last-child {
    background-image: none;
}

.bcrm-profile-label {
    white-space: nowrap;
    text-wrap-mode: nowrap;
}

.value-icon-container {
    display: flex;
    gap: 5px;
}

.bcrm-edit-icon {
    cursor: pointer;
}

.bcrm-edit-field .select2-container,
.bcrm-edit-field .select2-container .select2-selection--single {
    width: 200px !important;
    height: 30px !important;
}

.bcrm-edit-field .select2-container .select2-selection--single .select2-selection__rendered {
    padding: .3em !important;
    padding-right: 8px !important;
    padding-left: 20px !important;
}

.bcrm-edit-field select,
.bcrm-edit-field input[type="text"] {
    height: 30px;
    padding: 5px 12px;
    border-radius: 8px;
    outline: 0;
    border: 1px solid #ddd;
    background: #f9f9f9;
    color: #000000;
    font-size: 14px;
    margin-bottom: 5px;
}

.bcrm-edit-field input[name="address"] {
    width: 400px;
}

.bcrm-edit-field button {
    height: 30px;
    padding: 5px 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: 0;
}

.bcrm-dashboard-customer .bcrm-form-row {
    justify-content: flex-start;
}

.bcrm-dashboard-customer .bcrm-field-value {
    width: 100%;
    height: 50px;
    align-self: flex-start;
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: 0;
    background: #f9f9f9;
    color: #000000;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.bcrm-dashboard-customer .bcrm-field-value.bcrm-visit-services {
    justify-content: flex-start;
    display: flex;
    gap: 10px;
}

.bcrm-field-value.bcrm-visit-services span {
    padding: 5px 10px;
    background: #dddddd;
    border-radius: 5px;
}

.bcrm-form-field.cancel {
    align-items: start;
    justify-content: end;
}

.bcrm-form-field.cancel .bcrm-cancel-reservation {
    display: block;
    padding: 12px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.bcrm-form-field.cancel .bcrm-cancel-reservation:hover {
    background: #f5f5f5;
}

.bcrm-dashboard-panel {
    display: none;
}

.bcrm-dashboard-panel .bcrm-dashboard-panel-item a {
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    background: #fff9f3;
    border: 1px solid #f4f0ed;
    padding: 15px;
    border-radius: 12px;
}

.bcrm-dashboard-panel .bcrm-dashboard-panel-item a span {
    font-weight: 300;
}

.bcrm-reminder-item,
.bcrm-course-item,
.bcrm-order-item {
    width: 100%;
    max-width: 500px;
    display: flex;
    justify-content: space-between;
    align-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.2em;
    padding: 10px;
    background: #fff9f3;
    border: 1px solid #f4f0ed;
    border-radius: 12px;
}

.bcrm-reminder-item .item-title {
    background: #ffffff;
    padding: 5px 15px;
    border: 1px solid #f4f0ed;
    border-radius: 12px;
}

.bcrm-course-item,
.bcrm-order-item {
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
}

.bcrm-course-item .item-desc,
.bcrm-order-item .item-desc {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.bcrm-course-item .item-image,
.bcrm-order-item .item-image {
    max-width: 100px;
    max-height: 100px;
}

.bcrm-course-item .item-image img,
.bcrm-order-item .item-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.bcrm-course-item .item-view,
.bcrm-order-item .item-view {
    background: #ffffff;
    padding: 5px 15px;
    border: 1px solid #f4f0ed;
    border-radius: 8px;
}

.bcrm-scroll-table {
    margin-top: 25px;
    padding-left: 25px;
    height: calc(100vh - 300px);
    overflow-y: scroll;
    scroll-behavior: smooth;
    
    &::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    &::-webkit-scrollbar-track {
        background: #e7e5e2;
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb {
        background: #fff9f3;
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: #fff9f3;
    }
}

.bcrm-history-table thead th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 10;
}

.bcrm-history-table tr th,
.bcrm-history-table tr td {
    text-align: right;
    padding: 5px 10px;
}

.bcrm-dashboard-management .bcrm-scroll-table {
    &::-webkit-scrollbar-track {
        background: transparent;
    }

    &::-webkit-scrollbar-thumb {
        background: #f3f3f3;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: #f3f3f3;
    }
}

/*** burger menu ***/
.bcrm-burger-menu {
    display: inline-block;
    margin-right: auto;
}

.bcrm-toggle-sidebar {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 20;
}

.bcrm-close-sidebar {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 20;
}

.bcrm-toggle-sidebar svg {
    width: 24px;
    height: 24px;
}

.bcrm-side-area {
    transition: transform 0.3s ease-in-out;
}

.bcrm-side-area.hidden {
    transform: translateX(100%);
}


/*** rating form styles ***/
.bcrm-survey-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#bcrm-survey-ratings {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bcrm-star-rating {
    display: inline-flex;
    justify-content: center;
    direction: ltr;
    gap: 5px;
}

.bcrm-star {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
}

.bcrm-star-icon {
    font-size: 28px;
    color: #ccc;
}

.bcrm-star-number {
    position: absolute;
    font-size: 12px;
    color: #333;
    font-weight: bold;
    z-index: 1;
}

.bcrm-star:hover .bcrm-star-icon,
.bcrm-star.hover .bcrm-star-icon,
.bcrm-star.selected .bcrm-star-icon {
    color: #f5c518;
}

.bcrm-star:hover .bcrm-star-number,
.bcrm-star.hover .bcrm-star-number,
.bcrm-star.selected .bcrm-star-number {
    color: #fff;
}

.bcrm-survey-form .bcrm-form-field {
    counter-increment: esum;
}

.bcrm-survey-form .bcrm-form-field label:before {
  content: counter(esum)". ";
}

.bcrm-survey-form .bcrm-form-field label {
    display: block;
    margin-bottom: 5px;
}

.bcrm-survey-form .bcrm-form-field textarea {
    margin-top: 10px;
    padding: 10px;
    outline: 0;
}


/*** management dashboard styles ***/
.bcrm-dashboard-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 25px 40px;
}

.bcrm-notification-items {
    list-style: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
}

.bcrm-notification-item {
    padding: 15px;
    border-bottom: 1px solid #e7e5e2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bcrm-notification-item.unread {
    background: #f7fcf7;
    font-weight: 300;
}

.bcrm-notification-item.read {
    background: #fff;
}

.bcrm-notification-item span {
    flex: 1;
}

.bcrm-notification-item .notification-desc {
    flex: 2;
}

.bcrm-notification-item .notification-actions {
    text-align: end;
}

.bcrm-mark-read {
    background: #c8f1c9;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

#bcrm-notification-loading {
    text-align: center;
    padding: 15px;
    color: #464646;
}

.bcrm-notification-container .button-primary {
    background: #c8f1c9;
    color: #000000;
    border: none;
    cursor: pointer;
    display: inline-block;
    min-width: 100px;
    min-height: 30px;
    font-size: 14px;
    border-radius: 5px;
    outline: 0;
}

.bcrm-notification-container .button-primary:hover
.bcrm-notification-container .button-primary:focus,
.bcrm-notification-container .button-primary.active {
    background: #b6dab7 !important;
    color: #000000 !important;
}

.bcrm-filter-notifications {
    position: relative;
}

.bcrm-filter-notifications .notification-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #d63638;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    font-weight: bold;
    padding: 2px 6px;
    z-index: 99;
}

#bcrm_reservations_calendar {
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    
    &::-webkit-scrollbar {
        height: 10px;
    }

    &::-webkit-scrollbar-track {
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb {
        background: #f3f3f3;
        border-radius: 10px;
    }

    &::-webkit-scrollbar-thumb:hover {
        background: #f3f3f3;
    }
}

.bcrm-timeline-container {
    width: fit-content;
    min-width: 100%;
}

.bcrm-timeline-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.bcrm-timeline-row:last-child {
    border: none;
}

.bcrm-timeline-date {
    position: sticky;
    right: 0;
    z-index: 4;
    width: 200px;
    min-width: 200px;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-left: 2px solid #c8f1c9;
}

.bcrm-day-name {
    display: block;
}

.bcrm-jalali-date {
    display: block;
    font-size: 14px;
    color: #666;
}

.bcrm-timeline-reservations {
    display: flex;
    white-space: nowrap;
    text-wrap-mode: nowrap;
    gap: 10px;
    padding: 10px;
}

.bcrm-reservation-event {
    background: #f7f7f7;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bcrm-reservation-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    color: #333;
}

.bcrm-reservation-content span {
    padding: 5px;
}

.bcrm-reservation-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.bcrm-no-reservations {
    color: #666;
    font-style: italic;
    padding: 10px;
}

.bcrm-loading, .bcrm-error {
    text-align: center;
    padding: 20px;
    color: #000000;
}

.bcrm-timeline-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.bcrm-timeline-header .fc-button-primary,
.bcrm-timeline-header .fc-button-primary:hover,
.bcrm-timeline-header .fc-button-primary:focus {
    background-color: #c8f1c9 !important;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    outline: 0;
}

.bcrm-timeline-header-item {
    flex: 1;
    display: flex;
    gap: 10px;
}


/*** responsive design ***/
@media (max-width: 768px) {
    .bcrm-tabs a {
        padding: 14px 16px;
        font-size: 14px;
        min-width: 100px;
    }

    .bcrm-tabs-wrapper .ui-tabs-panel {
        padding: 20px;
    }

    .bcrm-timeline-header {
        flex-direction: column;
    }

    .bcrm-timeline-date {
        width: 100px;
        min-width: 100px;
    }

    .bcrm-steps {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .bcrm-step {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        width: 100%;
    }

    .bcrm-step-number {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    .bcrm-steps::before {
        display: none;
    }

    .bcrm-step-actions {
        flex-direction: column;
        gap: 15px;
    }

    .bcrm-step-actions .button {
        width: 100%;
        text-align: center;
    }

    .bcrm-dashboard-customer .bcrm-burger-menu {
        display: none;
    }

    .bcrm-toggle-sidebar {
        display: block;
    }

    .bcrm-close-sidebar {
        display: contents;
    }

    .bcrm-side-area {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        transform: translateX(100%);
        z-index: 100;
    }

    .bcrm-side-area.active {
        transform: translateX(0);
    }

    .bcrm-content-area {
        position: relative;
        width: 100%;
        margin-right: 0;
        overflow: hidden;
    }

    .bcrm-content-wrapper {
        margin: 10px;
    }

    .bcrm-dashboard-header {
        position: relative;
    }

    .bcrm-content-area .bcrm-dashboard-header {
        display: flex;
    }
    
    .bcrm-header-item {
        width: auto !important;
        gap: 5px !important;
    }

    .bcrm-header-area,
    .bcrm-dashboard-header-area {
        flex-direction: column;
        padding: 0 15px;
        gap: 10px !important;
    }

    .bcrm-content-wrapper .bcrm-header-area {
        display: none;
    }

    .bcrm-dashboard-header-area {
        display: flex;
    }

    .bcrm-dashboard-title-icon {
        display: flex !important;
    }

    .bcrm-dashboard-panel,
    .bcrm-notification-filter {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
        padding: 15px;
    }

    .bcrm-notification-container .button-primary {
        min-width: 100% !important;
    }
    
    .bcrm-customer-dashboard {
        padding: 15px;
    }

    .bcrm-customer-dashboard .bcrm-form-row,
    .bcrm-visit-item .bcrm-form-row,
    .bcrm-follow-up-item .bcrm-form-row,
    .bcrm-customers-actions,
    .bcrm-reservation-details {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 10px !important;
    }

    .bcrm-visits-container, .bcrm-follow-ups-container {
        gap: 0 !important;
    }

    .bcrm-visit-item,
    .bcrm-reservation-item,
    .bcrm-follow-up-item {
        padding: 15px;
        background-image: linear-gradient(to right, #bdbdbd 50%, transparent 50%);
        background-size: 10px 1px;
        background-repeat: repeat-x;
        background-position: bottom;
    }

    .bcrm-visit-item .bcrm-form-field,
    .bcrm-reservation-item .bcrm-form-field,
    .bcrm-follow-up-item .bcrm-form-field {
        max-width: 100%;
    }

    .bcrm-form-row.grid {
        display: grid !important;
        gap: 15px;
        align-items: start;
        margin-bottom: 15px;
    }

    .grid-row-1 {
        grid-template-columns: 1fr 1fr !important;
    }

    .grid-row-2 {
        grid-template-columns: 1fr 1fr !important;
    }

    .grid-row-3 {
        grid-template-columns: 1fr 1fr !important;
    }

    .bcrm-follow-up-item .bcrm-form-field.description,
    .bcrm-customers-actions .bcrm-actions-item.bcrm-search-box {
        grid-column: 1 / 3;
    }

    .bcrm-customers-table tr th,
    .bcrm-referrers-table tr th {
        padding: 25px 10px;
        white-space: nowrap;
        text-wrap-mode: nowrap;
    }

    .bcrm-customers-table tr td,
    .bcrm-referrers-table tr td {
        padding: 10px 10px;
        white-space: nowrap;
        text-wrap-mode: nowrap;
    }

    .bcrm-form-section,
    .bcrm-form-actions {
        padding: 25px 10px !important;
    }

    .bcrm-dashboard-content,
    .bcrm-customers-actions,
    .bcrm-advanced-search-panel {
        padding: 25px 0 !important;
    }

    .bcrm-form-row,
    .bcrm-date-time-selector,
    .bcrm-advanced-search-panel,
    .bcrm-dashboard .bcrm-search-options label {
        flex-direction: column !important;
    }

    .bcrm-dashboard .bcrm-search-options .bcrm-form-row {
        flex-direction: row !important;
    }

    .bcrm-dashboard .bcrm-search-options label span {
        min-width: 100% !important;
    }

    .bcrm-dashboard .bcrm-search-options label :not(span) {
        max-width: 100% !important;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__rendered {
        margin: 0 !important;
    }

    .bcrm-group-field {
        width: 100% !important;
    }

    .select2-container, .bcrm-form-row select.select2,
    .bcrm-calendar-container, .bcrm-time-slots-container {
        min-width: 100% !important;
    }

    .bcrm-step-content {
        padding: 0 !important;
    }

    .bcrm-reservation-details p {
        margin: 0 !important;
    }

    .bcrm-reservation-details p:nth-of-type(1) {
        order: 1;
    }

    .bcrm-reservation-details p:nth-of-type(2) {
        order: 3;
    }

    .bcrm-reservation-details p:nth-of-type(3) {
        order: 4;
    }

    .bcrm-reservation-details p:nth-of-type(4) {
        order: 2;
    }

    .bcrm-reservation-details p:nth-of-type(5) {
        order: 5;
    }

    .bcrm-wallet-payment {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .bcrm-form-field.cancel .bcrm-cancel-reservation {
        width: 100%;
    }

    .bcrm-reminder-item {
        max-width: 100% !important;
    }

    .bcrm-edit-field select,
    .bcrm-edit-field input[type="text"],
    .bcrm-edit-field input[name="address"],
    .bcrm-edit-field .select2-container,
    .bcrm-edit-field .select2-container .select2-selection--single {
        width: 100%;
    }

    .bcrm-edit-field {
        max-width: 60%;
    }

    .bcrm-history-table {
        white-space: nowrap;
        text-wrap-mode: nowrap;
    }

    .bcrm-form-field.actions {
        justify-content: end;
    }
}

@media (max-width: 480px) {
    .bcrm-dashboard .bcrm-side-area {
        width: 100%;
    }
}