/**
 * iHRM Corporate Design System v2.1
 * Business-first, interactive, theme-aware
 */

/* ── Theme palettes ─────────────────────────────────────────── */
[data-ihrm-theme="corporate"] {
  --ihrm-primary: #1e3a5f;
  --ihrm-primary-light: #2d4f7c;
  --ihrm-accent: #2563eb;
  --ihrm-accent-soft: rgba(37, 99, 235, 0.1);
  --ihrm-success: #059669;
  --ihrm-warning: #d97706;
  --ihrm-danger: #dc2626;
  --ihrm-surface: #f8fafc;
  --ihrm-surface-elevated: #ffffff;
  --ihrm-border: rgba(30, 58, 95, 0.1);
  --ihrm-text: #1e293b;
  --ihrm-text-muted: #64748b;
  --ihrm-header-bg: #ffffff;
  --ihrm-sidebar-bg: #ffffff;
}

[data-ihrm-theme="emerald"] {
  --ihrm-primary: #065f46;
  --ihrm-primary-light: #047857;
  --ihrm-accent: #10b981;
  --ihrm-accent-soft: rgba(16, 185, 129, 0.1);
  --ihrm-success: #059669;
  --ihrm-warning: #d97706;
  --ihrm-danger: #dc2626;
  --ihrm-surface: #f0fdf4;
  --ihrm-surface-elevated: #ffffff;
  --ihrm-border: rgba(6, 95, 70, 0.1);
  --ihrm-text: #1e293b;
  --ihrm-text-muted: #64748b;
  --ihrm-header-bg: #ffffff;
  --ihrm-sidebar-bg: #ffffff;
}

[data-ihrm-theme="slate"] {
  --ihrm-primary: #334155;
  --ihrm-primary-light: #475569;
  --ihrm-accent: #64748b;
  --ihrm-accent-soft: rgba(100, 116, 139, 0.12);
  --ihrm-success: #059669;
  --ihrm-warning: #d97706;
  --ihrm-danger: #dc2626;
  --ihrm-surface: #f8fafc;
  --ihrm-surface-elevated: #ffffff;
  --ihrm-border: rgba(51, 65, 85, 0.1);
  --ihrm-text: #1e293b;
  --ihrm-text-muted: #64748b;
  --ihrm-header-bg: #ffffff;
  --ihrm-sidebar-bg: #ffffff;
}

[data-ihrm-theme="burgundy"] {
  --ihrm-primary: #7f1d1d;
  --ihrm-primary-light: #991b1b;
  --ihrm-accent: #b91c1c;
  --ihrm-accent-soft: rgba(185, 28, 28, 0.1);
  --ihrm-success: #059669;
  --ihrm-warning: #d97706;
  --ihrm-danger: #dc2626;
  --ihrm-surface: #fef2f2;
  --ihrm-surface-elevated: #ffffff;
  --ihrm-border: rgba(127, 29, 29, 0.1);
  --ihrm-text: #1e293b;
  --ihrm-text-muted: #64748b;
  --ihrm-header-bg: #ffffff;
  --ihrm-sidebar-bg: #ffffff;
}

[data-ihrm-theme="ocean"] {
  --ihrm-primary: #0c4a6e;
  --ihrm-primary-light: #075985;
  --ihrm-accent: #0ea5e9;
  --ihrm-accent-soft: rgba(14, 165, 233, 0.1);
  --ihrm-success: #059669;
  --ihrm-warning: #d97706;
  --ihrm-danger: #dc2626;
  --ihrm-surface: #f0f9ff;
  --ihrm-surface-elevated: #ffffff;
  --ihrm-border: rgba(12, 74, 110, 0.1);
  --ihrm-text: #1e293b;
  --ihrm-text-muted: #64748b;
  --ihrm-header-bg: #ffffff;
  --ihrm-sidebar-bg: #ffffff;
}

[data-ihrm-theme="dark"] {
  --ihrm-primary: #1e293b;
  --ihrm-primary-light: #334155;
  --ihrm-accent: #38bdf8;
  --ihrm-accent-soft: rgba(56, 189, 248, 0.15);
  --ihrm-success: #34d399;
  --ihrm-warning: #fbbf24;
  --ihrm-danger: #f87171;
  --ihrm-surface: #0f172a;
  --ihrm-surface-elevated: #1e293b;
  --ihrm-border: rgba(148, 163, 184, 0.2);
  --ihrm-text: #f1f5f9;
  --ihrm-text-muted: #94a3b8;
  --ihrm-header-bg: #1e293b;
  --ihrm-sidebar-bg: #1e293b;
}

:root,
[data-ihrm-theme] {
  --ihrm-radius: 0.5rem;
  --ihrm-radius-lg: 0.75rem;
  --ihrm-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  --ihrm-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --ihrm-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.1);
  --ihrm-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --ihrm-font: "IBM Plex Sans", "Open Sans", system-ui, sans-serif;
  --ihrm-font-heading: "IBM Plex Sans", "Nunito", system-ui, sans-serif;
}

/* Fallback when no theme attribute (guests) */
html:not([data-ihrm-theme]) {
  --ihrm-primary: #1e3a5f;
  --ihrm-primary-light: #2d4f7c;
  --ihrm-accent: #2563eb;
  --ihrm-accent-soft: rgba(37, 99, 235, 0.1);
  --ihrm-success: #059669;
  --ihrm-warning: #d97706;
  --ihrm-danger: #dc2626;
  --ihrm-surface: #f8fafc;
  --ihrm-surface-elevated: #ffffff;
  --ihrm-border: rgba(30, 58, 95, 0.1);
  --ihrm-text: #1e293b;
  --ihrm-text-muted: #64748b;
  --ihrm-header-bg: #ffffff;
  --ihrm-sidebar-bg: #ffffff;
}

