﻿html, body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f0f2f5;
    overflow: hidden; 
    padding: 0;
}

.scrollable-form-container {
    max-height: calc(100vh - 200px); 
    overflow-y: auto; 
    padding-right: 15px;
}

.header {
    background-color: #f8f9fa; 
    padding: 5px 5px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px; 
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1000; 
    position: relative; 
}

.app-container {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
    flex-grow: 1;
    position: relative;
}

/*.sidebar {
    width: 60px; 
    background-color: #1a2036;
    color: #fff;
    padding-top: 0px; 
    flex-shrink: 0; 
    transition: width 0.3s ease; 
    overflow-y: auto;
    height: 100%; 
    display: flex;
    flex-direction: column; 
    align-items: center; 
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

   
    /* 4. On Hover: Expand the sidebar */
    /*.sidebar:hover {
        width: 200px;*/ /* Expand to the wider width */
    /*}*/

        /* 5. On Hover: Update nav-link alignment for the expanded view */
        /*.sidebar:hover .nav-link {
            flex-direction: row;*/ /* Align icon and text horizontally */
            /*justify-content: flex-start;*/ /* Start from the left */
            /*padding: 15px 10px;*/ /* Add horizontal padding */
        /*}*/

            /* 6. On Hover: Make the text visible and correctly sized */
            /*.sidebar:hover .nav-link .nav-text {
                display: block;*/ /* Ensure it's a block-level element */
                /*font-size: 1em;*/ /* Restore the full font size */
                /*opacity: 1;*/ /* Make it fully visible */
                /*width: auto;*/ /* Let it take up space */
                /*margin-left: 10px;*/ /* Add space between icon and text */
            /*}*/

            /* 7. On Hover: Adjust the icon's position for the horizontal layout */
            /*.sidebar:hover .nav-link i {
                margin-right: 10px;*/ /* Add horizontal margin to the right of the icon */
                /*margin-bottom: 0;*/ /* Remove vertical margin */
            /*}*/
    
/*    .sidebar:hover {
        width: 200px; 
    }

        .sidebar:hover .nav-link {
            flex-direction: row; 
            justify-content: flex-start;
            padding: 15px 10px; 
        }

            .sidebar:hover .nav-link i {
                margin-right: 10px; 
                margin-bottom: 0; 
            }

            .sidebar:hover .nav-link .nav-text {
                font-size: 1em; 
            }

    .sidebar .nav-item.settings-item {
        margin-top: auto; 
        padding-top: 20px;
    }
*/

.sidebar {
    width: 60px; /* Full width when shown */
    background-color: #1a2036;
    color: #fff;
    padding-top: 0px;
    flex-shrink: 0;
    /* --- CRITICAL CHANGES BELOW --- */
    position: fixed; /* Fix it relative to the viewport */
    top: 60px; /* Assuming your .header is 60px tall */
    left: -55px; /* Move it completely off-screen to the left (same as its width) */
    z-index: 1050; /* Ensure it floats above the main content */
    height: calc(100vh - 60px); /* Fill the screen height minus the header */
    transition: left 0.3s ease; /* Transition the 'left' property */
    /* Revert existing flex properties to work with new position */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 2px 0 5px rgba(0,0,0,0.4); /* Stronger shadow when it slides out */
    overflow-y: auto; /* Keep scrolling for nav items */
}
 .sidebar .nav {
        width: 100%; 
        padding: 0; 
        margin: 0; 
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    .sidebar .nav-item {
        width: 100%;
        margin-bottom: 5px; 
    }

    .sidebar .nav-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 15px 0; 
        color: #a0a6b7; 
        font-size: 0.8em; 
        text-align: center;
        text-decoration: none;
        transition: background-color 0.2s ease, color 0.2s ease;
        border-radius: 0;
        position: relative; 
    }

        .sidebar .nav-link i {
            font-size: 1.5em; 
            margin-bottom: 5px; 
            color: #a0a6b7; 
            transition: color 0.2s ease;
        }

        .sidebar .nav-link .nav-text {
            display: block;
            font-size: 0.7em; 
            line-height: 1; 
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis; 
            transition: opacity 0.2s ease;
        }

   
    .sidebar .nav-item.active .nav-link {
        background-color: #6a40e8;
        color: #fff; 
        border-radius: 5px; 
        margin: 0 10px; 
        width: calc(100% - 20px); 
        display: flex; 
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

        .sidebar .nav-item.active .nav-link i {
            color: #fff; 
        }

   
    .sidebar .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff; 
    }

        .sidebar .nav-link:hover i {
            color: #fff;
        }
    /* Ensure all nav text is visible by default since the sidebar is 200px wide */
    /*.sidebar .nav-link {
        flex-direction: row;*/ /* Horizontal alignment (icon | text) */
        /*justify-content: flex-start;
        padding: 15px 10px;
    }

        .sidebar .nav-link i {
            margin-right: 10px;
            margin-bottom: 0;
        }

        .sidebar .nav-link .nav-text {
            font-size: 1em;*/ /* Full font size for expanded view */
            /*opacity: 1;*/ /* Fully visible */
            /*width: auto;
            white-space: nowrap;
        }*/

    /* Remove the old :hover expansion logic as it's now handled by shifting 'left' */
    .sidebar:hover {
        left: 0; /* SLIDES the sidebar into view when the mouse hovers over the 60px area where it should pop out */
        box-shadow: 2px 0 5px rgba(0,0,0,0.4);
    }
.main-content {
    flex-grow: 1; 
    padding: 0;
    overflow-y: hidden;
    overflow-x: hidden; 
    display: flex;
    flex-direction: column;
    overflow: hidden; 
}

.main {
    height: 100%;
    padding: 0;
    margin: 0;
}

.fresha-layout {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #fdfdfd;
    height: 60px;
    flex-shrink: 0;
    /*overflow: hidden;*/
}

.top-bar-left, .top-bar-center, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.top-bar .btn {
    font-size: 0.95rem;
    padding: 8px 15px;
    border-radius: 6px;
}

