@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

*, ::before, ::after {
  --tw-border-spacing-x: 0; --tw-border-spacing-y: 0;
  --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0;
  --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1;
  --tw-pan-x: ; --tw-pan-y: ; --tw-pinch-zoom: ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position: ; --tw-gradient-via-position: ; --tw-gradient-to-position: ;
  --tw-ordinal: ; --tw-slashed-zero: ; --tw-numeric-figure: ;
  --tw-numeric-spacing: ; --tw-numeric-fraction: ;
  --tw-ring-inset: ; --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000;
  --tw-blur: ; --tw-brightness: ; --tw-contrast: ; --tw-grayscale: ;
  --tw-hue-rotate: ; --tw-invert: ; --tw-saturate: ; --tw-sepia: ; --tw-drop-shadow: ;
  --tw-backdrop-blur: ; --tw-backdrop-brightness: ; --tw-backdrop-contrast: ;
  --tw-backdrop-grayscale: ; --tw-backdrop-hue-rotate: ; --tw-backdrop-invert: ;
  --tw-backdrop-opacity: ; --tw-backdrop-saturate: ; --tw-backdrop-sepia: ;
  --tw-contain-size: ; --tw-contain-layout: ; --tw-contain-paint: ; --tw-contain-style: ;
}

::backdrop {
  --tw-border-spacing-x: 0; --tw-border-spacing-y: 0;
  --tw-translate-x: 0; --tw-translate-y: 0; --tw-rotate: 0;
  --tw-skew-x: 0; --tw-skew-y: 0; --tw-scale-x: 1; --tw-scale-y: 1;
  --tw-scroll-snap-strictness: proximity;
  --tw-ring-inset: ; --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff; --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000; --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000;
}

*, ::before, ::after {
  box-sizing: border-box;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}
::before, ::after { --tw-content: ''; }

html, :host {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4; tab-size: 4;
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
  -webkit-tap-highlight-color: transparent;
}

