/* ─── Tailwind-like utility resets ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { line-height: 1.5; }
body { -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
img, svg { display: block; }
input, button, textarea, select { font: inherit; }
table { border-collapse: collapse; width: 100%; }

/* ─── Layout helpers ─────────────────────────────────────────────────────────── */
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-5 { gap: 20px; }
.gap-x-6 { column-gap: 24px; }
.gap-y-2 { row-gap: 8px; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.col-span-2 { grid-column: span 2; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }
.overflow-y-auto { overflow-y: auto; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.hidden { display: none; }
.block { display: block; }
.inline { display: inline; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.w-60 { width: 15rem; }
.min-w-0 { min-width: 0; }
.min-h-screen { min-height: 100vh; }
.min-h-96 { min-height: 24rem; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-1 { margin-left: 4px; }
.ml-2 { margin-left: 8px; }
.mt-0 { margin-top: 0; }
.mt-0\.5 { margin-top: 2px; }
.mt-1 { margin-top: 4px; }
.mt-1\.5 { margin-top: 6px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-5 { margin-top: 20px; }
.mt-6 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 4px; }
.mb-1\.5 { margin-bottom: 6px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-5 { margin-bottom: 20px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-4\.5 { padding: 18px; }
.p-5 { padding: 20px; }
.p-6 { padding: 24px; }
.p-8 { padding: 32px; }
.p-12 { padding: 48px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-5 { padding-left: 20px; padding-right: 20px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-1\.5 { padding-top: 6px; padding-bottom: 6px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-2\.5 { padding-top: 10px; padding-bottom: 10px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-6 { padding-top: 24px; padding-bottom: 24px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.pt-1 { padding-top: 4px; }
.pt-2 { padding-top: 8px; }
.pt-4 { padding-top: 16px; }
.pb-2 { padding-bottom: 8px; }
.space-y-1 > * + * { margin-top: 4px; }
.space-y-2 > * + * { margin-top: 8px; }
.space-y-3 > * + * { margin-top: 12px; }
.space-y-4 > * + * { margin-top: 16px; }
.space-y-5 > * + * { margin-top: 20px; }
.space-y-6 > * + * { margin-top: 24px; }
.space-x-1 > * + * { margin-left: 4px; }
.divide-y > * + * { border-top: 1px solid; }
.divide-gray-100 > * + * { border-color: #F3F4F6; }

/* ─── Typography ─────────────────────────────────────────────────────────────── */
.text-xs { font-size: 12px; line-height: 16px; }
.text-sm { font-size: 14px; line-height: 20px; }
.text-base { font-size: 16px; line-height: 24px; }
.text-lg { font-size: 18px; line-height: 28px; }
.text-xl { font-size: 20px; line-height: 28px; }
.text-2xl { font-size: 24px; line-height: 32px; }
.text-3xl { font-size: 30px; line-height: 36px; }
.text-4xl { font-size: 36px; line-height: 40px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.leading-tight { line-height: 1.25; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.capitalize { text-transform: capitalize; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ─── Colors ──────────────────────────────────────────────────────────────────── */
.text-white { color: #fff; }
.text-gray-300 { color: #D1D5DB; }
.text-gray-400 { color: #9CA3AF; }
.text-gray-500 { color: #6B7280; }
.text-gray-600 { color: #4B5563; }
.text-gray-700 { color: #374151; }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #F9FAFB; }
.bg-gray-100 { background-color: #F3F4F6; }
.border-gray-100 { border-color: #F3F4F6; }
.border-gray-200 { border-color: #E5E7EB; }
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border { border: 1px solid; }
.border-2 { border: 2px solid; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.text-blue-500 { color: #3B82F6; }
.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; }

/* ─── Transitions & Effects ─────────────────────────────────────────────────── */
.transition-all { transition: all 0.2s ease; }
.transition-colors { transition: color 0.15s ease; }
.hover\:underline:hover { text-decoration: underline; }
.hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.hover\:-translate-y-0\.5:hover { transform: translateY(-2px); }
.hover\:opacity-90:hover { opacity: 0.9; }
.focus\:outline-none:focus { outline: none; }
.focus\:ring-2:focus { box-shadow: 0 0 0 3px rgba(0,87,183,0.25); }
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0,87,183,0.25); }
.cursor-pointer { cursor: pointer; }

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:col-span-1 { grid-column: span 1; }
  .sm\:inline { display: inline; }
}
@media (min-width: 768px) {
  .md\:block { display: block; }
}
@media (min-width: 1024px) {
  .lg\:flex { display: flex; }
  .lg\:w-1\/2 { width: 50%; }
  .lg\:col-span-2 { grid-column: span 2; }
  .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; }
}
@media (min-width: 640px) {
  .min-w-48 { min-width: 12rem; }
}

/* ─── Component Styles ───────────────────────────────────────────────────────── */

/* Navigation */
.esm-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: rgba(147, 194, 248, 0.8);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s ease;
  text-decoration: none;
}
.esm-nav-link:hover, .esm-nav-link.active {
  background: rgba(0, 87, 183, 0.5);
  color: #fff;
}
.esm-nav-link svg {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
}

/* Cards */
.esm-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E9EEF4;
  box-shadow: 0 1px 3px rgba(0,45,86,0.06);
}
.esm-kpi-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #E9EEF4;
  box-shadow: 0 1px 3px rgba(0,45,86,0.06);
  overflow: hidden;
  display: flex;
  transition: all 0.2s ease;
}
.esm-kpi-card:hover { box-shadow: 0 4px 12px rgba(0,45,86,0.12); transform: translateY(-1px); }
.esm-kpi-accent { width: 4px; flex-shrink: 0; }

/* Buttons */
.esm-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #002D56;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.esm-btn-primary:hover { background: #003087; box-shadow: 0 4px 12px rgba(0,45,86,0.3); }
.esm-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #fff;
  color: #002D56;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1.5px solid #D1D5DB;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.esm-btn-secondary:hover { border-color: #002D56; background: #F0F5FF; }
.esm-btn-success {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; background: #059669; color: #fff;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.esm-btn-success:hover { background: #047857; }
.esm-btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; background: #DC2626; color: #fff;
  border-radius: 10px; font-size: 14px; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none; transition: all 0.15s;
}
.esm-btn-danger:hover { background: #B91C1C; }

/* Form controls */
.esm-input {
  padding: 9px 14px;
  border: 1.5px solid #D1D5DB;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  transition: all 0.15s ease;
  outline: none;
}
.esm-input:focus { border-color: #0057B7; box-shadow: 0 0 0 3px rgba(0,87,183,0.12); }
.esm-select {
  padding: 9px 14px;
  border: 1.5px solid #D1D5DB;
  border-radius: 10px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 36px;
  cursor: pointer;
  outline: none;
}
.esm-select:focus { border-color: #0057B7; box-shadow: 0 0 0 3px rgba(0,87,183,0.12); }
.esm-label { display: block; font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 5px; }

/* Ask HR ticket create — privacy notice above Description */
.ticket-privacy-notice {
  margin: 0 0 8px;
  font-family: inherit;
  font-style: normal;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  color: #6b7280;
  text-transform: none;
}

/* Team selector */
.esm-team-select { appearance: none; outline: none; cursor: pointer; }
.esm-team-select:focus { outline: none; }

/* Badges */
.esm-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.badge-blue { background: #EFF6FF; color: #1D4ED8; }
.badge-indigo { background: #EEF2FF; color: #4338CA; }
.badge-orange { background: #FFF7ED; color: #C2410C; }
.badge-yellow { background: #FEFCE8; color: #A16207; }
.badge-amber { background: #FFFBEB; color: #B45309; }
.badge-green { background: #ECFDF5; color: #059669; }
.badge-gray { background: #F3F4F6; color: #6B7280; }
.badge-red { background: #FEF2F2; color: #DC2626; }

/* Table */
.esm-table { width: 100%; border-collapse: collapse; }
.esm-table thead { background: #F8FAFC; border-bottom: 1px solid #E9EEF4; }
.esm-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
}
.esm-table tbody tr { border-bottom: 1px solid #F3F4F6; transition: background 0.1s; }
.esm-table tbody tr:last-child { border-bottom: none; }
.esm-table tbody tr:hover { background: #F0F5FF; }
.esm-table tbody td { padding: 12px 16px; font-size: 14px; color: #374151; }

/* Resize */
.resize-none { resize: none; }

/* No-underline */
.no-underline { text-decoration: none; }

/* Group */
.group { }
.group:hover .group-hover\:underline { text-decoration: underline; }
.group:hover .group-hover\:text-blue-500 { color: #3B82F6; }

/* HID logo */
.esm-logo,
.esm-logo-md,
.esm-logo-lg {
  display: block;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: hidden;
}
.esm-logo {
  height: 32px;
  width: 32px;
  border-radius: 4px;
}
.esm-logo-md {
  height: 40px;
  width: 40px;
  border-radius: 6px;
}
.esm-logo-lg {
  height: 48px;
  width: 48px;
  border-radius: 8px;
}