.top-bar .selected-date {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.top-bar .form-select {
    padding: 8px 15px;
    border-radius: 6px;
    border-color: #ddd;
}

.top-bar-right .btn {
    margin-left: 0;
}

.top-bar-right form.d-inline .btn {
    color: white;
}


.calendar_default_main *,
.calendar_default_main ::before,
.calendar_default_main ::after {
    box-sizing: border-box !important;
    border: none !important; 
}

.calendar_default_cell,
.calendar_default_colheader,
.calendar_default_corner,
.headers-R6kKzj, 
.intervalsWrapper-Xd1tsP,
.self-lRcMVA {
    background-color: #FFFFFF !important;
}

.headers-R6kKzj {
    display: flex;
    flex-shrink: 0;
    height: 100px; 
    background-color: #fff !important;
}


.fWG1-2._7sQjz2.orj8E2.O_txr2._-gl4h2.Hc2iQ2.llVPd2._0buTX2.QZTvP2.fWG1-2.self-Gwsmxp {
    border: none !important; 
    background-color: #fff !important; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4px;
    min-width: 102.833px;
    max-width: 102.833px;
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
}

    .fWG1-2._7sQjz2.orj8E2.O_txr2._-gl4h2.Hc2iQ2.llVPd2._0buTX2.QZTvP2.fWG1-2.self-Gwsmxp:last-child {
        border-right: 1px solid #eee !important;
    }


.calendar_default_colheader {
    background-color: white;
    border-bottom: 7px solid #CECECE !important;
    border-right: 0px solid #eee !important;
    padding: 0;
    position: relative;
    height: 100px !important; 
}

    .calendar_default_colheader::after,
    .calendar_default_colheader::before {
        content: none !important;
        display: none !important;
    }
    .calendar_default_colheader > div[unselectable="on"][style*="box-sizing: border-box"] {
        width: 64px !important;
        height: 64px !important;
        top: 3px !important;
        left: calc(50% - 32px) !important;
        border: 2px solid rgba(173, 216, 230, 0.7) !important;
        border-radius: 50% !important;
        background-color: transparent !important;
    }

    .calendar_default_colheader div[unselectable="on"][style*="height: 30px"] {
        top: 65px !important;
        font-size: 1.1em !important; 
        height: auto !important; 
    }
.calendar_default_cell.ten-minute-mark {
    border-top: none !important;
    background-image: linear-gradient(to bottom, rgba(0,0,0,0.07) 1px, transparent 1px);
    background-size: 100% 100%;
}
.calendar_default_cell {
    border-top: none !important;
    border-left: none !important;
    border-bottom: 0 !important; 
    border-right: 2px solid #CECECE !important;
    padding: 0;
    position: relative;
    background-color: #fff !important;
}

    .calendar_default_cell::before,
    .calendar_default_cell::after {
        content: none !important;
        display: none !important;
    }

.cell-hover-time-area {
    opacity: 0;
    transition: opacity 0.1s ease-in-out; 
    cursor: pointer;
    background-color: rgba(39, 245, 187, 0.38);
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1.2em; 
    color: #333; 
    padding: 2px 5px;
    white-space: nowrap;
    pointer-events: none;
    position: absolute; 
    z-index: 100; 
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    text-align: left;
}

.calendar_default_cell .cell-hover-time-area-container {
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; 
    z-index: 10; 
    pointer-events: all;
    cursor: pointer; 
    background-color: transparent;
}

.calendar_default_cell:hover {
    background-color: rgba(0, 0, 0, 0.02) !important; 
}

    .calendar_default_cell:hover .cell-hover-time-area-container .cell-time-popup {
        visibility: visible; 
        opacity: 1; 
    }
    .calendar_default_cell:hover .cell-hover-time-area {
        opacity: 1;
    }

.calendar_default_timeheader {
    color: #888;
    font-size: 0.85em;
    text-align: right;
    padding-right: 10px;
    background-color: #f8f8f8 !important;
    border: none !important;
    border-bottom: 1px solid #d5d8dc !important;
    position: relative;
    height: auto !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    box-sizing: border-box !important; 
    padding-left: 5px !important;
}
    .calendar_default_timeheader::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
        width: 1px;
        background-color: #CCCCCC; 
        display: block !important;
    }
    .calendar_default_timeheader::before {
        content: none !important;
        display: none !important;
    }

.calendar_default_timeheader_hour {
    border-bottom: 1px solid #BBBBBB !important;
    background-color: #f8f8f8 !important;
    font-weight: bold !important; 
    color: #555 !important; 
}

.calendar_default_timeheader div,
.calendar_default_timeheader span {
    white-space: nowrap; 
}
.calendar_default_corner {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #fff !important;
    border: none !important;
}
    .calendar_default_corner::before,
    .calendar_default_corner::after {
        content: none !important;
        display: none !important;
    }

.hourly-top-border {
    border-top: 1px solid #CECECE !important;
}

.hourly-bottom-border {
    border-bottom: 1px solid #CECECE !important; 
}

.hourly-red-border-cell {
    border-top: 0.5px solid #CECECE !important; 
}
.calendar_default_current_time_line_arrow {
    display: none !important;
}

.calendar-container {
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
    overflow-x: auto; 
    overflow-y: auto;
    background-color: #fff;
    height: 100vh; 
    position: relative;
}

.hourly-red-border-cell-bottom {
    border-bottom: 0.5px solid #CECECE !important; 
}

.calendar_default_current_time_line::before,
.calendar_default_current_time_line::after {
    content: none !important;
    display: none !important;
}

.calendar_default_current_time_line {
    border-top: 1px solid red !important;
    background-color: transparent !important;
    height: 1px !important;
    padding: 0 !important;
}

.currentTime-n0H6wj {
    position: absolute;
    background-color: #6a40e8;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: bold;
    z-index: 100;
    transform: translate(-50%, -50%);
    left: 50%;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.calendar_default_now {
    height: 2px !important;
    background-color: #EB5406 !important;
    z-index: 99 !important;
}
#calendar {
    width: 100% !important;
    height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    flex-grow: 1;
    background-color: #fff !important;
}

.hourly-line-cell {
    border-top: 1px solid #c0392b !important; 
}

.calendar_default_main {
    border: none !important; 
    padding: 0 !important;
    overflow-y: auto; 
    overflow-x: auto; 
    height: 100%;
    width: 100% !important;
    background-color: #fff !important;
    overflow: auto;
}


p[data-qa^="timeline-"] {
    font-weight: 600;
    font-size: 0.95em;
    color: #333;
    text-align: center;
    line-height: 1.2;
    margin-top: 0px; 
}

.WiWftm.pFkGym.vETMmm.ndgl8m.hHFepm {
    width: 70px;
    border-radius: 50%;
    background-color: #6a40e8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
    flex-shrink: 0;
    margin-bottom: 0px;
}

.tile-A2U39r {
    background-color: #DAE8FC;
    border-radius: 4px;
    padding: 5px 8px;
    margin: 0px;
    box-sizing: border-box;
    font-size: 0.85em;
    color: #333;
    line-height: 1.2;
    text-overflow: ellipsis;
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    border: none;
    position: absolute;
    z-index: 10;
    padding: 0px 8px !important;
    font-size: 0.7em !important; 
    line-height: 1 !important; 
}


