@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* Ultra-Premium 2026 Palette - PauQuiroga Brand Identity (Elegant Catering) */
  --bg-dark: #fcfcfc;
  /* Off-white / Ivory */
  --bg-gradient-1: #f3f4f6;
  --bg-gradient-2: #e5e7eb;

  --primary: #94A385;
  /* Sage / Olive Green */
  --primary-rgb: 148, 163, 133;
  --primary-dark: #5D6B4E; /* High contrast variant for text/labels */
  --primary-accent: #B97A57;
  --primary-glow: rgba(148, 163, 133, 0.4);
  --primary-hover: #7b8b6e;

  --secondary: #D4AF37;
  /* Champagne Gold */
  --secondary-glow: rgba(212, 175, 55, 0.3);

  --accent: #B97A57;
  --accent-glow: rgba(185, 122, 87, 0.3);

  --danger: #dc2626;
  --danger-rgb: 220, 38, 38;

  --surface-glass: rgba(255, 255, 255, 0.7);
  --surface-glass-solid: #ffffff;
  --surface-border: rgba(0, 0, 0, 0.08);
  --surface-border-strong: rgba(0, 0, 0, 0.15);
  --divider: #E5E7EB;

  --text-main: #1f2937;
  /* Deep Slate */
  --text-muted: #6b7280;
  --secondary-text: #6b7280;
  --primary-text: #1f2937;

  /* Geometry & Physics */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;

  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --sidebar-width: 280px;
  --glass-blur: blur(16px);
  --glass-border: rgba(255, 255, 255, 0.2);
  --border-light: rgba(0, 0, 0, 0.05);

  /* Grid Gutters */
  --grid-gutter-x: 1.5rem;
  --grid-gutter-y: 1.5rem;
}

[data-theme="dark"] {
  --bg-dark: #0f172a;
  /* Deep Slate Navy */
  --bg-gradient-1: #1e293b;
  --bg-gradient-2: #0f172a;

  --primary: #a3b18a;
  --primary-hover: #dad7cd;
  --primary-glow: rgba(163, 177, 138, 0.2);

  --surface-glass: rgba(30, 41, 59, 0.7);
  --surface-glass-solid: #1e293b;
  --surface-border: rgba(255, 255, 255, 0.08);
  --surface-border-strong: rgba(255, 255, 255, 0.15);
  --divider: rgba(255, 255, 255, 0.1);

  --danger: #ef4444;
  --danger-rgb: 239, 68, 68;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --secondary-text: #94a3b8;
  --primary-text: #f8fafc;
}

/* Dark Mode Fixes - Elementos con colores hardcodeados */
[data-theme="dark"] .glass-card,
[data-theme="dark"] .modal-content,
[data-theme="dark"] .signup-form-side,
[data-theme="dark"] .detailCard,
[data-theme="dark"] .card-body,
[data-theme="dark"] .card-footer,
[data-theme="dark"] .glass-switch-container {
  background: var(--surface-glass-solid) !important;
  color: var(--text-main);
  border-color: var(--surface-border) !important;
}

[data-theme="dark"] .glass-card .card-header {
  background: rgba(255,255,255,0.03) !important;
  border-bottom-color: var(--surface-border) !important;
}

[data-theme="dark"] .glass-card .card-body {
  background: transparent !important;
}

[data-theme="dark"] table,
[data-theme="dark"] .q-table,
[data-theme="dark"] table thead tr {
  background: transparent !important;
  color: var(--text-main);
}

[data-theme="dark"] table th,
[data-theme="dark"] .q-table th {
  background: rgba(255,255,255,0.05) !important;
  color: var(--text-muted);
}

[data-theme="dark"] table td {
  border-bottom-color: var(--surface-border) !important;
}

[data-theme="dark"] table tr:nth-child(odd),
[data-theme="dark"] .q-table tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.02) !important;
}

[data-theme="dark"] .card-image-container {
  background: rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] input.form-control,
[data-theme="dark"] select.form-select,
[data-theme="dark"] textarea.form-control,
[data-theme="dark"] .glass-input {
  background: rgba(255,255,255,0.08) !important;
  color: var(--text-main) !important;
  border-color: var(--surface-border) !important;
}

[data-theme="dark"] .form-floating-glass input {
  background: rgba(255,255,255,0.08) !important;
  color: var(--text-main) !important;
}

