﻿/* CRUD System - Core Layout */
.crud-form-input {
    width: 100%;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    border: thin solid #ccc;
}
.input-group {
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 4px;
    padding: 0 4px;
}
/*
span.crud-form-prefix {
    position: absolute;
    left: 10px;
    color: #666;
}
*/

    .crud-form-input:focus {
        border-color: #0066cc;
        outline: none;
    }

.crud-form-input[type="time"] {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
}
    .crud-form-input[type="number"],
    .crud-form-input[type="date"] {
        width: 100%;
        padding: 5px 2px;
        border-radius: 4px;
        font-size: 0.9em;
        appearance: none;
        -webkit-appearance: none;
        background-color: white;
    }

        .crud-form-input[type="time"]::-webkit-calendar-picker-indicator,
        .crud-form-input[type="number"]::-webkit-inner-spin-button,
        .crud-form-input[type="number"]::-webkit-outer-spin-button {
            opacity: 1;
        }

   

/* CRUD Layout Container */
.crud-container {
    min-width: 350px;
    max-width: 1200px;
    width: 100%;
    margin: 65px auto;
    padding: 0 15px;
}

.crud-container-pickup {
    min-width: 350px;
    max-width: 600px;
    width: 100%;
    margin: 75px auto;
    padding-bottom: 50px;
}

/* CRUD Header Section */
.crud-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    line-height: 1.7;
}

.crud-title {
    font-family: OpenSans-SemiBold;
    font-size: 1.5em;
    color: #333;
}

/* CRUD Search Section */
.crud-search {
    margin-bottom: 20px;
}

.crud-search-row {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
}

.crud-search-input {
    flex: 1;
    padding: 8px 15px;
    border: none;
    font-size: 0.9em;
    color: #555;
}

select.crud-filter-select {
    text-align: left;
    font-size: 0.9em;
}

.crud-search-filter {
    min-width: 200px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
    background-color: #fff;
    cursor: pointer;
    appearance: none;

}

    .crud-search-filter:focus {
        border-color: #0066cc;
        outline: none;
    }

    /* Cart counter sort */
.restaurant-filter {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
}

.restaurant-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.cart-item {
    display: block;
}

    .cart-item.hidden {
        display: none !important;
    }

.cart-modal-total {
    display: block;
    padding: 15px;
    border-top: 1px solid #eee;
    background: #fff;
    position: sticky;
    bottom: 0;
}

.modal-checkout-button {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 12px;
    background: #007bff;
    color: white;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

    .modal-checkout-button:hover {
        background: #0056b3;
    }
/* CRUD Table Layout */
select.form-control.user-roles {
    width: max-content;
    padding: 7px 10px;
}

.crud-table-container {
    width: 100%;
    overflow-x: auto;
    background-color: transparent;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px;
}

.crud-table {
    width: 100%;
    border-collapse: collapse;
}

    .crud-table th {
        padding: 12px 15px;
        font-family: Calibri;
        font-size: 0.8em;
        color: #555;
        text-transform: uppercase;
        background: #f8f9fa;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .crud-table td {
        padding: 15px;
        font-size: 0.9em;
        border-bottom: 1px solid #eee;
        vertical-align: top;
        background-color: transparent;
    }

    .crud-table tr:hover {
        background: #f8f9fa;
    }

/* Content styles */
.crud-name {
    font-family: OpenSans-Regular;
    font-size: 0.95em;
    color: #333;
    text-align: left;
    margin-bottom: 3px;
}

.crud-description {
    font-family: OpenSans-Regular;
    font-size: 0.85em;
    color: #555;
    text-align: left;
}

.crud-content {
    font-family: OpenSans-Regular;
    font-size: 0.9em;
    color: #333;
    text-align: left;
    margin-bottom: 3px;
}

.crud-email {
    color: #0066cc;
}

/* CRUD Card Layout */
.crud-cards {
    display: none;
    gap: 1rem;
    padding: 1rem;
}

.crud-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.crud-card-header {
    padding: 1rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.crud-card-body {
    padding: 15px;
    line-height: 1.3;
}

.crud-card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 10px;
}

.crud-label {
    font-family: Calibri;
    font-size: 0.8em;
    color: #666;
    padding-bottom: 5px;
}

.crud-value {
    font-family: OpenSans-Regular;
    font-size: 0.9em;
    color: #333;
    text-align: left;
    margin-bottom: 3px;
}

/* Button Container Layouts - Keeping these for structural purposes */

.quantity-input {
   
}

.quantity-control {
    width: min-content;
    display: flex;
    flex-direction: row;
    justify-content: center;
    border: thin solid #eee;
    border-radius: 7px;
    background-color: #fff;
}
.quantity-control:hover {
    background-color: #fff;
}

.crud-actions {
    display: flex;
    padding: 5px;
    gap: 15px;
    justify-content: flex-end;
   
}


.crud-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* CRUD Form Layout */
.crud-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px;
}

