/* PayrollPro — utility classes (equivalent to the exact Tailwind classes the
   original React app used). Hand-authored so the app needs zero build step. */

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

.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.self-center { align-self: center; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.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-x-6 { column-gap: 1.5rem; }
.gap-y-3 { row-gap: .75rem; }
.gap-y-4 { row-gap: 1rem; }

.space-y-0\.5 > * + * { margin-top: .125rem; }
.space-y-1\.5 > * + * { margin-top: .375rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-2\.5 > * + * { margin-top: .625rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.divide-y > * + * { border-top-width: 1px; border-top-style: solid; }
.divide-app > * + * { border-color: var(--border); }

/* ---------- position ---------- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.-top-1 { top: -.25rem; }
.right-0 { right: 0; }
.right-3 { right: .75rem; }
.-right-1 { right: -.25rem; }
.left-3 { left: .75rem; }
.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; }

.-translate-y-1\/2 { transform: translateY(-50%); }
.translate-x-0 { transform: translateX(0); }
.-translate-x-full { transform: translateX(-100%); }

/* ---------- sizing ---------- */
.w-full { width: 100%; }
.w-1\/2 { width: 50%; }
.w-2 { width: .5rem; }
.w-2\.5 { width: .625rem; }
.w-3 { width: .75rem; }
.w-3\.5 { width: .875rem; }
.w-4 { width: 1rem; }
.w-4\.5 { width: 1.125rem; }
.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-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-40 { width: 10rem; }
.w-64 { width: 16rem; }
.w-80 { width: 20rem; }
.min-w-0 { min-width: 0; }
.min-w-4 { min-width: 1rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.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-w-\[1400px\] { max-width: 1400px; }
.max-h-80 { max-height: 20rem; }
.max-h-96 { max-height: 24rem; }
.max-h-\[90vh\] { max-height: 90vh; }

.h-1\.5 { height: .375rem; }
.h-2 { height: .5rem; }
.h-2\.5 { height: .625rem; }
.h-3 { height: .75rem; }
.h-3\.5 { height: .875rem; }
.h-4 { height: 1rem; }
.h-4\.5 { height: 1.125rem; }
.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-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-40 { height: 10rem; }
.h-52 { height: 13rem; }
.h-56 { height: 14rem; }
.h-60 { height: 15rem; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.min-h-20 { min-height: 5rem; }
.min-h-screen { min-height: 100vh; }

/* ---------- spacing ---------- */
.p-2 { padding: .5rem; }
.p-2\.5 { padding: .625rem; }
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-12 { padding: 3rem; }
.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-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pb-2 { padding-bottom: .5rem; }
.pb-4 { padding-bottom: 1rem; }
.pt-2 { padding-top: .5rem; }
.pl-1 { padding-left: .25rem; }
.pl-7 { padding-left: 1.75rem; }
.pl-9 { padding-left: 2.25rem; }
.pr-2 { padding-right: .5rem; }
.pr-10 { padding-right: 2.5rem; }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mt-0\.5 { margin-top: .125rem; }
.mt-1 { margin-top: .25rem; }
.mt-1\.5 { margin-top: .375rem; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: .75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.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-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

/* ---------- typography ---------- */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.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-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-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.uppercase { text-transform: uppercase; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.tracking-wide { letter-spacing: .025em; }
.tracking-wider { letter-spacing: .05em; }
.tracking-\[0\.5em\] { letter-spacing: .5em; }
.whitespace-nowrap { white-space: nowrap; }

/* ---------- colors ---------- */
.text-white { color: #fff; }
.text-white\/60 { color: rgba(255,255,255,.6); }
.text-white\/70 { color: rgba(255,255,255,.7); }
.text-white\/80 { color: rgba(255,255,255,.8); }
.text-brand-500 { color: var(--color-brand-500); }
.text-brand-600 { color: var(--color-brand-600); }
.text-brand-700 { color: var(--color-brand-700); }
.text-accent-500 { color: var(--color-accent-500); }
.text-accent-600 { color: var(--color-accent-600); }
.text-accent-700 { color: var(--color-accent-700); }
.text-amber-500 { color: #f59e0b; }
.text-amber-700 { color: #b45309; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-violet-500 { color: #8b5cf6; }
.text-violet-700 { color: #6d28d9; }
.text-cyan-500 { color: #06b6d4; }

.bg-app { background-color: var(--bg); }
.bg-brand-50 { background-color: var(--color-brand-50); }
.bg-brand-50\/50 { background-color: color-mix(in srgb, var(--color-brand-50) 50%, transparent); }
.bg-brand-500 { background-color: var(--color-brand-500); }
.bg-brand-600 { background-color: var(--color-brand-600); }
.bg-accent-50 { background-color: var(--color-accent-50); }
.bg-amber-50 { background-color: #fffbeb; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-500 { background-color: #ef4444; }
.bg-violet-50 { background-color: #f5f3ff; }
.bg-black\/40 { background-color: rgba(0,0,0,.4); }
.bg-white\/10 { background-color: rgba(255,255,255,.1); }
.bg-white\/15 { background-color: rgba(255,255,255,.15); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-from,#1735e1), var(--tw-via,#1f47f5), var(--tw-to,#1a2c8f)); }
.from-brand-700 { --tw-from: #1735e1; }
.via-brand-600 { --tw-via: #1f47f5; }
.to-brand-900 { --tw-to: #1a2c8f; }

.border-accent-200 { border-color: var(--color-accent-200); }
.border-amber-200 { border-color: #fde68a; }
.border-brand-200 { border-color: var(--color-brand-200); }
.border-brand-500 { border-color: var(--color-brand-500); }
.border-red-200 { border-color: #fecaca; }
.border-violet-200 { border-color: #ddd6fe; }
.border-transparent { border-color: transparent; }

.dark .dark\:bg-accent-900\/20 { background-color: color-mix(in srgb, var(--color-accent-900) 20%, transparent); }
.dark .dark\:bg-accent-900\/30 { background-color: color-mix(in srgb, var(--color-accent-900) 30%, transparent); }
.dark .dark\:bg-amber-900\/20 { background-color: rgba(120,53,15,.2); }
.dark .dark\:bg-amber-900\/30 { background-color: rgba(120,53,15,.3); }
.dark .dark\:bg-brand-900\/10 { background-color: color-mix(in srgb, var(--color-brand-900) 10%, transparent); }
.dark .dark\:bg-brand-900\/20 { background-color: color-mix(in srgb, var(--color-brand-900) 20%, transparent); }
.dark .dark\:bg-brand-900\/30 { background-color: color-mix(in srgb, var(--color-brand-900) 30%, transparent); }
.dark .dark\:bg-red-900\/20 { background-color: rgba(127,29,29,.2); }
.dark .dark\:bg-red-900\/30 { background-color: rgba(127,29,29,.3); }
.dark .dark\:bg-violet-900\/30 { background-color: rgba(76,29,149,.3); }
.dark .dark\:border-accent-700\/40 { border-color: color-mix(in srgb, var(--color-accent-700) 40%, transparent); }
.dark .dark\:border-amber-700\/40 { border-color: rgba(180,83,9,.4); }
.dark .dark\:border-brand-700\/40 { border-color: color-mix(in srgb, var(--color-brand-700) 40%, transparent); }
.dark .dark\:border-red-700\/40 { border-color: rgba(185,28,28,.4); }
.dark .dark\:border-violet-700\/40 { border-color: rgba(109,40,217,.4); }
.dark .dark\:text-accent-300 { color: var(--color-accent-300); }
.dark .dark\:text-amber-300 { color: #fcd34d; }
.dark .dark\:text-brand-300 { color: var(--color-brand-300); }
.dark .dark\:text-red-300 { color: #fca5a5; }
.dark .dark\:text-violet-300 { color: #c4b5fd; }

/* ---------- borders / radius / shadow ---------- */
.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-r { border-right-width: 1px; border-right-style: solid; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; }
.border-dashed { border-style: dashed; }
.rounded { border-radius: .25rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.ring-2 { box-shadow: 0 0 0 2px var(--ring-color, var(--color-brand-500)); }
.ring-brand-500 { --ring-color: var(--color-brand-500); }

/* ---------- misc ---------- */
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.cursor-pointer { cursor: pointer; }
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.transition-all { transition: all .2s ease; }
.transition-colors { transition: color .15s ease, background-color .15s ease, border-color .15s ease; }
.transition-shadow { transition: box-shadow .2s ease; }
.transition-transform { transition: transform .3s ease; }
.duration-300 { transition-duration: .3s; }
.duration-500 { transition-duration: .5s; }

.hover\:bg-surface-2:hover { background-color: var(--surface-2); }
.hover\:shadow-float:hover { box-shadow: var(--shadow-lg); }
.hover\:text-default:hover { color: var(--text); }
.hover\:text-red-700:hover { color: #b91c1c; }
.hover\:underline:hover { text-decoration: underline; }
.group:hover .group-hover\:text-brand-500 { color: var(--color-brand-500); }
.last\:border-0:last-child { border-width: 0; }
.disabled\:opacity-40:disabled { opacity: .4; }
.disabled\:opacity-60:disabled { opacity: .6; }

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex-row { flex-direction: row; }
  .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\:items-center { align-items: center; }
  .sm\:p-6 { padding: 1.5rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:table-cell { display: table-cell; }
  .sm\:w-40 { width: 10rem; }
  .sm\:w-48 { width: 12rem; }
}
@media (min-width: 768px) {
  .md\:table-cell { display: table-cell; }
}
@media (min-width: 1024px) {
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:flex { display: flex; }
  .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\:hidden { display: none; }
  .lg\:p-8 { padding: 2rem; }
  .lg\:sticky { position: sticky; }
  .lg\:table-cell { display: table-cell; }
  .lg\:translate-x-0 { transform: translateX(0); }
}

/* utility for JS-toggled visibility (used instead of conditional rendering) */
.js-hidden { display: none !important; }
