/* ============================================================
   BFA Utility CSS — static Tailwind subset (no CDN, no JIT).
   ============================================================
   This file replaces <script src="https://cdn.tailwindcss.com">.
   Browser caches it across every page; admin pages drop ~127KB
   of render-blocking JS per page load.

   Scope: only classes the codebase actually uses (greped from
   customer/*.php and admin/*.php). New utilities can be added
   here as needed — they're free now since the file is static.
   ============================================================ */

/* display */
.flex{display:flex}.inline-flex{display:inline-flex}.grid{display:grid}
.hidden{display:none}.block{display:block}.inline{display:inline}.inline-block{display:inline-block}

/* flex */
.flex-col{flex-direction:column}.flex-row{flex-direction:row}.flex-wrap{flex-wrap:wrap}
.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}
.items-center{align-items:center}.items-start{align-items:flex-start}.items-end{align-items:flex-end}
.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-end{justify-content:flex-end}
.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}

/* grid */
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.col-span-2{grid-column:span 2/span 2}

/* padding */
.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-10{padding:2.5rem}
.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}
.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}
.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}
.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}
.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}
.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}
.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}
.py-4{padding-top:1rem;padding-bottom:1rem}.py-5{padding-top:1.25rem;padding-bottom:1.25rem}
.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.pt-6{padding-top:1.5rem}
.pb-6{padding-bottom:1.5rem}.pb-28{padding-bottom:7rem}.pb-32{padding-bottom:8rem}

/* margin */
.m-0{margin:0}.m-2{margin:.5rem}.m-4{margin:1rem}
.mx-auto{margin-left:auto;margin-right:auto}.ml-auto{margin-left:auto}.mr-auto{margin-right:auto}
.mb-0\.5{margin-bottom:.125rem}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}
.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}
.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}
.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}
.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}
.-mt-0\.5{margin-top:-.125rem}.-mt-5{margin-top:-1.25rem}

/* size */
.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-20{width:5rem}
.w-full{width:100%}.w-screen{width:100vw}
.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-20{height:5rem}
.h-full{height:100%}.h-screen{height:100vh}.min-h-screen{min-height:100vh}
.min-w-0{min-width:0}
.max-w-sm{max-width:24rem}.max-w-md{max-width:28rem}.max-w-lg{max-width:32rem}.max-w-xl{max-width:36rem}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}
.max-h-40{max-height:10rem}.max-h-48{max-height:12rem}.max-h-64{max-height:16rem}.max-h-80{max-height:20rem}

/* font */
.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}
.text-xs{font-size:.75rem;line-height:1rem}.text-sm{font-size:.875rem;line-height:1.25rem}
.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}.text-2xl{font-size:1.5rem;line-height:2rem}
.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}
.font-mono{font-family:ui-monospace,SFMono-Regular,monospace}
.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.font-extrabold{font-weight:800}
.text-center{text-align:center}.text-left{text-align:left}.text-right{text-align:right}
.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}
.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}
.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}