.crud-form-group {
    margin-bottom: 15px;
}

.crud-form-label {
    display: block;
    margin-bottom: 5px;
    font-family: Calibri;
    font-size: 0.8em;
    color: #777;
    text-transform: lowercase;
}



/* Detail Layouts */
.crud-details {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px;
}

.crud-details-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.crud-details-body {

}

.crud-details-group {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.crud-details-label {
    font-family: Calibri;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.crud-details-value {
    font-family: OpenSans-Regular;
    font-size: 0.95em;
    color: #333;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

    .status-badge.open {
        background-color: #e8f5e9;
        color: #2e7d32;
    }

    .status-badge.closed {
        background-color: #ffebee;
        color: #c62828;
    }

/* Service Options */
.service-options {
    display: flex;
    gap: 5px;
}

.option-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

    .option-badge.pickup {
        background-color: #e3f2fd;
        color: #1976d2;
    }

    .option-badge.delivery {
        background-color: #f3e5f5;
        color: #7b1fa2;
    }



/* Modal Layout */
.crud-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.2s ease-in;
}

.crud-modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    max-width: 450px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.2s ease-out;
}

.crud-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crud-modal-body {
    padding: 20px;
    font-family: OpenSans-Regular;
    font-size: 0.95em;
    color: #555;
}

.crud-modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #eee;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 10px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Create Invoice */


span.field-label {
    font-family: Calibri;
    font-size: 0.8em;
    text-transform: lowercase;
    
}
.order-card-title {
    display: flex;
    flex-direction: column;
}
.order-card-field-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    border-radius: 7px;
    border: thin solid #eee;
}
.order-card-action {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    
}
.action-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
}
button.btn-order-delete {
    background-color: #777;
    color: #eee;
    font-size: 0.85em;
    border-radius: 5px;
    padding: 2px 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .crud-header {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .crud-search-row {
        flex-direction: column;
        padding: 10px;
    }

    .crud-search-filter,
    .crud-search-input {
        width: 100%;
        margin: 5px 0;
    }

    .crud-form-actions {
        flex-direction: column-reverse;
    }

    .crud-card-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .crud-actions {
        flex-direction: row;
        justify-content: space-between;

    }
}

@media (max-width: 480px) {
    .crud-container {
        padding: 0 10px;
    }

    .crud-form {
        padding: 15px;
        margin: 10px;
    }

    .crud-details-group {
        padding: 15px;
        margin: 10px 0;
    }

    .crud-form-label {
        font-size: 0.85em;
    }



    .crud-input-group .crud-form-input {
        font-size: 16px;
    }
}

/* Business hours edit page */

.crud-form-suffix {
    position: absolute;
    right: 10px;
    color: #666;
    z-index: 1;
}

.input-group input {
    padding-left: 40px; /* For prefix */
    padding-right: 45px; /* For suffix */
}

.crud-details-group {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px;
    margin-bottom: 20px;
}
.crud-help-banner {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    margin: 10px auto;
}
.crud-help-text {
    font-family: Calibri;
    font-size: 0.85em;

    color: #666;
}


.crud-info-alert {
    background: #f8f9fa;
    border-left: 4px solid #0066cc;
    padding: 10px 15px;
    margin: 10px 0;
    font-size: 0.9em;
    color: #555;
}

.crud-help-icon {
    font-size: 1em;
    color: #0066cc;
    cursor: help;
}

.service-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .crud-form {
        padding: 15px;
    }

    .crud-form-row {
        flex-direction: column;
    }

    .crud-form-group {
        width: 100%;
    }

    .input-group {
        width: 100%;
    }

    .crud-details-group {
        padding: 15px;
    }

    .crud-form-actions {
        flex-direction: column;
    }

        .crud-form-actions button,
        .crud-form-actions a {
            width: 100%;
            text-align: center;
        }
}

