/* Prevent scrolling for main page when modal is active */
.modal-open {
    overflow: hidden !important;
}

.quote.container {
    min-height: 100vh;
    margin: 0 auto;
    color: rgb(23, 58, 36);

}

#calendar-container {
    max-width: 800px;
    margin: 0px auto;
    padding: 20px;
    padding-top: 50px;
    /* border: 1px solid #ddd; */
    /* border-radius: 10px; */
    /* background-color: #fff; */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    /* font-family: Arial, sans-serif; */
}

#calendar-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;

}



#month-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    /* Spacing between the buttons and the month label */
    margin-bottom: 0px;
    position: relative;
}

#calendar-toggle-buttons {
    position: absolute;
    left: 0;
}


#month-navigation .nav-btn,
#week-navigation .nav-btn {
    background: none;
    border: none;
    font-size: 24px;
    /* Size of the arrow */
    color: black;
    /* Arrow colour */
    cursor: pointer;
    outline: none;
    padding: 5px;
    /* border-radius: 50%; For a circular hover effect */
    transition: background-color 0.2s, transform 0.2s;
    border: 0;
    box-shadow: none;
    user-select: none;
}

#month-navigation .nav-btn:hover {
    /* background-color: rgba(0, 0, 0, 0.1); Light hover effect */
    transform: scale(1.2);
    /* Slight zoom effect on hover */
}

#current-month {
    display: flex;
    align-items: center;
    justify-content: center;
    /* background-color: #5AE98B;  */
    color: black;
    /* Text colour */
    font-size: 18px;
    /* Font size */
    text-transform: uppercase;
    /* Capitalise the month name */
    padding: 10px 20px;
    /* Padding for the month label */
    border-radius: 50px;
    /* Fully rounded corners */
    border: 3px solid black;
    /* Outline for the label */
    min-width: 100px;
    /* Ensure enough space for all month names */
    text-align: center;
    min-width: 200px;
    background: #fff;

}

#day-initials {
    display: flex;
    justify-content: space-between;
    /* Evenly space out the labels */
    align-items: center;
    max-width: 100%;
    /* Ensure it spans the container */
    margin: 20px auto;
    /* Add spacing around the element */
    /* margin-bottom: 30px; */
    padding: 0 30px;
    /* Add some horizontal padding */
}

.day-label,
.date-label {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    /* Fixed width for the circles */
    height: 35px;
    /* Fixed height for the circles */
    background-color: rgb(247, 247, 247);
    /* White background */
    background: #fff;

    color: black;
    /* Black text */
    font-size: 16px;
    /* Font size for the text */
    text-align: center;
    /* Center the text */
    border: 2px solid black;
    /* Solid black border */
    border-radius: 50%;
    /* Circular shape */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


#day-cards {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day-card {
    display: flex;
    flex-direction: column;
    justify-content: left;
    align-items: left;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* background: rgba(0, 255, 0, 0.01) !important; */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 90px;
}

.day-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

.day-card .date {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 5px;
}

.day-card .order-count {
    font-size: 14px;
    text-align: left;
    color: #555;
}

.day-card.empty {
    border: none;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
}

.day-card.no-orders {
    box-shadow: none;
    opacity: 0.6;
    pointer-events: none;
    /* Makes it unclickable */
    cursor: default;
}

.date-label.no-orders {
    box-shadow: none;
    opacity: 0.1;
    pointer-events: none;
    /* Makes it unclickable */
}

.day-card.no-orders .order-count {
    display: none;
    /* Hides the order count text */
}

.order-status-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.pending-status-container,
.confirmed-status-container {
    display: flex;
    gap: 2px;
}

.circle-status-pending,
.circle-status-confirmed {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fafafa;
    /* Optional for extra emphasis */
}

.order-status-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fafafa;
    /* Optional for extra emphasis */

}

.circle-status-pending {
    background-color: #FFC75A;
    /* Orange for pending */
}

.circle-status-confirmed {
    background-color: #5AE98B;
    /* Green for confirmed */
}

.hidden {
    display: none !important;
}

