/* Naqle Pro — utilities missing from compiled TailAdmin CSS */

/* ── Width / max-width (forms were stretching full page) ─────────────────── */
.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-w-5xl { max-width: 64rem; }
.min-w-0   { min-width: 0; }
.min-w-\[140px\] { min-width: 140px; }
.min-w-\[160px\] { min-width: 160px; }

/* ── Grid / flex gaps TailAdmin did not compile ──────────────────────────── */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-x-6 { column-gap: 1.5rem; }
.gap-y-3 { row-gap: .75rem; }
.last\:border-0:last-child { border-width: 0; }
.hover\:underline:hover { text-decoration: underline; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.text-brand-600 { color: #465fff; }
.hover\:bg-brand-100:hover { background-color: #e0e7ff; }
.hover\:text-brand-600:hover { color: #3641f5; }
.text-\[10px\] { font-size: 10px; line-height: 1.25; }
.text-\[11px\] { font-size: 11px; line-height: 1.3; }
.bg-white\/20 { background-color: rgba(255,255,255,.2); }
.text-white\/75 { color: rgba(255,255,255,.75); }
.text-white\/70 { color: rgba(255,255,255,.7); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--nq-grad-from, #fbbf24), var(--nq-grad-to, #f97316)); }
.from-amber-400 { --nq-grad-from: #fbbf24; }
.to-orange-500 { --nq-grad-to: #f97316; }

@media (min-width: 640px) {
    .sm\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .sm\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-start { align-items: flex-start; }
    .sm\:items-center { align-items: center; }
    .sm\:items-end { align-items: flex-end; }
    .sm\:justify-between { justify-content: space-between; }
    .sm\:pt-6 { padding-top: 1.5rem; }
    .sm\:col-span-1 { grid-column: span 1 / span 1; }
}
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:table-cell { display: table-cell; }
}
@media (min-width: 1024px) {
    .lg\:grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-8 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-2 { grid-column: span 2 / span 2; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:flex-row { flex-direction: row; }
    .lg\:hidden { display: none; }
}
@media (min-width: 1280px) {
    .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .xl\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── Color palette (status, alerts, delete, required *) ──────────────────── */
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-200 { background-color: #fecaca; }
.bg-red-400 { background-color: #f87171; }
.bg-red-500 { background-color: #ef4444; }
.bg-red-600 { background-color: #dc2626; }
.hover\:bg-red-50:hover { background-color: #fef2f2; }
.hover\:bg-red-100:hover { background-color: #fee2e2; }
.hover\:bg-red-200:hover { background-color: #fecaca; }
.hover\:bg-red-600:hover { background-color: #dc2626; }
.text-red-400 { color: #f87171; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.hover\:text-red-600:hover { color: #dc2626; }
.hover\:text-red-700:hover { color: #b91c1c; }
.border-red-100 { border-color: #fee2e2; }
.border-red-200 { border-color: #fecaca; }
.border-red-700 { border-color: #b91c1c; }

.bg-green-50 { background-color: #f0fdf4; }
.bg-green-400 { background-color: #4ade80; }
.bg-green-500 { background-color: #22c55e; }
.text-green-500 { color: #22c55e; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-green-800 { color: #166534; }
.border-green-200 { border-color: #bbf7d0; }
.border-green-700 { border-color: #15803d; }

.bg-emerald-50 { background-color: #ecfdf5; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-emerald-200 { background-color: #a7f3d0; }
.bg-emerald-500 { background-color: #10b981; }
.bg-emerald-600 { background-color: #059669; }
.hover\:bg-emerald-600:hover { background-color: #059669; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.border-emerald-200 { border-color: #a7f3d0; }

.bg-rose-50 { background-color: #fff1f2; }
.bg-rose-100 { background-color: #ffe4e6; }
.bg-rose-500 { background-color: #f43f5e; }
.bg-rose-600 { background-color: #e11d48; }
.hover\:bg-rose-50:hover { background-color: #fff1f2; }
.hover\:bg-rose-100:hover { background-color: #ffe4e6; }
.hover\:bg-rose-600:hover { background-color: #e11d48; }
.text-rose-400 { color: #fb7185; }
.text-rose-500 { color: #f43f5e; }
.text-rose-600 { color: #e11d48; }
.hover\:text-rose-500:hover { color: #f43f5e; }
.hover\:text-rose-600:hover { color: #e11d48; }
.border-rose-100 { border-color: #ffe4e6; }

.bg-amber-100 { background-color: #fef3c7; }
.bg-amber-500 { background-color: #f59e0b; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.hover\:text-amber-600:hover { color: #d97706; }

.bg-blue-500 { background-color: #3b82f6; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-indigo-500 { background-color: #6366f1; }
.hover\:bg-indigo-50:hover { background-color: #eef2ff; }
.text-indigo-500 { color: #6366f1; }
.text-indigo-700 { color: #4338ca; }
.hover\:text-indigo-500:hover { color: #6366f1; }

.bg-violet-500 { background-color: #8b5cf6; }
.bg-sky-500 { background-color: #0ea5e9; }
.bg-orange-500 { background-color: #f97316; }
.bg-teal-500 { background-color: #14b8a6; }

html.dark .dark\:bg-red-900\/20, .dark .dark\:bg-red-900\/20 { background-color: rgba(127, 29, 29, .2); }
html.dark .dark\:bg-red-900\/30, .dark .dark\:bg-red-900\/30 { background-color: rgba(127, 29, 29, .3); }
html.dark .dark\:text-red-300, .dark .dark\:text-red-300 { color: #fca5a5; }
html.dark .dark\:text-red-400, .dark .dark\:text-red-400 { color: #f87171; }
html.dark .dark\:border-red-700, .dark .dark\:border-red-700 { border-color: #b91c1c; }
html.dark .dark\:hover\:bg-red-900\/20:hover, .dark .dark\:hover\:bg-red-900\/20:hover { background-color: rgba(127, 29, 29, .2); }

html.dark .dark\:bg-green-900\/20, .dark .dark\:bg-green-900\/20 { background-color: rgba(20, 83, 45, .2); }
html.dark .dark\:bg-green-900\/30, .dark .dark\:bg-green-900\/30 { background-color: rgba(20, 83, 45, .3); }
html.dark .dark\:text-green-200, .dark .dark\:text-green-200 { color: #bbf7d0; }
html.dark .dark\:text-green-300, .dark .dark\:text-green-300 { color: #86efac; }
html.dark .dark\:text-green-400, .dark .dark\:text-green-400 { color: #4ade80; }
html.dark .dark\:border-green-700, .dark .dark\:border-green-700 { border-color: #15803d; }

html.dark .dark\:bg-rose-900\/20, .dark .dark\:bg-rose-900\/20 { background-color: rgba(136, 19, 55, .2); }
html.dark .dark\:text-rose-400, .dark .dark\:text-rose-400 { color: #fb7185; }
html.dark .dark\:hover\:bg-indigo-900\/20:hover, .dark .dark\:hover\:bg-indigo-900\/20:hover { background-color: rgba(49, 46, 129, .2); }
html.dark .dark\:hover\:bg-brand-900\/20:hover, .dark .dark\:hover\:bg-brand-900\/20:hover { background-color: rgba(70, 95, 255, .2); }
html.dark .dark\:bg-brand-900\/30, .dark .dark\:bg-brand-900\/30 { background-color: rgba(70, 95, 255, .3); }

/* ── Flash banners ───────────────────────────────────────────────────────── */
.nq-flash {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1rem; border-radius: .65rem; font-size: .875rem; margin-bottom: .5rem;
    border: 1px solid;
}
.nq-flash--ok { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }
.nq-flash--err { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
html.dark .nq-flash--ok, .dark .nq-flash--ok { background: rgba(16,185,129,.16); border-color: rgba(16,185,129,.38); color: #6ee7b7; }
html.dark .nq-flash--err, .dark .nq-flash--err { background: rgba(244,63,94,.16); border-color: rgba(244,63,94,.38); color: #fda4af; }

/* ── Tables: keep headers readable, rows compact ─────────────────────────── */
.nq-table-wrap { overflow-x: auto; }
main table { border-collapse: collapse; }
main table th { white-space: nowrap; }

/* ── Forms: consistent focus ring when TailAdmin misses focus:ring ───────── */
main input[type="text"],
main input[type="email"],
main input[type="password"],
main input[type="tel"],
main input[type="number"],
main input[type="date"],
main input[type="search"],
main input[type="url"],
main select,
main textarea {
    box-sizing: border-box;
}
main input:focus, main select:focus, main textarea:focus {
    outline: none;
}

/* ── Sidebar scroll ──────────────────────────────────────────────────────── */
#sidebar-nav.scrollbar-thin { scrollbar-width: thin; }