@media (max-width: 480px) {
    .crud-container {
        margin: 20px auto;
    }

    .crud-header {
        padding: 10px;
    }

    .crud-title {
        font-size: 1.2em;
    }

    .crud-details-label {
        font-size: 1em;
    }

    .crud-info-alert {
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .input-group input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Pickup Modal */
.crud-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
    justify-content: center;
    align-items: center;
}

.crud-modal-content {
    background-color: #fefefe;
    padding: 0px;
    border-radius: 5px;
    position: relative;
    width: 95%;
    max-width: 500px;
}

.modal-close {
    position: absolute;
    right: 10px;
    top: 10px;
    cursor: pointer;
    font-size: 20px;
    background: none;
    border: none;
}
.order-summary {
    margin: 20px 0;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

    .order-summary h4.pickup-headline {
        padding: 0;
        margin-bottom: 10px;
        color: #333;
    }

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: thin solid #eee;
}

    .summary-row.total {
        font-weight: bold;
        border-bottom: none;
    }

.action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.crud-action-btn-edit {
    padding: 6px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    float: right;
}

    .crud-action-btn-edit:hover {
        opacity: 0.9;
    }

.icon-edit {
    width: 16px;
    height: 16px;
    filter: invert(1);
}

/* Pickup Modal */
/* Pickup Modal Core Layout */
.crud-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.2s ease-in;
}

.crud-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    max-width: 500px;
    width: 95%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.2s ease-out;
}

.crud-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crud-modal-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}



/* Form Elements */
.crud-form-group {
    margin-bottom: 15px;
}

.crud-form-label {
    display: block;
    margin-bottom: 5px;
    font-family: Calibri;
    font-size: 0.8em;
    color: #777;
    text-transform: lowercase;
}



    .crud-form-input:focus {
        border-color: #0066cc;
        outline: none;
    }

/* Restaurant Info Section */
.info-section {
        border-bottom: thin solid #ccc;
        margin: 15px 0;

}
    .info-section.customer {
        padding-bottom: 45px;
    }

    h4.pickup-headline {
        font-size: 1.1em;
        color: #333;
        margin-bottom: 15px;
        background-color: transparent;
    }

    .info-section.restaurant .crud-form-input[readonly] {
        background-color: #f8f9fa;
        color: #666;
    }

/* Special Input Types */
.crud-form-input[type="time"],
.crud-form-input[type="date"] {
    padding: 5px 10px;
    appearance: none;
    -webkit-appearance: none;
    background-color: white;
}

textarea.crud-form-input {
    min-height: 80px;
    resize: vertical;
}

/* Modal Actions */
.crud-action-btn {

}

    .crud-action-btn:not([type="submit"]) {
        background-color: #777;
        color: white;
    }

    .crud-action-btn[type="submit"] {
        background-color: #0066cc;
        color: white;
    }

.modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #777;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}


    .crud-action-btn-edit {
        width: max-content;
        padding: 7px 12px;
        color: #eee;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        float: right;
    }