#order-cards {
    margin: 20px auto;
    max-width: 1000px;
    overflow: visible;
    margin-left: 20px;
    margin-top: 30px;
}


.breadcrumb-button {
    background: none;
    display: inline-block;
    border: none;
    font-size: 16px;
    color: #555;
    cursor: pointer;
    margin-bottom: 10px;
    text-align: left;
    vertical-align: middle;
    line-height: 1;
    margin-bottom: 0;
    padding: 0 5px 15px;
    border-bottom: 2px solid #e1e1e1;
}

.breadcrumb-button:hover {
    /* text-decoration: underline; */
    cursor: pointer;
}


.breadcrumb-button.active {
    color: #333;
    border-bottom: 2px solid #5AE98B;
    pointer-events: none;

}

.breadcrumb-button img {
    width: 100%;
    max-width: 35px;
}

#orders-list {
    display: flex;
    overflow: visible;
    flex-wrap: wrap;
    /* Allows wrapping to the next row */
    gap: 20px;
    /* Spacing between the cards */
    justify-content: flex-start;
    /* Align items to the left */
}

#carousel-container {
    overflow: visible !important;
    width: 100%;
    /* Full width for the container */
    margin: 20px 0;
}

.carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    align-items: flex-start;
    /* Prevent cards from stretching to match the tallest */

}

.carousel::-webkit-scrollbar {
    display: none;
    /* Hide scrollbars for a clean look */
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #5AE98B;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}


.order-card {
    flex: 0 1 calc(50% - 20px);
    /* Prevent cards from stretching */
    max-width: calc(50% - 20px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Align content to the top */
    justify-content: flex-start;
    /* Ensure content stacks at the top */
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    padding-bottom: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: auto;
    /* Allow independent heights */
    color: rgb(23, 58, 36);
}

.order-card:hover {
    /* transform: scale(1.02); */
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); */
    cursor: pointer;
    z-index: 1;
}

.order-card.selected {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 1;
    border: 2px solid #5AE98B;
}


.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Align header elements to the top */
    margin-bottom: 10px;
    width: 100%;
    /* Ensure full width of the card */
}

.order-header .pax {
    font-size: 24px;
    font-weight: bold;
    margin-left: auto
}

.order-header .job-number {
    font-weight: bold;
    margin-right: 10px;

}

.order-details {
    margin-bottom: 10px;
}

.order-details,
.order-sections {
    margin-top: 5px;
    /* Add spacing between sections */
    width: 100%;
    /* Ensure sections span full width */
}

.order-sections {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Stack content from the top */
    font-size: 12px;
    color: #555;
}

.order-details .address {
    font-size: 12px;
}

.order-details .client-name {
    flex: 2;
    margin-bottom: 5px;
}

.order-sections {
    font-size: 12px;
    color: #555;
}



.order-section {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    width: 100%;
    text-transform: capitalize;
}

.order-section span:first-child {
    flex: 1;
    /* Take up available space for the first span (sectionTitle) */
}

.order-section span:not(:first-child) {
    margin-left: 10px;
    /* Add spacing between the quantity and time */
    text-align: right;
    /* Align text to the right for cleaner layout */
}

.section-time {
    font-weight: bold;
}

.order-totals {
    margin-top: 35px;
    font-weight: bold;
    font-size: 14px;
}

.per-person {
    font-weight: 400;
}

#week-navigation {
    position: relative;
    /* Position container to enable absolute positioning */
    margin: 20px 0;
}

#week-navigation .nav-btn {
    position: absolute;
    top: 50%;
    /* Vertically center the buttons */
    transform: translateY(-50%);
    z-index: 1;
    /* Ensure buttons are on top */
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
}

#prev-week-btn {
    left: -40px;
    /* Adjust spacing to position left of week-dates */
}

#next-week-btn {
    right: -40px;
    /* Adjust spacing to position right of week-dates */
}