[data-theme="dark"] .btn-outline-secondary {
  border-color: var(--surface-border) !important;
  color: var(--text-muted) !important;
}

[data-theme="dark"] .bg-light,
[data-theme="dark"] .bg-white {
  background: rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] .text-dark {
  color: var(--text-main) !important;
}

[data-theme="dark"] .text-muted {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .border-light,
[data-theme="dark"] .border {
  border-color: var(--surface-border) !important;
}

[data-theme="dark"] .sidebar-nav {
  background: var(--surface-glass-solid) !important;
  border-right-color: var(--surface-border) !important;
}

[data-theme="dark"] .sidebar-nav a {
  color: var(--text-muted) !important;
}

[data-theme="dark"] .sidebar-nav a.active,
[data-theme="dark"] .sidebar-nav a:hover {
  color: var(--text-main) !important;
  background: rgba(255,255,255,0.05) !important;
}

[data-theme="dark"] .dropdown-item,
[data-theme="dark"] .autocomplete-dropdown {
  background: var(--surface-glass-solid) !important;
  color: var(--text-main) !important;
  border-color: var(--surface-border) !important;
}

[data-theme="dark"] .dropdown-item:hover {
  background: rgba(255,255,255,0.08) !important;
}

[data-theme="dark"] .alert {
  background: rgba(255,255,255,0.05) !important;
  border-color: var(--surface-border) !important;
}

[data-theme="dark"] .pagination .page-item .page-link {
  background: var(--surface-glass-solid) !important;
  color: var(--text-main) !important;
  border-color: var(--surface-border) !important;
}

[data-theme="dark"] .finance-report-summary,
[data-theme="dark"] .report-container {
  color: var(--text-main) !important;
}

[data-theme="dark"] .finance-report-summary h4,
[data-theme="dark"] .finance-report-summary h5,
[data-theme="dark"] .finance-report-summary label,
[data-theme="dark"] .finance-report-summary p {
  color: var(--text-main) !important;
}

[data-theme="dark"] .price {
  color: var(--secondary) !important;
}

[data-theme="dark"] .signup-container-glass {
  background: rgba(15, 23, 42, 0.95) !important;
}

[data-theme="dark"] .login-wrapper {
  background: linear-gradient(-45deg, #1e293b, #0f172a, #1e293b, #0f172a) !important;
  background-size: 400% 400% !important;
}

[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, [data-theme="dark"] h4, [data-theme="dark"] h5 {
  color: var(--text-main) !important;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Aurora Background */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1;
  animation: auroraFlow 25s infinite alternate linear;
  opacity: 0.7;
}

body::before {
  background: radial-gradient(circle, rgba(148, 163, 133, 0.2) 0%, transparent 60%);
  top: -100px;
  left: -200px;
}

body::after {
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%);
  bottom: -200px;
  right: -200px;
  animation-delay: -5s;
}

@keyframes auroraFlow {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(50px, 80px) scale(1.1);
  }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

h1 {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.85rem;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.4;
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

/* Layout */
.app-container {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  padding: 1.5rem;
  border-right: 1px solid var(--surface-border);
  background-color: var(--surface-glass);
}

.sidebar-nav select.glass-input {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-nav select.glass-input:focus {
  border-color: var(--primary);
  background: white;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  transition: margin-left var(--transition-smooth), width var(--transition-smooth);
}

.main-content.with-sidebar {
  margin-left: var(--sidebar-width);
  width: calc(100vw - var(--sidebar-width));
}

.page-container {
  padding: 3rem;
  overflow-y: auto;
  flex: 1;
  /* Custom scrollbar for webkit */
  scrollbar-width: thin;
  scrollbar-color: var(--surface-border-strong) transparent;
}

/* Hide Mobile Topbar on Desktop â€” must come BEFORE the mobile media query so the mobile rule wins */
.mobile-topbar {
  display: none !important;
}

.d-none {
  display: none !important;
}

/* --- RESPONSIVENESS (Mobile <= 768px) --- */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 0px;
  }

  .main-content {
    margin-left: 0 !important;
    width: 100vw !important;
  }

  /* Hamburger Top Bar - only show if NOT d-none */
  .mobile-topbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--surface-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
    position: sticky;
    top: 0;
    z-index: 900;
  }

  .mobile-topbar.d-none {
    display: none !important;
  }

  .hamburger-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
  }

  /* Sidebar styling for mobile/iPad */
  #sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-smooth);
    /* Smoother transition */
    z-index: 1100 !important;
    width: 280px !important;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.2);
    /* Softer shadow */
    border-right: 1px solid var(--surface-border-strong);
  }

  #sidebar.active {
    transform: translateX(0);
  }

  /* Frosted Glass Overlay for Mobile Drawer */
  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
  }

  .sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  .page-container {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}

