    body {
      font-family: 'Inter', 'Thonburi', 'Leelawadee UI', 'Sarabun', 'Noto Sans Thai', 'Hiragino Sans', 'Yu Gothic', 'Meiryo', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
      background-color: #F1F5F9;
      color: #0F172A;
      overscroll-behavior-y: none; /* Disables mobile pull-to-refresh */
    }
    .custom-scrollbar::-webkit-scrollbar {
      width: 6px;
      height: 6px;
    }
    .custom-scrollbar::-webkit-scrollbar-track {
      background: #F1F5F9;
    }
    .custom-scrollbar::-webkit-scrollbar-thumb {
      background: #CBD5E1;
      border-radius: 9999px;
    }
    .fade-in {
      animation: fadeIn 0.22s ease-out;
    }
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(4px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* ENHANCED PRINT MEDIA STYLES */
    @media print {
      @page {
        margin: 0.5in;
        size: letter;
      }
      body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background-color: white !important;
      }
      body > *:not(#sssPrintableModal) {
        display: none !important;
      }
      #sssPrintableModal {
        display: block !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
      }
      #sssPrintableModal > div {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
        padding: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 0 !important;
        max-height: none !important;
        display: block !important;
      }
      #sssPrintableScrollBox {
        max-height: none !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
      }
      .no-print {
        display: none !important;
      }
      .print-avoid-break {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
      }
    }
	
/* GLOBAL FORM VALIDATION HIGHLIGHTS */
    form.form-submitted input:invalid,
    form.form-submitted select:invalid,
    form.form-submitted textarea:invalid {
      border-color: #ef4444 !important; /* Red border */
      background-color: #fef2f2 !important; /* Light red tint */
    }
    
    form.form-submitted input[type="checkbox"]:invalid,
    form.form-submitted input[type="radio"]:invalid {
      outline: 2px solid #ef4444 !important;
      outline-offset: 2px !important;
      border-color: #ef4444 !important;
      background-color: #fef2f2 !important;
    }
    form.form-submitted input:invalid::placeholder,
    form.form-submitted textarea:invalid::placeholder {
      color: #ef4444 !important; /* Red placeholder text */
      font-weight: 600;
    }
	
	/* FULL-SCREEN SIDEWAYS (LANDSCAPE) SIGNATURE MODAL */
#sssFullscreenSigInner {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
}

@media screen and (max-width: 920px) and (orientation: portrait) {
  #sssFullscreenSigInner {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vh;
    width: 100dvh;
    height: 100vw;
    transform: translate(-50%, -50%) rotate(90deg);
    transform-origin: center center;
  }
  #sssFullscreenSigInner.sig-flipped-180 {
    transform: translate(-50%, -50%) rotate(-90deg);
  }
}

/* Enhanced Card Depth & Darker Borders Across the App */
    .bg-white.rounded-2xl,
    .bg-slate-50\/70,
    .bg-slate-50\/80,
    .bg-slate-50:not(.border-red-500):not(:invalid),
    .bg-apyx-ice\/60 {
      border-color: #94a3b8 !important; /* A crisper, darker slate border (slate-400) */
      box-shadow: 0 4px 6px -1px rgba(12, 35, 64, 0.08), 0 2px 4px -2px rgba(12, 35, 64, 0.06) !important;
    }

    /* Specifically target the main A, B, C, D Intake Sections for a bolder outline */
    #salesIntakeForm > div {
      border-width: 2px !important;
      border-color: #0c2340 !important; /* Deep Apyx Navy for maximum section separation */
      box-shadow: 0 4px 12px -2px rgba(12, 35, 64, 0.12) !important;
    }
	
	/* Prevent Thai stacked vowels & tone marks from clipping in compact badges/tables */
html[lang="th"] body {
  line-height: 1.65;
}