/* ── Base typography & body ─────────────────────────────────── */
body.ihrm-corporate {
  font-family: var(--ihrm-font);
  background: var(--ihrm-surface, #f8fafc);
  color: var(--ihrm-text, #1e293b);
  -webkit-font-smoothing: antialiased;
}

body.ihrm-corporate h1,
body.ihrm-corporate h2,
body.ihrm-corporate h3,
body.ihrm-corporate h4,
body.ihrm-corporate h5,
body.ihrm-corporate h6,
body.ihrm-corporate .pagetitle h1 {
  font-family: var(--ihrm-font-heading);
  color: var(--ihrm-primary, #1e3a5f);
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.ihrm-corporate a {
  color: var(--ihrm-accent, #2563eb);
  transition: color var(--ihrm-transition);
}

body.ihrm-corporate a:hover {
  color: var(--ihrm-primary, #1e3a5f);
}

/* ── Bootstrap overrides ────────────────────────────────────── */
body.ihrm-corporate .btn-primary {
  background-color: var(--ihrm-primary, #1e3a5f);
  border-color: var(--ihrm-primary, #1e3a5f);
  transition: all var(--ihrm-transition);
}

body.ihrm-corporate .btn-primary:hover,
body.ihrm-corporate .btn-primary:focus,
body.ihrm-corporate .btn-primary:active,
body.ihrm-corporate .btn-primary.active {
  background-color: var(--ihrm-accent, #2563eb);
  border-color: var(--ihrm-accent, #2563eb);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--ihrm-shadow-md);
}

body.ihrm-corporate .btn-outline-primary {
  color: var(--ihrm-primary, #1e3a5f);
  border-color: var(--ihrm-primary, #1e3a5f);
  transition: all var(--ihrm-transition);
}

body.ihrm-corporate .btn-outline-primary:hover,
body.ihrm-corporate .btn-outline-primary:focus,
body.ihrm-corporate .btn-outline-primary:active,
body.ihrm-corporate .btn-outline-primary.active,
body.ihrm-corporate .btn-outline-primary.show {
  color: #fff !important;
  background-color: var(--ihrm-primary, #1e3a5f);
  border-color: var(--ihrm-primary, #1e3a5f);
  transform: translateY(-1px);
  box-shadow: var(--ihrm-shadow-md);
}

body.ihrm-corporate .btn-outline-success {
  color: var(--ihrm-success, #059669);
  border-color: var(--ihrm-success, #059669);
  transition: all var(--ihrm-transition);
}

body.ihrm-corporate .btn-outline-success:hover,
body.ihrm-corporate .btn-outline-success:focus,
body.ihrm-corporate .btn-outline-success:active,
body.ihrm-corporate .btn-outline-success.active {
  color: #fff !important;
  background-color: var(--ihrm-success, #059669);
  border-color: var(--ihrm-success, #059669);
  transform: translateY(-1px);
}

body.ihrm-corporate .btn-outline-danger {
  color: var(--ihrm-danger, #dc2626);
  border-color: var(--ihrm-danger, #dc2626);
  transition: all var(--ihrm-transition);
}

body.ihrm-corporate .btn-outline-danger:hover,
body.ihrm-corporate .btn-outline-danger:focus,
body.ihrm-corporate .btn-outline-danger:active,
body.ihrm-corporate .btn-outline-danger.active {
  color: #fff !important;
  background-color: var(--ihrm-danger, #dc2626);
  border-color: var(--ihrm-danger, #dc2626);
  transform: translateY(-1px);
}

body.ihrm-corporate .btn-outline-warning {
  color: var(--ihrm-warning, #d97706);
  border-color: var(--ihrm-warning, #d97706);
  transition: all var(--ihrm-transition);
}

body.ihrm-corporate .btn-outline-warning:hover,
body.ihrm-corporate .btn-outline-warning:focus,
body.ihrm-corporate .btn-outline-warning:active,
body.ihrm-corporate .btn-outline-warning.active {
  color: #fff !important;
  background-color: var(--ihrm-warning, #d97706);
  border-color: var(--ihrm-warning, #d97706);
  transform: translateY(-1px);
}

body.ihrm-corporate .btn-outline-secondary:hover,
body.ihrm-corporate .btn-outline-secondary:focus,
body.ihrm-corporate .btn-outline-secondary:active,
body.ihrm-corporate .btn-outline-secondary.active {
  color: #fff !important;
}

body.ihrm-corporate .text-primary {
  color: var(--ihrm-accent, #2563eb) !important;
}

body.ihrm-corporate .bg-primary {
  background-color: var(--ihrm-primary, #1e3a5f) !important;
}

body.ihrm-corporate .progress-bar.bg-primary {
  background-color: var(--ihrm-accent, #2563eb) !important;
}

body.ihrm-corporate .form-control:focus,
body.ihrm-corporate .form-select:focus {
  border-color: var(--ihrm-accent, #2563eb);
  box-shadow: 0 0 0 0.2rem var(--ihrm-accent-soft, rgba(37, 99, 235, 0.15));
}

/* ── Header ───────────────────────────────────────────────── */
body.ihrm-corporate .header {
  background: var(--ihrm-header-bg, #fff);
  border-bottom: 1px solid var(--ihrm-border, rgba(0, 0, 0, 0.08));
  box-shadow: var(--ihrm-shadow);
  transition: box-shadow var(--ihrm-transition);
  padding: 0 1.25rem;
  height: 60px;
}

body.ihrm-corporate .header-nav {
  padding: 0;
}

body.ihrm-corporate .header-nav > ul > li {
  list-style: none;
}

body.ihrm-corporate .header.header-scrolled {
  box-shadow: var(--ihrm-shadow-md);
}

/* Header layout */
.ihrm-header-left {
  gap: 0.75rem;
  min-width: 0;
}

.ihrm-header-toolbar > ul {
  gap: 0.5rem;
}

.ihrm-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius);
  background: var(--ihrm-surface-elevated, #fff);
  color: var(--ihrm-text-muted, #64748b);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--ihrm-transition);
  position: relative;
}

.ihrm-header-btn:hover {
  background: var(--ihrm-accent-soft);
  border-color: var(--ihrm-accent);
  color: var(--ihrm-primary);
  transform: translateY(-1px);
  box-shadow: var(--ihrm-shadow);
}

body.ihrm-corporate .header .toggle-sidebar-btn {
  border: none;
  background: transparent;
  width: 40px;
  height: 40px;
}

body.ihrm-corporate .header .toggle-sidebar-btn:hover {
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-accent);
  box-shadow: none;
  transform: none;
}

.ihrm-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: var(--ihrm-primary, #1e3a5f);
  transition: opacity var(--ihrm-transition);
}

.ihrm-brand:hover {
  color: var(--ihrm-primary, #1e3a5f);
  opacity: 0.88;
}

.ihrm-brand-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--ihrm-primary, #1e3a5f), var(--ihrm-accent, #2563eb));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ihrm-brand-text {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Notifications */
.ihrm-notif-nav {
  list-style: none;
}

.ihrm-notif-btn .ihrm-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--ihrm-danger, #dc2626);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  border: 2px solid var(--ihrm-header-bg, #fff);
}

.ihrm-notif-menu {
  min-width: 300px;
  max-width: 360px;
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  box-shadow: var(--ihrm-shadow-lg);
  padding: 0.25rem 0;
  overflow: hidden;
}

.ihrm-notif-menu .dropdown-header {
  padding: 0.75rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ihrm-primary);
  background: var(--ihrm-surface);
}

.ihrm-notif-item {
  padding: 0.625rem 1rem !important;
  white-space: normal;
  border-left: 3px solid transparent;
  transition: all var(--ihrm-transition);
}

.ihrm-notif-item.unread {
  background: var(--ihrm-accent-soft);
  border-left-color: var(--ihrm-accent);
}

.ihrm-notif-item:hover {
  background: var(--ihrm-accent-soft) !important;
}

.ihrm-notif-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ihrm-text);
}

.ihrm-notif-item.unread .ihrm-notif-title {
  color: var(--ihrm-primary);
}

.ihrm-notif-body {
  font-size: 0.75rem;
  color: var(--ihrm-text-muted);
  margin-top: 0.125rem;
}

.ihrm-notif-view-all {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ihrm-accent) !important;
}

/* Profile chip */
.ihrm-profile-nav {
  list-style: none;
}

.ihrm-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.625rem 0.25rem 0.25rem;
  border: 1px solid var(--ihrm-border);
  border-radius: 2rem;
  background: var(--ihrm-surface-elevated, #fff);
  text-decoration: none;
  color: var(--ihrm-text);
  transition: all var(--ihrm-transition);
  cursor: pointer;
}

.ihrm-profile-chip:hover,
.ihrm-profile-chip.show {
  border-color: var(--ihrm-accent);
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-primary);
  box-shadow: var(--ihrm-shadow);
}

.ihrm-profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ihrm-border);
  transition: border-color var(--ihrm-transition);
}

.ihrm-profile-chip:hover .ihrm-profile-avatar {
  border-color: var(--ihrm-accent);
}

.ihrm-profile-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ihrm-primary);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ihrm-profile-chevron {
  font-size: 0.625rem;
  color: var(--ihrm-text-muted);
  transition: transform var(--ihrm-transition);
}

.ihrm-profile-chip.show .ihrm-profile-chevron {
  transform: rotate(180deg);
  color: var(--ihrm-accent);
}

.ihrm-profile-menu {
  min-width: 260px;
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  box-shadow: var(--ihrm-shadow-lg);
  padding: 0.25rem 0;
  margin-top: 0.5rem !important;
}

.ihrm-profile-menu .dropdown-header {
  padding: 1rem;
  background: var(--ihrm-surface);
}

.ihrm-profile-menu-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ihrm-profile-menu-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--ihrm-border);
}

.ihrm-profile-menu .dropdown-header h6 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ihrm-primary);
}

.ihrm-profile-menu .dropdown-header span {
  font-size: 0.75rem;
  color: var(--ihrm-text-muted);
}

.ihrm-profile-menu .dropdown-item {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.ihrm-profile-menu .dropdown-item i {
  width: 1.125rem;
  color: var(--ihrm-accent);
  text-align: center;
}

.ihrm-profile-menu .dropdown-item:hover {
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-primary);
}

.ihrm-profile-logout {
  color: var(--ihrm-danger) !important;
}

.ihrm-profile-logout i {
  color: var(--ihrm-danger) !important;
}

.ihrm-profile-logout:hover {
  background: rgba(220, 38, 38, 0.08) !important;
}

/* ── Sidebar ──────────────────────────────────────────────── */
body.ihrm-corporate .sidebar {
  background: var(--ihrm-sidebar-bg, #fff);
  border-right: 1px solid var(--ihrm-border, rgba(0, 0, 0, 0.08));
  transition: width var(--ihrm-transition), transform var(--ihrm-transition);
}

/* Override NiceAdmin: only ONE item highlighted at a time */
body.ihrm-corporate .sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--ihrm-text, #1e293b) !important;
  background: transparent !important;
  border-radius: var(--ihrm-radius);
  margin: 1px 10px;
  padding: 0.6rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--ihrm-transition);
}

body.ihrm-corporate .sidebar-nav .nav-link.collapsed {
  color: var(--ihrm-text-muted, #64748b) !important;
  background: transparent !important;
}

body.ihrm-corporate .sidebar-nav .nav-link:hover {
  background: var(--ihrm-accent-soft) !important;
  color: var(--ihrm-primary) !important;
}

body.ihrm-corporate .sidebar-nav .nav-link.active {
  background: var(--ihrm-accent-soft) !important;
  color: var(--ihrm-accent) !important;
  font-weight: 600;
}

body.ihrm-corporate .sidebar-nav .nav-link:not(.collapsed):not(.active) {
  color: var(--ihrm-primary) !important;
  font-weight: 600;
}

/* Icons */
body.ihrm-corporate .sidebar-icon {
  width: 1.25rem;
  font-size: 0.9375rem;
  margin-right: 0.625rem;
  color: var(--ihrm-text-muted);
  text-align: center;
  flex-shrink: 0;
  transition: color var(--ihrm-transition);
}

body.ihrm-corporate .sidebar-icon-sm {
  width: 1rem;
  font-size: 0.8125rem;
  margin-right: 0.5rem;
  color: var(--ihrm-text-muted);
  text-align: center;
  flex-shrink: 0;
  transition: color var(--ihrm-transition);
}

body.ihrm-corporate .sidebar-nav .nav-link:hover .sidebar-icon,
body.ihrm-corporate .sidebar-nav .nav-link.active .sidebar-icon,
body.ihrm-corporate .sidebar-nav .nav-content a:hover .sidebar-icon-sm,
body.ihrm-corporate .sidebar-nav .nav-content a.active .sidebar-icon-sm {
  color: var(--ihrm-accent);
}

body.ihrm-corporate .sidebar-nav .nav-link.active .sidebar-icon {
  color: var(--ihrm-accent);
}

/* Chevron for collapsible sections */
body.ihrm-corporate .ihrm-sidebar-chevron {
  font-size: 0.625rem !important;
  margin-right: 0 !important;
  margin-left: auto;
  color: var(--ihrm-text-muted);
  transition: transform 0.2s ease, color var(--ihrm-transition);
  width: auto !important;
}

body.ihrm-corporate .sidebar-nav .nav-link:not(.collapsed) .ihrm-sidebar-chevron {
  transform: rotate(180deg);
  color: var(--ihrm-accent);
}

/* Section headings */
body.ihrm-corporate .sidebar-nav .nav-heading {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ihrm-text-muted);
  font-weight: 600;
  margin: 1rem 10px 0.375rem;
  padding: 0 0.875rem;
}

body.ihrm-corporate .sidebar-nav .sidebar-divider {
  height: 1px;
  background: var(--ihrm-border);
  margin: 0.5rem 1.25rem;
  list-style: none;
}

/* Keep sidebar visible on inner pages */
@media (max-width: 1199px) {
  body.ihrm-corporate.ihrm-sidebar-open .sidebar {
    left: 0;
  }
}

@media (min-width: 1200px) {
  body.ihrm-corporate.ihrm-sidebar-open .sidebar {
    left: 0;
  }

  body.ihrm-corporate.ihrm-sidebar-open #main,
  body.ihrm-corporate.ihrm-sidebar-open #footer {
    margin-left: 300px;
  }

  body.ihrm-corporate.ihrm-sidebar-open.toggle-sidebar .sidebar {
    left: -300px;
  }

  body.ihrm-corporate.ihrm-sidebar-open.toggle-sidebar #main,
  body.ihrm-corporate.ihrm-sidebar-open.toggle-sidebar #footer {
    margin-left: 0;
  }
}

body.ihrm-corporate .ihrm-menu-warning-badge {
  font-size: 0.6875rem;
  color: #d97706;
  flex-shrink: 0;
}

body.ihrm-corporate .sidebar-nav a.ihrm-menu-link-warning {
  color: #b45309 !important;
}

body.ihrm-corporate .sidebar-nav .ihrm-menu-link-disabled {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.875rem 0.45rem 2.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  margin: 1px 10px;
  border-radius: calc(var(--ihrm-radius) - 2px);
  cursor: not-allowed;
  opacity: 0.72;
  user-select: none;
}

body.ihrm-corporate .ihrm-menu-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

body.ihrm-corporate .ihrm-menu-badge--neutral {
  background: var(--ihrm-border, #e2e8f0);
  color: var(--ihrm-text-muted, #64748b);
}

body.ihrm-corporate .ihrm-menu-badge--warning {
  background: #fef3c7;
  color: #92400e;
}

body.ihrm-corporate .ihrm-menu-badge--info {
  background: #dbeafe;
  color: #1d4ed8;
}

body.ihrm-corporate .ihrm-menu-badge--accent {
  background: var(--ihrm-accent-soft, #e0e7ff);
  color: var(--ihrm-primary, #1e3a5f);
}

body.ihrm-corporate .ihrm-company-switcher {
  margin-left: 1rem;
  max-width: 220px;
}

body.ihrm-corporate .ihrm-company-switcher-select {
  min-width: 160px;
  max-width: 220px;
  border-color: var(--ihrm-border);
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Submenu links */
body.ihrm-corporate .sidebar-nav .nav-content {
  padding: 0.125rem 0 0.25rem;
}

body.ihrm-corporate .sidebar-nav .nav-content a {
  display: flex;
  align-items: center;
  padding: 0.45rem 0.875rem 0.45rem 2.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ihrm-text-muted) !important;
  background: transparent !important;
  border-radius: calc(var(--ihrm-radius) - 2px);
  margin: 1px 10px;
  transition: all var(--ihrm-transition);
}

body.ihrm-corporate .sidebar-nav .nav-content .nav-content a {
  padding-left: 2.75rem;
}

body.ihrm-corporate .sidebar-nav .nav-content .nav-content .nav-content a {
  padding-left: 3.25rem;
}

body.ihrm-corporate .sidebar-nav .nav-content a:hover {
  background: var(--ihrm-accent-soft) !important;
  color: var(--ihrm-primary) !important;
}

body.ihrm-corporate .sidebar-nav .nav-content a.active {
  background: var(--ihrm-accent-soft) !important;
  color: var(--ihrm-accent) !important;
  font-weight: 600;
}

/* Nested nav-link inside nav-content (sub-collapsibles) */
body.ihrm-corporate .sidebar-nav .nav-content .nav-link {
  padding-left: 2rem;
  font-size: 0.8125rem;
}

/* ── Main content ─────────────────────────────────────────── */
body.ihrm-corporate #main {
  transition: margin-left var(--ihrm-transition);
}

body.ihrm-corporate .pagetitle {
  padding-bottom: 0.5rem;
  margin-bottom: 0.25rem;
}

body.ihrm-corporate .ihrm-pagetitle {
  min-height: 1.75rem;
}

body.ihrm-corporate .ihrm-site-breadcrumb {
  padding-top: 0.125rem;
}

body.ihrm-corporate .ihrm-site-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: var(--ihrm-text-muted, #94a3b8);
}

body.ihrm-corporate .breadcrumb a {
  color: var(--ihrm-text-muted, #64748b);
}

body.ihrm-corporate .breadcrumb a:hover {
  color: var(--ihrm-accent, #2563eb);
}

/* ── Page header component ────────────────────────────────── */
.ihrm-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--ihrm-border, rgba(0, 0, 0, 0.08));
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
}

.ihrm-page-header h1,
.ihrm-page-header h3 {
  margin-bottom: 0.25rem;
}

.ihrm-page-header .ihrm-page-subtitle {
  color: var(--ihrm-text-muted, #64748b);
  margin-bottom: 0;
  font-size: 0.9375rem;
  margin-top: 0.35rem;
}

.ihrm-page-header-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Page help popover (? button in header) */
.ihrm-page-help {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.ihrm-page-help-trigger {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.06));
  color: var(--ihrm-accent, #2563eb);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  padding: 0;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ihrm-page-help-trigger:hover,
.ihrm-page-help-trigger[aria-expanded="true"] {
  background: var(--ihrm-accent, #2563eb);
  border-color: var(--ihrm-accent, #2563eb);
  color: #fff;
}

.ihrm-page-help-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  z-index: 1050;
  min-width: 280px;
  max-width: 380px;
  padding: 1rem 1.125rem;
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
  font-size: 0.875rem;
  line-height: 1.5;
}

.ihrm-page-help--align-end .ihrm-page-help-panel {
  left: auto;
  right: 0;
}

.ihrm-page-help-panel-title {
  font-weight: 600;
  color: var(--ihrm-primary, #1e3a5f);
  margin-bottom: 0.625rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.ihrm-page-help-panel-content .ihrm-hint-list {
  font-size: 0.8125rem;
}

.ihrm-page-help-enter-start,
.ihrm-page-help-leave-end {
  opacity: 0;
  transform: translateY(-4px);
}

.ihrm-page-help-enter-end,
.ihrm-page-help-leave-start {
  opacity: 1;
  transform: translateY(0);
}

.ihrm-page-help-enter,
.ihrm-page-help-leave {
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* ── Cards ────────────────────────────────────────────────── */
.card.ihrm-card,
.ihrm-card {
  border: 1px solid var(--ihrm-border, rgba(0, 0, 0, 0.06));
  border-radius: var(--ihrm-radius-lg);
  box-shadow: var(--ihrm-shadow);
  background: var(--ihrm-surface-elevated, #fff);
  transition: box-shadow var(--ihrm-transition), transform var(--ihrm-transition), border-color var(--ihrm-transition);
}

.ihrm-card:hover,
.card.ihrm-card:hover {
  box-shadow: var(--ihrm-shadow-md);
}

.ihrm-card-interactive:hover {
  transform: translateY(-2px);
  border-color: var(--ihrm-accent, #2563eb);
}

.ihrm-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--ihrm-border, rgba(0, 0, 0, 0.06));
  font-weight: 600;
  color: var(--ihrm-primary, #1e3a5f);
  padding: 1rem 1.25rem;
}

.ihrm-card-header-primary {
  background: linear-gradient(135deg, var(--ihrm-primary, #1e3a5f), var(--ihrm-primary-light, #2d4f7c)) !important;
  color: #fff !important;
  border-bottom: none !important;
  border-radius: var(--ihrm-radius-lg) var(--ihrm-radius-lg) 0 0;
}

.ihrm-card-header-primary h6 {
  color: #fff !important;
}

.ihrm-card-header-primary i {
  color: rgba(255, 255, 255, 0.85);
}

.ihrm-card-header-accent {
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.08)) !important;
  color: var(--ihrm-primary, #1e3a5f) !important;
  border-bottom: 1px solid var(--ihrm-border) !important;
}

/* ── Stat cards ───────────────────────────────────────────── */
.ihrm-stat-card {
  background: var(--ihrm-surface-elevated, #fff);
  border: 1px solid var(--ihrm-border, rgba(0, 0, 0, 0.06));
  border-radius: var(--ihrm-radius-lg);
  box-shadow: var(--ihrm-shadow);
  padding: 1.25rem;
  height: 100%;
  transition: all var(--ihrm-transition);
  position: relative;
  overflow: hidden;
}

.ihrm-stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ihrm-primary, #1e3a5f), var(--ihrm-accent, #2563eb));
  opacity: 0;
  transition: opacity var(--ihrm-transition);
}

.ihrm-stat-card:hover {
  box-shadow: var(--ihrm-shadow-md);
  transform: translateY(-2px);
}

.ihrm-stat-card:hover::before {
  opacity: 1;
}

.ihrm-stat-card .ihrm-stat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--ihrm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.1));
  color: var(--ihrm-accent, #2563eb);
  margin-bottom: 0.75rem;
}

.ihrm-stat-card .ihrm-stat-value {
  color: var(--ihrm-primary, #1e3a5f);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.ihrm-stat-card .ihrm-stat-label {
  color: var(--ihrm-text-muted, #64748b);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Session cards (employee home) ────────────────────────── */
.ihrm-session-card {
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  background: var(--ihrm-surface-elevated, #fff);
  box-shadow: var(--ihrm-shadow);
  transition: all var(--ihrm-transition);
  overflow: hidden;
}

.ihrm-session-card:hover {
  box-shadow: var(--ihrm-shadow-md);
  transform: translateY(-3px);
}

.ihrm-session-card.completed {
  border-left: 4px solid var(--ihrm-success, #059669);
}

.ihrm-session-card.pending {
  border-left: 4px solid var(--ihrm-accent, #2563eb);
}

.ihrm-session-card.mandatory::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 28px 28px 0;
  border-color: transparent var(--ihrm-danger, #dc2626) transparent transparent;
}

.ihrm-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--ihrm-border, rgba(0, 0, 0, 0.08));
  overflow: hidden;
}

.ihrm-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ihrm-primary, #1e3a5f), var(--ihrm-accent, #2563eb));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ihrm-progress-bar.completed {
  background: var(--ihrm-success, #059669);
}

/* ── Quick action buttons ─────────────────────────────────── */
.ihrm-quick-action {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius);
  background: var(--ihrm-surface-elevated, #fff);
  color: var(--ihrm-text, #1e293b);
  text-decoration: none;
  transition: all var(--ihrm-transition);
  font-weight: 500;
}

.ihrm-quick-action__icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--ihrm-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-accent);
  flex-shrink: 0;
}

.ihrm-quick-action__label {
  flex: 1;
}

.ihrm-quick-action__arrow {
  font-size: 0.75rem;
  color: var(--ihrm-text-muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--ihrm-transition);
}

.ihrm-quick-action:hover {
  background: var(--ihrm-accent-soft);
  border-color: var(--ihrm-accent);
  color: var(--ihrm-primary);
  transform: translateX(4px);
  box-shadow: var(--ihrm-shadow);
}

.ihrm-quick-action:hover .ihrm-quick-action__arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--ihrm-accent);
}

.ihrm-quick-action:hover .ihrm-quick-action__icon {
  background: var(--ihrm-accent);
  color: #fff;
}

.ihrm-quick-action i {
  font-size: 1.125rem;
  color: inherit;
  width: auto;
  text-align: center;
}

/* ── Tables ───────────────────────────────────────────────── */
.ihrm-table {
  border-collapse: separate;
  border-spacing: 0;
}

.ihrm-table thead th {
  background: var(--ihrm-surface, #f8fafc);
  color: var(--ihrm-primary, #1e3a5f);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid var(--ihrm-border);
  padding: 0.75rem 1rem;
}

.ihrm-table tbody tr {
  transition: background var(--ihrm-transition);
}

.ihrm-table tbody tr:hover {
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.04));
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-ihrm-primary {
  background-color: var(--ihrm-primary, #1e3a5f);
  border-color: var(--ihrm-primary, #1e3a5f);
  color: #fff;
  font-weight: 500;
  transition: all var(--ihrm-transition);
}

.btn-ihrm-primary:hover {
  background-color: var(--ihrm-accent, #2563eb);
  border-color: var(--ihrm-accent, #2563eb);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--ihrm-shadow-md);
}

/* ── Alerts ───────────────────────────────────────────────── */
.ihrm-alert {
  border: none;
  border-radius: var(--ihrm-radius);
  border-left: 4px solid;
  box-shadow: var(--ihrm-shadow);
}

.ihrm-alert-success { border-left-color: var(--ihrm-success); }
.ihrm-alert-danger { border-left-color: var(--ihrm-danger); }
.ihrm-alert-warning { border-left-color: var(--ihrm-warning); }
.ihrm-alert-info { border-left-color: var(--ihrm-accent); }

/* ── Mandatory banner ─────────────────────────────────────── */
.ihrm-mandatory-banner {
  background: linear-gradient(135deg, #991b1b, #dc2626);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-bottom: none;
  animation: ihrm-slide-down 0.3s ease-out;
}

.ihrm-mandatory-banner a {
  color: #fef08a;
  font-weight: 600;
}

.ihrm-mandatory-banner a:hover {
  color: #fff;
}

/* ── Impersonation banner ─────────────────────────────────── */
.ihrm-impersonation-banner {
  background: linear-gradient(135deg, #78350f, #d97706);
  color: #fff;
  padding: 0.5rem 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── Theme palette selector ───────────────────────────────── */
.ihrm-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.ihrm-theme-option {
  position: relative;
  cursor: pointer;
  border: 2px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  padding: 1rem;
  text-align: center;
  transition: all var(--ihrm-transition);
  background: var(--ihrm-surface-elevated, #fff);
}

.ihrm-theme-option:hover {
  border-color: var(--ihrm-accent);
  transform: translateY(-2px);
  box-shadow: var(--ihrm-shadow-md);
}

.ihrm-theme-option.active {
  border-color: var(--ihrm-accent);
  box-shadow: 0 0 0 3px var(--ihrm-accent-soft);
}

.ihrm-theme-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ihrm-theme-swatch {
  width: 100%;
  height: 32px;
  border-radius: var(--ihrm-radius);
  margin-bottom: 0.5rem;
}

.ihrm-theme-swatch-corporate { background: linear-gradient(90deg, #1e3a5f, #2563eb); }
.ihrm-theme-swatch-emerald { background: linear-gradient(90deg, #065f46, #10b981); }
.ihrm-theme-swatch-slate { background: linear-gradient(90deg, #334155, #64748b); }
.ihrm-theme-swatch-burgundy { background: linear-gradient(90deg, #7f1d1d, #b91c1c); }
.ihrm-theme-swatch-ocean { background: linear-gradient(90deg, #0c4a6e, #0ea5e9); }

.ihrm-theme-option .ihrm-theme-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ihrm-text);
}

/* ── Settings form ────────────────────────────────────────── */
.ihrm-settings-section {
  border-bottom: 1px solid var(--ihrm-border);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.ihrm-settings-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ihrm-settings-section-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ihrm-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ihrm-form-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .ihrm-form-row {
    grid-template-columns: 1fr;
  }
}

.ihrm-form-label {
  font-weight: 500;
  color: var(--ihrm-text-muted);
  font-size: 0.875rem;
}

/* ── Footer ───────────────────────────────────────────────── */
body.ihrm-corporate .footer {
  border-top: 1px solid var(--ihrm-border);
  background: var(--ihrm-surface-elevated, #fff);
  color: var(--ihrm-text-muted);
}

body.ihrm-corporate .footer .footer-link {
  color: var(--ihrm-text-muted);
  transition: color var(--ihrm-transition);
}

body.ihrm-corporate .footer .footer-link:hover {
  color: var(--ihrm-accent);
}

/* ── Livewire loading states ──────────────────────────────── */
[wire\:loading] {
  opacity: 0.7;
  pointer-events: none;
}

.ihrm-btn-loading {
  position: relative;
}

.ihrm-btn-loading[wire\:loading] .ihrm-btn-text {
  visibility: hidden;
}

.ihrm-btn-loading[wire\:loading]::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  top: 50%;
  left: 50%;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: ihrm-spin 0.6s linear infinite;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes ihrm-fade-in-up {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes ihrm-slide-down {
  from {
    opacity: 0;
    transform: translateY(-100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ihrm-spin {
  to { transform: rotate(360deg); }
}

.ihrm-animate-in {
  animation: ihrm-fade-in-up 0.4s ease-out both;
}

.ihrm-animate-in-delay-1 { animation-delay: 0.05s; }
.ihrm-animate-in-delay-2 { animation-delay: 0.1s; }
.ihrm-animate-in-delay-3 { animation-delay: 0.15s; }
.ihrm-animate-in-delay-4 { animation-delay: 0.2s; }
.ihrm-animate-in-delay-5 { animation-delay: 0.25s; }

.ihrm-stagger-children > * {
  animation: ihrm-fade-in-up 0.4s ease-out both;
}

.ihrm-stagger-children > *:nth-child(1) { animation-delay: 0.03s; }
.ihrm-stagger-children > *:nth-child(2) { animation-delay: 0.06s; }
.ihrm-stagger-children > *:nth-child(3) { animation-delay: 0.09s; }
.ihrm-stagger-children > *:nth-child(4) { animation-delay: 0.12s; }
.ihrm-stagger-children > *:nth-child(5) { animation-delay: 0.15s; }
.ihrm-stagger-children > *:nth-child(6) { animation-delay: 0.18s; }

/* ── Activity feed items ──────────────────────────────────── */
.ihrm-activity-item {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--ihrm-border);
  transition: background var(--ihrm-transition);
}

.ihrm-activity-item:last-child {
  border-bottom: none;
}

.ihrm-activity-item:hover {
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.04));
}

.ihrm-activity-item--log,
.ihrm-activity-item--login {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.ihrm-activity-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-accent);
  font-size: 0.8125rem;
}

.ihrm-activity-icon--success {
  background: rgba(5, 150, 105, 0.12);
  color: var(--ihrm-success, #059669);
}

.ihrm-activity-icon--danger {
  background: rgba(220, 38, 38, 0.1);
  color: var(--ihrm-danger, #dc2626);
}

.ihrm-activity-body {
  flex: 1;
  min-width: 0;
}

/* ── Admin pages (dashboard, companies, etc.) ─────────────── */
.ihrm-admin-page .ihrm-admin-hero,
.ihrm-admin-dashboard .ihrm-admin-hero {
  background: linear-gradient(135deg, rgba(30, 58, 95, 0.06) 0%, rgba(37, 99, 235, 0.08) 100%);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.ihrm-admin-page .ihrm-admin-hero .ihrm-page-header,
.ihrm-admin-dashboard .ihrm-admin-hero .ihrm-page-header {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ihrm-admin-page .ihrm-admin-hero .ihrm-page-header h3 i,
.ihrm-admin-dashboard .ihrm-admin-hero .ihrm-page-header h3 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--ihrm-radius);
  background: linear-gradient(135deg, var(--ihrm-primary), var(--ihrm-accent));
  color: #fff !important;
  font-size: 1rem;
  margin-right: 0.625rem !important;
}

.ihrm-admin-page .ihrm-stat-card,
.ihrm-admin-dashboard .ihrm-stat-card {
  text-align: left;
  background: var(--ihrm-surface-elevated, #fff);
}

.ihrm-admin-page .ihrm-stat-card--primary .ihrm-stat-icon,
.ihrm-admin-dashboard .ihrm-stat-card--primary .ihrm-stat-icon {
  background: rgba(30, 58, 95, 0.1);
  color: var(--ihrm-primary);
}

.ihrm-admin-page .ihrm-stat-card--success .ihrm-stat-icon,
.ihrm-admin-dashboard .ihrm-stat-card--success .ihrm-stat-icon {
  background: rgba(5, 150, 105, 0.12);
  color: var(--ihrm-success);
}

.ihrm-admin-page .ihrm-stat-card--success .ihrm-stat-value,
.ihrm-admin-dashboard .ihrm-stat-card--success .ihrm-stat-value {
  color: var(--ihrm-success);
}

.ihrm-admin-page .ihrm-stat-card--accent .ihrm-stat-icon,
.ihrm-admin-dashboard .ihrm-stat-card--accent .ihrm-stat-icon {
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-accent);
}

.ihrm-admin-page .ihrm-stat-card--warning .ihrm-stat-icon,
.ihrm-admin-dashboard .ihrm-stat-card--warning .ihrm-stat-icon {
  background: rgba(217, 119, 6, 0.12);
  color: var(--ihrm-warning);
}

.ihrm-admin-page .ihrm-stat-card--info .ihrm-stat-icon,
.ihrm-admin-dashboard .ihrm-stat-card--info .ihrm-stat-icon {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
}

.ihrm-admin-page .ihrm-stat-card--slate .ihrm-stat-icon,
.ihrm-admin-dashboard .ihrm-stat-card--slate .ihrm-stat-icon {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.ihrm-admin-page .ihrm-stat-card--primary::before,
.ihrm-admin-dashboard .ihrm-stat-card--primary::before {
  background: linear-gradient(90deg, var(--ihrm-primary), var(--ihrm-primary-light));
}

.ihrm-admin-page .ihrm-stat-card--success::before,
.ihrm-admin-dashboard .ihrm-stat-card--success::before {
  background: linear-gradient(90deg, #059669, #34d399);
}

.ihrm-admin-page .ihrm-stat-card--accent::before,
.ihrm-admin-dashboard .ihrm-stat-card--accent::before {
  background: linear-gradient(90deg, var(--ihrm-primary), var(--ihrm-accent));
}

.ihrm-admin-page .ihrm-stat-card--warning::before,
.ihrm-admin-dashboard .ihrm-stat-card--warning::before {
  background: linear-gradient(90deg, #d97706, #fbbf24);
}

.ihrm-admin-page .ihrm-stat-card--info::before,
.ihrm-admin-dashboard .ihrm-stat-card--info::before {
  background: linear-gradient(90deg, #0284c7, #38bdf8);
}

.ihrm-admin-page .ihrm-stat-card--slate::before,
.ihrm-admin-dashboard .ihrm-stat-card--slate::before {
  background: linear-gradient(90deg, #475569, #94a3b8);
}

.ihrm-admin-page .ihrm-stat-card:hover::before,
.ihrm-admin-dashboard .ihrm-stat-card:hover::before {
  opacity: 1;
}

.ihrm-admin-page .ihrm-card,
.ihrm-admin-dashboard .ihrm-card {
  box-shadow: var(--ihrm-shadow);
  border: 1px solid var(--ihrm-border);
}

.ihrm-admin-page .ihrm-card-header-accent,
.ihrm-admin-dashboard .ihrm-card-header-accent {
  background: linear-gradient(90deg, var(--ihrm-accent-soft), transparent) !important;
}

.ihrm-company-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--ihrm-radius);
  background: linear-gradient(135deg, var(--ihrm-primary), var(--ihrm-accent));
  color: #fff;
  flex-shrink: 0;
  font-size: 1rem;
}

.ihrm-company-chip--sm {
  width: 2rem;
  height: 2rem;
  font-size: 0.875rem;
}

.ihrm-status-pill {
  display: inline-block;
  padding: 0.2em 0.55em;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.ihrm-status-pill--active {
  background: rgba(5, 150, 105, 0.12);
  color: var(--ihrm-success);
}

.ihrm-status-pill--inactive {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.ihrm-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15em 0.5em;
  margin-right: 0.375rem;
  margin-bottom: 0.25rem;
  font-size: 0.75rem;
  background: var(--ihrm-surface, #f8fafc);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius);
  color: var(--ihrm-text-muted);
}

.ihrm-company-row-expanded {
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.04));
}

.ihrm-company-expand {
  margin-top: 0.75rem;
  padding: 1rem;
  background: var(--ihrm-surface, #f8fafc);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
}

.ihrm-company-expand__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ihrm-border);
}

.ihrm-company-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--ihrm-text);
}

.ihrm-company-detail i {
  color: var(--ihrm-accent);
  width: 1rem;
  text-align: center;
}

.ihrm-company-expand__section {
  margin-bottom: 1rem;
}

.ihrm-company-expand__section:last-child {
  margin-bottom: 0;
}

.ihrm-company-expand__heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ihrm-primary);
  margin-bottom: 0.625rem;
}

.ihrm-company-expand__heading i {
  margin-right: 0.375rem;
  color: var(--ihrm-accent);
}

.ihrm-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35em 0.65em;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: var(--ihrm-radius);
  border: 1px solid var(--ihrm-border);
  background: #fff;
}

.ihrm-user-badge--ceo {
  background: rgba(14, 165, 233, 0.1);
  border-color: rgba(14, 165, 233, 0.25);
  color: #0369a1;
}

.ihrm-user-badge--role {
  background: var(--ihrm-accent-soft);
  border-color: rgba(37, 99, 235, 0.2);
  color: var(--ihrm-primary);
}

.ihrm-user-badge small {
  opacity: 0.75;
  font-weight: 400;
}

.ihrm-session-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ihrm-session-list li {
  padding: 0.375rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--ihrm-border);
}

.ihrm-session-list li:last-child {
  border-bottom: none;
}

.ihrm-session-list li i {
  color: var(--ihrm-accent);
  margin-right: 0.375rem;
}

.ihrm-admin-companies .ihrm-entity-table-wrap {
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  overflow: hidden;
  box-shadow: var(--ihrm-shadow);
  background: #fff;
}

.ihrm-admin-companies .ihrm-page-toolbar {
  background: var(--ihrm-surface-elevated, #fff);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: var(--ihrm-shadow);
}

.ihrm-admin-form-bar {
  background: var(--ihrm-surface, #f8fafc);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  padding: 1.25rem;
}

.ihrm-admin-assign-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.5rem;
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  color: var(--ihrm-text-muted);
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: var(--ihrm-radius);
}

.ihrm-admin-assign-hint > i {
  color: var(--ihrm-accent);
}

.ihrm-admin-email-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.ihrm-admin-email-tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  font-size: 0.75rem;
  background: #fff;
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius);
  color: var(--ihrm-primary);
}

.ihrm-admin-assign-form {
  padding: 1.25rem;
  background: var(--ihrm-surface, #f8fafc);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
}

.ihrm-admin-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.625rem;
  font-weight: 600;
  white-space: nowrap;
  padding-left: 1rem;
  padding-right: 1rem;
}

.ihrm-admin-add-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 767.98px) {
  .ihrm-admin-add-btn {
    margin-top: 0.25rem;
  }
}

.ihrm-admin-assign-empty {
  font-size: 0.8125rem;
  color: var(--ihrm-text-muted);
  line-height: 1.5;
}

.ihrm-admin-assign-empty i {
  margin-right: 0.375rem;
}

.ihrm-user-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ihrm-primary), var(--ihrm-accent));
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.ihrm-badge-you {
  display: inline-block;
  margin-left: 0.375rem;
  padding: 0.15em 0.5em;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ihrm-accent), #3b82f6);
  color: #fff;
  vertical-align: middle;
}

.ihrm-username-tag {
  display: inline-block;
  padding: 0.15em 0.5em;
  font-size: 0.8125rem;
  background: var(--ihrm-surface, #f8fafc);
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius);
  color: var(--ihrm-primary);
}

.ihrm-admin-page .ihrm-admin-table tbody tr:first-child td,
.ihrm-admin-dashboard .ihrm-admin-table tbody tr:first-child td {
  border-top: none;
}

/* ── Language switcher ────────────────────────────────────── */
.ihrm-lang-switcher {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.ihrm-lang-switcher img {
  border-radius: 4px;
  transition: transform var(--ihrm-transition), box-shadow var(--ihrm-transition);
  border: 2px solid transparent;
}

.ihrm-lang-switcher a:hover img {
  transform: scale(1.1);
  box-shadow: var(--ihrm-shadow-md);
}

.ihrm-lang-switcher img.active-lang {
  border-color: var(--ihrm-accent);
}

/* ── Empty state ──────────────────────────────────────────── */
.ihrm-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ihrm-text-muted);
}

.ihrm-empty-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--ihrm-surface-muted, #f1f5f9);
  color: var(--ihrm-text-muted, #94a3b8);
}

.ihrm-empty-state-icon i,
.ihrm-empty-state > i {
  font-size: 1.75rem;
  margin-bottom: 0;
  display: block;
  color: inherit;
}

.ihrm-empty-state > i {
  font-size: 2.5rem;
  color: var(--ihrm-border);
  margin-bottom: 1rem;
}

.ihrm-empty-state-text {
  color: var(--ihrm-text-muted, #64748b);
  font-size: 0.9375rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.ihrm-empty-state-action {
  margin-top: 1.25rem;
}

.ihrm-empty-state-action .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ══════════════════════════════════════════════════════════════
   UNIVERSAL AUTO-STYLING — applies to ALL pages automatically
   ══════════════════════════════════════════════════════════════ */

/* All cards */
body.ihrm-corporate .card {
  border: 1px solid var(--ihrm-border, rgba(0, 0, 0, 0.06));
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  box-shadow: var(--ihrm-shadow);
  background: var(--ihrm-surface-elevated, #fff);
  transition: box-shadow var(--ihrm-transition), transform var(--ihrm-transition);
}

body.ihrm-corporate .card:hover {
  box-shadow: var(--ihrm-shadow-md);
}

body.ihrm-corporate .card .card-header {
  font-weight: 600;
  border-bottom: 1px solid var(--ihrm-border);
}

/* Dark gradient headers — all child text must stay readable */
body.ihrm-corporate .ihrm-entity-card .card-header,
body.ihrm-corporate .ihrm-entity-card-header,
body.ihrm-corporate .ihrm-section-header {
  color: #fff !important;
}

body.ihrm-corporate .ihrm-entity-card .card-header :is(h1, h2, h3, h4, h5, h6, .card-title),
body.ihrm-corporate .ihrm-entity-card-header :is(h1, h2, h3, h4, h5, h6),
body.ihrm-corporate .ihrm-section-header :is(h1, h2, h3, h4, h5, h6) {
  color: #fff !important;
}

body.ihrm-corporate .card .card-header.bg-primary,
body.ihrm-corporate .card .card-header.bg-dark {
  background: linear-gradient(135deg, var(--ihrm-primary), var(--ihrm-primary-light)) !important;
  color: #fff !important;
  border-bottom: none;
}

body.ihrm-corporate .card .card-header.bg-warning {
  background: var(--ihrm-warning) !important;
  color: #fff !important;
}

body.ihrm-corporate .card .card-header.bg-info {
  background: var(--ihrm-accent) !important;
  color: #fff !important;
}

body.ihrm-corporate .card .card-footer {
  background: var(--ihrm-surface, #f8fafc);
  border-top: 1px solid var(--ihrm-border);
}

/* All tables */
body.ihrm-corporate .table thead th,
body.ihrm-corporate .table thead td {
  background: var(--ihrm-surface, #f8fafc);
  color: var(--ihrm-primary, #1e3a5f);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--ihrm-border);
}

body.ihrm-corporate .table tbody tr {
  transition: background var(--ihrm-transition);
}

body.ihrm-corporate .table-hover tbody tr:hover,
body.ihrm-corporate .table tbody tr:hover {
  background: var(--ihrm-accent-soft, rgba(37, 99, 235, 0.04));
}

body.ihrm-corporate .table-light {
  --bs-table-bg: var(--ihrm-surface, #f8fafc);
}

/* All forms */
body.ihrm-corporate .form-label {
  font-weight: 500;
  color: var(--ihrm-text, #1e293b);
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

body.ihrm-corporate .form-control,
body.ihrm-corporate .form-select {
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius);
  transition: border-color var(--ihrm-transition), box-shadow var(--ihrm-transition);
}

body.ihrm-corporate .input-group-text {
  background: var(--ihrm-surface, #f8fafc);
  border-color: var(--ihrm-border);
  color: var(--ihrm-accent, #2563eb);
}

body.ihrm-corporate .input-group-text i {
  color: var(--ihrm-accent, #2563eb);
}

/* All buttons */
body.ihrm-corporate .btn {
  font-weight: 500;
  border-radius: var(--ihrm-radius);
  transition: all var(--ihrm-transition);
}

body.ihrm-corporate .btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

body.ihrm-corporate .btn-success {
  background-color: var(--ihrm-success, #059669);
  border-color: var(--ihrm-success, #059669);
}

body.ihrm-corporate .btn-danger {
  background-color: var(--ihrm-danger, #dc2626);
  border-color: var(--ihrm-danger, #dc2626);
}

body.ihrm-corporate .btn-warning {
  background-color: var(--ihrm-warning, #d97706);
  border-color: var(--ihrm-warning, #d97706);
}

body.ihrm-corporate .btn-secondary {
  background-color: var(--ihrm-text-muted, #64748b);
  border-color: var(--ihrm-text-muted, #64748b);
}

body.ihrm-corporate .btn-outline-success {
  color: var(--ihrm-success);
  border-color: var(--ihrm-success);
}

body.ihrm-corporate .btn-outline-danger {
  color: var(--ihrm-danger);
  border-color: var(--ihrm-danger);
}

body.ihrm-corporate .btn-outline-secondary {
  color: var(--ihrm-text-muted);
  border-color: var(--ihrm-border);
}

body.ihrm-corporate .btn-sm {
  font-size: 0.8125rem;
}

body.ihrm-corporate .btn-lg {
  padding: 0.625rem 1.25rem;
}

/* All alerts */
body.ihrm-corporate .alert {
  border: none;
  border-left: 4px solid;
  border-radius: var(--ihrm-radius);
  box-shadow: var(--ihrm-shadow);
}

body.ihrm-corporate .alert-success { border-left-color: var(--ihrm-success); }
body.ihrm-corporate .alert-danger { border-left-color: var(--ihrm-danger); }
body.ihrm-corporate .alert-warning { border-left-color: var(--ihrm-warning); }
body.ihrm-corporate .alert-info { border-left-color: var(--ihrm-accent); }

body.ihrm-corporate .alert i {
  opacity: 0.85;
}

/* Dropdowns */
body.ihrm-corporate .dropdown-menu {
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  box-shadow: var(--ihrm-shadow-lg);
  padding: 0.375rem 0;
}

body.ihrm-corporate .dropdown-item {
  padding: 0.5rem 1rem;
  transition: all var(--ihrm-transition);
  font-size: 0.875rem;
}

body.ihrm-corporate .dropdown-item:hover {
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-primary);
}

body.ihrm-corporate .dropdown-item i {
  color: var(--ihrm-accent);
  width: 1.25rem;
  margin-right: 0.5rem;
}

/* Font Awesome icon consistency */
body.ihrm-corporate .fas,
body.ihrm-corporate .far,
body.ihrm-corporate .fab,
body.ihrm-corporate .fa {
  width: 1em;
  text-align: center;
}

body.ihrm-corporate .btn i,
body.ihrm-corporate .ihrm-quick-action i,
body.ihrm-corporate .card-header i,
body.ihrm-corporate .ihrm-page-header i {
  margin-right: 0.375rem;
}

/* Section content wrapper */
body.ihrm-corporate .section {
  padding-top: 0;
}

/* Nu anima coloana principală — transform pe părinte rupe position:fixed al modalelor Livewire */

/* Progress bars */
body.ihrm-corporate .progress {
  background: var(--ihrm-border);
  border-radius: 4px;
  overflow: hidden;
}

body.ihrm-corporate .progress-bar {
  transition: width 0.5s ease;
}

/* Breadcrumb */
body.ihrm-corporate .breadcrumb {
  font-size: 0.8125rem;
}

body.ihrm-corporate .breadcrumb-item.active {
  color: var(--ihrm-text-muted);
}

/* Accordion */
body.ihrm-corporate .accordion-button {
  font-weight: 500;
  color: var(--ihrm-primary);
}

body.ihrm-corporate .accordion-button:not(.collapsed) {
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-primary);
}

/* Tooltips & popovers */
body.ihrm-corporate .tooltip-inner {
  background: var(--ihrm-primary);
  font-size: 0.75rem;
}

/* Spinner */
body.ihrm-corporate .spinner-border {
  color: var(--ihrm-accent);
}

/* Livewire wire:loading overlay on sections */
body.ihrm-corporate [wire\:loading\.delay] {
  opacity: 0.6;
}

/* Container padding consistency */
body.ihrm-corporate .container,
body.ihrm-corporate .container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Invalid form feedback */
body.ihrm-corporate .is-invalid {
  border-color: var(--ihrm-danger) !important;
}

body.ihrm-corporate .invalid-feedback {
  color: var(--ihrm-danger);
  font-size: 0.8125rem;
}

/* ── Global auto-upgrade: every card/table/form ───────────── */
body.ihrm-corporate .card:not(.bg-warning):not(.bg-danger):not(.bg-success):not(.bg-primary) {
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  box-shadow: var(--ihrm-shadow);
  transition: box-shadow var(--ihrm-transition), transform var(--ihrm-transition);
}

body.ihrm-corporate .card:not(.bg-warning):not(.bg-danger):not(.bg-success):hover {
  box-shadow: var(--ihrm-shadow-md);
}

body.ihrm-corporate .card-header.bg-primary,
body.ihrm-corporate .card-header.bg-dark {
  background: linear-gradient(135deg, var(--ihrm-primary), var(--ihrm-primary-light)) !important;
  color: #fff !important;
  border-bottom: none !important;
}

body.ihrm-corporate .card-header.bg-warning,
body.ihrm-corporate .card-header.bg-info,
body.ihrm-corporate .card-header.bg-secondary {
  background: var(--ihrm-accent-soft) !important;
  color: var(--ihrm-primary) !important;
  border-bottom: 1px solid var(--ihrm-border) !important;
}

body.ihrm-corporate table.table {
  border-collapse: separate;
  border-spacing: 0;
}

body.ihrm-corporate table.table thead th {
  background: var(--ihrm-surface);
  color: var(--ihrm-primary);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--ihrm-border);
}

body.ihrm-corporate table.table tbody tr {
  transition: background var(--ihrm-transition);
}

body.ihrm-corporate table.table tbody tr:hover {
  background: var(--ihrm-accent-soft);
}

body.ihrm-corporate .form-label {
  font-weight: 500;
  color: var(--ihrm-text);
  font-size: 0.875rem;
}

body.ihrm-corporate .form-control,
body.ihrm-corporate .form-select {
  border-color: var(--ihrm-border);
  border-radius: var(--ihrm-radius);
  transition: border-color var(--ihrm-transition), box-shadow var(--ihrm-transition);
}

body.ihrm-corporate .input-group-text {
  background: var(--ihrm-surface);
  border-color: var(--ihrm-border);
  color: var(--ihrm-accent);
}

body.ihrm-corporate .input-group-text i {
  color: var(--ihrm-accent);
}

body.ihrm-corporate .btn {
  border-radius: var(--ihrm-radius);
  font-weight: 500;
  transition: all var(--ihrm-transition);
}

body.ihrm-corporate .btn:hover {
  transform: translateY(-1px);
}

body.ihrm-corporate .btn-group .btn:hover {
  transform: none;
}

body.ihrm-corporate .alert {
  border-radius: var(--ihrm-radius);
  border: none;
  border-left: 4px solid;
  box-shadow: var(--ihrm-shadow);
}

body.ihrm-corporate .alert-success { border-left-color: var(--ihrm-success); }
body.ihrm-corporate .alert-danger { border-left-color: var(--ihrm-danger); }
body.ihrm-corporate .alert-warning { border-left-color: var(--ihrm-warning); }
body.ihrm-corporate .alert-info { border-left-color: var(--ihrm-accent); }

/* Font Awesome icon sizing in UI */
.fa-xs { font-size: 0.75em; }
.fa-2xs { font-size: 0.625em; }

body.ihrm-corporate i.fas,
body.ihrm-corporate i.far,
body.ihrm-corporate i.fab {
  width: 1.1em;
  text-align: center;
}

/* Dropdown menus corporate */
body.ihrm-corporate .dropdown-menu {
  border: 1px solid var(--ihrm-border);
  border-radius: var(--ihrm-radius-lg);
  box-shadow: var(--ihrm-shadow-lg);
}

body.ihrm-corporate .dropdown-item {
  transition: background var(--ihrm-transition);
  font-size: 0.875rem;
}

body.ihrm-corporate .dropdown-item:hover {
  background: var(--ihrm-accent-soft);
  color: var(--ihrm-primary);
}

body.ihrm-corporate .dropdown-item i {
  color: var(--ihrm-accent);
  width: 1.25rem;
}

/* Offcanvas & collapse panels */
body.ihrm-corporate .collapse .card,
body.ihrm-corporate .accordion-item {
  border-color: var(--ihrm-border);
}

/* SweetAlert2 corporate tint */
.swal2-popup {
  border-radius: var(--ihrm-radius-lg, 0.75rem) !important;
  font-family: var(--ihrm-font) !important;
}

.swal2-confirm {
  background: var(--ihrm-primary, #1e3a5f) !important;
  border-radius: var(--ihrm-radius, 0.5rem) !important;
}

/* DataTables override */
body.ihrm-corporate table.dataTable thead th {
  background: var(--ihrm-surface) !important;
  color: var(--ihrm-primary) !important;
}

body.ihrm-corporate table.dataTable tbody tr:hover {
  background: var(--ihrm-accent-soft) !important;
}

/* Quiz mobile polish */
@media (max-width: 767.98px) {
  .quiz-container .quiz-header {
    position: sticky;
    top: 0;
    z-index: 1020;
  }

  .quiz-container .quiz-interface .container-fluid {
    margin-top: 0 !important;
    padding-bottom: 1.5rem;
  }

  .quiz-container .question-card .btn-outline-primary,
  .quiz-container .answer-option label {
    font-size: 0.95rem;
    padding: 0.75rem !important;
  }

  .ihrm-video-embed iframe {
    border-radius: var(--ihrm-radius);
  }

  .view-session .question-card .form-check-label {
    font-size: 0.95rem;
  }
}

/* Ecosystem footer links */
.ihrm-ecosystem-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

.ihrm-ecosystem-link {
  color: var(--ihrm-text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.ihrm-ecosystem-link:hover {
  color: var(--ihrm-accent);
}
