.expanded-control{
    width:100%;
}
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(164, 138, 138, 0.2);
    z-index: 99999999;
}
.loader-container-small {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(231, 225, 225, 0.06);
    z-index: 9999;
}
/* Default maxHeight for small screens */
.list-items-container {
    max-height: 30vh; /* Adjust as needed */
    overflow-y: auto;
}

/* Medium screens */
@media screen and (min-height: 600px) {
    .list-items-container {
        max-height: 40vh;
        height: 40vh;
        overflow-y: auto;
    }
}

/* Large screens */
@media screen and (min-height: 800px) {
    .list-items-container {
        max-height: 50vh;
        height: 50vh;
        overflow-y: auto;
    }
}

/* Extra large screens */
@media screen and (min-height: 1000px) {
    .list-items-container {
        max-height: 55vh;
        height: 55vh;
        overflow-y: auto;
    }
}

/* Default maxHeight for small screens */
.selected-items-container {
    max-height: 50vh; /* Adjust as needed */
    overflow-y: auto;
}

/* Medium screens */
@media screen and (min-height: 600px) {
    .selected-items-container {
        max-height: 45vh;
        height: 45vh;
        overflow-y: auto;
    }
}

/* Large screens */
@media screen and (min-height: 800px) {
    .selected-items-container {
        max-height: 45vh;
        height: 45vh;
        overflow-y: hidden;
    }
}

/* Extra large screens */
@media screen and (min-height: 1000px) {
    .selected-items-container {
        max-height: 60vh;
        height: 60vh;
        overflow-y: auto;
    }
}
#printable table{
    width: 100%; font-size: 11px;
}
#printable table thead tr{
    border-bottom: 1px solid black;
    text-align: left;
    border-bottom: 1px solid black;
}
#printable .store{
    font-size: 12px;
}
#printable .company{
    font-size: 13px;
}
#printable .date-receipt,
#printable .address,
#printable .telephone,
#printable .developer,
#printable .message {
    font-size: 11px;
}
#printable .right{
    float: right;
}
#printable .developer, #printable .message{
    text-align: center;
}
@media print {
    html, body {
        height: 100vh;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden;
    }
}

.table-with-even-rows {
    border-collapse: collapse;
    width: 100%;
}

.table-with-even-rows tr:nth-child(odd) {
    background-color: #1f1d30 !important; /* Set the background color for even rows */
}

.table-with-even-rows-white tr:nth-child(odd) {
    background-color: #f7f7f7 !important; /* Set the background color for even rows */
}
.fc .fc-daygrid-day-frame{
    background: linear-gradient(135deg, transparent 15px, rgba(160, 136, 136, 0.94) 0);
    border: 5px solid #281c3b;
    box-shadow: 0 0 15px rgba(107, 107, 107, 0.5);
}
.fc.fc-theme-standard .fc-highlight{
    background: linear-gradient(135deg, transparent 15px, rgba(1, 121, 124, 0.33) 0);
}
.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-body{
    background-color: #5b6045
}

.fc.fc-theme-standard .fc-view-harness .fc-popover .fc-popover-header{
    background-color: #043a17
}
.fc .fc-daygrid-day.fc-day-today{
    background: linear-gradient(135deg, transparent 15px, rgba(220, 156, 156, 0.94) 0);
    border: 5px solid #049f51;
    box-shadow: 0 0 15px rgba(218, 79, 218, 0.5);
}
/*!* Adjust the height of each day cell in the calendar *!*/
/*.fc-daygrid-day {*/
/*    height: 10px; !* Change this value to adjust the height *!*/
/*    min-height: 150px; !* Ensure it doesn't shrink below this value *!*/
/*}*/

/*!* Adjust the width of the columns *!*/
/*.fc-daygrid-day-frame {*/
/*    width: 100px; !* Change this value to adjust the width *!*/
/*}*/