#week-dates .date-label {
    text-align: center;
    font-size: 0.6em;
    width: 25px;
    /* Fixed width for the circles */
    height: 25px;
    /* Fixed height for the circles */
    margin: 0 5px;
    text-align: center;
    /* Center the text */
    border: 2px solid black;
    /* Solid black border */
    border-radius: 50%;
    /* Circular shape */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;

}

.date-label.active {
    font-weight: bold;
    color: #fff;
    /* Highlight active date */
    background-color: #333;
}

#weekly-orders-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* 7 columns for each day */
    gap: 10px;
    margin-top: 20px;
}

.thumb-order-card {

    align-items: left;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    min-height: 130px;
    margin-bottom: 10px;
    cursor: pointer;
}

.thumb-order-card.confirmed {
    border: 1px solid #5AE98B;
}

.thumb-order-card .order-time {
    font-weight: bold;
    margin-bottom: 5px;
}

.thumb-order-card .order-location {
    color: #555;
}

.thumb-order-card div {
    margin-bottom: 5px;
}

.order-client {
    font-size: 12px;
}


.order-pax {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 24px;
}

#week-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* 7 equal columns for the week */
    gap: 10px;
    /* Spacing between day-date elements */
    margin-top: 20px;
    /* Adjust as needed */
}


/* Base styles for day-date, matching day-cards */
.day-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    min-height: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Smooth transitions for hover/active states */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
}

/* Hover state, similar to day-cards */
.day-date:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

/* Active state (when selected) */
.day-date.active {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    /* Smooth transitions for hover/active states */


}



/* Text styling for day initials */
.day-date .day-initial {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
    /* Slightly bold text for initials */
}

/* Text styling for dates */
.day-date .date {
    font-size: 38px;
    font-weight: bold;
    margin-top: 5px;
}

.day-date.no-orders {
    box-shadow: none;
    opacity: 0.6;
    /* Dim the component */
    pointer-events: none;
    /* Makes it unclickable */
    cursor: default;
    /* Disable hover effects */
    background-color: #f9f9f9;
    /* Optional: light background to differentiate */
}



#quote-modal.hidden {
    display: none;
}

#quote-modal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    /* Transparent black background */
    backdrop-filter: blur(10px);
    /* Add background blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center modal content */
    overflow: hidden;
    /* Prevent main body scrolling */
    z-index: 1000;
}

#quote-modal .modal-content {
    background: rgba(255, 255, 255, 0.9);
    /* Slightly transparent white */
    border-radius: 12px;
    padding: 30px 30px;
    width: 90%;
    /* Adjust for responsiveness */
    max-width: 800px;
    /* Limit width */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    /* Enhance shadow for depth */
    position: relative;
    overflow: hidden;
    /* Prevent overflowing content */
    display: flex;
    flex-direction: column;
    /* Stack content vertically */
}

#quote-iframe {
    width: 100%;
    height: calc(100vh - 80px);
    /* Allow space for close and edit buttons */
    border: none;
    overflow-y: auto;
    /* Enable scrolling inside iframe */
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #fff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s;
}

.modal-close:hover {
    transform: scale(1.1);
    /* Slight zoom effect on hover */
}

/* Edit Button */
.edit-btn {
    position: absolute;
    top: 10px;
    right: 60px;
    /* Positioned next to the close button */
    background-color: #5AE98B;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, transform 0.2s;
}

.edit-btn:hover {
    background-color: #4bc87b;
    transform: scale(1.05);
    /* Slight zoom effect */
}



#actions.hidden {
    display: none !important;
}

#map-container {
    width: 100%;
    height: 100%;
}

.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.map-modal-content {
    width: 80%;
    height: 80%;
    background: #fff;
    border-radius: 8px;
    position: relative;
}

#map-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

#close-map-modal {
    z-index: 1001;
    margin-right: 50px;
    margin-top: -3px;
}


#daily-header {
    display: flex;
    align-items: flex-start;
}

#daily-header>* {
    margin-right: 20px;
}

.order-card.overview-card {
    border: 1px solid #ccc;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.overview-date {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 16px;
}

.overview-stat {
    margin-bottom: 5px;
    font-size: 14px;
}

