   :root {
     --primary-color: #9575CD;
     --secondary-color: #7E57C2;
     --accent-color: #B39DDB;
     --light-purple: #D1C4E9;
     --dark-purple: #673AB7;
     --danger-color: #EF5350;
     --success-color: #66BB6A;
     --warning-color: #FFA726;
     --light-bg: #F5F5F5;
     --dark-text: #212529;
     --light-text: #757575;
   }

   body {
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     height: 100vh;
     /* overflow: hidden; */
     background-color: #FAFAFA;
     color: var(--dark-text);
     font-size: 0.85rem;
   }

   label {
     text-transform: capitalize;
   }

   .pos-header {
     background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
     color: white;
     box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
     padding: 6px 12px;
     position: sticky;
     top: 0;
     z-index: 1050;
   }

   .pos-container {
     height: calc(100% - 48px);
     background-color: white;
     border-radius: 8px;
     box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
     overflow: hidden;
     margin: 6px;
     display: flex;
     flex-direction: column;
   }

   .main-content {
     display: flex;
     flex: 1;
     overflow: hidden;
     flex-direction: column;
   }

   @media (min-width: 992px) {
     .main-content {
       flex-direction: row;
     }
   }

   .sidebar {
     width: 100%;
     background-color: white;
     border-right: 1px solid #EDE7F6;
     overflow-y: auto;
     flex-shrink: 0;
     padding: 4px !important;
   }

   @media (min-width: 768px) {
     .sidebar {
       width: 160px;
     }
   }

   .category-item {
     border-radius: 6px;
     margin: 2px;
     font-weight: 500;
     transition: all 0.2s;
     white-space: nowrap;
     overflow: hidden;
     text-overflow: ellipsis;
     border: none;
     background-color: transparent;
     text-align: left;
     padding: 6px 8px;
     font-size: 0.8rem;
     color: var(--dark-text);
   }

   .category-item:hover,
   .category-item.active {
     background-color: var(--light-purple);
     color: var(--dark-purple);
   }

   .items-section {
     flex: 1;
     background-color: white;
     overflow-y: auto;
     padding: 4px !important;
   }

   .item-search {
     border-radius: 20px;
     padding: 8px 12px;
     border: 1px solid #EDE7F6;
     box-shadow: none;
     font-size: 0.8rem;
   }

   .item-search:focus {
     border-color: var(--primary-color);
     box-shadow: 0 0 0 0.2rem rgba(149, 117, 205, 0.25);
   }

   .item-card {
     cursor: pointer;
     transition: all 0.2s;
     border-radius: 8px;
     overflow: hidden;
     border: 1px solid #EDE7F6;
     box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
     height: 100%;
   }

   .item-card:hover {
     transform: translateY(-2px);
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     border-color: var(--primary-color);
   }

   .item-card .card-body {
     padding: 8px;
   }

   .item-badge {
     position: absolute;
     top: -5px;
     right: -5px;
     background-color: var(--danger-color);
     color: white;
     border-radius: 50%;
     width: 18px;
     height: 18px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 10px;
     font-weight: bold;
   }

   .order-section {
     width: 100%;
     background-color: var(--light-bg);
     display: flex;
     flex-direction: column;
     border-left: 1px solid #EDE7F6;
     padding: 6px !important;
     overflow-y: auto;
   }

   @media (min-width: 992px) {
     .order-section {
       width: 480px;
     }
   }

   .order-tabs .nav-link {
     color: var(--light-text);
     font-weight: 500;
     border: none;
     padding: 8px 10px;
     font-size: 0.75rem;
   }

   .order-tabs .nav-link.active {
     color: var(--primary-color);
     border-bottom: 2px solid var(--primary-color);
     background: transparent;
   }

   .order-input {
     border-radius: 6px;
     border: 1px solid #EDE7F6;
     padding: 6px 10px;
     font-size: 0.8rem;
   }

   .order-input:focus {
     border-color: var(--primary-color);
     box-shadow: 0 0 0 0.2rem rgba(149, 117, 205, 0.25);
   }

   .order-items-container {
     max-height: 240px;
     overflow-y: auto;
     background-color: white;
     border-radius: 8px;
     padding: 8px;
     border: 1px solid #EDE7F6;
   }

   .order-item {
     background-color: white;
     border-radius: 6px;
     padding: 8px;
     margin-bottom: 8px;
     box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
     font-size: 0.8rem;
     border: 1px solid #EDE7F6;
   }

   .order-item:hover {
     background-color: #F5F5F5;
   }

   .qty-btn {
     width: 22px;
     height: 22px;
     display: flex;
     align-items: center;
     justify-content: center;
     border-radius: 50%;
     padding: 0;
     font-size: 0.7rem;
   }

   .summary-item {
     padding: 6px 0;
     border-bottom: 1px dashed #EDE7F6;
     font-size: 0.8rem;
   }

   .total-amount {
     font-size: 1rem;
     font-weight: bold;
     color: var(--primary-color);
   }

   .action-btn {
     border-radius: 6px;
     padding: 8px;
     font-weight: 500;
     transition: all 0.2s;
     flex: 1;
     min-width: 100px;
     margin-bottom: 4px;
     font-size: 0.75rem;
   }

   .btn-primary {
     background-color: var(--primary-color);
     border-color: var(--primary-color);
   }

   .btn-primary:hover {
     background-color: var(--secondary-color);
     border-color: var(--secondary-color);
   }

   .btn-outline-primary {
     color: var(--primary-color);
     border-color: var(--primary-color);
   }

   .btn-outline-primary:hover {
     background-color: var(--primary-color);
     border-color: var(--primary-color);
   }

   .modal-content {
     border-radius: 10px;
     border: none;
     box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
   }

   .modal-header {
     border-bottom: none;
     padding-bottom: 0;
     background-color: var(--primary-color);
     color: white;
     border-radius: 10px 10px 0 0 !important;
     padding: 12px;
   }

   .table-btn {
     width: 70px;
     height: 70px;
     border-radius: 8px;
     font-weight: bold;
     margin: 4px;
     font-size: 0.8rem;
     position: relative;
   }

   .table-badge {
     position: absolute;
     top: -5px;
     right: -5px;
     border-radius: 50%;
     width: 20px;
     height: 20px;
     display: flex;
     align-items: center;
     justify-content: center;
     font-size: 10px;
     font-weight: bold;
     color: white;
   }

   .waiter-avatar {
     width: 32px;
     height: 32px;
     border-radius: 50%;
     object-fit: cover;
     margin-right: 8px;
   }

   .toast-container {
     position: fixed;
     top: 16px;
     right: 16px;
     z-index: 1100;
   }

   .toast {
     font-size: 0.8rem;
   }

   .badge {
     font-size: 0.7rem;
     font-weight: 500;
   }

   .form-control,
   .form-select,
   .btn {
     font-size: 0.8rem;
   }

   .btn-sm {
     padding: 4px 8px;
     font-size: 0.7rem;
   }

   .nav-tabs {
     font-size: 0.8rem;
   }

   .tab-content {
     padding-top: 8px;
   }

   .notes-section textarea {
     font-size: 0.8rem;
     min-height: 60px;
     border-radius: 6px;
     border: 1px solid #EDE7F6;
   }

   .addon-item {
     display: flex;
     align-items: center;
     padding: 4px 0;
   }

   .addon-checkbox {
     margin-right: 8px;
   }

   .addon-price {
     margin-left: auto;
     color: var(--primary-color);
     font-weight: 500;
   }

   .item-details {
     font-size: 0.75rem;
     color: var(--light-text);
     margin-top: 4px;
   }

   .item-with-addons {
     border-left: 3px solid var(--primary-color);
     padding-left: 8px;
     margin-bottom: 8px;
   }

   .addons-list {
     margin-top: 4px;
     padding-left: 16px;
     font-size: 0.7rem;
     color: var(--light-text);
   }

   .addon-badge {
     background-color: var(--light-purple);
     color: var(--dark-purple);
     padding: 2px 6px;
     border-radius: 4px;
     margin-right: 4px;
     font-size: 0.65rem;
   }

   .payment-method {
     display: flex;
     align-items: center;
     padding: 8px;
     border-radius: 6px;
     margin-bottom: 8px;
     cursor: pointer;
     border: 1px solid #EDE7F6;
   }

   .payment-method:hover {
     background-color: #F5F5F5;
   }

   .payment-method.active {
     border-color: var(--primary-color);
     background-color: rgba(149, 117, 205, 0.1);
   }

   .payment-method i {
     margin-right: 8px;
     color: var(--primary-color);
   }

   .payment-details {
     padding: 8px;
     border-radius: 6px;
     background-color: white;
     border: 1px solid #EDE7F6;
     margin-top: 8px;
   }

   .addon-form {
     border: 1px solid #EDE7F6;
     border-radius: 6px;
     padding: 8px;
     margin-bottom: 8px;
   }

   .attribute-form {
     border: 1px solid #EDE7F6;
     border-radius: 6px;
     padding: 8px;
     margin-bottom: 8px;
   }


   .order-item-row {
     display: flex;
     align-items: center;
     justify-content: space-between;
     width: 100%;
   }

   .order-item-actions {
     display: flex;
     align-items: center;
     gap: 4px;
   }

   .table-status-badge {
     position: absolute;
     bottom: 5px;
     right: 5px;
     font-size: 0.6rem;
     padding: 2px 4px;
   }

   .table-status-indicator {
     width: 8px;
     height: 8px;
     border-radius: 50%;
     display: inline-block;
     margin-right: 4px;
   }

   .table-status-free {
     background-color: var(--success-color);
   }

   .table-status-occupied {
     background-color: var(--danger-color);
   }

   .add-table-input {
     width: 100px;
     display: inline-block;
     margin-right: 8px;
   }

   #fullscreen-loader {
     position: fixed;
     /* Fixed position */
     top: 0;
     left: 0;
     width: 100%;
     /* Full width */
     height: 100%;
     /* Full height */
     background-color: rgba(0, 0, 0, 0.5);
     /* Black background with opacity */
     z-index: 9999;
     /* Sit on top */
     display: flex;
     /* Use Flexbox for centering */
     justify-content: center;
     /* Center horizontally */
     align-items: center;
     /* Center vertically */
   }

   .table-card {
     cursor: pointer;
     transition: 0.2s;
     border-radius: 12px;
     text-align: center;
     background: white;
     padding: 10px;
     box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
   }

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

   .table-img {
     height: 60px;
     margin-bottom: 6px;
   }

   .table-title {
     font-size: 14px;
     margin-bottom: 3px;
   }

   th {
     background-color: var(--primary-color);
     color: white;
   }

   .status {
     font-size: 11px;
     font-weight: 500;
     padding: 2px 8px;
     border-radius: 10px;
     display: inline-block;
   }

   .status-empty {
     background: #d1fae5;
     color: #065f46;
   }

   .status-occupied {
     background: #fee2e2;
     color: #991b1b;
   }

   .status-reserved {
     background: #fef3c7;
     color: #92400e;
   }


/* Make data-table container responsive */

.table-styled-container {
    position: relative; /* required for sticky bottom to work */
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: auto; /* enable horizontal if needed */
    position: relative;
}

.table-responsive {
    max-height: 60vh;
    overflow-y: auto;
    position: relative;
}

/* Sticky header */
#ordersModal_table thead th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Sticky footer */
#ordersModal_table tfoot th {
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
}

/* Hover effect */
#ordersModal_table tbody tr:hover {
    background: #f1f1f1;
}

/* Reduce padding for better fit */
#ordersModal_table th,
#ordersModal_table td {
    padding: 8px 10px;
    white-space: normal;
}

/* Pagination styling */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 4px 10px !important;
    margin: 2px;
    border-radius: 5px;
    border: 1px solid var(--bs-primary);
    color: var(--bs-primary) !important;
    background: white;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--bs-primary) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--bs-primary) !important;
    color: white !important;
}

/* On small screens */
@media (max-width: 576px) {
    .table-responsive {
        overflow-x: auto;
    }
}