.highlight-gTqxpq {
    background-color: #fff !important; 
    position: absolute;
    z-index: 5;
    pointer-events: none;
}

.intervalsWrapper-Xd1tsP {
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    height: 100%;
    background-color: #fff !important;
}

.self-lRcMVA {
    position: relative;
    padding-top: 0 !important;
    height: auto !important;
    min-height: 100%;
    background-color: #fff !important;
}

.trustMeImABorder-MAZpUS {
    background-color: #eee; 
    width: 1px;
    flex-shrink: 0;
    height: 100%;
    margin: 0;
}

.arrow-LRPTFl {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    z-index: 100;
}

.left-yf7MqE {
    left: 10px;
}

.right-xFDgIa {
    right: 10px;
}

.arrow-LRPTFl svg {
    width: 20px;
    height: 20px;
    color: #6a40e8;
}

.hidden {
    display: none !important;
}

.modal-body.d-flex {
    min-height: 400px; 
}

.modal-left-panel {
    
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    overflow-y: auto; 
}

.modal-right-panel {
    
    background-color: #fff;
    overflow-y: auto; 
}

.service-list-container {
    height: calc(100% - 70px); 
    overflow-y: auto;
    padding-right: 5px; 
}

.service-category-title {
    font-weight: 600;
    font-size: 0.9em;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 15px;
    margin-bottom: 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    background-color: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}

    .service-item:hover {
        background-color: #e9ecef;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .service-item.selected {
        background-color: #e7f1ff;
        border-color: #00bcd4;
        font-weight: 500;
    }

.service-item-left {
    flex-grow: 1;
}

.service-item-name {
    font-weight: 500;
    color: #333;
    font-size: 0.95em;
}

.service-item-details {
    font-size: 0.85em;
    color: #6c757d;
}

.service-item-price {
    font-weight: 600;
    color: #28a745;
    font-size: 1em;
    flex-shrink: 0;
    margin-left: 10px;
}

.modal-body.d-flex {
    min-height: 400px;
}

.modal-left-panel {
    background-color: #f8f9fa;
    border-right: 1px solid #e9ecef;
    overflow-y: auto;
}

.modal-right-panel {
    background-color: #fff;
    overflow-y: auto;
}
.service-list-container {
    height: calc(100% - 70px);
    overflow-y: auto;
    padding-right: 5px;
}

.customer-list-container {
    height: calc(100% - 150px); 
    overflow-y: auto;
    padding-right: 5px;
}

.customer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 5px;
    background-color: #f8f8f8;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f0f0;
}

    .customer-item:hover {
        background-color: #e9ecef;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .customer-item.selected {
        background-color: #e0f7fa; 
        border-color: #00bcd4; 
        font-weight: 500;
    }

.customer-item-name {
    font-weight: 500;
    color: #333;
    font-size: 0.95em;
}

.customer-item-phone {
    font-size: 0.85em;
    color: #6c757d;
}

.employee-list-avatar,
.employee-list-initials {
    width: 40px; 
    height: 40px;
    object-fit: cover; 
    border-radius: 50%;
    flex-shrink: 0; 
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem; /
    text-transform: uppercase;
    border: 1px solid #e0e0e0; 
    background-color: #f8f9fa;
}
.table th, .table td {
    vertical-align: middle; 
}
.client-avatar-placeholder {
    width: 80px; 
    height: 80px;
    border-radius: 50%; 
    background-color: #e0e6f7; 
    border: 1px solid #6a40e8; 
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 5px auto; 
    font-size: 2.5rem; 
    color: #6a40e8; 
    cursor: pointer; 
    overflow: hidden; 
    box-shadow: 0 0 0 2px rgba(106, 64, 232, 0.2); 
}

    .client-avatar-placeholder i {
        pointer-events: none; 
    }

.client-avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #6a40e8; 
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 2.5rem; 
    object-fit: cover; 
}

#addClientButton {
    color: #6a40e8 !important; 
    font-size: 1.1rem !important; 
    font-weight: bold !important;
    text-decoration: none !important; 
}

    #addClientButton:hover {
        color: #5533bb !important; 
        text-decoration: underline !important; 
    }

#modalSelectedCustomerDisplay {
    text-align: center;
    font-size: 1.1rem; 
    color: #333;
    background-color: white; 
    border-radius: 0.375rem; 
    border: 1px solid #dee2e6; 
    height: auto; 
}

.service-item-details {
    font-size: 0.85em; 
    color: #6c757d;
    display: block; 
}

.service-warning-badge {
    display: inline-block;
    background-color: #fff3cd;
    color: #664d03;
    padding: 0.25em 0.5em;
    border-radius: 0.375rem;
    font-size: 0.75em;
    font-weight: 600;
    margin-top: 0.5em;
    vertical-align: middle;
}
#newEventModal .modal-body {
    max-height: calc(100vh - 180px); 
    overflow-y: auto; 
    padding: 0; 
}

    #newEventModal .modal-body > div {
        height: 100%; 
        display: flex;
        flex-direction: column; 
    }

#newEventModal .modal-left-panel,
#newEventModal .modal-right-panel {
    flex-grow: 1; 
    overflow-y: auto; 
}

#newEventModal #customerListContainer,
#newEventModal #serviceListContainer {
    flex-grow: 1;
    overflow-y: auto; 
}

#newEventModal .modal-body.d-flex {
    padding: 0;
}
.event-star-icon-area {
    background-color: rgba(255, 255, 255, 0.7); 
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

    .event-star-icon-area .fas.fa-star {
        color: gold; 
        font-size: 1.2em;
        margin: 0; 
        padding: 0;
    }
.event-star-icon-container {
    background-color: rgba(255, 255, 255, 0.7); 
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

    .event-star-icon-container .fas.fa-star {
        color: gold; 
        font-size: 1.2em; 
    }

.event-emoji-star-container {
    background-color: rgba(255, 255, 255, 0.7); 
    border-radius: 50%; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); 
    position: absolute; 
}


.event-emoji-star-container {
    background-color: rgba(255, 255, 255, 0.7); 
    border-radius: 50%; 
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1); 
}

#latestCustomerNoteDisplay {
    height: auto !important; 
    max-height: none !important; 
    padding-top: 0.25rem !important; 
    padding-bottom: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    overflow-y: auto; 
    overflow-x: hidden; 
    white-space: pre-wrap;
    font-size: 0.85em;
    background-color: #e0f7fa;
    border: 1px solid #00bcd4; 
    border-radius: 0.375rem; 
}

    #latestCustomerNoteDisplay p {
        margin-bottom: 0 !important; 
        line-height: 1.3; 
    }


