/* RICE SCALE PRO CUSTOM STYLES */

/* ==========================================================================
   1. LOCAL OFFLINE FONTS (Kantumruy Pro & Battambang)
   ========================================================================== */

/* Kantumruy Pro (Khmer & Latin) - Locally bundled for 100% Offline PWA */
@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/kantumruy-pro-khmer.woff2') format('woff2');
  unicode-range: U+1780-17FF, U+19E0-19FF, U+200C-200D, U+25CC;
}

@font-face {
  font-family: 'Kantumruy Pro';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/kantumruy-pro-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Battambang Fallback */
@font-face {
  font-family: 'Battambang';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/battambang-khmer-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Battambang';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/battambang-khmer-700.woff2') format('woff2');
}

/* Universal Typography */
html, body, input, button, select, textarea {
    font-family: 'Kantumruy Pro', 'Battambang', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Khmer OS Battambang", "Khmer OS Siemreap", sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.num-font {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif !important;
    font-weight: 700;
}

/* ==========================================================================
   2. REMOVE NUMBER INPUT SPINNERS (▲/▼) ACROSS ALL BROWSERS
   ========================================================================== */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none !important; 
    margin: 0 !important; 
}

input[type=number] { 
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}

/* Sack input focus animation */
.sack-input:focus {
    transform: scale(1.02);
}

/* Hide scrollbar for clean horizontal pill scrolling */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Print utilities */
@media print {
    .no-print { display: none !important; }
    .print-only { display: block !important; }
}

/* ==========================================================================
   3. MINIMUM FONT SIZE POLICY (12px Minimum Across All Elements)
   ========================================================================== */
html, body, p, span, div, a, button, input, select, textarea, label, table, th, td, small, b, strong, em, i {
    min-font-size: 12px;
}

/* Ensure no text element drops below 12px */
.text-\[6px\], .text-\[7px\], .text-\[8px\], .text-\[9px\], .text-\[10px\], .text-\[11px\] {
    font-size: 12px !important;
    line-height: 1.25 !important;
}

.text-xs {
    font-size: 12px !important;
    line-height: 1.25 !important;
}

/* ==========================================================================
   4. STRICT NO-WRAP POLICY (Tables, Badges, Buttons, Tags, Numbers)
   ========================================================================== */
table th, table td, .table th, .table td {
    white-space: nowrap !important;
}

.badge, .tag, .pill, button, .btn, .no-wrap, .whitespace-nowrap,
[class*="status-dropdown-btn"], .nowrap {
    white-space: nowrap !important;
}

/* Horizontal scrolling wrapper safeguard */
.overflow-x-auto, .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

