/* Dark theme overrides */
.v-theme--dark {
  --v-theme-surface: #121212;
  --v-theme-surface-rgb: 18, 18, 18;
  --v-theme-on-surface: #ffffff;
  --v-theme-on-surface-rgb: 255, 255, 255;
  
  --v-theme-background: #000000;
  --v-theme-background-rgb: 0, 0, 0;
  --v-theme-on-background: #ffffff;
  --v-theme-on-background-rgb: 255, 255, 255;
}

/* Vertical nav bar dark theme background */
.v-application.v-theme--dark .layout-nav-type-vertical .layout-vertical-nav,
.v-application .v-theme-provider.v-theme--dark .layout-vertical-nav {
  background-color: #232333 !important;
}

/* POS Layout Responsiveness Fixes */
@media (max-width: 1400px) {
  /* Ensure POS container doesn't overflow */
  .pos-container,
  .pos-layout,
  [class*="pos"],
  [class*="Pos"] {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Right panel adjustments */
  .pos-right-panel,
  .pos-cart-panel,
  .pos-order-panel {
    min-width: 320px !important;
    max-width: 380px !important;
    flex-shrink: 0 !important;
  }

  /* Button group adjustments */
  .pos-actions-group,
  .pos-buttons {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  .pos-actions-group button,
  .pos-buttons button {
    font-size: 0.875rem !important;
    padding: 0.5rem 0.75rem !important;
  }
}

@media (max-width: 1280px) {
  /* More aggressive width reduction for smaller laptops */
  .pos-right-panel,
  .pos-cart-panel,
  .pos-order-panel {
    min-width: 280px !important;
    max-width: 340px !important;
  }

  /* Table viewer, orders, cash movement buttons */
  .pos-action-buttons .v-btn {
    font-size: 0.75rem !important;
    padding: 0.375rem 0.625rem !important;
  }

  /* Order summary section */
  .pos-order-summary,
  .pos-totals {
    font-size: 0.875rem !important;
  }

  /* Pay & Fire and Send to Kitchen buttons */
  .pos-primary-actions .v-btn {
    font-size: 0.875rem !important;
    padding: 0.5rem 1rem !important;
  }
}

@media (max-width: 1024px) {
  /* Tablet/Small laptop adjustments */
  .pos-layout {
    flex-direction: column !important;
  }

  .pos-right-panel,
  .pos-cart-panel,
  .pos-order-panel {
    min-width: 100% !important;
    max-width: 100% !important;
    order: 2 !important;
  }

  .pos-main-content {
    order: 1 !important;
  }
}

/* Prevent horizontal scroll on POS pages */
body.pos-page,
body[class*="pos"] {
  overflow-x: hidden !important;
}

/* Ensure flex containers don't overflow */
[class*="pos"] .v-row,
[class*="pos"] .v-col,
[class*="Pos"] .v-row,
[class*="Pos"] .v-col {
  overflow-x: hidden !important;
}

/* Fix for right panel being cut off */
.pos-right-section,
.pos-cart-section {
  flex-shrink: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}