/* Responsive Adjustments */
@media (max-width: 768px) {
    .crud-modal-content {
        margin: 10% auto;
        width: 90%;
    }

    .crud-modal-body {
        padding: 15px;
        max-height: calc(100vh - 150px);
    }

    .crud-form-input {
        font-size: 16px; /* Prevents zoom on mobile */
    }
}

@media (max-width: 480px) {
    .crud-modal-content {
        margin: 5% auto;
        width: 95%;
    }



}
/* End of Pickup Modal */


/* Pickup Modal Date and Time */
.business-hours-status {
    text-align: center;
    border-radius: 4px;
    padding-bottom: 15px;
}

    .business-hours-status.open .status-indicator {
        color: #22c55e;
        font-weight: bold;
    }

    .business-hours-status.closed .status-indicator {
        color: #ef4444;
        font-weight: bold;
    }

.current-datetime {
    margin: 8px 0;
    color: #4b5563;
}

.hours-info {
    color: #374151;
}
.timezone-info {
    font-size: 0.85em;
    padding: 5px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 8px;
    border-bottom: thin solid #eee;
    font-size: 0.9em;
}

    .schedule-row.closed {
        color: #999;
    }

.day-name {
    font-weight: 500;
    width: 100px;
}

.schedule-row.open .hours-status {
    color: #444;
}

.schedule-row.closed .hours-status {
    color: #dc3545;
}

/* Date Picker */
.pickup-datetime-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
}

.form-group {
    margin-bottom: 1rem;
    border: none;
}

.form-message {
    font-size: 0.85rem;
    color: #444;
    background: #eee;
    padding: 7px;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 25px;
}

.crud-form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 0.25rem;
    
}

    .crud-form-input:disabled {
        background-color: #f5f5f5;
        cursor: not-allowed;
    }

.crud-form-label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

/* Styling for "Closed" options */
.option-closed {
    color: orangered; /* Red text color */
    font-weight: bold; /* Make it stand out */
}
.schedule-row.highlight {
    background-color: #eee; /* Or any color you prefer */
    font-weight: bold;
}


/* Delete layout for BusinessHours */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.crud-btn--danger {
    background-color: #dc3545;
    color: white;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    height: 80%;
    border-radius: 8px;
    overflow: hidden;
}


