/* Custom styles for Atelier Boutique Management App */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --primary-brand: #962342;
  --primary-brand-light: #fcf1f4;
  --primary-rose: #962342;
  --primary-rose-light: #fcf1f4;
  --gold-accent: #c3853b;
  --gold-light: #fcd692;
  --dark-slate: #0f172a;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
}

.font-serif-title {
  font-family: 'Playfair Display', Georgia, serif;
}

/* Hide scrollbar visually while keeping the element scrollable (used by the
   main nav so an overflowing menu scrolls within its own row instead of
   widening the page) */
.no-scrollbar {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Status Badges */
.badge-received { background-color: #e0f2fe; color: #0369a1; border-color: #bae6fd; }
.badge-cutting { background-color: #fef3c7; color: #b45309; border-color: #fde68a; }
.badge-stitching { background-color: #fcf1f4; color: #962342; border-color: #f0bfcc; }
.badge-embroidery { background-color: #f3e8ff; color: #7e22ce; border-color: #e9d5ff; }
.badge-trial-ready { background-color: #ffedd5; color: #c2410c; border-color: #fed7aa; }
.badge-ready-for-delivery { background-color: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.badge-delivered { background-color: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.badge-cancelled { background-color: #fee2e2; color: #b91c1c; border-color: #fecaca; }

/* Priority Badges */
.badge-priority-normal { background-color: #f1f5f9; color: #475569; }
.badge-priority-urgent { background-color: #fef3c7; color: #b45309; font-weight: 600; }
.badge-priority-rush { background-color: #fee2e2; color: #dc2626; font-weight: 700; animation: pulse-border 2s infinite; }

@keyframes pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0); }
}

/* Print Invoice Styles */
/* The receipt lives in a position:fixed modal. Browsers repeat fixed elements
   on every printed page, and visibility:hidden still leaves the page behind it
   taking up space, so the receipt printed several times. Instead, remove
   everything else from the layout and print the modal as normal flow content. */
@media print {
  body:has(#print-invoice-modal:not(.hidden)) > :not(main),
  body:has(#print-invoice-modal:not(.hidden)) main > :not(#print-invoice-modal) {
    display: none !important;
  }
  body:has(#print-invoice-modal:not(.hidden)),
  body:has(#print-invoice-modal:not(.hidden)) main {
    display: block !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
  }
  #print-invoice-modal {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    background: white !important;
    backdrop-filter: none !important;
  }
  #print-invoice-modal > div {
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }
  #printable-invoice-area {
    padding: 0 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  #printable-invoice-area tr {
    break-inside: avoid;
  }
  @page {
    size: A4;
    margin: 14mm;
  }
  .no-print {
    display: none !important;
  }
}