:root {

    --flatpickr-primary-color: #6a40e8;
    --flatpickr-text-color: #333;
    --flatpickr-border-color: #eee;
    --flatpickr-bg-color: #fff;
    --flatpickr-day-hover-bg: #f0f0f0;
    --flatpickr-day-selected-bg: var(--flatpickr-primary-color);
    --flatpickr-day-selected-text: #fff;
    --flatpickr-header-bg: #fff;
    --flatpickr-header-border: 1px solid #eee;
}

.flatpickr-calendar {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: none !important;
    font-family: inherit;
    padding: 0px !important;
    background-color: white !important;
    width: 800px !important;
    max-width: none;
    font-size: 1.2em;
    transform: translateX(-100px) !important;
    margin: 0 !important;
}

.flatpickr-days {
    width: 750px !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    border: none !important;
    background-color: transparent !important;
    min-width: unset !important;
}

.flatpickr-calendar .flatpickr-innerContainer .dayContainer {
    display: grid;
    grid-template-columns: repeat(7, 1fr) !important;
    width: 350px !important;
    max-width: 350px !important;
    min-width: 350px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    text-align: center;
    grid-auto-rows: 50px;
}

.flatpickr-innerContainer .flatpickr-rContainer:nth-child(2) {
    margin-left: 50px !important;
}

.flatpickr-innerContainer {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
    gap: 50px !important;
    width: 100%;
}

.flatpickr-weekdaycontainer {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    width: 350px !important;
}

.flatpickr-weekday {
    background-color: green;
    border: none !important;
}

.flatpickr-month {
   /* width: 100%;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 0 10px;*/
}

.flatpickr-months {
    background-color: white !important;
    padding: 10px 0 !important;
    border-bottom: var(--flatpickr-header-border) !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    display: flex;
    justify-content: center !important;
    width: 750px !important;
}

    .flatpickr-months .flatpickr-month {
        background-color: white !important;
        font-weight: 600;
        width: 350px !important;
        flex: 0 0 350px !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        box-sizing: border-box;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
    }

    .flatpickr-months .flatpickr-month,
    .flatpickr-weekday {
        background-color: white !important;
        font-weight: 600;
    }

.flatpickr-month,
.flatpickr-weekdays,
.flatpickr-weekday {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background-color: white !important;
}

.flatpickr-current-month {
    flex-grow: 1;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    flex-shrink: 0;
    padding: 0 5px !important;
    margin: 0 !important;
}

    .flatpickr-prev-month:hover,
    .flatpickr-next-month:hover {
        background-color: rgba(0,0,0,0.05) !important;
        color: var(--flatpickr-primary-color) !important;
        border-radius: 4px;
    }

.flatpickr-weekdays {
    background-color: white !important;
    margin-top: 20px !important;
    border-bottom: none !important;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 750px !important;
    padding: 0 !important;
    margin: 0 auto !important;
}