/* Process Pickup */
/* Process Pickup Styles */
.pickup-container {
    max-width: 600px;
    margin: 85px auto;
    padding: 1.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Restaurant Info Section */
.restaurant-info {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

    .restaurant-info h3 {
        color: #333;
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
        font-weight: 600;
    }

    .restaurant-info address {
        font-style: normal;
        line-height: 1.5;
        color: #4b5563;
        font-size: 0.9rem;
    }


.user-profile-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.user-info {
    display: flex;
    gap: 0.5rem;
}

.info-label {
    font-weight: 600;
    color: #6c757d;
}

.info-value {
    color: #212529;
}

.btn-profile {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

    .btn-profile:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

/* Process Pickup Specific Styles */
.pickup-container {
    max-width: 800px;
    margin: 65px auto;
    padding: 1.5rem;
}

.restaurant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.user-profile-summary {
    margin-top: 1rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.user-info {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.info-label {
    font-family: Calibri;
    font-size: 0.8em;
    color: #666;
    min-width: 80px;
}

.info-value {
    font-family: OpenSans-Regular;
    font-size: 0.9em;
    color: #333;
}



.business-hours-status {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .pickup-container {
        margin: 20px auto;
        padding: 1rem;
    }

    .user-profile-summary {
        flex-direction: column;
        gap: 1rem;
    }

    .profile-details {
        width: 100%;
    }

    .user-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .info-label {
        min-width: auto;
    }

    .crud-form-actions {
        flex-direction: column-reverse;
        gap: 1rem;
    }

        .crud-form-actions a,
        .crud-form-actions button {
            width: 100%;
            text-align: center;
        }
}



/* Pickup Page */

.overall-total {
    display: flex;
    padding: 0 0 20px;
}
.footer-pickup-btn {
    text-align: right;
}

.settings-pickup-container, .settings-delivery-container {
    min-width: 350px;
    max-width: 600px;
    width: 100%;
    margin: 75px auto;
    padding-bottom: 30px;
    border-left: thin solid #eee;
    border-right: thin solid #eee;

}
.settings-confirmation {
    min-width: 350px;
    max-width: 600px;
    width: 100%;
    margin: 80px auto;
}
.settings-container {
    padding: 10px;
    border-radius: 8px;
    font-family: system-ui, -apple-system, sans-serif;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}
.setting-grid-row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    background: #fff;
}

.settings-section {
    background: white;
    padding: 16px;
    border-radius: 6px;
}
.settings-section p {
    color: #666;
    padding: 3px 0;
    font-family: Calibri;
    font-size: 1em;
}

    .settings-section h3, .settings-container h3 {
        color: #2c3e50;
        margin: 0 0 12px 0;
        font-size: 16px;
        font-weight: 600;
        padding-bottom: 8px;
        border-bottom: 1px solid #eee;
        text-transform: uppercase;
    }

    .settings-section h3.restaurant-name {
        border: none;
        margin: 0;
        padding: 0;
        color: #666;
        font-family: Calibri;
        text-transform: uppercase;
        font-size: 1em;
    }

.settings-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .settings-list li {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: 4px 0;
        color: #4a5568;
        font-size: 1em;
    }

        .settings-list li:last-child {
            border-bottom: none;
        }

.settings-label {
    color: #718096;
}

.settings-value {
    font-weight: 500;
    color: #2d3748;
}

li.side-by-side {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 5px; /* Adjust spacing as needed */
}

.side-by-side .item {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 8px;
    border: 1px solid #eee;
    border-radius: 4px;
    background-color: #f9f9f9;
}

span.item-label {
    text-transform: lowercase;
    font-family: Calibri;
    font-size: 0.8em;
    color: #777!important;
    padding: 7px 0;
}
li.settings-action {
   float: right;
}
li.settings-action .btn {
    padding: 8px 12px;
    background: #444;
    color: #eee;
    font-size: 0.85em;
}



@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .settings-container {
        margin: 0;
        padding: 0;
    }
}

.time-option-disabled {
    color: #A0AEC0 !important; /* gray color */
}



/* Order Details Layout Updates */
.order-details-container {
    min-width: 350px;
    max-width: 600px;
    width: 100%;
    margin: 75px auto;
    padding-bottom: 30px;
    border-left: thin solid #eee;
    border-right: thin solid #eee;
}

.order-details-header {
    padding: 10px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.order-details-title {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
    padding: 10px 0;
}

.order-number {
    color: #666;
    font-family: Calibri;
    font-size: 1em;
    margin: 5px 0;
}

.order-details-section {
    background: white;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 15px;
}

    .order-details-section h3 {
        color: #2c3e50;
        margin: 0 0 12px 0;
        font-size: 16px;
        font-weight: 600;
        padding-bottom: 8px;
        border-bottom: 1px solid #eee;
        text-transform: uppercase;
    }

.order-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .order-details-list li {
        padding: 4px 0;
        color: #4a5568;
        font-size: 1em;
    }

        .order-details-list li.side-by-side {
            display: flex;
            flex-direction: row;
            justify-content: space-between;
            gap: 5px;
        }

    .order-details-list .item {
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 8px;
        border: 1px solid #eee;
        border-radius: 4px;
        background-color: #f9f9f9;
    }

.order-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

    .order-details-table th {
        padding: 12px 8px;
        font-family: Calibri;
        font-size: 0.8em;
        color: #555;
        text-transform: uppercase;
        background: #f8f9fa;
        text-align: left;
        border-bottom: 1px solid #eee;
    }

    .order-details-table td {
        padding: 12px 8px;
        font-size: 0.9em;
        border-bottom: 1px solid #eee;
        vertical-align: top;
    }

.status-badges {
    display: flex;
    gap: 8px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .order-details-container {
        margin: 20px auto;
        padding: 0 10px;
    }

    .order-details-list li.side-by-side {
        flex-direction: column;
        gap: 10px;
    }

    .order-details-table {
        font-size: 0.9em;
    }
}

/* CreateInvoice page */
.footer-actions {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
}

.action-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.crud-action-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.2s;
}

.pickup-btn {
    background-color: #2563eb;
    color: white;
}

.delivery-btn {
    background-color: #059669;
    color: white;
}

.crud-action-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}



/* Kitchen Order Page */
.kitchen-orders-container {
    min-width: 350px;
    max-width: 100%;
    width: 100%;
    padding: 1rem;
    margin: 75px auto;
}

.kitchen-orders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.kitchen-order-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
}

    .kitchen-order-card.urgent {
        border-left: 3px solid #f59e0b;
    }

    .kitchen-order-card.overdue {
        border-left: 3px solid #ef4444;
    }

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.order-number {
    font-weight: 500;
}

.status-badge {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.pickup-time {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.time-status {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

    .time-status.overdue {
        color: #dc2626;
    }

.order-info {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

    .order-info > div {
        margin-bottom: 0.25rem;
    }

.view-details-btn {
    display: block;
    background: #2563eb;
    color: white;
    text-align: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-size: 0.875rem;
}

    .view-details-btn:hover {
        background: #1d4ed8;
    }


/* KitchenDetails Page */

.kitchen-details-container {
    max-width: 800px;
    margin: 75px auto;
    padding: 1rem;
}

.kitchen-details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

.header-left h2 {
    margin: 0 0 0.5rem 0;
}

.pickup-time {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af;
    text-align: right;
}

.time-status {
    color: #4b5563;
    font-size: 0.875rem;
    text-align: right;
}

    .time-status.overdue {
        color: #dc2626;
    }

.order-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.item-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.item-quantity {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e40af;
}

.item-name {
    font-size: 1.125rem;
    font-weight: 500;
}

.conditions-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.condition-tag {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.special-requests {
    color: #4b5563;
    font-size: 0.875rem;
    padding: 0.5rem;
    background: #fff3cd;
    border-radius: 0.25rem;
}

.order-instructions {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 0.5rem;
}

    .order-instructions h3 {
        margin: 0 0 0.5rem 0;
        font-size: 1rem;
    }

.details-footer {
    margin-top: 1.5rem;
    text-align: center;
}

.back-btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #2563eb;
    color: white;
    text-decoration: none;
    border-radius: 0.375rem;
}

    .back-btn:hover {
        background: #1d4ed8;
    }

.status-badge {
    background: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}


/* ProcessDelivery page */
.crud-action-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button-loading {
    display: none;
}

/* Optional: Add a spinner animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.button-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}


/* Index Current Time running */


.status-indicator {
    display: inline-flex;
    align-items: center;
    align-content: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 7px;
    font-family: Calibri;
}

    .status-indicator.open {
        background-color: #dcfce7;
        color: #166534;
    }

    .status-indicator.closed {
        background-color: #fee2e2;
        color: #991b1b;
    }

.current-time {
    opacity: 0.9;
}


/* Sorting Index Category */
.category-button-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    margin: 0 4px;
}

.category-description-wrapper {
    position: relative;
    margin-left: 8px;
    cursor: help;
}

.category-info-icon {
    font-size: 0.8em;
    color: #666;
}

.category-description-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: max-content;
    max-width: 200px;
    margin-bottom: 8px;
    z-index: 100;
}

.category-description-wrapper:hover .category-description-popup {
    display: block;
}

/* Add arrow */
.category-description-popup::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid white;
}

/* MAP show hide in Index page */
.container-map {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

.map {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 8px;
}

/* Map toggle switch styles */
.map-toggle-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
}

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 10px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #2196F3;
}

    input:checked + .slider:before {
        transform: translateX(26px);
    }

.toggle-label {
    margin-left: 10px;
}