/* Main Variables */
:root {
    --primary-color: #a36b02;
    --secondary-color: #20c997;
    --background-color: #f5f2ea;
    --accent-color: #d4f1e5;
    --text-color: #333;
    --border-color: #e0d8c7;
    --card-bg-color: #ffffff;
    --header-bg-color: #f9f6ef;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --pill-tag-bg: #f8d7da;
    --pill-tag-text: #842029;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
}

.pos-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* max-width: 1440px;
    margin: 0 auto; */
    background-color: var(--background-color);
}

/* Header Styles */
.pos-header {
    background-color: var(--header-bg-color);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.logo-container {
    display: flex;
    align-items: center;
}

.back-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}

.back-link:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.back-link i {
    margin-right: 5px;
}

.logo {
    height: 100px;
}

.date-display {
    font-size: 18px;
    font-weight: 500;
}

.orders-info {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    margin-bottom: 10px;
}

.report-link {
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.report-link:hover {
    text-decoration: underline;
}

.user-profile {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.notification-badge {
    position: relative;
}

.notification-badge .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    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;
}

.user-avatar img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

/* Content Styles */
.pos-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Search Bar */
.search-container {
    margin-bottom: 20px;
}

.search-container .input-group {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-container .form-control {
    border: none;
    padding: 12px 15px;
}

.search-container .input-group-text {
    border: none;
    color: #999;
}

/* Categories */
/* .categories-container {
    margin-bottom: 30px;
} */

.category-card {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
    border: 1px solid transparent;
    justify-content:center;
}

.category-card.active {
    background-color: var(--primary-color);
    color: white;
}

.category-card:hover:not(.active) {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    position: relative;
}

.category-icon img {
    width: 40px;
    height: 40px;
}

.stock-badge {
    display: inline-block;
    margin-top: 5px;
    background-color: var(--pill-tag-bg);
    color: var(--pill-tag-text);
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
}

.category-details h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.category-details p {
    margin: 5px 0 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Products Grid */
.products-container {
    margin-bottom: 30px;
}

.product-card {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.product-image {
    width: 80px;
    height: 100px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-details h4 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 600;
}

.product-price {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 15px;
}

.add-product-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-product-btn:hover {
    transform: scale(1.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Order Section */
.order-section {
    background-color: var(--card-bg-color);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.receipt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.receipt-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.order-id {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* Dining Options */
.dining-options {
    margin-bottom: 20px;
}

.dining-btn {
    width: 100%;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.dining-btn.offer {
    background-color: #138522;
    color: white;
    border-color: var(--primary-color);
}

.dining-btn.offer:hover {
    background-color: #535549;
}

/* Customer Info */
.customer-info {
    margin-bottom: 20px;
}

.customer-info label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.customer-info .form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
}

/* Order List */
.order-list {
    margin-bottom: 20px;
}

.order-list h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.order-items {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.order-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.order-item-image {
    width: 50px;
    height: 50px;
    margin-right: 15px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.order-item-details {
    flex: 1;
}

.order-item-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.order-item-price {
    color: var(--primary-color);
    font-size: 14px;
}

.order-item-variant {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

.order-item-customization {
    display: flex;
    align-items: center;
    margin-top: 5px;
    font-size: 12px;
    color: #777;
}

.order-item-customization i {
    margin-right: 5px;
}

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

.quantity-btn {
    width: 25px;
    height: 25px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.quantity-btn:hover {
    background-color: #f8f9fa;
}

.item-quantity {
    margin: 0 8px;
    font-weight: 500;
}

.empty-cart-message {
    text-align: center;
    padding: 20px;
    color: #777;
    font-style: italic;
}

/* Payment Details */
.payment-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.total-row {
    font-weight: 600;
    font-size: 18px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

#processPaymentBtn {
    width: 100%;
    background-color: var(--primary-color);
    border: none;
    padding: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

#processPaymentBtn:hover {
    background-color: #0a3f26;
}

/* Success Modal */
.success-icon {
    font-size: 50px;
    color: var(--success-color);
    margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .pos-content {
        padding: 15px;
    }
    
    .product-section {
        margin-bottom: 30px;
    }
    
    .pos-container {
        height: auto;
        min-height: 100vh;
    }
    
    .product-card {
        margin-bottom: 15px;
    }
}

@media (max-width: 768px) {
    .pos-header {
        padding: 10px 15px;
    }
    
    .date-display {
        font-size: 16px;
    }
    
    .logo {
        height: 35px;
    }
    
    .orders-info {
        font-size: 14px;
    }
    
    /* Responsive order items */
    .order-item {
        padding: 10px;
    }
    
    .order-item-image {
        width: 40px;
        height: 40px;
        margin-right: 10px;
    }
    
    .order-item-name {
        font-size: 13px;
    }
    
    .order-item-price {
        font-size: 13px;
    }
    
    .order-item-controls .btn {
        padding: 2px 6px;
        font-size: 12px;
    }
    
    .order-item-quantity {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .category-card {
        margin-bottom: 10px;
        padding: 10px;
    }
    
    .category-details h3 {
        font-size: 16px;
    }
    
    .category-details p {
        font-size: 12px;
    }
    
    .stock-badge {
        font-size: 9px;
        padding: 2px 6px;
    }
    
    /* Ensure products grid has smaller gap on tablets */
    .products-container .row {
        margin-left: -8px;
        margin-right: -8px;
    }
    
    .products-container .col-md-3 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    /* Make order section more compact */
    .order-section {
        padding: 15px;
    }
    
    /* .order-list {
        max-height: 200px;
    } */
}

@media (max-width: 576px) {
    /* Header adjustments for mobile */
    .pos-header .row {
        align-items: center;
    }
    
    .logo {
        height: 30px;
    }
    
    .date-display {
        font-size: 14px;
    }
    
    .orders-info, .report-link {
        font-size: 12px;
    }
    
    .user-avatar img {
        width: 30px;
        height: 30px;
    }
    
    /* Category adjustments */
    .category-card {
        padding: 8px;
    }
    
    .category-details h3 {
        font-size: 14px;
    }
    
    .category-details p {
        font-size: 11px;
    }
    
    .category-icon {
        width: 35px;
        height: 35px;
        margin-right: 8px;
    }
    
    .category-icon img {
        width: 25px;
        height: 25px;
    }
    
    /* Product grid for mobile */
    .products-container .col-6 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .product-card {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .product-details h4 {
        font-size: 14px;
    }
    
    .product-price {
        font-size: 13px;
    }
    
    .product-image {
        width: 60px;
        height: 80px;
    }
    
    /* Order section */
    .receipt-header h3 {
        font-size: 16px;
    }
    
    .order-id {
        font-size: 12px;
        padding: 3px 8px;
    }
    
    .dining-btn {
        padding: 8px;
        font-size: 13px;
    }
    
    .customer-info label {
        font-size: 12px;
    }
    
    .order-list h4, .payment-details h4 {
        font-size: 14px;
    }
    
    .order-item-name {
        font-size: 13px;
    }
    
    .order-item-price {
        font-size: 12px;
    }
    
    .total-row {
        font-size: 16px;
    }
    
    #processPaymentBtn {
        padding: 10px;
        font-size: 14px;
    }
}

.held-orders h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}
.held-order-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.held-order-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}
.held-order-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.held-order-info .customer {
    font-weight: 600;
    font-size: 0.9rem;
}
.held-order-info .table,
.held-order-info .items-count {
    font-size: 0.8rem;
    color: #6c757d;
}
.held-order-info .total {
    font-weight: 600;
    color: #28a745;
    margin-top: 0.5rem;
}

/* Add after existing button styles */
#holdOrderBtn {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

#holdOrderBtn:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

#holdOrderBtn i {
    margin-right: 5px;
}

.quantity-input {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2px 5px;
    margin: 0 5px;
}

.quantity-input:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.offer-section {
    margin-top: 20px;
}

.offer-accordion {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.offer-accordion .card-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1.25rem;
}

.offer-accordion .accordion-button:not(.collapsed) {
    background-color: #e9ecef;
}

/* Add to existing CSS */
free-tag {
    color: green;
    font-weight: bold;
}

.discount-row td {
    color: #d9534f;
}

.offers-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.offer-item {
    display: flex;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    border: 1px solid #e9ecef;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.offer-item:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 3px 5px rgba(0,0,0,0.1);
}

.offer-item.selected {
    border-color: var(--primary-color);
    background-color: rgba(15, 81, 50, 0.05);
}

.offer-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 1rem;
}

.offer-details {
    flex: 1;
}

.offer-details h6 {
    margin: 0;
    color: var(--primary-color);
}

.offer-details small {
    display: block;
    margin-top: 0.25rem;
}

.free-item {
    background-color: #f8fff9;
}
.free-text {
    color: #28a745;
    font-weight: bold;
}
.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9em;
    margin-left: 5px;
}
.badge.bg-success {
    margin-left: 5px;
    font-size: 0.8em;
}

/* Modal Content - Base */
.modal-content {
    border: 1px solid #d4af37; /* Gold border */
    background-color: #fff9e6; /* Very light gold tint */
    color: #333;
}

/* Modal Header */
.modal-header {
    background-color: #f8f1e0; /* Light gold */
    color: #5c4a00;
    border-bottom: 1px solid #e6d8b5;
}

/* Modal Body */
.modal-body {
    background-color: #fff; /* Pure white */
    color: #333;
}

/* Modal Footer */
.modal-footer {
    background-color: #f8f1e0; /* Matches header */
    border-top: 1px solid #e6d8b5;
}

/* Close Button */
.modal-header .btn-close {
    filter: brightness(0.7); /* Darker X for better visibility */
}

/* Primary Button */
.modal-footer .btn-primary {
    background-color: #d4af37; /* Gold */
    border-color: #c19d2b;
    color: #fff;
}

/* Secondary Button */
.modal-footer .btn-secondary {
    background-color: #f0e6cc;
    border-color: #e6d8b5;
    color: #5c4a00;
}

/* Form Elements */
.modal-body .form-control {
    border: 1px solid #e6d8b5;
}

.modal-body .form-control:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

/* Optional: Add gold accent to modal title */
.modal-title {
    color: #8a7500;
    font-weight: 600;
}

/* Primary buttons that open modals */
.btn-primary {
    background-color: #d4af37;
    border-color: #c19d2b;
    color: #fff;
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #c19d2b;
    border-color: #a78a25;
    color: #fff;
}

.btn-primary:active,
.btn-primary.active {
    background-color: #a78a25;
    border-color: #8a7500;
}

/* For small buttons (like your example) */
.btn-primary.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Icon adjustment */
.btn-primary i.fas {
    margin-right: 0.3rem;
}
:root {
    --sidebar-width-desktop: 220px;
    --sidebar-width-tablet: 70px;
    --sidebar-width-mobile: 0px;
    --primary-color: #c68100;
    --dark-color: #78520c;
    --text-color: #333;
    --border-color: #e0d8c7;
  }
  
  /* Base Layout Fixes */
  body {
    overflow-x: hidden;
    font-size: 14px;
  }
  
  /* Sidebar Responsiveness */
  .sidebar {
    width: var(--sidebar-width-desktop);
    transition: all 0.3s ease;
    z-index: 1040;
    overflow-y: auto;
    overflow-x: hidden;
  }
  
  .main-content {
    margin-left: var(--sidebar-width-desktop);
    transition: all 0.3s ease;
    width: calc(100% - var(--sidebar-width-desktop));
  }
  
  /* Sidebar Toggle Button */
  .sidebar-toggle {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1050;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }
  
  /* Fix Card and Table Responsiveness */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .card {
    overflow: hidden;
    word-wrap: break-word;
    width: 100%;
  }
  
  .card-body {
    overflow-x: hidden;
  }
  
  .card-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  /* Fix container issues with content overflow */
  .container, .container-fluid, .row, .col, 
  .col-md-12, .col-lg-12, .col-sm-12 {
    max-width: 100%;
    word-wrap: break-word;
    overflow-x: hidden;
  }
  
  /* Form control sizes */
  .form-control, .form-select, .btn {
    font-size: 0.85rem !important;
  }
  
  /* Stats Cards */
  .stats-card {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
  }
  
  .stats-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
  }
  
  .stats-info {
    margin-left: 10px;
  }
  
  .stats-info h5, .stats-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
  }
  
  .stats-info p {
    font-size: 0.75rem;
    margin-bottom: 0;
  }
  
  /* Tablet Responsiveness (768px - 992px) */
  @media (max-width: 992px) {
    .sidebar {
      width: var(--sidebar-width-tablet);
    }
    
    .main-content {
      margin-left: var(--sidebar-width-tablet);
      width: calc(100% - var(--sidebar-width-tablet));
    }
    
    /* Hide sidebar text on tablet */
    .sidebar .nav-link span {
      display: none;
    }
    
    .sidebar .nav-link i {
      margin-right: 0;
      font-size: 1.25rem;
    }
    
    .sidebar .logo-container {
      justify-content: center;
    }
    
    .sidebar .logo {
      height: 100px;
    }
  
    /* Chart container height adjustments */
    .chart-container {
      height: 250px !important;
    }
    
    /* Adjust card headers for tablets */
    .card-header {
      padding: 0.75rem;
    }
  
    .card-header h5 {
      font-size: 0.9rem;
    }
    
    /* Dashboard header adjustments */
    .dashboard-header {
      padding: 1rem;
    }
    
    /* POS container adjustments */
    .pos-container {
      padding: 0.5rem;
    }
  }
  
  /* Mobile Responsiveness (up to 767px) */
  @media (max-width: 767px) {
    /* Hide sidebar by default */
    .sidebar {
      transform: translateX(-100%);
      position: fixed;
      width: 200px;
      top: 0;
      left: 0;
      height: 100%;
      z-index: 1040;
    }
    
    /* Show sidebar text when mobile sidebar is open */
    .sidebar .nav-link span {
      display: inline; 
    }
  
    .sidebar .nav-link i {
      margin-right: 0.5rem;
    }
    
    /* Full width main content */
    .main-content {
      margin-left: 0 !important;
      width: 100%;
      padding: 0.75rem;
    }
    
    /* Transaction section filter improvements for mobile */
    #transaction-section .card-header .row {
      flex-direction: column;
    }
    
    #transaction-section .card-header .col-md-6,
    #transaction-section .card-header .d-flex {
      width: 100%;
      margin-bottom: 10px;
    }
    
    #transaction-section .d-flex{
      flex-wrap: wrap;
      gap: 8px;
    }
    
    #transaction-section .form-control-sm,
    #transaction-section .btn-sm {
      width: auto;
      margin-right: 0 !important;
      display: inline-block;
    }
    
    /* Fixed transactions filter container */
    #transaction-section .card-header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: white;
    }
    
    /* Show toggle button */
    .sidebar-toggle {
      display: flex;
    }
    
    /* Class to show sidebar when toggled */
    .sidebar-mobile-open .sidebar {
      transform: translateX(0);
    }
    
    /* Overlay when sidebar is open */
    .sidebar-mobile-open:before {
      content: '';
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.5);
      z-index: 1030;
    }
    
    /* Stats card adjustments */
    .stats-card {
      padding: 10px;
    }
    
    .stats-icon {
      width: 35px;
      height: 35px;
      font-size: 1rem;
    }
    
    .stats-info h5, .stats-info h3 {
      font-size: 0.9rem;
    }
    
    .stats-info p {
      font-size: 0.7rem;
    }
    
    /* Card and Table adjustments */
    .card {
      margin-bottom: 15px;
    }
    
    .card-body {
      padding: 0.75rem;
    }
    
    .table th, .table td {
      padding: 0.5rem;
      font-size: 0.75rem;
    }
    
    /* Form control adjustments */
    .form-control, .form-select, .btn {
      padding: 0.25rem 0.5rem;
      font-size: 0.75rem !important;
    }
    
    /* Fix chart containers */
    .chart-container {
      height: 200px !important;
    }
  
    /* Fix report section spacing */
    .report-section {
      padding: 10px;
      /* margin: 10px; */
    }
    
    /* Adjust date displays */
    .date-display {
      font-size: 0.8rem;
    }
    
    /* Fix POS layout */
    .pos-header {
      padding: 0.5rem;
    }
    
    .pos-content {
       padding: 0.5rem;
       width: 100vw;
       max-width: 100vw;
       margin: 0;
       padding: 0;
       overflow-x: hidden;
    }
    
    /* Kitchen display adjustments */
    .kitchen-header {
      padding: 0.75rem;
    }
  
    /* Fix modal display */
    .modal-dialog {
      margin: 0.5rem;
    }
  
    .modal-body {
      padding: 1rem;
    }

    .report-section{
        padding: 0px;
        margin: 0 !important;
        width: 100%;
    }
  }
  
  /* Smallest Mobile Screens */
  @media (max-width: 576px) {
    /* Even smaller stats cards */
    .stats-card {
      padding: 8px;
    }
    
    .stats-icon {
      width: 30px;
      height: 30px;
      font-size: 0.85rem;
    }
    
    .stats-info h5, .stats-info h3 {
      font-size: 0.85rem;
    }
    
    /* Make header even more compact */
    .dashboard-header {
      padding: 0.5rem;
      margin-bottom: 0.75rem;
    }
  
    .dashboard-header h4 {
      font-size: 1rem;
    }
    
    /* Button adjustments */
    .btn {
      padding: 0.2rem 0.4rem;
      font-size: 0.7rem !important;
    }
    
    /* Smaller charts */
    .chart-container {
      height: 180px !important;
    }
    
    /* Fix product cards in POS */
    .product-card {
      padding: 8px;
    }
    
    .product-details h4 {
      font-size: 0.8rem;
    }
    
    .product-price {
      font-size: 0.75rem;
    }
    
    /* Fix category cards */
    .category-card {
      padding: 8px;
    }
    
    .category-details h3 {
      font-size: 0.8rem;
    }
    
    /* Hide less important transaction columns */
    #transaction-section .table th:nth-child(4),
    #transaction-section .table th:nth-child(5),
    #transaction-section .table th:nth-child(6),
    #transaction-section .table td:nth-child(4),
    #transaction-section .table td:nth-child(5),
    #transaction-section .table td:nth-child(6) {
      display: none;
    }
    
    /* Make transaction buttons stack */
    #transaction-section .table .btn {
      margin-bottom: 5px;
      display: inline-block;
      width: 100%;
    }
    #transaction-section td .d-flex {
    flex-wrap: nowrap !important;
    gap: 4px; /* Optional: smaller gap on mobile */
  }
  }
  .report-section {
    padding: 10px;
    margin: 40px;
  }
  /* Fix for Tables in Reports Section */
  
  .report-section .table {
    width: 100%;
    min-width: 650px; /* Ensure minimum width for scrollable tables */
  }
  
  /* JS-based responsive classes */
  .d-xs-none {
    display: none !important;
  }
  
  @media (min-width: 576px) {
    .d-sm-block {
      display: block !important;
    }

   
  }
  
  @media (min-width: 768px) {
    .d-md-block {
      display: block !important;
    }
  }
  
  /* Better Navigation in Tab Content */
  .nav-tabs .nav-item {
    flex: 1;
    text-align: center;
  }
  
  .nav-tabs .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  @media (max-width: 576px) {
    .nav-tabs {
      flex-wrap: nowrap;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-link {
      padding: 0.5rem;
      font-size: 0.75rem;
    }
  }

  @media (min-width: 1024px) and (max-width: 1366px) {
    .pos-container {
        max-width: 100%;
        padding: 10px;
    }
}
  /* Fix for Tab Panels */
  /* .tab-content > .tab-pane {
    padding: 1rem 0;
  }
 */