/* Ensure Main Content doesn't collapse or overlap */
.main-content.with-sidebar {
  margin-left: var(--sidebar-width) !important;
  width: calc(100vw - var(--sidebar-width)) !important;
}

.page-container::-webkit-scrollbar {
  width: 8px;
}

.page-container::-webkit-scrollbar-thumb {
  background: var(--surface-border-strong);
  border-radius: var(--radius-pill);
}

/* 2026 Glass Components */
.glass-panel {
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  padding: 2rem;
  transition: transform var(--transition-bounce), border-color var(--transition-fast);
}

.card {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: var(--surface-border-strong);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(255, 255, 255, 0.05);
}

.card:hover::before {
  opacity: 1;
}

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label,
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control,
input,
select,
textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--surface-border);
  color: var(--text-main);
  padding: 1rem 1.25rem;
  min-height: 44px; /* WCAG touch target */
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition-fast);
  backdrop-filter: blur(8px);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 4px var(--primary-glow);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  background: rgba(0, 0, 0, 0.4);
}

input::placeholder,
textarea::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* Modals / Overlays handled in Premium section below */

/* Buttons */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  min-height: 44px; /* WCAG touch target */
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-main); /* Better default contrast */
  background: var(--surface-glass-solid);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-bounce);
  text-transform: none;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn::after,
.button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn:hover,
.button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn:hover::after,
.button:hover::after {
  opacity: 1;
}

.btn:active,
.button:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary,
.primaryButton {
  background: var(--primary);
  color: #fff; /* Explicit contrast */
  border-color: var(--primary);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.btn-primary:hover,
.primaryButton:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 12px 25px var(--primary-glow);
}

.btn-danger {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* Floating Action Button */
#floating-button button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 1.5rem;
  border: none;
  box-shadow: 0 10px 25px var(--primary-glow);
  cursor: pointer;
  transition: all var(--transition-bounce);
  display: flex;
  align-items: center;
  justify-content: center;
}

#floating-button button:hover {
  transform: scale(1.1) rotate(90deg);
  background: var(--primary-hover);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--surface-border);
  margin-bottom: 2rem;
}

.filter-bar input.search-bar {
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid transparent;
  width: 300px;
}

.filter-bar input.search-bar:focus {
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.5);
}

.filter-bar select {
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--surface-border);
  color: white;
  cursor: pointer;
}

.filter-bar select option {
  background: var(--bg-dark);
  color: white;
}

/* Grid System for Custom Cards Container */
#cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Placeholders */
.container-placeholder {
    filter: hue-rotate(210deg) brightness(0.9) saturate(1.2);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    backdrop-filter: blur(0px);
  }

  to {
    opacity: 1;
    backdrop-filter: blur(8px);
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Utility Classes */
.text-gradient {
  background: linear-gradient(135deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Data Tables */
.table-container {
  background: var(--surface-glass);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  overflow: hidden;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--surface-border);
}

.table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Badges */
.badge {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-primary {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ========================================================================= */
/* --- 5. PEDIDOS FILTERS REDESIGN (Glassmorphism & Grid Strategy) ---       */
/* ========================================================================= */

/* ========================================================================= */
/* --- 5. BANNERS REDESIGN (Filter & Action Banners) ---                 */
/* ========================================================================= */

.filter-banner,
.app-banner {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  display: block;
}

.filter-container,
.banner-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  align-items: flex-end;
}

/* App Banner for Actions/Buttons */
.app-banner {
  background: linear-gradient(135deg, var(--surface-glass), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--surface-border);
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0px;
}

/* --- GRID SYSTEM FOR CARDS --- */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--grid-gutter-x) * -0.5);
  margin-left: calc(var(--grid-gutter-x) * -0.5);
  margin-top: calc(var(--grid-gutter-y) * -1);
}

.row>* {
  padding-right: calc(var(--grid-gutter-x) * 0.5);
  padding-left: calc(var(--grid-gutter-x) * 0.5);
  margin-top: var(--grid-gutter-y);
}