.flatpickr-innerContainer .flatpickr-rContainer .flatpickr-weekdays {
    background-color: white !important;
    margin-top: 20px !important;
    border-bottom: none !important;
    display: flex;
    justify-content: left;
    align-items: flex-start;
    width: 750px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.flatpickr-weekdays .flatpickr-weekdaycontainer:nth-child(2) {
    display: grid;
    grid-template-columns: repeat(7, 1fr) !important;
    width: 350px !important;
    max-width: 350px !important;
    min-width: 350px !important;
    flex: none !important;
    padding: 0 !important;
    margin-left: 50px !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: transparent !important;
}

.flatpickr-weekdays .flatpickr-weekdaycontainer:nth-child(1) {
    display: grid;
    grid-template-columns: repeat(7, 1fr) !important;
    width: 350px !important;
    max-width: 350px !important;
    min-width: 350px !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: transparent !important;
}

.flatpickr-weekday {
    width: 50px !important;
    height: 28px !important;
    line-height: 28px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
}

.flatpickr-day {
    margin: 5px auto !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    max-width: 40px !important;
    border-radius: 50%;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

    .flatpickr-day.selected {
        background-color: var(--flatpickr-day-selected-bg) !important;
        color: var(--flatpickr-day-selected-text) !important;
        border-color: var(--flatpickr-day-selected-bg) !important;
        font-weight: 600;
    }

    .flatpickr-day.today {
        border-color: var(--flatpickr-primary-color) !important;
        color: var(--flatpickr-primary-color) !important;
        background-color: cyan !important;
    }

        .flatpickr-day.today:hover {
            background-color: var(--flatpickr-day-selected-bg) !important;
            color: var(--flatpickr-day-selected-text) !important;
        }

.flatpickr-quick-selection {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 15px;
    padding: 20px 15px;
    border-top: 1px solid var(--flatpickr-border-color);
    margin-top: 15px;
    width: 100%;
    box-sizing: border-box;
}

.flatpickr-quick-button {
    background-color: var(--flatpickr-bg-color);
    color: var(--flatpickr-primary-color);
    border: 1px solid var(--flatpickr-primary-color);
    border-radius: 80px;
    padding: 10px 20px !important;
    margin-left: 5px !important;
    margin-bottom: 10px !important;
    margin-top: 10px !important;
    margin-right: 5px !important;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    min-width: 100px;
    flex: 1 1 auto;
}

    .flatpickr-quick-button:hover {
        background-color: var(--flatpickr-primary-color);
        color: var(--flatpickr-day-selected-text);
    }

.flatpickr-input {
    text-align: center !important;
    font-size: 1.5em !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 8px 10px !important;
    height: auto !important;
    line-height: 1.2 !important;
    background-image: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

.flatpickr-calendar input.flatpickr-input, Target input inside flatpickr calendar
.flatpickr-input.form-control, Target flatpickr input with form-control
#date-picker.flatpickr-input Target specific ID with flatpickr class {
    text-align: center !important;
    font-size: 1.5em !important;
    font-weight: 600 !important;
    color: #333 !important;
    padding: 8px 10px !important;
    height: auto !important;
    line-height: 1.2 !important;
    background-image: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
}

.flatpickr-innerContainer .flatpickr-rContainer {
    flex: 0 0 350px !important;
    min-width: 350px !important;
    max-width: 350px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
}
.dayContainer {
    padding: 0 !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
}
.calendar_default_event {
    position: absolute !important;
    margin-bottom: 0 !important;
    overflow: visible !important;
}


.event-time-centered-top {
    font-size: 0.9em;
    font-weight: bold;
    color: black; 
    margin-bottom: 0px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.event-customer-name {
    font-weight: bold;
    font-size: 1em;
    color: blue;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.event-cloud-icon-area {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
}
.calendar_default_event_inner {
    padding: 0px !important;
    margin: 0 !important;
    height: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    left: 2px !important;
    right: 0 !important;
    border: 1px solid white !important;
    border-radius: 6px !important;
    box-sizing: border-box;
}

.event-content-wrapper {
    height: 100%;
    width: 100% !important;
    border: 1px solid #C19A6B !important;
    border-radius: 6px !important;
    padding: 0px 0px !important;
    box-sizing: border-box;
}

.resize-handle {
    width: 20%;
    height: 6px;
    background-color: white;
    border: 1px solid #0056b3;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    cursor: ns-resize;
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
    z-index: 10;
}

.calendar_default_event_inner:hover .resize-handle {
    opacity: 1;
}

.event-customer-name {
    font-size: 1em;
    font-weight: bold;
    color: black;
    line-height: 1.0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    word-break: break-word;
}

.event-service-name {
    font-size: 1.1rem;
    color: black;
    line-height: 1.0 !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important;
    word-break: break-word;
}

.no_show-rc7ua3 {
    background-color: #FFDADA !important;
    border: 1px dashed #FF6B6B !important;
    color: #993333 !important;
}

    .no_show-rc7ua3 strong, .no_show-rc7ua3 .self-VJNwl9 {
        color: #993333 !important;
    }

.drag-clone-visual-body {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.3);
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.drag-clone-left-border {
    flex-shrink: 0;
    width: 5px;
    background-color: rgba(0, 0, 0, 0.2);
}

.drag-clone-content-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    flex-grow: 1;
    padding: 2px 8px;
    box-sizing: border-box;
    overflow: hidden;
    white-space: normal;
    text-overflow: ellipsis;
}

.drag-clone-time-display {
    font-size: 0.9em;
    font-weight: bold;
    color: white;
    text-align: center;
    width: 100%;
    margin-bottom: 0px;
    line-height: 1.2;
    flex-shrink: 0;
}

.drag-clone-customer-name,
.drag-clone-service-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8em;
    text-align: center;
    width: 100%;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drag-clone-star-manual {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    color: #e83e8c;
    font-size: 0.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
}

.calendar_default_event.dp_event_drag .calendar_default_event_inner,
.calendar_default_event.dp_event_shadow .calendar_default_event_inner,
.dp_event_drag .calendar_default_event_inner,
.dp_event_shadow .calendar_event_inner {
}

.drag-clone-wrapper {
}

.drag-clone-time,
.drag-clone-customer,
.drag-clone-service {
    color: inherit;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drag-clone-time {
    font-weight: bold;
    margin-bottom: 0px;
}

.drag-clone-customer {
    font-weight: bold;
}

.drag-clone-service {
}

.drag-clone-star {
}

.drag-time-tooltip-text {
    text-align: center;
    width: 100%;
    font-weight: bold;
    color: white;
    font-size: 1.1em;
}

#button-previous,
#button-next {
    font-size: 1em;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
    min-width: auto;
    min-height: auto;
    display: inline-block;
    align-items: initial;
    justify-content: initial;
}

.top-bar-left .btn {
    font-size: 0.95rem;
    padding: 8px 15px;
}

.settings-panel {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -3px 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    overflow-y: auto;
    transition: right 0.3s ease-out;
    z-index: 1000;
}

    .settings-panel.active {
        right: 0;
        visibility: visible;
        opacity: 1;
        transform: translateX(0);
    }

    .settings-panel .settings-control {
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.1s ease-out;
    }

    .settings-panel.active .settings-control {
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0.2s;
    }

.cell-time-popup {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
    color: #333;
    padding: 3px 6px;
    white-space: nowrap;
    position: absolute;
    z-index: 101;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.1s ease-in-out, visibility 0.1s ease-in-out;
    transform: translateX(-50%);
    left: 50%;
    top: 5px;
}

.dp_area {
    visibility: visible !important;
    opacity: 1 !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    z-index: 2147483647 !important;
    pointer-events: none !important;
    width: 100% !important;
    height: 100% !important;
}

.drag-time-tooltip {
    background-color: #6a40e8 !important;
    color: #fff !important;
    border: 1px solid #fff !important;
    border-radius: 4px !important;
    padding: 4px 10px !important;
    font-size: 1.0em !important;
    font-weight: bold !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 2147483647 !important;
    pointer-events: none !important;
}

.employee-header-avatar-container {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(173, 216, 230, 0.7) !important;
    background-color: white !important;
    box-shadow: inset 0 0 0 2px white !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.employee-header-avatar-image {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

.employee-header-initials-text {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 24px !important;
    font-weight: bold !important;
}

.calendar_default_colheader > div[unselectable="on"][style*="position: absolute"][style*="width: 60px"][style*="height: 60px"] {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

.event-content-wrapper strong {
    margin: 0 !important;
    padding: 0 !important;
}

.dp_cell_inner {
    position: relative;
}

    .dp_cell_inner::before {
        content: attr(data-cell-time);
        position: absolute;
        top: 5px;
        left: 5px;
        font-size: 0.8em;
        color: #ccc;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
    }

    .dp_cell_inner:hover::before {
        opacity: 1;
    }

.dp_event_panel {
    z-index: 10;
}

.event-star-icon-area {
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    color: #e83e8c;
    font-size: 0.8em;
    pointer-events: none;
    z-index: 100;
}

.employee-required-event .event-content-wrapper {
    padding-right: 25px;
}

.drag-clone-time {
    font-size: 0.9em;
    font-weight: bold;
    color: white;
    text-align: center;
    width: 100%;
    margin-bottom: 0px;
    line-height: 1.2;
}

.drag-clone-details-bottom {
    flex-grow: 1;
    width: 100%;
    text-align: center;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    line-height: 1.1;
}

div[style*="z-index: 2000000"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: inherit !important;
    color: inherit !important;
    position: absolute !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
}

#customAlertModal {
    z-index: 1060;
    position: fixed;
}

.custom-alert-backdrop {
    z-index: 1059;
}

.enhanced-drag-overlay {
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 280px;
    max-width: 350px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    animation: dragOverlayFadeIn 0.2s ease-out;
}

/*.drag-header {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    color: #4fc3f7;
}

.drag-time-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
    color: #81c784;
}*/

.duration-badge {
    background: rgba(129, 199, 132, 0.3);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
}

.drag-customer-info {
    margin-bottom: 0px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.customer-name {
    font-weight: 600;
    font-size: 14px;
    color: #ffb74d;
}

.phone-number {
    font-size: 12px;
    color: #b0bec5;
}
/*
.drag-service-info {
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}*/

.service-name {
    font-size: 13px;
    color: #e1bee7;
}

.service-price {
    background: rgba(225, 190, 231, 0.3);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
}

/*.drag-additional-info {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}*/

.employee-required {
    background: rgba(244, 67, 54, 0.3);
    color: #ffcdd2;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
}

.event-notes {
    background: rgba(255, 193, 7, 0.3);
    color: #fff3c4;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
}

.priority {
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
}

.priority-high {
    background: rgba(244, 67, 54, 0.3);
    color: #ffcdd2;
}

.priority-medium {
    background: rgba(255, 152, 0, 0.3);
    color: #ffe0b2;
}

.priority-low {
    background: rgba(76, 175, 80, 0.3);
    color: #c8e6c9;
}

.resize-overlay {
    background-color: #343a40; 
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-size: 14px;
    white-space: nowrap; 
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.resize-header {
    font-weight: bold;
    border-bottom: 1px solid #495057;
    padding-bottom: 8px;
    margin-bottom: 0px;
    font-size: 15px;
}

.resize-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0px;
}

.duration-badge {
    background-color: #0d6efd; 
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

.resize-details div {
    margin-top: 0px;
}

.resize-overlay i {
    margin-right: 8px;
    color: #adb5bd; /* Lighter color for icons */
}
.calendar_default_event_moving {
    opacity: 0.7 !important;
}

.calendar_default_area {
    pointer-events: none !important;
    z-index: 999999 !important;
}

.calendar_default_event_moving .calendar_default_event_inner,
.calendar_default_shadow .calendar_default_event_inner {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.calendar_default_shadow .event-content-wrapper,
.calendar_default_event_moving .event-content-wrapper {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

.calendar_default_shadow .event-time-centered-top,
.calendar_default_shadow .event-customer-name,
.calendar_default_shadow .event-service-name,
.calendar_default_event_moving .event-time-centered-top,
.calendar_default_event_moving .event-customer-name,
.calendar_default_event_moving .event-service-name {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    /*color: white !important;*/
}

.calendar_default_shadow .calendar_default_event_inner {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    /*background-color: #1a5dcc !important;*/
    /*color: white !important;*/
    /*border: 2px solid white !important;*/
}

.calendar_default_shadow .event-content-wrapper {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.calendar_default_shadow .event-time-centered-top,
.calendar_default_shadow .event-customer-name,
.calendar_default_shadow .event-service-name,
.calendar_default_shadow .event-details-bottom {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /*color: white !important;*/
}

.calendar_default_event_moving .calendar_default_event_inner {
    opacity: 0.5 !important;
    visibility: visible !important;
    display: block !important;
}


.calendar_default_shadow {
    background: #08f8f8;
    border-radius: 6px !important;
    /*box-shadow: 0 4px 150px rgb(13, 221, 250, 0.50) !important;*/ 
    padding: 1px 1px !important;
    opacity: 1 !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important; 
}

.drag-preview-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #333;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-left: 20px; 
    position: relative;
}

  
    .drag-preview-container::before {
        content: '::';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        line-height: 1;
        font-weight: bold;
        color: #333; 
        letter-spacing: -2px;
    }

.drag-preview-time {
    font-weight: 600;
    font-size: 15px;
    color: #333; 
}

.drag-preview-customer {
    font-weight: 400;
    font-size: 14px;
    color: #34495e; 
}

.drag-preview-service {
    font-size: 12px;
    color: #555;
}

.drag-preview-required {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
}

.scrollable-card-body {
    max-height: 400px;
    overflow-y: auto;
}

.appointment-icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

    .appointment-icons i {
        font-size: 14px;
        margin-left: 3px;
    }

.bi-heart-fill {
    color: #ff6b81;
}

.bi-cloud-fill {
    color: #54a0ff;
}

.bi-pencil-square {
    color: #f9ca24;
}

.time-slots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 160px;
    overflow-y: auto;
    padding-top: 5px;
}

    .time-slots-container .btn {
        flex-basis: calc(33.33% - 6px);
    }

        .time-slots-container .btn.selected {
            background-color: #0d6efd;
            color: white;
        }

#customerSearchPhone:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#customerHistoryModal .modal-body {
    background-color: #f8f9fa;
}

.history-item-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease-in-out;
}

    .history-item-card:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

.history-item-header,
.history-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .history-item-header .service-title {
        color: #343a40;
        font-weight: 600;
    }

    .history-item-header .date-display {
        font-size: 0.85em;
        font-weight: 500;
    }

.history-item-body {
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 0.75rem;
}

.history-item-details {
    color: #495057;
}

    .history-item-details i {
        color: #6c757d;
        margin-right: 4px;
    }

.status-badge {
    padding: 0.25em 0.6em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    border-radius: 20px;
    color: #fff;
    text-transform: uppercase;
}

.status-upcoming {
    background-color: #0d6efd;
}

.status-completed {
    background-color: #198754;
}

.price-display {
    font-size: 1.1em;
    color: #212529;
}

.no-history-message {
    padding: 3rem 1rem;
    text-align: center;
    font-size: 1.1em;
    color: #6c757d;
}

.break-event {
    border: 2px dashed #6c757d !important;
    background-color: #f8f9fa !important;
    cursor: pointer;
}

    .break-event .event-content-wrapper {
        background-color: rgba(248, 249, 250, 0.9) !important;
    }

.break-event-content {
    text-align: center;
    font-weight: bold;
    color: #495057;
}

#calendar .custom-time-cell.non-business-hours {
    cursor: not-allowed;
}

#calendar .non-business-hours .cell-time-area {
    background-color: #f5f5f5 !important;
    background-image: repeating-linear-gradient( 45deg, transparent, transparent 2px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.04) 4px );
}

#calendar .business-hours .cell-time-area {
    background-color: transparent;
    background-image: none;
}

#calendar .non-shift-hours .cell-time-area {
    background-color: #f5f5f5 !important;
    background-image: repeating-linear-gradient( 45deg, transparent, transparent 2px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.04) 4px );
}