#mobile-week-navigation {
    display: none;

}


/* Responsive adjustments */
@media (max-width: 768px) {

    .container.calendar-view {
        padding: 0;
    }

    .order-card {
        flex: 1 1 calc(50% - 20px);
        /* 2 cards per row */
        max-width: calc(50% - 20px);
    }

    #calendar-container {
        max-width: 100% !important;
        margin: 0;
        padding: 20px 0;
    }

    #calendar-toggle-buttons {
        position: static;
        display: flex;
        justify-content: center;
        margin-bottom: 10px;
        gap: 5px;
    }

    #month-navigation {
        flex-direction: row;
        justify-content: center;
        width: 100%;
        gap: 20px;
        padding: 0 20px;
    }

    #current-month {
        font-size: 16px;
        padding: 8px 16px;
        min-width: auto;
    }

    #day-initials {
        padding: 0 10px;
        gap: 4px;
        margin-bottom: 10px;
    }

    .day-label {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    #week-dates {
        width: 100vw;
        padding: 0 10px;
        margin: 0;
        gap: 6px !important;
        display: grid;
        grid-template-columns: repeat(7, 1fr);
    }

    #week-dates::-webkit-scrollbar,
    .calendar-group::-webkit-scrollbar {
        display: none;
    }

    .day-date {
        width: 100%;
        height: 100%;
        padding: 8px 0;
        box-sizing: border-box;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 1px solid #ddd;

    }




    .day-date .date {
        font-size: 20px;
    }


    .day-date .day-initial {
        font-size: 0.8rem;
    }

    #calendar-navigation {
        flex-direction: column;
        gap: 10px;
    }

    #week-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: static;
        margin: 10px 0;
        /* padding: 0 10px; */
    }

    #week-navigation .nav-btn {
        position: static;
        font-size: 18px;
        padding: 6px 12px;
        border: 2px solid black;
        border-radius: 6px;
        background: white;
    }

    #mobile-week-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 10px;
        margin-top: 10px;
        /* margin-bottom: 15px; */
    }

    #mobile-week-navigation .nav-btn {
        font-size: 20px;
        padding: 6px 12px;
        border: 2px solid black;
        border-radius: 6px;
        background: white;
        cursor: pointer;
    }

    #current-week-label {
        font-weight: bold;
        font-size: 14px;
        text-align: center;
        flex: 1;
    }

    #week-navigation .nav-btn {
        display: none !important;
        /* Hide desktop nav on mobile */
    }

    .container {
        padding: 0;
    }

    #day-cards {
        padding: 5px;
        gap: 5px !important;
    }

    .day-card {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        padding: 4px;
        box-sizing: border-box;
        width: 100%;
        /* 👈 fill the column (safe within grid cell) */
        min-height: 55px;

        background-color: #fff;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        cursor: pointer;
        text-align: center;
    }






    .day-card:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .day-card .date {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .day-card .order-count {
        font-size: 12px;
        color: #555;
    }

    .day-card.no-orders {
        opacity: 0.6;
        background-color: #f9f9f9;
        box-shadow: none;
        pointer-events: none;
        cursor: default;
    }

    .calendar-group {
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    #day-initials {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 10px;
        padding: 0;

    }

    .day-label {
        width: 30px;
        margin: 0 12.5px;
    }

    .day-date:hover {
        transform: scale(1.05);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .day-date.active {
        border: 1px solid #5AE98B;
    }



}


@media (max-width: 480px) {

    #week-dates {
        width: 100vw;
        padding: 0 5px;
        margin: 0;
        gap: 5px !important;
        display: grid;
        grid-template-columns: repeat(7, 1fr);
    }

    .order-card {
        flex: 1 1 100%;
        /* 1 card per row */
        max-width: 100%;
    }

    .day-date {
        width: 100%;
        height: 100%;
        padding: 8px 0;

    }




    .day-date .date {
        font-size: 18px;
    }

    .day-label {
        width: 20px;
        height: 20px;
        margin: 0 12.5px;
        font-size: 12px;
        border: 0;
    }





}