.g-4 {
  --grid-gutter-x: 1.5rem;
  --grid-gutter-y: 1.5rem;
}

[class*="col-"] {
  box-sizing: border-box;
}

.col-12 {
  width: 100%;
}

.col-8 {
  width: 66.666%;
}

.col-6 {
  width: 50%;
}

.col-4 {
  width: 33.333%;
}

.col-3 {
  width: 25%;
}

@media (max-width: 600px) {

  .col-6,
  .col-4,
  .col-3 {
    width: 100%;
  }
}

.data-item {
  margin-bottom: 1rem;
}

.data-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.025em;
  margin-bottom: 0.15rem;
}

.data-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-main);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
}

.filter-actions button {
  width: 100%;
}

@media (min-width: 768px) {
  .filter-actions button {
    width: auto;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* ========================================================
   MODAL OVERLAY (Premium Background Blur)
   ======================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(16px) saturate(1.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5000;
  animation: fadeIn var(--transition-smooth) forwards;
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 95%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: modalScaleUp var(--transition-bounce) forwards;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-gradient-1);
  border: 1px solid var(--surface-border);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  z-index: 100;
  font-size: 1.2rem;
}

.modal-close-btn:hover {
  background: white;
  color: var(--primary-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: rotate(90deg) scale(1.1);
}

@keyframes modalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ========================================================
    PREMIUM GLASS CARDS (2026 SaaS Aesthetic)
    ======================================================== */
.glass-card {
  background: var(--surface-glass);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  padding: 0; /* Standardized: No padding on outer card to allow full-width images */
  box-shadow: var(--card-shadow);
  border: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.glass-card .card-header,
.glass-card .card-body,
.glass-card .card-footer {
  padding: 1.5rem;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  border-color: rgba(var(--primary-accent), 0.3);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--divider);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-text);
  margin: 0;
  line-height: 1.3;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(var(--primary-accent), 0.15);
  color: var(--primary-accent);
}

.badge-success {
  background: rgba(46, 204, 113, 0.15);
  color: #27ae60;
}

.badge-warning {
  background: #fff3e0;
  color: #e65100;
}

.badge-danger {
  background: #ffebee;
  color: #c62828;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  color: var(--secondary-text);
  font-size: 0.9rem;
}

/* Card Status Traffic Light System */
.card-indicator-pending { border: 3px solid #3b82f6 !important; box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2) !important; }
.card-indicator-process { border: 3px solid #f59e0b !important; box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2) !important; }
.card-indicator-ready   { border: 3px solid #22c55e !important; box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3) !important; }
.card-indicator-danger  { border: 3px solid #ef4444 !important; box-shadow: 0 8px 32px rgba(239, 68, 68, 0.25) !important; }
.card-indicator-neutral { border: 3px solid #475569 !important; box-shadow: 0 8px 32px rgba(71, 85, 105, 0.2) !important; }
.card-indicator-muted   { border: 3px solid #94a3b8 !important; opacity: 0.7; }

.data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}

.data-label {
  font-weight: 500;
  color: #6b7280;
}

.data-value {
  font-weight: 600;
  color: var(--primary-text);
  text-align: right;
}

.data-value.price {
  color: var(--primary-accent);
  font-size: 1.05rem;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  border-top: 1px solid var(--divider);
}

.card-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-edit {
  background: rgba(var(--primary-accent), 0.1);
  color: var(--primary-accent);
}

.btn-edit:hover {
  background: var(--primary-accent);
  color: white;
}

.btn-delete {
  background: #ffebee;
  color: #c62828;
}

.btn-delete:hover {
  background: #e53935;
  color: white;
}

/* ========================================================
    PREMIUM GLASS FORMS (2026 SaaS Aesthetic)
    ======================================================== */
.formContainer {
  background: var(--surface-glass-solid);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 900px;
  box-shadow:
    0 20px 40px -10px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  animation: formSlideUp var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

/* Override inner container styles when rendered inside the new unified Modal */
.modal-card .formContainer,
.modal-card .addIngredientForm {
  background: transparent;
  box-shadow: none;
  padding: 0;
  max-height: none;
  overflow-y: visible;
}


.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  width: 100%;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fullWidth {
    grid-column: 1 / -1;
  }
}

@keyframes formSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.form-header h2 {
  font-size: 1.75rem;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

/* ========================================================
    INPUTS & SELECTS (The Core UX Redesign)
    ======================================================== */
.inputField,
.selectContainer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  width: 100%;
}

.inputField label,
.selectContainer label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.25rem;
}

.inputField input,
.inputField select,
.selectContainer select,
.glass-input {
  width: 100%;

  /* Inputs in Dark Mode */
  body.dark-mode input,
  body.dark-mode select,
  body.dark-mode textarea {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
  }

  body.dark-mode input:focus {
    border-color: var(--primary) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
  }

  background: var(--bg-gradient-1);
  color: var(--text-main);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-family: 'Inter',
  sans-serif;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: all var(--transition-fast);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.inputField input:hover,
.inputField select:hover,
.glass-input:hover {
  background: white;
  border-color: rgba(148, 163, 133, 0.3);
}

.inputField input:focus,
.inputField select:focus,
.glass-input:focus {
  background: white;
  border-color: var(--primary);
  box-shadow:
    0 0 0 4px var(--primary-glow),
    inset 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  transform: translateY(-1px);
}

/* ========================================================
    AUTOCOMPLETE SEARCH UX (AddOrder.js specific)
    ======================================================== */
.autocomplete-results-wrapper {
  background: white;
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
  z-index: 100;
  overflow: hidden;
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease-out;
}

.autocomplete-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--surface-border);
  transition: background var(--transition-fast);
  font-size: 0.95rem;
}

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

.autocomplete-item strong {
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

.autocomplete-item small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.autocomplete-item:hover {
  background: var(--primary-glow);
}

.autocomplete-item.no-results {
  color: var(--accent);
  font-style: italic;
  cursor: default;
  background: transparent;
}

/* â”€â”€ Autocomplete dropdown (replaces -results-wrapper) â”€â”€ */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}

/* â”€â”€ Customer badge after selection â”€â”€ */
.customer-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.customer-badge--assigned {
  background: rgba(148, 163, 133, 0.12);
  border: 1px solid rgba(148, 163, 133, 0.3);
}

.customer-badge--assigned strong {
  display: block;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
}

.customer-badge--assigned span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.customer-badge--none {
  background: rgba(0, 0, 0, 0.03);
  border: 1px dashed var(--surface-border-strong);
  color: var(--text-muted);
  font-style: italic;
}

/* â”€â”€ Customer search wrapper (needs position:relative for dropdown) â”€â”€ */
.customer-search-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}


/* ========================================================
    BUTTONS REDESIGN
    ======================================================== */
.buttonContainer {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  flex-wrap: wrap;
}

.btn,
.button {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  font-family: 'Outfit', sans-serif;
}

.btn-primary,
.primaryButton {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-action {
  background: var(--primary);
  color: white;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-normal);
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.btn-action:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--primary-glow);
}

.banner-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.banner-title {
  margin-bottom: 0 !important;
}

.btn-primary:hover,
.primaryButton:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--primary-glow);
}