#calendar .shift-hours .cell-time-area {
    background-color: transparent;
    background-image: none;
}

#calendar .non-business-hours.non-shift-hours .cell-time-area {
    background-color: #f5f5f5 !important;
    background-image: repeating-linear-gradient( 45deg, transparent, transparent 2px, rgba(0, 0, 0, 0.08) 2px, rgba(0, 0, 0, 0.04) 4px );
}

.status-badge.status-cancelled {
    background-color: #ffebee;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
}

.history-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 0.5rem;
}

.history-section {
    margin-bottom: 1rem;
}

.empty-history-message {
    color: #6c757d;
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.employee-header-avatar-container.clickable {
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .employee-header-avatar-container.clickable:hover {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }

#employeeHeaderMenu .dropdown-item {
    display: flex;
    align-items: center;
}

#employeeHeaderMenu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
}

    #employeeHeaderMenu .bi {
        width: 20px;
    }

    #employeeHeaderMenu .dropdown-divider {
        margin: 1rem 20px;
    }

#viewSwitchMenu .dropdown-item.active {
    background-color: #e9ecef;
    color: #000;
}

.calendar-container #scheduler {
    display: none;
}

.calendar-container.scheduler-view-active #calendar {
    display: none;
}

.calendar-container:not(.scheduler-view-active) #scheduler {
    display: none;
}