/*!* If you want to adjust the header cell size *!*/
/*.fc-col-header-cell {*/
/*    height: 50px; !* Change the header height *!*/
/*    line-height: 50px; !* Center the text vertically in the header *!*/
/*}*/

/* Add to your custom_1.css file */
.loader12__path-left,
.loader12__path-top,
.loader12__path-right {
    animation: colorchange 3s infinite alternate;
}

.loader12__path-left {
    animation-delay: 0s;
}

.loader12__path-top {
    animation-delay: 1s;
}

.loader12__path-right {
    animation-delay: 2s;
}

@keyframes colorchange {
    0% { stroke: #ff5252; }
    25% { stroke: #4caf50; }
    50% { stroke: #2196f3; }
    75% { stroke: #9c27b0; }
    100% { stroke: #ff9800; }
}

.pdf-viewer {
    max-width: 600px;
    max-height: 80vh;  /* Limit height to 80% of the viewport */
    overflow-y: auto;  /* Enable vertical scrolling if needed */
    margin: 20px auto;
}
.responsive-img {
    width: 100%;            /* Scales to the container’s width */
    height: auto;           /* Maintains aspect ratio */
}

/* Base styles for all screen sizes */
.bar-container {
    height: auto; /* Full viewport height by default */
    min-height: 90vh;
    overflow-y: auto; /* Enable scrolling if content is too large */
}

.selling-bar-items {
    height: 65vh; /* Default height */
    overflow-y: auto;
}

.bar-items {
    height: 75vh; /* Default height */
}
.laundry-container{
    height:90vh;
}
.laundry-items{
    height:70vh;
    overflow-y: auto;
}
.laundry-right-side{
    height:92vh;
}
.laundry-selling-items{
    height:64vh;
    overflow-y: auto;
}
.restaurant-dashboard-container{
    display:grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-gap: 10px;
    height:50vh
}

.restaurant-order-container{
    height: 93vh;
}
.restaurant-order-details-container{
    height: 92vh;
}
.restaurant-order-items-container{
    height: 65vh;
    overflow-y: auto;
}
/* Large screens (Desktops) */
@media only screen and (min-width: 1901px) {
    .bar-container {
        height: 90vh;
    }

    .selling-bar-items {
        height: 55vh;
    }

    .bar-items {
        height: 85vh;
        max-height:85vh;
    }
    .restaurant-order-container{
        height: 93vh;
    }
    .restaurant-order-details-container{
        height: 92vh;
    }
    .restaurant-order-items-container{
        height: 100%;
        overflow-y: auto;
    }
}

/* Standard desktop screens */
@media only screen and (max-width: 1920px) and (min-width: 1901px) {
    .bar-container {
        height: 90vh;
    }

    .selling-bar-items {
        height: 60vh;
    }
    .bar-items {
        height: 100%;
        /*max-height: 73vh;*/
    }
    .bar-items-container {
        height:70%;
        max-height:70%;
    }
    .restaurant-order-container{
        height: 93vh;
        overflow-y: auto;
    }
    .restaurant-order-details-container{
        height: 90vh;
    }
    .restaurant-order-items-container{
        height: 70vh;
        overflow-y: auto;
    }
}

/* Smaller desktop screens */
@media only screen and (max-width: 1900px) and (min-width: 1025px) {
    .bar-container {
        height: 91vh;
        max-height: 91vh;
    }
    .bar-items-container {
        height:65%;
        max-height:65%;
    }
    .selling-bar-items {
        height: 53vh;
    }

    .bar-items {
        height: 100%;
        max-height: 88vh;
    }
}

/* Medium screen (Tablets) */
@media only screen and (max-width: 1024px) and (min-width: 769px) {
    .bar-container {
        height: 80vh;
    }

    .selling-bar-items {
        height: 50vh;
        max-height: 50vh;
    }

    .bar-items {
        height: 60vh;
        max-height: 60vh;
    }
    .laundry-container{
        height:92vh;
    }
    .laundry-items{
        height:84vh;
        overflow-y: auto;
    }
    .laundry-right-side{
        height:92vh;
    }
    .laundry-selling-items{
        height:64vh;
        overflow-y: auto;
    }
}

/* Small screen (Mobile Landscape & Small Tablets) */
@media only screen and (max-width: 768px) and (min-width: 481px) {
    .bar-container {
        height: auto;
    }

    .selling-bar-items {
        height: auto;
    }

    .bar-items {
        /* Allow this area to scroll */
        flex: 1; /* Take remaining space */
        overflow-y: auto;
        /* Optional: ensure it doesn't overflow its container */
        max-height: 100%;
    }
    .bar-items-container {
        height:auto;
    }
    .laundry-container {
        /* Keep container in viewport */
        position: relative;
        height: auto; /* or a specific fixed height */
        display: flex;
        flex-direction: column;
    }

    .laundry-items {
        height: auto;
        /*background-color: rgb(50, 140, 79);*/
    }
    .laundry-right-side{
        height:auto;
    }
    .laundry-selling-items{
        height:auto;
    }

    .restaurant-order-container{
        height: auto;
    }
    .restaurant-order-details-container{
        height: 100vh;
    }
    .restaurant-order-items-container{
        height: auto;
    }
}

/* Extra Small screen (Mobile Portrait) */
@media only screen and (max-width: 480px) {
    .bar-container {
        height: auto;
    }

    .selling-bar-items {
        height: auto;
    }
    .bar-items{
        /* Allow this area to scroll */
        flex: 1; /* Take remaining space */
        overflow-y: auto;
        /* Optional: ensure it doesn't overflow its container */
        max-height: 100%;

    }

    .bar-items-container {
        height:auto;
        /*max-height: 45vh;*/
    }
    .laundry-container {
        /* Keep container in viewport */
        position: relative;
        height: auto; /* or a specific fixed height */
        display: flex;
        flex-direction: column;
    }

    .laundry-items {
        height: auto;
        overflow-y: auto;
    }
    .laundry-right-side{
        height:auto;
    }
    .laundry-selling-items{
        height:auto;
    }
    .restaurant-order-container{
        height: auto;
    }
    .restaurant-order-details-container{
        height: 100vh;
    }

    .restaurant-order-items-container{
        height: auto;
    }
}

/* Adding a sticky class you can apply to elements that need to be sticky */
.sticky-element {
    position: sticky;
    top: 0;
    z-index: 10;
    background: inherit; /* Inherit background from parent */
}


.p-datatable-thead{
    position: sticky;
    top:0;
    z-index: 1;
}
/* Custom CSS for FoodMenuItem */

/* Ensures the Card itself acts as a container for alignment and spacing */
.food-menu-item-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distributes space between image and content */
    height: auto; /* Ensures card takes available height in a grid */
    padding: 0; /* Remove default card padding to control spacing better */
}

/* Adjustments for the Avatar size to closely match the screenshot */
.menu-item-avatar {
    /* The inline style in the component already sets width/height,
       but you can override or refine here if needed for responsiveness */
    /* width: 8rem;
    height: 8rem; */
    border: 4px solid var(--surface-card, #ffffff);
    object-fit: cover; /* Ensures image covers the circle without distortion */
}

/* Specific adjustments for the content within the card */
.food-menu-item-card .p-card-body {
    padding: 0; /* Remove default p-card-body padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.food-menu-item-card h3 {
    min-height: 2.5em; /* Ensures consistent height for titles across items */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
}


/* Adjust Tag styling if needed, though p-tag-secondary should be fine */
.food-menu-item-card .p-tag-secondary {
    font-size: 0.85rem; /* Slightly smaller for the tag */
    padding: 0.3em 0.6em;
}

/* Responsive adjustments if necessary (example for smaller screens) */
@media screen and (max-width: 768px) {
    .menu-item-avatar {
        width: 7rem !important; /* Smaller on medium screens */
        height: 7rem !important;
    }
    .food-menu-item-card h3 {
        font-size: 0.95rem;
    }
    .food-menu-item-card p {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 576px) {
    .menu-item-avatar {
        width: 6rem !important; /* Even smaller on small screens */
        height: 6rem !important;
    }
    .food-menu-item-card h3 {
        font-size: 0.9rem;
    }
    .food-menu-item-card p {
        font-size: 1rem;
    }
}


.sticky-header {
    position: sticky;
    top: 0;
    z-index: 10000;
    background: white;
    padding: 1rem;
    width: 100%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.tracking-container {
    padding: 1rem;

    .timeline-event {
        padding: 1rem;
        background: var(--surface-card);
        border-radius: 6px;
        box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);

        h3 {
            margin: 0 0 0.5rem 0;
            color: var(--primary-color);
        }

        .text-color-secondary {
            color: var(--text-color-secondary);
        }
    }

    .tracking-info, .tracking-details {
        p {
            margin: 0.5rem 0;
        }
    }
}
.log-container {
    max-height: 70vh;
    overflow-y: auto;
    background-color: var(--surface-ground);
    border: 1px solid var(--surface-border);
    border-radius: 6px;
    padding: 0.5rem;

    .log-entry {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        border-radius: 4px;
        background-color: var(--surface-card);
        border-left: 3px solid var(--primary-color);

        &.log-error {
            border-left-color: var(--red-500);
        }

        &.log-warn {
            border-left-color: var(--yellow-500);
        }

        &.log-success {
            border-left-color: var(--green-500);
        }

        &.log-info {
            border-left-color: var(--blue-500);
        }
    }

// Custom scrollbar
&::-webkit-scrollbar {
    width: 6px;
}

    &::-webkit-scrollbar-track {
        background: var(--surface-100);
        border-radius: 3px;
    }

    &::-webkit-scrollbar-thumb {
        background: var(--surface-400);
        border-radius: 3px;

        &:hover {
            background: var(--surface-500);
        }
    }
}
.credit-manager {
    .p-datatable {
        .p-datatable-thead > tr > th {
            background-color: var(--surface-100);
            color: var(--text-color);
            border: 1px solid var(--surface-300);
            font-weight: 600;
        }

        .p-datatable-tbody > tr:hover {
            background-color: var(--surface-50);
        }
    }

    .p-card {
        box-shadow: 0 2px 1px -1px rgba(0,0,0,.2), 0 1px 1px 0 rgba(0,0,0,.14), 0 1px 3px 0 rgba(0,0,0,.12);

        .p-card-body {
            padding: 1rem;
        }
    }

    .p-tabview {
        .p-tabview-nav {
            background: var(--surface-card);
            border: 1px solid var(--surface-border);
            border-bottom: 0 none;
        }

        .p-tabview-panels {
            background: var(--surface-card);
            border: 1px solid var(--surface-border);
            color: var(--text-color);
        }
    }

    .debt-progress {
        .p-progressbar {
            height: 6px;
            background: var(--surface-300);
            border-radius: 3px;
            overflow: hidden;

            .p-progressbar-value {
                border-radius: 3px;
            }
        }
    }

    .summary-card {
        transition: transform 0.2s;

        &:hover {
            transform: translateY(-2px);
        }
    }

    .customer-status {
        &.active {
            background-color: var(--green-100);
            color: var(--green-800);
        }

        &.suspended {
            background-color: var(--yellow-100);
            color: var(--yellow-800);
        }

        &.blocked {
            background-color: var(--red-100);
            color: var(--red-800);
        }
    }
}


@media (max-width: 768px) {
    .credit-manager {
        .p-datatable {
            font-size: 0.875rem;
        }

        .grid > .col-12 {
            padding: 0.5rem;
        }

        .p-dialog {
            width: 95vw !important;
            margin: 0;
        }
    }
}