body { margin: 0; line-height: inherit; }
hr { height: 0; color: inherit; border-top-width: 1px; }
abbr:where([title]) { text-decoration: underline dotted; }
h1,h2,h3,h4,h5,h6 { font-size: inherit; font-weight: inherit; }
a { color: inherit; text-decoration: inherit; }
b, strong { font-weight: bolder; }
code,kbd,samp,pre { font-family: JetBrains Mono, monospace; font-feature-settings: normal; font-variation-settings: normal; font-size: 1em; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -0.25em; }
sup { top: -0.5em; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
button, input, optgroup, select, textarea {
  font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit;
  font-size: 100%; font-weight: inherit; line-height: inherit; letter-spacing: inherit;
  color: inherit; margin: 0; padding: 0;
}
button, select { text-transform: none; }
button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; background-color: transparent; background-image: none;
}
:-moz-focusring { outline: auto; }
:-moz-ui-invalid { box-shadow: none; }
progress { vertical-align: baseline; }
::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; }
[type='search'] { -webkit-appearance: textfield; outline-offset: -2px; }
::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; }
summary { display: list-item; }
blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre { margin: 0; }
fieldset { margin: 0; padding: 0; }
legend { padding: 0; }
ol,ul,menu { list-style: none; margin: 0; padding: 0; }
dialog { padding: 0; }
textarea { resize: vertical; }
input::-moz-placeholder, textarea::-moz-placeholder { opacity: 1; color: #9ca3af; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
button, [role="button"] { cursor: pointer; }
:disabled { cursor: default; }
img,svg,video,canvas,audio,iframe,embed,object { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
[hidden]:where(:not([hidden="until-found"])) { display: none; }

body {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── CONTAINER ─────────────────────────────── */
.container { width: 100%; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; } }
@media (min-width: 1536px) { .container { max-width: 1536px; } }

.container-custom {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px)  { .container-custom { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 1024px) { .container-custom { padding-left: 2rem; padding-right: 2rem; } }

/* ── CARDS ─────────────────────────────────── */
.card {
  border-radius: 0.75rem;
  padding: 1rem;
}
.card-elevated {
  border-radius: 0.75rem;
  padding: 1.25rem;
  border-width: 1px;
  border-color: rgba(93, 109, 126, 0.2);
  background-color: rgb(255 255 255);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06);
}

/* ── BUTTONS ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.4rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}
.btn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-offset-width: 2px;
}

.btn-lg { padding: 0.6rem 1.5rem; font-size: 0.9375rem; }
.btn-sm { padding: 0.25rem 0.625rem; font-size: 0.75rem; border-radius: 0.375rem; }

.btn-primary { background-color: rgb(30 58 95); color: #fff; }
.btn-primary:hover { background-color: rgb(47 87 135); }
.btn-primary:focus { --tw-ring-color: rgb(30 58 95); }

.btn-secondary { background-color: rgb(74 144 164); color: #fff; }
.btn-secondary:hover { background-color: rgb(62 122 139); }
.btn-secondary:focus { --tw-ring-color: rgb(74 144 164); }

.btn-outline {
  border-width: 1.5px;
  border-color: rgba(93, 109, 126, 0.35);
  color: rgb(30 58 95);
  background-color: transparent;
}
.btn-outline:hover { background-color: rgb(30 58 95 / 0.04); }
.btn-outline:focus { --tw-ring-color: rgb(30 58 95); }

/* ── INPUTS ────────────────────────────────── */
.input {
  border-radius: 0.5rem;
  border-width: 1px;
  border-color: rgba(93, 109, 126, 0.3);
  background-color: #fff;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  color: rgb(30 58 95);
  line-height: 1.5;
  width: 100%;
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.input:focus {
  border-color: transparent;
  outline: 2px solid transparent;
  outline-offset: 2px;
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  --tw-ring-color: rgb(74 144 164);
}
.input-error { border-color: rgb(231 76 60); }
.input-error:focus { --tw-ring-color: rgb(231 76 60); }

.label {
  margin-bottom: 0.25rem;
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 500;
  color: rgb(30 58 95);
}

/* ── BADGE ─────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.1rem 0.5rem;
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* ── PRINT ─────────────────────────────────── */
@media print {
  .no-print { display: none; }
  body { background-color: #fff; }
  .card-elevated { border-width: 0; box-shadow: none; }
  header, footer { display: none; }
}

/* ─────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────── */
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0; }
.static   { position: static; }
.fixed    { position: fixed; }
.absolute { position: absolute; }
.relative { position: relative; }
.sticky   { position: sticky; }

.inset-0  { inset: 0; }
.bottom-0 { bottom: 0; }
.left-3   { left: 0.75rem; }
.right-2  { right: 0.5rem; }
.top-0    { top: 0; }
.top-1\/2 { top: 50%; }
.top-2    { top: 0.5rem; }
.top-20   { top: 5rem; }

/* ── Z-INDEX ── */
.z-dropdown { z-index: 50; }
.z-modal    { z-index: 200; }

/* ── OVERFLOW ── */
/* ADDED: full overflow utility set needed by scrollable table + kanban */
.overflow-hidden   { overflow: hidden; }
.overflow-x-auto   { overflow-x: auto; }
.overflow-y-auto   { overflow-y: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-y-hidden { overflow-y: hidden; }

/* ── MARGIN ── */
.-mx-4   { margin-left: -1rem;    margin-right: -1rem; }
.mx-auto { margin-left: auto;     margin-right: auto; }
.mb-1    { margin-bottom: 0.25rem; }
.mb-2    { margin-bottom: 0.5rem; }
.mb-3    { margin-bottom: 0.75rem; }
.mb-4    { margin-bottom: 1rem; }
.mb-6    { margin-bottom: 1.5rem; }
.mb-8    { margin-bottom: 2rem; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1    { margin-top: 0.25rem; }
.mt-12   { margin-top: 3rem; }
.mt-2    { margin-top: 0.5rem; }
.mt-3    { margin-top: 0.75rem; }
.mt-4    { margin-top: 1rem; }
.mt-6    { margin-top: 1.5rem; }
.mt-auto { margin-top: auto; }

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

/* ── SIZING ── */
.h-3  { height: 0.75rem; }
.h-4  { height: 1rem; }
.h-5  { height: 1.25rem; }
.h-6  { height: 1.5rem; }
.h-8  { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.max-h-\[90vh\]  { max-height: 90vh; }
.min-h-\[100px\] { min-height: 100px; }
.min-h-\[150px\] { min-height: 150px; }
.min-h-\[300px\] { min-height: 300px; }
.min-h-screen    { min-height: 100vh; }

.w-3  { width: 0.75rem; }
.w-4  { width: 1rem; }
.w-5  { width: 1.25rem; }
.w-6  { width: 1.5rem; }
.w-8  { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-20 { width: 5rem; }
.w-24 { width: 6rem; }
.w-36 { width: 9rem; }   /* ADDED: used by modal action column */
.w-full   { width: 100%; }
.max-w-2xl{ max-width: 42rem; }
.max-w-4xl{ max-width: 56rem; }
.flex-1        { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

/* ── TRANSFORM ── */
.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes spin { to { transform: rotate(360deg); } }
.animate-spin { animation: spin 1s linear infinite; }

.cursor-pointer    { cursor: pointer; }
.resize-y          { resize: vertical; }
.whitespace-nowrap { white-space: nowrap; }

/* ── GRID ── */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── FLEX ── */
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-start   { align-items: flex-start; }
.items-center  { align-items: center; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end     { justify-content: flex-end; }  /* ADDED */

/* ── GAP ── */
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* ── SPACE Y ── */
.space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-6 > :not([hidden]) ~ :not([hidden]) { margin-top: 1.5rem; }

/* ── BORDER RADIUS ── */
.rounded-full { border-radius: 9999px; }
.rounded-lg   { border-radius: 0.75rem; }
.rounded-md   { border-radius: 0.5rem; }

/* ── BORDERS ── */
.border   { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-b { border-bottom-width: 1px; }
.border-t { border-top-width: 1px; }
.border-border-light { border-color: rgba(93,109,126,0.2); }
.border-error-200    { border-color: rgb(247 183 175); }
.border-success-200  { border-color: rgb(175 223 195); }

/* ── PADDING ── */
.p-2   { padding: 0.5rem; }
.p-3   { padding: 0.75rem; }
.p-4   { padding: 1rem; }
.p-5   { padding: 1.25rem; }
.p-6   { padding: 1.5rem; }
.px-3  { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4  { padding-left: 1rem;    padding-right: 1rem; }
.py-2  { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-4  { padding-top: 1rem;     padding-bottom: 1rem; }
.py-6  { padding-top: 1.5rem;   padding-bottom: 1.5rem; }
.py-8  { padding-top: 2rem;     padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem;   padding-bottom: 2.5rem; }  /* ADDED: used by empty state */
.py-12 { padding-top: 3rem;     padding-bottom: 3rem; }
.pb-3  { padding-bottom: 0.75rem; }
.pb-4  { padding-bottom: 1rem; }
.pb-6  { padding-bottom: 1.5rem; }
.pl-10 { padding-left: 2.5rem; }
.pt-2  { padding-top: 0.5rem; }
.pt-3  { padding-top: 0.75rem; }
.pt-4  { padding-top: 1rem; }
.pt-6  { padding-top: 1.5rem; }

/* ── TEXT ALIGNMENT ── */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* ── FONT FAMILY ── */
.font-heading { font-family: Source Sans Pro, sans-serif; }
.font-mono    { font-family: JetBrains Mono, monospace; }

/* ── FONT SIZE ── */
.text-xs   { font-size: 0.75rem;  line-height: 1.4; letter-spacing: -0.01em; }
.text-sm   { font-size: 0.875rem; line-height: 1.6; }
.text-base { font-size: 1rem;     line-height: 1.6; }
.text-lg   { font-size: 1.125rem; line-height: 1.5; }
.text-xl   { font-size: 1.25rem;  line-height: 1.4; }
.text-2xl  { font-size: 1.5rem;   line-height: 1.3; }
.text-3xl  { font-size: 1.875rem; line-height: 1.25; }
.text-4xl  { font-size: 2.25rem;  line-height: 1.2; }  /* ADDED: used by lg:text-4xl fallback */

/* ── FONT WEIGHT ── */
.font-bold     { font-weight: 700; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* ── TEXT TRANSFORM ── */
.uppercase  { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.tracking-wide  { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }

/* ── TEXT COLORS ── */
.text-accent        { color: rgb(230 126 34); }
.text-accent-700    { color: rgb(194 104 25); }
.text-error         { color: rgb(231 76 60); }
.text-error-700     { color: rgb(194 63 50); }
.text-primary       { color: rgb(30 58 95); }
.text-primary-700   { color: rgb(39 69 115); }
.text-secondary     { color: rgb(74 144 164); }
.text-secondary-700 { color: rgb(50 100 114); }
.text-success       { color: rgb(39 174 96); }
.text-success-700   { color: rgb(32 146 81); }
.text-success-900   { color: rgb(18 90 51); }
.text-text-secondary{ color: rgb(93 109 126); }
.text-text-tertiary { color: rgb(149 165 166); }
.text-white         { color: rgb(255 255 255); }
.text-red-600       { color: rgb(220 38 38); }   /* ADDED: logout button */

/* ── OPACITY ── */
.opacity-75 { opacity: 0.75; }
.opacity-90 { opacity: 0.9; }

/* ── BACKGROUNDS ── */
.bg-accent         { background-color: rgb(230 126 34); }
.bg-accent-100     { background-color: rgb(251 233 219); }
.bg-accent\/10     { background-color: rgb(230 126 34 / 0.1); }
.bg-background     { background-color: rgb(250 251 252); }
.bg-background\/50 { background-color: rgb(250 251 252 / 0.5); }
.bg-black\/50      { background-color: rgb(0 0 0 / 0.5); }
.bg-error-50       { background-color: rgb(253 237 235); }
.bg-primary        { background-color: rgb(30 58 95); }
.bg-primary-100    { background-color: rgb(215 225 235); }
.bg-primary\/10    { background-color: rgb(30 58 95 / 0.1); }
.bg-primary\/5     { background-color: rgb(30 58 95 / 0.05); }
.bg-secondary      { background-color: rgb(74 144 164); }
.bg-secondary-100  { background-color: rgb(219 237 241); }
.bg-secondary\/10  { background-color: rgb(74 144 164 / 0.1); }
.bg-success        { background-color: rgb(39 174 96); }
.bg-success-100    { background-color: rgb(215 239 225); }
.bg-success-50     { background-color: rgb(235 247 240); }
.bg-success\/10    { background-color: rgb(39 174 96 / 0.1); }
.bg-surface        { background-color: rgb(255 255 255); }
.bg-white          { background-color: rgb(255 255 255); }  /* ADDED */
.bg-red-50         { background-color: rgb(254 242 242); }  /* ADDED: logout hover */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r  { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-primary {
  --tw-gradient-from: #1E3A5F var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(30 58 95 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-primary\/5 {
  --tw-gradient-from: rgb(30 58 95 / 0.05) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(30 58 95 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-secondary    { --tw-gradient-to: #4A90A4 var(--tw-gradient-to-position); }
.to-secondary\/5 { --tw-gradient-to: rgb(74 144 164 / 0.05) var(--tw-gradient-to-position); }

/* ── SHADOWS ── */
.shadow-custom-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-custom    { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06); }
.shadow-custom-md { box-shadow: 0 4px 12px rgba(30,58,95,0.12); }
.shadow-lg        { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05); }  /* ADDED: dropdown */

/* ── BLUR / FILTER ── */
.blur   { --tw-blur: blur(8px); filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); }
.filter { filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow); }
/* ADDED: backdrop-blur used by modals */
.backdrop-filter { -webkit-backdrop-filter: var(--tw-backdrop-blur); backdrop-filter: var(--tw-backdrop-blur); }
[style*="backdrop-filter"] { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* ── TRANSITIONS ── */
.transition-all    { transition-property: all; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4,0,0.2,1); transition-duration: 150ms; }
.duration-base     { transition-duration: 250ms; }
/* ADDED: duration-200 used by tab buttons and header links */
.duration-200      { transition-duration: 200ms; }

/* ── HOVER / FOCUS / HAS ── */
.hover\:border-accent:hover    { border-color: rgb(230 126 34); }
.hover\:border-error:hover     { border-color: rgb(231 76 60); }
.hover\:border-secondary:hover { border-color: rgb(74 144 164); }
.hover\:bg-background:hover    { background-color: rgb(250 251 252); }
.hover\:bg-primary\/5:hover    { background-color: rgb(30 58 95 / 0.05); }
.hover\:bg-secondary\/5:hover  { background-color: rgb(74 144 164 / 0.05); }
.hover\:bg-red-50:hover        { background-color: rgb(254 242 242); }
.hover\:text-primary:hover     { color: rgb(30 58 95); }
.hover\:text-secondary:hover   { color: rgb(74 144 164); }
.hover\:shadow-custom:hover    { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06); }
.hover\:shadow-custom-md:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }

.focus\:ring-secondary:focus { --tw-ring-color: rgb(74 144 164); }

.has-\[\:checked\]\:border-accent:has(:checked)    { border-color: rgb(230 126 34); }
.has-\[\:checked\]\:border-error:has(:checked)     { border-color: rgb(231 76 60); }
.has-\[\:checked\]\:border-secondary:has(:checked) { border-color: rgb(74 144 164); }
.has-\[\:checked\]\:bg-accent\/5:has(:checked)     { background-color: rgb(230 126 34 / 0.05); }
.has-\[\:checked\]\:bg-error\/5:has(:checked)      { background-color: rgb(231 76 60 / 0.05); }
.has-\[\:checked\]\:bg-secondary\/10:has(:checked) { background-color: rgb(74 144 164 / 0.1); }
.has-\[\:checked\]\:bg-secondary\/5:has(:checked)  { background-color: rgb(74 144 164 / 0.05); }
.has-\[\:checked\]\:shadow-custom:has(:checked)    { box-shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px 0 rgba(0,0,0,0.06); }
.has-\[\:checked\]\:shadow-custom-md:has(:checked) { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); }

/* ── RESPONSIVE ── */
@media (min-width: 640px) {
  .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\:flex-row    { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:col-span-2   { grid-column: span 2 / span 2; }
  .md\:col-span-3   { grid-column: span 3 / span 3; }  /* ADDED */
  .md\:inline       { display: inline; }
  .md\:flex         { display: flex; }
  .md\:hidden       { display: none; }
  .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\:grid-cols-4  { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .md\:flex-row     { flex-direction: row; }
  .md\:items-center { align-items: center; }
}

@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\:col-span-3  { grid-column: span 3 / span 3; }  /* ADDED */
  .lg\:mb-8        { margin-bottom: 2rem; }
  .lg\:py-8        { padding-top: 2rem; padding-bottom: 2rem; }
  .lg\:w-36        { width: 9rem; }   /* ADDED */
  .lg\:w-40        { width: 10rem; }
  .lg\:w-48        { width: 12rem; }
  .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\:flex-row    { flex-direction: row; }
  .lg\:flex-col    { flex-direction: column; }
  .lg\:gap-6       { gap: 1.5rem; }
  .lg\:gap-8       { gap: 2rem; }
  .lg\:text-4xl    { font-size: 2.25rem; line-height: 1.2; }
  .lg\:text-lg     { font-size: 1.125rem; line-height: 1.5; }
}

/* ── HIDDEN + RESPONSIVE SHOW ── */
/* Base: hidden on mobile, shown at breakpoint */
.hidden { display: none; }

.md\:inline { display: none; }
@media (min-width: 768px) { .md\:inline { display: inline; } }

/* ADDED: hidden md:flex pattern used in header nav links */
@media (min-width: 768px) {
  .hidden.md\:flex  { display: flex; }
  .hidden.md\:block { display: block; }
}

/* ADDED: hidden md:inline used in button labels */
@media (min-width: 768px) {
  .hidden.md\:inline { display: inline; }
}

/* ── POSITION HELPERS (ADDED for sticky table header) ── */
/* These are applied via inline styles in the admin portal,
   but listed here for completeness and future utility use */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-50 { z-index: 50; }
