@import "tailwindcss";

:root {
  --background: #ffffff;
  --foreground: #171717;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --font-sans: var(--font-inter);
  --font-mono: var(--font-inter);
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #ededed;
  }
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-inter), sans-serif;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0px 1000px white inset !important;
  -webkit-text-fill-color: #4E4E4E !important;
  background-color: white !important;
}

.custom-scroll::-webkit-scrollbar {
  height: 4px;
  width: 8px; 
}

.custom-scroll::-webkit-scrollbar-track {
  background: #f1f1f1; 
  border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #a3a3a3; 
  border-radius: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #3b82f6; 
}

@media print {
  /* Hide EVERYTHING except the print container */
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }

  body > *:not(#print-invoice-container) {
    display: none !important;
    visibility: hidden !important;
  }

  #print-invoice-container {
    display: block !important;
    position: static !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 210mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Force black text, remove any backgrounds/images that might bleed */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background: white !important;
    color: black !important;
  }

  /* Optional: remove page margins in print dialog */
  @page {
    margin: 10mm !important;
    size: A4 portrait !important;
  }
}