    /* ===============================
   Orders Page Styling
    =============================== */

/* Orders Grid Layout */
.orders-grid {
  display: grid;
  grid-template-columns: 65% 35%;
  gap: 32px;
  padding: 0 24px 24px 24px;
  height: 100%;
}

/* Card Styling */
.orders-card,
.receipt-container {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}

/* Orders Header */
.orders-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.orders-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: white;
  margin: 0 0 16px 0;
}

.orders-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Table Container */
.data-table-container {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 20px 20px;
}

#orders-table {
  flex: 1;
  overflow: auto;
}

/* Search & Filter Controls */
.table-search {
  position: relative;
  flex: 1;
  max-width: 300px;
}

.table-search input {
  width: 100%;
  padding: 10px 16px;
  padding-right: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  font-size: 14px;
}

.table-search input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.2);
}

.table-search i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

.table-filter-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.table-filter-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.table-filter-btn.active {
  background: linear-gradient(45deg, #ff9966, #ff5e62);
  border-color: transparent;
}

.table-filter-btn i {
  opacity: 0.7;
}

/* Status Filter Dropdown */
.status-filter-dropdown {
  background: rgba(42, 42, 42, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px;
  min-width: 200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.filter-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: white;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.filter-option.active {
  background: linear-gradient(45deg, #ff9966, #ff5e62);
  color: white;
}

.filter-label {
  font-size: 14px;
  font-weight: 500;
}

.filter-count {
  font-size: 12px;
  opacity: 0.7;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  min-width: 20px;
  text-align: center;
}

.filter-option.active .filter-count {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

/* Receipt Styling */
.receipt-container {
  padding: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
}

.receipt-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  gap: 24px;
}

.receipt-arrow {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.receipt-arrow:hover {
  background: rgba(255, 255, 255, 0.05);
}

.receipt-style {
  background: #fffdf5;
  border-radius: 12px;
  color: black;
  width: 100%;
  min-width: 360px;
  max-width: 400px;
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: 'Courier New', Courier, monospace;
  margin: 0 auto;
  overflow: hidden;
}

.receipt-border-top,
.receipt-border-bottom {
  height: 12px;
  background: repeating-linear-gradient(      45deg,      transparent,      transparent 6px,      #ccc 6px,      #ccc 8px    );
        }
      
.receipt-border-top::after,
.receipt-border-bottom::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.receipt-border-top::after {
  bottom: 0;
}

.receipt-border-bottom::after {
  top: 0;
}

.receipt-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  min-height: 0;
}

    .receipt-header {
  margin-bottom: 24px;
      }
      
      .receipt-header-title {
        display: flex;
        justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
      }
      
.receipt-header-text h2 {
        font-size: 16px;
        font-weight: bold;
        margin: 0;
        color: #222;
      }
      
.receipt-date {
        font-size: 13px;
     color: #666;image.pngimage.pngIk image.pngIk 
  margin: 4px 0 0 0;
  font-family: 'Courier New', Courier, monospace;
      }
      
.receipt-items {
        margin-bottom: 24px;
}

/* Receipt Item Styling */
.order-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #ccc;
}
      
.order-item:last-child {
  border-bottom: none;
      }
      
.order-item img {
        width: 36px;
        height: 36px;
  object-fit: contain;
  border-radius: 4px;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      }
      
.item-info {
  flex: 1;
  min-width: 0;
}

.item-info h3 {
  font-size: 14px;
  margin: 0;
  font-weight: normal;
  color: #222;
}

.item-price {
  font-size: 13px;
  color: #222;
  margin: 2px 0;
}

.item-price .stukprijs {
  color: #666;
  font-size: 11px;
}

.item-options {
  font-size: 12px;
  color: #666;
  margin: 2px 0 0 0;
  line-height: 1.3;
}
      
/* Receipt Footer */
.receipt-footer {
  border-top: 2px dashed #ccc;
  padding-top: 16px;
  margin-top: auto;
}

.receipt-totals,
.totals {
  font-size: 14px;
  color: #222;
  line-height: 1.5;
}

.receipt-totals .line,
.totals .line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.receipt-totals .total,
.totals .total {
  font-weight: bold;
  font-size: 14px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ccc;
}

.receipt-totals .total span,
.totals .total span {
  font-weight: bold;
}

.payment-method {
  margin-top: 16px;
  text-align: center;
  background: #e0ffe0;
  color: #075c07;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid #0a0;
}

.customer-info {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #666;
  padding-top: 12px;
  border-top: 1px dashed #ccc;
}

/* API Log Popup */
.api-log-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 3000;
}

.api-log-popup {
  position: fixed;
  top: 200px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  max-height: calc(100vh - 140px);
  background: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  z-index: 3001;
  overflow: hidden;
}

/* Mobile API Log Popup adjustments */
@media (max-width: 1023px) {
  .api-log-popup {
    top: 80px;
    width: 95%;
    max-width: 500px;
    max-height: calc(100vh - 100px);
    border-radius: 20px;
  }
  
  .api-log-popup-header {
    padding: 20px 24px;
  }
  
  .api-log-popup-header h3 {
    font-size: 18px;
  }
  
  .api-log-popup-body {
    padding: 20px 24px 24px;
    max-height: calc(100vh - 180px);
  }
  
  .api-json {
    margin: 0 0 16px 0;
    padding: 12px 16px;
    font-size: 12px;
  }
  
  .api-call-section {
    padding: 0;
    margin: 16px 0 8px 0;
    font-size: 13px;
  }
  
  .api-call-title {
    padding: 12px 16px;
    font-size: 15px;
  }
}

.api-log-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.api-log-popup-header h3 {
  color: white;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  background: linear-gradient(45deg, #ff9966, #ff5e62, #ffc371);
  background-size: 300% 300%;
  animation: morph 10s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 10px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.close-btn:hover {
  background: linear-gradient(45deg, #ff9966, #ff5e62, #ffc371);
  background-size: 300% 300%;
  animation: morph 10s ease infinite;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(255, 100, 50, 0.3);
  transform: translateY(-1px);
}

.api-log-popup-body {
  padding: 24px 32px 32px;
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  background: linear-gradient(145deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.api-log-popup-body::-webkit-scrollbar {
  width: 6px;
}

.api-log-popup-body::-webkit-scrollbar-track {
  background: transparent;
}

.api-log-popup-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.api-log-popup-body::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.api-call {
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.api-call:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.api-call-title {
  background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  color: white;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 16px 16px 0 0;
  margin: 0;
  list-style: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.api-call-title:hover {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
}

.api-call-title::before {
  content: "▶";
  margin-right: 12px;
  transition: transform 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.api-call[open] .api-call-title::before {
  transform: rotate(90deg);
  color: #ff9966;
}

.api-call-section {
  color: #ff9966;
  font-weight: 600;
  margin: 20px 0 12px 0;
  font-size: 14px;
  padding: 0 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.api-json {
  background: linear-gradient(145deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.2));
  color: #e8e8e8;
  padding: 16px 20px;
  margin: 0 20px 20px 20px;
  border-radius: 12px;
  font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  white-space: pre-wrap;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* JSON Syntax Highlighting */
.api-json .token.key {
  color: #ff9966;
  font-weight: 500;
}

.api-json .token.string {
  color: #ffc371;
}

.api-json .token.number {
  color: #b5cea8;
}

.api-json .token.boolean {
  color: #ff5e62;
  font-weight: 600;
}

.api-json .token.null {
  color: #999;
  font-style: italic;
}

/* Keyframes voor gradient animatie */
@keyframes morph {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hidden {
  display: none !important;
}

/* Mobile Receipt Popup */
.mobile-receipt-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2000;
}

.mobile-receipt-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 500px;
  max-height: 85vh;
  background: transparent;
  border-radius: 0;
  z-index: 2001;
  overflow: visible;
  box-shadow: none;
}

.mobile-receipt-header {
  display: none;
}

.mobile-receipt-content {
  padding: 0;
  max-height: 85vh;
  overflow-y: auto;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  position: relative;
}

/* Style the receipt within mobile popup */
.mobile-receipt-content .receipt-style {
  background: #fffdf5;
  border-radius: 12px;
  color: black;
  width: 100%;
  max-width: 380px;
  min-height: auto;
  max-height: 85vh;
  position: relative;
  display: flex;
  flex-direction: column;
  font-family: 'Courier New', Courier, monospace;
  margin: 0 auto;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Ensure border-bottom is always visible on mobile */
.mobile-receipt-content .receipt-border-bottom {
  flex-shrink: 0;
  margin-top: auto;
}

/* Close button on receipt */
.mobile-receipt-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #666;
  font-size: 14px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  z-index: 10;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-receipt-close:hover {
  background: rgba(0, 0, 0, 0.2);
  color: #333;
}

.mobile-receipt-content .receipt-border-top,
.mobile-receipt-content .receipt-border-bottom {
  height: 12px;
  background: repeating-linear-gradient(45deg, transparent, transparent 6px, #ccc 6px, #ccc 8px);
}

.mobile-receipt-content .receipt-border-top::after,
.mobile-receipt-content .receipt-border-bottom::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}

.mobile-receipt-content .receipt-border-top::after {
  bottom: 0;
}

.mobile-receipt-content .receipt-border-bottom::after {
  top: 0;
}

.mobile-receipt-content .receipt-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  min-height: 0;
  max-height: calc(85vh - 44px);
}

.mobile-receipt-content .receipt-header {
  margin-bottom: 24px;
}

.mobile-receipt-content .receipt-header-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.mobile-receipt-content .receipt-header-text h2 {
  font-size: 16px;
  font-weight: bold;
  margin: 0;
  color: #222;
}

.mobile-receipt-content .receipt-date {
  font-size: 13px;
  color: #666;
  margin: 4px 0 0 0;
  font-family: 'Courier New', Courier, monospace;
}

.mobile-receipt-content .api-log-icon {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 6px;
  color: #666;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.mobile-receipt-content .api-log-icon:hover {
  background: rgba(0, 0, 0, 0.1);
}

.mobile-receipt-content .receipt-items {
  margin-bottom: 24px;
}

.mobile-receipt-content .order-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #ccc;
}

.mobile-receipt-content .order-item:last-child {
  border-bottom: none;
}

.mobile-receipt-content .order-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mobile-receipt-content .item-info {
  flex: 1;
  min-width: 0;
}

.mobile-receipt-content .item-info h3 {
  font-size: 14px;
  margin: 0;
  font-weight: normal;
  color: #222;
}

.mobile-receipt-content .item-price {
  font-size: 13px;
  color: #222;
  margin: 2px 0;
}

.mobile-receipt-content .item-price .stukprijs {
  color: #666;
  font-size: 11px;
}

.mobile-receipt-content .item-options {
  font-size: 12px;
  color: #666;
  margin: 2px 0 0 0;
  line-height: 1.3;
}

.mobile-receipt-content .receipt-footer {
  border-top: 2px dashed #ccc;
  padding-top: 16px;
  margin-top: auto;
}

.mobile-receipt-content .receipt-totals,
.mobile-receipt-content .totals {
  font-size: 14px;
  color: #222;
  line-height: 1.5;
}

.mobile-receipt-content .receipt-totals .line,
.mobile-receipt-content .totals .line {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.mobile-receipt-content .receipt-totals .total,
.mobile-receipt-content .totals .total {
  font-weight: bold;
  font-size: 14px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #ccc;
}

.mobile-receipt-content .receipt-totals .total span,
.mobile-receipt-content .totals .total span {
  font-weight: bold;
}

.mobile-receipt-content .payment-method {
  margin-top: 16px;
  text-align: center;
  background: #e0ffe0;
  color: #075c07;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  border: 1px solid #0a0;
}

.mobile-receipt-content .customer-info {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #666;
  padding-top: 12px;
  border-top: 1px dashed #ccc;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .mobile-receipt-popup {
    width: 95%;
    max-height: 90vh;
  }
  
  .mobile-receipt-header {
    padding: 16px;
  }
  
  .mobile-receipt-header h3 {
    font-size: 16px;
  }
}

/* Mobile Styles */
@media (max-width: 1023px) {
  .orders-grid {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

    .orders-right {
      display: none;
    }

  .orders-controls {
    flex-wrap: wrap;
  }
  
  .table-search {
    order: 2;
    max-width: none;
    width: 100%;
  }

  #date-filter {
    order: 1;
    width: 100%;
  }

  .table-filter-btn {
      order: 3;
    }
  }image.pngimage.png