.scheduler-view-active #scheduler {
    width: 100%;
    height: 600px;
}

.calendar-container.scheduler-view-active #scheduler {
    display: block;
}

.resource-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.resource-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-bottom: 4px;
    font-size: 14px;
}

.resource-name {
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #666;
}

.scheduler_default_event_inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 4px !important;
    border: none;
}

.event-text {
    white-space: normal;
    overflow: hidden;
}

.event-icons {
    margin-left: 5px;
}

.event-icon-right {
    margin-left: 3px;
    color: #fff;
    font-size: 10px;
}

.header-date-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #e0f7fa;
    border: 1px solid #b2ebf2;
    color: #6a40e8;
    font-size: 16px;
    font-weight: bold;
    box-sizing: border-box;
}

.scheduler-view-active .scheduler_default_main {
    height: 100% !important;
}

.scheduler_white_event {
    border-radius: 6px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    margin-bottom: 0px !important;
    border: 1px solid #c8e1ff !important;
}

.clean-event-wrapper {
    padding: 10px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(to right, #e6f3ff, #f0f8ff);
}

.clean-event-time {
    font-size: 12px;
    color: #555;
    margin-bottom: 0px;
    font-weight: 500;
}

.clean-event-name {
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333;
}

.clean-event-service {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0px;
}

.scheduler_white_timeheadercol {
    background-color: #f0f7ff !important;
    border-left: 1px solid #d0e3ff !important;
    border-right: 1px solid #d0e3ff !important;
}

.scheduler_white_matrix_vertical_line:nth-child(odd) {
    background-color: rgba(240, 247, 255, 0.5) !important;
}

.scheduler_white_cell {
    background-color: transparent !important;
}

.scheduler_white_event:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

.scheduler_white_rowheader:nth-child(odd) {
    background-color: #f8f9fa !important;
}

.scheduler_white_rowheader:nth-child(even) {
    background-color: #ffffff !important;
}

.scheduler_white_timeheader {
    font-weight: bold !important;
    background-color: #e6f0ff !important;
    border-bottom: 2px solid #c8e1ff !important;
    text-align: center !important;
    padding: 8px 0 !important;
}

.scheduler_white_rowheader {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f9f9f9 !important;
    border-bottom: 1px solid #eee !important;
    padding: 5px;
}

.employee-header-styled {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.employee-avatar-styled {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 5px;
    border: 2px solid #a9d9ff;
    box-shadow: 0 0 0 2px rgba(169, 217, 255, 0.5);
}

.employee-name-styled {
    font-weight: 500;
    font-size: 0.85em;
    color: #333;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scheduler_white_rowheader_inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.employee-header-clean {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5px;
}

.employee-avatar-clean {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.employee-name-clean {
    font-size: 0.8em;
    font-weight: 500;
    color: #333;
    text-align: center;
}

#personTabs .nav-item .nav-link {
    display: flex;
    align-items: center;
}

#personTabs .remove-person-btn {
    margin-left: 8px;
    opacity: 0.6;
    padding: 0;
    line-height: 1;
}

    #personTabs .remove-person-btn:hover {
        opacity: 1;
    }

/* Add this CSS to fix the modal scrolling behavior */

/* 1. Give the modal content a defined height and make it a flex container. */
#newEventModal .modal-content {
    height: 85vh; /* Let the modal take up 85% of the screen's height */
    max-height: 750px; /* Don't let it get too tall on large monitors */
    display: flex;
    flex-direction: column;
}

/* 2. Make the modal body fill the available space and HIDE its own scrollbar. */
/* This is the most critical part of the fix. */
#newEventModal .modal-body {
    flex-grow: 1;
    overflow: hidden; /* This stops the whole body from scrolling together. */
}

/* 3. Allow the left panel to get a scrollbar if its content ever overflows. */
#newEventModal .modal-left-panel {
    overflow-y: auto;
}

/* 4. Your existing rules for the right panel's sticky header will now work correctly,
      but we will add the padding back here. */
.sticky-modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    padding: 1rem 1rem 0 1rem; /* Add padding for the header area */
    border-bottom: 1px solid #dee2e6;
}

#personTabsContent {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem; /* Add padding for the scrollable service list */
}
.pagination .page-item.disabled {
    display: inline-block !important;
}



