@import "tailwindcss";

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

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

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

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

/* Custom HTML styling for dynamic pages */
.custom-html h1, .custom-html h2, .custom-html h3 { font-weight: 850; text-transform: uppercase; margin-bottom: 1rem; margin-top: 2rem; color: #09090b; letter-spacing: -0.02em; }
.custom-html h1 { font-size: 2.25rem; line-height: 2.5rem; }
.custom-html h2 { font-size: 1.75rem; line-height: 2.25rem; }
.custom-html h3 { font-size: 1.35rem; line-height: 2rem; }
.custom-html p { margin-bottom: 1.25rem; line-height: 1.8; color: #52525b; font-size: 14px; }
.custom-html p strong { color: #09090b; }
.custom-html ul, .custom-html ol { margin-bottom: 1.25rem; padding-left: 0rem; color: #52525b; }
.custom-html li { 
  position: relative; 
  padding-left: 1.75rem; 
  margin-bottom: 1.25rem; 
  font-size: 14px; 
  line-height: 1.8; 
  list-style: none;
}
.custom-html li::before { 
  content: "→"; 
  position: absolute; 
  left: 0; 
  top: 0; 
  color: #09090b; 
  font-weight: bold; 
}
.custom-html li strong { 
  display: block; 
  font-size: 11px; 
  text-transform: uppercase; 
  letter-spacing: 0.2em; 
  color: #71717a; 
  margin-bottom: 0.25rem; 
  font-weight: 800;
}
.custom-html a { color: #09090b; text-decoration: underline; text-underline-offset: 4px; font-weight: bold; }
.custom-html a:hover { color: #71717a; }
.custom-html blockquote { border-left: 4px solid #09090b; padding-left: 1.25rem; color: #27272a; font-style: italic; margin-bottom: 1.25rem; font-size: 1.125rem; }
.custom-html strong { font-weight: 700; color: #09090b; }

/* Custom Styling for React Quill Editor */
.ql-container { min-height: 24rem; font-family: var(--font-outfit), sans-serif !important; font-size: 0.875rem !important; border-bottom-left-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }
.ql-toolbar { font-family: var(--font-outfit), sans-serif !important; border-top-left-radius: 0.5rem; border-top-right-radius: 0.5rem; background-color: #fcfcfc; }
.ql-editor { min-height: 24rem; }

/* Custom Scrollbar Utilities */
.scrollbar-thin::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
  background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
  background: #e4e4e7;
  border-radius: 10px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
  background: #d4d4d8;
}

/* Print rules for administrative layouts (POS receipt printing) */
@media print {
  /* 1. Reset Next.js/Tailwind layout containers to standard vertical blocks first */
  .min-h-screen, .flex, .flex-1, .flex-col {
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 2. Hide administrative layout components and modal overlays completely.
     Using highly specific selector pairs to ensure display:none overrides any .flex / .flex-col resets above! */
  aside, 
  header, 
  #pos-main-layout, 
  .no-print,
  [class*="no-print"],
  .print\:hidden,
  aside.flex,
  header.flex,
  aside.flex-col,
  header.flex-col,
  .no-print.flex,
  .no-print.flex-col,
  .print\:hidden.flex,
  .print\:hidden.flex-col,
  #pos-main-layout.flex,
  #pos-main-layout.flex-col {
    display: none !important;
  }

  /* 3. Force the receipt print area to display beautifully */
  #pos-thermal-print-area {
    display: block !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 80mm !important;
    z-index: 9999999 !important;
    background: white !important;
    margin: 0 !important;
    padding: 10px !important;
    box-shadow: none !important;
  }

  /* 4. Clean up root page elements */
  body, html, main, #__next {
    background: white !important;
    color: black !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
  }
}