.btn-primary:active,
.primaryButton:active {
  transform: translateY(1px);
}

.btn-secondary {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--surface-border-strong);
}

.btn-secondary:hover {
  background: var(--bg-gradient-1);
  transform: translateY(-2px);
  border-color: var(--text-muted);
}

/* ========================================================
    PEDIDOS REPORT BANNER (app-banner)
    ======================================================== */
.app-banner {
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
}

.app-banner-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.app-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* Individual report button */
.app-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--btn-bg, rgba(148, 163, 133, 0.12));
  color: var(--btn-text, var(--primary));
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-report-btn i {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.app-report-btn:hover {
  background: var(--btn-text, var(--primary));
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.app-report-btn.active-report {
  background: var(--btn-text, var(--primary));
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
  .app-banner-actions {
    gap: 0.5rem;
  }

  .app-report-btn {
    font-size: 0.78rem;
    padding: 0.5rem 0.9rem;
  }
}
.app-report-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem; border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background: var(--btn-bg, rgba(148,163,133,0.12));
  color: var(--btn-text, var(--primary));
  font-size: 0.82rem; font-weight: 700;
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer; transition: all var(--transition-fast);
}

.app-report-btn:hover {
  background: var(--btn-text);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.app-report-btn.active-report { background: var(--btn-text); color: white; }

/* Premium Order Form Styles */
.selected-customer-badge {
  background: var(--primary-glow);
  color: var(--primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--primary);
  margin-top: 0.5rem;
  animation: fadeIn 0.3s ease;
}

.quantity-selector {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-pill);
  padding: 2px;
  border: 1px solid var(--surface-border);
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--surface-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: bold;
}

.qty-btn:hover {
  background: var(--primary);
  color: white;
}

.qty-input {
  width: 40px !important;
  background: transparent !important;
  border: none !important;
  text-align: center !important;
  padding: 0 !important;
  font-weight: 600 !important;
  color: var(--text-main) !important;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

/* Dark Mode Button Accessibility Fix */
[data-theme="dark"] .btn:not(.btn-primary) {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .btn:not(.btn-primary):hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* --- Editorial Utilities (Premium SaaS) --- */
.hover-editable {
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}
.hover-editable:hover {
  background: rgba(148, 163, 133, 0.05);
  border-color: var(--primary-glow);
  box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.cursor-pointer { cursor: pointer; }

/* Status Pills Refinement */
.status-pill {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid transparent;
  width: 100%;
  appearance: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.status-agendado { background: rgba(37, 99, 235, 0.1); color: #2563eb; border-color: rgba(37, 99, 235, 0.2); }
.status-en-preparacion { background: rgba(234, 88, 12, 0.1); color: #ea580c; border-color: rgba(234, 88, 12, 0.2); }
.status-listo { background: rgba(16, 185, 129, 0.1); color: #10b981; border-color: rgba(16, 185, 129, 0.2); }
.status-entregado { background: rgba(107, 114, 128, 0.1); color: #6b7280; border-color: rgba(107, 114, 128, 0.2); }
.status-cancelado { background: rgba(220, 38, 38, 0.1); color: #dc2626; border-color: rgba(220, 38, 38, 0.2); }

/* Standardized Boolean Switch (Premium Glassmorphism) */
.glass-switch-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--surface-glass, rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(8px);
  border: 1px solid var(--surface-border-strong);
  border-radius: var(--radius-md, 16px);
  transition: all var(--transition-smooth);
}

.glass-switch-container:hover {
  background: rgba(var(--primary-rgb, 148, 163, 133), 0.05);
  border-color: var(--primary-glow);
}

.glass-switch-label-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.glass-switch-icon {
  font-size: 1.2rem;
  color: var(--primary);
  opacity: 0.8;
}

.glass-switch-text {
  display: flex;
  flex-direction: column;
}

.glass-switch-title {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.glass-switch-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Base Switch Anatomy */
.glass-switch {
  appearance: none;
  width: 3.2rem;
  height: 1.7rem;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2rem;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-switch::before {
  content: "";
  position: absolute;
  width: 1.3rem;
  height: 1.3rem;
  background: white;
  border-radius: 50%;
  top: 50%;
  left: 0.2rem;
  transform: translateY(-50%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.glass-switch:checked {
  background: var(--primary);
  border-color: var(--primary-glow);
}

.glass-switch:checked::before {
  left: calc(100% - 1.5rem);
  box-shadow: 0 4px 8px rgba(var(--primary-rgb, 148, 163, 133), 0.3);
}

.glass-switch:focus {
  box-shadow: 0 0 0 4px var(--primary-glow);
  outline: none;
}

[data-theme="dark"] .glass-switch {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .glass-switch-container {
  background: rgba(255, 255, 255, 0.03);
}

/* Table Physics */
.q-table tbody tr {
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}
.q-table tbody tr:hover {
  background-color: rgba(var(--primary-rgb, 148, 163, 133), 0.05) !important;
}

.hover-scale { transition: transform var(--transition-fast); }
.hover-scale:hover { transform: scale(1.15); }

/* Transition for Modal Height Stabilization */
.tool-tab-content {
  transition: opacity 0.3s ease;
}

.animate__fadeInSmall {
  animation: fadeInSmall 0.4s ease-out;
}

@keyframes fadeInSmall {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Print Optimization (Order Ticket) --- */
.btn-print {
  background: var(--surface-secondary);
  color: var(--text-dark);
  border: 1px solid var(--surface-border-strong);
  transition: all var(--transition-fast);
}
.btn-print:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media print {
  body * { visibility: hidden !important; }
  .q-modal-body, .q-modal-body * { visibility: visible !important; }
  .q-modal-body { 
    position: absolute !important; 
    left: 0 !important; 
    top: 0 !important; 
    width: 100% !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    visibility: visible !important;
  }
  
  .no-print, .btn, button, select, input, .order-summary-footer button { display: none !important; }
  
  .glass-card { background: white !important; border: 1px solid #ddd !important; box-shadow: none !important; color: black !important; }
  .text-primary { color: black !important; font-weight: bold !important; }
  
  .order-details-modal-content { padding: 1cm !important; }
  
  .q-table { 
    width: 100% !important; 
    border-collapse: collapse !important; 
    font-size: 10pt !important;
  }
  .q-table th, .q-table td { 
    border-bottom: 1px solid #eee !important; 
    padding: 8px 4px !important; 
    color: black !important; 
  }
  
  .order-summary-footer {
    border-top: 2px solid #000 !important;
    margin-top: 20px !important;
    padding-top: 15px !important;
  }
}

/* Scrollbar refinement */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-border-strong); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Premium Report Pill Buttons (Q-Kitchen Standard) */
.app-banner-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }

.app-report-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.1rem; border-radius: var(--radius-pill, 100px);
  border: 1px solid transparent;
  background: var(--btn-bg, rgba(148,163,133,0.25)); /* Increased from 0.12/0.15 for better contrast */
  color: var(--btn-text, var(--primary));
  font-size: 0.82rem; font-weight: 700;
  white-space: nowrap; text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-report-btn:hover {
  background: var(--btn-text);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.app-report-btn.active-report { 
    background: var(--btn-text); 
    color: var(--btn-bg) !important; /* Fixed: use inactive background color as active text color */
    border-color: rgba(255,255,255,0.2);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

/* Clickable Sections for Editorial UX */
.clickable-section {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.clickable-section:hover {
    background: rgba(var(--primary-rgb, 148, 163, 133), 0.05);
    transform: scale(1.01);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
}

.clickable-section::after {
    content: '\f304'; /* FontAwesome Pen */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    color: var(--primary);
    background: white;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 5;
}

.clickable-section:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Modal Layout Refinements */
.order-details-modal-content {
    display: flex;
    flex-direction: column;
    position: relative !important; /* Ensure overlays anchor correctly */
    min-height: 480px;
}

.tool-tab-content {
    min-height: 350px !important; /* Reduced from 400px to bridge the gap with totals */
    flex-grow: 1;
}

.order-summary-footer {
    margin-top: 1rem !important; /* Reduced from 4rem or default mb-4 */
    padding-top: 1.5rem !important;
}

/* Internal Edit Overlays (Modals-within-Modals) */
.form-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
}

.form-overlay-card {
    background: var(--surface-glass, rgba(255, 255, 255, 0.9));
    border-radius: var(--radius-lg, 24px);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 32px 64px rgba(0,0,0,0.2);
    border: 1px solid var(--surface-border);
}

/* Ticket Printing (80mm Standard) */
@media print {
    body *, .modal, .sidebar, .navbar, .mobile-topbar, .order-details-modal-content {
        visibility: hidden !important;
        display: none !important;
    }
    
    #order-ticket, #order-ticket * {
        visibility: visible !important;
        display: block !important;
    }

    #order-ticket {
        position: absolute;
        left: 0;
        top: 0;
        width: 80mm;
        padding: 5mm;
        background: white;
        color: black;
        font-family: 'Inter', sans-serif;
        font-size: 10pt;
    }

    .ticket-header { text-align: center; margin-bottom: 5mm; }
    .ticket-logo { max-width: 40mm; margin-bottom: 2mm; }
    .ticket-divider { border-top: 1px dashed #000; margin: 3mm 0; }
    .ticket-table { width: 100%; border-collapse: collapse; }
    .ticket-table th { text-align: left; border-bottom: 1px solid #000; }
    .ticket-total { font-weight: bold; font-size: 12pt; text-align: right; }
    .no-print { display: none !important; }
}

#order-ticket { display: none; }

/* Comandas Table UX Refinements */
.hover-row {
    transition: all var(--transition-fast, 0.2s) ease;
}

.hover-row:hover {
    background: rgba(var(--primary-rgb, 148, 163, 133), 0.08) !important;
    transform: scale(1.005);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.transition-smooth {
    transition: all var(--transition-smooth, 0.4s) ease;
}