/* --- Custom Event Tooltip Styles --- */
/* Event tooltip styles */
.event-tooltip {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 0;
    width: 300px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tooltip-header {
    background-color: #3b82f6;
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

    .tooltip-header .status {
        background-color: rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 2px 10px;
        font-size: 0.8em;
    }

.tooltip-body {
    padding: 15px;
}

.tooltip-customer {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.tooltip-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e9d5ff;
    color: #9333ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 12px;
}

.tooltip-customer-info .name {
    font-weight: 600;
    color: #333;
}

.tooltip-customer-info .phone {
    font-size: 0.9em;
    color: #666;
}

.tooltip-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 5px;
}

    .tooltip-details .service-name {
        font-weight: 600;
        color: #333;
        flex-grow: 1;
    }

    .tooltip-details .price {
        font-weight: bold;
        color: #333;
        margin-left: 10px;
    }

.tooltip-sub-details {
    font-size: 0.9em;
    color: #666;
}
.sticky-modal-header {
    background-color: #fff !important; /* Or your modal's background color */
}
.service-list-container > .service-category-title:first-child {
    margin-top: 0;
}
/* Business hours styling */
.business-hours {
    background-color: #ffffff;
}

.non-business-hours {
    background-color: #f5f5f5;
}

/* Employee shift styling */
.shift-hours {
    background-color: #e8f5e9; /* Light green for working hours */
}

.non-shift-hours {
    background-color: #fafafa; /* Light gray for non-working hours */
    opacity: 0.6;
}

/* Time markers */
.hourly-top-border {
    border-top: 2px solid #333 !important;
}

.hourly-bottom-border {
    border-bottom: 1px solid #ddd;
}

.ten-minute-mark {
    border-top: 1px dotted #ccc;
}

.custom-time-cell {
    position: relative;
}

.cell-time-area {
    pointer-events: none;
}
/* Ensure this style overrides the background color for all cells marked as shift-hours */
.calendar_default_cell.shift-hours {
    /* Use a light, noticeable shade. e.g., Light Gray or Light Blue */
    background-color: #f0f0f0 !important;
}
/* Ensure the non-shift-hours (outside of shifts/breaks) is distinct */
.calendar_default_cell.non-shift-hours {
    background-color: #f7f7f7 !important; /* Slightly different background for out-of-shift hours */
}
/* Crucial CSS for the dropdown to appear over other elements */
/* Add this CSS in a <style> block in your Razor file */
.customer-list-container {
    /* CRITICAL: Allows it to float over other elements */
    position: absolute;
    top: 100%; /* Positions it directly below the input field */
    left: 0;
    right: 0;
    z-index: 1051; /* High z-index to overlay modal content but stay below the main modal header/footer */
    /* Style for the list appearance */
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    max-height: 250px;
    overflow-y: auto;
    /* CRITICAL: Start HIDDEN, JavaScript will set to 'block' when results arrive */
    display: none;
}

/* Ensure the list items look clickable */
.customer-list-item {
    cursor: pointer;
    border-radius: 0; /* Remove rounded corners for middle items */
}
/* Ensure the anchor parent is relatively positioned */
/* This targets the wrapping div for the input and list container */
.modal-left-panel .search-container-anchor {
    position: relative;
    z-index: 100;
}
/* --- New CSS for the Customer Search Dropdown --- */
.customer-list-dropdown {
    /* CRITICAL: Allows it to float over other elements */
    position: absolute;
    top: 100%; /* Positions it directly below the input field */
    left: 0;
    right: 0;
    z-index: 1051; /* High z-index to overlay modal content */
    /* Style for the list appearance */
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
    max-height: 250px; /* Limits height so it doesn't push the modal down */
    overflow-y: auto;
    /* Padding is often added here */
    padding: 0;
}

    /* Inherit Bootstrap's list-group styling for items */
    .customer-list-dropdown .list-group-item {
        border-left: none;
        border-right: none;
    }
/* --- Responsive Top-Bar: Enable Horizontal Scroll on Mobile --- */

@media (max-width: 767.98px) {
    .top-bar {
        overflow-x: auto;
        overflow-y: hidden; /* <-- ADD THIS LINE */
        justify-content: flex-start;
        flex-wrap: nowrap;
    }

    /* 4. Ensure the child elements don't shrink */
    .top-bar-left,
    .top-bar-center,
    .top-bar-right {
        flex-wrap: nowrap;
        flex-shrink: 0;
    }
}
/* --- Style for "Requires employee" checkbox (Single Booking) --- */
#modalIsEmployeeRequired + label[for="modalIsEmployeeRequired"],
/* --- Style for "Requires employee" checkbox (Group Booking) --- */
#groupEmployeeRequired + label[for="groupEmployeeRequired"] {
    font-weight: bold;
    color: #664d03; /* Dark yellow text */
    font-size: 1.05em;
    padding: 0.35rem 0.75rem;
    background-color: #fff9e6; /* Light yellow */
    border: 1px solid #ffecb3;
    border-radius: 0.375rem;
    display: block; /* Make it a full-width block */
    width: 100%;
    cursor: pointer; /* Show pointer on hover */
    transition: background-color 0.2s ease;
}

    /* --- Hover effect for both --- */
    #modalIsEmployeeRequired + label[for="modalIsEmployeeRequired"]:hover,
    #groupEmployeeRequired + label[for="groupEmployeeRequired"]:hover {
        background-color: #ffecb3;
    }

/* --- Make both checkbox inputs larger --- */
#modalIsEmployeeRequired,
#groupEmployeeRequired {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.5em; /* Adjust vertical alignment */
}
.service-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.service-details {
    flex-grow: 1; /* Takes up available space */
}

.service-price {
    font-weight: bold;
    margin-right: 15px;
}

.btn-delete-service {
    background: none;
    border: none;
    color: #dc3545; /* Red color */
    cursor: pointer;
    font-size: 1.1em;
    padding: 5px;
    transition: color 0.2s;
}

    .btn-delete-service:hover {
        color: #a71d2a; /* Darker red on hover */
    }




/* Set the offcanvas width */
#newEventModal.offcanvas-end {
    width: 800px;
    max-width: 100%;
}

/* Make offcanvas body flex and hide overflow */
#newEventModal .offcanvas-body {
    display: flex;
    overflow: hidden;
}

/* Allow inner columns to scroll correctly */
#newEventModal .modal-right-panel,
#newEventModal .modal-left-panel {
    min-height: 0;
}

/* Right middle area should scroll */
#newEventModal #personTabsContent {
    min-height: 0;
    overflow-y: auto;
}

/* Make footer sticky */
#newEventModal .offcanvas-footer {
    position: sticky;
    bottom: 0;
    z-index: 1;
}

/* Mobile: full width */
@media (max-width: 768px) {
    #newEventModal.offcanvas-end {
        width: 100%;
    }
}

/* Service selection offcanvas width */
#selectServiceModal.offcanvas-end {
    width: 600px;
    max-width: 100%;
}

/* Make offcanvas body flex and hide overflow */
#selectServiceModal .offcanvas-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Service list should scroll */
#selectServiceModal #secondaryServiceListContainer {
    min-height: 0;
    overflow-y: auto;
}

/* Mobile: full width */
@media (max-width: 768px) {
    #selectServiceModal.offcanvas-end {
        width: 100%;
    }
}

/* Customer selection offcanvas width */
#selectCustomerModal.offcanvas-end {
    width: 600px;
    max-width: 100%;
}

/* Make offcanvas body flex and hide overflow */
#selectCustomerModal .offcanvas-body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Customer list should scroll */
#selectCustomerModal #customerListContainer {
    min-height: 0;
    overflow-y: auto;
}

/* Mobile: full width */
@media (max-width: 768px) {
    #selectCustomerModal.offcanvas-end {
        width: 100%;
    }
}


