/**
 * restaurant-styles.css - Restaurant Management System Styles
 * @version 1.0.0
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8fafc;
    color: #334155;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 16px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.app-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.app-store-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

/* Main Layout */
.main-container {
    flex: 1;
    display: flex;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.sidebar-subtitle {
    font-size: 14px;
    color: #64748b;
}
.menu-item-card.unavailable {
    opacity: 0.6;
    border: 1px dashed #e2e8f0;
}

.tab-btn {
    padding: 12px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn:hover {
    background: #f1f5f9;
    color: #374151;
}

.tab-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.menu-nav-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 16px;
}

.retail-product-card {
    border-left: 3px solid #d97706;
}

.status-warning {
    background: #fef3c7;
    color: #d97706;
}
.date-filter-btn {
    padding: 6px 12px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
}

.date-filter-btn:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.date-filter-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Product Selection Styles */
.product-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 12px;
}

.product-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-tab:hover {
    background: #f1f5f9;
    color: #374151;
}

.product-tab.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Category Navigation */
.category-nav {
    margin-bottom: 16px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.category-tab:hover {
    background: #f1f5f9;
    border-color: #d1d5db;
}

.category-tab.active {
    background: #059669;
    color: white;
    border-color: #059669;
}

/* Product Cards */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    padding: 8px;
}

.product-card {
    position: relative;
    padding: 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
    transform: translateY(-2px);
}

.product-card.retail-product {
    border-left: 4px solid #d97706;
}

.product-card.food-item {
    border-left: 4px solid #059669;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.product-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 16px;
    flex: 1;
    margin-right: 8px;
}

