/*
 * Tailwind utility classes used by our custom Blade views in the Filament panels
 * (resources/views/filament/**, resources/views/inventory/**).
 *
 * Filament only ships the classes its own views use, so `flex`, `gap-3`, `sm:grid-cols-2`, ... did nothing
 * and those pages collapsed into one column. Instead of a Vite/Tailwind theme build, this file defines exactly
 * the utilities we use, with Tailwind's names and values. Loaded in both panels via a HEAD_END render hook
 * (App\Providers\Filament\*PanelProvider). Using a new utility in a custom view → add it here.
 * Colours use Filament's palette variables (--gray-500, --primary-600, ...); dark mode = `.dark` on <html>.
 */

/* layout */
.flex { display: flex; }
.grid { display: grid; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-full { width: 100%; }
.columns-2 { columns: 2; }
.gap-1 { gap: .25rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.space-y-1 > :not(:last-child) { margin-bottom: .25rem; }
.space-y-2 > :not(:last-child) { margin-bottom: .5rem; }
.space-y-4 > :not(:last-child) { margin-bottom: 1rem; }
.space-y-6 > :not(:last-child) { margin-bottom: 1.5rem; }
@media (min-width: 40rem) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80rem) { .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* spacing */
.p-4 { padding: 1rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.pr-2 { padding-right: .5rem; }
.ps-5 { padding-inline-start: 1.25rem; }
.mb-1 { margin-bottom: .25rem; }

/* borders */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.rounded-xl { border-radius: .75rem; }
.border-gray-100 { border-color: var(--gray-100); }
.border-gray-200 { border-color: var(--gray-200); }
.dark .dark\:border-white\/5 { border-color: rgb(255 255 255 / .05); }
.dark .dark\:border-white\/10 { border-color: rgb(255 255 255 / .1); }

/* text */
.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; }
.font-semibold { font-weight: 600; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.list-decimal { list-style-type: decimal; }
.hover\:underline:hover { text-decoration: underline; }
.text-gray-500 { color: var(--gray-500); }
.text-primary-600 { color: var(--primary-600); }
.text-warning-600 { color: var(--warning-600); }
.dark .dark\:text-gray-400 { color: var(--gray-400); }
.dark .dark\:text-warning-400 { color: var(--warning-400); }
