/*
 * tailwind-patch.css
 * -------------------
 * Stopgap fix: /static/tailwind.css was built against only part of the
 * site (it defines 222 utility classes total), so ~130 utility classes
 * that templates.html, survey_builder.html, ticket_view.html,
 * user_profile.html, staff_kanban.html, index.html etc. actually rely on
 * were never generated — including .inset-0 and .z-50, which is why
 * every "fixed inset-0 ... flex items-center justify-center" modal on
 * the site collapses to an unpositioned, uncentered block instead of a
 * centered full-screen overlay.
 *
 * This file hand-supplies exactly those missing classes so the site
 * renders correctly right now. It is NOT a replacement for fixing the
 * build: add every template file to your Tailwind content glob and
 * rebuild tailwind.css, then this file becomes redundant and safe to
 * delete. See the chat notes for the config snippet.
 *
 * Include it AFTER tailwind.css on every page:
 *   <link rel="stylesheet" href="/static/tailwind.css">
 *   <link rel="stylesheet" href="/static/tailwind-patch.css">
 */

/* ---- Positioning / stacking (the modal-breaking ones) ---- */
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-30 { z-index: 30; }
.z-50 { z-index: 50; }

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

/* ---- Sizing ---- */
.h-5 { height: 1.25rem; }
.h-20 { height: 5rem; }
.h-32 { height: 8rem; }
.h-full { height: 100%; }
.w-5 { width: 1.25rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }
.max-w-sm { max-width: 24rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-h-48 { max-height: 12rem; }
.max-h-60 { max-height: 15rem; }
.max-h-64 { max-height: 16rem; }
.max-h-80 { max-height: 20rem; }
.max-h-96 { max-height: 24rem; }
.max-h-\[600px\] { max-height: 600px; }
.max-h-\[80vh\] { max-height: 80vh; }
.max-h-\[85vh\] { max-height: 85vh; }
.max-h-\[90vh\] { max-height: 90vh; }

/* ---- Spacing ---- */
.p-2 { padding: 0.5rem; }
.mb-12 { margin-bottom: 3rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: 1rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-8 { padding-top: 2rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-20 { margin-top: 5rem; }

/* ---- Borders ---- */
.border-2 { border-width: 2px; }
.border-t { border-top-width: 1px; }
.border-dashed { border-style: dashed; }
.border-t-transparent { border-top-color: transparent; }

/* ---- Overflow / opacity / layout ---- */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.opacity-0 { opacity: 0; }
.self-start { align-self: flex-start; }
.hidden { display: none; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(.4,0,.2,1); transition-duration: .15s; }
.cursor-move { cursor: move; }
.tracking-wider { letter-spacing: 0.05em; }

/* ---- Text sizes ---- */
.text-\[9px\] { font-size: 9px; }

/* ---- Animation ---- */
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

/* ---- Group / focus states ---- */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px var(--tw-ring-color, rgba(59,130,246,.5)); }
.hover\:underline:hover { text-decoration: underline; }

/* ---- Backgrounds: black/opacity ---- */
.bg-black\/80 { background-color: rgba(0,0,0,0.8); }
.bg-black\/90 { background-color: rgba(0,0,0,0.9); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

/* ---- Backgrounds: theme-color / opacity combos used across pages ---- */
.bg-\[var\(--panel\)\] { background-color: var(--panel); }
.bg-\[var\(--amber\)\] { background-color: var(--amber); }
.bg-\[var\(--indigo\)\]\/10 { background-color: color-mix(in srgb, var(--indigo) 10%, transparent); }
.bg-\[var\(--indigo\)\]\/20 { background-color: color-mix(in srgb, var(--indigo) 20%, transparent); }
.bg-\[var\(--cyan\)\]\/10 { background-color: color-mix(in srgb, var(--cyan) 10%, transparent); }
.bg-\[var\(--emerald\)\]\/10 { background-color: color-mix(in srgb, var(--emerald) 10%, transparent); }
.bg-\[var\(--emerald\)\]\/20 { background-color: color-mix(in srgb, var(--emerald) 20%, transparent); }
.bg-\[var\(--rose\)\]\/10 { background-color: color-mix(in srgb, var(--rose) 10%, transparent); }
.bg-\[var\(--rose\)\]\/20 { background-color: color-mix(in srgb, var(--rose) 20%, transparent); }
.bg-\[rgba\(245\,183\,77\,0\.12\)\] { background-color: rgba(245,183,77,0.12); }
.bg-\[rgba\(245\,183\,77\,0\.15\)\] { background-color: rgba(245,183,77,0.15); }
.bg-\[rgba\(251\,111\,146\,0\.1\)\] { background-color: rgba(251,111,146,0.1); }
.from-\[rgba\(245\,183\,77\,0\.05\)\] { --tw-gradient-from: rgba(245,183,77,0.05) var(--tw-gradient-from-position); --tw-gradient-to: rgba(245,183,77,0) var(--tw-gradient-to-position); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.to-\[rgba\(245\,183\,77\,0\.02\)\] { --tw-gradient-to: rgba(245,183,77,0.02) var(--tw-gradient-to-position); }

/* ---- Borders: theme-color / opacity combos ---- */
.border-\[var\(--indigo\)\] { border-color: var(--indigo); }
.border-\[var\(--indigo\)\]\/30 { border-color: color-mix(in srgb, var(--indigo) 30%, transparent); }
.border-\[var\(--cyan\)\]\/30 { border-color: color-mix(in srgb, var(--cyan) 30%, transparent); }
.border-\[var\(--emerald\)\]\/30 { border-color: color-mix(in srgb, var(--emerald) 30%, transparent); }
.border-\[var\(--rose\)\]\/30 { border-color: color-mix(in srgb, var(--rose) 30%, transparent); }
.border-\[rgba\(245\,183\,77\,0\.3\)\] { border-color: rgba(245,183,77,0.3); }
.border-\[rgba\(251\,111\,146\,0\.3\)\] { border-color: rgba(251,111,146,0.3); }

/* ---- Text: theme colors ---- */
.text-\[var\(--amber\)\] { color: var(--amber); }

/* ---- Shadows ---- */
.shadow-\[0_0_20px_rgba\(109\,106\,246\,0\.4\)\] {
    --tw-shadow: 0 0 20px rgba(109,106,246,.4);
    box-shadow: 0 0 20px rgba(109,106,246,.4);
}

/* ---- Focus with theme colors ---- */
.focus\:border-\[var\(--indigo\)\]:focus { border-color: var(--indigo); }
.focus\:ring-\[var\(--indigo\)\]\/50:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--indigo) 50%, transparent); }

/* ---- Hover states with theme colors ---- */
.hover\:bg-\[var\(--panel\)\]:hover { background-color: var(--panel); }
.hover\:bg-\[var\(--indigo\)\]\/10:hover { background-color: color-mix(in srgb, var(--indigo) 10%, transparent); }
.hover\:bg-\[var\(--indigo\)\]\/20:hover { background-color: color-mix(in srgb, var(--indigo) 20%, transparent); }
.hover\:bg-\[var\(--indigo\)\]\/30:hover { background-color: color-mix(in srgb, var(--indigo) 30%, transparent); }
.hover\:bg-\[var\(--indigo\)\]\/80:hover { background-color: color-mix(in srgb, var(--indigo) 80%, transparent); }
.hover\:bg-\[var\(--cyan\)\]\/20:hover { background-color: color-mix(in srgb, var(--cyan) 20%, transparent); }
.hover\:bg-\[var\(--emerald\)\]\/20:hover { background-color: color-mix(in srgb, var(--emerald) 20%, transparent); }
.hover\:bg-\[var\(--emerald\)\]\/30:hover { background-color: color-mix(in srgb, var(--emerald) 30%, transparent); }
.hover\:bg-\[var\(--rose\)\]\/20:hover { background-color: color-mix(in srgb, var(--rose) 20%, transparent); }
.hover\:border-\[var\(--indigo\)\]:hover { border-color: var(--indigo); }
.hover\:border-\[var\(--indigo\)\]\/30:hover { border-color: color-mix(in srgb, var(--indigo) 30%, transparent); }
.hover\:border-\[var\(--indigo\)\]\/50:hover { border-color: color-mix(in srgb, var(--indigo) 50%, transparent); }
.hover\:border-\[var\(--emerald\)\]\/50:hover { border-color: color-mix(in srgb, var(--emerald) 50%, transparent); }
.hover\:border-\[var\(--rose\)\]:hover { border-color: var(--rose); }
.hover\:border-\[rgba\(109\,106\,246\,0\.4\)\]:hover { border-color: rgba(109,106,246,0.4); }
.hover\:text-\[var\(--indigo\)\]:hover { color: var(--indigo); }
.hover\:text-\[var\(--rose\)\]\/80:hover { color: color-mix(in srgb, var(--rose) 80%, transparent); }

/* ---- Responsive: sm (>=640px) ---- */
@media (min-width: 640px) {
    .sm\:flex-none { flex: none; }
    .sm\:gap-4 { gap: 1rem; }
    .sm\:inline { display: inline; }
    .sm\:justify-between { justify-content: space-between; }
    .sm\:self-auto { align-self: auto; }
    .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:w-64 { width: 16rem; }
    .sm\:w-auto { width: auto; }
}

/* ---- Responsive: md (>=768px) ---- */
@media (min-width: 768px) {
    .md\:gap-6 { gap: 1.5rem; }
    .md\:gap-8 { gap: 2rem; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:h-14 { height: 3.5rem; }
    .md\:justify-start { justify-content: flex-start; }
    .md\:text-\[11px\] { font-size: 11px; }
    .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
    .md\:text-left { text-align: left; }
    .md\:w-14 { width: 3.5rem; }
}

/* ---- Responsive: lg (>=1024px) ---- */
@media (min-width: 1024px) {
    .lg\:col-span-1 { grid-column: span 1 / span 1; }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* ---- Responsive: xl (>=1280px) ---- */
@media (min-width: 1280px) {
    .xl\:flex-row { flex-direction: row; }
    .xl\:w-96 { width: 24rem; }
}

/* ---- last-child helper ---- */
.last\:mb-0:last-child { margin-bottom: 0; }