/* color */
.text-white{color:#fff}.text-black{color:#000}
.text-red-400{color:#f87171}.text-red-500{color:#ef4444}
.text-emerald-400{color:#34d399}.text-emerald-500{color:#10b981}
.text-blue-300{color:#93c5fd}.text-blue-400{color:#60a5fa}.text-blue-500{color:#3b82f6}
.text-yellow-400{color:#facc15}.text-amber-500{color:#f59e0b}
.text-zinc-300{color:#d4d4d8}.text-zinc-400{color:#a1a1aa}.text-zinc-500{color:#71717a}
.text-zinc-600{color:#52525b}.text-zinc-700{color:#3f3f46}

/* bg */
.bg-white{background:#fff}.bg-black{background:#000}.bg-transparent{background:transparent}
.bg-black\/20{background:rgba(0,0,0,.2)}.bg-black\/40{background:rgba(0,0,0,.4)}.bg-black\/70{background:rgba(0,0,0,.7)}
.bg-zinc-800{background:#27272a}.bg-zinc-900\/50{background:rgba(24,24,27,.5)}
.bg-emerald-950\/30{background:rgba(2,44,34,.3)}.bg-red-950\/30{background:rgba(69,10,10,.3)}
.bg-blue-950\/30{background:rgba(23,37,84,.3)}.bg-blue-900\/20{background:rgba(30,58,138,.2)}

/* gradients (light usage only) */
.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}
.from-emerald-500{--tw-gradient-from:#10b981;--tw-gradient-stops:var(--tw-gradient-from),var(--tw-gradient-to,transparent)}
.to-emerald-700{--tw-gradient-to:#047857}

/* border */
.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}
.border-t{border-top-width:1px}.border-b{border-bottom-width:1px}
.border-dashed{border-style:dashed}
.border-zinc-800{border-color:#27272a}.border-zinc-800\/50{border-color:rgba(39,39,42,.5)}
.border-emerald-900\/30{border-color:rgba(6,78,59,.3)}.border-red-900\/30{border-color:rgba(127,29,29,.3)}
.border-blue-900\/30{border-color:rgba(30,58,138,.3)}.border-blue-500{border-color:#3b82f6}

/* radius */
.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}
.rounded-xl{border-radius:.75rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}
.rounded-full{border-radius:9999px}

/* overflow */
.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.overflow-x-auto{overflow-x:auto}

/* position */
.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}
.inset-0{inset:0}.top-0{top:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}
.-top-1{top:-.25rem}.-right-1{right:-.25rem}

/* z-index */
.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-40{z-index:40}.z-50{z-index:50}

/* misc */
.cursor-pointer{cursor:pointer}.resize-none{resize:none}.outline-none{outline:none}
.shadow{box-shadow:0 1px 3px rgba(0,0,0,.1)}.shadow-lg{box-shadow:0 10px 15px -3px rgba(0,0,0,.1)}
.backdrop-blur-sm{backdrop-filter:blur(4px)}.backdrop-blur{backdrop-filter:blur(8px)}
.transition{transition-property:color,background-color,border-color,fill,stroke,opacity,box-shadow,transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}
.transition-colors{transition-property:color,background-color,border-color;transition-duration:150ms}
.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.opacity-90{opacity:.9}

.object-cover{object-fit:cover}.object-contain{object-fit:contain}
.select-none{user-select:none}.select-text{user-select:text}

/* spacing children */
.space-y-1>:not(:first-child){margin-top:.25rem}
.space-y-1\.5>:not(:first-child){margin-top:.375rem}
.space-y-2>:not(:first-child){margin-top:.5rem}
.space-y-3>:not(:first-child){margin-top:.75rem}
.space-y-4>:not(:first-child){margin-top:1rem}
.space-x-2>:not(:first-child){margin-left:.5rem}

/* peer (used in some radio/checkbox patterns) */
.peer:checked~.peer-checked\:\!border-blue-500{border-color:#3b82f6!important}
.peer:checked~.peer-checked\:\!bg-blue-900\/20{background:rgba(30,58,138,.2)!important}
.peer:checked~.peer-checked\:\!text-blue-300{color:#93c5fd!important}

/* !important variants used by new_request.php */
.\!py-0\.5{padding-top:.125rem!important;padding-bottom:.125rem!important}
.\!py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}
.\!py-1\.5{padding-top:.375rem!important;padding-bottom:.375rem!important}
.\!py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}
.\!py-2\.5{padding-top:.625rem!important;padding-bottom:.625rem!important}
.\!px-1\.5{padding-left:.375rem!important;padding-right:.375rem!important}
.\!px-2{padding-left:.5rem!important;padding-right:.5rem!important}
.\!px-2\.5{padding-left:.625rem!important;padding-right:.625rem!important}
.\!px-3{padding-left:.75rem!important;padding-right:.75rem!important}
.\!px-4{padding-left:1rem!important;padding-right:1rem!important}

/* reset */
*,::before,::after{box-sizing:border-box;border-width:0;border-style:solid;border-color:var(--border,#e5e7eb)}