.product-type-badge {
    font-size: 9px;
    padding: 3px 6px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.product-type-badge.food {
    background: #ecfdf5;
    color: #059669;
}

.product-type-badge.retail {
    background: #fef3c7;
    color: #d97706;
}

.product-price {
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.product-price > span:first-child {
    font-size: 18px;
    font-weight: 600;
    color: #dc2626;
}

.dynamic-price {
    font-size: 14px;
    color: #d97706;
    font-weight: 600;
}

.price-unit {
    font-size: 12px;
    color: #64748b;
}

.product-description {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.product-indicators {
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dynamic-pricing-indicator,
.schedule-indicator,
.stock-info {
    font-size: 10px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dynamic-pricing-indicator {
    color: #d97706;
}

.schedule-indicator {
    color: #7c3aed;
}

.stock-info {
    color: #059669;
}

.add-to-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    background: #059669;
    color: white;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    margin-top: auto;
    transition: all 0.3s ease;
}

.product-card:hover .add-to-order-btn {
    background: #047857;
    transform: scale(1.02);
}

/* Enhanced Selected Items List */
.selected-items-list {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
}

.selected-item {
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.selected-item:last-child {
    border-bottom: none;
}

.item-info {
    flex: 1;
}

.item-info .item-name {
    font-weight: 600;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.item-info .item-price {
    font-size: 12px;
    color: #64748b;
}

.stock-info {
    font-size: 11px;
    color: #d97706;
    font-weight: 500;
}

.price-badge {
    font-size: 9px;
    padding: 2px 4px;
    background: #fef3c7;
    color: #d97706;
    border-radius: 4px;
    font-weight: 500;
}

.type-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}

.type-badge.type-food {
    background: #ecfdf5;
    color: #059669;
}

.type-badge.type-retail {
    background: #fef3c7;
    color: #d97706;
}

/* Responsive Design */
@media (max-width: 768px) {
    .product-tabs {
        flex-direction: column;
    }
    
    .category-tabs {
        justify-content: center;
        gap: 6px;
    }
    .content-area{width:100%!important}
    .category-tab {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .selected-item {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .item-controls {
        justify-content: center;
        margin: 0;
    }
    
    .item-total {
        text-align: center;
        margin-top: 8px;
    }
}
.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 14px;
    font-weight: 500;
}

.menu-item:hover {
    background: #f1f5f9;
    color: #059669;
    transform: translateX(4px);
}

.menu-item.active {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #059669;
    border-right: 3px solid #059669;
    font-weight: 600;
}

.menu-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Content Area */
.content-area {
    flex: 1;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.content-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.content-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-subtitle {
    color: #64748b;
    font-size: 14px;
}

.content-body {
    padding: 30px;
    min-height: 500px;
}

/* Footer */
.footer {
    background: #1e293b;
    color: #94a3b8;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading States */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px;
    color: #64748b;
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #059669;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notification */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
    padding: 16px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.notification.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.notification.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.notification.warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.status-available {
    background: #ecfdf5;
    color: #065f46;
}

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

.status-cleaning {
    background: #fffbeb;
    color: #92400e;
}

.status-active {
    background: #ecfdf5;
    color: #065f46;
}

.status-inactive {
    background: #f1f5f9;
    color: #475569;
}

.status-warning {
    background: #fffbeb;
    color: #92400e;
}

.status-success {
    background: #ecfdf5;
    color: #065f46;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
}

.btn-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.btn-danger:hover {
    background: #fee2e2;
}

.btn-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

.btn-success:hover {
    background: #dcfce7;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Cards */
.card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.card-body {
    padding: 16px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

/* Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Date Filter Buttons */
.date-filter-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-filter-btn:hover {
    background: #e2e8f0;
}

.date-filter-btn.active {
    background: #059669;
    color: white;
    border-color: #059669;
}

/* Welcome Screen */
.welcome-screen {
    text-align: center;
    padding: 60px 20px;
}

.welcome-icon {
    font-size: 64px;
    color: #059669;
    margin-bottom: 24px;
}

.welcome-title {
    font-size: 32px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.welcome-subtitle {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 32px;
    color: #059669;
    margin-bottom: 16px;
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.feature-description {
    color: #64748b;
    font-size: 14px;
}

/* Invoice Specific Styles */
.invoices-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.table-header {
    display: grid;
    grid-template-columns: 120px 1fr 140px 120px 100px 120px 120px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.table-header > div {
    padding: 12px 8px;
    border-right: 1px solid #e2e8f0;
}

.table-header > div:last-child {
    border-right: none;
}

.table-body {
    max-height: 600px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 120px 1fr 140px 120px 100px 120px 120px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.3s ease;
    align-items: center;
    min-height: 60px;
}

.table-row:hover {
    background: #f8fafc;
}

.table-row > div {
    padding: 8px;
    font-size: 13px;
    border-right: 1px solid #f1f5f9;
}

.table-row > div:last-child {
    border-right: none;
}

.invoice-id {
    font-weight: 600;
    color: #059669;
    margin-bottom: 2px;
}

.invoice-type {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}

.customer-name {
    font-weight: 500;
    margin-bottom: 2px;
}

.customer-detail {
    font-size: 11px;
    color: #64748b;
}

.amount-total {
    font-weight: 600;
    color: #dc2626;
}

.amount-remaining {
    font-size: 11px;
    color: #f59e0b;
    margin-top: 2px;
}

.action-buttons {
    display: flex;
    gap: 4px;
    align-items: center;
}

.action-buttons .btn {
    padding: 4px 8px;
    font-size: 12px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.invoice-modal {
    max-width: 800px;
}

.payment-modal {
    max-width: 500px;
}

.large-modal {
    max-width: 900px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f1f5f9;
    color: #374151;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0 0 12px 12px;
}

/* Invoice Details */
.invoice-details h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.invoice-header-info {
    margin-bottom: 24px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 14px;
}

.info-item label {
    font-weight: 500;
    color: #64748b;
    min-width: 120px;
}

.info-item span {
    color: #1e293b;
}

.invoice-items {
    margin-bottom: 24px;
}

.items-table {
    background: #f8fafc;
    border-radius: 6px;
    overflow: hidden;
}

.items-header {
    display: grid;
    grid-template-columns: 2fr 80px 120px 120px;
    background: #e2e8f0;
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

.items-header > div {
    padding: 8px 12px;
    border-right: 1px solid #d1d5db;
}

.items-header > div:last-child {
    border-right: none;
}

.items-body {
    border-top: 1px solid #d1d5db;
}

.item-row {
    display: grid;
    grid-template-columns: 2fr 80px 120px 120px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 13px;
}

.item-row:last-child {
    border-bottom: none;
}

.item-row > div {
    padding: 8px 12px;
    border-right: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.item-row > div:last-child {
    border-right: none;
}

.col-qty,
.col-price,
.col-total {
    justify-content: flex-end;
}

.invoice-summary {
    background: #f8fafc;
    padding: 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.remaining {
    font-weight: 600;
    color: #dc2626;
    border-top: 1px solid #e2e8f0;
    padding-top: 8px;
    margin-top: 8px;
}

.summary-row.voucher-discount {
    color: #059669;
    font-weight: 600;
}

.summary-row.voucher-discount label {
    color: #059669;
}

.paid-amount {
    color: #059669;
    font-weight: 600;
}

.remaining-amount {
    color: #dc2626;
    font-weight: 600;
}

.invoice-notes {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 12px;
}

.invoice-notes p {
    margin: 0;
    font-size: 14px;
    color: #92400e;
}

/* Payment Styles */
.payment-summary {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.amount-display {
    text-align: center;
}

.amount-display > div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.amount-display > div:last-child {
    margin-bottom: 0;
}

.total-amount label {
    color: #374151;
}

.paid-amount label {
    color: #059669;
}

.remaining-amount {
    font-weight: 600;
    font-size: 16px;
    border-top: 1px solid #bbf7d0;
    padding-top: 8px;
    margin-top: 8px;
}

.remaining-amount label {
    color: #dc2626;
}

.remaining-amount .highlight {
    color: #dc2626;
    font-weight: 700;
}

.discount-amount {
    color: #059669 !important;
    font-weight: 600;
}

.discount-amount label {
    color: #059669 !important;
}

.change-amount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    font-weight: 600;
    color: #059669;
}

/* Voucher Styles */
.voucher-applied-info {
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.voucher-applied-info h4 {
    margin: 0 0 12px 0;
    color: #d97706;
    font-size: 16px;
}

.voucher-card {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 12px;
}

.voucher-icon {
    background: #fef3c7;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #d97706;
}

.voucher-name {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 4px;
}

.voucher-id {
    font-size: 11px;
    color: #a16207;
    margin-bottom: 4px;
}

.voucher-discount {
    font-weight: 600;
    color: #059669;
    font-size: 14px;
}

.voucher-option:hover {
    background: #fef9c3 !important;
    border-color: #f59e0b !important;
}

.voucher-option[style*="background: #ecfdf5"] {
    background: #ecfdf5 !important;
    border-color: #bbf7d0 !important;
}

/* Customer Info */
.customer-info-display {
    margin-top: 8px;
}

.customer-info-display .customer-tier {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
}

.search-results {
    position: absolute;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    width: 100%;
    display: none;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item:last-child {
    border-bottom: none;
}

.selected-customer {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.change-display {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 8px;
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .table-header,
    .table-row {
        grid-template-columns: 100px 1fr 120px 100px 80px 100px 100px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        padding: 10px;
    }
    
    .sidebar {
        width: 100%;
        position: static;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .header-title {
        font-size: 20px;
    }
    
    .content-body {
        padding: 20px;
    }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .invoices-table {
        overflow-x: auto;
    }
    
    .table-header,
    .table-row {
        min-width: 800px;
    }
    
    .modal-content {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .items-header,
    .item-row {
        grid-template-columns: 1fr 60px 80px 80px;
        font-size: 12px;
    }
    
    .items-header > div,
    .item-row > div {
        padding: 6px 8px;
    }
}

            .selected-items-list {
                background: white;
                border: 1px solid #e2e8f0;
                border-radius: 6px;
                overflow: hidden;
            }
            
            .selected-item {
                display: flex;
                align-items: center;
                padding: 12px;
                border-bottom: 1px solid #f1f5f9;
            }
            
            .selected-item:last-child {
                border-bottom: none;
            }
            
            .item-info {
                flex: 1;
            }
            
            .item-info .item-name {
                font-weight: 600;
                margin-bottom: 2px;
                display: flex;
                align-items: center;
                gap: 8px;
                flex-wrap: wrap;
            }
            
            .item-info .item-price {
                font-size: 12px;
                color: #64748b;
            }
            
            .stock-info {
                font-size: 11px;
                color: #d97706;
                font-weight: 500;
            }
            
            .price-badge {
                font-size: 9px;
                padding: 2px 4px;
                background: #fef3c7;
                color: #d97706;
                border-radius: 4px;
                font-weight: 500;
            }
            
            .item-controls {
                display: flex;
                align-items: center;
                gap: 8px;
                margin: 0 16px;
            }
            
            .qty-btn {
                width: 28px;
                height: 28px;
                border: 1px solid #e2e8f0;
                background: white;
                border-radius: 4px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 12px;
                transition: all 0.3s ease;
            }
            
            .qty-btn:hover {
                background: #f1f5f9;
                border-color: #d1d5db;
            }
            
            .qty-display {
                min-width: 30px;
                text-align: center;
                font-weight: 600;
                color: #374151;
            }
            
            .remove-btn {
                width: 28px;
                height: 28px;
                border: 1px solid #fca5a5;
                background: #fef2f2;
                color: #dc2626;
                border-radius: 4px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 12px;
                transition: all 0.3s ease;
            }
            
            .remove-btn:hover {
                background: #fee2e2;
                border-color: #f87171;
            }
            
            .item-total {
                font-weight: 600;
                color: #059669;
                min-width: 100px;
                text-align: right;
            }
            
            .order-total {
                padding: 16px;
                background: #f8fafc;
                text-align: right;
                font-size: 18px;
                border-top: 2px solid #e2e8f0;
                color: #059669;
            }
            .modal-content.large-modal {
                max-width: 1200px;
            }
            
            .modal-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 20px;
                border-bottom: 1px solid #e2e8f0;
                background: #f8fafc;
                border-radius: 12px 12px 0 0;
            }
            
            .modal-header h3 {
                margin: 0;
                font-size: 18px;
                font-weight: 600;
                color: #1e293b;
            }
            
            .modal-close {
                background: none;
                border: none;
                font-size: 16px;
                color: #64748b;
                cursor: pointer;
                padding: 8px;
                border-radius: 6px;
                transition: all 0.3s ease;
            }
            
            .modal-close:hover {
                background: #f1f5f9;
                color: #374151;
            }
            
            .modal-body {
                padding: 0;
                max-height: calc(90vh - 140px);
                overflow-y: auto;
            }
            
            .modal-footer {
                display: flex;
                justify-content: flex-end;
                gap: 12px;
                padding: 20px;
                border-top: 1px solid #e2e8f0;
                background: #f8fafc;
                border-radius: 0 0 12px 12px;
            }
       .form-section {
            margin: 0;
            padding: 20px;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .form-section:last-child {
            border-bottom: none;
        }
        
        .section-label {
            display: block;
            font-size: 16px;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 16px;
        }
        
        .order-type-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 12px;
        }
        
        .type-btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            border: 2px solid #e2e8f0;
            background: white;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
        }
        
        .type-btn:hover {
            border-color: #059669;
            background: #f0fdf4;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
        }
        
        .type-btn.active {
            border-color: #059669;
            background: #059669;
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
        }
        
        .type-btn i {
            font-size: 28px;
            margin-bottom: 8px;
        }
        
        .type-btn span {
            font-weight: 600;
            font-size: 14px;
        }
        
        .customer-selection {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 16px;
        }
        
        .customer-options {
            display: flex;
            gap: 12px;
            margin-bottom: 16px;
        }
        
        .customer-option {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 16px;
            border: 2px solid #e2e8f0;
            background: white;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
        }
        
        .customer-option:hover {
            border-color: #059669;
            background: #f0fdf4;
        }
        
        .customer-option.active {
            border-color: #059669;
            background: #059669;
            color: white;
        }
        
        .customer-section {
            display: none;
        }
        
        .customer-section.active {
            display: block;
        }
        
        .customer-search {
            position: relative;
        }
        
        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            max-height: 200px;
            overflow-y: auto;
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            margin-top: 4px;
            display: none;
        }
        
        .search-results.show {
            display: block;
        }
        
        .search-result-item {
            padding: 12px;
            border-bottom: 1px solid #f1f5f9;
            cursor: pointer;
            transition: background 0.3s ease;
        }
        
        .search-result-item:hover {
            background: #f8fafc;
        }
        
        .search-result-item:last-child {
            border-bottom: none;
        }
        
        .selected-customer {
            padding: 16px;
            background: #ecfdf5;
            border: 1px solid #a7f3d0;
            border-radius: 6px;
            margin-top: 12px;
        }
        
        .table-selection {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 16px;
            max-height: 300px;
            overflow-y: auto;
        }
        
        .table-area {
            margin-bottom: 20px;
        }
        
        .table-area:last-child {
            margin-bottom: 0;
        }
        
        .area-title {
            font-size: 14px;
            font-weight: 600;
            color: #374151;
            margin-bottom: 12px;
            padding-bottom: 8px;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .tables-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
            gap: 8px;
        }
        
        .table-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px;
            border: 2px solid #e2e8f0;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            background: white;
        }
        
        .table-item:hover:not(.disabled) {
            border-color: #059669;
            background: #f0fdf4;
        }
        
        .table-item.selected {
            border-color: #059669!important;
            background: #059669!important;
            color: white!important;
        }
        
        .table-item.available {
            border-color: #10b981;
            background: #ecfdf5;
        }
        
        .table-item.occupied {
            border-color: #dc2626;
            background: #fef2f2;
            color: #991b1b;
        }
        
        .table-item.reserved {
            border-color: #d97706;
            background: #fffbeb;
            color: #92400e;
        }
        
        .table-item.cleaning {
            border-color: #64748b;
            background: #f8fafc;
            color: #475569;
        }
        
        .table-item.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .table-name {
            font-weight: 600;
            margin-bottom: 4px;
        }
        
        .table-capacity {
            font-size: 11px;
            opacity: 0.8;
        }
        
        .table-status {
            font-size: 10px;
            margin-top: 4px;
            font-weight: 500;
        }
        
        /* SELECTED ITEMS STYLES - FIXED */
        .selected-items {
            background: white;
            border: 2px dashed #e2e8f0;
            border-radius: 8px;
            padding: 16px;
            min-height: 120px;
        }
        
        .empty-selection {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: #64748b;
            font-style: italic;
            padding: 20px;
        }
        
        .empty-selection i {
            font-size: 32px;
            margin-bottom: 8px;
            opacity: 0.5;
        }
        
        .selected-items-list {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .selected-item {
            display: grid;
            grid-template-columns: 1fr auto auto;
            align-items: center;
            padding: 16px;
            border-bottom: 1px solid #f1f5f9;
            gap: 16px;
        }
        
        .selected-item:last-child {
            border-bottom: none;
        }
        
        .item-info {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }
        
        .item-info .item-name {
            font-weight: 600;
            color: #1e293b;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 4px;
        }
        
        .item-info .item-price {
            font-size: 14px;
            color: #64748b;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .stock-info {
            font-size: 11px;
            color: #d97706;
            font-weight: 500;
            margin-top: 2px;
        }
        
        .price-badge {
            font-size: 9px;
            padding: 2px 6px;
            background: #fef3c7;
            color: #d97706;
            border-radius: 4px;
            font-weight: 600;
        }
        
        .type-badge {
            font-size: 9px;
            padding: 2px 6px;
            border-radius: 4px;
            font-weight: 600;
            white-space: nowrap;
        }
        
        .type-badge.type-food {
            background: #ecfdf5;
            color: #059669;
        }
        
        .type-badge.type-retail {
            background: #fef3c7;
            color: #d97706;
        }
        
        .item-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 4px;
        }
        
        .qty-btn {
            width: 32px;
            height: 32px;
            border: 1px solid #d1d5db;
            background: white;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s ease;
            color: #374151;
        }
        
        .qty-btn:hover {
            background: #f3f4f6;
            border-color: #9ca3af;
            transform: scale(1.05);
        }
        
        .qty-btn:active {
            transform: scale(0.95);
        }
        
        .qty-display {
            min-width: 40px;
            text-align: center;
            font-weight: 700;
            color: #1e293b;
            font-size: 16px;
            padding: 0 8px;
        }
        
        .remove-btn {
            width: 32px;
            height: 32px;
            border: 1px solid #f87171;
            background: #fef2f2;
            color: #dc2626;
            border-radius: 6px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            transition: all 0.3s ease;
            margin-left: 8px;
        }
        
        .remove-btn:hover {
            background: #fee2e2;
            border-color: #ef4444;
            transform: scale(1.05);
        }
        
        .item-total {
            font-weight: 700;
            color: #059669;
            font-size: 16px;
            text-align: right;
            min-width: 100px;
        }
        
        .order-total {
            padding: 20px;
            background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
            text-align: right;
            font-size: 20px;
            border-top: 2px solid #059669;
            color: #059669;
            font-weight: 700;
            margin-top: 8px;
            border-radius: 0 0 8px 8px;
        }
        
        /* Order Details Styles */
        .order-info-section,
        .order-items-section,
        .order-total-section,
        .order-notes-section {
            margin-bottom: 24px;
            padding-bottom: 20px;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .order-info-section:last-child,
        .order-items-section:last-child,
        .order-total-section:last-child,
        .order-notes-section:last-child {
            border-bottom: none;
        }
        
        .order-info-section h4,
        .order-items-section h4,
        .order-total-section h4,
        .order-notes-section h4 {
            margin: 0 0 16px 0;
            font-size: 16px;
            font-weight: 600;
            color: #1e293b;
            padding-bottom: 8px;
            border-bottom: 1px solid #e2e8f0;
        }
        
        .order-info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        
        .info-card {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 16px;
        }
        
        .info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            gap: 12px;
        }
        
        .info-row:last-child {
            margin-bottom: 0;
        }
        
        .info-row label {
            font-weight: 500;
            color: #64748b;
            min-width: 100px;
        }
        
        .info-row span {
            color: #1e293b;
            text-align: right;
            flex: 1;
        }
        
        .order-code {
            font-weight: 600;
            color: #059669;
        }
        
        .order-items-table {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .items-header {
            display: grid;
            grid-template-columns: 2fr 60px 120px 120px 80px;
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
            font-weight: 600;
            color: #374151;
        }
        
        .items-header > div {
            padding: 12px 8px;
            border-right: 1px solid #e2e8f0;
            text-align: center;
        }
        
        .items-header > div:first-child {
            text-align: left;
        }
        
        .items-header > div:last-child {
            border-right: none;
        }
        
        .item-row {
            display: grid;
            grid-template-columns: 2fr 60px 120px 120px 80px;
            align-items: center;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .item-row > div {
            padding: 12px 8px;
            border-right: 1px solid #f1f5f9;
            text-align: center;
        }
        
        .item-row > div:first-child {
            text-align: left;
        }
        
        .item-row > div:last-child {
            border-right: none;
        }
        
        .product-name {
            font-weight: 500;
            color: #1e293b;
        }
        
        .price-note {
            font-size: 10px;
            color: #d97706;
            font-weight: 500;
            margin-top: 2px;
        }
        
        .total-display {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            background: #f8fafc;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
        }
        
        .total-amount {
            color: #dc2626;
            font-size: 24px;
        }
        
        .notes-display {
            background: #fffbeb;
            border: 1px solid #fed7aa;
            border-radius: 6px;
            padding: 12px;
            color: #92400e;
            font-style: italic;
        }
        
        .empty-items {
            text-align: center;
            padding: 40px;
            color: #64748b;
            font-style: italic;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .order-type-buttons {
                grid-template-columns: 1fr 1fr;
            }
            
            .customer-options {
                flex-direction: column;
            }
            
            .order-info-grid {
                grid-template-columns: 1fr;
            }
            
            .tables-grid {
                grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
            }
            
            .selected-item {
                grid-template-columns: 1fr;
                gap: 12px;
                text-align: center;
            }
            
            .item-controls {
                justify-content: center;
            }
            
            .item-total {
                text-align: center;
            }
            
            .items-header,
            .item-row {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .items-header > div,
            .item-row > div {
                border-right: none;
                border-bottom: 1px solid #f1f5f9;
                justify-content: center;
            }
            
            .items-header > div:first-child,
            .item-row > div:first-child {
                text-align: center;
            }
        }
        .editable-items-table {
            background: white;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
        }
        
        .items-header {
            display: grid;
            grid-template-columns: 2fr 100px 120px 120px 80px;
            background: #f8fafc;
            border-bottom: 1px solid #e2e8f0;
            font-weight: 600;
            color: #374151;
        }
        
        .items-header > div {
            padding: 12px 8px;
            border-right: 1px solid #e2e8f0;
            text-align: center;
        }
        
        .items-header > div:first-child {
            text-align: left;
        }
        
        .items-header > div:last-child {
            border-right: none;
        }
        
        .editable-item-row {
            display: grid;
            grid-template-columns: 2fr 100px 120px 120px 80px;
            align-items: center;
            border-bottom: 1px solid #f1f5f9;
        }
        
        .editable-item-row > div {
            padding: 12px 8px;
            border-right: 1px solid #f1f5f9;
            text-align: center;
        }
        
        .editable-item-row > div:first-child {
            text-align: left;
            font-weight: 500;
        }
        
        .editable-item-row > div:last-child {
            border-right: none;
        }
        
        .qty-input {
            width: 60px;
            text-align: center;
            padding: 4px 8px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-weight: 600;
        }
        
        .menu-item-card:hover {
            border-color: #059669;
            background: #f0fdf4;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(5, 150, 105, 0.15);
        }
        
        .order-total-section {
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 16px;
        }
        
        .grid-2 {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }
        
        @media (max-width: 768px) {
            .items-header,
            .editable-item-row {
                grid-template-columns: 1fr;
                text-align: center;
            }
            
            .items-header > div,
            .editable-item-row > div {
                border-right: none;
                border-bottom: 1px solid #f1f5f9;
            }
            
            .items-header > div:first-child,
            .editable-item-row > div:first-child {
                text-align: center;
            }
            
            .grid-2 {
                grid-template-columns: 1fr;
            }
        }
            .product-tabs {
                display: flex;
                gap: 12px;
                margin-bottom: 20px;
                border-bottom: 2px solid #e2e8f0;
                padding-bottom: 12px;
            }
            
            .product-tab {
                flex: 1;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                padding: 12px 20px;
                background: #f8fafc;
                border: 1px solid #e2e8f0;
                border-radius: 8px;
                color: #64748b;
                font-weight: 500;
                cursor: pointer;
                transition: all 0.3s ease;
            }
            
            .product-tab:hover {
                background: #f1f5f9;
                color: #374151;
            }
            
            .product-tab.active {
                background: #2563eb;
                color: white;
                border-color: #2563eb;
            }
            
            .category-nav {
                margin-bottom: 16px;
            }
            
            .category-tabs {
                display: flex;
                gap: 8px;
                flex-wrap: wrap;
            }
            
            .category-tab {
                padding: 8px 16px;
                border: 1px solid #e2e8f0;
                background: white;
                border-radius: 20px;
                cursor: pointer;
                transition: all 0.3s ease;
                font-size: 14px;
                font-weight: 500;
                white-space: nowrap;
            }
            
            .category-tab:hover {
                background: #f1f5f9;
                border-color: #d1d5db;
            }
            
            .category-tab.active {
                background: #059669;
                color: white;
                border-color: #059669;
            }
            
            .products-grid {
                min-height: 200px;
            }
            
            .items-grid {
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                gap: 16px;
                padding: 8px;
            }
            
            .product-card {
                position: relative;
                padding: 16px;
                background: white;
                border: 2px solid #e2e8f0;
                border-radius: 8px;
                cursor: pointer;
                transition: all 0.3s ease;
                height: 100%;
                display: flex;
                flex-direction: column;
            }
            
            .product-card:hover {
                border-color: #059669;
                box-shadow: 0 4px 12px rgba(5, 150, 105, 0.1);
                transform: translateY(-2px);
            }
            
            .product-card.retail-product {
                border-left: 4px solid #d97706;
            }
            
            .product-card.food-item {
                border-left: 4px solid #059669;
            }
            
            .product-header {
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                margin-bottom: 12px;
            }
            
            .product-name {
                font-weight: 600;
                color: #1e293b;
                font-size: 16px;
                flex: 1;
                margin-right: 8px;
            }
            
            .product-type-badge {
                font-size: 9px;
                padding: 3px 6px;
                border-radius: 10px;
                font-weight: 600;
                white-space: nowrap;
            }
            
            .product-type-badge.food {
                background: #ecfdf5;
                color: #059669;
            }
            
            .product-type-badge.retail {
                background: #fef3c7;
                color: #d97706;
            }
            
            .product-price {
                margin-bottom: 12px;
                display: flex;
                align-items: baseline;
                gap: 4px;
            }
            
            .product-price > span:first-child {
                font-size: 18px;
                font-weight: 600;
                color: #dc2626;
            }
            
            .dynamic-price {
                font-size: 14px;
                color: #d97706;
                font-weight: 600;
            }
            
            .price-unit {
                font-size: 12px;
                color: #64748b;
            }
            
            .product-description {
                font-size: 12px;
                color: #64748b;
                margin-bottom: 12px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                flex: 1;
            }
            
            .product-indicators {
                margin-bottom: 12px;
                display: flex;
                flex-direction: column;
                gap: 4px;
            }
            
            .dynamic-pricing-indicator,
            .schedule-indicator,
            .stock-info {
                font-size: 10px;
                font-weight: 500;
                display: flex;
                align-items: center;
                gap: 4px;
            }
            
            .dynamic-pricing-indicator {
                color: #d97706;
            }
            
            .schedule-indicator {
                color: #7c3aed;
            }
            
            .stock-info {
                color: #059669;
            }
            
            .add-to-order-btn {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 6px;
                padding: 10px;
                background: #059669;
                color: white;
                border-radius: 6px;
                font-weight: 500;
                font-size: 14px;
                margin-top: auto;
                transition: all 0.3s ease;
            }
            
            .product-card:hover .add-to-order-btn {
                background: #047857;
                transform: scale(1.02);
            }
            
            .search-results-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 16px;
                padding: 12px 16px;
                background: #f8fafc;
                border: 1px solid #e2e8f0;
                border-radius: 6px;
            }
            
            .search-results-header h4 {
                margin: 0;
                font-size: 14px;
                font-weight: 600;
                color: #1e293b;
            }
            
            /* Product Details Modal Styles */
            .product-details-info {
                background: #f8fafc;
                border: 1px solid #e2e8f0;
                border-radius: 6px;
                padding: 16px;
            }
            
            .detail-row {
                display: flex;
                justify-content: space-between;
                align-items: center;
                margin-bottom: 12px;
                gap: 12px;
            }
            
            .detail-row:last-child {
                margin-bottom: 0;
            }
            
            .detail-row.full-width {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }
            
            .detail-row label {
                font-weight: 500;
                color: #64748b;
                min-width: 80px;
            }
            
            .detail-row span {
                color: #1e293b;
                text-align: right;
                flex: 1;
            }
            
            .price-display {
                font-weight: 600;
                color: #dc2626;
            }
            
            .stock-display {
                font-weight: 500;
                color: #059669;
            }
            
            .stock-display.low-stock {
                color: #d97706;
            }
            
            .description-text {
                width: 100%;
                padding: 12px;
                background: white;
                border: 1px solid #e2e8f0;
                border-radius: 4px;
                color: #374151;
                font-size: 14px;
                line-height: 1.5;
            }
            
            .schedule-info {
                width: 100%;
                padding: 8px 12px;
                background: #f3e8ff;
                border: 1px solid #c4b5fd;
                border-radius: 4px;
                color: #7c3aed;
                font-size: 12px;
                font-weight: 500;
            }
            
            /* Responsive Design */
            @media (max-width: 768px) {
                .product-tabs {
                    flex-direction: column;
                }
                
                .category-tabs {
                    justify-content: center;
                }
                
                .items-grid {
                    grid-template-columns: 1fr;
                }
                
                .search-results-header {
                    flex-direction: column;
                    gap: 12px;
                    text-align: center;
                }
                
                .detail-row {
                    flex-direction: column;
                    align-items: flex-start;
                    gap: 4px;
                }
                
                .detail-row span {
                    text-align: left;
                }
            }
        .price-input {
            width: 100px;
            padding: 4px 6px;
            border: 1px solid #d1d5db;
            border-radius: 4px;
            font-size: 12px;
        }
        
        .price-type-indicator {
            font-size: 10px;
            color: #d97706;
            font-weight: 500;
            margin-top: 2px;
        }
        
        .type-indicator {
            font-size: 10px;
            padding: 2px 6px;
            border-radius: 3px;
            margin-top: 2px;
            display: inline-block;
        }
        
        .type-indicator.retail {
            background: #fef3c7;
            color: #d97706;
        }
        
        .menu-item-card.has-warning {
            border-left: 3px solid #f59e0b;
        }
        
        .availability-note {
            font-style: italic;
        }
        
        .custom-price-section {
            border-top: 1px solid #f1f5f9;
            padding-top: 8px;
        }
        
        .custom-price-input {
            width: 100%;
        }
        
        .editable-items-table {
            border: 1px solid #e2e8f0;
            border-radius: 6px;
            overflow: hidden;
        }
        
        .items-header {
            display: grid;
            grid-template-columns: 2fr 100px 120px 120px 80px;
            gap: 12px;
            padding: 12px;
            background: #f8fafc;
            font-weight: 600;
            font-size: 12px;
            color: #374151;
        }
        
        .items-body .editable-item-row {
            display: grid;
            grid-template-columns: 2fr 100px 120px 120px 80px;
            gap: 12px;
            padding: 12px;
            border-bottom: 1px solid #f1f5f9;
            align-items: center;
        }
        
        .items-body .editable-item-row:last-child {
            border-bottom: none;
        }

.btn-danger {
    background-color: #dc2626;
    color: white;
    border: 1px solid #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.btn-danger:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.modal-footer .btn {
    margin-right: 8px;
}

.modal-footer .btn:last-child {
    margin-right: 0;
}
.dropdown-menu {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-width: 180px;
    padding: 8px 0;
}

.dropdown-item {
    display: block;
    padding: 8px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.dropdown-item.text-red {
    color: #dc2626;
}

.dropdown-item.text-red:hover {
    background-color: #fef2f2;
    color: #dc2626;
}

.dropdown-divider {
    height: 1px;
    background-color: #e5e7eb;
    margin: 8px 0;
}

/* Login form specific styles */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input:disabled,
.form-input[readonly] {
    background-color: #f9fafb;
    color: #6b7280;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .dropdown-menu {
        position: fixed !important;
        right: 16px;
        top: auto;
    }
}